Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
exalab999 committed Nov 20, 2022
1 parent 120d8af commit ecadb2a
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Experimental/window_manager/apt/TWM/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## For Apt based distro only

How to run:

`wget https://github.com/EXALAB/Anlinux-Resources/raw/master/Beta/windowmanager/apt/TWM/de-apt-twm.sh && bash de-apt-twm.sh`
43 changes: 43 additions & 0 deletions Experimental/window_manager/apt/TWM/de-apt-twm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash

#Get the necessary components
apt-get update
apt-get install tightvncserver dbus-x11 twm -y
apt-get clean

#Setup the necessary files
mkdir ~/.vnc
wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Experimental/window_manager/apt/TWM/xstartup --no-check-certificate -P ~/.vnc/
wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Experimental/window_manager/apt/TWM/vncserver-start --no-check-certificate -P /usr/local/bin/
wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Experimental/window_manager/apt/TWM/vncserver-stop --no-check-certificate -P /usr/local/bin/

chmod +x ~/.vnc/xstartup
chmod +x /usr/local/bin/vncserver-start
chmod +x /usr/local/bin/vncserver-stop

echo " "
echo "You can now start vncserver by running vncserver-start"
echo " "
echo "It will ask you to enter a password when first time starting it."
echo " "
echo "The VNC Server will be started at 127.0.0.1:5901"
echo " "
echo "You can connect to this address with a VNC Viewer you prefer"
echo " "
echo "Connect to this address will open a window with TWM"
echo " "
echo " "
echo " "
echo "Running vncserver-start"
echo " "
echo " "
echo " "
echo "To Kill VNC Server just run vncserver-stop"
echo " "
echo " "
echo " "

echo "export DISPLAY=":1"" >> /etc/profile
source /etc/profile

vncserver-start
4 changes: 4 additions & 0 deletions Experimental/window_manager/apt/TWM/vncserver-start
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export USER=root
export HOME=/root

vncserver -geometry 1024x768 -depth 24 -name remote-desktop :1
6 changes: 6 additions & 0 deletions Experimental/window_manager/apt/TWM/vncserver-stop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export USER=root
export HOME=/root

vncserver -kill :1
rm -rf /tmp/.X1-lock
rm -rf /tmp/.X11-unix/X1
3 changes: 3 additions & 0 deletions Experimental/window_manager/apt/TWM/xstartup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
xrdb $HOME/.Xresources
startx

0 comments on commit ecadb2a

Please sign in to comment.