Start a VNC server during startup
This commit is contained in:
parent
d9a9ce0a86
commit
cb5ff20378
4 changed files with 11 additions and 0 deletions
|
|
@ -17,4 +17,5 @@ connect-to-network &
|
|||
(sleep 5s && killall dunst) &
|
||||
$HOME/.urxvt_default_res &
|
||||
$HOME/.update_wallpaper &
|
||||
x0vncserver -display :0 -passwordfile $HOME/.vnc/passwd -AlwaysShared &
|
||||
exec openbox-session
|
||||
|
|
|
|||
|
|
@ -21,6 +21,9 @@
|
|||
-A ufw-user-input -p tcp --dport 22 -j ACCEPT
|
||||
-A ufw-user-input -p udp --dport 22 -j ACCEPT
|
||||
|
||||
### tuple ### allow tcp 5900 0.0.0.0/0 any 0.0.0.0/0 VNC - in
|
||||
-A ufw-user-input -p tcp --dport 5900 -j ACCEPT -m comment --comment 'dapp_VNC'
|
||||
|
||||
### END RULES ###
|
||||
|
||||
### LOGGING ###
|
||||
|
|
|
|||
|
|
@ -21,6 +21,9 @@
|
|||
-A ufw6-user-input -p tcp --dport 22 -j ACCEPT
|
||||
-A ufw6-user-input -p udp --dport 22 -j ACCEPT
|
||||
|
||||
### tuple ### allow tcp 5900 ::/0 any ::/0 VNC - in
|
||||
-A ufw6-user-input -p tcp --dport 5900 -j ACCEPT -m comment --comment 'dapp_VNC'
|
||||
|
||||
### END RULES ###
|
||||
|
||||
### LOGGING ###
|
||||
|
|
|
|||
|
|
@ -251,6 +251,10 @@ function update_live_env() {
|
|||
# udevil fix
|
||||
echo "mkdir /media" >> "$LIVE_DIR/airootfs/root/customize_airootfs.sh"
|
||||
|
||||
# VNC password
|
||||
echo "mkdir '/home/$username/.vnc'" >> "$LIVE_DIR/airootfs/root/customize_airootfs.sh"
|
||||
echo "echo '$TECH_PASSWORD' | vncpasswd -f > '/home/$username/.vnc/passwd'" >> "$LIVE_DIR/airootfs/root/customize_airootfs.sh"
|
||||
|
||||
# Wallpaper
|
||||
mkdir -p "$LIVE_DIR/airootfs/usr/share/wallpaper"
|
||||
cp "$ROOT_DIR/Images/Linux.png" "$LIVE_DIR/airootfs/usr/share/wallpaper/burned.in"
|
||||
|
|
|
|||
Loading…
Reference in a new issue