Jump to content


How I Converted My Arch to 100% Systemd or...

systemd arch linux todays project the slacker goes crackers

  • Please log in to reply
122 replies to this topic

#101 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,862 posts

Posted 02 August 2012 - 12:20 AM

Well, my reboot took longer than planned. I was trying to get rid of the dead/inactive auditd.service, plymouth-quit-wait.service, plymouth-start.service, and the rc-local.service. In the process, I realized I hadn't created the locale.conf file in /etc the other day, so I did that, too. When I rebooted, I got a locale error in dmesg and my dropbox wouldn't show in the notification area. Something is not right with the locale.conf, so I deleted it for the moment. All's OK now.

=====

root@ericsbane05|Arch/home/vtel57:# systemd-analyze
Startup finished in 5546ms (kernel) + 12916ms (userspace) = 18462ms


About that GRUB mod, I wouldn't do it on my system, but it looks simple enough. Just edit as shown your menu.lst for legacy GRUB and menu.conf for GRUB2.

Posted Image Posted Image Posted Image


#102 OFFLINE   amenditman

amenditman

    Forum Fiend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,888 posts

Posted 03 August 2012 - 04:18 PM

For comparison sake I was trying to find my previous bootchart results for init based boot, but could not.
Going from memory, I think I remember something in the range of 8900 ms for this laptop to boot from GRUB to kdm login screen.
Now with systemd and some of the tweaks I am seeing average times between 3000 and 4000 ms with a lot of variation.

Edited by amenditman, 03 August 2012 - 04:19 PM.

Tweak it 'til it breaks, then learn how to fix it.  L.I.F.E. (Linux Is For Everyone)
Registered Linux User # 474004 (06/16/2008)

The HeliOS Project  -  B.O.D.
A Child's Exposure to Technology Should Never Be
  Predicated On The Ability To Afford It

#103 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 12,866 posts

Posted 04 August 2012 - 12:47 PM

View Postamenditman, on 03 August 2012 - 04:18 PM, said:

For comparison sake I was trying to find my previous bootchart results for init based boot, but could not.
Going from memory, I think I remember something in the range of 8900 ms for this laptop to boot from GRUB to kdm login screen.
Now with systemd and some of the tweaks I am seeing average times between 3000 and 4000 ms with a lot of variation.

It sounds as though you need to disable some of the daemons in /usr/lib/systemd/system/. EX:
# systemctl disable irexecd.service

Posted ImagePosted Image
Posted Image π
Comhack.com/CNI Radio/Linux User #363317/G+/Configs

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#104 OFFLINE   sunrat

sunrat

    Discussion Deity

  • Forum Moderators
  • 3,577 posts

Posted 04 August 2012 - 09:28 PM

View Postamenditman, on 03 August 2012 - 04:18 PM, said:

For comparison sake I was trying to find my previous bootchart results for init based boot, but could not.
Here? - http://forums.scotsn...96&hl=bootchart
registered Linux user number 324659  || The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted Image  
Today's subliminal thought is:

#105 OFFLINE   amenditman

amenditman

    Forum Fiend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,888 posts

Posted 04 August 2012 - 09:57 PM

View Postsunrat, on 04 August 2012 - 09:28 PM, said:

I don't think I ever posted results from this laptop to that thread.
Tweak it 'til it breaks, then learn how to fix it.  L.I.F.E. (Linux Is For Everyone)
Registered Linux User # 474004 (06/16/2008)

The HeliOS Project  -  B.O.D.
A Child's Exposure to Technology Should Never Be
  Predicated On The Ability To Afford It

#106 OFFLINE   amenditman

amenditman

    Forum Fiend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,888 posts

Posted 05 August 2012 - 04:52 PM

View Postsecuritybreach, on 04 August 2012 - 12:47 PM, said:

It sounds as though you need to disable some of the daemons in /usr/lib/systemd/system/. EX:
# systemctl disable irexecd.service
I plan on doing some tweaking this evening. That is a huge list in there. Any suggestions on how to go about disabling daemons? How do I decide if I need it or not? Google each one individually?
Tweak it 'til it breaks, then learn how to fix it.  L.I.F.E. (Linux Is For Everyone)
Registered Linux User # 474004 (06/16/2008)

