Ubuntu Server Tips

Différence entre les versions 2011/05/01 09:26 et 2011/05/01 09:26.
!! Boot error whith Natty

I got the same error this past weekend all I did was boot from the live CD and chrooted my Natty / using the following commands:

*    sudo mount /dev/sdXx /mnt
*    sudo mount -o bind /dev /mnt/dev
*    sudo mount -o bind /sys /mnt/sys
*    sudo mount -o bind /proc /mnt/proc
*    sudo chroot /mnt

Once at the prompt I reinstall grub:

* grub-install /dev/sda
* and then updated grub
* update-grub
* then Ctrl-D twice to exit, and reboot.

----

!! To set passwords for users from the command line, type:
!! Changement mot de passe pour les utilisateurs
Followed by entering username:password pairs, one pair per line. Enter CTRL+D when finished.
~$ chpasswd
{{user1:passwd1
user2:passwd2
}}
CTRL+D

~$ sudo chpasswd root:*** {br} CTRL+D

----



!! Nettoyage des anciennes images

~# dpkg -l | grep linux | cut -f 3 -d " " {br} ~# apt-get remove linux-image-2.6.32-28-generic-pae --purge

----

!! Ugrade distribution

~$ do-release-upgrade