You are not logged in.

#1 2012-08-29 11:05:35

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

[SOLVED] Several (systemd-related) issues on a system unmaintained...

Hi all.

I was not able to maintain my system for a couple of months, however I performed few updates during that period of time.
The most significant updates, according to my memory, were /lib migration and replacement of dbus with systemd-tools.

Now, I am able to put hands on my system finally, but there are few issues which I'm not able to resolve by myself. I've already performed some changes in attempt to recover my arch installation, so currently I have
rc.conf

# Comments are omitted
DAEMONS=(syslog-ng network crond dbus @alsa bluetooth)

USECOLOR="yes"

MODULES=()

UDEV_TIMEOUT=30

USEDMRAID="no"

USEBTRFS="no"

USELVM="no"

interface=eth0
address=192.168.2.2
netmask=255.255.255.0
broadcast=192.168.2.255
gateway=192.168.2.1

NETWORK_PERSIST="no"

Obsolete settings are replaced by their recommended analogues.

I just show locale.conf here as I have issues with it
/etc/locale.conf

LANG="en_US.utf8"
LC_ALL="en_US.utf8"
Issues
  1. .bash_profile not executed on login

  2. $PATH is weird (incomplete).
    /sbin, /usr/sbin and some other variables are not in PATH. But they had been there before updates

  3. locale issue

    $ locale
    LANG=en_US.UTF-8
    LC_CTYPE=POSIX
    LC_NUMERIC=uk_UA.utf8
    LC_TIME=POSIX
    LC_COLLATE=POSIX
    LC_MONETARY=uk_UA.utf8
    LC_MESSAGES=POSIX
    LC_PAPER=uk_UA.utf8
    LC_NAME=POSIX
    LC_ADDRESS=POSIX
    LC_TELEPHONE=POSIX
    LC_MEASUREMENT=POSIX
    LC_IDENTIFICATION=POSIX
    LC_ALL=

    I have to source /etc/profile.d/locale.sh on every boot. To make settings in /etc/locale.conf activated.
    Edit: forgot to mention that uk_UA locale for some items is set via my ~/.bashrc file

  4. Automounting issue
    Mass storage devices are not mounted automatically, however that worked for me in the past
    I don't use any DE, and my x session is launched via slim
    slim.conf

    login_cmd           exec /bin/bash - ~/.xinitrc

    .xinitrc

    exec dbus-launch wmii
    $ ck-list-sessions 
    Session1:
            unix-user = '1000'
            realname = 'Dmytro Kostiuchenko'
            seat = 'Seat1'                                                 
            session-type = 'x11'                                           
            active = TRUE                                                  
            x11-display = ':0.0'                                           
            x11-display-device = '/dev/tty7'                               
            display-device = ''                                            
            remote-host-name = ''                                          
            is-local = TRUE                                                
            on-since = '2012-08-29T10:47:48.795454Z'                       
            login-session-id = '1' 

    Also worth to mention, that calibre is able to identify my Kindle is connected, so here might some udev rules problems. Let me know if assumption is correct, please.

  5. Power commands require root
    I used to turn off my PC with dbus-send command, however, now I get access denied message when trying to reboot or shutdown the system.
    My user is in power group already if it matters

Seems like that's all. Thanks in advance for any help.

Last edited by eDio (2012-08-29 14:31:46)

Offline

#2 2012-08-29 12:54:03

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: [SOLVED] Several (systemd-related) issues on a system unmaintained...

As for locale and PATH issue, seems that /etc/profile is not sourced. How is it possible? Shouldn't bash source it on login?

Offline

#3 2012-08-29 14:30:52

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: [SOLVED] Several (systemd-related) issues on a system unmaintained...

Just found out, that /etc/profile was not sourced because I missed -l argument for bash in slim.conf.
From man bash

When  bash  is  invoked  as  an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists.  After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable.  The --noprofile option may be used when the shell is started to  inhibit this behavior.

I suspect it had been accidentally omitted, while I was playing with appending ck-launch-session and dbus-launch to login cmd.

Resolution to the most major issues is

login_cmd           exec /bin/bash -l ~/.xinitrc

The moral is: man before complain smile

Marking this as SOLVED.

Offline

Board footer

Powered by FluxBB