LinuxQuestions.org
Register a domain and help support LQ
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 05-10-2012, 04:44 PM   #1
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Rep: Reputation: 26
Question XFCE session in VNC not starting


I have a server machine, which runs Debian Squeeze XFCE. It also has VNC server installed (vnc4server).

Debian automatically boots into my user. I added VNC server startup command into the "Application autostart" part of the XFCE Session and Startup panel. The problem is that when I connect to the server from the client machine, it opens up vanilla X desktop, not the XFCE one. If I kill VNC server and restart it with exactly the same parameters, then VNC connection gets normal XFCE desktop. I don't understand the logic here.

Can someone explain how to get XFCE session in VNC connection right after the boot?

Thanks a lot!
 
Old 05-12-2012, 06:56 PM   #2
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Original Poster
Rep: Reputation: 26
anyone?
 
Old 09-12-2012, 11:12 PM   #3
TheMadIndian
Member
 
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 114

Rep: Reputation: 23
I stumbled across your remote file server blog and saw you still didn't have an answer while this may not resolve your issue I ran into a similar issue with Slackware where I was running fluxbox but would get the vanilla X no matter what I did. I am using vncserver so I modified xstartup in .vnc in my home dir.

I finally ended up with this config in the file .vnc/xstartup

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"
#twm &
fluxbox &
 
Old 09-13-2012, 05:46 PM   #4
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Original Poster
Rep: Reputation: 26
Hi,

I tried your file, replacing fluxbox with startxfce4.
Still, it does not work. 8-(
 
Old 09-13-2012, 11:10 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,218

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
I had the same problem getting LXDE working, was trying to get it going using fluxbox.
My solution was LXDM, in other words whatever your wm is that maybe what you need to be loading which will load XFCE.
 
Old 09-14-2012, 04:24 AM   #6
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by EDDY1 View Post
I had the same problem getting LXDE working, was trying to get it going using fluxbox.
My solution was LXDM, in other words whatever your wm is that maybe what you need to be loading which will load XFCE.
Sorry, I am lost here. Maybe you can explain in details?
Thanks!
 
Old 09-14-2012, 04:39 AM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,218

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
fluxbox xdm gdm lxdm are all window managers the also control which Desktop environment gets loaded.
http://xwinman.org/
http://xwinman.org/basics.php
https://wiki.archlinux.org/index.php/Window_Manager
 
Old 09-14-2012, 06:26 PM   #8
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Original Poster
Rep: Reputation: 26
Thanks for the advice.
I replaced startxfce4 & with xfwm4 &.
Now I see a different screen. It is definitely Xfce4 now, not vanilla X. A little progress.
But it still only has a terminal window on the empty desktop. No desktop icons, no wallpaper, no panel.

Code:
Here is my xstartup file:
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
xfwm4 &
And now restart of vncserver from Putty does not help.

Last edited by darkduck; 09-14-2012 at 06:28 PM.
 
Old 09-14-2012, 07:11 PM   #9
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 10.04/12.04, Scientific Linux 6.3, Android-x86, Maemo
Posts: 1,658

Rep: Reputation: 138Reputation: 138
Exporting the X session, setting the environment???

Just shooting in the dark with those...
 
Old 09-14-2012, 07:13 PM   #10
TheMadIndian
Member
 
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 114

Rep: Reputation: 23
Quote:
Originally Posted by darkduck View Post
Thanks for the advice.
I replaced startxfce4 & with xfwm4 &.
Now I see a different screen. It is definitely Xfce4 now, not vanilla X. A little progress.
But it still only has a terminal window on the empty desktop. No desktop icons, no wallpaper, no panel.

Code:
Here is my xstartup file:
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
xfwm4 &
And now restart of vncserver from Putty does not help.
Now that you have the correct syntax did you try my file?
 
Old 09-15-2012, 02:19 PM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,218

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
Maybe you should check configuration for Xfce & Xfwm.
Is VNC your only option? Can you login direct to machine?
If you can login direct is evrything showing on Desktop?
 
Old 09-15-2012, 06:00 PM   #12
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by TheMadIndian View Post
Now that you have the correct syntax did you try my file?
Yes, but without success.

Quote:
Originally Posted by EDDY1
Maybe you should check configuration for Xfce & Xfwm.
Is VNC your only option? Can you login direct to machine?
If you can login direct is evrything showing on Desktop?
When I login directly to the machine, it works perfectly.
The problem is only with remote login.
 
Old 09-15-2012, 07:07 PM   #13
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,218

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
I think that the settings the MadIndian posted will work as your settings have everything labled for an x terminal. You have to comment out a few lines.
In fact everything is commented out except xfwm4

Last edited by EDDY1; 09-15-2012 at 07:09 PM.
 
Old 09-16-2012, 05:20 PM   #14
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by EDDY1 View Post
I think that the settings the MadIndian posted will work as your settings have everything labled for an x terminal. You have to comment out a few lines.
In fact everything is commented out except xfwm4
Indeed, I tried this option too yesterday. No luck.
 
Old 09-16-2012, 07:34 PM   #15
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,218

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
This 1 says to do it onclient level instead of network
http://narnia.cs.ttu.edu/drupal/node/132

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/

Last edited by EDDY1; 09-16-2012 at 07:35 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 11:21 AM
Fluxbox not starting in VNC session rh_bomani Linux - Desktop 2 08-17-2007 10:43 AM
VNC Session mindjet Suse/Novell 4 02-11-2006 10:49 AM
vnc into session 0 fraz Linux - Networking 5 11-21-2005 08:36 AM
Starting apps after starting xfce?? gtgoku Slackware 2 08-21-2004 02:49 PM


All times are GMT -5. The time now is 03:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration