Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Install freenx
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, ... 28, 29, 30  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
robostac
n00b
n00b


Joined: 26 Aug 2003
Posts: 34

PostPosted: Wed Sep 01, 2004 10:01 am    Post subject: Reply with quote

I'm not sure exactly what the nxsetup script did, but after that was run, it worked, and before it was run it didn't.
Back to top
View user's profile Send private message
skobar
n00b
n00b


Joined: 31 Aug 2004
Posts: 7

PostPosted: Wed Sep 01, 2004 12:18 pm    Post subject: Reply with quote

I've seen, that the /usr/NX directory was not owned by user nx, so he was not able to write files there. After doing a

Code:
chown -R nx.root /usr/NX/


The client is able to authenticate itself. Now if have the following error in the 'details...':

Code:
[...]
NX> 105 startsession --session="test" --type="unix-kde" --cache="8M" --images="32M" --cookie="81380c0b71e19140291cd05d096fc2be" --link="adsl" --backingstore="when_requested" --geometry="800x600+880+212" --keyboard="us(pc105euro)" --kbtype="pc105/us(pc105euro)" --media="0" --agent_server="" --agent_user="" --agent_password=""  --screeninfo="800x600x24+render"
NX> 1000 NXNODE - Version 1.4.0-01 OS (GPL)
NX> 700 Session id: host-1000-9D8C678C0A5128CE10D81B3B13BB6741
NX> 705 Session display: 1000
NX> 703 Session type: unix-kde
NX> 701 Proxy cookie: 273c4a2b033d0baa0048a2e5ece7c098
NX> 702 Proxy IP: 127.0.0.1
NX> 706 Agent cookie: 81380c0b71e19140291cd05d096fc2be
NX> 704 Session cache: unix-kde
NX> 707 SSL tunneling: 0
NX> 710 Session status: running
NX> 1002 Commit
NX> 1006 Session status: running
NX> 105 bye
NX> 503 Error: undefined command: 'bye'
NX> 105


But it looks better now :-)

When I try to connect with a Windows-Laptop it connects shortly, but then the connection is stopped (Details from Windows-PC):

Code:
Info: End of session requested by remote proxy
Back to top
View user's profile Send private message
nuance9
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2002
Posts: 85

PostPosted: Wed Sep 01, 2004 3:25 pm    Post subject: Reply with quote

I tried following the manual instruction and the ebuild in this thread and the ebuild in portage and get the "can't authenticate" error.
Back to top
View user's profile Send private message
Dr_Smack
n00b
n00b


Joined: 15 Jul 2004
Posts: 18

PostPosted: Wed Sep 01, 2004 4:29 pm    Post subject: Reply with quote

I tried the ebuilds first, but I kept getting the authentication error, so I unmerged all the nx stuff and did the manual install. I can connect; I get a message box stating there was a problem with the cache (because I've never connected before, so that's fine), but I don't get anything after that. I just get a balck screen. If I cat my session file in my .nx directory it has this error:
Code:
NXDialog: WARNING! Couldn't invoke 'nxclient'. Error is 2 'No such file or directory'.
Warning: Couldn't invoke 'nxclient'. Error is 2 'No such file or directory'.
NXDialog: WARNING! Trying with path '/usr/NX/bin:/opt/NX/bin:/usr/local/NX/bin:/usr/bin:/bin:/usr/sbin:/sbin'.
Warning: Trying with path '/usr/NX/bin:/opt/NX/bin:/usr/local/NX/bin:/usr/bin:/bin:/usr/sbin:/sbin'.
Info: Using render cleanup parameters 8/20/23/24/25/26.
Xlib:  extension "XInputExtension" missing on display ":1000.0".
Failed to get list of devices
Info: Using image cleanup parameters 0/0/0/0.

This is interesting because nxclient is in /usr/NX/bin, which is the first directory in its path. I'm assuming this could be my problem, but I don't know why it would complain the file isn't there (it is chmod'ed 755, so permissions should not be an issue).
Back to top
View user's profile Send private message
sphantom
n00b
n00b


Joined: 16 Jul 2003
Posts: 72

PostPosted: Wed Sep 01, 2004 7:28 pm    Post subject: Reply with quote

Ok, well i umerged, rm -rf'd, and then remerged the portage nxserver-freenx package. It still had the authentication error, but this was indeed fixed by a 'chown -R nx:root /usr/NX', so the ebuild should probably be modified to change the permissions of the entire /usr/NX, not just a few of its subdirectories.

However, now i get a connection timeout. with no details offered.. :x
[UPDATE]: not sure what i did (if anything), but now I "authenticate" fine initially, get a session list, but it dies when i create a new session, with..... wait for it....... an authentication error... (wierd considering im already authenticated)
[UPDATE2]: well, somehow the permissions got messed up again, once i fixed them, all authentication started working and it works fine from a knoppix laptop, but not when i test it locally.. I get the same "undefined command: bye" error that others are getting.

We're ALMOST there.. I think people should be working on testing the portage ebuilds, rather than manually installing, but thats just an opinion..


-sp


Last edited by sphantom on Wed Sep 01, 2004 8:41 pm; edited 2 times in total
Back to top
View user's profile Send private message
Dr_Smack
n00b
n00b


Joined: 15 Jul 2004
Posts: 18

PostPosted: Wed Sep 01, 2004 7:48 pm    Post subject: Reply with quote

sphantom wrote:
We're ALMOST there.. I think people should be working on testing the portage ebuilds, rather than manually installing, but thats just an opinion..

I agree, to a point. I've never used NX before, so I'm just trying to get it working in any way I can, first. By doing that, I can then have an idea of when things are going wrong as well as having something against which I can compare when looking at the ebuilds. Like most everyone, I want working ebuilds, as well, otherwise we lose the strength of Gentoo and its Portage system.
Back to top
View user's profile Send private message
nuance9
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2002
Posts: 85

PostPosted: Wed Sep 01, 2004 10:27 pm    Post subject: Reply with quote

Ok. I tried removing all the ebuilds and reinstalling using the manual method again. I have also double checked the permissions.

I still get the exact same error:

NX> 203 NXSSH running with pid: 3836
NX> 200 Connected to address: 192.168.168.1 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.

I can login fine with SSH. I thought I would give it a go trying to login via nxclient from the local machine.

That doesn't work either. I get this error:

nxclient: cannot connect to X server

Any suggestions?
Back to top
View user's profile Send private message
Shadowfiend
n00b
n00b


Joined: 04 Oct 2003
Posts: 11
Location: Georgia, US

PostPosted: Wed Sep 01, 2004 11:45 pm    Post subject: Reply with quote

I've gotten past the initial authentication error (this is someone connecting from an outside Windows machine to my computer running freenx server from portage), but now this comes up:

Code:

NX> 105 login
NX> 101 User: belinsky
NX> 102 Password: 
NX> 103 Welcome to: localhost user: belinsky
NX> 105 startsession --session="antonio" --type="unix-kde" --cache="8M" --images="32M" --cookie="57d46225f235d94388ae4060dbf0de26" --link="adsl" --backingstore="never" --geometry="fullscreen" --keyboard="us" --kbtype="pc102/us" --media="0" --agent_server="" --agent_user="" --agent_password=""
 
NX> 204 Authentication failed.
NX> 105 /usr/NX/bin/nxserver: line 227: /usr/NX/var/db//running/sessionId{A077CC61AE02DB3FB618A7734343D7FF}: No such file or directory


The sessionId, naturally, changes; in addition, /usr/NX/var/db/running doesn't exist (and, by consequence, neither does /usr/NX/var/db/running/sessionId/*).

Finally, in emerging the nxclient from ebuilds, I constantly get a segfault. Any ideas on what might be causing that? I have gcc-3.3.4-r1
_________________
OEW - OpenEduWeb
QApacheConf
Back to top
View user's profile Send private message
nuance9
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2002
Posts: 85

PostPosted: Thu Sep 02, 2004 2:14 am    Post subject: Reply with quote

It's working for me.

I erased everything I had done and unmerged everything.

I installed the ebuild using:

Code:
ACCEPT_KEYWORDS="~x86" emerge nxserver-freenx


Next:

Code:
chown -R nx:root /usr/NX


Next:

Code:
nxserver --adduser <$username>
nxserver --passwd <$username>


That's it. Now it works. And it is FAST!!! Blows the socks of VNC.
Back to top
View user's profile Send private message
odborg
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2002
Posts: 89
Location: Aalborg, Denmark

PostPosted: Thu Sep 02, 2004 4:36 am    Post subject: Reply with quote

in addition to the above, I had to do:
Code:

chmod u+x /usr/NX/var/db/*


I have now setup the nxserver-freenx ebuild on two machines (a and b). I can connect to machine a from windows (through vmware) on machine b but not from the linux nxclient on machine b.

i can not connect to machine b from machine a

weird :/
Back to top
View user's profile Send private message
sphantom
n00b
n00b


Joined: 16 Jul 2003
Posts: 72

PostPosted: Thu Sep 02, 2004 4:44 am    Post subject: Reply with quote

nuance9 wrote:
It's working for me.

I erased everything I had done and unmerged everything.

I installed the ebuild using:

Code:
ACCEPT_KEYWORDS="~x86" emerge nxserver-freenx


Next:

Code:
chown -R nx:root /usr/NX


Next:

Code:
nxserver --adduser <$username>
nxserver --passwd <$username>


That's it. Now it works. And it is FAST!!! Blows the socks of VNC.


Confirmed.. I did the above as well and successfully connected remotely. However, I managed to find out in the process that using the client locally doesn't work (by connecting to localhost), which is mostly how i'd been testing it in the first place.. So, everybody should do the above, and not test locally!! :D

Oh yeah, and I agree, it IS fast(er) =)

Now, i have to do something about these fonts.. yuck

-sp
Back to top
View user's profile Send private message
hopfe
Guru
Guru


Joined: 22 Oct 2002
Posts: 456
Location: Frankfurt Main oder Aachen

PostPosted: Thu Sep 02, 2004 8:11 am    Post subject: Reply with quote

I've installed the server and add a user, but when i try to connect i get the error "Error: undefined command: 'bye'".
My problem is that i doesn't have a node.conf in /usr/NX/etc :(
Back to top
View user's profile Send private message
djmaze
n00b
n00b


Joined: 25 Jun 2003
Posts: 36
Location: Berlin, Germany

PostPosted: Thu Sep 02, 2004 10:37 am    Post subject: Reply with quote

Quote:
I've installed the server and add a user, but when i try to connect i get the error "Error: undefined command: 'bye'".


I had this problem too. You need the old version of nxclient on your client machine (1.3.2), not 1.4.0.

Code:
emerge "=nxclient-1.3.2"
Back to top
View user's profile Send private message
odborg
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2002
Posts: 89
Location: Aalborg, Denmark

PostPosted: Thu Sep 02, 2004 11:19 am    Post subject: Reply with quote

Quote:

emerge "=nxclient-1.3.2"


Code:

emerge =nxclient-1.3.2 -p

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] net-misc/nxcomp-1.3.2-r1
[ebuild  N    ] net-misc/nxproxy-1.3.2
[ebuild     UD] net-misc/nxclient-1.3.2 [1.4.0]


can i do this on a machine which allready has nxserver-freeenx emerged, or will the downgrading of nxclient pose any troubles? (and i think nxcomp 1.4 and nxproxy 1.4 was installed by the nxserver-freeenx.ebuild so there maybe problems too?)
Back to top
View user's profile Send private message
djmaze
n00b
n00b


Joined: 25 Jun 2003
Posts: 36
Location: Berlin, Germany

PostPosted: Thu Sep 02, 2004 11:30 am    Post subject: Reply with quote

This works for me with client and server on the same machine. Seems like nxserver-freenx doesn't really need the 1.4.0 versions!

So, just try to downgrade..
Back to top
View user's profile Send private message
odborg
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2002
Posts: 89
Location: Aalborg, Denmark

PostPosted: Thu Sep 02, 2004 12:24 pm    Post subject: Reply with quote

i now get the following after authetication completed:
Code:
Info: Proxy running in client mode with pid '24449'.
Error: Can't open UNIX connection to X server.
Error: Error 2 'No such file or directory' opening '/tmp/.X11-unix/X10'.
Back to top
View user's profile Send private message
odborg
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2002
Posts: 89
Location: Aalborg, Denmark

PostPosted: Thu Sep 02, 2004 12:54 pm    Post subject: Reply with quote

appears this was because i was running nxclient as root (must a security feature)

as a normal user i now have no problems (yay :))
Back to top
View user's profile Send private message
Shadowfiend
n00b
n00b


Joined: 04 Oct 2003
Posts: 11
Location: Georgia, US

PostPosted: Thu Sep 02, 2004 1:51 pm    Post subject: Reply with quote

sphantom wrote:
nuance9 wrote:
It's working for me.

I erased everything I had done and unmerged everything.

I installed the ebuild using:

Code:
ACCEPT_KEYWORDS="~x86" emerge nxserver-freenx


Next:

Code:
chown -R nx:root /usr/NX


Next:

Code:
nxserver --adduser <$username>
nxserver --passwd <$username>


That's it. Now it works. And it is FAST!!! Blows the socks of VNC.


Confirmed.. I did the above as well and successfully connected remotely. However, I managed to find out in the process that using the client locally doesn't work (by connecting to localhost), which is mostly how i'd been testing it in the first place.. So, everybody should do the above, and not test locally!! :D

Oh yeah, and I agree, it IS fast(er) =)

Now, i have to do something about these fonts.. yuck

-sp


Working for me now, too, but connecting to localhost is no problem at all. I attempted it (albeit not with the nxclient from portage, but from the 1.3.2 debian tarball they have, since the one from portage kept segfaulting on me), and connected fine. Funny how when I connected from another computer on the LAN, though, it went slightly faster than from this one :D
_________________
OEW - OpenEduWeb
QApacheConf
Back to top
View user's profile Send private message
elykyllek
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2002
Posts: 103
Location: Halifax, Nova Scotia, Canada

PostPosted: Fri Sep 03, 2004 1:49 am    Post subject: sessionId error Reply with quote

Shadowfiend how did you get past your above error?
Quote:
227: /usr/NX/var/db/running/sessionId{594698509EE7A065422E7EC9756E1B82}: Permission denied


Because I'm getting it as well.
Back to top
View user's profile Send private message
Shadowfiend
n00b
n00b


Joined: 04 Oct 2003
Posts: 11
Location: Georgia, US

PostPosted: Fri Sep 03, 2004 4:24 am    Post subject: Reply with quote

Yes I did. I did it by following, step by step, the things that nuance9 said, and then doing what odborg said ( chmod u+x /usr/NX/var/db/* ). That last step may be all that you need to do. Otherwise, start from scratch. I unmerged everything and reemerged, and it worked.
_________________
OEW - OpenEduWeb
QApacheConf
Back to top
View user's profile Send private message
djmaze
n00b
n00b


Joined: 25 Jun 2003
Posts: 36
Location: Berlin, Germany

PostPosted: Fri Sep 03, 2004 11:24 am    Post subject: Reply with quote

I figured out that these two commands will help in most cases:

Code:

chown -R nx:root /usr/NX
chmod u+x /usr/NX/var/db/*
Back to top
View user's profile Send private message
kwok-gentoo
n00b
n00b


Joined: 06 May 2004
Posts: 3

PostPosted: Fri Sep 03, 2004 1:00 pm    Post subject: Reply with quote

djmaze wrote:
I figured out that these two commands will help in most cases:

Code:

chown -R nx:root /usr/NX
chmod u+x /usr/NX/var/db/*


In my case:
Also do: chmod +x /user/NX/etc
Back to top
View user's profile Send private message
elykyllek
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2002
Posts: 103
Location: Halifax, Nova Scotia, Canada

PostPosted: Fri Sep 03, 2004 2:59 pm    Post subject: working Reply with quote

Thanks for everyones help, finally got it working. Like everyone else though, suspending and resuming doesn't work, and the remote multimedia doesn't seem to work either. Thats to be expected though with such a alpha release.

Thanks again.
Back to top
View user's profile Send private message
borchi
n00b
n00b


Joined: 05 Dec 2002
Posts: 44

PostPosted: Fri Sep 03, 2004 6:04 pm    Post subject: Reply with quote

what is in /usr/NX/var/db/*? i don't have it.
Back to top
View user's profile Send private message
elykyllek
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2002
Posts: 103
Location: Halifax, Nova Scotia, Canada

PostPosted: Sat Sep 04, 2004 1:26 am    Post subject: Reply with quote

borchi wrote:
what is in /usr/NX/var/db/*? i don't have it.


Three initally empty directories

Code:

root@tux kyle # ls -l /usr/NX/var/db/
total 12
drwx------  2 nx root 4096 Sep  3 11:56 closed
drwx------  2 nx root 4096 Sep  3 11:47 failed
drwx------  2 nx root 4096 Sep  3 11:56 running


Ignore the total 12 thing, its just that they now contain SessionId's of past sessions.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, ... 28, 29, 30  Next
Page 2 of 30

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum