Archive for July 7th, 2007

07
Jul
07

Ubuntu Install online with apt

There are many way to install new package into your system. With Ubuntu, apt is the simples way. You can easy upgrade and install package with command apt-get.

After install Ubuntu. You can let Ubuntu doesn’t use packages from cd by edit file /etc/apt/source.list
Please find line: deb cdrom:[Ubuntu ….
You can delete or insert letter # in front of that line.

Now you can:
- upgrade your system by command: apt-get upgrade
- install new package (ex mc) apt-get install mc
If you an error occur, please type apt-get update

07
Jul
07

Ubuntu How to install RAR Archiver (rar)

Open a terminal window and type in:
sudo apt-get install rar
sudo ln -fs /usr/bin/rar /usr/bin/unrar

07
Jul
07

Reinstall Grub bootloader

1. Boot in to rescue mode (linux single)

2. Type these command
$ chroot /mnt/sysimage
$ /sbin/grub-install /dev/sda

device can be sda or hda … belong to your hardisk.
You can know  about your hard disk by command: fdisk -l

07
Jul
07

Centos Networking

1. Configure interface in centos is difference from ubuntu. The configuration file is /etc/sysconfig/network-scripts/ifcfg-eth0.
Samples configuration for eth0:
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:90:27:1C:C2:CB
ONBOOT=yes
TYPE=Ethernet
IPADDR=172.24.236.152
NETMASK=255.255.0.0
BROADCAST=172.24.255.255
GATEWAY=172.24.231.1

Restart service network by command: /etc/init.d/network (or service network) restart

2. Edit host name in file /etc/sysconfig/network

07
Jul
07

Ubutu Networking

1. Configure static ip
Edit file /etc/network/interfaces, configure interface eth0 like this:
iface eth0 inet static
address 172.24.236.151
netmask 255.255.0.0
broadcast 172.24.255.255
gateway 172.24.231.1

After configure your interface, you’ve to restart your network service: /etc/init.d/networking restart

2. Export proxy for internet connection
Edit file ~/.bashrc, append these line:
http_proxy=http://172.24.231.1:8000
ftp_proyx=ftp://172.24.231.1:8000
export http_proxy ftp_proxy

3. DNS
Edit file /etc/resolve.conf
search nhson-lap.ntis.vn
nameserver 172.24.236.150

4. Edit host name in file /etc/hostname