You are here: Home Desktop Linux

Linux

How to install linux in USB hard drive?

In the following tutorial below shown how to install linux in the external USB drive, installing linux in the USB drive will help you plug and play the external linux OS on any machine. You can also delete the file from the USB drive if you do not need them.

1. Before installing linux in the USB drive, make sure you format the USB drive using the NTFS file system and also name the volume label USB.
2. After formatting the USB drive from the windows go to start > Run > type cmd in the command prompt type diskpart and press enter
3. When you press the enter the list of volumes will be displayed on the screen
4. Locate the Volume with the USB disk and type select volume # (were # is the volume number of your USB disk and press enter.
5. Now type active to make a bootable disk.
6. Next, copy all the file from your hard drive to USB drive also the view the hidden files.
7. There should be files ubuntu, boot.ini, NTDETECT.com, ntldr, wubildr, wubildr.mbr shown on the USB drive.
8. Now from the USB disk find ubuntu\disks\boot\grub and open the file menu.lst with the text editor.
9. Scroll down to line 132 and change the root= UUID from root=UUID= 1234567890 to root=LABEL=USB
10. Now save all the changes and boot your system. Go to BIOS and set the boot device order when the boot menu window XP and Ubuntu is shown then select the option Ubuntu and boot the system.
11. Once the system is booted safely you have successfully installed linux on your USB drive.

 

 

How to assign IP address on the linux computer?

If you want to configure the Ip address on your linux computer there are some simple steps that you should follow. Use the following command

First backup all the network settings /etc/network/interfaces file by typing the code in the console ‘cp/etc/network/interfaces/etc/network/interfaces.backup’

Now type

Ifconfig eth1 10. 255. 0. 1 broadcast 10.255.0.255 netmask 255.255.255.0

if you want to make the setting permanent then you can edit the file or create the file.

/etc/sysconfig/network-scripts/ifcfg-eth1 and edit the file and give the desired ip address numbers.
Device = eth1
Ip address = 10.255.0.1
Broadcast = 10.255.0.255
Netmask = 255.255.255.0
On boot = yes

 

How to install firefox in the Linux?

Instating the software in the windows machines are very much simple just you have to click on the setup and install the software. But installing the software’s in linux is different than windows. Following shown is the step by step procedure to install firefox in linux

First download the firefox file .tar.bz2 from the firefox download page in the “/home” directory

After downloading the file open the terminal console and type

Code

$ su
<Password>
#mv firefox* /user/local/bin/
#cd/usr/local/bin
#tar –jxvf firefox*

Then logout with pressing Ctrl+ D
Type “kmenuedit” and you will get the GUI where you can add the entry in the web browser

Now make a new menu entry name it firefox and use command
/usr/local/bin/firefox/firefox

save and close the kmenuedit

Close the terminal

now you can see the menu you will get it there you can drag the firefox to desktop

Delete the .tar.bz2 file from the /usr/local/bin

Code for deleting the file

# rm /usr/local/bin/*.tar.bz2