I have ran the following command, and now have a booting fluxbox gui interface.
Code: Select all
sudo mkdir /etc/systemd/system/getty@tty1.service.d
sudo nano /etc/systemd/system/getty@tty1.service.d/override.conf
Code: Select all
[Service]
Type=simple
ExecStart=
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin $username %I $TERM
Code: Select all
nano .profile (not as root)
Code: Select all
#Startx Automatically
[ "$(tty)" = "/dev/tty1" ] && exec startx
Code: Select all
sudo update-alternatives --config x-session-manager
sudo update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/bin/startfluxbox 40
Code: Select all
sudo /usr/bin/xauth generate :0 . trusted
sudo /usr/bin/xauth add ${HOST}:0 . $(xxd -l 16 -p /dev/urandom)
sudo /usr/bin/x11vnc -storepasswd
Code: Select all
x11vnc -auth guess -forever -loop - noxdamage -repeat -rfbauth ~/.vnc/passwd -rfbport 5970 -shared -o /var/log/x11vnc.log &
Moderator edit (Aki) Tue Jun 6 06:03:46 UTC 2023: message edited to include code tags. Please use code tags to include code or logs, see https://www.phpbb.com/community/help/bbcode#f2r1 . Thanks.