diff --git a/termux/Anlinux-debian/de-apt-xfce4.sh b/termux/Anlinux-debian/de-apt-xfce4.sh new file mode 100644 index 0000000..68dcc5b --- /dev/null +++ b/termux/Anlinux-debian/de-apt-xfce4.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +#Get the necessary components +apt-get update +apt-get install xfce4 xfce4-terminal tightvncserver -y +apt-get install xfe -y +apt-get clean + +#Setup the necessary files +mkdir ~/.vnc +cp /sdcard/Anlinux-debian/xstartup ~/.vnc/ +cp /sdcard/Anlinux-debian/vncserver-start /usr/local/bin/ +cp /sdcard/Anlinux-debian/vncserver-stop /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 Xfce4 Desktop Environment" +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 diff --git a/termux/Anlinux-debian/de-apt-xfce4.sh~ b/termux/Anlinux-debian/de-apt-xfce4.sh~ new file mode 100644 index 0000000..55c629d --- /dev/null +++ b/termux/Anlinux-debian/de-apt-xfce4.sh~ @@ -0,0 +1,44 @@ +#!/bin/bash + +#Get the necessary components +apt-get update +apt-get install xfce4 xfce4-terminal tightvncserver -y +apt-get install xfe -y +apt-get clean + +#Setup the necessary files +mkdir ~/.vnc +wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/xstartup -P ~/.vnc/ +wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/vncserver-start -P /usr/local/bin/ +wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/vncserver-stop -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 Xfce4 Desktop Environment" +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 \ No newline at end of file diff --git a/termux/Anlinux-debian/ssh-apt.sh b/termux/Anlinux-debian/ssh-apt.sh new file mode 100644 index 0000000..27f329d --- /dev/null +++ b/termux/Anlinux-debian/ssh-apt.sh @@ -0,0 +1,53 @@ +#!/bin/bash + +#Get the necessary components +apt-get update +apt-get install openssh-server -y + +#Setup the necessary files +cp /sdcard/Anlinux-debian/sshd_config /etc/ssh + +echo "You can now start OpenSSH Server by running /etc/init.d/ssh start" +echo " " +echo "The Open Server will be started at 127.0.0.1:22" +#Get the necessary components +apt-get update +apt-get install xfce4 xfce4-terminal tightvncserver -y +apt-get install xfe -y + +#Setup the necessary files +mkdir ~/.vnc +cp /sdcard/Anlinux-debian/xstartup ~/.vnc/ +cp /sdcard/Anlinux-debian/vncserver-start /usr/local/bin/ +cp /sdcard/Anlinux-debian/vncserver-stop /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 Xfce4 Desktop Environment" +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 diff --git a/termux/Anlinux-debian/ssh-apt.sh~ b/termux/Anlinux-debian/ssh-apt.sh~ new file mode 100644 index 0000000..3afa8ad --- /dev/null +++ b/termux/Anlinux-debian/ssh-apt.sh~ @@ -0,0 +1,54 @@ +#!/bin/bash + +#Get the necessary components +apt-get update +apt-get install openssh-server -y + +#Setup the necessary files +cp /sdcard/Anlinux-debian/sshd_config /etc/ssh + +echo "You can now start OpenSSH Server by running /etc/init.d/ssh start" +echo " " +echo "The Open Server will be started at 127.0.0.1:22" +#Get the necessary components +apt-get update +apt-get install xfce4 xfce4-terminal tightvncserver -y +apt-get install xfe -y +apt-get clean + +#Setup the necessary files +mkdir ~/.vnc +cp /sdcard/Anlinux-debian/xstartup ~/.vnc/ +cp /sdcard/Anlinux-debian/vncserver-start /usr/local/bin/ +cp /sdcard/Anlinux-debian/vncserver-stop /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 Xfce4 Desktop Environment" +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 diff --git a/termux/Anlinux-debian/sshd_config b/termux/Anlinux-debian/sshd_config new file mode 100644 index 0000000..5441b26 --- /dev/null +++ b/termux/Anlinux-debian/sshd_config @@ -0,0 +1 @@ +PermitRootLogin yes \ No newline at end of file diff --git a/termux/Anlinux-debian/vncserver-start b/termux/Anlinux-debian/vncserver-start new file mode 100644 index 0000000..a57a4f0 --- /dev/null +++ b/termux/Anlinux-debian/vncserver-start @@ -0,0 +1,4 @@ +export USER=root +export HOME=/root + +vncserver -geometry 1024x768 -depth 24 -name remote-desktop :1 \ No newline at end of file diff --git a/termux/Anlinux-debian/vncserver-stop b/termux/Anlinux-debian/vncserver-stop new file mode 100644 index 0000000..51f161e --- /dev/null +++ b/termux/Anlinux-debian/vncserver-stop @@ -0,0 +1,6 @@ +export USER=root +export HOME=/root + +vncserver -kill :1 +rm -rf /tmp/.X1-lock +rm -rf /tmp/.X11-unix/X1 \ No newline at end of file diff --git a/termux/Anlinux-debian/xstartup b/termux/Anlinux-debian/xstartup new file mode 100644 index 0000000..a48686a --- /dev/null +++ b/termux/Anlinux-debian/xstartup @@ -0,0 +1,3 @@ +#!/bin/bash +xrdb $HOME/.Xresources +startxfce4 & \ No newline at end of file