Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I start a vncserver at boot with right language?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
OceanSoul
n00b
n00b


Joined: 23 Jul 2005
Posts: 21
Location: Graz - Austria

PostPosted: Fri Apr 14, 2006 5:12 pm    Post subject: How do I start a vncserver at boot with right language? Reply with quote

I'm running a Gentoo Router at home with a vncserver starting at boot. I want to start it with a specific user so my local.start looks like this:
Code:
su -c "vncserver" local_user


The vncserver is starting a xfce4-session, my /home/local_user/.vnc/xstartup looks like this:
Code:
#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

startxfce4 &


Everythings running fine except the xfce4-session is running in English, but LC_ALL and LANG are set to de_AT@euro. When starting the vncserver manually, the xfce4-session is running with the correct language.

How can I get the vncserver to start in German at boot?
Back to top
View user's profile Send private message
OceanSoul
n00b
n00b


Joined: 23 Jul 2005
Posts: 21
Location: Graz - Austria

PostPosted: Sat Apr 15, 2006 9:58 am    Post subject: Reply with quote

*bump*
Back to top
View user's profile Send private message
Lemma
Guru
Guru


Joined: 19 Apr 2002
Posts: 416
Location: Uppsala, Sweden

PostPosted: Thu Sep 28, 2006 12:58 pm    Post subject: Reply with quote

*bump*
_________________
Always make it as simple as possible, but no simpler
/Einstein
Back to top
View user's profile Send private message
CodAv
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 170
Location: Essen, Germany

PostPosted: Thu Sep 28, 2006 2:38 pm    Post subject: Reply with quote

Try using the "-" parameter of su to replace the environment:

Code:
su -c "vncserver" - local_user


Even if I su manually to a different user, I have to use this switch to be able to use many programs correctly, since they depend on the user's personal environment (paths, LD_FLAGS, language, ...).
_________________
Debian is available in three different versions: rusty, stale and broken.
Back to top
View user's profile Send private message
Lemma
Guru
Guru


Joined: 19 Apr 2002
Posts: 416
Location: Uppsala, Sweden

PostPosted: Thu Sep 28, 2006 3:21 pm    Post subject: Reply with quote

CodAv wrote:
Try using the "-" parameter of su to replace the environment:

Code:
su -c "vncserver" - local_user
Super! I have one problem left though, if I try to run a vmware-session inside the vnc-session I get incorrect an keyboard-layout. I need to be able to use swedish characters in win2k (running inside vmware) and they are dead, the rest of the keyboard is mapped as it should be (as in swedish style and not US ;-)). I guess I need to activate xkbd or something like it, but I can't find what or how (I have searched this site as well as google)...

The Gnome envitoment is all fine and even if I can't set the correct keyboard mapping it behaves as if it is (strange but i won't complain about if something is working automagically ;-)).
_________________
Always make it as simple as possible, but no simpler
/Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum