View previous topic :: View next topic |
Author |
Message |
OceanSoul n00b
Joined: 23 Jul 2005 Posts: 21 Location: Graz - Austria
|
Posted: Fri Apr 14, 2006 5:12 pm Post subject: How do I start a vncserver at boot with right language? |
|
|
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 |
|
|
OceanSoul n00b
Joined: 23 Jul 2005 Posts: 21 Location: Graz - Austria
|
Posted: Sat Apr 15, 2006 9:58 am Post subject: |
|
|
*bump* |
|
Back to top |
|
|
Lemma Guru
Joined: 19 Apr 2002 Posts: 416 Location: Uppsala, Sweden
|
Posted: Thu Sep 28, 2006 12:58 pm Post subject: |
|
|
*bump* _________________ Always make it as simple as possible, but no simpler
/Einstein |
|
Back to top |
|
|
CodAv Apprentice
Joined: 09 May 2004 Posts: 170 Location: Essen, Germany
|
Posted: Thu Sep 28, 2006 2:38 pm Post subject: |
|
|
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 |
|
|
Lemma Guru
Joined: 19 Apr 2002 Posts: 416 Location: Uppsala, Sweden
|
Posted: Thu Sep 28, 2006 3:21 pm Post subject: |
|
|
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 |
|
|
|