VMware Images:
|
The Perfect Setup - Debian Etch (Debian 4.0) - Page 3
4 Install The SSH ServerDebian Etch does not install OpenSSH by default, therefore we do it now. Run apt-get install ssh openssh-server You will be prompted to insert the installation CD again.
5 Configure The NetworkBecause the Debian Etch installer has configured our system to get its network settings via DHCP, we have to change that now because a server should have a static IP address. Edit /etc/network/interfaces and adjust it to your needs (in this example setup I will use the IP address 192.168.0.100) (please note that I replace allow-hotplug eth0 with auto eth0; otherwise restarting the network doesn't work, and we'd have to reboot the whole system): vi /etc/network/interfaces
Then restart your network: /etc/init.d/networking restart Then edit /etc/hosts. Make it look like this: vi /etc/hosts
Now run echo server1.example.com > /etc/hostname and reboot the system: shutdown -r now Afterwards, run hostname Both should show server1.example.com. From now on you can use an SSH client such as PuTTY and connect from your workstation to your Debian Etch server and follow the remaining steps from this tutorial.
6 Edit /etc/apt/sources.list And Update Your Linux InstallationEdit /etc/apt/sources.list. Comment out the CD. It should look like this: vi /etc/apt/sources.list
Then run apt-get update to update the apt package database and apt-get upgrade to install the latest updates (if there are any).
7 Install Some SoftwareNow we install a few packages that are needed later on. Run apt-get install binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev linux-kernel-headers lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++ (This command should go into one line!)
8 Quota(If you have chosen a different partitioning scheme than I did, you must adjust this chapter so that quota applies to the partitions where you need it.) To install quota, run apt-get install quota Edit /etc/fstab. Mine looks like this (I added ,usrquota,grpquota to partition /dev/sda1 (mount point /; your device name might be /dev/hda1 or similar)): vi /etc/fstab
To enable quota, run these commands: touch /quota.user /quota.group
|





print: 
Recent comments
20 hours 43 min ago
1 day 19 min ago
2 days 14 hours ago
3 days 7 hours ago
3 days 8 hours ago
3 days 10 hours ago
5 days 20 hours ago
5 days 23 hours ago
6 days 9 hours ago
6 days 9 hours ago