Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. sed -i "s/PasswordAuthentication\ no/PasswordAuthentication\ yes/" /etc/ssh/sshd_config
  2. systemctl restart sshd
  3.  
  4. yum -y -q install epel-release
  5. yum -y -q install openbox tigervnc-server wget
  6. yum -y -q install gtk2 java-1.8.0-openjdk "@Development Tools"
  7. yum -y -q install clang
  8.  
  9. wget http://eclipse.mirror.triple-it.nl/technology/epp/downloads/release/neon/2/eclipse-cpp-neon-2-linux-gtk-x86_64.tar.gz -q -P /home/vagrant
  10. $(cd /home/vagrant && tar xf eclipse-cpp-neon-2-linux-gtk-x86_64.tar.gz)
  11. chown -R vagrant:vagrant /home/vagrant/eclipse
  12. rm /home/vagrant/eclipse-cpp-neon-2-linux-gtk-x86_64.tar.gz*
  13.  
  14. mkdir -p /home/vagrant/.vnc
  15. vncpasswd -f <<<"vagrant" > /home/vagrant/.vnc/passwd
  16. (
  17. cat<<'EOF'
  18. #!/bin/sh
  19.  
  20. unset SESSION_MANAGER
  21. unset DBUS_SESSION_BUS_ADDRESS
  22. openbox-session &
  23. exec /home/vagrant/eclipse/eclipse
  24.  
  25. EOF
  26. ) > /home/vagrant/.vnc/xstartup
  27.  
  28. chown -R vagrant:vagrant /home/vagrant/.vnc
  29. chmod 700 /home/vagrant/.vnc
  30. chmod 600 /home/vagrant/.vnc/passwd
  31. chmod 755 /home/vagrant/.vnc/xstartup
  32.  
  33. cp /usr/lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service
  34. sed -i 's/<USER>/vagrant/g' /etc/systemd/system/vncserver@.service
  35. sed -i 's#/usr/bin/vncserver\ %i#/usr/bin/vncserver\ %i\ -geometry\ 1920x1080#g' /etc/systemd/system/vncserver@.service
  36.  
  37. systemctl daemon-reload
  38. systemctl enable vncserver@:10.service
  39. systemctl start vncserver@:10.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement