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

#1 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,766 posts

Posted 07 July 2012 - 01:17 PM

...How I Totally Borked My Arch Installation and Learned to Love the Bomb

Hokee-dokee, folks...

Since I can't seem to get auto-mounting to work anymore on my Arch installation and I'm still getting those annoying NOHZ soft_irq errors, I believe I'll completely convert my Arch installation from inits over to systemd today. If all goes well... YAY! If not, there are other remedies.

Posted Image

Stay tuned for the updates...

#2 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,766 posts

Posted 07 July 2012 - 01:33 PM

Some reading material while you all wait to see that mushroom cloud in the distance...

systemd@Arch Wiki --> https://wiki.archlin...dex.php/Systemd

systemd's homepage --> http://freedesktop.o...ftware/systemd/

- scroll down and read the two articles from The H under "publications"... good stuff. :yes:



#3 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,656 posts

Posted 07 July 2012 - 01:35 PM

Looking forward to it :thumbsup:
Posted ImagePosted Image
Configs/PGP Key/comhack π

"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

#4 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,766 posts

Posted 07 July 2012 - 02:39 PM

OK, here we go...

1) Install systemd from core using pacman:

 #pacman -S systemd

2) I intend to run pure systemd, so I won't need to append my kernel line with "init=/bin/systemd" to get systemd to load at boot.

3) Installed via pacman: python2-dbus, python2-cairo, systemd-arch-units, systemd-sysvcompat (must remove sysvinit).

4) Removed initscripts.

5) Create the following files:

https://wiki.archlin...iguration_files

6) Cross fingers and reboot.

- system reboot failed... had to manually reset machine

- successful boot up - startx, but no network access - wicd daemon fails to start, but can be started manually.


=====

I'm posting this from Arch using systemd now. I'm sure there are issues other than the wicd daemon. We'll have to play around a bit more to see what's not working.

Stay tuned...

#5 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,656 posts

Posted 07 July 2012 - 02:56 PM

Sweet!! Let us know how it goes   :thumbup:
Posted ImagePosted Image
Configs/PGP Key/comhack π

"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

#6 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,766 posts

Posted 07 July 2012 - 04:10 PM

DEBUGGING SESSION

1) No network startup at boot

- no dhcpd

- no wicd daemon


This is probably an issue with rc.conf and systemd's use of the DAEMONS array on that file. Solution so far - unknown. I can still manually start the wicd daemon from the command line once I'm in the GUI.

#7 OFFLINE   abarbarian

abarbarian

    Thread Kahuna

  • Forum MVP
  • 5,739 posts

Posted 07 July 2012 - 04:27 PM

Blimey talk about jumping in with both feet. :hysterical:

Hope you can swimm :happyroll: :fish:
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

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

#8 OFFLINE   raymac46

raymac46

    Discussion Deity

  • Forum MVP
  • 3,997 posts

Posted 07 July 2012 - 04:28 PM

This sounds like me setting up wifi in 2007 with Ubuntu and VL 5.8. Have you configured wpa-supplicant yet? :sweatingbullets:
Posted Image

#9 OFFLINE   abarbarian

abarbarian

    Thread Kahuna

  • Forum MVP
  • 5,739 posts

Posted 07 July 2012 - 04:28 PM

Crackers is right :Laughing:
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

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

#10 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,766 posts

Posted 07 July 2012 - 11:38 PM

Well, as some of you may know, even though Arch is not my primary OS on my main system, I let Arch's GRUB (legacy) control my system's MBR on my #1 drive. With all this borking around with Arch going on, I was worried that I might lose my bootloader. So, I had this bright idea to install LILO in my primary OS (Slackware) and let it take over the MBR.

The problem is that LILO, in my opinion, just doesn't have the ability to boot odd installations like mine with multiple operating systems spread across three hard drives. Well, guess what...  I got LILO installed and configured in Slackware to boot all my operating systems. There was only one problem. Only Slack would boot with USB keyboard and mouse support. Weird, huh? I even added the initrd line to LILO's entries. That didn't help at all.

So what now? No biggie, I thought. I'll just chroot from Slack into Arch and reinstall GRUB on the MBR. Hmm... I've done this before with great success. Tonight, it just didn't want to go easily. I ended up having to use a slightly different chroot method than I had used previously. I found it at this fellow's site --> http://www.hanckmann.net/?q=node/42 It worked wonderfully.

I'm back to using Arch's GRUB to boot my system. I'll just have to be careful to not bork it up again.

I'm tired of computering for the day. I still have network/wicd issues in Arch to resolve. I know it's just a configuration thing, but I'm so unfamiliar with systemd, that it's going to be challenge to find out how to fix all these bugaboos.

I'm off to beddy-bye... long bike ride tomorrow and no computers. ;)

#11 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,656 posts

Posted 08 July 2012 - 12:16 AM

View PostV.T. Eric Layton, on 07 July 2012 - 11:38 PM, said:

So what now? No biggie, I thought. I'll just chroot from Slack into Arch and reinstall GRUB on the MBR. Hmm... I've done this before with great success. Tonight, it just didn't want to go easily. I ended up having to use a slightly different chroot method than I had used previously. I found it at this fellow's site --> http://www.hanckmann.net/?q=node/42 It worked wonderfully.

I'm back to using Arch's GRUB to boot my system. I'll just have to be careful to not bork it up again.

I'm tired of computering for the day. I still have network/wicd issues in Arch to resolve. I know it's just a configuration thing, but I'm so unfamiliar with systemd, that it's going to be challenge to find out how to fix all these bugaboos.

I'm off to beddy-bye... long bike ride tomorrow and no computers. ;)
Excellent, that is the same link I use for chrooting in :thumbup:
Posted ImagePosted Image
Configs/PGP Key/comhack π

"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

#12 OFFLINE   amenditman

amenditman

    Board Bigwig

  • Forum MVP
  • 2,679 posts

Posted 08 July 2012 - 12:43 PM

View PostV.T. Eric Layton, on 07 July 2012 - 11:38 PM, said:

... long bike ride tomorrow and no computers. ;)
Nice! Glad to hear you are getting out on the road on two wheels. Any chance it's a big old hog?

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)


REGLUE

Recycled Electronics and Gnu/Linux Used for Education

Reglue, in a nutshell, gives free Linux computers to under privileged children and their families.

www.reglue.org


#13 OFFLINE   ichase

ichase

    Chasing the Penguin

  • Forum MVP
  • 1,835 posts

Posted 08 July 2012 - 01:03 PM

View Postraymac46, on 07 July 2012 - 04:28 PM, said:

Have you configured wpa-supplicant yet? :sweatingbullets:
Ray has a good point, about a week ago, wpa_supplicant was upgraded.  The /etc/wpa_supplicant.conf was automatically saved as /etc/wpa_supplicant.conf.pacsaved.  I had to go to that file and save it as wpa_supplicant.conf so it worked with the upgraded wpa_supplicant package.  I'm pretty confident you are using wext within wicd as it is most recommended.  Wext looks to your wpa_supplicant.conf file.  Just a suggestion but for an "old timer" you are already performing wonders in a short period of time.  I do believe this "Lab Rat" will be living a long life.  ;)
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!!!)
CNI Radio

"I'm in repair.............I'm not together, but I'm getting there"
- John Mayer


Registered Linux User:  526317 10/22/2010
  Posted Image

#14 OFFLINE   abarbarian

abarbarian

    Thread Kahuna

  • Forum MVP
  • 5,739 posts

Posted 08 July 2012 - 03:38 PM

View PostV.T. Eric Layton, on 07 July 2012 - 11:38 PM, said:


I'm off to beddy-bye... long bike ride tomorrow and no computers. ;)

Lucky sod. Hope the sun do shine but not too hot . :good2:
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

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

#15 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,766 posts

Posted 08 July 2012 - 06:21 PM

View Postamenditman, on 08 July 2012 - 12:43 PM, said:

Nice! Glad to hear you are getting out on the road on two wheels. Any chance it's a big old hog?

Umm... how I wish! I miss my motorcycle something fierce. Thanks for reminding me, Bob. >_<  Nah... it was just my daily bicycle ride around town. :)

#16 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,766 posts

Posted 08 July 2012 - 06:25 PM

View Postichase, on 08 July 2012 - 01:03 PM, said:

Ray has a good point...

Yes, that was a good suggestion. However, you guys must have missed it above where I stated that I can manually start the service. Once started all was well. The issue is that systemd does not utilize the rc.conf to start daemons reliably. You have to do something extra sometimes. I'll post about that in a minute.

View Postichase, on 08 July 2012 - 01:03 PM, said:

...for an "old timer" you are already performing wonders in a short period of time. I do believe this "Lab Rat" will be living a long life. ;)

SQUEAK! Posted Image

#17 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,766 posts

Posted 08 July 2012 - 06:34 PM

ISSUES
  • wicd daemon not starting
-debug solution: must register the daemon with systemd

# systemctl enable wicd.service
  • cups daemon not starting
  • ntpd daemon not starting
  • tor daemon not starting
  • et cetera not starting
-debug solution: must register daemons with systemd

 # systemctl enable <daemon name>.service
  • system time using UTC
-debug solution: create file /etc/adjtime

0.0 0.0 0.0
0
LOCAL

STILL NEEDING ATTENTION
  • sensors not working
  • still not auto-mouting in thunar
+++++

I'm making progress! :)

#18 OFFLINE   abarbarian

abarbarian

    Thread Kahuna

  • Forum MVP
  • 5,739 posts

Posted 08 July 2012 - 06:48 PM

View PostV.T. Eric Layton, on 08 July 2012 - 06:25 PM, said:

Yes, that was a good suggestion. However, you guys must have missed it above where I stated that I can manually start the service. Once started all was well. The issue is that systemd does not utilize the rc.conf to start daemons reliably. You have to do something extra sometimes. I'll post about that in a minute.



SQUEAK! Posted Image

http://www.game-voya...rat_action.html

There is a plot afoot to get all rats. Beware. :hysterical:
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

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

#19 OFFLINE   amenditman

amenditman

    Board Bigwig

  • Forum MVP
  • 2,679 posts

Posted 08 July 2012 - 06:50 PM

I'm glad, more and more, that auto-mounting is no kind of deal for me. This sounds like a project. Heck, you might even learn a thing or two in the process. o:)

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)


REGLUE

Recycled Electronics and Gnu/Linux Used for Education

Reglue, in a nutshell, gives free Linux computers to under privileged children and their families.

www.reglue.org


#20 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,766 posts

Posted 08 July 2012 - 06:57 PM

I'm learning that systemd is not the terrible ogre that I thought it to be just a few days ago. It does have some advantages over the old inits system. It's more efficient, easier to manipulate, and faster. However, as with anything new, it has a learning curve. And actually, it's not new. It's been around for quite some time. I've read some articles about it going back to 2009 or so. There is a lot of documentation online about it. I think quite a few of the more progressive distributions have or will go this route. I understand that Pat V. has no plans to implement it any time soon in Slackware, so I guess by the time he does, I'll won't be a systemd virgin anymore (thanks to my current Arch adventure). Yes. I'm keeping notes. ;)

View Postabarbarian, on 08 July 2012 - 06:48 PM, said:

http://www.game-voya...rat_action.html

There is a plot afoot to get all rats. Beware. :hysterical:

Like I have two hours to burn playing that. Thanks. ;)

#21 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,656 posts

Posted 08 July 2012 - 07:05 PM

View PostV.T. Eric Layton, on 08 July 2012 - 06:57 PM, said:

I'm learning that systemd is not the terrible ogre that I thought it to be just a few days ago. It does have some advantages over the old inits system. It's more efficient, easier to manipulate, and faster. However, as with anything new, it has a learning curve. And actually, it's not new. It's been around for quite some time. I've read some articles about it going back to 2009 or so. There is a lot of documentation online about it. I think quite a few of the more progressive distributions have or will go this route. I understand that Pat V. has no plans to implement it any time soon in Slackware, so I guess by the time he does, I'll won't be a systemd virgin anymore (thanks to my current Arch adventure). Yes. I'm keeping notes. ;)

Like I have two hours to burn playing that. Thanks. ;)

Excellent, I knew that you would not have a problem :thumbsup:

I may have to check out systemd pretty soon B)

BTW how is the mounting issue now? All resolved?
Posted ImagePosted Image
Configs/PGP Key/comhack π

"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

#22 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,766 posts

Posted 08 July 2012 - 07:10 PM

I can mount. Never had a problem with that. It's just that my Thunar auto-mount no longer functions. :( I'm still working on a solution.

#23 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,656 posts

Posted 08 July 2012 - 07:14 PM

View PostV.T. Eric Layton, on 08 July 2012 - 07:10 PM, said:

I can mount. Never had a problem with that. It's just that my Thunar auto-mount no longer functions. :( I'm still working on a solution.

Well that is what I was referring to ;)
Posted ImagePosted Image
Configs/PGP Key/comhack π

"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

#24 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,766 posts

Posted 08 July 2012 - 07:23 PM

I have no fear of flying with the command line, as you know. It's just that auto-mount is a convenience I liked, particularly with my mp3 player and CDs. :yes: I'll get it to work in systemd. You watch. :)

#25 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,766 posts

Posted 09 July 2012 - 12:26 AM

ISSUE
  • no auto-mount in thunar
-debug solution: installed python2-udiskie (an automounter app that works with udisks), added udiskie & before windows manager in .xinitrc.

STILL NEEDING ATTENTION
  • sensors not working - need to find out how to load module in systemd
  • intermittent freeze at halt - system halts but does not power off

Man! Tons of progress today. I love my Arch again. :)





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