Photo Test
Subscribe
More About This Website

Well, you've made it this far so I guess I should talk about something.

Let's see.... mmm

I'll start with my job an give you some real project I've been working on. So I'll speak about computer hardware, VMware, Unattended Windows installation, VBScript, XML, Website, and some other stuff. Enjoy!

Login
« A Little Story, It's about PayPal & Ebay | Main | Thin and Silent Core 2 Duo PowerHouse under 100Watts! »
Tuesday
14Nov2006

Configuration of Ubuntu Server

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/interfaces
auto 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)
Port 22
# (uncomment so the banner is visible)
Banner /etc/issue.net
/etc/init.d/ssh restart

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

Reader Comments (2)

use

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
May 19, 2007 | Unregistered Commenterchetan
Just a command reminder for finding where the VMNet are bridged:
ps -ef | grep bridge
September 24, 2007 | Unregistered CommenterMe!

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.