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 (bridge-utils.sh) for doing this instead of manually typing each command :
#!/bin/bash

## 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 192.168.1.33 netmask 255.255.255.0 ##NOTE: change to your IP and NETMASK addresses
route add default gw 192.168.1.1 dev br0 ##NOTE: change to your GATEWAY address

## Bonus: them DNS server vao danh sach trong resolv.conf
#echo "nameserver 4.2.2.2" >> /etc/resolv.conf
#echo "nameserver 208.67.222.222" >> /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 "bridge-utils.sh") . Then change the mode of it so that it can be executable:
sudo chmod +x bridge-utils.sh

and run it either by:
$ sudo bridge-utils.sh

or
$ sudo source ./bridge-utils.sh

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: