You are not logged in.

#1 2008-04-01 20:56:34

colbert
Member
Registered: 2007-12-16
Posts: 809

How to use networked Arch box like remote desktop

Hi I am wondering how to remotely control my networked Arch box from my Arch box. I have SSH set up just fine, but if I want to control it fully like a fluxbox sessino or something (like Remote Desktop in XP for example) how to do that? For example currently I have my Arch, 2nd arch, and XP box on my home network. I have rdesktop set up to browse XP just fine, remembers user/pass and with one shortcut I can bring up the XP box. I would like this with the Arch box.

TIA smile smile

Offline

#2 2008-04-01 21:00:38

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: How to use networked Arch box like remote desktop

freenx

http://wiki.archlinux.org/index.php/FreeNX

Last edited by wonder (2008-04-01 21:01:20)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2008-04-02 03:46:58

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: How to use networked Arch box like remote desktop

Thanks wonder, but I got very confused at this part:

Transferring nx keys to an other freenx server:

    * /opt/NX/home/nx/.ssh contains the key files

-rw------- 1 nx root  697  9. Okt 12:55 authorized_keys
-rw------- 1 nx root  668  9. Okt 11:48 client.id_dsa.key
-rw------- 1 nx root  609  9. Okt 12:55 server.id_dsa.pub.key

    * Save those files.
    * Add those files to your new server, they need the same permissions, names, group and directory!

# cp authorized_keys client.id_dsa.key server.id_dsa.pub.key /opt/NX/home/nx/.ssh/
# chmod 600 /opt/NX/home/nx/.ssh/*
# chown nx /opt/NX/home/nx/.ssh/*
# chgrp root /opt/NX/home/nx/.ssh/*

    * Recreate known_hosts file:

# echo -n 127.0.0.1 > /opt/NX/home/nx/.ssh/known_hosts
# cat /etc/ssh/ssh_host_rsa_key.pub >> /opt/NX/home/nx/.ssh/known_hosts
# chmod 633 /opt/NX/home/nx/.ssh/known_hosts
# chown nx /opt/NX/home/nx/.ssh/known_hosts
# chgrp root /opt/NX/home/nx/.ssh/known_hosts

When I tried to

cd /opt/NX/home/nx/.ssh

I have no folder. And trying to cd to /opt/NX/home/nx gives me permission denied, even as root. :?

Offline

#4 2008-04-02 04:01:11

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: How to use networked Arch box like remote desktop

There are some more options: vnc, or I just recently found xpra.

Offline

#5 2008-04-02 09:24:25

kezar
Member
Registered: 2007-08-14
Posts: 61

Re: How to use networked Arch box like remote desktop

VNC isn't secure at all. Use NX (ore remote X over SSH, but NX is faster). Dunno xpra, seems like screen smile

Offline

#6 2008-04-02 10:52:03

serrghi
Member
From: Bergen, NO
Registered: 2008-02-12
Posts: 100
Website

Re: How to use networked Arch box like remote desktop

FreeNX is sweet! BUT so far as iknow you have to use KDE/Gnome, havent gotten it to work in *BOX yet, and have been unable to gather any tips og info from the community.


Unyttig.INFO - Your source to not so useless information
My github - Various configs, dotfiles and nifty scripts

Offline

#7 2008-04-02 11:08:21

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: How to use networked Arch box like remote desktop

Why isn't VNC secure? I'm worried because it's the one I use. To be precise I use:

x11vnc -usepw

on the server side, and vncviewer as a client.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#8 2008-04-02 11:14:58

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: How to use networked Arch box like remote desktop

serrghi wrote:

FreeNX is sweet! BUT so far as iknow you have to use KDE/Gnome, havent gotten it to work in *BOX yet, and have been unable to gather any tips og info from the community.

This got me intrigued. I plan to install Arch for my mother-in-law, but since we live in different countries I thought of setting up FreeNX. Have you tested XFCE4? On what side does the problem arise? Server? Client? Both?

Offline

#9 2008-04-02 13:09:12

