Often used
System update
- emerge --sync
- emerge --update --deep --newuse --with-bdeps=y @world
- revdep-rebuild
- emerge --depclean
Hetzner VNC rescue
- https://robot.your-server.de/server
- Rescue -> vKVM 64 bit
- ssh root@<host> -p 47772 -L5901:localhost:5901
- cat /opt/vkvm/vkvm-pass
- vnc localhost:1
Or in case the os does not boot:
- https://robot.your-server.de/server
- Rescue -> Linux 64 bit
- ssh root@<host>
- cd /mnt
- mkdir root
- mount /dev/md126 root
- cd root
- mount /dev/md127 boot
- mount -t proc proc /mnt/root/proc
- mount --rbind /sys /mnt/root/sys
- mount --rbind /dev /mnt/root/dev
- chroot /mnt/root /bin/bash
- source /etc/profile
- export PS1="(chroot) $PS1"
If the boot setup was forgotten:
- genkernel --install --no-ramdisk-modules --mdadm --disklabel initramfs
- cd /boot
- mv initramfs-genkernel-x86_64-<kernelversion> initramfs-<kernelversion>.img
- grub-mkconfig -o /boot/grub/grub.cfg