IP Address Configuration on BOSS Linux

February 20, 2011

Q. How to configure IP Address on BOSS Linux?

A. Edit the following file:




then enter root password, this file can only be edited by the root user.

#gedit /etc/network/interface

Here you’ll see the list of NICs that have been detected.

Now, to configure an IP Address on one of these NICs say, eth0, type the following

auto eth0

iface eth0 inet static

address ipaddresstobeassignedtomachine

netmask netmasktobeused

gateway gatewayipaddress

If you use DHCP instead of static IP addressing, replace static in the second line with dhcp and only type the first two lines, as the rest of the information will be obtained from the DHCP server. Remember to replace eth0 with the appropriate interface you are trying to configure in the first two lines.

Now restart networking using the following command

#/etc/init.d/networking restart

If you are using a DSL connection (most Broadband connections in India are DSL) and are having issues connecting to the Internet check if it is a DNS resolution related issue by ping-ing any website (say, http://www.wordpress.com) and checking if the URL is getting resolved to an IP Address, if it is not then you need to “force” the DNS IP Addresses. DNS IP Addresses are usually provided by ISPs, however, you could use OpenDNS

Type the following commands to edit the /etc/resolv.conf file so as to add the above IP Addresses, it is here that the DNS information is stored:


#gedit /etc/resolv.conf

This should fix any DNS related issues.


Using SCP to securely copy files over a network on BOSS GNU/Linux

August 18, 2010

SCP is used to Securely CoPy files over the network.

The syntax for copying a file from a remote computer onto your machine is:
scp -r <username@ipaddress:/path_to_file_at_source_computer> <destination>
the -r can be omitted if you are not copying directories.
Here username is the name of a user a/c on the computers between which the data is being transferred

To copy a file or directory from your machine to another machine on a network is:
scp -r <destination> <username@ipaddress:/path_to_file_at_source_computer>
Note that the -r option is only needed if its a directory thats being copied.

An example, I want to copy /home/boss/docs from a computer on the network with IP address onto my local machine(i.e., the machine iam using). I would use the following command:
scp -r boss@ .
Here boss is a user account on the computer I want to copy files from. On typing this command you’ll be prompted for the password to the account boss. Once thats done, you’ll see the files being copied from the source computer onto your current directory. The ‘.’ here us used to indicate the present working directory (pwd).You can replace it with any directory on your local computer that you can write into.

How to start VirtualBox VMs via command line

May 22, 2010

To start a VM via command line type the following:
VBoxManage startvm “VM_NAME”

For example: VBoxManage statvm “Solaris”

Show Desktop Windows+d equivalent in BOSS Linux GNOME Desktop

December 16, 2008

Many windows users are used to using Windows+d shortcut to bring up the desktop, heres the equivalent in GNOME ctrl+alt+d

Keying in ctrl+alt+d again brings the application you were running back up on the screen.