Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Remote server, Remote desktop server with many xsession< Next Oldest | Next Newest >
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: June 08 2006,03:34 QUOTE

This is how I did when I created a vnc access for my friend:
- I created a new user.
edit .bash_profile for that user and add these lines:
Code Sample

DISPLAY=12
export DISPLAY=12
# I'm not sure wich one works correctly but adding both worked. =D
vncserver :12 -geometry 800x600 & logout
# you can choose geometry as you like


Ok. This needs you to set up sshd server too.
What it simply does... it just starts Xvnc server on screen 12 and logs user out. Of course you could do same with script to have this user able to use normal ssh connection to your server too.
To log into it use port 5912.
Password is same you chosed when added that new user.

You also need some lines to /home/<user_login>/.vnc/xstartup:
Code Sample
torsmo 2>/dev/null &
iconsnap.lua &>/dev/null &
xtdesk &>/dev/null &
swallow.sh docked &
exec fluxbox 2>/dev/null

xstartup file just contains lines to execute when your vnc server starts.
Note do not add startx command here. I just messes everything up.

If anyone could tell me how to have it start a vnc server like this without having user to first log in via ssh... ?
Some nice lines to /opt/bootlocal.sh?


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
5 replies since April 27 2006,16:25 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Remote server

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code