You are not logged in.

#26 2012-09-09 16:36:10

murugan
Member
Registered: 2010-08-02
Posts: 27

Re: Trying to move to systemd. Many problems

@ZoSoDaltrey
You should have any one of NetworkManager, wicd, netcfg for network.  You can have all of them installed but start only one of them at any time. To configure netcfg refer wiki .
Pacman create .pacnew file at the time of upgrading the package to prevent overwriting the user modified settings. If there is no services.pacnew file in your system then you don't need it actually. 

Are you using rc.conf file? if yes post your rc.conf.
what do you get when you run following command?

systemctl list-units -t service

Last edited by murugan (2012-09-09 16:37:24)

Offline

#27 2012-09-09 18:06:20

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: Trying to move to systemd. Many problems

murugan wrote:

I have finally solved my problems smile.  Actually it was my fault. /etc/services file was causing the problem. I haven't resolved /etc/services.pacnew file. I took backup of that file and renamed /etc/services.pacnew to /etc/services, thats it now everything back to normal. Everything KDM, kde and networkmanger are working as it should be.

I also found another file which I haven't resolved properly - /etc/group.pacnew. I compared it with /etc/group and made changes.

Thanks for the support.  I learnt a important lesson. Always read pacman messages (displayed at time of install/update the system) and act as required.

I recommend pacmatic (and aliasing pacman to pacmatic). It alerts you to unresolved .pacnew files etc. every time you run it. The only exception I've found is kdmrc which it doesn't seem to be aware of so you still need to look out for that one.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#28 2012-09-09 18:15:50

ZoSoDaltrey
Member
Registered: 2010-12-29
Posts: 35

Re: Trying to move to systemd. Many problems

Ok, so I already configured netcfg, and I have Internet. But if I do your command,

# systemctl list-units -t service

UNIT                                 LOAD   ACTIVE     SUB     JOB   DESCRIPTION
alsa.service                         loaded active     exited        Legacy unit for alsa
console-kit-log-system-start.service loaded active     exited        Console System Startup Logging
cronie.service                       loaded active     running       Periodic Command Scheduler
dbus.service                         loaded active     running       D-Bus System Message Bus
getty@tty1.service                   loaded active     running       Getty on tty1
kdm.service                          loaded active     running       K Display Manager
net-auto-wireless.service            loaded active     running       Provides automatic netcfg wireless connection
netcfg@multi-user.service            loaded failed     failed        Netcfg networking service for profile multi-user
rc-local.service                     loaded active     exited        /etc/rc.local Compatibility
syslog-ng.service                    loaded active     running       System Logger Daemon
systemd-journald.service             loaded active     running       Journal Service
systemd-logind.service               loaded activating start   start Login Service
systemd-modules-load.service         loaded active     exited        Load Kernel Modules
systemd-remount-fs.service           loaded active     exited        Remount Root and Kernel File Systems
systemd-sysctl.service               loaded active     exited        Apply Kernel Variables
systemd-tmpfiles-setup.service       loaded active     exited        Recreate Volatile Files and Directories
systemd-udev-trigger.service         loaded active     exited        udev Coldplug all Devices
systemd-udevd.service                loaded active     running       udev Kernel Device Manager
systemd-update-utmp-runlevel.service loaded failed     failed        Update UTMP about System Runlevel Changes
systemd-user-sessions.service        loaded active     exited        Permit User Sessions
systemd-vconsole-setup.service       loaded active     exited        Setup Virtual Console
wicd.service                         loaded failed     failed        Wicd a wireless and wired network manager for Linux

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
JOB    = Pending job for the unit.

22 units listed. Pass --all to see inactive units, too.

But if I check netcfg status...

net-auto-wireless.service - Provides automatic netcfg wireless connection
          Loaded: loaded (/usr/lib/systemd/system/net-auto-wireless.service; enabled)
          Active: active (running) since Sun, 09 Sep 2012 20:03:07 +0200; 5min ago
         Process: 214 ExecStart=/usr/bin/netcfg-wpa_actiond $WIRELESS_INTERFACE (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/net-auto-wireless.service
                  â 345 wpa_supplicant -B -P /run/wpa_supplicant_wlan0.pid -i wlan0 -D nl80211,wext -c/run/network/wpa.wlan0/wpa.conf -W
                  â 348 /usr/sbin/wpa_actiond -p /run/wpa_supplicant -i wlan0 -P /run/wpa_actiond_wlan0.pid -a /usr/bin/netcfg-wpa_action...
                  â 403 dhcpcd -qL -t 10 -K wlan0

Sep 09 20:03:08 GLaDOS netcfg-wpa_actiond[214]: naranjito

Wicd status:

# systemctl status wicd.service             
wicd.service - Wicd a wireless and wired network manager for Linux
          Loaded: loaded (/usr/lib/systemd/system/wicd.service; enabled)
          Active: failed (Result: exit-code) since Sun, 09 Sep 2012 20:03:08 +0200; 9min ago
         Process: 213 ExecStart=/usr/sbin/wicd --no-daemon (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/wicd.service

Sep 09 20:03:08 GLaDOS wicd[213]: It seems like the daemon is already running.
Sep 09 20:03:08 GLaDOS wicd[213]: If it is not, please remove /var/run/wicd/wicd.pid and try again.

And, my rc.conf:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.
# HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
# in the hardware clock being left untouched (useful for virtualization)
# Note: Using "localtime" is discouraged, using "" makes hwclock fall back
# to the value in /var/lib/hwclock/adjfile
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# Note: if unset, the value in /etc/localtime is used unchanged
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="es_ES.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK=""
TIMEZONE="Europe/Madrid"
KEYMAP="es"
CONSOLEFONT="iso08.16"
CONSOLEMAP=
USECOLOR="yes"
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
# Replace every !module by an entry as on the following line in a file in
# /etc/modprobe.d:
# blacklist module
# See "man modprobe.conf" for details.
#
MODULES=(fuse acpi-cpufreq cpufreq_ondemand loop)
# Udev settle timeout (default to 30)
UDEV_TIMEOUT=10
# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"
# Scan for BTRFS volumes at startup
USEBTRFS="no"
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="GLaDOS"
# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
# - interface: name of device (required)
# - address: IP address (leave blank for DHCP)
# - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
# - broadcast: broadcast address (ignored for DHCP) (optional)
# - gateway: default route (ignored for DHCP)
#
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# broadcast=192.168.0.255
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=
interface=eth0
address=
netmask=
broadcast=
gateway=
# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"
# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This requires the netcfg package
#
#NETWORKS=(main)
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.
#
DAEMONS=(dbus ufw crond alsa wicd !net-auto-wireless kdm)

Offline

#29 2012-09-09 18:32:22

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: Trying to move to systemd. Many problems

ZoSoDaltrey wrote:

I thought networkmanager/wicd must work with netcfg, but if not, can I unistall netcfg? or leave it without any configuration?

As murugan and I said...

Please read https://wiki.archlinux.org/index.php/Co … ng_Network and, especially, https://wiki.archlinux.org/index.php/Wireless_Setup. These explain the different options available to you. You shouldn't try to use all of them at the same time!

You can uninstall (or disable as murugan said) netcfg if you use networkmanager or wicd. You should not try to use networkmanager and wicd at the same time either. Right now, I'm using wicd. I don't have networkmanager or netcfg installed. These are three different options for managing the network, especially wireless networks. Read the wiki for details. Each has its own advantages and disadvantages. Note that I have seen a machine with both networkmanager and wicd installed and running. (I thought I'd killed the former but hadn't got rid of it all.) The connection continuously got disconnected as first one, then the other, tried to start a connection i.e. wicd trying to connect dropped any established networkmanager connection and vice-versa. Once I cleaned it up so only wicd was running, the connection stabilised.

I think I don't have nothing more handling the sound or the power, here you have the errors:

http://img338.imageshack.us/img338/2469 … nifvfv.jpg

I don't know what is causing the error at the bottom right but I don't think it is anything serious. I say this because since some recent-ish update, I see similar complaints all the time - especially when newly booted - yet everything (including sound) seems to work just fine.

However, the main error message there makes me think something further is wrong in your case. I see you are using pulse audio so I probably won't be much help - I never managed to get a peep out of my machine when I tried using pulse audio so now I just use alsa.

Have you tried reinstalling kdebase-workspace? That seems to include the powerdevil stuff in KDE. (At least some of it.) I'm not quite sure which backends it has in mind, though.

And I don't have /etc/services.pacnew and /etc/group.pacnew neither, I have /etc/group- and the originals ones.
@murugan Can you post them? :S Maybe that will solve my problem also, I think I have the same than you!

If you don't have .pacnew files, it means that (1) you haven't updated; or (2) you updated and merged the files; or (3) you did not make changes to the original files so pacman replaced the old defaults with the new defaults automatically.

Please read https://wiki.archlinux.org/index.php/Pa … save_Files.

EDIT: You have both wicd and netcfg enabled. If you are not using wicd, disable the service and remove or comment it out from your DAEMONS line in rc.conf.

You need to switch to using the new config files if you are using systemd. You can't do all that you are trying to do in rc.conf. Work through the systemd wiki page step by step and post back with any problems.

Last edited by cfr (2012-09-09 18:39:52)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#30 2012-09-09 22:15:05

ZoSoDaltrey
Member
Registered: 2010-12-29
Posts: 35

Re: Trying to move to systemd. Many problems

Ok, sorry again. If you see my rc.conf I have the netcfg daemon disabled, but I forgot about the service.

I uninstalled wicd and netcfg, and I installed networkmanager, kdebase-workspace, and finally I updated kde-4.9 to kde-4.9.1.
And this is all I get (and lots of FAIL errors about the journal on the first tty):

http://img27.imageshack.us/img27/6712/booooooom.png

Hahaha... so, seriously, f*ck it! Plus in this week I got 3 kernels panic...
And now I have a terrible headache and English is not my first language. But at least I learned some couple useful things!

Thank you guys for being so patient and try to help me, but I guess tomorrow or next tomorrow I will install Arch from the new .iso, so I leave this topic as unsolved, if you agree...

Cheers!

Last edited by ZoSoDaltrey (2012-09-09 22:23:21)

Offline

Board footer

Powered by FluxBB