c r e a t i n g f i l e s
syntax:
cat > filename
content
content
content
e.g.:
cat > todo_list
eat
rest
sleep
* use ctrl + D to denote the end of the line
d i s p l a y i n g f i l e c o n t e n t s
syntax:
cat filename
e.g.:
cat todo_list
r e m o v i n g f i l e s
syntax:
rm filename
e.g.:
rm todo_list
c o p y i n g f i l e s
syntax:
cp oldfilename newfilename
e.g.:
cp old.pdf new.pdf
* copy the contents of the file to another file
r e n a m i n g f i l e s
syntax:
mv oldfilename newfilename
e.g.:
mv oldfilename.txt newfilename.txt
f i l e n a m e c o m p l e t i o n
press Tab key
Dhee-TechGuide
Tuesday, May 3, 2011
Sunday, May 1, 2011
Managing CentOS Users and Groups
c r e a t i n g u s e r s
syntax:
useradd [options] {username}
e.g.:
useradd --home /home/john john
useradd dhee
a d d i n g p a s s w o r d
syntax:
passwd {password}
e.g.:
passwd dhee
*** Without pw, user account will be in lock status.
s e t a c c o u n t d i s a b l e d a t e
syntax:
useradd -e {yyyy-mm-dd} {username}
e.g:
useradd -e 2011-06-28 dhee
s e t d e f a u l t p a s s w o r d e x p i r y
syntax:
useradd -f {days} {username}
3.g.:
useradd -f -1 john
*** Type man useradd for options
l i s t i n g a l l u s e r s
e.g.:
cat /etc/passwd | grep "/home"
cat /etc/passwd | grep "/home" |cut -d: -f1
cat /etc/passwd | grep "/bin/bash" |cut -d: -f1
d e l e t i n g a n a c c o u n t
syntax:
userdel {username}
e.g.:
userrdel john
d e l e t i n g u s e r ' s h o m e d i r e c t o r y
syntax:
userdel --remove {username}
e.g:
userdel --remove john
r e m o v i n g a n e m p t y d i r e c t o r y
syntax:
rm -rf userdirectory
e.g.:
rm -rf john
a d d i n g a g r o u p
syntax:
groupadd {group}
e.g.:
groupadd accounts
a d d a u s e r i n a g r o u p
syntax:
usermod -G {group} {account}
e.g.:
usermod -G accounts,sales,support john
usermod -a -G accounts,sales,support john
v i e w i n g a l l m e m b e r s o f a g r o u p
syntax:
egrep "groupname" /etc/group
e.g.:
egrep "personal" /etc/group
d e l e t i n g a g r o u p
syntax:
groupdel {group}
e.g.:
groupdel accounts
***A group cannot be deleted if it is the primary group for any user.
Tuesday, April 26, 2011
Mount an NTFS Partition in CentOS
- Log on to your root account.
- Type the following commands
- rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
- wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rp - These commands install the RPMForge repositories, which provide access to third-party
CentOS software.
- Enter the command yum install fuse fuse-ntfs-3g to install NTFS support.
- Type the command "vi etc/fstab" to open the system-wide file system table.
- Add a new line for the NTFS file system. e.g. /dev/hda5 /mnt/ntfs ntfs defaults 0 0
- Use ":wq" to write and quit.
- Create an NTFS file directory on /mnt.
- Mount the NTFS file by typing "mount /mnt/ntfs". /mnt/ntfs is the same path entered into the file system table.
Monday, April 11, 2011
10 factors to consider when seeking an ISP
1: Uptime commitments.
Insist on specific wording that governs what happens when service fails. Does your organization receive credit off its bill? Will the ISP scramble a technician 24x7? Both?
2: Downstream speed
Test all new circuits' downstream speeds the day they're installed, a month later, and quarterly after that.
3: Upstream capacity
The increasing popularity of VPNs, remote access, and automated offsite backups place great premiums on an ISP's upstream capacities.
4: Port freedom
ISP A may block Telnet on networks on the east side of town, but not the west. ISP B, meanwhile, may not block Telnet at all.
5: SMTP flexibility
Be sure to check with the ISP to learn whether it supports open SMTP port 25 traffic.
6: Accessible technical support
Support hours are between 9am and 5pm Monday through Friday. That's unacceptable for an ISP.
7: Responsive field service
Be sure you know the ISP's field response policies, and be sure they match your organization's requirements, before signing a contract.
8: Equipment quality
When comparing two ISPs' bids, consider the quality of each firm's equipment. The less time an IT pro must spend on site administering, reconfiguring, or restarting network equipment, the better.
9: Equipment flexibility
it makes more sense to purchase network equipment, where possible, to achieve lower total costs of ownership.
10: Pricing
When factoring price, however, be sure to compare apples to apples.
Insist on specific wording that governs what happens when service fails. Does your organization receive credit off its bill? Will the ISP scramble a technician 24x7? Both?
2: Downstream speed
Test all new circuits' downstream speeds the day they're installed, a month later, and quarterly after that.
3: Upstream capacity
The increasing popularity of VPNs, remote access, and automated offsite backups place great premiums on an ISP's upstream capacities.
4: Port freedom
ISP A may block Telnet on networks on the east side of town, but not the west. ISP B, meanwhile, may not block Telnet at all.
5: SMTP flexibility
Be sure to check with the ISP to learn whether it supports open SMTP port 25 traffic.
6: Accessible technical support
Support hours are between 9am and 5pm Monday through Friday. That's unacceptable for an ISP.
7: Responsive field service
Be sure you know the ISP's field response policies, and be sure they match your organization's requirements, before signing a contract.
8: Equipment quality
When comparing two ISPs' bids, consider the quality of each firm's equipment. The less time an IT pro must spend on site administering, reconfiguring, or restarting network equipment, the better.
9: Equipment flexibility
it makes more sense to purchase network equipment, where possible, to achieve lower total costs of ownership.
10: Pricing
When factoring price, however, be sure to compare apples to apples.
Friday, March 11, 2011
Move Dropbox folder to another Directory
Recently, I got a problem on my Local Disk. My drive C only has 200MB of space left.
If you also have the same problem, you need to move your Dropbox folder to another directory. In my case, I saved at most 4GB of free space.
Here are the steps on how to do this:
- Right click the Dropbox icon on taskbar. Check it on the the bottom right corner.
- Select Preferences...
- Click the Move... button.
- Choose a new place to your Dropbox, then click Ok.
- Wait for a few minutes. File transfer depends on the number of files stored on your Dropbox folder.
Hope this helps. :)
If you also have the same problem, you need to move your Dropbox folder to another directory. In my case, I saved at most 4GB of free space.
Here are the steps on how to do this:
- Right click the Dropbox icon on taskbar. Check it on the the bottom right corner.
- Select Preferences...
- Click the Move... button.
- Choose a new place to your Dropbox, then click Ok.
- Wait for a few minutes. File transfer depends on the number of files stored on your Dropbox folder.
Hope this helps. :)
Sync files from different PC's with Dropbox
If you haven't heard of Dropbox lately, Dropbox is the easiest way to sync and share your files.
For months of using Dropbox, the use of my flash drive was eliminated and sharing of files to my colleagues became efficient. Documents from my office PC are synchronized to a Dropbox folder on my PC/Laptop at home. Aside from file synchronization, Dropbox also serves as a back-up tool for my files. Isn't that amazing?
I suggest you should try it.
Just go to Dropbox website or you may use my link below to create an account.
www.dropbox.com
Once signed up, you'll have a free 2GB disk space. You'll have two options to increase your disk space; either upgrade to PRO or by referral. You'll get additional 250MB once your friends used Dropbox for their files. The next step is download the installer, then install it to your Office/School/Home computer.
After the installation, you'll see a Dropbox folder stored on your My Documents folder. You may now start adding files or create shared folders.
Dropbox made syncing and sharing of files easy!
GNS3 for Beginners
GNS3 is an an open source emulation program for anyone who want to pursue a career on Cisco Routing. It's build on dynagen and dynamips foundation.
I've provided you simple steps on how a topology works on GNS3:
- Download GNS3 from http://www.gns3.net/download.
- Install GNS3.
- Run the program and click option 1 on Setup Wizard. "Configure and test the path to Dynamips. Also check that the working directory is valid". If you exit the Set up wizard, go to Edit | Preferences.
- Select a Project Directory. This is the path where your projects are saved.
- Select an Image directory. This is the path where IOS images are stored.
- Select Dynamips and click Test button. This will return a Dynamips "successfully started" message if Dynamips is running.
- Select option 2. Add one or more uncompressed IOS images.
- You have to take note of this: The IOS image in BIN format are compressed. You can load IOS image UNPACKED file for faster booting.
- Drag and drop devices (with IOS image) to build a topology.
- Add router modules (Double click the image, select the device and add slot/s on Slots Tab).
- Cable the connections ( Click add a link button on GNS3's toolbar and select type of cable).
- Power the devices by clicking the play button on GNS3's toolbar.
Some helpful tips:
Use the Idle PC feature to lessen the CPU usage of dynamips when the device is idle. To do this:
Right click the device, select idle PC, select the best idlepc values and select ok.
You can use wireshark captures to check packet data. To do this:
Right Click on the link between two devices, select Capture, then select a source. Go to Edit | Preferences | Capture and modify the settings to make this one work.
Subscribe to:
Posts (Atom)