2012年4月7日 星期六

install nxserver on centos 6

I use matlab in linux server (centos)
Three remote control methods have different disadvantages..
XDMCP + SSH tunnel +matlab -->very very SLOW
VNC + Matlab--> crash sometimes and keypad disorders
   (press '0123456' in matlab command line, and the result shows '012456')
NXserver + Matlab --> lags when you scroll down in Matlab editor...
I can't find an excellent method in using Matlab in Centos 6...


Due to the application in a small group
the install guides on the internet are not suitable for me
so I write down some tips for myself

Environment:
Centos 6
SSH version 2 works well

Tips:
1. install
>> yum install nx freenx 

2. 
>> vi /etc/nxserver/node.conf
"SSHD_PORT=1234" 
"ENABLE_SSH_AUTHENTICATION="1"
 
>> vi /etc/ssh/sshd_config
"PasswordAuthentication yes" 

3.
service sshd restart 
 
4. 
nxserver --restart
 
5.
cat /var/lib/nxserver/home/.ssh/client.id_dsa.key
tell the client all the content of the file in some secret way
It may look like
"-----BEGIN DSA PRIVATE KEY-----
MIIBuwIBAAKBgQCXv9AzQXjxvXWskX9YomTfyG865gb4D02ZwWuRU/9
C3I9/bEWLdaWgJYkmWjjeSZyTmeoypI1iLifTHUxn3b7WNWi8AzKcVF
QU7TGVLk2CzY4dasrwxJ1f6FsT8DHTNGnxELPKRuR7KeafeFZDf+fJ3
mbX5nxrld3wi5titTnX+8s4IKv29HJguPvOK/SI7cjzA+SqNfD7qEo8CFDIm1xRf
8xAPsSKs6yZ6j1FNklfu
-----END DSA PRIVATE KEY-----" 
 
6.
download the client from the nomachine official website

 
 


沒有留言:

張貼留言