Tuesday
14Nov2006
Configuration of Ubuntu Server
Tuesday, November 14, 2006 at 18:27 Once the Ubuntu Server is up and running, I usually personalise the system this way:
1- Updating
nano -w /etc/apt/sources.list (remove CD-ROM reference and uncomment the universe repository + last 2 lines)
apt-get update
apt-get upgrade
2- Setting up the network permanently
nano -w /etc/network/interfacesauto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
apt-get install resolvconf
nano -w /etc/resolvconf/resolv.conf.d/base (basically copy the content of original)search your.domain.com
# verizon for example
nameserver 4.2.2.1
nameserver 4.2.2.6
3- Remote access (OpenSSH Server)
apt-get install openssh-server
Optional Step:
nano -w /etc/ssh/sshd_config# (Change to another port if necessary)/etc/init.d/ssh restart
Port 22
# (uncomment so the banner is visible)
Banner /etc/issue.net
4- Custom Header
nano -w /etc/issue.net
nano -w /etc/motd.tail
5- Adjusting Resolution of the console
nano -w /boot/grub/menu.lst# add to the end of the main boot line
# 1024x768@24-bits: vga=792
# 1280x1024@24-bits: vga=795# defoptions=quiet splash vga=792
kernel /boot/vmlinuz-2.6.17-10-server root=/dev/sda2 ro quiet splash vga=792
in
Project
Project
Reader Comments (2)
vi /etc/bash.bashrc
run command at start of bash shell
it override all
custom configurations such as
/etc/issue
/etc/issue.net
/etc/motd
ps -ef | grep bridge