Sie sind nicht angemeldet.

1

06.03.2017, 20:55

DisplayManager verliert locale's

Tag Experten

Hab grad installiert XFCE und SLIM.
x11-misc/slim , xfce-base/xfce4-meta
Wenn ich im Terminal mache startxfce4, dann alles läuft genau wie erwartet.

Wenn aber ich mache /etc/init.d/xdm start , und auf diese Weise komme in XFCE,
dann gibt es ein wenig Sauerei.

~ # env-update
bash: env-update: command not found
Aber nach source /etc/profile , env-update hat nicht mehr gezickt.

xfce4-terminal verliert UTF8 seine Fähigkeit ,und mc muss man starten mit mc -a ,
sonst wird so ein Driss gezeigt

Quellcode

1
2
3
4
5
6
7
8
$ cal
     marts 2017     
P�� O�� T�� C�� Pk S�� Sv
       1  2  3  4  5 
 6  7  8  9 10 11 12 
13 14 15 16 17 18 19 
20 21 22 23 24 25 26 
27 28 29 30 31 

Quellcode

1
2
3
���������������������������� Save file ��������������� ��� Confirm save file: "/home/alf/.xinitrc" ��� 
������������������������������� ���          [ Save ]  [ Cancel ]           ��� ������ 
�����������������������������������                                             ���������� 


Quellcode

1
2
3
cat /etc/env.d/02locale
LANG="en_US.utf8"
...

Wenn es so ist, dann wieso jetzt ist andere LANG sichtbar ?
Für root als auch für User.

Quellcode

1
2
3
$ locale
LANG=se_SE.utf8
...
se_SE.utf8 locale wurde generiert, aber nicht eingesetzt als LANG

Quellcode

1
2
3
4
5
6
7
8
9
10
11
 eselect locale list
Available targets for the LANG variable:
  [1]   C
  [2]   POSIX
  [3]   en_US
  [4]   en_US.iso88591
  [5]   en_US.utf8 *
  [6]   se_SE
  [7]   se_SE.iso88591
  [8]   se_SE.utf8
  [ ]   (free form)


Weiss jm wieso startxfce4 gestartet durch XDM/SLIM macht so ein Driss ?

Hier sind meine XDM und SLIM configs

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
grep -v "^#\|^$" /etc/conf.d/xdm 
CHECKVT=7
DISPLAYMANAGER="slim"


cat /etc/env.d/90xsession 
XSESSION="Xfce4"


cat .xinitrc 
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
exec startxfce4

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
grep -v "^#\|^$" /etc/slim.conf
default_path        /bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments   -nolisten tcp -br -deferglyphs 16 vt07
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
xauth_path         /usr/bin/xauth 
authfile           /var/run/slim.auth
numlock             on
login_cmd           exec /bin/sh - ~/.xinitrc %session
sessionstart_cmd	/usr/bin/sessreg -a -l :0.0 %user
sessionstop_cmd     /usr/bin/sessreg -d -l :0.0 %user
daemon	yes
sessiondir	/usr/share/xsessions
screenshot_cmd      import -window root /slim.png
welcome_msg         Welcome to %host
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...
default_user        alf
auto_login          yes
current_theme       slim-gentoo-simple
lockfile            /run/slim.pid
logfile             /var/log/slim.log

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Kurmis« (10.03.2017, 21:52)


2

10.03.2017, 19:42

da bin ich mir auch nicht so sicher, aber hast Du Dir evtl. eine

Quellcode

1
/etc/X11/xorg.conf.d/30-keyboard.conf


angelegt und dort eine entsprechende

Quellcode

1
Option "XkbLayout" ""

zusätzlich eingetragen und ein Mischmasch entsteht?

Benutzt Du bash oder zsh?
In der SLIM-Conf steht
l

Quellcode

1
login_cmd           exec /bin/sh - ~/.xinitrc %session


Laut Wiki sollte da aber

Quellcode

1
login_cmd exec /bin/bash -login ~/.xinitrc %session

stehen

https://wiki.gentoo.org/wiki/SLiM#Upstre…e_configuration

Dein Eintrag führt ja zu Dash und nicht zu bash.

Sind aber auch nur Gedankenansätze

3

10.03.2017, 21:34

Es hat sich erledigt.
Ich hab noch ´ne sehr alte Kiste mit Gentoo, SLIM und XFCE.
Davon hab einfach /etc/slim.conf kopiert, und alles läuft.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
~ $ grep -v "^#\|^$" /etc/slim.conf
default_path        /bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments   -nolisten tcp -br -deferglyphs 16
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
xauth_path         /usr/bin/xauth 
authfile           /var/run/slim.auth
numlock             on
login_cmd           exec /bin/bash -login ~/.xinitrc %session xfce4
sessionstart_cmd	/usr/bin/sessreg -a -l :0.0 %user
sessionstop_cmd     /usr/bin/sessreg -d -l :0.0 %user
daemon	yes
sessions            xfce4,icewm-session,wmaker,blackbox
sessiondir           /etc/X11/Sessions
screenshot_cmd      import -window root /slim.png
welcome_msg         Welcome to %host
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...
default_user        alf
auto_login          yes
current_theme       slim-gentoo-simple
lockfile            /var/run/slim.pid
logfile             /var/log/slim.log

4

10.03.2017, 21:58

siehste, war wohl doch der Eintrag

Quellcode

1
login_cmd           exec /bin/bash -login ~/.xinitrc %session xfce4

das Problem ;)

Viel Spaß weiterhin