SAMBA (Domain Controller) Server For Small Workgroups With Ubuntu 5.10 "Breezy Badger" - Page 3
2 Installing And Configuring The Rest Of The System
Enable root user
Now I can login with the username and password i entered above. First I enable the root user for ease of installation. You can disable it later if you want.
sudo
passwd root
su
Now we are logged in as root user.
Configure The Network
Because the Ubuntu 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):
# This file describes the network interfaces available on your system |
Then restart your network:
/etc/init.d/networking restart
Edit /etc/hosts and add your new IP address(es):
127.0.0.1 localhost.localdomain localhost server1 |
Setting The Hostname
echo server1.example.com
> /etc/hostname
/bin/hostname -F /etc/hostname
Edit /etc/apt/sources.list And Update Your Linux Installation
Edit /etc/apt/sources.list. It should look like this:
# deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted |
Then run
apt-get update
apt-get upgrade
Install SSH Daemon
apt-get install ssh openssh-server
The Next Steps...
Now you can login to your Server with an SSH Client like putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/). Its easier to follow this howto if you connect to your server with putty and copy and paste the commands. If you want to edit config files on the server, you can use commandline editors like vi, pico or joe or use a program like WinSCP (http://winscp.net/eng/index.php) to edit the files over your SSH connection in a Windows client.
Quota
apt-get install quota
Edit /etc/fstab to look like this (I added ,usrquota,grpquota to the partitions with the mount point / and /home):
# /etc/fstab: static file system information. |
Then run:
touch /quota.user /quota.group
chmod 600 /quota.*
mount -o remount /
touch /home/quota.user
/home/quota.group
chmod 600 /home/quota.*
mount -o remount /home
quotacheck -avugm
quotaon -avug
Sub pages
Suggested articles
2 Comment(s)
Comments
Instead of using "sudo passwd root" to switch user, you can also use "sudo su -". just for information
Or just type "su" and it will ask for a password, now you will be SuperUser for a little amount of time.