Edit the hosts file in linux

For my trixbox server I need to edit my hosts file so that it knows where to go when I specify sip.broadvoice.com.  Here is an example.
login to the console
type in vi /etc/hosts
edit the hosts file with your IP and the hostname this should resolve to
hit the ESC key then :wq for write and quit.

Adding a default gateway in Linux

vi /etc/sysconfig/network
service network restart

Configuring postfix to use an SMTP relay

If you are like me and your ISP blocks SMTP outbounnd traffic then you need to configure your mail client to use an SMTP relay to get around this problem.  Here are the steps.
vi /etc/postfix/main.cf
do a search for relayhost = and change it to your SMTP server of your ISP see my example below.
relayhost = smtp.west.cox.net
/etc/init.d/postfix restart

How to change root password in linux

Gain console access, I use putty.exe for this instance.
Login and then simply type the command passwd at the console.  It will prompt you for the new password.

Trying to boot to a Linux ISO?

Do you currently have a Linux CD or ISO that you wish you could boot from a USB stick instead of having to carry around a CD with you? You need to know about a piece of software called UNetbootin.  This software allows you to take a Linux iso and copy it and make your USB thumb drive bootable.
Being in the computer consulting industry I’ve used this in two real life examples that I will share with you.

  • The first one is called Back Track. This is security auditing software that I use to assess clients’ networks. It is an excellent piece of software for scanning networks.
  • The next piece of software is called Ophcrack. This software uses the Windows hash file to crack Windows XP and Windows Vista passwords.