serrghi
Member
From: Bergen, NO
Registered: 2008-02-12
Posts: 100
Website

Re: How to use networked Arch box like remote desktop

i havent been able to get a working picture. when establishing or trying to draw desktop the client crashes. So im guessing its mostly client side problem.


But if anyone have been able to setup freenx on *BOX let me know how.

Last edited by serrghi (2008-04-02 13:10:45)


Unyttig.INFO - Your source to not so useless information
My github - Various configs, dotfiles and nifty scripts

Offline

#10 2008-04-02 14:02:16

kezar
Member
Registered: 2007-08-14
Posts: 61

Re: How to use networked Arch box like remote desktop

I tested successfully FreeNX on Gnome, XFCE4, FluxBox and E17. It works. You need to specify which command you want to use to initiate the window manager if it is not Gnome, KDE or CDE (for example for FluxBox, in the configuration window, General > Desktop choose Unix - Custom, then click on Settings..., Application > Run the following command "/usr/bin/startfluxbox", Options > Floating window  - [ ] Disable X agent encoding).

Offline

#11 2008-04-02 16:16:28

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: How to use networked Arch box like remote desktop

Hey guys can anyone help with my post #3 above I can't get past that part, I really want to try FreeNX!!! big_smile smile

Offline

#12 2008-04-02 17:46:24

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: How to use networked Arch box like remote desktop

you don't need to make this step. skip it smile. this step is only when you want to transfer your keys to another freenx server


Give what you have. To someone, it may be better than you dare to think.

Offline

#13 2008-04-02 19:40:23

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: How to use networked Arch box like remote desktop

Thanks wonder smile

Okay I run nxclient from my box, the IP and everything is set, I get past the connecting dialog and then a quick flash of a window, disappears, can't even see what it's showing and nxclient closes. I run nxclient from terminal but it doesn't give any input.

I'm trying to connect to a fluxbox machine from my fluxbox machine. I did as kezar has posted above, but I can't get it to connect sad

Offline

#14 2008-04-02 19:48:04

kezar
Member
Registered: 2007-08-14
Posts: 61

Re: How to use networked Arch box like remote desktop

Is there a log ? (error window from FreeNX with a details button, .xsessionerrors or something else ?)

Offline

#15 2008-04-02 19:49:22

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: How to use networked Arch box like remote desktop

you have configured your DE? under the client, configure, general tab and you'll see Desktop.


Give what you have. To someone, it may be better than you dare to think.

Offline

#16 2008-04-02 19:56:41

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: How to use networked Arch box like remote desktop

Hmm I'm trying to find a log of some kind. I went to ~/.nx/ and found a folder that appears to be a log folder of my session (or attempt at one). Here's some output:

~/.nx/S-mythbox-1000-0D84FC08943752D82304BCDA65225150 # cat errors
Loop: WARNING! Disabling NX delta compression.
Loop: WARNING! Disabling use of NX persistent cache.
Loop: WARNING! Unrecognized session type 'unix-desktop'. Assuming agent session.
~/.nx/S-mythbox-1000-0D84FC08943752D82304BCDA65225150 #

More

~/.nx/S-mythbox-1000-0D84FC08943752D82304BCDA65225150 # cat session

NXPROXY - Version 3.1.0

Copyright (C) 2001, 2007 NoMachine.
See http://www.nomachine.com/ for more information.

Info: Proxy running in client mode with pid '18130'.
Session: Starting session at 'Wed Apr  2 15:51:58 2008'.
Info: Connection with remote proxy completed.
Warning: Unrecognized session type 'unix-desktop'. Assuming agent session.
Info: Using LAN link parameters 1536/24/1/0.
Info: Using pack method 'adaptive-9' with session 'unix-desktop'.
Info: Not using NX delta compression.
Info: Not using ZLIB data compression.
Info: Not using ZLIB stream compression.
Info: Not using a persistent cache.
Info: Forwarding X11 connections to display ':0.0'.
Info: Listening to font server connections on port '11000'.
Session: Session started at 'Wed Apr  2 15:51:58 2008'.
Info: Established X server connection.
Info: Using shared memory parameters 1/2048K.
~/.nx/S-mythbox-1000-0D84FC08943752D82304BCDA65225150 #

