Reply
Thread Tools
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#131
Originally Posted by AndrewX192 View Post
I was able to work around this issue by running these commands after connecting:

WID=$(wmctrl -l|awk '(NF == 4)&&($4 == "NX") {print $1}')
wmctrl -i -r $WID -b toggle,fullscreen&&/usr/share/snx/set-focus $WID
snx has a timeout of 10 s to wait for the NX window to appear to apply those settings, but it seems it is not enough. I have uploaded a new release with the timeout increased to 30 s, please try it.
 

The Following User Says Thank You to maacruz For This Useful Post:
Posts: 139 | Thanked: 97 times | Joined on Nov 2010 @ United States
#132
Originally Posted by maacruz View Post
snx has a timeout of 10 s to wait for the NX window to appear to apply those settings, but it seems it is not enough. I have uploaded a new release with the timeout increased to 30 s, please try it.
This resolved the issues I was having, snx is now functional on wifi and 3G.

Thanks a lot!
 
salinmooch's Avatar
Posts: 39 | Thanked: 26 times | Joined on Mar 2008 @ On the wasatch front, UT USA
#133
I've been using snx as my goto app for doing some real work when I only have my trusty n800 and bluetooth keyboard with me. Now that it has stopped snowing I've been biking more to work and ditched my heavier laptop for the commute I have been using snx more and more but suffering somewhat without persistence of applications (tough to edit a document only to loose connection and have it close itself).

VNC is ok but a does not incorporate the protocols that allow NX and snx to work well over slow connections (like my 3G). I've tried using snx to run a vnc viewer pointed locally at the remote server - which actually works pretty well but seems overly complicated.

I tried x2go - which is great on a pc and there is a little known client for maemo. The maemo client is ok but has some bugs that make it unsuitable (and it looks like there is not further development for maemo) .

Lastly I been playing with xpra mainly via CLI but they have a nice GUI too.

I know there was some thought of making snx apps persistent, but would it be worthwhile to look at porting xpra? Just a thought from a non programmer.
 

The Following User Says Thank You to salinmooch For This Useful Post:
Posts: 139 | Thanked: 97 times | Joined on Nov 2010 @ United States
#134
Has there been any attempt to get snx to work with neatx?
 
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#135
I can't get this to work:
Code:
Nokia-N900:~$ snx user@myhost -d startx
snx: Starting xbindkeys, fullscreen key will work on nx windows
Connecting to user@myhost...
Server says: bash: line 1: nxagent: command not found
snx: xbindkeys stopped
However, nxagent is installed and running fine on the server. Does snx do something funky to PATH? PATH on the server is:
/opt/NX/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/share/java/apache-ant/bin:/opt/java/bin:/opt/java/db/bin:/opt/java/jre/bin:/opt/maven/bin:/usr/bin/core_perl

Server specs:
Code:
freenx 0.7.3-9
nxclient 3.5.0.7-1
nx-common 3.5.0-2
nxcomp 3.4.0_7-1
nxcompext 3.4.0_1-2
nxcompshad 3.4.0_3-1
nxserver 3.5.0-2
Any clues?
__________________
Author of:
  • The "Alarmed" scheduling and automation app. (Supports alarms, switching profiles, resetting the GPRS counter, setting custom commands to go off, cron syntax and much more. GUI and CLI).
  • "Reaction face-off", a two-player puzzle/knowledge/reaction game.
  • "ytcli", a simple but effective command line youtube client which allows you to play videos from the CLI instantly or download videos on a queue.
 
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#136
Originally Posted by AndrewX192 View Post
Has there been any attempt to get snx to work with neatx?
neatx is a replacement for freenx (both implement the login protocol to start the nxclient<->nxserver communication). Neither of them is needed for snx, which uses plain ssh and scripting to accomplish the same.
 
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#137
Originally Posted by shapeshifter View Post
I can't get this to work:
Code:
Nokia-N900:~$ snx user@myhost -d startx
snx: Starting xbindkeys, fullscreen key will work on nx windows
Connecting to user@myhost...
Server says: bash: line 1: nxagent: command not found
snx: xbindkeys stopped
However, nxagent is installed and running fine on the server. Does snx do something funky to PATH? PATH on the server is:
/opt/NX/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/share/java/apache-ant/bin:/opt/java/bin:/opt/java/db/bin:/opt/java/jre/bin:/opt/maven/bin:/usr/bin/core_perl

