Monday, November 03, 2008

Ubuntu post-installation notes [2]

In the previous article I have mentioned some basic steps after installing ubuntu.

Now what?
Well, some more basic steps for those who are new to Ubuntu:

(assumed you have done the adding repositories by the steps 5, 6, 7 in previous post)

1/ Install graphic drivers (of ATI/Nvidia): by using EnvyNG
sudo apt-get install envyng-gtk

then go to menu Applications->EnvyNG

+ 2nd method: from deb repositories
(using Synaptic Package Manager, from menu System->Administration->Hardware Drivers)

2/ Make a bridge connection : (useful for cross-cable ones, such as Laptops)
+ Firstly, install bridge-utils :
$ sudo apt-get install bridge-utils

+ Then enable 2 ethernet cards and add it to the bridge. I wrote a simple script ( for doing this instead of manually typing each command :

## Tao interface br0 cho bridge va enable no len
sudo brctl addbr br0

ifconfig br0 up
ifconfig br0 0

echo 1 > /proc/sys/net/ipv4/conf/br0/forwarding
echo 1 > /proc/sys/net/ipv4/conf/br0/proxy_arp

## Bat (enable) 2 card mang
ifconfig eth0 up
ifconfig eth0 0

ifconfig eth1 up
ifconfig eth1 0

## Gan eth0 va eth1 vao br0
brctl addif br0 eth0
brctl addif br0 eth1

## Cau hinh ip address, netmask, gateway
ifconfig br0 netmask ##NOTE: change to your IP and NETMASK addresses
route add default gw dev br0 ##NOTE: change to your GATEWAY address

## Bonus: them DNS server vao danh sach trong resolv.conf
#echo "nameserver" >> /etc/resolv.conf
#echo "nameserver" >> /etc/resolv.conf

#### END

+ After you have edit the IP addresses in the script to yours, save the file (in my case the name is "") . Then change the mode of it so that it can be executable:
sudo chmod +x

and run it either by:
$ sudo

$ sudo source ./

Apply the password if prompted ! And it's DONE !

3/ Install SAMBA client (to access Windows networks) :
$ sudo apt-get install samba-common samba-client

4/ Install SAMBA server (to share directories/files for Windows network):
$ sudo apt-get install samba smbfs

5/ Install wireless driver :
(chắc mọi người cài được cho laptop của mình rồi, nên tui khỏi ghi :D )

No comments: