From 0dde576570c9b63a023bc97ac2194d1622e72b63 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Mon, 8 Oct 2018 20:01:43 +0530 Subject: [PATCH] Add autostart VNC server scripts. Add netcat pkg. --- airootfs/etc/skel/.xinitrc | 2 ++ airootfs/etc/skel/.zprofile | 6 ++++++ packages.x86_64 | 2 ++ 3 files changed, 10 insertions(+) create mode 100644 airootfs/etc/skel/.xinitrc create mode 100644 airootfs/etc/skel/.zprofile diff --git a/airootfs/etc/skel/.xinitrc b/airootfs/etc/skel/.xinitrc new file mode 100644 index 0000000..16ad233 --- /dev/null +++ b/airootfs/etc/skel/.xinitrc @@ -0,0 +1,2 @@ +twm & +exec vncviewer -shared -ViewOnly -Fullscreen 10.0.0.1 diff --git a/airootfs/etc/skel/.zprofile b/airootfs/etc/skel/.zprofile new file mode 100644 index 0000000..af96f71 --- /dev/null +++ b/airootfs/etc/skel/.zprofile @@ -0,0 +1,6 @@ +while :; do + while ! nc -z 10.0.0.1 5900; do + sleep 1 + done + exec startx +done diff --git a/packages.x86_64 b/packages.x86_64 index 4da95a0..8a9a4b0 100644 --- a/packages.x86_64 +++ b/packages.x86_64 @@ -70,3 +70,5 @@ xf86-video-intel xf86-video-nouveau mesa tigervnc +gnu-netcat +twm