Skip to content

Commit

Permalink
Create xfce4_de.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrahacx committed Aug 12, 2019
1 parent ad35fd4 commit 08d1fd5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Fedora/XFCE4/xfce4_de.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash

#Get the necessary components
yum groupinstall xfce-desktop-environment -y
yum install tigervnc-server -y

#Setup the necessary files
mkdir ~/.vnc
https://raw.githubusercontent.com/Techriz/AndronixOrigin/master/Fedora/XFCE4/xstartup -P ~/.vnc/
wget https://raw.githubusercontent.com/Techriz/AndronixOrigin/master/Fedora/LXDE/vncserver-start -P /usr/local/bin/
wget https://raw.githubusercontent.com/Techriz/AndronixOrigin/master/Fedora/LXDE/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

0 comments on commit 08d1fd5

Please sign in to comment.