Forum / NoMachine for Linux / NoMachine/Gnome Desktop not working on E2C CentOS 7 instance
Tagged: e2c CentOS 7
- This topic has 1 reply, 2 voices, and was last updated 9 years ago by Britgirl.
-
AuthorPosts
-
September 29, 2015 at 08:28 #8399pvnParticipant
After creating an “CentOS 7 (x86_64) with Updates HVM” instance i take the following installation/configuration steps.
yum groupinstall gnome-desktop internet-browser
# Install nomachine on server
sudo -s
cd /var/tmp
wget http://download.nomachine.com/download/4.6/Linux/nomachine_4.6.16_1_x86_64.rpm
rpm -ivh nomachine_4.6.16_1_x86_64.rpm
rm /var/tmp/nomachine_4.6.16_1_x86_64.rpm
exit# Install Xvfb
sudo yum install xorg-x11-server-Xvfb# Start nxserver headless for user oracle
sudo -s cat > /etc/init.d/nxheadless << EOF2
#!/bin/bashexport NOMACHINE_USER=oracle
case \$1 in
‘start’)
# Create a random cookie (a 16-hex-digit string)
COOKIE=\$(ps -ef | md5sum | cut -f 1 -d ” “)
# Create Xvfb authority file
AUTHFILE=\$HOME/Xvfb-0.auth
xauth -f \$AUTHFILE add :0 MIT-MAGIC-COOKIE-1 \$COOKIE
# Add the cookie to the user’s authority file
xauth add :0 MIT-MAGIC-COOKIE-1 \$COOKIE
# Run Xvfb with 24-bit screen depth
Xvfb :0 -auth \$AUTHFILE -screen 0 1440x900x24 &
# Run the desktop environment
export DISPLAY=:0
nohup /etc/gdm/Xsession gnome-session &
# Restart the NoMachine server
/usr/NX/bin/nxserver –restart
;;
‘stop’)
# kill Xvfb
ps -ef | grep “Xvfb :0” | awk ‘{ print “kill -9 ” \$2 }’|bash
# remove lock
rm -f /tmp/.X0-lock
# Restart the NoMachine server
/usr/NX/bin/nxserver –restart
;;
*)
echo “usage: \$0 {start|stop}”
exit
;;
esac
exit
EOF2chgrp root /etc/init.d/nxheadless
chmod 750 /etc/init.d/nxheadlessecho “# Create symbolic links to run-level scripts”
ln -s /etc/init.d/nxheadless /etc/rc.d/rc0.d/K01nxheadless
ln -s /etc/init.d/nxheadless /etc/rc.d/rc3.d/S99nxheadless
ln -s /etc/init.d/nxheadless /etc/rc.d/rc5.d/S99nxheadlessAlso the private/public key is set correctly for a new created user ‘oracle’.
I am able to connect successfully to the instance using the NoMachine client using an SSL tunnel.Only the desktop does not start and only a black screen is shown.
I do not see any related errors in /var/log/messages or nxserver seems to start fine.
After a while the error “A problem has occurred and the system can’t recover. All extensions have been disabled as a precaution.”Any ideas, hints, tips,….. solutions?
Cheers,
Peter
October 6, 2015 at 11:45 #8512BritgirlKeymasterTry the latest packages of version 5 that we just released and let us know if you’re still having problems. This version has a feature specifically for headless Linux servers https://www.nomachine.com/FR10L02842.
-
AuthorPosts
This topic was marked as solved, you can't post.