Linux init after installation
PROBLEMS #
sudo takes a long time (when network having issues) #
Reason: distros should have added new host name to /etc/hosts, if the name is changed/added during installation ref.
echo -n '127.0.0.1 ' >> /etc/hosts && cat /proc/sys/kernel/hostname >> /etc/hosts
or:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 <ADD_YOUR_HOST_NAME>
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 <ADD_YOURS_HERE>
annoying “software updater” #
sudo sed -i 's/1/0/' /etc/apt/apt.conf.d/20auto-upgrades ; cat /etc/apt/apt.conf.d/20auto-upgrades
sudo apt-get remove --auto-remove gnome-software
empty/black screen #
If screen blacked out after 1st reboot, the problem is gfxmode $linux_gfx_mode
in grub.
Solutions: (for many servers, see solution 3 directly.)
- Temporarily delete by pressing “shift” during boot and “e” (edit).
- For permernent effect, oficial solution is to edit
/etc/default/grub
, uncommentGRUB_GFXMODE
and addGRUB_GFXPAYLOAD
as the same value, then runupdate-grub && reboot
. - If the oficial solution does not work, try edit
/etc/grub.d/10_linux
, comment out the usage ofgfxmode
(the entireif ... then
), and runupdate-grub
.
before comment:
after comment:
- Although renaming defination of
function gfxmode
directly is easier and can work, (can be done automatically by simplesed
/py regular expression), this will raise an error and pause for 3s during boot.
FROM DESKTOP TO TEXT/TERMINAL MODE #
See: force text mode
FROM TEXT/TERMINAL TO DESKTOP MODE #
See: /vnc
VNC (REMOTE DESKTOP) #
See: /vnc
keywords: nix init