The HeliOS Project  -  B.O.D.
A Child's Exposure to Technology Should Never Be
  Predicated On The Ability To Afford It

#107 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,862 posts

Posted 05 August 2012 - 05:01 PM

In Slack (and many other distros) you can permanently kill daemons by simply changing their permissions in /etc/rc.d to non-executable.

 # chmod 644 irexecd

I think that will still work in Arch-systemd. However, it's probably not the Arch Way. :(

Posted Image Posted Image Posted Image


#108 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 12,866 posts

Posted 05 August 2012 - 05:13 PM

View PostV.T. Eric Layton, on 05 August 2012 - 05:01 PM, said:

In Slack (and many other distros) you can permanently kill daemons by simply changing their permissions in /etc/rc.d to non-executable.

 # chmod 644 irexecd

I think that will still work in Arch-systemd. However, it's probably not the Arch Way. :(

Actually the syntax is:

Quote

Activate a unit immediately:
# systemctl start <unit>
Deactivate a unit immediately:
# systemctl stop <unit>
Restart a unit:
# systemctl restart <unit>
Ask a unit to reload its configuration:
# systemctl reload <unit>
Show the status of a unit, including whether it is running or not:
$ systemctl status <unit>
Check whether a unit is already enabled or not:
$ systemctl is-enabled <unit>
Enable a unit to be started on bootup:
# systemctl enable <unit>
Note: If services do not have an Install section, it usually means they are called automatically by other services. But if you need to install them manually, use the following command, replacing "foo" with the name of the service.
# ln -s /usr/lib/systemd/system/foo.service /etc/systemd/system/graphical.target.wants/

Disable a unit to not start during bootup:
# systemctl disable <unit>
Show the manual page associated with a unit (this has to be supported by the unit file):
$ systemctl help <unit>

https://wiki.archlin...emd#Using_Units
Posted ImagePosted Image
Posted Image π
Comhack.com/CNI Radio/Linux User #363317/G+/Configs

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#109 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,862 posts

Posted 05 August 2012 - 05:40 PM

Ah... good to know. :)

Posted Image Posted Image Posted Image


#110 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 12,866 posts

Posted 05 August 2012 - 05:50 PM

View PostV.T. Eric Layton, on 05 August 2012 - 05:40 PM, said:

Ah... good to know. :)

No problem :thumbsup:
Posted ImagePosted Image
Posted Image π
Comhack.com/CNI Radio/Linux User #363317/G+/Configs

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#111 OFFLINE   amenditman

amenditman

    Forum Fiend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,888 posts

Posted 13 August 2012 - 06:49 PM

View Postsecuritybreach, on 05 August 2012 - 05:13 PM, said:

Just found this really nice gui package for systemd administration, in arch repos as 'systemd-ui-git'.
Tweak it 'til it breaks, then learn how to fix it.  L.I.F.E. (Linux Is For Everyone)
Registered Linux User # 474004 (06/16/2008)

The HeliOS Project  -  B.O.D.
A Child's Exposure to Technology Should Never Be
  Predicated On The Ability To Afford It

#112 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,862 posts

Posted 13 August 2012 - 07:51 PM

GUI? GUI! We don't need no stinkin' GUIs. ;)

Posted Image

Posted Image Posted Image Posted Image


#113 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,862 posts

Posted 30 August 2012 - 10:00 PM

Josh or Bob,

I think these updates today broke some stuff on my system:

x86_64 Core systemd 189-3 system and service manager
x86_64 Core systemd-sysvcompat 189-3 sysvinit compat for systemd

My ntpd.service and dropboxd.service are broken; loading, but failing. Also, I now have a whole slew of inactive/dead services that I didn't have before. :(

root@ericsbane05/home/vtel57:# systemctl --all | grep failed
ntpd.service			  loaded failed   failed		Network Time Service
root@ericsbane05/home/vtel57:# systemctl --all | grep inactive
proc-sys...fmt_misc.mount loaded inactive dead		  Arbitrary Executable File Formats File System
sys-fs-f...nections.mount loaded inactive dead		  FUSE Control File System
sys-kernel-config.mount   loaded inactive dead		  Configuration File System
alsa-restore.service	  loaded inactive dead		  Restore Sound Card State
alsa-store.service		loaded inactive dead		  Store Sound Card State
auditd.service			masked inactive dead		  auditd.service
display-manager.service   masked inactive dead		  display-manager.service
emergency.service		 loaded inactive dead		  Emergency Shell
plymouth...t-wait.service masked inactive dead		  plymouth-quit-wait.service
plymouth-start.service	masked inactive dead		  plymouth-start.service
rc-local.service		  masked inactive dead		  rc-local.service
rescue.service			loaded inactive dead		  Rescue Shell
sshdgenkeys.service	   loaded inactive dead		  SSH Key Generation
systemd-...onsole.service loaded inactive dead		  Dispatch Password Requests to Console
systemd-...d-wall.service loaded inactive dead		  Forward Password Requests to Wall
systemd-binfmt.service	loaded inactive dead		  Set Up Additional Binary Formats
systemd-fsck-root.service loaded inactive dead		  File System Check on Root Device
systemd-...v-sda6.service loaded inactive dead		  File System Check on /dev/sda6
systemd-...v-sda8.service loaded inactive dead		  File System Check on /dev/sda8
systemd-...v-sdc2.service loaded inactive dead		  File System Check on /dev/sdc2
systemd-initctl.service   loaded inactive dead		  /dev/initctl Compatibility Daemon
systemd-...-flush.service loaded inactive dead		  Trigger Flushing of Journal to Persistent Storage
systemd-...s-load.service loaded inactive dead		  Load Kernel Modules
systemd-...d-load.service loaded inactive dead		  Load Random Seed
systemd-...d-save.service loaded inactive dead		  Save Random Seed
systemd-...ollect.service loaded inactive dead		  Collect Read-Ahead Data
systemd-...d-done.service loaded inactive dead		  Stop Read-Ahead Data Collection
systemd-...replay.service loaded inactive dead		  Replay Read-Ahead Data
systemd-shutdownd.service loaded inactive dead		  Delayed Shutdown Service
systemd-...-clean.service loaded inactive dead		  Cleanup of Temporary Directories
systemd-...nlevel.service loaded inactive dead		  Update UTMP about System Runlevel Changes
systemd-...utdown.service loaded inactive dead		  Update UTMP about System Shutdown
emergency.target		  loaded inactive dead		  Emergency Mode
final.target			  loaded inactive dead		  Final Step
nss-lookup.target		 loaded inactive dead		  Host and Network Name Lookups
nss-user-lookup.target	loaded inactive dead		  User and Group Name Lookups
rescue.target			 loaded inactive dead		  Rescue Mode
shutdown.target		   loaded inactive dead		  Shutdown
umount.target			 loaded inactive dead		  Unmount All Filesystems
systemd-...ead-done.timer loaded inactive dead		  Stop Read-Ahead Data Collection 10s After Completed Startup

WAAAAAAAAA! :(

Posted Image Posted Image Posted Image


#114 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 12,866 posts

Posted 31 August 2012 - 12:06 AM

First off to see why ntpd is not loading, run this command:
#[/color][size=1] systemctl enable [/size][color=#000000]ntpd[/color][color=#666600].[/color][color=#000000]service


As far as the inactive/dead services, I think those are services that are loaded at boot but not currently active. If I am not mistaken, some services are loaded on the fly and only when needed. For instance, look at the last couple of services:

Quote

shutdown.target loaded inactive dead    Shutdown
umount.target loaded inactive dead    Unmount All Filesystems

To me it looks like those are inactive as you are not currently unmounting a partition or rebooting. I may be wrong but that is what it looks like.

Mind you, you are more familiar with systemd than I am as I just set it up after your suggestion and have not really messed with it since:

 ╔═ comhack@Cerberus 10:52 PM 
╚═══ ~->su
Password: 
[root@Cerberus comhack]# systemctl --all | grep failed
[root@Cerberus comhack]# 
[root@Cerberus comhack]# systemctl --all | grep inactive
proc-sys...fmt_misc.mount loaded inactive dead		  Arbitrary Executable File Formats File System
sys-kernel-config.mount   loaded inactive dead		  Configuration File System
alsa-restore.service	  loaded inactive dead		  Restore Sound Card State
alsa-store.service		loaded inactive dead		  Store Sound Card State
arch-modules-load.service masked inactive dead		  arch-modules-load.service
auditd.service			loaded inactive dead		  Audit Daemon
display-manager.service   masked inactive dead		  display-manager.service
emergency.service		 loaded inactive dead		  Emergency Shell
plymouth...t-wait.service masked inactive dead		  plymouth-quit-wait.service
plymouth-start.service	masked inactive dead		  plymouth-start.service
rc-local.service		  masked inactive dead		  rc-local.service
rescue.service			loaded inactive dead		  Rescue Shell
sshdgenkeys.service	   loaded inactive dead		  SSH Key Generation
systemd-...onsole.service loaded inactive dead		  Dispatch Password Requests to Console
systemd-...d-wall.service loaded inactive dead		  Forward Password Requests to Wall
systemd-binfmt.service	loaded inactive dead		  Set Up Additional Binary Formats
systemd-fsck-root.service loaded inactive dead		  File System Check on Root Device
systemd-...6c267a.service loaded inactive dead		  File System Check on /dev/disk/by-uuid/3067b591-934e-4c73-a4a7-e5d9da6c267a
systemd-...528774.service loaded inactive dead		  File System Check on /dev/disk/by-uuid/93723ccc-25e8-4483-ba61-dd8854528774
systemd-...bcb1b5.service loaded inactive dead		  File System Check on /dev/disk/by-uuid/cb0d6b0f-1c2a-46c8-99eb-bbe4e1bcb1b5
systemd-initctl.service   loaded inactive dead		  /dev/initctl Compatibility Daemon
systemd-...-flush.service loaded inactive dead		  Trigger Flushing of Journal to Persistent Storage
systemd-...s-load.service loaded inactive dead		  Load Kernel Modules
systemd-...d-load.service loaded inactive dead		  Load Random Seed
systemd-...d-save.service loaded inactive dead		  Save Random Seed
systemd-...ollect.service loaded inactive dead		  Collect Read-Ahead Data
systemd-...d-done.service loaded inactive dead		  Stop Read-Ahead Data Collection
systemd-...replay.service loaded inactive dead		  Replay Read-Ahead Data
systemd-shutdownd.service loaded inactive dead		  Delayed Shutdown Service
systemd-...-clean.service loaded inactive dead		  Cleanup of Temporary Directories
systemd-...nlevel.service loaded inactive dead		  Update UTMP about System Runlevel Changes
systemd-...utdown.service loaded inactive dead		  Update UTMP about System Shutdown
emergency.target		  loaded inactive dead		  Emergency Mode
final.target			  loaded inactive dead		  Final Step
nss-user-lookup.target	loaded inactive dead		  User and Group Name Lookups
rescue.target			 loaded inactive dead		  Rescue Mode
shutdown.target		   loaded inactive dead		  Shutdown
umount.target			 loaded inactive dead		  Unmount All Filesystems
systemd-...ead-done.timer loaded inactive dead		  Stop Read-Ahead Data Collection 10s After Completed Startup
[root@Cerberus comhack]# systemctl --all | grep error 
[root@Cerberus comhack]# 

Posted ImagePosted Image
Posted Image π
Comhack.com/CNI Radio/Linux User #363317/G+/Configs

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#115 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,862 posts

Posted 31 August 2012 - 12:26 AM

You seem to be correct about them being nothing to worry about, J.

https://bbs.archlinu...151151#p1151151

However, the dropbox daemon is running, but not my panel icon. Also, when I enable the ntpd.service and then start it, it still fails. :(

root@ericsbane05/home/vtel57:# systemctl enable ntpd.service
root@ericsbane05/home/vtel57:# systemctl start ntpd.service
root@ericsbane05/home/vtel57:# systemctl --all | grep failed
ntpd.service			  loaded failed   failed		Network Time Service

Late. I'm going to bed. I'll snoop around a bit more tomorrow. Thanks. :)

Posted Image Posted Image Posted Image


#116 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 12,866 posts

Posted 31 August 2012 - 12:47 AM

View PostV.T. Eric Layton, on 31 August 2012 - 12:26 AM, said:

You seem to be correct about them being nothing to worry about, J.

https://bbs.archlinu...151151#p1151151

However, the dropbox daemon is running, but not my panel icon. Also, when I enable the ntpd.service and then start it, it still fails. :(

root@ericsbane05/home/vtel57:# systemctl enable ntpd.service
root@ericsbane05/home/vtel57:# systemctl start ntpd.service
root@ericsbane05/home/vtel57:# systemctl --all | grep failed
ntpd.service			  loaded failed   failed		Network Time Service

Late. I'm going to bed. I'll snoop around a bit more tomorrow. Thanks. :)

Sounds good!! We will figure out what the problem is B)
Posted ImagePosted Image
Posted Image π
Comhack.com/CNI Radio/Linux User #363317/G+/Configs

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#117 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,862 posts

Posted 31 August 2012 - 01:26 PM

Well, the ntpd.service failing issue was caused by a corrupted locale. I had to create a new /etc/locale.gen file (using Arch Wiki guidance) and rerun the command:

# locale-gen

To fix the locale issue, which in turn seems to have fixed the ntpd.service issue.

About the Dropbox, though...

The daemon is loading and running fine. I just no longer have the Dropbox icon in my notification area. Plus, I'm getting an error at logoff that says "an instance of dropbox is already running (PID)". *shrugging* :(

Posted Image Posted Image Posted Image


#118 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,862 posts

Posted 01 September 2012 - 08:16 PM

Well, I don't know how my dropbox got messed up, but I was able to fix it.

> Disable dropboxd.service at boot up:

# systemctl disable dropboxd.service

> Enable Dropbox using Xfce4 Session Manager:

Go to Xfce Menu --> Settings --> Session & Startup --> add Dropbox

All's well now. :)

Posted Image Posted Image Posted Image


#119 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 12,866 posts

Posted 02 September 2012 - 12:12 AM

Sweet :thumbsup:
Posted ImagePosted Image
Posted Image π
Comhack.com/CNI Radio/Linux User #363317/G+/Configs

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#120 OFFLINE   ichase

ichase

    Chasing the Penguin

  • Forum MVP
  • 1,587 posts

Posted 02 September 2012 - 01:51 PM

Well this has been an interesting read.  I have not jumped into yet and obviously it is something that is going to take some time but from what Josh mentioned in an earlier post.  We Arch users are going to have to do all of this eventually???
Ian Chase

Try Parted Magic The must have tool for any linux user's tool box.  (Contains Gparted, wifi support, Clonezilla, SuperGrubDisk/2, plop bootloader and more!!!)
Arch Linux Environment Setup How-To Learn how to not only install Arch Linux but learn more about the inner workings of Linux
"I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what i meant."
- Robert McCloskey
Registered Linux User:  526317 10/22/2010
Posted Image  Posted Image  Posted Image Posted Image

#121 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,862 posts

Posted 02 September 2012 - 06:54 PM

View Postichase, on 02 September 2012 - 01:51 PM, said:

We Arch users are going to have to do all of this eventually???

Not according to Pierre --> https://bbs.archlinu...p?id=147272&p=1 (2nd post)

Posted Image Posted Image Posted Image


#122 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 14,862 posts

Posted 05 September 2012 - 10:18 PM

Some very interesting Arch Linux/systemd reading:

Are We Removing What Defines Arch Linux? - Allen McRae


Trolling Arch Linux - Jason Ryan

Posted Image Posted Image Posted Image


#123 OFFLINE   abarbarian

abarbarian

    Posting Prodigy

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,103 posts

Posted 06 September 2012 - 05:44 AM

That McRae post was very informative. Loved reading some of the comments. :thumbup:
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image





Also tagged with one or more of these keywords: systemd, arch linux, todays project, the slacker goes crackers

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users