Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Remote Desktop Connection in Linux

Status
Not open for further replies.

verilog_crack

Full Member level 2
Joined
Sep 6, 2003
Messages
134
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Location
In the Sky
Activity points
992
Hi
In the windows operating system I use remote desktop connection on windows 2003 and many users can connect graphically to the one station and work separately.
Windows 2003 keep a session for each user.
Do you know software like this in Linux that many users can connect to X-Server of one computer?
And another question, can somebody point me the command that let me to start two X-Server on one machine. Start New Session do this but I want command line instruction.
Regards
 

Go to www.realvnc.com. I use it a lot. It gives a solution in your second question. RealVNC includes the vncserver command, which starts a new X-server. For example, I have X-Server 0 running on the console for everybody and password protected X-Server 1 running through a TCP/IP port remotely only for me.
 

makri said:
try X-Win32 in **broken link removed**

cygwin is also usefull www.cygwin.com

Cygwin is a Linux-like environment for Windows and doesn't work in Linux.
:evil:

in **broken link removed** site there isn't any link to X-Win32 !!!! :evil:
even it dosn't know X-Win32 in search!!!
 

Check also for https://www.tightvnc.com/
it shoud be faster than vnc
Regards



geconom said:
Go to www.realvnc.com. I use it a lot. It gives a solution in your second question. RealVNC includes the vncserver command, which starts a new X-server. For example, I have X-Server 0 running on the console for everybody and password protected X-Server 1 running through a TCP/IP port remotely only for me.
 

OK, The thig is quite easy...

to start another X session on linux, if not using xnest, gdm does a good job here.

U scan start it manually on a different X server:
startx -- :2

This will create another X server, switch ctrl+alt+f7 the first, f8...12, just like tty's

To do remote X, there many ways the best is trought a ssh tunnel. The documentation is around, VNC will be working right under the ssh tunnel, also there's XDMCP.

An easy but kind insecure way to do this from two machines working on linux and X server running:

# This will enable remote_host to connect the local X server

X_server_host$ xhost remote_host
X_server_host$ ssh remote_host

Autenticate.

$ remote_host$export DISPLAY=X_server_host:0.0

# I supposse you know what the :0.0 means.

Now every X running app, you start will use the remote X server, the main problem of this method is that information is not encrypted.

To encrypt you should say tho ssh to tunnel the proper port.

There's also aound a rdesktop to connect to that windows thing...

On windows there are some other ways. I know about sshVNC...
 

Hi,
Is that any way so that we connect to Linux station remotely and disconnect of it but our programs will continue running.
I tell this is a session retaining or remaining.
regards
 

Hi,

RealVNC does not allow to disconnect. It is simply remote connection by snooping the local window grafic system and redirecting them. The only disconnect which work is Citrix on every platform. W2k Server also allows to disconnect because it is derived from Citrix tech with less compression. If you want to disconnect from Unix/Linux you could use a W2kServ machine and disconnect from there. The use XWin because it is the only one which allows to install on W2kServ with terminal service.
 

rfsystem said:
Hi,
...
The only disconnect which work is Citrix on every platform.
...
If you want to disconnect from Unix/Linux you could use a W2kServ machine and disconnect from there. The use XWin because it is the only one which allows to install on W2kServ with terminal service.

Hi,
Is there a version of Citrix for linux?
and do you mean I must only use W2kServ and there isn't any version for linux?
what is XWin? is it XWin32 or not?
I'm looking for a solution which I will be able to connect linux from linux or windows but I can disconnect it.
Tnx
 

Yes

Look for a package or program called screen
It allows you to start porgrams (command line ) and lif your connection has broken or you deatached yourself ctrl-a -d from tty that you log off
(more description you will find in manuals of course )
Not sure that this works for X programs never used it for X. But i can assure that for tty and courses ncourses (like midnight comender ) works greate.
Give it a try


verilog_crack said:
Hi,
Is that any way so that we connect to Linux station remotely and disconnect of it but our programs will continue running.
I tell this is a session retaining or remaining.
regards
 

I think two things

If u are not using the app, you probably "should" shut it down, beacuzer if it's remote connection, someone else could use the resources you are using.

If still you want to keep running the programs, there's always the Background option... even if you want to logoff...

$nohup app &
# This will just deattach the app from the loged account.

If you ask about leaving the app just there in the same state...

STOP it, it will retain everything and will just use the memory resources.

then you can return to normal operation with

$fg <app>

Maybe this is too "harsh" but's quite functional....
 

deepspawn said:
I think two things
$nohup app &
# This will just deattach the app from the loged account.
then you can return to normal operation with
$fg <app>
Hi,
When I call "nohup mc &"
I's run mc. but "fg mc" don't work.
output of program will be redirected to nohup.out
and "nohup ls" has worked properly.
Can you describe more.
Tnx
 

If you want to keep in a session with interactive program la mc, edonkey
menu driven use screen , it allow you to keep the session running and to
disconnect while the session is still there

https://www.gnu.org/software/screen/screen.html
Enjoy it
i do

verilog_crack said:
deepspawn said:
I think two things
$nohup app &
# This will just deattach the app from the loged account.
then you can return to normal operation with
$fg <app>
Hi,
When I call "nohup mc &"
I's run mc. but "fg mc" don't work.
output of program will be redirected to nohup.out
and "nohup ls" has worked properly.
Can you describe more.
Tnx
 

verilog_crack said:
deepspawn said:
I think two things
$nohup app &
# This will just deattach the app from the loged account.
then you can return to normal operation with
$fg <app>
Hi,
When I call "nohup mc &"
I's run mc. but "fg mc" don't work.
output of program will be redirected to nohup.out
and "nohup ls" has worked properly.
Can you describe more.
Tnx


Sorry My bad, I wasn't explicit


When you call nohup the output is redirected to nohup.out, Just use if you want to send a proccess to the background and keepit running even if you logout.

From the man page:

nohup - run a command immune to hangups, with output to a
non-tty


When you type C^Z in a running procces it get stopped.

When a process is stopped you can do two things,

fg, Foreground the stopped process.
bg, Background the stopped process.

But when there are stopped process you can't log out.

The & at the end of a command sends it to the background.

Experiment.
 

Hi,
I know all you've said in the last reply but you had said about this command
nohup mc
and fg mc
this function only showed me fg: mc no such job
of cource the following command worked:
fg nohup
but instead of showing mc it's shown nohup mc
so please explain right what you said about fg mc.
I knewn nohup and I had read man of it.
but I had used it in calculation programs and not mc.
 

verilog_crack said:
Hi,
I know all you've said in the last reply but you had said about this command
nohup mc
and fg mc
this function only showed me fg: mc no such job
of cource the following command worked:
fg nohup
but instead of showing mc it's shown nohup mc
so please explain right what you said about fg mc.
I knewn nohup and I had read man of it.
but I had used it in calculation programs and not mc.

Really, my bad, I must apologize, the way I wrote the post led to misunderstanding.

You can't fg a nohuped procces. fg just works for a stopped proces.

Still you could send the stop signal to a bacground proccess and then fg it.

But since nohup leads the output of the procces to nohup.out, I will not work as you would like to a term-based proccess, but in a quick test here with the xedit, it worked properly.

$nohup xedit&

$kill -s stop xedit

$fg

I must assume the X server must not be shutdown...

Don't expec this to do the job of screen, screen works great.
 

Hi deepspawn,
fg xetid
didn't work
althougth others is true.
 

To access your X-system from a Windows machine you can use Xmanager, you'll find a demo version on the internet.
 

To be specific:

Is your interest in running a x-session from win and disconnect. It seems to me that only the following works ->

1. RealVNC Server at Linux/Solaris, Client on Win
2. Xwin or Exceed on Win2Server, Client on Win, so disconnect from Win2Server, Exceed I am not shure to be run on W2Server
3. Citrix, most expensive
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top