Author Topic: Pure systemd in less than 15 minute  (Read 3510 times)

saturnino

  • Bridger
  • Posts: 148
  • Karma: +18/-2
    • View Profile
Pure systemd in less than 15 minute
« on: October 30, 2012, 10:21:26 PM »
This little How-To is no replacement for Arch-Wiki!!
You will get a working generic setup you can build on, depending on your needs. I recommend consulting the wiki for supplementary information, optimization etc.



install:
Code: [Select]
pacman -S systemd systemd-arch-units

Edit or if missing create following systemd configuration files:

Hostname:           - your choice, example is "bridge"
/etc/hostname
Code: [Select]
bridge
/etc/hosts         - change "bridge" to your chosen hostname
Code: [Select]
127.0.0.1   localhost.localdomain   localhost bridge
::1         localhost.localdomain   localhost bridge

Console and keymap   - change KEYMAP to yours
/etc/vconsole.conf
Code: [Select]
KEYMAP=us
FONT=
FONT_MAP=

Timezone
/etc/localtime
Create a symbolic link /etc/localtime to your zone file
see zones in /usr/share/zoneinfo/<Zone>/<SubZone>

Timezonelink:      - change Europe/Monaco to your zone
Code: [Select]
ln -s /usr/share/zoneinfo/Europe/Monaco /etc/localtime
File Timezone:   - change Europe/Monaco to your zone
/etc/timezone
Code: [Select]
Europe/Monaco
Setting up system-wide locale   -Change LANG=    to your language
/etc/locale.conf
Code: [Select]
LANG=en_US.UTF-8
Hardware clock: UTC or Localtime.
/etc/adjtime
Code: [Select]
hwclock --systohc --utcor
Code: [Select]
hwclock --systohc --localtime
/etc/locale.gen   check you have locale.gen in /etc directory

Next Step:

Add init=/bin/systemd to the kernel parameters in your bootloader.

GRUB:
Edit the file /etc/default/grub
put in the line:
Code: [Select]
GRUB_CMDLINE_LINUX_DEFAULT="init=/bin/systemd"
Re-generate grub.cfg:
Code: [Select]
grub-mkconfig -o /boot/grub/grub.cfg
Then reboot.

After reboot install:
Code: [Select]
pacman -S systemd-sysvcompat(you get asked if remove initscrips and sysvinit. Say yes.)

Then remove the kernel parameters:
Edit the file /etc/default/grub
del line:
Code: [Select]
GRUB_CMDLINE_LINUX_DEFAULT="init=/bin/systemd"
Re-generate grub.cfg:
Code: [Select]
grub-mkconfig -o /boot/grub/grub.cfg
Then enable services with systemctl enable .... Services replace the daemons from rc.conf.
Many services start up by default and you do not need enable them.

Depending on your Displaymanager enable:
KDE:
Code: [Select]
systemctl enable kdm.service
GDM:
Code: [Select]
systemctl enable gdm.service
LightDM:
Code: [Select]
systemctl enable lightdm.service
LXDM:
Code: [Select]
systemctl enable lxdm.service
SLIM:
Code: [Select]
systemctl enable slim.service
Enable Networkmanager
Code: [Select]
systemctl enable NetworkManager.service
DHCP network:
Code: [Select]
systemctl enable dhcpcd@eth0.service
Bluetooth if you want:
Code: [Select]
systemctl enable bluetooth.service
Other services you can enable you find in the wiki.

Finally restart.

I recommend consulting the wiki for supplementary information, optimization etc.

Good luck!
I am not young enough to know everything.
--Oscar Wilde

