Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sed -i "s/PasswordAuthentication\ no/PasswordAuthentication\ yes/" /etc/ssh/sshd_config
- systemctl restart sshd
- yum -y -q install epel-release
- yum -y -q install openbox tigervnc-server wget
- yum -y -q install gtk2 java-1.8.0-openjdk "@Development Tools"
- yum -y -q install clang
- 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
- $(cd /home/vagrant && tar xf eclipse-cpp-neon-2-linux-gtk-x86_64.tar.gz)
- chown -R vagrant:vagrant /home/vagrant/eclipse
- rm /home/vagrant/eclipse-cpp-neon-2-linux-gtk-x86_64.tar.gz*
- mkdir -p /home/vagrant/.vnc
- vncpasswd -f <<<"vagrant" > /home/vagrant/.vnc/passwd
- (
- cat<<'EOF'
- #!/bin/sh
- unset SESSION_MANAGER
- unset DBUS_SESSION_BUS_ADDRESS
- openbox-session &
- exec /home/vagrant/eclipse/eclipse
- EOF
- ) > /home/vagrant/.vnc/xstartup
- chown -R vagrant:vagrant /home/vagrant/.vnc
- chmod 700 /home/vagrant/.vnc
- chmod 600 /home/vagrant/.vnc/passwd
- chmod 755 /home/vagrant/.vnc/xstartup
- cp /usr/lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service
- sed -i 's/<USER>/vagrant/g' /etc/systemd/system/vncserver@.service
- sed -i 's#/usr/bin/vncserver\ %i#/usr/bin/vncserver\ %i\ -geometry\ 1920x1080#g' /etc/systemd/system/vncserver@.service
- systemctl daemon-reload
- systemctl enable vncserver@:10.service
- systemctl start vncserver@:10.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement