Welcome! Log In Create A New Profile

Advanced

Dockstar with minimal Desktop VNC

Posted by switchgott 
Dockstar with minimal Desktop VNC
October 21, 2010 09:34AM
Hi,

i found a lot if howtos with installing vnc and desktop on dockstar.
But no one shows a solution, how you get a remote desktop from start.
every time you have to put several commands to start vnc and remote desktop.
Can we make it easyer for all?
How could we offer a vncserver on boot with desktop like icewm oder wdm?

Big thanks for help

Greetings
Bye
Re: Dockstar with minimal Desktop VNC
October 21, 2010 09:42AM
use freenx this uses the rdp proto and is mouch faster and uses only the ssh port
here is a sample install WIKI

sorry german only
Eine Desktopverbindung(XFCE4) über FreeNX herstellen
i prefer lxde is a little bit smaller than xfce



Edited 1 time(s). Last edit at 10/21/2010 09:44AM by gorgone.
Re: Dockstar with minimal Desktop VNC
October 21, 2010 10:03AM
Hi,
thanks for replay!I installed it.But Vnc is much easyer, i guess.
Iam a german one :-)
No problem for.

Can´t we get a easy script for starting such a xvfb and x11 session?
No idea?
Thanks
Re: Dockstar with minimal Desktop VNC
October 21, 2010 10:52AM
I tried VNC but it was too slow to be useful. I have not tried freenx yet.
Re: Dockstar with minimal Desktop VNC
October 21, 2010 04:40PM
Hi,
FreeNX works, but have a very bad display settings.
I can´t chance the settings from 1680x1016 to 800x600!
Can anyone help how to do?
In client settings are 800x600, but the session starts with the max size.
How could i cange it on server side?

I uses LXDE with nxserver.

Thanks for help!!
heyhi
Re: Dockstar with minimal Desktop VNC
October 28, 2010 02:07PM
Can you write some simple steps on how to get FreeNX work?
Re: Dockstar with minimal Desktop VNC
October 29, 2010 07:38PM
I'll have a bash at a quick and dirty vncserver + fluxbox set up...

To install:
apt-get install fluxbox tightvncserver xfonts-base rxvt iceweasel
vncserver :1 # first run to create ~/.vnc directory. Create password if prompted
vncserver -kill :1 # shut it down
# install fluxbox as window manager for vncserver
perl -pi -e 's/xrdb.*$/"$&\nfbsetroot -solid black\nfluxbox &\n"/e' ~/.vnc/xstartup
To start...
vncserver -geometry 800x600 -depth 16 :1
To stop...
vncserver -kill :1
Re: Dockstar with minimal Desktop VNC
October 31, 2010 06:32AM
Hi,

I advice to use tight compression - it is speeding up interaction with dockstar.

Regards,
Adam.
Re: Dockstar with minimal Desktop VNC
November 01, 2010 04:12AM
I this faster als NX Server??
NX Server is realy fast, but even difficult to administrate and to log in with client.
With vnc you only need on file (vnc client) to access the docstar.

Can you say somethink about performance?
How can i activate tight compression?

How can i do this with lxde?
I guess ist much faster as fluxbox.

THANKS!!



Edited 1 time(s). Last edit at 11/01/2010 04:13AM by switchgott.
Re: Dockstar with minimal Desktop VNC
November 01, 2010 05:03PM
lxde is slower than fluxbox.

To use...
apt-get install lxde
vi ~/.vnc/xstartup
#add the following in place of fluxbox...
lxsession -s LXDE &
Then start the same way as before...
vncserver -geometry 800x600 -depth 16 :1
To activate tight compression connect using a VNC viewer that supports tight compression (i.e. windows client from tightvnc.com or apt-get install xtightvncviewer)

-PG
Re: Dockstar with minimal Desktop VNC
November 03, 2010 07:37PM
FYI - lowering vnc display depth makes a huge difference in memory usage.

Without vncserver I have 9Mb used and 112Mb free:
root@debian:~# free -m
             total       used       free     shared    buffers     cached
Mem:           121         83         37          0          1         73
-/+ buffers/cache:          9        112
Swap:          544          0        544
Starting vncserver uses only 4Mb of RAM:
root@debian:~# vncserver -deferupdate 200 -economictranslate -lazytight -geometry 1024x600 -depth 8 :1
root@debian:~# free -m
             total       used       free     shared    buffers     cached
Mem:           121         96         25          0          1         81
-/+ buffers/cache:         13        108
Swap:          544          0        544
Memory usage with fluxbox + iceweasel + rxvt running:
root@debian:~# free -m
             total       used       free     shared    buffers     cached
Mem:           121         87         33          0          0         52
-/+ buffers/cache:         34         86
Swap:          544          0        543
After opening http://news.bbc.co.uk webpage:
root@debian:~# free -m
             total       used       free     shared    buffers     cached
Mem:           121         80         40          0          0         35
-/+ buffers/cache:         44         76
Swap:          544          2        542
With 4 tabs open - http://news.bbc.co.uk, http://jeff.doozan.com/debian, http://slickdeals.net and http://mail.google.com (logged in with heavy javascript):
root@debian:~# free -m
             total       used       free     shared    buffers     cached
Mem:           121        113          8          0          0         29
-/+ buffers/cache:         83         38
Swap:          544          3        540
Adding another 6 rxvt instances:
root@debian:~# free -m
             total       used       free     shared    buffers     cached
Mem:           121        116          4          0          0         30
-/+ buffers/cache:         85         35
Swap:          544          4        540
Still got 35Mb free :-)

-PG
Re: Dockstar with minimal Desktop VNC
September 04, 2011 05:54PM
I've done what you said here. How do I connect to it using tight vnc? I typed in the IP of my dockstar, not sure what port it would be using?
Re: Dockstar with minimal Desktop VNC
September 04, 2011 05:55PM
I've done what you said here. How do I connect to it using tight vnc? I typed in the IP of my dockstar, not sure what port it would be using?

All this I mean:
apt-get install lxde

vi ~/.vnc/xstartup

#add the following in place of fluxbox...
lxsession -s LXDE &

Then start the same way as before...

vncserver -geometry 800x600 -depth 16 :1

NVM! got it thanks!



Edited 1 time(s). Last edit at 09/04/2011 06:04PM by clubfed11.
Re: Dockstar with minimal Desktop VNC
January 08, 2012 07:39PM
Yes! Thanks to all for posting in this thread - it works well enough for me to post this to you straight from my AccessPoint|NAS|PrintServer that is running Debian (w/ hostapd, Netatalk&Samba, p910nd), with minimal lag while I type. True, more involved graphics are slower (as one would expect) but it is usable for what we would needed it for.

=====================================================
rebdel
Re: Dockstar with minimal Desktop VNC
March 03, 2012 02:04PM
Hi,
i have some problems to make snapshots to my Picture Frame.
In my VM Ware environment works all fine, but i have no glue to make snapshots from my xvfb.
What i want: start freevo in xvfb and use a samsung DPF as mini Monitor with lirc

Here´s my working script in a VM(not working with Dockstar and xvfb)

#!/bin/bash
# Take screenshot of Screen 15 seconds after the script is executed
# Handy if you want to take screenshots of Games in Fullscreen in GNU / Linux and FreeBSD
# The script requires import (part of ImageMagick)
screenshot_dir="Screenshots";
# 300 secs (5 mins)
seconds='1';
if [ ! -d "$screenshot_dir" ]; then
mkdir $screenshot_dir;
fi
while [ 1 ]; do
sleep $seconds;
#(scrot $screenshot_dir/'$wx$h_bild.jpg') &
#(scrot -t 60 $screenshot_dir/'%Y-%m-%d_$wx$h.jpg') &
(nice -n 19 scrot $screenshot_dir/'$wx$h_bild.jpg') &
nice -n 19 python pyframe_basic /home/Pyframe/Screenshots/800x600_bild.jpg 1>/dev/null 2>/dev/null
done

Script with fluxbox and conky, can´t implement firefox/freevo to test (Dockstar fluxbox and conky only ;-( )
#!/bin/sh
# Take screenshot of Screen 15 seconds after the script is executed
# Handy if you want to take screenshots of Games in Fullscreen in GNU / Linux and FreeBSD
# The script requires import (part of ImageMagick)
killall conky 2>&1 >/dev/null
killall Xvfb 2>&1 >/dev/null
rm /tmp/.X13-lock 2>&1 >/dev/null
Xvfb :13 -screen 0 800x600x16 &
export DISPLAY=:13.0
screenshot_dir="Screenshots";
# 300 secs (5 mins)
seconds='10';
if [ ! -d "$screenshot_dir" ]; then
mkdir $screenshot_dir;
fi
conky -p 0 -c /home/test/.conkyrc &
fluxbox &
#iceweasel     <- no iceweasel at JPG
#freevo   <- also freevo !
while [ 1 ]; do
sleep $seconds;
#(scrot $screenshot_dir/'$wx$h_bild.jpg') &
#(scrot -t 60 $screenshot_dir/'%Y-%m-%d_$wx$h.jpg') &
(nice -n 19 scrot $screenshot_dir/'$wx$h_bild.jpg') &
nice -n 19 python pyframe_basic /home/Pyframe/Screenshots/800x600_bild.jpg 1>/dev/null 2>/dev/null
done

Fluxbox with conky starts, but no freevo or iceweasel (have to removed the hashes #)
How can i autostart xvfb Headless with freevo and my Picture Frame get some pictures every x seconds with pyframe ?

I hope someone can me help with the script ...

many thx
rebdel
Re: Dockstar with minimal Desktop VNC
March 03, 2012 03:41PM
I've been just using stuff like:
ssh -c blowfish -X user@192.168.2.4 firefox
ssh -c blowfish -X user@192.168.2.4 gnome-terminal

Isn't using VNC or other similiar service less accurate and more overhead? Cygwin/X is a reasonable free X server for windows if that's the hangup. Seems like all I give up is a desktop.
rebdel
Re: Dockstar with minimal Desktop VNC
March 04, 2012 05:19AM
I like to use my Dockstar as a MP3 Mediaplayer with GUI and Lirc ...

Okay the first script works when i´m remoteley connected with xrdp ..
My Problem is i have only 1920x1080 snapshot´s, i dont want to resize with scrot...

How can i change the resolution to 800x600x16
vncserver -geometry 800x600 -depth 16 :1

when i start mstsc -> Sesman-xvnc with my account i have Full HD ...

~/.vnc/xstartup

#!/bin/sh
xrdb $HOME/.Xresources
fbsetroot -solid black
fluxbox &

Any Ideas to change resoltion fix to 800x600 ??

THX
fluffy
Re: Dockstar with minimal Desktop VNC
March 05, 2012 08:52AM
If you only want to run a few GUI-apps (e.g. because they don't support CLI) then you might find xpra very useful!
You can describe it as "screen for X" (screen=a program to let programs run while you're disconnected from your box).
Start a GUI-program on your box, control it on your host machine, then detach and let it run while disconnected. You can then reconnect to the same instance later.
rebdel
Re: Dockstar with minimal Desktop VNC
March 06, 2012 04:46AM
thx fluffy, i give it a try ...
rebdel
Re: Dockstar with minimal Desktop VNC
March 22, 2012 02:57PM
My Problem was fixed, i use now MMS with these Python Scripts:

http://pyframe.blogspot.de/2012/03/sshot2frame-send-screenshots-to.html

Now i have a Media Center with Lirc/Menu and Photoframe ...
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: