Page Actions:
|
Priekšnoteikumi: Ubuntu Server uzstādīšana |
sudo apt-get update sudo apt-get dist-upgrade
#!/bin/bash SHELL=/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin echo "******************* " `date` " *******************">> /var/log/auto_update.log (/usr/bin/aptitude -y update && /usr/bin/aptitude -y safe-upgrade) >> /var/log/auto_update.log 2>&1
chown root:root /home/bin/auto_update chmod 770 /home/bin/auto_update
crontab -e
0 8 * * 7 /home/bin/auto_update
ln -sf /usr/share/zoneinfo/EET /etc/localtime
apt-get install ntp

sudo passwd [sudo] password for student:Student007 Enter new UNIX password:Student007 Retype new UNIX password:Student007 passwd: password updated successfully
su - root Password:Student007
apt-get purge apparmor
uname -a Linux myserver 2.6.22-14-server #1 SMP Sun Oct 14 23:34:23 GMT 2007 i686 GNU/Linux
apt-get install linux-image-generic … Do you want to continue [Y/n]? y
vi /boot/grub/menu.lst
… ## ## End Default Options ## title Ubuntu 7.10, kernel 2.6.22-14-server root (hd0,0) kernel /boot/vmlinuz-2.6.22-14-server root=UUID=9849e99b-aa0e-4fd2-a7d4-4adcd6a3556f ro quiet splash initrd /boot/initrd.img-2.6.22-14-server quiet title Ubuntu 7.10, kernel 2.6.22-14-server (recovery mode) root (hd0,0) kernel /boot/vmlinuz-2.6.22-14-server root=UUID=9849e99b-aa0e-4fd2-a7d4-4adcd6a3556f ro single initrd /boot/initrd.img-2.6.22-14-server title Ubuntu 7.10, kernel 2.6.22-14-generic root (hd0,0) kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=9849e99b-aa0e-4fd2-a7d4-4adcd6a3556f ro quiet splash initrd /boot/initrd.img-2.6.22-14-generic quiet ...
# You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not use 'savedefault' or your # array will desync and will not let you boot your system. default 2
reboot
uname -a
Linux myserver 2.6.22-14-generic #1 SMP Tue Dec 18 08:02:57 UTC 2007 i686 GNU/Linux