Server specs:
Code:
freenx 0.7.3-9
nxclient 3.5.0.7-1
nx-common 3.5.0-2
nxcomp 3.4.0_7-1
nxcompext 3.4.0_1-2
nxcompshad 3.4.0_3-1
nxserver 3.5.0-2
Any clues?
Login into the server, type nxagent at the command line, does it work? no? then make sure nxagent is in the path.
Once nxagent works from the command line, snx should work.
 
Posts: 139 | Thanked: 97 times | Joined on Nov 2010 @ United States
#138
Originally Posted by maacruz View Post
neatx is a replacement for freenx (both implement the login protocol to start the nxclient<->nxserver communication). Neither of them is needed for snx, which uses plain ssh and scripting to accomplish the same.
I get the following when I try to connect:

Code:
$ snx -d andrewx192@172.24.92.1 startxfce4
snx: xbindkeys is already running
Connecting to andrewx192@172.24.92.1...
Server says:
Server says: NXAGENT - Version 3.5.0
Server says:
Server says: Copyright (C) 2001, 2011 NoMachine.
Server says: See http://www.nomachine.com/ for more information.
Server says:
Server says: Info: Agent running with pid '25430'.
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
Server says: Session: Starting session at 'Sun Aug 21 10:59:05 2011'.
Server says: Info: Proxy running in server mode with pid '25430'.
Server says: Info: Waiting for connection from '127.0.0.1' on port '5011'.
sh: [[: not found
sh: [[: not found
sh: [[: not found
Client says:
Client says: NXPROXY - Version 3.4.0
Client says:
Client says: Copyright (C) 2001, 2007 NoMachine.
Client says: See http://www.nomachine.com/ for more information.
Client says:
Client says: Info: Proxy running in client mode with pid '9401'.
Client says: Session: Starting session at 'Sun Aug 21 10:59:50 2011'.
Client says: Info: Connecting to remote host 'localhost:5011'.
Client says: Info: Connection to remote proxy 'localhost:5011' established.
sh: [[: not found
sh: [[: not found
Client says: Warning: Connected to remote version 3.5.0 with local version 3.4.0.
Client says: Warning: Consider checking http://www.nomachine.com/ for updates.
Client says: Info: Connection with remote proxy completed.
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
Client says: Info: No proxy cookie was provided for authentication.
Client says: Info: Forwarding the real X authorization cookie.
Client says: Info: Using MODEM link parameters 256/24/1/0.
Client says: Info: Using cache parameters 4/4096KB/8192KB/8192KB.
Client says: Info: Using pack method 'adaptive-3' with session ''.
Client says: Info: Using ZLIB data compression 1/1/32.
Client says: Info: Using ZLIB stream compression 9/9.
Client says: Info: No suitable cache file found.
Client says: Info: Forwarding X11 connections to display ':0.0'.
Client says: Session: Session started at 'Sun Aug 21 10:59:51 2011'.
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
sh: [[: not found
Client says: Info: Established X server connection.
Client says: Info: Using shared memory parameters 1/2048K.
sh: [[: not found
 
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#139
Originally Posted by AndrewX192 View Post
I get the following when I try to connect:

Code:
$ snx -d andrewx192@172.24.92.1 startxfce4
snx: xbindkeys is already running
Connecting to andrewx192@172.24.92.1...
...
sh: [[: not found
...
snx uses bash syntax, so it will work if your shell is bash or ash (even busybox's ash).
If possible, make sure your shell is bash (I'll look into using a more compatible sh syntax)

Last edited by maacruz; 2011-08-21 at 18:23.
 
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#140
Originally Posted by maacruz View Post
Login into the server, type nxagent at the command line, does it work? no? then make sure nxagent is in the path.
Once nxagent works from the command line, snx should work.
No offence, but did you even read my post? I explicitly mentioned my PATH (which includes /opt/NX/bin) and that nxagent does indeed work on the server...
__________________
Author of:
  • The "Alarmed" scheduling and automation app. (Supports alarms, switching profiles, resetting the GPRS counter, setting custom commands to go off, cron syntax and much more. GUI and CLI).
  • "Reaction face-off", a two-player puzzle/knowledge/reaction game.
  • "ytcli", a simple but effective command line youtube client which allows you to play videos from the CLI instantly or download videos on a queue.
 
Reply

Tags
remote desktop

Thread Tools

 
Forum Jump


All times are GMT. The time now is 12:56.