LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-17-2012, 04:17 PM   #16
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 498

Original Poster
Rep: Reputation: 26

Quote:
Originally Posted by EDDY1 View Post
Forget the above post for now
This 1 is the way you're trying to do it.
http://www.szewong.com/2009/06/setti...vnc-slicehost/
I tried to change xconfig as per that post, but as a result I have vncconfig window taking whole screen of my remote server without an option to close it. When I restart the VNC from Putty, I again see normal XFCE desktop with this vncconfig as a small window.
The situation is better if I add the line about the terminal. But still I have this terminal window in the simple, non-XFCE style.
 
Old 09-17-2012, 04:25 PM   #17
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by darkduck View Post
I tried to change xconfig as per that post, but as a result I have vncconfig window taking whole screen of my remote server without an option to close it. When I restart the VNC from Putty, I again see normal XFCE desktop with this vncconfig as a small window.
The situation is better if I add the line about the terminal. But still I have this terminal window in the simple, non-XFCE style.
Step 7 kill vnc.
Also you can play around with geometry of the screen you don't have to use the example geometry they posted. You need t know your monitor resolution.

Last edited by EDDY1; 09-17-2012 at 04:30 PM.
 
Old 09-17-2012, 04:36 PM   #18
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 498

Original Poster
Rep: Reputation: 26
Step 7 says:
Quote:
when you are done, before killing the ssh session, kill VNC
I am not "done" yet, I need VNC session to run. 8-)
To be precise, I want VNC session to start properly in the first place. Laer I may wish to kill it or leave running. But that's a different story altogether.
 
Old 09-17-2012, 07:01 PM   #19
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by darkduck View Post
Step 7 says:

I am not "done" yet, I need VNC session to run. 8-)
To be precise, I want VNC session to start properly in the first place. Laer I may wish to kill it or leave running. But that's a different story altogether.
You can export Desktop over ssh but if you do you're sending Desktop over network where as what the post is suggesting is opening desktop on client machine, which will run faster, or with less lag. I will research a little more for your requirements.
 
Old 09-18-2012, 04:29 AM   #20
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 498

Original Poster
Rep: Reputation: 26
Thanks for your help anyway.
Yes, I want to send desktop over the network. It is only LAN, which I have no issues with from either security or speed points of view.
Then, I want to be sure I get the same environment from each machine I login to the VNC server, and this may be also a computer with Win7. I am not sure I can run "local Linux desktop" on the Win7 computer, unless I misunderstand something.

Last edited by darkduck; 09-18-2012 at 05:00 AM.
 
Old 09-18-2012, 03:48 PM   #21
TheMadIndian
Member
 
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 117

Rep: Reputation: 23
Quote:
Originally Posted by darkduck View Post
Step 7 says:

I am not "done" yet, I need VNC session to run. 8-)
To be precise, I want VNC session to start properly in the first place. Laer I may wish to kill it or leave running. But that's a different story altogether.
what OS are you running?
 
Old 09-18-2012, 03:52 PM   #22
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 498

Original Poster
Rep: Reputation: 26
Host (server) runs Debian Squeeze Xfce.
Clients can be Debian, Mageia, Xubuntu or Win7.
 
Old 09-18-2012, 04:25 PM   #23
TheMadIndian
Member
 
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 117

Rep: Reputation: 23
Quote:
Originally Posted by darkduck View Post
Host (server) runs Debian Squeeze Xfce.
Clients can be Debian, Mageia, Xubuntu or Win7.
On my centos and fedora boxes I launch it in /etc/sysconfig/vncserver

and I have 2 users defined

Code:
VNCSERVERS="1:user1 2:user2"
VNCSERVERARGS[1]="-geometry 1280x900 -depth 16"
VNCSERVERARGS[2]="-geometry 1280x900 -depth 16"
1 user defined
Code:
VNCSERVERS="1:user1"
VNCSERVERARGS[1]="-geometry 1280x900 -depth 16"

and that loads that users vnc profile

I believe you said if you kill it and then start it the 2nd time it works maybe this will get it to work the first time
 
Old 09-18-2012, 04:38 PM   #24
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 498

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by TheMadIndian View Post
1 user defined
Code:
VNCSERVERS="1:user1"
VNCSERVERARGS[1]="-geometry 1280x900 -depth 16"

and that loads that users vnc profile

I believe you said if you kill it and then start it the 2nd time it works maybe this will get it to work the first time
I added these 2 lines at the start of my xstartup file.
No success.
 
Old 09-18-2012, 04:49 PM   #25
TheMadIndian
Member
 
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 117

Rep: Reputation: 23
Quote:
Originally Posted by darkduck View Post
I added these 2 lines at the start of my xstartup file.
No success.
no it wouldn't go there I'm looking for where it goes in debian now
 
Old 09-18-2012, 06:01 PM   #26
TheMadIndian
Member
 
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 117

Rep: Reputation: 23
The two lines I sent earlier are explained on this link and how you can autostart vncserver
http://ubuntuforums.org/archive/inde...t-1073892.html


I just downloaded debian squeeze and this just worked for me
Code:
#!/bin/sh

#xrdb $HOME/.Xresources
#xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
$colorPath = "/usr/X11R6/share/X11/rgb"
VNCSERVERARGS[1]="-geometry 1280x1024 -depth 24"
xfce4-session &
 
Old 09-18-2012, 06:21 PM   #27
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 498

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by TheMadIndian View Post
The two lines I sent earlier are explained on this link and how you can autostart vncserver
http://ubuntuforums.org/archive/inde...t-1073892.html


I just downloaded debian squeeze and this just worked for me
Code:
#!/bin/sh

#xrdb $HOME/.Xresources
#xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
$colorPath = "/usr/X11R6/share/X11/rgb"
VNCSERVERARGS[1]="-geometry 1280x1024 -depth 24"
xfce4-session &
I edited the xstartup file to include your lines (slightly edited, see below) as 9, 10 and 11. Unfortunately, no luck.
Here is what I have in 1.log

Code:
/home/blablabla/.vnc/xstartup: 9: =: not found
/home/blablabla/.vnc/xstartup: 10: VNCSERVERARGS[1]=-geometry 1024x650 -depth 24: not found

** ERROR **: Another session manager is already running
aborting...
1024x650 is the geometry I want to run, and this is what I changed in your lines. It proves that system tried to use new configuration.
What worries me is the error message. The "server" computer really runs an Xfce session on its own screen. But how will it stop me from having another Xfce session in VNC? Or this is a red herring?

Edit:
When I restart VNC, I have similar lines about "not found", but there's no ERROR message after that.

Last edited by darkduck; 09-18-2012 at 06:23 PM.
 
Old 09-18-2012, 06:27 PM   #28
TheMadIndian
Member
 
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 117

Rep: Reputation: 23
Quote:
Originally Posted by darkduck View Post
I edited the xstartup file to include your lines (slightly edited, see below) as 9, 10 and 11. Unfortunately, no luck.
Here is what I have in 1.log

Code:
/home/blablabla/.vnc/xstartup: 9: =: not found
/home/blablabla/.vnc/xstartup: 10: VNCSERVERARGS[1]=-geometry 1024x650 -depth 24: not found

** ERROR **: Another session manager is already running
aborting...
1024x650 is the geometry I want to run, and this is what I changed in your lines. It proves that system tried to use new configuration.
What worries me is the error message. The "server" computer really runs an Xfce session on its own screen. But how will it stop me from having another Xfce session in VNC? Or this is a red herring?

Edit:
When I restart VNC, I have similar lines about "not found", but there's no ERROR message after that.
What does this do?

Code:
#!/bin/sh

#xrdb $HOME/.Xresources
#xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
$colorPath = "/usr/X11R6/share/X11/rgb"
VNCSERVERARGS[1]="-geometry 1024x650 -depth 24"
xfwm4 &
 
Old 09-19-2012, 03:32 AM   #29
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 498

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by TheMadIndian View Post
What does this do?

Code:
#!/bin/sh

#xrdb $HOME/.Xresources
#xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
$colorPath = "/usr/X11R6/share/X11/rgb"
VNCSERVERARGS[1]="-geometry 1024x650 -depth 24"
xfwm4 &
I am not sure what $colorPath line does. It probably was in the file from the very beginning. Don't think that it can cause the problem.
The VNCSERVERARGS line is effectively the same line as in your recommendation.
xfwm4 line should start the Xfce window manager. I tried different options there: xfwm4, startxfce4, xfce4-session. Neither works.
All other lines are commented, so should not make any difference.

Last edited by darkduck; 09-19-2012 at 03:34 AM.
 
Old 03-11-2013, 04:46 PM   #30
LeetShiva
LQ Newbie
 
Registered: Jul 2012
Distribution: Arch, Gentoo, CrunchBang, Archbang, Slackware, FreeBsd, DamnSmallLinux, Debian
Posts: 21

Rep: Reputation: Disabled
I'm having simmilar problems as DarkDuck.
Eddy1
I have edited my /etc/.vnc/xstartup file as is written in your recommended page http://www.szewong.com/2009/06/setti...vnc-slicehost/ but I still doesnt have xfce4 session started.

I have on my vnc started X with few lines written on the top

I really need to be able to connect to xfce4 session via vnc. any help is appreciated.
Attached Thumbnails
Click image for larger version

Name:	Screenshot+-+03112013+-+10%3A36%3A50+PM.png
Views:	130
Size:	19.7 KB
ID:	12037  

Last edited by LeetShiva; 03-11-2013 at 04:48 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting Gnome Session over VNC John Parsons Linux - Newbie 6 07-21-2009 10:21 AM
Fluxbox not starting in VNC session rh_bomani Linux - Desktop 2 08-17-2007 09:43 AM
VNC Session mindjet SUSE / openSUSE 4 02-11-2006 09:49 AM
vnc into session 0 fraz Linux - Networking 5 11-21-2005 07:36 AM
Starting apps after starting xfce?? gtgoku Slackware 2 08-21-2004 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration