Wednesday, May 7, 2014

when NXclient refuses to connect (love from windows to ubuntu)

So while i was busy installing devstack and vncserver .. the NXMachine felt left out..

for some reason the connection was reset and now whenever i would try to connect to my ubunut dekstop ..it would refuse in various forms like ( connection time out . connection was reset by peer.  or jsut blank screen hand up )


root@njain2:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:        12.04
Codename:       precise

--for connection reset by pee
    removing caches from /usr..nx worked

-- for  connection with server was slot
 Error 134: Protocol error
this worked:-
1) remove /tmp/*  rm -rf /tmp/*
2) restart and make sure /tmp/ exist
sudo /etc/init.d/nxserver restart
Xvfb :0 -auth ~/Xvfb-0.auth -screen 0 1024x768x24 &
DISPLAY=:0 nohup /etc/X11/Xsession gnome-session &






in general if nothing works try 


 

remove and reinstall and restart
 sudo dpkg -r nomachine
 sudo dpkg --purge  nomachine
 rm -rf /etc/NX/

  wget http://download.nomachine.com/download/4.2/Linux/nomachine_4.2.27_1_amd64.deb
 sudo dpkg -i /root/Downloads/nomachine_4.2.25_1_amd64.deb

sudo /etc/init.d/nxserver status
sudo /etc/init.d/nxserver restart



for headless server:-
sudo apt-get install xvfb
COOKIE=`ps -ef | md5sum | cut -f 1 -d " "`
xauth -f ~/Xvfb-0.auth add :0 MIT-MAGIC-COOKIE-1 $COOKIE
xauth add :0 MIT-MAGIC-COOKIE-1 $COOKIE
Xvfb :0 -auth ~/Xvfb-0.auth -screen 0 1024x768x24 &
DISPLAY=:0 nohup /etc/X11/Xsession gnome-session &





the links used for above history were

https://www.nomachine.com/AR10K00710
http://www.humans-enabled.com/2012/04/how-to-install-freenx-server-on-ubuntu.html
https://www.nomachine.com/DT09K00056
http://ubuntuforums.org/showthread.php?t=1238554

good luck! i know its frustrating to get stuck ..when things break randomly

No comments:

Post a Comment