Yes in the Configure General I have: Desktop>Unix-Custom, and in Settings I have: Run the following command: /usr/bin/startfluxbox, and Options I have Floating Window and Disable X agent encoding checked.

Offline

#17 2008-04-02 19:59:37

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: How to use networked Arch box like remote desktop

BTW, I have done no editing to the /opt/NX/etc/node.conf file on my server, there was no mention of adjustments in the Wiki. Mine is the default one.

Last edited by colbert (2008-04-02 19:59:58)

Offline

#18 2008-04-02 20:58:03

Sjoden
Member
From: WA
Registered: 2007-08-16
Posts: 380
Website

Re: How to use networked Arch box like remote desktop

finferflu wrote:

Why isn't VNC secure? I'm worried because it's the one I use. To be precise I use:

x11vnc -usepw

on the server side, and vncviewer as a client.

I believe it's because vnc isn't encrypted. Although, I think you can run it over ssh and be fine. I have no experience with the others though. I use vnc at work, and it's fine, not always the fastest, but works.

@all, If your that worried about your traffic being sniffed on a home network... I think you have other things to worry about first. Of course, I'd never run it over the interwebs.

Last edited by Sjoden (2008-04-02 20:59:18)

Offline

#19 2008-04-03 19:20:06

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: How to use networked Arch box like remote desktop

Hey guys I am quite lost now, I just came home and got a dialog box that said NX server connection lost, this is on my remote machine I want to connect to, not the server. I hit OK and now bring nxclient, try to connect and it says no route to host. I don't understand how to begin the freenx server on the server. I tried running /opt/NX/bin/nxserver but it just asks me to change password.

Sorry I'm really new at this aspect smile

P.S. Running the nxclient outputs this in shell:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Last edited by colbert (2008-04-03 19:21:49)

Offline

#20 2008-04-03 19:31:36

kezar
Member
Registered: 2007-08-14
Posts: 61

Re: How to use networked Arch box like remote desktop

There is no need to start anything.
Read http://wiki.archlinux.org/index.php/FreeNX
You need to authorize hosts and open ports on your firewall.

Offline

#21 2008-04-03 20:53:46

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: How to use networked Arch box like remote desktop

I have ssh already in hosts.allow, and I don't have any firewalls running.

I am now getting this error when trying to connect with nxclient:

NX> 203 NXSSH running with pid: 7652
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 192.168.1.100 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
NX> 280 Exiting on signal: 15

Offline

#22 2008-04-03 21:35:57

kezar
Member
Registered: 2007-08-14
Posts: 61

Re: How to use networked Arch box like remote desktop

Seems that a directory is missing. Has your user a homedir ? Are you using a chroot ?

Offline

#23 2008-04-03 22:49:10

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: How to use networked Arch box like remote desktop

I'm not using chroot. It's a base arch install with one user, has a working home dir. I have tried a bunch of things now, even removed /opt/NX and reinstalled freenx on the server. I just can't get this to work hmm

I keep getting this now from nxclient:

NX> 203 NXSSH running with pid: 10062
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 192.168.1.100 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.

With a dialog saying NX server not available or access disabled on host 192.168.1.100. But then I tried:

sudo /opt/NX/bin/nxserver --start

And it says the service is already running.

Last edited by colbert (2008-04-03 22:51:45)

Offline

#24 2008-04-03 23:02:32

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: How to use networked Arch box like remote desktop

Ack, now I'm getting this trying to nxclient

nxerror.jpg

And no matter what I select (/opt/NX, /opt/NX/bin, etc.) it won't let me run it!

Offline

#25 2008-04-03 23:06:33

kezar
Member
Registered: 2007-08-14
Posts: 61

Re: How to use networked Arch box like remote desktop

Are you in the nx group ?

Offline

Board footer

Powered by FluxBB