I want some kind of desktop DE when connecting to my linux box over ssh. Something like winscp works but I'll be running on linux instead of windows. The box doesn't have much ram and is not running a DE. I'd want to execute programs/scripts but it's ok if it disappears and I need to use the command line to see/connect to it
To laucnh any app ( set of app ) in VNC session on your box without DE you can configure it in following way:
- Install vnc4server xfonts-base
- Create password for vnc with
- create a script ~/.vnc/xstartup
if [ -z "$VNCAPP" ] then # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & x-window-manager & else xsetroot -solid black vncconfig -iconic & x-window-manager & $VNCAPP sleep 10 vncserver -kill $DISPLAY fi
- Start your app in such session with
VNCAPP=xcalc vncserver -depth 24
Now you can connect from client with command
Another option that I've used in the past that works reasonably well over a slow connection is FreeNX.
VNC + Desktop
Given your comments left to the other answer regarding the use of VNCAPP (a single application displayed over VNC) you're probably going to want to either use VNC in some form for the entire desktop or FreeNX.
What's RDP? RDP is Remote Desktop Protocol, it's how Windows system connect to other Windows systems. Yes you can also use it for connecting to Linux systems from either a Windows RDP client or you can use one of the numerous rdp clients available for Linux to connect as well. The key technology that makes this an options is the application xrdp.
This app is a bit of a misnomer. It's actually a layer that sits in between a RDP client such as
xfreerdp on one side, and on the back side it's talking to the Linux box it's running on using traditional VNC. The advantage with this approach is that the slowness of VNC is localized to the localhost of the Linux box.