mikronimo

  • Member
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: Pure systemd in less than 15 minute
« Reply #1 on: October 31, 2012, 12:41:13 PM »
I was waiting for such a howto (simple respect the official wiki); my system run with grub 1 and kernel ck; i have a problem: in my etc/default i have not a file/directory "grub", but i have it in /boot: is it the same thing? If yes, have i to cancell the voice "quiet" (in "menu.lst")
Code: [Select]
title Linux CK
root (hd0,3)
kernel /boot/vmlinuz-linux-ck root=/dev/disk/by-uuid/93b44415-c84b-49b0-947f-5b3c7702ff64 loglevel=3 ro quiet resume=/dev/disk/by-uuid/74fc86bd-c868-4ffa-a05b-191d41a3dd55 elevator=bfq
initrd /boot/initramfs-linux-ck.img

inserting instead "init=/bin/systemd"? If not, what i have to do? Thanks in advance.
« Last Edit: October 31, 2012, 12:44:25 PM by mikronimo »
cpu Intel Celeron 560, 2,13 MHz, 1 Gb ram; gpu Intel 965 GM.
Bridge KDE 4.9.2 kernel 3.6.4-1-ck; openSUSE 12.1 KDE tumbleweed; Kubuntu 12.04

Ninja-1

  • Administrator
  • Bridger
  • *****
  • Posts: 882
  • Karma: +32/-1
    • View Profile
    • Miller Technologies
Re: Pure systemd in less than 15 minute
« Reply #2 on: October 31, 2012, 01:35:44 PM »
Yeah, GRUB Legacy doesn't have the /etc/default/grub directory. Just add it on the kernel line like the "resume=" and "elevator=" lines in /boot/grub/menu.lst.
Wanna help and know multiple languages? Check out the Bridge Linux Translation Project.

mikronimo

  • Member
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: Pure systemd in less than 15 minute
« Reply #3 on: October 31, 2012, 01:47:23 PM »
Like usually, really thanks; tomorrow i'll try the migration; the system it's a big mess every single update; today with the elimination of consolekit i can't mount my external data hd; i read that it's near a new version with both grub2 and systemd; can you conjecture a  date?
cpu Intel Celeron 560, 2,13 MHz, 1 Gb ram; gpu Intel 965 GM.
Bridge KDE 4.9.2 kernel 3.6.4-1-ck; openSUSE 12.1 KDE tumbleweed; Kubuntu 12.04

Ninja-1

  • Administrator
  • Bridger
  • *****
  • Posts: 882
  • Karma: +32/-1
    • View Profile
    • Miller Technologies
Re: Pure systemd in less than 15 minute
« Reply #4 on: October 31, 2012, 02:36:57 PM »
I can't give out any concrete dates right now, there's still a bit of work to be done to move Bridge over to systemd by default but I don't think it'll be too bad.
Wanna help and know multiple languages? Check out the Bridge Linux Translation Project.

mikronimo

  • Member
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: Pure systemd in less than 15 minute
« Reply #5 on: October 31, 2012, 06:53:20 PM »
Last question: why erase "init=/bin/systemd" from kernel option at the end?
cpu Intel Celeron 560, 2,13 MHz, 1 Gb ram; gpu Intel 965 GM.
Bridge KDE 4.9.2 kernel 3.6.4-1-ck; openSUSE 12.1 KDE tumbleweed; Kubuntu 12.04

saturnino

  • Bridger
  • Posts: 148
  • Karma: +18/-2
    • View Profile
Re: Pure systemd in less than 15 minute
« Reply #6 on: October 31, 2012, 07:55:41 PM »
Adding the line "init=/bin/systemd" to the kernel parameters tells the system to boot with "systemd", but it is still a "mixed" installation. If something would go wrong, you could revert to boot with sysvinit and initscripts, erasing the line "init=/bin/systemd" and correct errors.
If everything works, we change to a "pure" systemd installation, installing "systemd-sysvcompat", wich eliminates sysvinit and initscrips. Therefore the line "init=/bin/systemd" can be eliminated, because /sbin/init is a symlink to systemd now.
I am not young enough to know everything.
--Oscar Wilde

mikronimo

  • Member
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: Pure systemd in less than 15 minute
« Reply #7 on: October 31, 2012, 09:18:42 PM »
Ok, thanks a lot.  :)
cpu Intel Celeron 560, 2,13 MHz, 1 Gb ram; gpu Intel 965 GM.
Bridge KDE 4.9.2 kernel 3.6.4-1-ck; openSUSE 12.1 KDE tumbleweed; Kubuntu 12.04

sqlpython

  • Global Moderator
  • Bridger
  • *****
  • Posts: 495
  • Karma: +19/-2
  • #1 USA Arch Distro & #4 Arch Distro
    • View Profile
Re: Pure systemd in less than 15 minute
« Reply #8 on: October 31, 2012, 11:39:39 PM »
Good How To!  Applause
* Bridge /||===||\ , CrunchBang#!, Jessie, Sid,  Gentoo  & Slackware..

urbanomad

  • Member
  • Posts: 63
  • Karma: +2/-0
    • View Profile
Re: Pure systemd in less than 15 minute
« Reply #9 on: November 10, 2012, 07:22:17 AM »
Brilliant, this just solved all of my startup errors :-)

There's one problem now, how do I get Xfce to startup? I tried a systemctl but the syntax for the other services didn't work.
Bridge Linux 2012.12 | CPU: Intel i5-3550 1.6Ghz | MOBO: Gigabyte B75-D3V | Ram: 8GB | GPU: Gainward GT 630 2GB | HDD: Seagate 1TB Barracuda Sata3 7200rpm 64Mb.

Ninja-1

  • Administrator
  • Bridger
  • *****
  • Posts: 882
  • Karma: +32/-1
    • View Profile
    • Miller Technologies
Re: Pure systemd in less than 15 minute
« Reply #10 on: November 10, 2012, 11:21:43 AM »
The Xfce version uses LXDM. "sudo systemctl enable lxdm.service"
Wanna help and know multiple languages? Check out the Bridge Linux Translation Project.

timeEcho

  • Bridger
  • Posts: 403
  • Karma: +10/-3
  • Town Grouch
    • View Profile
Re: Pure systemd in less than 15 minute
« Reply #11 on: July 07, 2013, 06:17:09 PM »
 update to systemd
anyone who is stuck in their old ways -somewhat- there is a package which supposedly makes
 Sys 5 scripts and systemd compatable https://www.archlinux.org/packages/core/x86_64/systemd-sysvcompat/
   as we speak its marked out of date but that'll change soonish ....I'd expect.......
 cant tell you much more about it but it is maintained by a couple of the biggest shots at Arch......
   so it should be safe and well written...
 lots of dependencys as you can imagine...............

end~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  everything you know is  (((((([{WRONG}]))))))                   
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

lebec

  • Member
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Pure systemd in less than 15 minute
« Reply #12 on: July 14, 2013, 11:34:06 AM »
Hey timeEcho,
I notice you posted this just a week ago, the post before that was november last year, and the original post sometime before that.


Just a quick question, if I have the latest Bridge, does that mean I can ignore this?
Has Bridge gone over to Systemd?


thx,



______
Lebec

Death breaks no promises, neither is it susceptible to prayer nor other forms of fantasy wish-fulfillment.

saturnino

  • Bridger
  • Posts: 148
  • Karma: +18/-2
    • View Profile
Re: Pure systemd in less than 15 minute
« Reply #13 on: July 14, 2013, 02:31:18 PM »
Yes, you can ignore this post.
Bridge changed to systemd a while ago.
I am not young enough to know everything.
--Oscar Wilde

lebec

  • Member
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Pure systemd in less than 15 minute
« Reply #14 on: July 14, 2013, 11:17:11 PM »
Yes, you can ignore this post.
Bridge changed to systemd a while ago.


Thanks Saturnino.
As I moved around a little and opened my eyes, I realized how obvious was the change.


Appreciate it.


PS Did you hear about the necrophiliac stable-hand who renounced his favorite deceased Filly when he realized he was beating a dead horse?
______
Lebec

Death breaks no promises, neither is it susceptible to prayer nor other forms of fantasy wish-fulfillment.