Manjaro Linux Forum

Technical Issues and Assistance => OpenRC Support => Topic started by: aaditya on 06. June 2014, 19:49:28

Title: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 06. June 2014, 19:49:28
Hi,

With the increasing complexity of systemd, I decided to switch to a simpler init system, and ended up on OpenRC (http://www.gentoo.org/proj/en/base/openrc/).

Information about OpenRC:
https://wiki.manjaro.org/index.php?title=Openrc

ISOs with OpenRC and eudev:
https://classicforum.manjaro.org/index.php?board=50.0


I will summarise the installation instruction:

Its available from the Manjaro repositories (as an alternative to systemd).

1) Update your system.
Code: [Select]
sudo pacman -Syu
2) Install the openrc-base package group.
Code: [Select]
sudo pacman -S openrc-base
3) Install the openrc-desktop package group.
Code: [Select]
sudo pacman -S openrc-desktop
3-a) Install an openrc-compatible display manager and configure it in /etc/conf.d/xdm (Wiki link (https://wiki.manjaro.org/index.php?title=Openrc#Display_Manager))

3-b) For networking, dhcpcd is enabled by default; however if it does not work for you can try the networkmanager-openrc package.

Note-
After installing the above packages, pacman may display a message like :
Code: [Select]
installed acpid-openrc (20140527-1)
==> run 'rc-update add acpid default'

That is required for enabling the mentioned service.

To boot with systemd instead, when the GRUB menu for Manjaro is encountered while booting, press e to edit, and at the end of the line that starts with linux, add:
Code: [Select]
init=/usr/lib/systemd/systemd
The boot-log for OpenrRC is present in /var/log/rc.log


For more detailed instructions along with how to install eudev and some troubleshooting, have a look at the wiki:
https://wiki.manjaro.org/index.php?title=Openrc

For IRC (http://www.irchelp.org/irchelp/irctutorial.html) support, the channel is #manjaro-openrc on freenode (https://freenode.net/index.shtml).
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 07. June 2014, 04:05:50
Boot time comparison
OpenRC vs Systemd

OpenRC takes 12 - 15 secs to desktop, this is without performance enhancements.
Title: Re: Booting with OpenRC: An alternative to systemd [Development Talk]
Post by: artoo on 08. June 2014, 20:27:39
Hi aaditya, managed to register.  :)
Title: Re: Re: Booting with OpenRC: An alternative to systemd [Development Talk]
Post by: aaditya on 08. June 2014, 20:44:59
Hi aaditya, managed to register.  :)
Hi artoo :)

For people that dont know, artoo is the one who wrote the Pkgbuilds stated in this tutorial.
Title: Re: Re: Booting with OpenRC: An alternative to systemd [Development Talk]
Post by: philm on 08. June 2014, 20:45:38
Point me to those PKGBUILDs and I try to include them into our Distro ...
Title: Re: Booting with OpenRC: An alternative to systemd [Development Talk]
Post by: philm on 14. June 2014, 16:14:08
So, I added now the first set of packages to our communtiy repository:

Code: [Select]
### BoxIt memo ###

User philip committed following changes:

 - unstable community i686:  75 new and 0 removed package(s)
 - unstable community x86_64:  75 new and 0 removed package(s)

unstable_community_i686

[New Packages]
acpid-openrc-20140614-1-any.pkg.tar.xz
alsa-utils-openrc-20140614-1-any.pkg.tar.xz
apache-openrc-20140614-1-any.pkg.tar.xz
autofs-openrc-20140614-1-any.pkg.tar.xz
avahi-openrc-20140614-1-any.pkg.tar.xz
bind-openrc-20140614-1-any.pkg.tar.xz
bitlbee-openrc-20140614-1-any.pkg.tar.xz
bluez-openrc-20140614-1-any.pkg.tar.xz
connman-openrc-20140614-1-any.pkg.tar.xz
consolekit-0.4.6-4-i686.pkg.tar.xz
consolekit-openrc-20140614-1-any.pkg.tar.xz
cpupower-openrc-20140614-1-any.pkg.tar.xz
cronie-openrc-20140614-1-any.pkg.tar.xz
cryptsetup-openrc-20140614-1-any.pkg.tar.xz
cups-openrc-20140614-1-any.pkg.tar.xz
cyrus-sasl-openrc-20140614-1-any.pkg.tar.xz
dbus-eudev-1.8.4-1-i686.pkg.tar.xz
dbus-openrc-20140614-1-any.pkg.tar.xz
device-mapper-openrc-20140614-1-any.pkg.tar.xz
dhcp-openrc-20140614-1-any.pkg.tar.xz
dhcpcd-openrc-20140614-1-any.pkg.tar.xz
displaymanager-openrc-20140614-1-any.pkg.tar.xz
eudev-1.7-3-i686.pkg.tar.xz
eudev-openrc-20140614-1-any.pkg.tar.xz
fcron-openrc-20140614-1-any.pkg.tar.xz
fuse-openrc-20140614-1-any.pkg.tar.xz
git-openrc-20140614-1-any.pkg.tar.xz
glibc-openrc-20140614-1-any.pkg.tar.xz
gpm-openrc-20140614-1-any.pkg.tar.xz
haveged-openrc-20140614-1-any.pkg.tar.xz
hostapd-openrc-20140614-1-any.pkg.tar.xz
inetutils-openrc-20140614-1-any.pkg.tar.xz
iptables-openrc-20140614-1-any.pkg.tar.xz
krb5-openrc-20140614-1-any.pkg.tar.xz
lighttpd-openrc-20140614-1-any.pkg.tar.xz
lirc-utils-openrc-20140614-1-any.pkg.tar.xz
lm_sensors-openrc-20140614-1-any.pkg.tar.xz
lvm2-openrc-20140614-1-any.pkg.tar.xz
mdadm-openrc-20140614-1-any.pkg.tar.xz
metalog-openrc-20140614-1-any.pkg.tar.xz
mysql-openrc-20140614-1-any.pkg.tar.xz
networkmanager-openrc-0.9.8.10-6-i686.pkg.tar.xz
nfs-utils-openrc-20140614-1-any.pkg.tar.xz
ntp-openrc-20140614-1-any.pkg.tar.xz
openldap-openrc-20140614-1-any.pkg.tar.xz
openntpd-openrc-20140614-1-any.pkg.tar.xz
openrc-core-0.12.4-16-i686.pkg.tar.xz
openslp-openrc-20140614-1-any.pkg.tar.xz
openssh-openrc-20140614-1-any.pkg.tar.xz
openvpn-openrc-20140614-1-any.pkg.tar.xz
polipo-openrc-20140614-1-any.pkg.tar.xz
polkit-consolekit-0.112-2-i686.pkg.tar.xz
postfix-openrc-20140614-1-any.pkg.tar.xz
postgresql-openrc-20140614-1-any.pkg.tar.xz
privoxy-openrc-20140614-1-any.pkg.tar.xz
procps-ng-eudev-3.3.9-1-i686.pkg.tar.xz
quota-tools-openrc-20140614-1-any.pkg.tar.xz
rpcbind-openrc-20140614-1-any.pkg.tar.xz
rsync-openrc-20140614-1-any.pkg.tar.xz
rsyslog-openrc-20140614-1-any.pkg.tar.xz
samba-openrc-20140614-1-any.pkg.tar.xz
sane-openrc-20140614-1-any.pkg.tar.xz
squid-openrc-20140614-1-any.pkg.tar.xz
subversion-openrc-20140614-1-any.pkg.tar.xz
syslog-ng-openrc-20140614-1-any.pkg.tar.xz
sysvinit-2.88-15-i686.pkg.tar.xz
transmission-openrc-20140614-1-any.pkg.tar.xz
udisks2-eudev-2.1.3-1-i686.pkg.tar.xz
ufw-openrc-20140614-1-any.pkg.tar.xz
upower-pm-utils-eudev-0.9.23-1-i686.pkg.tar.xz
vsftpd-openrc-20140614-1-any.pkg.tar.xz
wpa_supplicant-openrc-20140614-1-any.pkg.tar.xz
xinetd-openrc-20140614-1-any.pkg.tar.xz
ypbind-mt-openrc-20140614-1-any.pkg.tar.xz
ypserv-openrc-20140614-1-any.pkg.tar.xz

unstable_community_x86_64

[New Packages]
acpid-openrc-20140614-1-any.pkg.tar.xz
alsa-utils-openrc-20140614-1-any.pkg.tar.xz
apache-openrc-20140614-1-any.pkg.tar.xz
autofs-openrc-20140614-1-any.pkg.tar.xz
avahi-openrc-20140614-1-any.pkg.tar.xz
bind-openrc-20140614-1-any.pkg.tar.xz
bitlbee-openrc-20140614-1-any.pkg.tar.xz
bluez-openrc-20140614-1-any.pkg.tar.xz
connman-openrc-20140614-1-any.pkg.tar.xz
consolekit-0.4.6-4-x86_64.pkg.tar.xz
consolekit-openrc-20140614-1-any.pkg.tar.xz
cpupower-openrc-20140614-1-any.pkg.tar.xz
cronie-openrc-20140614-1-any.pkg.tar.xz
cryptsetup-openrc-20140614-1-any.pkg.tar.xz
cups-openrc-20140614-1-any.pkg.tar.xz
cyrus-sasl-openrc-20140614-1-any.pkg.tar.xz
dbus-eudev-1.8.4-1-x86_64.pkg.tar.xz
dbus-openrc-20140614-1-any.pkg.tar.xz
device-mapper-openrc-20140614-1-any.pkg.tar.xz
dhcp-openrc-20140614-1-any.pkg.tar.xz
dhcpcd-openrc-20140614-1-any.pkg.tar.xz
displaymanager-openrc-20140614-1-any.pkg.tar.xz
eudev-1.7-3-x86_64.pkg.tar.xz
eudev-openrc-20140614-1-any.pkg.tar.xz
fcron-openrc-20140614-1-any.pkg.tar.xz
fuse-openrc-20140614-1-any.pkg.tar.xz
git-openrc-20140614-1-any.pkg.tar.xz
glibc-openrc-20140614-1-any.pkg.tar.xz
gpm-openrc-20140614-1-any.pkg.tar.xz
haveged-openrc-20140614-1-any.pkg.tar.xz
hostapd-openrc-20140614-1-any.pkg.tar.xz
inetutils-openrc-20140614-1-any.pkg.tar.xz
iptables-openrc-20140614-1-any.pkg.tar.xz
krb5-openrc-20140614-1-any.pkg.tar.xz
lighttpd-openrc-20140614-1-any.pkg.tar.xz
lirc-utils-openrc-20140614-1-any.pkg.tar.xz
lm_sensors-openrc-20140614-1-any.pkg.tar.xz
lvm2-openrc-20140614-1-any.pkg.tar.xz
mdadm-openrc-20140614-1-any.pkg.tar.xz
metalog-openrc-20140614-1-any.pkg.tar.xz
mysql-openrc-20140614-1-any.pkg.tar.xz
networkmanager-openrc-0.9.8.10-6-x86_64.pkg.tar.xz
nfs-utils-openrc-20140614-1-any.pkg.tar.xz
ntp-openrc-20140614-1-any.pkg.tar.xz
openldap-openrc-20140614-1-any.pkg.tar.xz
openntpd-openrc-20140614-1-any.pkg.tar.xz
openrc-core-0.12.4-16-x86_64.pkg.tar.xz
openslp-openrc-20140614-1-any.pkg.tar.xz
openssh-openrc-20140614-1-any.pkg.tar.xz
openvpn-openrc-20140614-1-any.pkg.tar.xz
polipo-openrc-20140614-1-any.pkg.tar.xz
polkit-consolekit-0.112-2-x86_64.pkg.tar.xz
postfix-openrc-20140614-1-any.pkg.tar.xz
postgresql-openrc-20140614-1-any.pkg.tar.xz
privoxy-openrc-20140614-1-any.pkg.tar.xz
procps-ng-eudev-3.3.9-1-x86_64.pkg.tar.xz
quota-tools-openrc-20140614-1-any.pkg.tar.xz
rpcbind-openrc-20140614-1-any.pkg.tar.xz
rsync-openrc-20140614-1-any.pkg.tar.xz
rsyslog-openrc-20140614-1-any.pkg.tar.xz
samba-openrc-20140614-1-any.pkg.tar.xz
sane-openrc-20140614-1-any.pkg.tar.xz
squid-openrc-20140614-1-any.pkg.tar.xz
subversion-openrc-20140614-1-any.pkg.tar.xz
syslog-ng-openrc-20140614-1-any.pkg.tar.xz
sysvinit-2.88-15-x86_64.pkg.tar.xz
transmission-openrc-20140614-1-any.pkg.tar.xz
udisks2-eudev-2.1.3-1-x86_64.pkg.tar.xz
ufw-openrc-20140614-1-any.pkg.tar.xz
upower-pm-utils-eudev-0.9.23-1-x86_64.pkg.tar.xz
vsftpd-openrc-20140614-1-any.pkg.tar.xz
wpa_supplicant-openrc-20140614-1-any.pkg.tar.xz
xinetd-openrc-20140614-1-any.pkg.tar.xz
ypbind-mt-openrc-20140614-1-any.pkg.tar.xz
ypserv-openrc-20140614-1-any.pkg.tar.xz

_______________________________________________
manjaro-packages mailing list
manjaro-packages@manjaro.org
http://lists.manjaro.org/mailman/listinfo/manjaro-packages

Additional packages will come.

@artoo: point me to the profile you used to create an install media based on openrc.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: viking60 on 17. June 2014, 13:42:27
Here is what I did:
Code: [Select]
sudo su(Simply sudo would not cut it)
then
Code: [Select]
pacman -S sysvinit openrc-desktop
And I am greedy so naturally I picked them all by simply hitting enter:
Code: [Select]
advarsel: sysvinit-2.88-15 er allerede oppdatert -- installerer på nytt
:: Det er 6 elementer i gruppen openrc-desktop:
:: Pakkebrønn community
   1) acpid-openrc  2) alsa-utils-openrc  3) avahi-openrc  4) consolekit-openrc
   5) displaymanager-openrc  6) gpm-openrc

They were already installed (so yes I has already tried it with the Archbang repos but it was so long ago that I had forgotten it  :D )
Code: [Select]
[thomas@localhost ~]$ rc-status
Runlevel: default
 dbus                                                              [  started  ]
 consolekit                                                        [  started  ]
 netmount                                                          [  stopped  ]
 xdm                                                               [  started  ]
 alsasound                                                         [  started  ]
 acpid                                                             [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                                                         [  started  ]
Dynamic Runlevel: manual
I (still) have to be root to get the network started so I made a script and autostarted it in xfce.
Code: [Select]
[thomas@localhost ~]$ cat net
#!/bin/bash 
sudo dhcpcd
Not very ellegant but it works - how do I get the net up without it?
And I have no sound - but I am not sure that is an openrc issue.

This thing is fast though - I like that.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 18. June 2014, 05:06:29
I converted my system to openrc earlier, and on one partition x started but network manager was giving me grief... the other partition x wouldn't start.   I'm not sure what happend, but i'm gonna do a fresh install tomorrow and try again, hopefully give you guys some logs to look at if it doesn't work properly
For network manager maybe you need networkmanager-openrc if the networkmanager in the repos does not work out..

And I simply forgot to mention the instructions for installing from Artoo's repos..

Step 1) I clone the repository to my hard drive for easy access. I have a git directory in which I keep these git repos. The steps:
Code: [Select]
cd git-repos
git clone https://github.com/udeved/pkgbuilds.git

Now the repos have been cloned, I can get around to building packages.
To update these repos, one has to do git pull to pull in the latest changes.

Step 2) Changing to required directory and making packages.
Viking60 wanted scripts for salt, and Rudylorren wanted them for mpd, both of which can be found in the openrc-misc folder. So we change to it. Then we run makepkg -cs to build the packages.
Code: [Select]
cd pkgbuilds/openrc/openrc-misc
makepkg -cs

With this step the packages should be created. To install all of them, one can do makepkg -i, and to install specific packages, one can do sudo pacman -U  <package-path>
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 18. June 2014, 09:58:25
Having spent the last 48 hours with OpenRC, here's my current thoughts.

Easy to install
Uses less memory then systemd (288 megs on OpenRC + Xfce desktop)
Fast
Wine/World of Warcraft works
Graphics look much sharper (why?)
Fonts look better (why?)
Fast
Disk access is Fast
Everything seems to work

Much thx go to aaditya & artoo for teaching me about OpenRC, great work.

aatoorc
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 18. June 2014, 20:23:13


Wine/World of Warcraft works

 ;D


Issues:
Conky shows CPU Temp 12C higher than with systemd; MB is normal at 37C
gvfs-mtp needs replacement (android connection via USB)
Plymouth not working, spent 3 hours trying every possible configuration but one  :o



As for temperature, have you tried eg cpupuwer?

gvfs might be available from repo next build, but not sure.

Plymouth is not supported by openrc, the best you can do is to disable 'splash' kernel boot parameter in your bootloader config.
There is an experimental/unstable openrc-plugin for plymouth in gentoo portage tree, but I did not port it.

I feel I answered this already, did I? The split thread confused me here.  :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 18. June 2014, 22:31:05

... temperature, have you tried cpupower-openrc?

... gvfs might be available from repo next build

... Plymouth is not supported by openrc


Issues:

1) High CPU Temperature for PC
   A. installed "thermald", CPU temps returned to normal;
        penalty => huge performance hit.
        uninstalled

   B. yaourt -S cpupower-openrc
        Packages (2): cpupower-3.14-3  cpupower-openrc-20140614-1

    $ rc-update add cpupower default
       * service cpupower added to runlevel default

   $ cpupower frequency-info
     analyzing CPU 0:
       driver: acpi-cpufreq
       CPUs which run at the same hardware frequency: 0
       CPUs which need to have their frequency coordinated by software: 0
       maximum transition latency: 10.0 us.
       hardware limits: 1.20 GHz - 2.60 GHz
       available frequency steps: 2.60 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz
       available cpufreq governors: ondemand, performance
       current policy: frequency should be within 1.20 GHz and 2.60 GHz.
              The governor "ondemand" may decide which speed to use
              within this range.
       current CPU frequency is 2.60 GHz.
       boost state support:
         Supported: no
         Active: no

    Status:  Configure and Testing

2) replacement for gvfs-mtp .. works as root

3) installed plymouth-git, bypasses plymouth splash screen;
   also need to configure lxdm and xfce4 to have boot and reboot GUI features
   currently hammering the command-line to reboot
      su
      <password>
      reboot
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 18. June 2014, 22:43:52
What type of pc do you use?

Can you please provide some output in the split off thread (https://forum.manjaro.org/index.php?topic=14395), in case eg additional lm_sensors don't help?
eg dmesg

If you have intel PC, you can try to disable intel frequency scaling(default for intel) and then use acpi-freq.
I found acpi to be better scaling than intel on my system for compiling.
 
add to kernel command, use at own risk.

Code: [Select]
intel_pstate=disable
acpi module sould be loaded by udev.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 18. June 2014, 23:39:11
cupower-openrc doesn't respond to my attempts to configure it.

Pentium(R) Dual-Core  CPU  E5300  @ 2.60GHz (over-clocked @ 3.60GHz)

Added .. intel_pstate=disable
Code: [Select]
linux /vmlinuz-315-x86_64 root=UUID=b464c78d-e6ce-4e2b-91f7-9ae3a520720c rw  resume=UUID=d91603be-1975-42f1-8f38-e7e3acc961ef intel_pstate=disable quiet splash

$ cpupower frequency-info
Code: [Select]
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us.
  hardware limits: 1.20 GHz - 2.60 GHz
  available frequency steps: 2.60 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 1.20 GHz and 2.60 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.60 GHz.
  boost state support:
    Supported: no
    Active: no


$ sudo modprobe cpufreq_governor
Code: [Select]
modprobe: FATAL: Module cpufreq_governor not found.

$ inxi -Fxz
Code: [Select]
System:    Host: localhost Kernel: 3.15.1-1-MANJARO x86_64 (64 bit gcc: 4.9.0)
           Desktop: Xfce 4.11.6git-UNKNOWN (Gtk 2.24.23)
           Distro: ManjaroLinux 0.8.10 Ascella

Machine:   Mobo: ASUSTeK model: P5Q SE/R v: Rev 1.xx
           Bios: American Megatrends v: 1005 date: 08/04/2009

CPU:       Dual core Pentium E5300 (-MCP-) cache: 2048 KB
           flags: (lm nx sse sse2 sse3 ssse3) bmips: 13319
           Clock Speeds: 1: 2603 MHz 2: 2003 MHz

Graphics:  Card: Advanced Micro Devices [AMD/ATI] Caicos [Radeon HD 6450/7450/8450]
           bus-ID: 01:00.0
           Display Server: X.Org 1.15.1 driver: fglrx
           Resolution: 1920x1080@60.00hz
           GLX Renderer: AMD Radeon HD 6450
           GLX Version: 4.4.12874 - CPC 14.10.1006.1001 Direct Rendering: Yes

Audio:     Card-1 Advanced Micro Devices [AMD/ATI] Caicos HDMI Audio [Radeon HD 6400 Series]
           driver: snd_hda_intel bus-ID: 01:00.1
           Card-2 Intel 82801JI (ICH10 Family) HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k3.15.1-1-MANJARO

Network:   Card: VIA VT6105/VT6106S [Rhine-III]
           driver: via-rhine port: e800 bus-ID: 04:01.0
           IF: enp4s1 state: unknown speed: 100 Mbps duplex: full
           mac: <filter>

Drives:    HDD Total Size: 1000.2GB (6.0% used)
           ID-1: /dev/sda model: ST3500410AS size: 500.1GB
           ID-2: /dev/sdb model: ST3500410AS size: 500.1GB

Partition: ID-1: / size: 20G used: 7.6G (41%) fs: ext4 dev: /dev/sda3
           ID-2: /boot size: 194M used: 63M (33%) fs: ext2 dev: /dev/sda1
           ID-3: /home size: 435G used: 45G (11%) fs: ext4 dev: /dev/sda4
           ID-4: swap-1 size: 4.29GB used: 0.00GB (0%) fs: swap dev: /dev/sda2

Sensors:   None detected - is lm-sensors installed and configured?

Info:      Processes: 127 Uptime: 50 min Memory: 1096.2/3956.8MB
           Init: SysVinit  rc: OpenRCrunlevel: 3 Gcc sys: 4.9.0
           Client: Shell (bash 4.3.181) inxi: 2.1.28


$ lscpu
Code: [Select]
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 23
Model name:            Pentium(R) Dual-Core  CPU      E5300  @ 2.60GHz
Stepping:              10
CPU MHz:               2603.000
CPU max MHz:           2603.0000
CPU min MHz:           1203.0000
BogoMIPS:              6659.80
L1d cache:             32K
L1i cache:             32K
L2 cache:              2048K
NUMA node0 CPU(s):     0,1
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 19. June 2014, 03:47:08
Solution:  sudo killall plymouthd

cpupower .. is working perfectly .. CPU temp 36C (no load) .. MB temp 36C
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 19. June 2014, 05:28:59

Issues:

1) High CPU Temperature for PC
   A. installed "thermald", CPU temps returned to normal;
        penalty => huge performance hit.
        uninstalled

   B. yaourt -S cpupower-openrc
        Packages (2): cpupower-3.14-3  cpupower-openrc-20140614-1

    $ rc-update add cpupower default
       * service cpupower added to runlevel default

   $ cpupower frequency-info
     analyzing CPU 0:
       driver: acpi-cpufreq
       CPUs which run at the same hardware frequency: 0
       CPUs which need to have their frequency coordinated by software: 0
       maximum transition latency: 10.0 us.
       hardware limits: 1.20 GHz - 2.60 GHz
       available frequency steps: 2.60 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz
       available cpufreq governors: ondemand, performance
       current policy: frequency should be within 1.20 GHz and 2.60 GHz.
              The governor "ondemand" may decide which speed to use
              within this range.
       current CPU frequency is 2.60 GHz.
       boost state support:
         Supported: no
         Active: no

    Status:  Configure and Testing

2) replacement for gvfs-mtp .. works as root

3) installed plymouth-git, bypasses plymouth splash screen;
   also need to configure lxdm and xfce4 to have boot and reboot GUI features
   currently hammering the command-line to reboot

      su
      <password>
      reboot
For these, you could install consolekit, lxdm-consolekit (https://aur.archlinux.org/packages/lxdm-consolekit/), and xfce4-session-consolekit (https://aur.archlinux.org/packages/xfce4-session-consolekit/).
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 19. June 2014, 05:55:19

you could install lxdm-consolekit .. and .. xfce4-session-consolekit


Issue:  also need to configure lxdm and xfce4 to have boot and reboot GUI features


Yep, have these installed, have not figured out how to configure them properly;
still getting dropped to the command-line on boot and reboot.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 19. June 2014, 05:58:02

Yep, have these installed, have not figured out how to configure them properly;
still getting dropped to the command-line on boot and reboot.
Sorry, I think I forgot consolekit-openrc
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 19. June 2014, 07:41:20
I have one more issue, if you care to hear it.

cpupower defaults to base CPU specs with the "ondemand" governor.

/etc/default/cpupower
My preference is to run CPU min=2600 and max=3600, with ondemand. 
How to make this autostart?
 
cpupower can be set manually: 
Code: [Select]
sudo cpupower frequency-set -d 2600000 -u 3340000 -g ondemand


aatoo openrc = fast
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 19. June 2014, 08:00:34
I have one more issue, if you care to hear it.

cpupower defaults to base CPU specs with the "ondemand" governor.

/etc/default/cpupower
My preference is to run CPU min=2600 and max=3600, with ondemand. 
How to make this autostart?
 
cpupower can be set manually: 
Code: [Select]
sudo cpupower frequency-set -d 2600000 -u 3340000 -g ondemand

Sorry, dont know much about cpupower.
I had tried it once, and it had failed to start on my PC..
All I can tell you is that there is a cpupower-openrc package, dont know whether you are using it ot not..
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 19. June 2014, 08:32:08
yes - installed "cpupower-openrc" - no joy, must manually set. 
Will keep searching for solution.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 19. June 2014, 09:03:49

You can set manually: sudo cpupower frequency-set -d 2600000 -u 3340000 -g ondemand
How to make "autostart" ?

cpupower
CPU set at min=2600 MHz, max=3340 MHz; with "ondemand governor".

Solution is to edit: /etc/conf.d/cpupower
START_OPTS="-d 2600000 -u 3340000 --governor ondemand"
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 19. June 2014, 10:19:29

/etc/default/cpupower


You found out yourself. :)

As general rule, services can be configured in corresponding

/etc/conf.d/<service>

/etc/init.d/<service> reads the file in /etc/conf.d/<service>
Title: Re: Booting with OpenRC: An alternative to systemd [general]
Post by: philm on 19. June 2014, 11:17:08
Here we go for the second update-pack for openRC:

Code: [Select]
### BoxIt memo ###

User philip committed following changes:

 - unstable community i686:  70 new and 67 removed package(s)
 - unstable community x86_64:  70 new and 67 removed package(s)

unstable_community_i686

[New Packages]
acpid-openrc-20140619-1-any.pkg.tar.xz
alsa-utils-openrc-20140619-1-any.pkg.tar.xz
apache-openrc-20140619-1-any.pkg.tar.xz
autofs-openrc-20140619-1-any.pkg.tar.xz
avahi-openrc-20140619-1-any.pkg.tar.xz
bind-openrc-20140619-1-any.pkg.tar.xz
bitlbee-openrc-20140619-1-any.pkg.tar.xz
bluez-openrc-20140619-1-any.pkg.tar.xz
connman-openrc-20140619-1-any.pkg.tar.xz
consolekit-openrc-20140619-1-any.pkg.tar.xz
cpupower-openrc-20140619-1-any.pkg.tar.xz
cronie-openrc-20140619-1-any.pkg.tar.xz
cryptsetup-openrc-20140619-1-any.pkg.tar.xz
cups-openrc-20140619-1-any.pkg.tar.xz
cyrus-sasl-openrc-20140619-1-any.pkg.tar.xz
dbus-openrc-20140619-1-any.pkg.tar.xz
device-mapper-openrc-20140619-1-any.pkg.tar.xz
dhcp-openrc-20140619-1-any.pkg.tar.xz
dhcpcd-openrc-20140619-1-any.pkg.tar.xz
displaymanager-openrc-20140619-1-any.pkg.tar.xz
eudev-openrc-20140619-1-any.pkg.tar.xz
fcron-openrc-20140619-1-any.pkg.tar.xz
fuse-openrc-20140619-1-any.pkg.tar.xz
git-openrc-20140619-1-any.pkg.tar.xz
glibc-openrc-20140619-1-any.pkg.tar.xz
gpm-openrc-20140619-1-any.pkg.tar.xz
haveged-openrc-20140619-1-any.pkg.tar.xz
hostapd-openrc-20140619-1-any.pkg.tar.xz
inetutils-openrc-20140619-1-any.pkg.tar.xz
iptables-openrc-20140619-1-any.pkg.tar.xz
krb5-openrc-20140619-1-any.pkg.tar.xz
libpulse-eudev-5.0-1-i686.pkg.tar.xz
lighttpd-openrc-20140619-1-any.pkg.tar.xz
lirc-utils-openrc-20140619-1-any.pkg.tar.xz
lm_sensors-openrc-20140619-1-any.pkg.tar.xz
lvm2-openrc-20140619-1-any.pkg.tar.xz
mdadm-openrc-20140619-1-any.pkg.tar.xz
metalog-openrc-20140619-1-any.pkg.tar.xz
mpd-openrc-20140619-1-any.pkg.tar.xz
mysql-openrc-20140619-1-any.pkg.tar.xz
networkmanager-openrc-0.9.8.10-7-i686.pkg.tar.xz
nfs-utils-openrc-20140619-1-any.pkg.tar.xz
ntp-openrc-20140619-1-any.pkg.tar.xz
openldap-openrc-20140619-1-any.pkg.tar.xz
openntpd-openrc-20140619-1-any.pkg.tar.xz
openrc-core-0.12.4-17-i686.pkg.tar.xz
openslp-openrc-20140619-1-any.pkg.tar.xz
openssh-openrc-20140619-1-any.pkg.tar.xz
openvpn-openrc-20140619-1-any.pkg.tar.xz
polipo-openrc-20140619-1-any.pkg.tar.xz
postfix-openrc-20140619-1-any.pkg.tar.xz
postgresql-openrc-20140619-1-any.pkg.tar.xz
privoxy-openrc-20140619-1-any.pkg.tar.xz
quota-tools-openrc-20140619-1-any.pkg.tar.xz
rpcbind-openrc-20140619-1-any.pkg.tar.xz
rsync-openrc-20140619-1-any.pkg.tar.xz
rsyslog-openrc-20140619-1-any.pkg.tar.xz
salt-openrc-20140619-1-any.pkg.tar.xz
samba-openrc-20140619-1-any.pkg.tar.xz
sane-openrc-20140619-1-any.pkg.tar.xz
squid-openrc-20140619-1-any.pkg.tar.xz
subversion-openrc-20140619-1-any.pkg.tar.xz
syslog-ng-openrc-20140619-1-any.pkg.tar.xz
transmission-openrc-20140619-1-any.pkg.tar.xz
ufw-openrc-20140619-1-any.pkg.tar.xz
vsftpd-openrc-20140619-1-any.pkg.tar.xz
wpa_supplicant-openrc-20140619-1-any.pkg.tar.xz
xinetd-openrc-20140619-1-any.pkg.tar.xz
ypbind-mt-openrc-20140619-1-any.pkg.tar.xz
ypserv-openrc-20140619-1-any.pkg.tar.xz

[Removed Packages]
acpid-openrc-20140614-1-any.pkg.tar.xz
alsa-utils-openrc-20140614-1-any.pkg.tar.xz
apache-openrc-20140614-1-any.pkg.tar.xz
autofs-openrc-20140614-1-any.pkg.tar.xz
avahi-openrc-20140614-1-any.pkg.tar.xz
bind-openrc-20140614-1-any.pkg.tar.xz
bitlbee-openrc-20140614-1-any.pkg.tar.xz
bluez-openrc-20140614-1-any.pkg.tar.xz
connman-openrc-20140614-1-any.pkg.tar.xz
consolekit-openrc-20140614-1-any.pkg.tar.xz
cpupower-openrc-20140614-1-any.pkg.tar.xz
cronie-openrc-20140614-1-any.pkg.tar.xz
cryptsetup-openrc-20140614-1-any.pkg.tar.xz
cups-openrc-20140614-1-any.pkg.tar.xz
cyrus-sasl-openrc-20140614-1-any.pkg.tar.xz
dbus-openrc-20140614-1-any.pkg.tar.xz
device-mapper-openrc-20140614-1-any.pkg.tar.xz
dhcp-openrc-20140614-1-any.pkg.tar.xz
dhcpcd-openrc-20140614-1-any.pkg.tar.xz
displaymanager-openrc-20140614-1-any.pkg.tar.xz
eudev-openrc-20140614-1-any.pkg.tar.xz
fcron-openrc-20140614-1-any.pkg.tar.xz
fuse-openrc-20140614-1-any.pkg.tar.xz
git-openrc-20140614-1-any.pkg.tar.xz
glibc-openrc-20140614-1-any.pkg.tar.xz
gpm-openrc-20140614-1-any.pkg.tar.xz
haveged-openrc-20140614-1-any.pkg.tar.xz
hostapd-openrc-20140614-1-any.pkg.tar.xz
inetutils-openrc-20140614-1-any.pkg.tar.xz
iptables-openrc-20140614-1-any.pkg.tar.xz
krb5-openrc-20140614-1-any.pkg.tar.xz
lighttpd-openrc-20140614-1-any.pkg.tar.xz
lirc-utils-openrc-20140614-1-any.pkg.tar.xz
lm_sensors-openrc-20140614-1-any.pkg.tar.xz
lvm2-openrc-20140614-1-any.pkg.tar.xz
mdadm-openrc-20140614-1-any.pkg.tar.xz
metalog-openrc-20140614-1-any.pkg.tar.xz
mysql-openrc-20140614-1-any.pkg.tar.xz
networkmanager-openrc-0.9.8.10-6-i686.pkg.tar.xz
nfs-utils-openrc-20140614-1-any.pkg.tar.xz
ntp-openrc-20140614-1-any.pkg.tar.xz
openldap-openrc-20140614-1-any.pkg.tar.xz
openntpd-openrc-20140614-1-any.pkg.tar.xz
openrc-core-0.12.4-16-i686.pkg.tar.xz
openslp-openrc-20140614-1-any.pkg.tar.xz
openssh-openrc-20140614-1-any.pkg.tar.xz
openvpn-openrc-20140614-1-any.pkg.tar.xz
polipo-openrc-20140614-1-any.pkg.tar.xz
postfix-openrc-20140614-1-any.pkg.tar.xz
postgresql-openrc-20140614-1-any.pkg.tar.xz
privoxy-openrc-20140614-1-any.pkg.tar.xz
quota-tools-openrc-20140614-1-any.pkg.tar.xz
rpcbind-openrc-20140614-1-any.pkg.tar.xz
rsync-openrc-20140614-1-any.pkg.tar.xz
rsyslog-openrc-20140614-1-any.pkg.tar.xz
samba-openrc-20140614-1-any.pkg.tar.xz
sane-openrc-20140614-1-any.pkg.tar.xz
squid-openrc-20140614-1-any.pkg.tar.xz
subversion-openrc-20140614-1-any.pkg.tar.xz
syslog-ng-openrc-20140614-1-any.pkg.tar.xz
transmission-openrc-20140614-1-any.pkg.tar.xz
ufw-openrc-20140614-1-any.pkg.tar.xz
vsftpd-openrc-20140614-1-any.pkg.tar.xz
wpa_supplicant-openrc-20140614-1-any.pkg.tar.xz
xinetd-openrc-20140614-1-any.pkg.tar.xz
ypbind-mt-openrc-20140614-1-any.pkg.tar.xz
ypserv-openrc-20140614-1-any.pkg.tar.xz

unstable_community_x86_64

[New Packages]
acpid-openrc-20140619-1-any.pkg.tar.xz
alsa-utils-openrc-20140619-1-any.pkg.tar.xz
apache-openrc-20140619-1-any.pkg.tar.xz
autofs-openrc-20140619-1-any.pkg.tar.xz
avahi-openrc-20140619-1-any.pkg.tar.xz
bind-openrc-20140619-1-any.pkg.tar.xz
bitlbee-openrc-20140619-1-any.pkg.tar.xz
bluez-openrc-20140619-1-any.pkg.tar.xz
connman-openrc-20140619-1-any.pkg.tar.xz
consolekit-openrc-20140619-1-any.pkg.tar.xz
cpupower-openrc-20140619-1-any.pkg.tar.xz
cronie-openrc-20140619-1-any.pkg.tar.xz
cryptsetup-openrc-20140619-1-any.pkg.tar.xz
cups-openrc-20140619-1-any.pkg.tar.xz
cyrus-sasl-openrc-20140619-1-any.pkg.tar.xz
dbus-openrc-20140619-1-any.pkg.tar.xz
device-mapper-openrc-20140619-1-any.pkg.tar.xz
dhcp-openrc-20140619-1-any.pkg.tar.xz
dhcpcd-openrc-20140619-1-any.pkg.tar.xz
displaymanager-openrc-20140619-1-any.pkg.tar.xz
eudev-openrc-20140619-1-any.pkg.tar.xz
fcron-openrc-20140619-1-any.pkg.tar.xz
fuse-openrc-20140619-1-any.pkg.tar.xz
git-openrc-20140619-1-any.pkg.tar.xz
glibc-openrc-20140619-1-any.pkg.tar.xz
gpm-openrc-20140619-1-any.pkg.tar.xz
haveged-openrc-20140619-1-any.pkg.tar.xz
hostapd-openrc-20140619-1-any.pkg.tar.xz
inetutils-openrc-20140619-1-any.pkg.tar.xz
iptables-openrc-20140619-1-any.pkg.tar.xz
krb5-openrc-20140619-1-any.pkg.tar.xz
libpulse-eudev-5.0-1-x86_64.pkg.tar.xz
lighttpd-openrc-20140619-1-any.pkg.tar.xz
lirc-utils-openrc-20140619-1-any.pkg.tar.xz
lm_sensors-openrc-20140619-1-any.pkg.tar.xz
lvm2-openrc-20140619-1-any.pkg.tar.xz
mdadm-openrc-20140619-1-any.pkg.tar.xz
metalog-openrc-20140619-1-any.pkg.tar.xz
mpd-openrc-20140619-1-any.pkg.tar.xz
mysql-openrc-20140619-1-any.pkg.tar.xz
networkmanager-openrc-0.9.8.10-7-x86_64.pkg.tar.xz
nfs-utils-openrc-20140619-1-any.pkg.tar.xz
ntp-openrc-20140619-1-any.pkg.tar.xz
openldap-openrc-20140619-1-any.pkg.tar.xz
openntpd-openrc-20140619-1-any.pkg.tar.xz
openrc-core-0.12.4-17-x86_64.pkg.tar.xz
openslp-openrc-20140619-1-any.pkg.tar.xz
openssh-openrc-20140619-1-any.pkg.tar.xz
openvpn-openrc-20140619-1-any.pkg.tar.xz
polipo-openrc-20140619-1-any.pkg.tar.xz
postfix-openrc-20140619-1-any.pkg.tar.xz
postgresql-openrc-20140619-1-any.pkg.tar.xz
privoxy-openrc-20140619-1-any.pkg.tar.xz
quota-tools-openrc-20140619-1-any.pkg.tar.xz
rpcbind-openrc-20140619-1-any.pkg.tar.xz
rsync-openrc-20140619-1-any.pkg.tar.xz
rsyslog-openrc-20140619-1-any.pkg.tar.xz
salt-openrc-20140619-1-any.pkg.tar.xz
samba-openrc-20140619-1-any.pkg.tar.xz
sane-openrc-20140619-1-any.pkg.tar.xz
squid-openrc-20140619-1-any.pkg.tar.xz
subversion-openrc-20140619-1-any.pkg.tar.xz
syslog-ng-openrc-20140619-1-any.pkg.tar.xz
transmission-openrc-20140619-1-any.pkg.tar.xz
ufw-openrc-20140619-1-any.pkg.tar.xz
vsftpd-openrc-20140619-1-any.pkg.tar.xz
wpa_supplicant-openrc-20140619-1-any.pkg.tar.xz
xinetd-openrc-20140619-1-any.pkg.tar.xz
ypbind-mt-openrc-20140619-1-any.pkg.tar.xz
ypserv-openrc-20140619-1-any.pkg.tar.xz


[Removed Packages]
acpid-openrc-20140614-1-any.pkg.tar.xz
alsa-utils-openrc-20140614-1-any.pkg.tar.xz
apache-openrc-20140614-1-any.pkg.tar.xz
autofs-openrc-20140614-1-any.pkg.tar.xz
avahi-openrc-20140614-1-any.pkg.tar.xz
bind-openrc-20140614-1-any.pkg.tar.xz
bitlbee-openrc-20140614-1-any.pkg.tar.xz
bluez-openrc-20140614-1-any.pkg.tar.xz
connman-openrc-20140614-1-any.pkg.tar.xz
consolekit-openrc-20140614-1-any.pkg.tar.xz
cpupower-openrc-20140614-1-any.pkg.tar.xz
cronie-openrc-20140614-1-any.pkg.tar.xz
cryptsetup-openrc-20140614-1-any.pkg.tar.xz
cups-openrc-20140614-1-any.pkg.tar.xz
cyrus-sasl-openrc-20140614-1-any.pkg.tar.xz
dbus-openrc-20140614-1-any.pkg.tar.xz
device-mapper-openrc-20140614-1-any.pkg.tar.xz
dhcp-openrc-20140614-1-any.pkg.tar.xz
dhcpcd-openrc-20140614-1-any.pkg.tar.xz
displaymanager-openrc-20140614-1-any.pkg.tar.xz
eudev-openrc-20140614-1-any.pkg.tar.xz
fcron-openrc-20140614-1-any.pkg.tar.xz
fuse-openrc-20140614-1-any.pkg.tar.xz
git-openrc-20140614-1-any.pkg.tar.xz
glibc-openrc-20140614-1-any.pkg.tar.xz
gpm-openrc-20140614-1-any.pkg.tar.xz
haveged-openrc-20140614-1-any.pkg.tar.xz
hostapd-openrc-20140614-1-any.pkg.tar.xz
inetutils-openrc-20140614-1-any.pkg.tar.xz
iptables-openrc-20140614-1-any.pkg.tar.xz
krb5-openrc-20140614-1-any.pkg.tar.xz
lighttpd-openrc-20140614-1-any.pkg.tar.xz
lirc-utils-openrc-20140614-1-any.pkg.tar.xz
lm_sensors-openrc-20140614-1-any.pkg.tar.xz
lvm2-openrc-20140614-1-any.pkg.tar.xz
mdadm-openrc-20140614-1-any.pkg.tar.xz
metalog-openrc-20140614-1-any.pkg.tar.xz
mysql-openrc-20140614-1-any.pkg.tar.xz
networkmanager-openrc-0.9.8.10-6-x86_64.pkg.tar.xz
nfs-utils-openrc-20140614-1-any.pkg.tar.xz
ntp-openrc-20140614-1-any.pkg.tar.xz
openldap-openrc-20140614-1-any.pkg.tar.xz
openntpd-openrc-20140614-1-any.pkg.tar.xz
openrc-core-0.12.4-16-x86_64.pkg.tar.xz
openslp-openrc-20140614-1-any.pkg.tar.xz
openssh-openrc-20140614-1-any.pkg.tar.xz
openvpn-openrc-20140614-1-any.pkg.tar.xz
polipo-openrc-20140614-1-any.pkg.tar.xz
postfix-openrc-20140614-1-any.pkg.tar.xz
postgresql-openrc-20140614-1-any.pkg.tar.xz
privoxy-openrc-20140614-1-any.pkg.tar.xz
quota-tools-openrc-20140614-1-any.pkg.tar.xz
rpcbind-openrc-20140614-1-any.pkg.tar.xz
rsync-openrc-20140614-1-any.pkg.tar.xz
rsyslog-openrc-20140614-1-any.pkg.tar.xz
samba-openrc-20140614-1-any.pkg.tar.xz
sane-openrc-20140614-1-any.pkg.tar.xz
squid-openrc-20140614-1-any.pkg.tar.xz
subversion-openrc-20140614-1-any.pkg.tar.xz
syslog-ng-openrc-20140614-1-any.pkg.tar.xz
transmission-openrc-20140614-1-any.pkg.tar.xz
ufw-openrc-20140614-1-any.pkg.tar.xz
vsftpd-openrc-20140614-1-any.pkg.tar.xz
wpa_supplicant-openrc-20140614-1-any.pkg.tar.xz
xinetd-openrc-20140614-1-any.pkg.tar.xz
ypbind-mt-openrc-20140614-1-any.pkg.tar.xz
ypserv-openrc-20140614-1-any.pkg.tar.xz

_______________________________________________
manjaro-packages mailing list
manjaro-packages@manjaro.org
http://lists.manjaro.org/mailman/listinfo/manjaro-packages

You can readup on the first one here (https://forum.manjaro.org/index.php?topic=14395.msg129107#msg129107).
As usual report all issues (https://github.com/udeved/pkgbuilds/issues) you might have with this!
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: handy on 19. June 2014, 12:44:55
I think that it is so cool that excalibur has put all of this effort into creating a QT only Manjaro spin. In combination with the work that artoo, aaditya & Phil are doing in their efforts to create a systemd & gtk free Manjaro spin, Manjaro is looking like it is going to come up with an Arch based systemd & gtk free release that will end up attracting people from the allover the GNU/Linux distro world. :D

Well done to all concerned in this, it really is a milestone in the GNU/Linux world that I see all of your combined efforts creating. :D :D :D 
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 20. June 2014, 10:38:14
Schpankme, I took liberty to move your two posts to programming in dev talk openrc (https://forum.manjaro.org/index.php?topic=14395.255).
Don't wonder please.  :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 20. June 2014, 11:53:28
On another positive note: moved to "eudev-openrc"
My System uses 1% less memory, and World of Warcraft video improved by 7 - 10 fps.


Issue:
How to get Thunar to auto-mount and show secondary HDD (/sdb1/Thing2).


aatoo openrc
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 20. June 2014, 14:29:02
On another positive note: moved to "eudev-openrc"
My System uses 1% less memory, and World of Warcraft video improved by 7 - 10 fps.


Issue:
How to get Thunar to auto-mount and show secondary HDD (/sdb1/Thing2).


aatoo openrc
I think I had to rebuild gvfs to get it to display my mounted partitions..
I havent checked, but I think doing yaourt -S gvfs-nosystemd might work..
Another way is building from artoo's packages (https://github.com/udeved/pkgbuilds/tree/master/desktop-eudev/gvfs-eudev).. (makepkg -cs, followed by sudo pacman -U <path-of-package-you-want-to-install>)
(You may also need to reboot after installing built packages)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: viking60 on 20. June 2014, 14:40:53
It is surprising that Systemd is heavily criticized and a potentially growing hairball that makes it an "accident waiting to happen", now will be used by every distro with 1,5 exceptions:
Gentoo and Manjaro (the 0.5 part).

Ubuntu and Debian are caving in too (why?).

Does that make us Don Quijote and are we not fighting Windmills? Is not this "standardization" of Linux what everybody has been waitng for?
(http://www.donquijote.cc/sitebuildercontent/sitebuilderpictures/DQWindmill.gif)
In any case I have a lot of sympathy for Don Quijote and Sancho Panza and personally I have never lost a fight with a Windmill yet  :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 20. June 2014, 14:55:15
Here are some criticisms of systemd:
http://boycottsystemd.org/

Gentoo (I dont think Manjaro counts yet) is not the only one currently, there's Slackware also, besides CRUX, LSD, and the BSDs.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: viking60 on 20. June 2014, 15:47:28
Yes that makes sense. And we do like choices and flexibility.
I have noticed that the chief penguin has swung his hammer too:
http://www.phoronix.com/scan.php?page=news_item&px=MTY1MzA
Once this hits stable I am will put openRC on an old low spec box here that runs Manjaro openbox now - I am convinced it will be snappier with OpenRC
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: jonathon on 20. June 2014, 17:28:31
This looks interesting, and I think I'll give it a go.

Testing it in a VM is probably not going to let me know if it's worth it or not. ;) In case things break is it easy enough to remove? Setting the init back to systemd is obviously the start of it, but will everything else uninstall without leaving cruft?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 20. June 2014, 17:30:56
... I am convinced it will be snappier with OpenRC

There's no reason to use Systemd.


Code: [Select]
Linux Kernel Developers Fed Up With Ridiculous Bugs In Systemd
systemdPublished on 02 April 2014 09:46 PM EDT

Written by Michael Larabel in systemd
"Steven Rostedt ended up sending to the Linux kernel mailing list a patch that would hide the debug string
from appearing in the kernel command-line as to hide it from systemd and reserve it just for kernel use.
Steven wrote, "we OWN the kernel command line, and as such, we can keep the users from seeing stuff on
it if we so choose. "

What else will be hid from the "users"?

Looks like they are throwing the baby out with the bath water.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: AJSlye on 20. June 2014, 17:39:59
Is Manjaro thinking about dropping systemd and replacing it with openrc in the future?
If so I will have to start looking for another distribution again. When Arch moved to systemd from openrc is when I actually starting to consider using it, I had no desire to even try it before that, I have no intention on using something that moves backwards.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 20. June 2014, 17:40:53
This looks interesting, and I think I'll give it a go.

Testing it in a VM is probably not going to let me know if it's worth it or not. ;) In case things break is it easy enough to remove? Setting the init back to systemd is obviously the start of it, but will everything else uninstall without leaving cruft?
Yes, I think so :)
Though I have tried it in various VMs too to see how things work..

If you are on unstable, to install,
Code: [Select]
sudo pacman -R systemd-sysvcomapt
sudo pacman -S sysvinit
sudo pacman -S openrc-base
sudo pacman -S displaymanager-openrc
sudo pacman -S alsa-utils-openrc

At this point you have not removed apart from systemd-sysvcompat, which are just a bunch of symlinks..
However if you also want to install networkmanager-openrc, that would require consolekit, which replaces the polkit in the repos with its own.

To go back to systemd, use the init=/usr/lib/systemd/systemd method, or just install systemd-sysvcompat..
The wiki lists some of this: https://wiki.manjaro.org/index.php?title=Openrc

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 20. June 2014, 17:43:11
Is Manjaro thinking about dropping systemd and replacing it with openrc in the future?
If so I will have to start looking for another distribution again. When Arch moved to systemd from openrc is when I actually starting to consider using it, I had no desire to even try it before that, I have no intention on using something that moves backwards.
I dont think so. Its just an alternative for interested users.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 20. June 2014, 17:48:28

What is will be hid from the "users"?

Looks like they are throwing the baby out with the bath water.

Bingo.

The reason I do openrc for arch based systems, I have a problem with a functionalitiy absorbing ever growing very complex "init", which develops steadily kernel like features.

The day, systemd tries to replace the linux kernel will be the official death of linux. Atm linux is dying a slow death, caused by an all out attack on the very principle of open source, gnu linux.

You get with systemd a lindows, components which used to be modular and could be replaced, are all absorbed into systemd source. At some point, nobody will understand systemd source any more, because it also pulls in a huge amount of forced dependencies. So the systemd source is only a fraction of the real code base it uses.

Take logind, no bad idea to replace consolekit, but since systemd version 206, logind requires a running systemd voodoo.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: AJSlye on 20. June 2014, 17:52:39
Oh good, I was not looking forward to having to find another distribution that works for me again. I guess I could always just move to the Netrunner Standard version, but I like the Rolling Version so much more, not to mention that I never cared for anything Ubuntu or Debian based, LOL

Thanks
AJ
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 20. June 2014, 18:06:44

If you are on unstable, to install,
Code: [Select]
sudo pacman -R systemd-sysvcomapt
sudo pacman -S sysvinit
sudo pacman -S openrc-base
sudo pacman -S displaymanager-openrc
sudo pacman -S alsa-utils-openrc


For those who want the volume mixer applet on the Panel, install Pnmixer.

Code: [Select]
sudo pacman -S pnmixer
Configure pnmixer to use alsa
From terminal start:  pnmixer

Right-click pnmixer icon > Preferences, > [Behavior] tab
Under 'Volume Control Command' add:  gnome-alsamixer
Click OK

reboot
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: jonathon on 20. June 2014, 18:19:49
However if you also want to install networkmanager-openrc, that would require consolekit, which replaces the polkit in the repos with its own.
Looks like networkmanager-openrc needs dbus-openrc... this is getting a little more complicated. :D

I haven't had this much fun for a while. :D

Edit:
And without network access I have to use USB. And with a recent update when inserting a USB flash drive nothing happens (it does not show up at all, not in a file manager, not in lsusb, not in dmesg). :D

Edit 2:
OK, so I plugged in an ethernet cable and started dhcpcd, that gave me network access again. Phew!

Edit 3:
I think I have NetworkManager running. ZFS does not start correctly on boot, though, and there doesn't seem to be an init script for tor...

Edit 4:
OK, so it looks promising but it's not quite there for me yet. Some things definitely load quicker (e.g. Chrome).
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 20. June 2014, 18:47:36
tor I guess is available: https://github.com/notfoss/archlinux-openrc-services/tree/master/init.d
https://github.com/notfoss/archlinux-openrc-services/tree/master/conf.d
(maybe artoo can add it ;))

Edit-
Zfs too seems to be available..
http://www.funtoo.org/ZFS_Install_Guide#Final_configuration
https://forums.gentoo.org/viewtopic-t-925754-start-0.html
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 20. June 2014, 18:57:47
Looks like networkmanager-openrc needs dbus-openrc... this is getting a little more complicated. :D

I haven't had this much fun for a while. :D


Thanks, I added ck-openrc and dbus-openrc to NM depends.

I can add tor.
Added tor to openrc-net

I think zfs needs to be recompiled, as there is a initscript.in in the source.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: jonathon on 20. June 2014, 20:18:02
I wonder whether
Code: [Select]
# rc-update add zfs bootwould get ZFS working...

Just to check I could, I went back to systemd. Not very complicated to reverse, but I did have to allow removal of a load of extra packages and reinstall them (e.g. ufw, gufw, networkmanager, network-manager-applet).
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 20. June 2014, 20:21:52
I wonder whether
Code: [Select]
# rc-update add zfs bootwould get ZFS working...

Just to check I could, I went back to systemd. Not very complicated to reverse, but I did have to allow removal of a load of extra packages and reinstall them (e.g. ufw, gufw, networkmanager, network-manager-applet).

If there is a /etc/init.d/zfs
there you go. Add it to boot runlevel ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 21. June 2014, 02:55:03
Issue: Installing Chrome

Unrelated

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 21. June 2014, 10:27:29
Problem was created by limiting "pacman-mirrors" to only "United_States", i.e. files missing

Solution was to comment out "OnlyCountry" of pacman-mirrors.conf;
sudo pacman -Syyu
yaourt -Syuua

pacman-mirrors.conf
## Specify to use only mirrors from a specific country
## Disabled by default
##OnlyCountry=United_States
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Tinctorius on 22. June 2014, 13:51:26
What will booting with OpenRC change for the average Manjaro user, and when it's pushed to testing, will it replace systemd immediately after updating the system?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 22. June 2014, 13:57:32
What will booting with OpenRC change for the average Manjaro user, and when it's pushed to testing, will it replace systemd immediately after updating the system?

As far as I know, systemd will remain default init on manjaro.

Openrc is just an alternative for users who reject for whatever reason the systemd binary voodoo.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Tinctorius on 22. June 2014, 14:07:29
Quote
As far as I know, systemd will remain default init on manjaro.

Openrc is just an alternative for users who reject for whatever reason the systemd binary voodoo.

Thank you.

What I meant is this: what is (in average Joe language) the difference between OpenRC and Systemd, and why should I, average user of Manjaro, switch to it?

And how difficult will it be to implement OpenRC (for the average Joe/script kiddie like me)?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 22. June 2014, 14:18:04
Thank you.

What I meant is this: what is (in average Joe language) the difference between OpenRC and Systemd, and why should I, average user of Manjaro, switch to it?

And how difficult will it be to implement OpenRC (for the average Joe/script kiddie like me)?

Just my opinion, the difference is having spyware on linux or not.

Average Joe wouldn't notice the difference using it, but it is more transparent than systemd.

Openrc addresses basically more advanced users, who know what is going on behind the scenes, and who know which powerful interests hide behind systemd.

My opinion in times of orwellian NSA spying and drone killings.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Tinctorius on 22. June 2014, 14:25:36
Ok, then it's a no brainer for me, I'll go with OpenRC  8) I think you will create a wiki how to replace Systemd with OpenRC, how difficult will it be to do?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 22. June 2014, 15:40:05
Ok, then it's a no brainer for me, I'll go with OpenRC  8) I think you will create a wiki how to replace Systemd with OpenRC, how difficult will it be to do?
Tinctorius, how about https://wiki.manjaro.org/index.php?title=Openrc
Is it too difficult for you? :)
Once the packages reach the stable branch, I think it could be even more simpler ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Tinctorius on 22. June 2014, 16:10:41
Sorry mate, lurked almost every day on your topic the past weeks with my eyes closed...... ::) (but DID feel the VIBE  8) )

I'll check it out.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: wolfyrion on 23. June 2014, 07:13:57
are all these scripts compatible with OpenRC?

/etc/udev/rules.d/60-schedulers.rules
Code: [Select]
ACTION=="add|change", KERNEL=="sd[a-z]", TEST!="queue/rotational", ATTR{queue/scheduler}="deadline"
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"

# set cfq scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="cfq"

 /etc/sysctl.d/99-sysctl.conf
Code: [Select]
vm.swappiness=0
vm.vfs_cache_pressure=1000

gedit /etc/X11/xorg.conf.d/50-joystick.conf

Code: [Select]
Section "InputClass"
    Identifier "joystick catchall"
    MatchIsJoystick "on"
    MatchDevicePath "/dev/input/event*"
    Driver "joystick"
    Option "StartKeysEnabled" "False"
    Option "StartMouseEnabled" "False"
EndSection


 systemctl enable systemd-readahead-collect systemd-readahead-replay
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: flippy on 23. June 2014, 09:56:34
Anyway to get apps like smtube to work? Since it rely on libsystemd. Trying to avoid flashplugin.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 23. June 2014, 10:03:50
@wolfyrion

These are udev rules, they should work.
The other are simple configs and also work.


@flippy

There is a solution, but not in unstable repo currently.
See the devtalk thread, you can either build from git, or wait for package to reach unstable(maybe in the next days)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 24. June 2014, 23:26:43

frustrated with systemd
switched to OpenRC

Experimental ISO out: manjaro-xfce-minimal-openrc-0.8.10-x86_64.iso (http://sourceforge.net/projects/mefiles/files/Manjaro/manjaro-xfce-minimal-openrc-0.8.10-x86_64.iso/download)


aaditya, whats the "password" for this ISO? 
"manjaro" is incorrect as shown within the login notes.

thx
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 25. June 2014, 14:39:56

aaditya, whats the "password" for this ISO? 
"manjaro" is incorrect as shown within the login notes.

thx
Oops, I had forgotten to update the instructions link..
Here it is: https://forum.manjaro.org/index.php?topic=14426.0

The user is root, and password manjaro (I dont know correct solution of pacman problem though..)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 04. July 2014, 03:55:42

1) Add the following repos /etc/pacman.conf

Code: [Select]
[openrc]
SigLevel = Optional TrustAll
Server = http://archbang.org/repos/$repo/$arch

[aur-nosystemd]
SigLevel = Optional TrustAll
Server = http://archbang.org/repos/$repo/$arch


I've been building from the github by "Cloning" as described, today is producing an error:
    " Failed to connect to sources.gentoo.org port 80: Connection timed out"

Is this error caused by configuration error on my end, or on the archbang side?




Problem was permissions, and making the mistake of downloading github using sudo.

This creates two issues:
1.) makepkg denies permission without sudo
2.) sudo makepkg slaps your face


lesson learned
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: spectromas on 04. July 2014, 05:25:41
and who know which powerful interests hide behind systemd.
For the less advanced users who are not going to learn much by looking at code, can you please elaborate on this? I keep seeing such vagaries as your comment here and yet no one seems to say anything more detailed. What is it that is nefarious in systemd and who exactly is behind it?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 04. July 2014, 05:54:44
Watch the movie TRON, you'll get and understanding of the "Master Control Program ".

It's ok if you read the below info, I'm the man in the middle and give you permission.  Check back with me when  you need updated or changes.

For your reading pleasure:    boycott systemd

http://boycottsystemd.org/
see: ref at the bottom
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: poker98face on 06. July 2014, 17:49:25
Quote
Disclaimer: We are not sysvinit purists by any means. We do recognize the need for a new init system in the 21st century, but systemd is not it.
What are the alternatives? Only OpenRC? Upstart by Canonical?
Quote
3. systemd's team is noticeably chauvinistic and anti-Unix, due to their open disregard for non-Linux software and subsequent systemd incompatibility with all non-Linux systems.
Why it should be? Maybe my thinking is stupid but why devs should care about systems they don't use and they don't want to?
Quote
Boycott distros that use systemd.
90% of all distributions? And this means i should stop using Arch... and Debian.
Quote
Contribute to and use distros like Slackware, CRUX, Less Systemd Linux, and Gentoo that follow traditional Unix paradigms
"Sorry mom but now you must Slacware because systemd is bad!"
Quote
Consider migrating to *BSD, Plan 9 or something similar, if things get really out of hand.
Even better...

For me its the same situation like with Pulse, some people are saying it is bad but many others don't care about it as far as it works for them.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 06. July 2014, 18:03:08
@pokerface, this is a technical thread on discussing how to use OpenRC, not about discussing systemd vs OpenRC.

If you want, you can open a new thread about it in the Discussion section, and I will move your post(s) there.

However I think you are just trolling as you make statements like:

Contribute to and use distros like Slackware, CRUX, Less Systemd Linux, and Gentoo that follow traditional Unix paradigms

 "Sorry mom but now you must Slacware because systemd is bad!"

Consider migrating to *BSD, Plan 9 or something similar, if things get really out of hand.

Even better...
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: poker98face on 06. July 2014, 18:15:00
@pokerface, this is a technical thread on discussing how to use OpenRC, not about discussing systemd vs OpenRC.

If you want, you can open a new thread about it in the Discussion section, and I will move your post(s) there.

However I think you are just trolling as you make statements like:
Fine i am sorry, i thought its good place (there is also topic "development talk" soo). I just read this: http://boycottsystemd.org. But can you explain me what are advantages of OpenRC for me, normal user? And no, this is not "troll" question, i am very serious.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mandog on 06. July 2014, 18:33:27
Absolutely non at all  apart from using a lot more packages that need maintaing to do a similar job. 
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 06. July 2014, 18:47:55
I personally switched to OpenRC (from a user's point of view), becuase systemd was increasingly adding more and more services to autostart (an example being the mandb.service (https://forum.manjaro.org/index.php?topic=13943.0)), which I didnt know how to disable, and it using binary logs instead of text logs (so I cant view it from another system), and not being able to understand its messages (a couple of times some services failed, and it adviced me to use systemctl and journalctl to find out the issue, but I could not find any useful information from them).

Another is the huge size of the logs (https://forum.manjaro.org/index.php?topic=7087.0) it creates, most of which were worthless to me, and had to be manually removed.

There are many other reasons (both practical and philosophical in nature), which are highlighted in http://boycottsystemd.org/ and the articles that it mentions.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: pjhalsli on 06. July 2014, 18:49:40
New thread guys  :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: flippy on 07. July 2014, 01:18:55
There seem to be issues login in with Slim. Just hang there and does nothing. For now I'm back to xdm. Will Slim get support anytime soon?

I'm on Testing.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 08. July 2014, 18:54:05
Flippy, slim is almost infamous for its behaviour with consolekit.

I would recommend you lightdm as displaymanager, it works just fine with consolekit.

Also, aaditya has a lxdm-consolekit package on AUR I think.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: flippy on 08. July 2014, 21:39:54
Thanks. I'll take a look.  8)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 08. July 2014, 23:14:48
hy, I have problems.. I install openrc from this steps :
Code: [Select]
sudo pacman -Syu

2) Install the openrc-base package.
Code: [Select]
sudo pacman -S openrc-base

3) Install the displaymanager-openrc package and configure your display manager in /etc/conf.d/xdm

4) Install the alsa-utils-openrc package for ALSA (audio) support, and acpid-openrc for acpi support.

5) For networking, dhcpcd is enabled by default; however if it does not work for you try the networkmanager-openrc package.
(If the networkmanager-openrc from the AB repos doesnt work for you and conlicts with existing packages, try out networkmanager-openrc from the AUR.)

After that, I restart my laptop and all fine..when I try shut down or restart my laptop again, I got only welcome screen to logon..and when I put this :
Quote
systemctl list-units
Failed to get D-Bus connection: Unknown error -1


How I know that I install fine this and all working ? thanks..I really don't know about this openrc but i'll try learn :)

P.S
when I go to Update manager , I got message that Authentication failed  :-\
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 09. July 2014, 00:52:59
Install OpenRC

follow this  >> https://forum.manjaro.org/index.php?topic=14913.msg135966#msg135966
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: flippy on 09. July 2014, 01:23:36
It very important to run all the "rc-update add ~"! If your still having problem after following schpankme guide. Run and Post output:
Code: [Select]
sudo rc It show all the errors at start up your computer. I'm also in testing.
Here my status that I have running.
Code: [Select]
rc-status
Runlevel: default
 acpid                                                             [  started  ]
 gpm                                                               [  started  ]
 dbus                                                              [  started  ]
 consolekit                                                        [  started  ]
 dhcpcd                                                            [  started  ]
 avahi-dnsconfd                                                    [  started  ]
 netmount                                                          [  started  ]
 udev-postmount                                                    [  started  ]
 xdm                                                               [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                                                         [  started  ]
 avahi-daemon                                                      [  started  ]
Dynamic Runlevel: manual

EDIT] Nice schpankme!
rc-update
Code: [Select]
                acpid |      default                 
       avahi-dnsconfd |      default                 
             bootmisc | boot                         
           consolekit |      default                 
                 dbus |      default                 
                devfs |                       sysinit
               dhcpcd |      default                 
                dmesg |                       sysinit
                 fsck | boot                         
                  gpm |      default                 
             hostname | boot                         
              hwclock | boot                         
              keymaps | boot                         
            killprocs |              shutdown       
    kmod-static-nodes |                       sysinit
                local |      default                 
           localmount | boot                         
             loopback | boot                         
              modules | boot                         
             mount-ro |              shutdown       
                 mtab | boot                         
               net.lo | boot                         
             netmount |      default                 
               procfs | boot                         
                 root | boot                         
            savecache |              shutdown       
                 swap | boot                         
            swapfiles | boot                         
               sysctl | boot                         
                sysfs |                       sysinit
         termencoding | boot                         
         tmpfiles.dev |                       sysinit
       tmpfiles.setup | boot                         
                 udev |                       sysinit
           udev-mount |                       sysinit
       udev-postmount |      default                 
              urandom | boot                         
                  xdm |      default               
/EDIT]
Yes my sound is working with pulse!
Good Lucky on your openrc experence. I sure had a bumpy ride. Then again, I jump in with not knowing a hole lot.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 09. July 2014, 01:33:17
$ rc-update
Code: [Select]
                acpid |      default                 
            alsasound |      default                 
             bootmisc | boot                         
           consolekit |      default                 
                 dbus |      default                 
                devfs |                       sysinit
               dhcpcd |      default                 
                dmesg |                       sysinit
                 fsck | boot                         
               hdparm |      default                 
             hostname | boot                         
              hwclock | boot                         
              keymaps | boot                         
            killprocs |              shutdown       
    kmod-static-nodes |                       sysinit
                local |      default                 
           localmount | boot                         
             loopback | boot                         
              modules | boot                         
             mount-ro |              shutdown       
                 mtab | boot                         
               net.lo | boot                         
             netmount |      default                 
               procfs | boot                         
       readahead-list | boot                         
 readahead-list-early | boot                         
                 root | boot                         
            savecache |              shutdown       
                 swap | boot                         
            swapfiles | boot                         
               sysctl | boot                         
                sysfs |                       sysinit
         termencoding | boot                         
         tmpfiles.dev |                       sysinit
       tmpfiles.setup | boot                         
                 udev |                       sysinit
           udev-mount |                       sysinit
       udev-postmount |      default                 
              urandom | boot                         
                  xdm |      default
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 09. July 2014, 10:36:39
here :

Code: [Select]
[marko@localhost ~]$ sudo rc
[sudo] password for marko:
[marko@localhost ~]$ rc-status
Runlevel: default
 dbus                                                              [  started  ]
 networkmanager                                                    [  started  ]
 netmount                                                          [  started  ]
 consolekit                                                        [  started  ]
 xdm                                                               [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                                                         [  started  ]
Dynamic Runlevel: manual
[marko@localhost ~]$ rc-update
             bootmisc | boot                         
           consolekit |      default                 
                 dbus |      default                 
                devfs |                       sysinit
                dmesg |                       sysinit
                 fsck | boot                         
             hostname | boot                         
              hwclock | boot                         
              keymaps | boot                         
            killprocs |              shutdown       
    kmod-static-nodes |                       sysinit
                local |      default                 
           localmount | boot                         
             loopback | boot                         
              modules | boot                         
             mount-ro |              shutdown       
                 mtab | boot                         
               net.lo | boot                         
             netmount |      default                 
       networkmanager |      default                 
               procfs | boot                         
                 root | boot                         
            savecache |              shutdown       
                 swap | boot                         
            swapfiles | boot                         
               sysctl | boot                         
                sysfs |                       sysinit
         termencoding | boot                         
         tmpfiles.dev |                       sysinit
       tmpfiles.setup | boot                         
                 udev |                       sysinit
           udev-mount |                       sysinit
              urandom | boot                         
                  xdm |      default                 
[marko@localhost ~]$
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: flippy on 09. July 2014, 10:57:44
Everything seem to be running good. If you do have problem with internet or sound. consider installing "dhcpcd-openrc and alsa-utils-openrc". If you like to change your localhost name.
Code: [Select]
sudo editor /etc/conf.d/hostname
# Set to the hostname of this machine
hostname="changehostnamehere"
save and reboot

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 09. July 2014, 11:58:47
I only have problems with this :
when I try shut down or restart my laptop , I got only welcome screen to logon..and when I put this :
    systemctl list-units
got :
    Failed to get D-Bus connection: Unknown error -1
and
when I go to Update manager , I got message that Authentication failed  :-\
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 09. July 2014, 12:09:47
I only have problems with this :
when I try shut down or restart my laptop , I got only welcome screen to logon..and when I put this :
    systemctl list-units
got :
    Failed to get D-Bus connection: Unknown error -1
and
when I go to Update manager , I got message that Authentication failed  :-\

systemctl is systemd specific, it doesn't exist on openrc install with eudev.

You need to install this package:
https://aur.archlinux.org/packages/xfce4-session-consolekit/
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 09. July 2014, 14:36:51
Besides the package Artoo mentioned, I think you would also require consolekit-openrc, and a display manager that supports consolekit, for example, lxdm-consolekit (https://aur.archlinux.org/packages/lxdm-consolekit/)

Some wiki info:
https://wiki.manjaro.org/index.php?title=Openrc#Consolekit
https://wiki.manjaro.org/index.php?title=OpenRC,_an_alternative_to_systemd#Using_Consolekit
https://wiki.manjaro.org/index.php?title=OpenRC,_an_alternative_to_systemd#Display_Manager
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 09. July 2014, 21:46:36
ok,thanks guys..
How I can install lxdm display manager with openrc ? or I can keep mdm ? thanks
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 09. July 2014, 21:54:28
ok,thanks guys..
How I can install lxdm display manager with openrc ? or I can keep mdm ? thanks

I have no clue about mdm or mate etc, I am sorry.
Perhaps aaditya or someone else knows.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 09. July 2014, 22:00:19

 install lxdm display manager with openrc ?

Install LXDM
Code: [Select]
yaourt -S xfce4-session-consolekit

yaourt -S lxdm-manjaro-theme

yaourt -S lxdm-consolekit

    sudo mousepad /etc/lxdm/lxdm.conf

session=/usr/bin/startxfce4
greeter=/usr/lib/lxdm/lxdm-greeter-gtk
gtk_theme=Menda
bg=/usr/share/backgrounds/manjaro.jpg
theme=Manjaro

reboot
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 09. July 2014, 22:10:08
ok,thanks guys..
How I can install lxdm display manager with openrc ? or I can keep mdm ? thanks
Is mdm working for you correctly?
If yes, I think you could install the package consolekit-openrc
Code: [Select]
sudo pacman -S consolekit-openrcAfter that, on rebooting, and logging in, if the command
ck-list-sessions
returns output, I guess a ck-session was started..
Besides if you are using Xfce, I guess xfce4-session-consolekit is also needed, and can be installed with:
Code: [Select]
yaourt -S xfce4-session-consolekit --noconfirmAfter that on restarting you could see if shutdown and restart from menu are working or not..

If mdm doesnt work out for you, you could try schpankme's commands given above. (you would also need to edit /etc/conf.d/xdm to use lxdm)

(schpankme, I think for xfce its session=/usr/bin/startxfce4)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 09. July 2014, 22:17:54

I think for xfce its session=/usr/bin/startxfce4)

Both ways work, but I'll edit for "startxfce4".
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 09. July 2014, 22:20:31
Both ways work, but I'll edit for "startxfce4".
I guess it depends on what DE you have installed :)
For example, I dont have lxde installed, so I dont have any command startlxdm (but I do have a command startxfce4 for Xfce).
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 09. July 2014, 23:15:52
Quote
After that, on rebooting, and logging in, if the command
ck-list-sessions
returns output, I guess a ck-session was started..

I got nothing after this :(

and

Quote
yaourt -S xfce4-session-consolekit --noconfirm

After that on restarting you could see if shutdown and restart from menu are working or not..

Not working
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 09. July 2014, 23:24:40
Try following the instruction given:
https://forum.manjaro.org/index.php?topic=14080.msg137099#msg137099
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 09. July 2014, 23:26:16
I got nothing after this :(

and

Not working
Then maybe mdm does not start a ck-session..

Maybe you could follow schpankme's lead (and edit /etc/conf.d/xdm) to install and configure lxdm-consolekit.
Some info in the wiki also (https://wiki.manjaro.org/index.php?title=Openrc#Display_Manager).
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 09. July 2014, 23:32:12
ok,I'll try this then report :) hope so it works
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 09. July 2014, 23:47:50
Working :) :) but, boot up is very slow :(
and is there any wiki or something how to use eudev ??

edit :
After restart, I thinks that boot is faster now, and I am not sure that's all installed correctly :D ,but working for now ..
Thank you all ( aaditya, schpankme, artoo )  ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 09. July 2014, 23:57:09
Working :) :) but, boot up is very slow :(
and is there any wiki or something how to use eudev ??

What is slow?
It takes me from grub screen to DM login ~15 seconds.

Code: [Select]
pacman -S eudev-base
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 10. July 2014, 00:06:50
Code: [Select]
pacman -S eudev-base

I install this
but how to use this
Code: [Select]
$ systemd-analyze blameI know that systemd isn't there , but other code for that thing ?  :-\
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 10. July 2014, 00:11:37
I install this
but how to use this
Code: [Select]
$ systemd-analyze blameI know that systemd isn't there , but other code for that thing ?  :-\

After you installed eudev.

Code: [Select]
pacman -S syslog-ng-openrc
Code: [Select]
sudo rc-update add syslog-ng default
To check services status

Code: [Select]
rc-status --all
start, stop, restart service
Code: [Select]
sudo rc-service <servicename> {start,stop,restart}
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 10. July 2014, 00:15:17

boot up is very slow

edit :
After restart boot is faster now

sudo mousepad /etc/conf.d/hostname

yaourt -S readahead-list-openrc
Code: [Select]
    rc-update add readahead-list boot
    rc-update add readahead-list-early boot
    rc-update add hdparm default

sudo mousepad /etc/fstab
Code: [Select]
tmpfs /tmp tmpfs   nodev,nosuid        0  0
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 10. July 2014, 00:55:17
sudo mousepad /etc/fstab
Code: [Select]
tmpfs /tmp tmpfs   nodev,nosuid        0  0

Do I add this on fstab or ?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 10. July 2014, 01:04:29
After this :
Code: [Select]
rc-status --allthis not working :
Code: [Select]
cpupower                                                          [  stopped  ]
 fancontrol                                                        [  stopped  ]
 saned                                                             [  crashed  ]
 sensord                                                           [  stopped  ]
Runlevel: shutdown
 killprocs                                                         [  stopped  ]
 savecache                                                         [  stopped  ]
 mount-ro                                                          [  stopped  ]

Is it ok or ?  :-\
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 10. July 2014, 17:56:57
After this :
Code: [Select]
rc-status --allthis not working :
Code: [Select]
cpupower                                                          [  stopped  ]
 fancontrol                                                        [  stopped  ]
 saned                                                             [  crashed  ]
 sensord                                                           [  stopped  ]
Runlevel: shutdown
 killprocs                                                         [  stopped  ]
 savecache                                                         [  stopped  ]
 mount-ro                                                          [  stopped  ]

Is it ok or ?  :-\

The shutdown runlevel looks normal.

cpupower works. Did you start it?

I fixed a little bug in saned script, next update won't crash it.

you can fix it manually in the meantime:

Code: [Select]
sudo nano -w /etc/init.d/saned
change

Code: [Select]
pidfile=/run/saned/saned.pid
to

Code: [Select]
pidfile=/run/saned.pid
Do I add this on fstab or ?

Yes please.  :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 10. July 2014, 18:26:56
All is good here, very fast and rock stable in all operations.

$ rc-status --all
Code: [Select]
Runlevel: boot
 hwclock                                                           [  started  ]
 readahead-list-early                                              [  started  ]
 modules                                                           [  started  ]
 fsck                                                              [  started  ]
 root                                                              [  started  ]
 mtab                                                              [  started  ]
 swap                                                              [  started  ]
 localmount                                                        [  started  ]
 readahead-list                                                    [  started  ]
 bootmisc                                                          [  started  ]
 termencoding                                                      [  started  ]
 hostname                                                          [  started  ]
 net.lo                                                            [  started  ]
 urandom                                                           [  started  ]
 tmpfiles.setup                                                    [  started  ]
 procfs                                                            [  started  ]
 swapfiles                                                         [  started  ]
 keymaps                                                           [  started  ]
 loopback                                                          [  started  ]
Runlevel: sysinit
 udev-mount                                                        [  started  ]
 devfs                                                             [  started  ]
 kmod-static-nodes                                                 [  started  ]
 dmesg                                                             [  started  ]
 sysfs                                                             [  started  ]
 tmpfiles.dev                                                      [  started  ]
 udev                                                              [  started  ]
Runlevel: shutdown
 killprocs                                                         [  stopped  ]
 savecache                                                         [  stopped  ]
 mount-ro                                                          [  stopped  ]
Runlevel: default
 hdparm                                                            [  started  ]
 syslog-ng                                                         [  started  ]
 dhcpcd                                                            [  started  ]
 netmount                                                          [  started  ]
 acpid                                                             [  started  ]
 dbus                                                              [  started  ]
 consolekit                                                        [  started  ]
 alsasound                                                         [  started  ]
 udev-postmount                                                    [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                                                         [  started  ]
Dynamic Runlevel: manual
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: archiebunker on 10. July 2014, 20:02:27
 I just wanted to say a quick thanks, for all the obvious hard work to ALL those (a special thanks to R2 - and you know who I mean), for keeping a free init's, a free choice, be it OpenRC, andor rc/bsd-inits,..., without systemd, within Arch Linux.
 And also Manjaro, for the new home, that you gave an (Arch)Manjaro/OpenRC, a fruittfull chance to exist.
seriously though, Carry On, my wayward sons !
-you got my vote.
;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 10. July 2014, 20:20:47
All is good here, very fast and rock stable in all operations.

$ rc-status --all
Code: [Select]
Runlevel: boot
 hwclock                                                           [  started  ]
 readahead-list-early                                              [  started  ]
 modules                                                           [  started  ]
 fsck                                                              [  started  ]
 root                                                              [  started  ]
 mtab                                                              [  started  ]
 swap                                                              [  started  ]
 localmount                                                        [  started  ]
 readahead-list                                                    [  started  ]
 bootmisc                                                          [  started  ]
 termencoding                                                      [  started  ]
 hostname                                                          [  started  ]
 net.lo                                                            [  started  ]
 urandom                                                           [  started  ]
 tmpfiles.setup                                                    [  started  ]
 procfs                                                            [  started  ]
 swapfiles                                                         [  started  ]
 keymaps                                                           [  started  ]
 loopback                                                          [  started  ]
Runlevel: sysinit
 udev-mount                                                        [  started  ]
 devfs                                                             [  started  ]
 kmod-static-nodes                                                 [  started  ]
 dmesg                                                             [  started  ]
 sysfs                                                             [  started  ]
 tmpfiles.dev                                                      [  started  ]
 udev                                                              [  started  ]
Runlevel: shutdown
 killprocs                                                         [  stopped  ]
 savecache                                                         [  stopped  ]
 mount-ro                                                          [  stopped  ]
Runlevel: default
 hdparm                                                            [  started  ]
 syslog-ng                                                         [  started  ]
 dhcpcd                                                            [  started  ]
 netmount                                                          [  started  ]
 acpid                                                             [  started  ]
 dbus                                                              [  started  ]
 consolekit                                                        [  started  ]
 alsasound                                                         [  started  ]
 udev-postmount                                                    [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                                                         [  started  ]
Dynamic Runlevel: manual

The next update won't have readahead-openrc in repo or AUR.

I can offer to give you readaghead-openrc pkgbuild to maintain on AUR whatever, I removed readahead since it depends 3rd party pkg on AUR. Its not in manjaro repos.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 10. July 2014, 21:08:18
Gentoo and Funtoo both recommend "readahead" for performance improvement.  Is the third party attachment something that keeps us from having this readahead or supporting?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 10. July 2014, 21:12:55
Gentoo and Funtoo both recommend "readahead" for performance improvement.  Is the third party attachment something that keeps us from having this readahead or supporting?

No, but I don't want it in my pkgbuild.
If you want to submit the build to AUR and maintain it, say so, you can have it. :)
Its just not good if eg readahead-openrc is in manjaro repo, but the readahead depend is only on AUR.

You may ask for inclusion of readahead for community, but I definitely don't want to maintain it. I am busy with the ones I have. ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 10. July 2014, 21:32:03
That is a problem with packages in the "manjaro repo with depend's on AUR".
My thoughts were that someone was already maintaining "readahead", and that we had access to it.

I've been an IT Infrastructures manager for 25+ years, this actual development piece is new to me.  Is there any documentation that could teach/show me the basics of, How To: "build and submit the build to AUR"?   :-X
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 10. July 2014, 21:57:39
cpupower works. Did you start it?
Here
Quote
[root@marko marko]# sudo rc-service cpupower start
 * Running cpupower -c all frequency-set --governor ondemand ...          [ !! ]
 * ERROR: cpupower failed to start
[root@marko marko]#

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 10. July 2014, 22:09:01
Here

I bet you run an intel cpu?
intel_pstate scaling only knows powersave and performance state.

if so, edit

Code: [Select]
sudo nano -w /etc/conf.d/cpupower
Set:

Code: [Select]
START_OPTS="--governor powersave"
And change this to suit you.
Code: [Select]
SYSFS_EXTRA="ondemand/ignore_nice_load=1 ondemand/up_threshold=75 ondemand/sampling_down_factor=10"

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 10. July 2014, 22:14:18
That is a problem with packages in the "manjaro repo with depend's on AUR".
My thoughts were that someone was already maintaining "readahead", and that we had access to it.

I've been an IT Infrastructures manager for 25+ years, this actual development piece is new to me.  Is there any documentation that could teach/show me the basics of, How To: "build and submit the build to AUR"?   :-X

We gonna talk about this on the dev thread.
I'll show you.  ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 10. July 2014, 22:16:31
Yes ,it's intel cpu.I change this and now cpupower working :) thanks artoo
And for what is this : ?
Code: [Select]
salt-minion and  sensord 
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 10. July 2014, 22:18:56
Yes ,it's intel cpu.I change this and now cpupower working :) thanks artoo
And for what is this : ?
Code: [Select]
salt-minion and  sensord 

I don't know, I don't use them myself.
Do you need them?

Iirc, schpankme uses salt. Maybe he can help here.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 10. July 2014, 23:08:13
I don't know, I don't use them myself.
Do you need them?

For now, no :) because I don't know for what this serve  :-\
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: spectromas on 11. July 2014, 06:17:41
I'm a bit confused by this, I ran the first command (sudo pacman -S openrc-base) and it only installed 3 things:

systemd-sysvcompat-214-2 [removal]  sysvinit-2.88-16  openrc-core-0.12.4-18

So how do I know what else I need to replace? I can think of mpd and lighttpd that use systemd at least but I'm sure there are quite a few others.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 11. July 2014, 06:19:51
If you want to keep systemD then you don't want to remove it via "openrc-base".


sudo pacman -S openrc-base

:: sysvinit and systemd-sysvcompat are in conflict

    openrc-core-0.12.4-18
    sysvinit-2.88-16
    alsa-utils-openrc-20140619-1

sudo rc-update add alsasound default
    * service alsasound added to runlevel default
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: spectromas on 11. July 2014, 06:24:53
Ok...alsa-utils-openrc didn't install with the -S openrc-base.

So how do I know what I need to replace? Systemd is required by all of these:

Code: [Select]
colord  device-mapper  lib32-systemd  libgusb  libpulse  libusb  lighttpd  lvm2
media-player-info  mesa  mkinitcpio  openrc-core  pcmciautils  polkit  procps-ng  qtwebkit
spacefm  syslog-ng  udevil  udisks  upower  xf86-input-evdev  xf86-video-ati

So do I have have to find a replacement for them all?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 11. July 2014, 06:25:05
I'm a bit confused by this, I ran the first command (sudo pacman -S openrc-base) and it only installed 3 things:

systemd-sysvcompat-214-2 [removal]  sysvinit-2.88-16  openrc-core-0.12.4-18

So how do I know what else I need to replace? I can think of mpd and lighttpd that use systemd at least but I'm sure there are quite a few others.
The wiki has this documented :)
https://wiki.manjaro.org/index.php?title=Openrc#Installation

Dont you also get all the other packages as documented by the wiki?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: spectromas on 11. July 2014, 06:36:06
The wiki has this documented :)
https://wiki.manjaro.org/index.php?title=Openrc#Installation

Dont you also get all the other packages as documented by the wiki?

I read and followed the wiki but I didn't get any other packages that the ones I listed with the first command. I can see that the wiki lists some things like alsa and the sudo pacman -S openrc-desktop wants to install some stuff but this isn't replacing what I have already (I don't have a display manager and it is not asking me to install mpd). I apologise if I am missing something that I should have noticed with this but I can see any way to replace what needs to be replaced other than blindly installing things and hoping everything is covered.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 11. July 2014, 06:54:22
I read and followed the wiki but I didn't get any other packages that the ones I listed with the first command. I can see that the wiki lists some things like alsa and the sudo pacman -S openrc-desktop wants to install some stuff but this isn't replacing what I have already (I don't have a display manager and it is not asking me to install mpd). I apologise if I am missing something that I should have noticed with this but I can see any way to replace what needs to be replaced other than blindly installing things and hoping everything is covered.
Ok, as (all) the packages are not being automatically installed, you could install them manually (will report this issue to artoo):
Code: [Select]
sudo pacman -S openrc-core cronie-openrc cryptsetup-openrc dbus-openrc device-mapper-openrc dhcpcd-openrc glibc-openrc inetutils-openrc lvm2-openrc mdadm-openrc
OpenRC is just an init system, and you are not removing systemd, so no packages are being replaced yet :)
Even if you install eudev (for replacing systemd), Artoo has made the packages in such a way that minimal packages need to be replaced :)

If you follow the wiki step by step, and see the output of each step, maybe you can understand the steps better ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: spectromas on 11. July 2014, 07:29:24
If you follow the wiki step by step, and see the output of each step, maybe you can understand the steps better ;)
I did read through the wiki but the first step was different quite a lot from what the wiki was saying should happen so I didn't want to go too far without some clarification.

I have booted in to it now and everything seems to be working except for rtorrent and rutorrent. I did install lighttpd-openrc but I think I just need to start the right things with openrc rather than systemctl, I'll have a look in to it tomorrow.

Many thanks for the help, for the packages work and for posting here in the first place, I'm very grateful to be made aware of the dire need to be at least wary of systemd.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 11. July 2014, 07:53:15
I did read through the wiki but the first step was different quite a lot from what the wiki was saying should happen so I didn't want to go too far without some clarification.

I have booted in to it now and everything seems to be working except for rtorrent and rutorrent. I did install lighttpd-openrc but I think I just need to start the right things with openrc rather than systemctl, I'll have a look in to it tomorrow.

Many thanks for the help, for the packages work and for posting here in the first place, I'm very grateful to be made aware of the dire need to be at least wary of systemd.
Thanks for your input too :)
My role here is mainly of a tester and documentation writer, its artoo who provides the packages :)

For starting or enabling services, you can find the documentation also ;)
https://wiki.manjaro.org/index.php?title=Openrc#Configuration
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 11. July 2014, 12:45:04
I'm a bit confused by this, I ran the first command (sudo pacman -S openrc-base) and it only installed 3 things:

systemd-sysvcompat-214-2 [removal]  sysvinit-2.88-16  openrc-core-0.12.4-18

So how do I know what else I need to replace? I can think of mpd and lighttpd that use systemd at least but I'm sure there are quite a few others.

I fixed the issue with openrc-base group. It will come with next updates in repo. ;)

There will be a meta package in repo next as well. It will install all openrc stuff you need to run desktop.

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Richard on 11. July 2014, 14:23:11
Using the wiki instructions, I ran
1. sudo pacman -S openrc-base, and got the following, similar to spectromas:
 . . systemd-sysvcompat-214-2 [removal]  sysvinit-2.88-16  openrc-core-0.12.4-18
2. etcetera....

However, after doing all that, I remembered from the forum,
it was mentioned to change to unstable repo, which I did not do,
and still on stable. Seems to have had a serious effect,
since I'm not able to connect to ethernet.

It boots into OpenRC just fine; however,
not being able to get to internet prevents continuing.

My question is, how to get internet connection working again?
without having to reinstall, if at all possible?
Not a big deal, just would rather not. :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: flippy on 11. July 2014, 14:49:27
Code: [Select]
sudo rc-update add dhcpcd default
If you did not run any "rc-update add ~" These will not run at the start of your boot. So thing like internet and sound will not work at start.
Code: [Select]
sudo rc-update add alsasound default
Try resinatalling package in the terminal. So you will see a list of thing that looks something like kinda like this "==>   Run  'rc-update add dhcpcd default' "
And you don't need to be in unstable to used openrc. Since the new update. Openrc can be used in stable. https://forum.manjaro.org/index.php?topic=15003.0

The Wikia does need to be update a little bit. Thing like displaymanager can run as they are or the must be consolekit version only.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Richard on 11. July 2014, 15:27:29
Thanks flippy,
I did run
Code: [Select]
sudo rc-update add cronie default
sudo rc-update add dhcpcd default
but they returned not found?

Rebooted into OpenRC and it was in root?
Used startxfce4 to get to tty7.

Tried to install displaymanager-openrc but indicated, not found,
since no ethernet connection.

Will try your suggestions soon.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 11. July 2014, 16:11:54
Thanks flippy,
I did run
Code: [Select]
sudo rc-update add cronie default
sudo rc-update add dhcpcd default
but they returned not found?

Rebooted into OpenRC and it was in root?
Used startxfce4 to get to tty7.

Tried to install displaymanager-openrc but indicated, not found,
since no ethernet connection.

Will try your suggestions soon.

Quick guide:

Code: [Select]
pacman -S openrc-desktop
Code: [Select]
sudo nano -w /etc/conf.d/xdm(set your displaymanager)

Code: [Select]
pacman -S cronie-openrc dhcpcd-openrc
Watch out for install messages. ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: flippy on 11. July 2014, 16:20:35
If this is a pure openrc without eudev. Try seeing if you can get back to systemd.

To boot with systemd instead, when the GRUB menu for Manjaro is encountered while booting, press e to edit, and at the end of the line that starts with linux, add:
Code: [Select]
init=/usr/lib/systemd/systemd
Install everything form there and reboot back to openrc.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 11. July 2014, 16:28:28
If you just installed basic openrc without dhcpcd-openrc, you can also get network going.
Openrc has powerful network support out of the box.

Code: [Select]
cd /etc/init.d
sudo ln -s net.lo net.eth0

eth0 is assumed to be network interface, with systemd, you may have to replace eth0 with something like enp0s3!

You can check the network interface name with
Code: [Select]
ls /sys/class/net
If done, start network interface

Code: [Select]
sudo rc-service net.eth0 start
This can be configured in /etc/conf.d/net

Do not use these steps for networkmanager-openrc or dhcpcd-openrc

You can also set rc_hotplug in /etc/rc.conf to bring up network interface automatically at boot.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Richard on 11. July 2014, 16:38:28
Booted into Manjaro with OpenRC.
sudo rc -> netmount needs service(s) net

sudo rc-update add dhcpd default -> service 'dhcpd' does not exist

sudo rc-update add ~  -> service /home/richard added to runlevel default

sudo rc-update add dhcpd default -> service 'dhcpd' does not exist

sudo rc-update add cronie default -> service 'cronie' does not exist

sudo rc-update add alsasound default -> service 'alsasound' does not exist

sudo rc -> ERROR: netmount needs service(s) net

sudo pacman -S openrc-base -> * esta actualizada -- reinstalando
reinstalando openrc-core
==> Set up your network interface before you reboot.
==> refers us to Gentoo manual part 4,
which says to install 'netifrc'

sudo pacman -S netifrc -> error: not found: netifrc

So, seems like I need to plan to reinstal?

I ran the manjaro-xfce-minimal-openrc-*-x86_64.iso
My computer just won't do Plymouth --hangs up.

Tried: Start non-free, safe settings and it boots
have to press enter to see the login screen.
manjaro  manjaro doesn't work.
only
root manjaro logs in, but won't startxfece.

Start Manjaro, safe settings
nope.
Start non-free, no acpi
nope.

I suppose I'll have to get back into systemd and try again.




Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 11. July 2014, 16:43:00
Booted into Manjaro with OpenRC.
sudo rc -> netmount needs service(s) net

sudo rc-update add dhcpd default -> service 'dhcpd' does not exist

sudo rc-update add ~  -> service /home/richard added to runlevel default

sudo rc-update add dhcpd default -> service 'dhcpd' does not exist

sudo rc-update add cronie default -> service 'cronie' does not exist

sudo rc-update add alsasound default -> service 'alsasound' does not exist

sudo rc -> ERROR: netmount needs service(s) net

sudo pacman -S openrc-base -> * esta actualizada -- reinstalando
reinstalando openrc-core
==> Set up your network interface before you reboot.
==> refers us to Gentoo manual part 4,
which says to install 'netifrc'

sudo pacman -S netifrc -> error: not found: netifrc

So, seems like I need to plan to reinstal?

I ran the manjaro-xfce-minimal-openrc-*-x86_64.iso
My computer just won't do Plymouth --hangs up.

Tried: Start non-free, safe settings and it boots
have to press enter to see the login screen.
manjaro  manjaro doesn't work.
only
root manjaro logs in, but won't startxfece.

Start Manjaro, safe settings
nope.
Start non-free, no acpi
nope.

I suppose I'll have to get back into systemd and try again.

Just follow my instructions in previous post or the instructions on gentoo site for setting up network.
netifrc is included in openrc-core package.

You can later switch to other network setup.


Code: [Select]
sudo rc-update add ~  -> service /home/richard added to runlevel default
What is this? Remove it, no good idea.  ;)

Code: [Select]
sudo rc-update del ~  default
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Richard on 11. July 2014, 16:49:10
OK, removed ~.
===========
Quote
If you just installed basic openrc without dhcpcd-openrc, you can also get network going.
Openrc has powerful network support out of the box.

cd /etc/init.d
sudo ln -s net.lo net.eth0

eth0 is assumed to be network interface, with systemd, you may have to replace eth0 with something like enp0s3! (mine is enp5s0, had to boot systemd to find out  :)

You can check the network interface name with
ls /sys/class/net

If done, start network interface
sudo rc-service net.eth0 start

This can be configured in /etc/conf.d/net

Doing this now.
BRB...
YES!
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 11. July 2014, 17:05:02
Hi Richard,

Due to a bug in the openrc-base package group, all the packages in the group dont get installed.
So the command to install the openrc-base group package will be:
Code: [Select]
sudo pacman -S openrc-core cronie-openrc cryptsetup-openrc dbus-openrc device-mapper-openrc dhcpcd-openrc glibc-openrc inetutils-openrc lvm2-openrc mdadm-openrc
Added this note in the wiki as well. After this step you can follow the wiki for installing the additional packages; note that plymouth can fail untill you also setup a graphical display manager.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: spectromas on 11. July 2014, 17:09:18
I have an issue with the bitlbee-openrc package. When I try to start or enable it I get a message saying:

Code: [Select]
* ERROR: bitlbee needs service(s) logger
Except I cannot find any information about what logger is, it's not a required or optional dependency for the package.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Richard on 11. July 2014, 17:13:41
@aaditya,
OK, great. Looks like a more complete beginning. :)

I now have internet in openrc,
so I'll try to install/add these from there.
If that doesn't result, I'll go back to systemd and begin again with the enhanced list.

@artoo,
Thanks for the tip.
Internet up.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 11. July 2014, 17:13:48
I have an issue with the bitlbee-openrc package. When I try to start or enable it I get a message saying:

Code: [Select]
* ERROR: bitlbee needs service(s) logger
Except I cannot find any information about what logger is, it's not a required or optional dependency for the package.

Thx for reporting.
Bitleebee-openrc package will have a syslog depend.

You need to install a syslogger.
eg syslog-ng-openrc or rsyslog-openrc or metalog-openrc.

bitlbee service should autostart syslog
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Richard on 11. July 2014, 17:31:07
Just for comparison, here are the results of aaditya's enhance command:
Code: [Select]
[richard@localhost init.d]$ sudo pacman -S openrc-core cronie-openrc cryptsetup-openrc dbus-openrc device-mapper-openrc dhcpcd-openrc glibc-openrc inetutils-openrc lvm2-openrc mdadm-openrc
[sudo] password for richard:
atención: openrc-core-0.12.4-18 está actualizado -- re-instalando
resolviendo dependencias...
verificando conflictos...

Paquetes (10): cronie-openrc-20140619-1  cryptsetup-openrc-20140619-1  dbus-openrc-20140619-1  device-mapper-openrc-20140619-1  dhcpcd-openrc-20140619-1
               glibc-openrc-20140619-1  inetutils-openrc-20140619-1  lvm2-openrc-20140619-1  mdadm-openrc-20140619-1  openrc-core-0.12.4-18

Tamaño Total de Descarga:  0,02 MiB
Tamaño Total Instalado:    0,93 MiB
Tamaño neto a actualizar:  0,16 MiB

:: ¿Continuar con la instalación? [S/n]
:: Recuperando paquetes ...
 cronie-openrc-20140619-1-any                                            1736,0   B   848K/s 00:00 [##########################################################] 100%
 device-mapper-openrc-20140619-1-any                                        3,1 KiB   343K/s 00:00 [##########################################################] 100%
 cryptsetup-openrc-20140619-1-any                                           5,7 KiB  39,9K/s 00:00 [##########################################################] 100%
 dbus-openrc-20140619-1-any                                              1768,0   B  1727K/s 00:00
 dhcpcd-openrc-20140619-1-any                                            1400,0   B  1367K/s 00:00 [##########################################################] 100%
 glibc-openrc-20140619-1-any                                             1972,0   B   481K/s 00:00 [##########################################################] 100%
 inetutils-openrc-20140619-1-any                                         1656,0   B   809K/s 00:00 [##########################################################] 100%
 lvm2-openrc-20140619-1-any                                                 3,2 KiB   351K/s 00:00 [##########################################################] 100%
 mdadm-openrc-20140619-1-any                                             1732,0   B  1691K/s 00:00 [##########################################################] 100%
(10/10) verificando llaves en el llavero                                                           [##########################################################] 100%
(10/10) verificando la integridad de los paquetes                                                  [##########################################################] 100%
(10/10) cargando los archivos del paquete...                                                       [##########################################################] 100%
(10/10) verificando conflictos entre archivos                                                      [##########################################################] 100%
(10/10) verificando el espacio disponible en disco                                                 [##########################################################] 100%
( 1/10) reinstalando openrc-core                                                                   [##########################################################] 100%
==> Set up your network interface before you reboot.
==> Visit http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4
( 2/10) instalando cronie-openrc                                                                   [##########################################################] 100%
==> run 'rc-update add cronie default'
( 3/10) instalando device-mapper-openrc                                                            [##########################################################] 100%
==> run 'rc-update add device-mapper boot'
==> run 'rc-update add dmeventd boot'
( 4/10) instalando cryptsetup-openrc                                                               [##########################################################] 100%
==> run 'rc-update add dmcrypt boot'
( 5/10) instalando dbus-openrc                                                                     [##########################################################] 100%
 * service dbus added to runlevel default
( 6/10) instalando dhcpcd-openrc                                                                   [##########################################################] 100%
==> run 'rc-update add dhcpcd default'
( 7/10) instalando glibc-openrc                                                                    [##########################################################] 100%
==> run 'rc-update add nscd default'
Dependencias opcionales para glibc-openrc
    openldap-openrc
    bind-openrc
( 8/10) instalando inetutils-openrc                                                                [##########################################################] 100%
==> run 'rc-update add ftpd default'
( 9/10) instalando lvm2-openrc                                                                     [##########################################################] 100%
==> run 'rc-update add lvm boot'
(10/10) instalando mdadm-openrc                                                                    [##########################################################] 100%
==> run 'rc-update add mdadm boot'
Dependencias opcionales para mdadm-openrc
    bind-openrc
[richard@localhost init.d]$
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: spectromas on 11. July 2014, 17:38:59
Thx for reporting.
Bitleebee-openrc package will have a syslog depend.

You need to install a syslogger.
eg syslog-ng-openrc or rsyslog-openrc or metalog-openrc.

bitlbee service should autostart syslog

Thanks, that fixed it.
I think I just have two other issue I'm trying to fix (or three but I haven't tried the things in the wiki for the reboot/hibernate/suspend things yet).

mpd starts ok but it is not seeing any of my library or configs.

Also, how can I create a service to start with arguments? I want to set 'tmux new -s rtorrent -d rtorrent' to start but I can't see a way to do this. I could add it to my .Xinitrc but I've always used systemctl for this.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 11. July 2014, 17:43:42
Just for comparison, here are the results of aaditya's enhance command:
Code: [Select]
[richard@localhost init.d]$ sudo pacman -S openrc-core cronie-openrc cryptsetup-openrc dbus-openrc device-mapper-openrc dhcpcd-openrc glibc-openrc inetutils-openrc lvm2-openrc mdadm-openrc
[sudo] password for richard:
atención: openrc-core-0.12.4-18 está actualizado -- re-instalando
resolviendo dependencias...
verificando conflictos...

Paquetes (10): cronie-openrc-20140619-1  cryptsetup-openrc-20140619-1  dbus-openrc-20140619-1  device-mapper-openrc-20140619-1  dhcpcd-openrc-20140619-1
               glibc-openrc-20140619-1  inetutils-openrc-20140619-1  lvm2-openrc-20140619-1  mdadm-openrc-20140619-1  openrc-core-0.12.4-18

Tamaño Total de Descarga:  0,02 MiB
Tamaño Total Instalado:    0,93 MiB
Tamaño neto a actualizar:  0,16 MiB

:: ¿Continuar con la instalación? [S/n]
:: Recuperando paquetes ...
 cronie-openrc-20140619-1-any                                            1736,0   B   848K/s 00:00 [##########################################################] 100%
 device-mapper-openrc-20140619-1-any                                        3,1 KiB   343K/s 00:00 [##########################################################] 100%
 cryptsetup-openrc-20140619-1-any                                           5,7 KiB  39,9K/s 00:00 [##########################################################] 100%
 dbus-openrc-20140619-1-any                                              1768,0   B  1727K/s 00:00
 dhcpcd-openrc-20140619-1-any                                            1400,0   B  1367K/s 00:00 [##########################################################] 100%
 glibc-openrc-20140619-1-any                                             1972,0   B   481K/s 00:00 [##########################################################] 100%
 inetutils-openrc-20140619-1-any                                         1656,0   B   809K/s 00:00 [##########################################################] 100%
 lvm2-openrc-20140619-1-any                                                 3,2 KiB   351K/s 00:00 [##########################################################] 100%
 mdadm-openrc-20140619-1-any                                             1732,0   B  1691K/s 00:00 [##########################################################] 100%
(10/10) verificando llaves en el llavero                                                           [##########################################################] 100%
(10/10) verificando la integridad de los paquetes                                                  [##########################################################] 100%
(10/10) cargando los archivos del paquete...                                                       [##########################################################] 100%
(10/10) verificando conflictos entre archivos                                                      [##########################################################] 100%
(10/10) verificando el espacio disponible en disco                                                 [##########################################################] 100%
( 1/10) reinstalando openrc-core                                                                   [##########################################################] 100%
==> Set up your network interface before you reboot.
==> Visit http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4
( 2/10) instalando cronie-openrc                                                                   [##########################################################] 100%
==> run 'rc-update add cronie default'
( 3/10) instalando device-mapper-openrc                                                            [##########################################################] 100%
==> run 'rc-update add device-mapper boot'
==> run 'rc-update add dmeventd boot'
( 4/10) instalando cryptsetup-openrc                                                               [##########################################################] 100%
==> run 'rc-update add dmcrypt boot'
( 5/10) instalando dbus-openrc                                                                     [##########################################################] 100%
 * service dbus added to runlevel default
( 6/10) instalando dhcpcd-openrc                                                                   [##########################################################] 100%
==> run 'rc-update add dhcpcd default'
( 7/10) instalando glibc-openrc                                                                    [##########################################################] 100%
==> run 'rc-update add nscd default'
Dependencias opcionales para glibc-openrc
    openldap-openrc
    bind-openrc
( 8/10) instalando inetutils-openrc                                                                [##########################################################] 100%
==> run 'rc-update add ftpd default'
( 9/10) instalando lvm2-openrc                                                                     [##########################################################] 100%
==> run 'rc-update add lvm boot'
(10/10) instalando mdadm-openrc                                                                    [##########################################################] 100%
==> run 'rc-update add mdadm boot'
Dependencias opcionales para mdadm-openrc
    bind-openrc
[richard@localhost init.d]$
Yup, it does seem that these packages were not installed earlier, which are now installed :)

About the messages that are being displayed, for example, ==> run 'rc-update add cronie default', if you run:
Code: [Select]
sudo rc-update add cronie defaultcronie (which schedules cron-jobs) would be added to autostart.

You can check the status of the services with:
Code: [Select]
rc-status
More in the wiki ;)
https://wiki.manjaro.org/index.php?title=Openrc#Configuration
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Richard on 11. July 2014, 17:46:46
openrc doesn't find localhost:631 to set up my printer.
What needs to be added?
Is there a list of the modules needed for services?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 11. July 2014, 17:49:47
Thanks, that fixed it.
I think I just have two other issue I'm trying to fix (or three but I haven't tried the things in the wiki for the reboot/hibernate/suspend things yet).

mpd starts ok but it is not seeing any of my library or configs.

Also, how can I create a service to start with arguments? I want to set 'tmux new -s rtorrent -d rtorrent' to start but I can't see a way to do this. I could add it to my .Xinitrc but I've always used systemctl for this.
Hi spectromas, I searched for it and found a link:
http://www.calculate-linux.org/main/en/rc-service

Maybe you can start a service with:
Code: [Select]
sudo rc-service start <service-name> <arguments>
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 11. July 2014, 17:50:55
openrc doesn't find localhost:631 to set up my printer.
What needs to be added?
Is there a list of the modules needed for services?
I think you need to install and enable the cups-openrc package Richard ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Richard on 11. July 2014, 17:52:33
That sounds reasonable.  :P
Thanks.  ;D

Note:
and I found the list in octopi.
Thanks again.
Looks like OpenRC is almost complete, for me.

Only eudev remains, once this part settles down.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 11. July 2014, 19:03:50

Also, how can I create a service to start with arguments? I want to set 'tmux new -s rtorrent -d rtorrent' to start but I can't see a way to do this. I could add it to my .Xinitrc but I've always used systemctl for this.

Usually, args can be set in /etc/conf.d/<servicename>
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 11. July 2014, 21:41:41
@ marko

I moved your post to the development thread (https://forum.manjaro.org/index.php?topic=14619.msg137898#new), as it will be interesting with pamac.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: marko94 on 11. July 2014, 21:43:58
@ marko

I moved your post to the development thread (https://forum.manjaro.org/index.php?topic=14619.msg137898#new), as it will be interesting with pamac.

Ok,thanks :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: spectromas on 12. July 2014, 18:36:12
Could I get some help with logging out, shutdown and suspend/hibernate? I see in the wiki it says I need to have consolekit to shutdown as a non-root user but it must not be set up or working properly for me because I still need to be root to do this.

Code: [Select]
alex@manjaro:~|⇒  rc-status
Runlevel: default
 alsasound                                 [  started  ]
 syslog-ng                                 [  started  ]
 gpm                                       [  started  ]
 dbus                                      [  started  ]
 networkmanager                            [  started  ]
 nscd                                      [  started  ]
 bitlbee                                   [  started  ]
 consolekit                                [  started  ]
 netmount                                  [  started  ]
 acpid                                     [  started  ]
 cronie                                    [  started  ]
 ftpd                                      [  crashed  ]
 lighttpd                                  [  crashed  ]
 local                                     [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
Dynamic Runlevel: manual

(I don't know why lighttpd crashes like that, it seems to be working as far as I can tell).

I don't use a display manager so I have not installed the openrc-displaymanager, I just startx from tty. I have added this to my ~/.xinitrc:
Code: [Select]
exec ck-launch-session awesome and I see that there is something for ck-list-sessions but it doesn't look right:

Code: [Select]
alex@manjaro:~|⇒  ck-list-sessions         
Session2:
unix-user = '1000'
realname = '(null)'
seat = 'Seat3'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = '/dev/tty1'
remote-host-name = ''
is-local = FALSE
on-since = '2014-07-11T17:05:08.417148Z'
login-session-id = ''

I usually use oblogout inside Awesome to logout/suspend/reboot/shutdown but suspend and hibernate are not working at all and shutdown require root (and does nothing from oblogout, I have to do it from a terminal).
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 12. July 2014, 19:07:47

I usually use oblogout inside Awesome to logout/suspend/reboot/shutdown but suspend and hibernate are not working at all and shutdown require root (and does nothing from oblogout, I have to do it from a terminal).

You can try to install upower-pm-utils and see if that helps.

I will check lighttpd, but my guess is, it crashes due to some misconfiguration.

Edit: to explain quickly

upower had its pm-utils suppoort removed upstream, so this version depends on running systemd for suspend/hiberante.

I think there is no way around to install upower-pm-utils, ie you need eudev.

Code: [Select]
sudo pacman -S eudev-base
:: Es sind 3 Mitglieder in der Gruppe eudev-base:
:: Repositorium community
   1) eudev-openrc  2) eudev-systemdcompat  3) upower-pm-utils

Geben Sie eine Auswahl ein (Voreinstellung=alle):

@ all

updates have arrived, and the openrc-base group is working again.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 13. July 2014, 18:27:10
Could I get some help with logging out, shutdown and suspend/hibernate? I see in the wiki it says I need to have consolekit to shutdown as a non-root user but it must not be set up or working properly for me because I still need to be root to do this.

Code: [Select]
alex@manjaro:~|⇒  rc-status
Runlevel: default
 alsasound                                 [  started  ]
 syslog-ng                                 [  started  ]
 gpm                                       [  started  ]
 dbus                                      [  started  ]
 networkmanager                            [  started  ]
 nscd                                      [  started  ]
 bitlbee                                   [  started  ]
 consolekit                                [  started  ]
 netmount                                  [  started  ]
 acpid                                     [  started  ]
 cronie                                    [  started  ]
 ftpd                                      [  crashed  ]
 lighttpd                                  [  crashed  ]
 local                                     [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
Dynamic Runlevel: manual

(I don't know why lighttpd crashes like that, it seems to be working as far as I can tell).


Please add to /etc/lighttpd/lighttpd.conf

Code: [Select]
server.pid-file = "/run/lighttpd.pid"
server.bind = "localhost"

and lighttpd won't crash.

It is just a missing lighttpd configuration option. ;)

I will make lighttpd-openrc print a message post install again to add these.

PS: I don't know why ftpd crashes on your system.

Code: [Select]
rc-status

Dynamic Runlevel: manual
 ftpd                          [  started  ]
 lighttpd                    [  started  ]
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 15. July 2014, 16:14:15
Could I get some help with logging out, shutdown and suspend/hibernate? I see in the wiki it says I need to have consolekit to shutdown as a non-root user but it must not be set up or working properly for me because I still need to be root to do this.

Code: [Select]
alex@manjaro:~|⇒  rc-status
Runlevel: default
 alsasound                                 [  started  ]
 syslog-ng                                 [  started  ]
 gpm                                       [  started  ]
 dbus                                      [  started  ]
 networkmanager                            [  started  ]
 nscd                                      [  started  ]
 bitlbee                                   [  started  ]
 consolekit                                [  started  ]
 netmount                                  [  started  ]
 acpid                                     [  started  ]
 cronie                                    [  started  ]
 ftpd                                      [  crashed  ]
 lighttpd                                  [  crashed  ]
 local                                     [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
Dynamic Runlevel: manual

(I don't know why lighttpd crashes like that, it seems to be working as far as I can tell).

I don't use a display manager so I have not installed the openrc-displaymanager, I just startx from tty. I have added this to my ~/.xinitrc:
Code: [Select]
exec ck-launch-session awesome and I see that there is something for ck-list-sessions but it doesn't look right:

Code: [Select]
alex@manjaro:~|⇒  ck-list-sessions         
Session2:
unix-user = '1000'
realname = '(null)'
seat = 'Seat3'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = '/dev/tty1'
remote-host-name = ''
is-local = FALSE
on-since = '2014-07-11T17:05:08.417148Z'
login-session-id = ''

I usually use oblogout inside Awesome to logout/suspend/reboot/shutdown but suspend and hibernate are not working at all and shutdown require root (and does nothing from oblogout, I have to do it from a terminal).
Added a oblogout-consolekit (https://aur.archlinux.org/packages/oblogout-consolekit/) package in the AUR.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 15. July 2014, 18:28:53
Thx
Code: [Select]
:: oblogout-consolekit and oblogout are in conflict. Remove oblogout? [y/N] y

Packages (2): oblogout-0.2-15 [removal]  oblogout-consolekit-0.2-2
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 15. July 2014, 18:37:02
Thx
Code: [Select]
:: oblogout-consolekit and oblogout are in conflict. Remove oblogout? [y/N] y

Packages (2): oblogout-0.2-15 [removal]  oblogout-consolekit-0.2-2
Yeah, its basically oblogout with a different configuration file that supports consolekit :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 31. August 2014, 22:38:44
I've noticed that there's no reason to have both "lxpolkit"  and  "polkit-consolekit" installed.  On my minimal Xfce/i3 build, "polkit-consolekit" works great.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 01. September 2014, 16:38:02
I've noticed that there's no reason to have both "lxpolkit"  and  "polkit-consolekit" installed.  On my minimal Xfce/i3 build, "polkit-consolekit" works great.
Hi schpankme,

As far as I understand, polkit-consolekit is a system level component (like polkit which it replaced), while lxpolkit is a user level component.

Hence lxpolkit is added to my startup programs in Xfce or {Open,Flux}box.
What it does is that when I try to mount my unmounted partitions it asks me for a password; without it I simply get "Authentication failed".
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Mirazi_Heket on 20. September 2014, 10:19:17
1. Any idea where i can read description of services (taken from rc-services --list)?
2. Can i check somehow if i got some leftovers from systemd and related packages/functionality?
3. Is it safe to do sudo pacman -Rns lib32-systemd? Says "lib32-mesa: requires lib32-systemd".
this grows up to
Code: [Select]
sudo pacman -Rns lib32-systemd lib32-mesa lib32-cairo lib32-nouveau-dri lib32-nvidia-utils lib32-gtk2 lib32-pango
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 20. September 2014, 17:26:17
1. Any idea where i can read description of services (taken from rc-services --list)?
2. Can i check somehow if i got some leftovers from systemd and related packages/functionality?
3. Is it safe to do sudo pacman -Rns lib32-systemd? Says "lib32-mesa: requires lib32-systemd".
this grows up to
Code: [Select]
sudo pacman -Rns lib32-systemd lib32-mesa lib32-cairo lib32-nouveau-dri lib32-nvidia-utils lib32-gtk2 lib32-pango
1. I dont know if it can be done directly, but you could try the command pacman -Qs openrc to get details about installed openrc packages.

2. You could try pacman -Qs systemd to see if you have any systemd related package. Note that nowadays systemd is quite integrated with a lot of stuff, and the current combo of eudev-systemdcompat and eudev tries to reduce the conflicts to a minimum.

3. I think that lib32-systemd and other 32 bit libraries are part of multilib, ie to run 32 bit apps on 64 bit, so if you removed them, you could probably not run graphical 32 bit apps, like games or wine (for windows apps). If you dont do gaming or run wine you could probably remove them.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Mirazi_Heket on 22. September 2014, 19:58:38
I do not know about 50% mentioned services from list. Also i would like to know about those not run in my system
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Mirazi_Heket on 24. September 2014, 11:43:59
Graphic driver requires lib32-systemd... same with nouveau...
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 24. September 2014, 17:17:11
Graphic driver requires lib32-systemd... same with nouveau...


lib32-systemd requires systemd.


Install OpenRC for Xfce

Code: [Select]
sudo pacman -S openrc-desktop

    Enable Services
   
Code: [Select]
sudo rc-update add alsasound default   
Code: [Select]
sudo rc-update add dhcpcd default   
Code: [Select]
sudo rc-update add cronie default
     other?

    Note:  dhcpcd is enabled by default, if you want WiFi or the network applet then install networkmanager-openrc.
                        sudo rc-update add networkmanager default



This removes systemd and replaces it with openrc
Code: [Select]
sudo pacman -S eudev-base

Code: [Select]
sudo mousepad /etc/fstabtmpfs   /tmp   tmpfs   nodev,nosuid        0     0

Code: [Select]
sudo mousepad /etc/conf.d/hostname
Code: [Select]
sudo mousepad /etc/rc.conf    rc_parallel="YES"
    rc_logger="NO"

...

Install LXDM

Code: [Select]
yaourt -S lxdm-manjaro-theme
Code: [Select]
yaourt -S lxdm-consolekit

Code: [Select]
sudo mousepad /etc/conf.d/xdm
In the file change xdm to "lxdm".


Code: [Select]
sudo mousepad /etc/lxdm/lxdm.conf
   session=/usr/bin/startxfce4
   greeter=/usr/lib/lxdm/lxdm-greeter-gtk
   arg=/usr/bin/X -background vt1
   gtk_theme=Menda
   bg=/usr/share/backgrounds/manjaro.jpg
   theme=Manjaro


Lock, Reboot, Shutdown, etc
Code: [Select]
yaourt -S xfce4-session-consolekit

...
remove Orphan Files
Code: [Select]
sudo pacman -Rs $(pacman -Qqdt)
clear cache
Code: [Select]
sudo rm -r ~/.cache/sessions/
reboot
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Mirazi_Heket on 24. September 2014, 17:42:39
lib32-systemd requires systemd.
not true
Code: [Select]
[wind@adm1 ~]$ pacman -Ss systemd
core/libsystemd 216-3
    systemd client libraries
core/netctl 1.9-1 (base) [zainstalowano]
    Profile based systemd network management
core/systemd 216-3
    system and service manager
core/systemd-sysvcompat 216-3 (base)
    sysvinit compat for systemd
extra/gnome-logs 3.12.2-1 (gnome-extra)
    A log viewer for the systemd journal
community/eudev-systemdcompat 215-1 (eudev-base) [zainstalowano]
    systemd client libraries without udev; systemd compatibility package
community/polkit-consolekit 0.112-2 [zainstalowano]
    PolyciKit with ConsoleKit support for non-systemd systems
community/python2-systemd 216-1
    Python2 bindings for systemd
community/systemd-swap 2.24.7.1-1
    Script for creating hybrid swap space from zram swaps, swap files and swap
    partitions.
community/systemd-ui 3-2
    Graphical front-end for systemd
community/vim-systemd 20140209-1
    Vim syntax highlighting for systemd unit files
multilib/lib32-systemd 216-1 [zainstalowano]
    system and service manager (32-bit)

Code: [Select]

sudo mousepad /etc/fstab

tmpfs   /tmp   tmpfs   nodev,nosuid        0     0
That was not necessary.

Code: [Select]

sudo mousepad /etc/rc.conf

    rc_parallel="YES"
    rc_logger="NO"
Thanks for info.

Install LXDM
not necessary. Have xfce.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 24. September 2014, 17:56:33
Are you using 32-bit system?

lib32-systemd
Code: [Select]
lib32-curl-7.38.0-1
lib32-e2fsprogs-1.42.11-1
lib32-keyutils-1.5.9-1
lib32-krb5-1.12.2-1
lib32-libgcrypt-1.6.2-1
lib32-libgpg-error-1.13-1
lib32-libldap-2.4.39-1
lib32-libssh2-1.4.3-2
lib32-openssl-1.0.1.i-1
lib32-systemd-216-2
lib32-xz-5.0.5-1


LXDM is the "Lightweight X11 Display Manager, not LXDE.

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Mirazi_Heket on 24. September 2014, 18:05:30
ah sorry, got working lightdm, but will lxde solve my issue?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 24. September 2014, 18:12:08
ah sorry, got working lightdm, but will lxde solve my issue?


What specifically is your problem?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 24. September 2014, 21:30:20
In unstable repo, probably also in testing, I added to mhwd support for switching off lib32.

Code: [Select]
sudo mhwd-gpu --setlib32 false
will prevent mhwd from pulling lib32 packages.

To enable again:

Code: [Select]
sudo mhwd-gpu --setlib32 true
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 24. September 2014, 21:35:18
/etc/mhwd-x86_64.conf
MHWD64_IS_LIB32="false"   ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 24. September 2014, 21:44:38
/etc/mhwd-x86_64.conf
MHWD64_IS_LIB32="false"   ;)

Yeah

Code: [Select]
# echo 'MHWD64_IS_LIB32="false"' > /etc/mhwd-x86_64.conf
will do the same. :D
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 25. September 2014, 14:42:33
Hi OpenRC users,

With the Manjaro switch to Xorg-1.16 (https://forum.manjaro.org/index.php?topic=16650.0), I guess we will need to deal with Arch making X rootless with systemd (https://www.archlinux.org/news/xorg-server-116-is-now-available/).

Quote from: Arch Linux
X is now rootless with the help of systemd-logind, this also means that it must be launched from the same virtual terminal as was used to log in, redirecting stderr also breaks rootless login. The old root execution behavior can be restored through the Xorg.wrap config file (man xorg.wrap). Please note that launching X through a login-manager (gdm, kdm, ...) doesn't yet provide rootless access.

The workaround (https://bbs.archlinux.org/viewtopic.php?pid=1441150#p1441150) that can be used is:
Quote from: Lone_Wolf
The recent upgrade to Xorg 1.16.0 will break X for those of us using openrc with OSS videodrivers.

The reason for this is the new Xorg.wrap command, it checks if the videodriver supports KMS.
If it does, then Xorg.wrap tries to start X without root rights using logind .

As logind only functions if the system is booted with systemd as PID 1, Xorg.wrap can't start X without root rights and fails.

The solution is to CREATE an /etc/X11/Xwrapper.config file with contents like this :

Code: [Select]
# Xorg.wrap configuation file
needs_root_rights = yes

see man xorg.wrap for details about the Xwrapper.config file.

I checked that it works on my Arch VM, I will try it soon on my Manjaro VMs too.
I think it only affects starting X from the command line, not via a Graphical display manager (LXDM, GDM, KDM, etc).
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Mirazi_Heket on 25. September 2014, 17:37:06
In unstable repo, probably also in testing, I added to mhwd support for switching off lib32.

Code: [Select]
sudo mhwd-gpu --setlib32 false
will prevent mhwd from pulling lib32 packages.

Please add to wiki. It's working. No systemd leftovers  ;D
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 02. October 2014, 15:33:02
Hi guys,

With Artoo's help in updating devtools (https://github.com/udeved/devtools) and build scripts (https://github.com/udeved/pkgbuilds), I managed to enhance my pacman repo (https://forum.manjaro.org/index.php?topic=14619.msg152613#msg152613) with all the the latest packages from github (https://github.com/udeved/pkgbuilds) :)

To get the packages available in this repo, add the following to /etc/pacman.conf (at the end)

Code: [Select]
[openrc-eudev]
SigLevel = Optional TrustAll
Server = http://downloads.sourceforge.net/project/mefiles/Manjaro/$repo/$arch

As it is a signed package repo, maybe you will need to add my signature to pacman's conf with
Code: [Select]
sudo pacman-key -r 518B147D
sudo pacman-key --lsign-key 518B147D

After that run sudo pacman -Syu to update the repositories.

To update your packages using this repo (which will replace the packages from the Manjaro repos), following syntax can be used:
Code: [Select]
sudo pacman -S openrc-eudev/openrc-base
Here openrc-eudev specifies the repository to use.

Similarly, to update some other packages,
Code: [Select]
sudo pacman -S openrc-eudev/eudev openrc-eudev/eudev-systemdcompat
Note that there could be bugs involved with running the latest packages, so for maximum stability, only the packages from the Manjaro repos can be used.
To downgrade to the packages from the Manjaro repos, use:
Code: [Select]
sudo pacman -Syyu
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 02. October 2014, 21:36:08
(http://s29.postimg.org/53sukdvs7/Screenshot_from_2014_10_02_14_31_27.png)

error: key "Aaditya Bagga " could not be imported
required key missing from keyring
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 02. October 2014, 21:49:59
I did not get this error when I added the repo to my VMs.
SigLevel = Optional TrustAll means do not use signatures for checking..

Anyway you could try to import my signature with:
Code: [Select]
sudo pacman-key -r 518B147D
sudo pacman-key --lsign-key 518B147D

Maybe I made a mistake somewhere..
Thx for the bug report.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 02. October 2014, 22:12:03
The only package I'm not able to update after installation of the 'key' is eudev.

Code: [Select]
Version
1.10-1 (outdated installed version is 1.9-1)

Build Date
Sat - 12/07/2014 10:11:06


Thanks much for the quick-fix.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 02. October 2014, 22:15:25
The only package I'm not able to update after installation of the 'key' is eudev.

Code: [Select]
Version
1.10-1 (outdated installed version is 1.9-1)

Build Date
Sat - 12/07/2014 10:11:06


Thanks much for the quick-fix.
You could try that from a terminal, as I think eudev-1.10 replaced libeudev-1.9 and eudev-1.9, and maybe its not displaying a message about it..
Code: [Select]
sudo pacman -S openrc-eudev/eudevThx again for the bug report :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 02. October 2014, 22:19:37
Stranger and Stranger   ;)

sudo pacman -S openrc-eudev/eudev
Code: [Select]
:: eudev and libeudev are in conflict.

error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)

:: eudev and libeudev are in conflict ( libeudev>=1.8 )
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 02. October 2014, 22:23:22
Stranger and Stranger   ;)

sudo pacman -S openrc-eudev/eudev
Code: [Select]
:: eudev and libeudev are in conflict.

error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)

:: eudev and libeudev are in conflict ( libeudev>=1.8 )
Could you list which of the eudev packages you have installed..
Code: [Select]
pacman -Qs eudev
Another command to try is:
Code: [Select]
sudo pacman -S eudev-openrc eudev-systemdcompat
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 02. October 2014, 22:26:43
pacman -Qs eudev

Code: [Select]
local/eudev 1.9-1
    The userspace dev tools (udev) forked by Gentoo

local/eudev-openrc 20141002-1 (eudev-base)
    OpenRC eudev postmount script

local/eudev-systemdcompat 216-2 (eudev-base)
    systemd client libraries without udev; systemd compatibility package

local/libeudev 1.9-1
    eudev client libraries



sudo pacman -S eudev-openrc eudev-systemdcompat
Code: [Select]
warning: downgrading package eudev-openrc (20141002-1 => 20140712-1)
warning: downgrading package eudev-systemdcompat (216-2 => 215-1)

Packages (2): eudev-openrc-20140712-1
              eudev-systemdcompat-215-1

(2/2) downgrading eudev-systemdcompat              [###] 100%



sudo pacman -S openrc-eudev/eudev
Code: [Select]
:: eudev and libeudev are in conflict. Remove libeudev? [y/N] y

Packages (2): libeudev-1.9-1 [removal]  eudev-1.10-1

Total Download Size:    0.81 MiB
Total Installed Size:   6.27 MiB
Net Upgrade Size:       0.23 MiB

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 02. October 2014, 22:29:46

sudo pacman -S openrc-eudev/eudev
Code: [Select]
:: eudev and libeudev are in conflict. Remove libeudev? [y/N] y

Packages (2): libeudev-1.9-1 [removal]  eudev-1.10-1

Total Download Size:    0.81 MiB
Total Installed Size:   6.27 MiB
Net Upgrade Size:       0.23 MiB
I think you got it :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 02. October 2014, 22:35:32
I'm still scratching my head on this one;
both eudev-openrc  and eudev-systemdcompat were updated, but running the command again downgraded them;
  then eudev was updated;
now we have updated eudev-openrc  and eudev-systemdcompat.

 :o
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 02. October 2014, 22:45:02
I'm still scratching my head on this one;
both eudev-openrc  and eudev-systemdcompat were updated, but running the command again downgraded them;
  then eudev was updated;
now we have updated eudev-openrc  and eudev-systemdcompat.

 :o
Haha, it was just a shot in the dark ;)
Software can be confusing sometimes..
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 04. October 2014, 07:41:40
If people find adding the repo path to package confusing, you can also rank the repos in pacman.conf differently.

Since systemd is in base group, and core repo & the community repo on top, it pacman will prefer core repo for udev provider.
If you put say aaditya's repo on top, before core & community repo, additya's packages will be preferred without the repo path.

So eudev-1.10 will overlay eudev-1.9 from community repo as well as systemd from core repo.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 04. October 2014, 07:50:50
[openrc-eudev]
SigLevel = Optional TrustAll
Server = http://downloads.sourceforge.net/project/mefiles/Manjaro/$repo/$arch

[core]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[community]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[repolxqt]
SigLevel = Optional TrustAll
Server = https://sourceforge.net/projects/repolxqt/files/$arch/


i3Qt - OpenRC Build - no Gtk2/3   ;)

Code: [Select]
a52dec
aalib
acl
acpid
acpid-openrc
adobe-source-sans-pro-fonts
alsa-lib
alsa-utils
alsa-utils-openrc
archlinux-keyring
arj
aspell
attica
attr
autoconf
automake
avahi
bash
binutils
bison
boost-libs
btrfs-progs
bzip2
ca-certificates
ca-certificates-cacert
ca-certificates-mozilla
ca-certificates-utils
cairo
catalyst-utils
cdparanoia
celt
chromaprint
cifs-utils
cloog
clucene
compositeproto
compton
confuse
conky
consolekit                                                         
consolekit-openrc                                                   
coreutils                                                           
cpupower                                                           
cracklib                                                           
cryptsetup                                                         
curl                                                               
damageproto                                                         
db                                                                 
dbus                                                               
dbus-glib                                                           
dbus-openrc                                                         
dconf                                                               
desktop-file-utils
device-mapper
dhclient
dhcpcd
dhcpcd-openrc
dialog
diffutils
dirmngr
displaymanager-openrc
dmenu
dmidecode
dmraid
dmxproto
dnsmasq
docbook-xml
docbook-xsl
dosfstools
e2fsprogs
ecryptfs-utils
efibootmgr
efivar
elfutils
enca
enchant
ethtool
eudev
eudev-openrc
eudev-systemdcompat
exiv2
expac
expat
faac
faad2
fakeroot
feh
ffmpeg
fftw
file
filesystem
findutils
fixesproto
flac
flex
fluidsynth
fontconfig
fontsproto
freeglut
freetype2
fribidi
fuse
gawk
gc
gcc
gcc-libs
gconf
gdbm
gdk-pixbuf2
gettext
giflib
glew
glib-networking
glib2
glibc
glu
gmp
gnupg
gnutls
gpgme
gpm
gptfdisk
grantlee-qt4
graphite
grep
groff
grub
gsettings-desktop-schemas
gsm
gst-libav
gst-plugins-bad
gst-plugins-base
gst-plugins-base-libs
gst-plugins-good
gstreamer
guile
gvfs
gvfs-mtp
gzip
harfbuzz
harfbuzz-icu
haveged
hdparm
hicolor-icon-theme
hspell
htop
hunspell
hunspell-en
hwids
hwinfo
hyphen
i3-wm
i3lock
i3status
iana-etc
icu
ilmbase
imagewriter
imlib2
inetutils
inputproto
intel-ucode
inxi
iproute2
iptables
iputils
isl
iso-codes
j4-dmenu-desktop
jack
jasper
jbig2dec
jfsutils
js185
json-c
juffed
kactivities4
kbd
kbproto
kdebase-runtime
kdegraphics-ksnapshot
kdelibs
kdeutils-kwalletmanager
keyboardctl
keyutils
kmod
krb5
lame
lcms2
ldb
less
lib32-acl
lib32-attr
lib32-bzip2
lib32-catalyst-utils
lib32-expat
lib32-fontconfig
lib32-freetype2
lib32-gcc-libs
lib32-gettext
lib32-glib2
lib32-glibc
lib32-glu
lib32-harfbuzz
lib32-icu
lib32-libdbus
lib32-libdrm
lib32-libffi
lib32-libice
lib32-libpciaccess
lib32-libpng
lib32-libsm
lib32-libx11
lib32-libxau
lib32-libxcb
lib32-libxcursor
lib32-libxdamage
lib32-libxdmcp
lib32-libxext
lib32-libxfixes
lib32-libxi
lib32-libxrandr
lib32-libxrender
lib32-pcre
lib32-util-linux
lib32-zlib
libaio
libarchive
libass
libassuan
libasyncns
libatasmart
libatomic_ops
libavc1394
libbluray
libbsd
libcaca
libcanberra
libcap
libcap-ng
libcddb
libcdio
libcdio-paranoia
libconfig
libcroco
libcups
libdaemon
libdatrie
libdbus
libdbusmenu-qt
libdbusmenu-qt5
libdca
libdmx
libdnet
libdrm
libdv
libdvdcss
libdvdnav
libdvdread
libepoxy
libev
libevdev
libevent
libexif
libffi
libfm-git
libfontenc
libftdi-compat
libgcrypt
libgme
libgpg-error
libgssglue
libice
libid3tag
libidn
libiec61883
libimobiledevice
libirman
libjpeg-turbo
libkactivities4
libkipi
libksba
libldap
liblightdm-qt5
libltdl
liblxqt-git
libmad
libmms
libmng
libmodplug
libmp4v2
libmpc
libmtp
libnl
libofa
libogg
libomxil-bellagio
liboobs
libpcap
libpciaccess
libpipeline
libplist
libpng
libproxy
libpulse
libqtxdg-qt5-git
libqzeitgeist
libraw1394
libreoffice-still-calc
libreoffice-still-common
libreoffice-still-en-US
libreoffice-still-writer
librpcsecgss
librsvg
libsamplerate
libsasl
libsecret
libshout
libsm
libsndfile
libsoup
libsrtp
libssh
libssh2
libtasn1
libthai
libtheora
libtiff
libtirpc
libtool
libtxc_dxtn
libunistring
libusb
libusb-compat
libusbmuxd
libutempter
libutil-linux
libva
libvdpau
libvisual
libvorbis
libvpx
libwbclient
libwebp
libx11
libx264
libx86emu
libxau
libxaw
libxcb
libxcomposite
libxcursor
libxdamage
libxdmcp
libxext
libxfixes
libxfont
libxft
libxi
libxinerama
libxkbcommon
libxkbcommon-x11
libxkbfile
libxklavier
libxml2
libxmu
libxpm
libxrandr
libxrender
libxshmfence
libxslt
libxss
libxt
libxtst
libxv
libxvmc
libxxf86dga
libxxf86vm
licenses
lightdm
linux-api-headers
linux-firmware
linux312
linux312-catalyst
linux312-headers
lirc-utils
llvm-libs
lm_sensors
locale-info
logrotate
lpsolve
lsb-release
lsof
lua
lvm2
lximage-qt-git
lxmenu-data
lxqt-admin-git
lxqt-config-git
lxqt-lightdm-greeter-git
lz4
lzo
lzop
m4
make
man-db
man-pages
manjaro-artwork
manjaro-hotfixes
manjaro-keyring
manjaro-release
manjaro-system
mdadm
media-player-info
memtest86+
menu-cache
mesa
mesa-demos
mesa-dri
mhwd
mhwd-catalyst
mhwd-db
mhwd-nvidia
mhwd-nvidia-304xx
mhwd-nvidia-340xx
mjpegtools
mkinitcpio
mkinitcpio-busybox
mkinitcpio-nfs-utils
mlocate
mpfr
mpg123
mplayer
mtdev
mupdf
nano
nbd
ncurses
neon
nettle
nfs-utils
nfsidmap
nilfs-utils
nspr
nss
ntfs-3g
octopi-qt5
opencore-amr
openexr
openjpeg
openjpeg2
openrc-core
openresolv
openssl
opus
orc
os-prober
oxygen-icons
p11-kit
p7zip
package-query
pacman
pacman-mirrorlist
pam
pambase
pango
parted
patch
pciutils
pcmanfm-qt-git
pcmciautils
pcre
perl
perl-net-dbus
perl-text-iconv
perl-xml-parser
perl-xml-twig
phonon-qt4
phonon-qt4-gstreamer
phonon-qt5
phonon-qt5-gstreamer
pinentry
pixman
pkg-config
pm-quirks
pm-utils
polkit-consolekit
polkit-kde
polkit-qt4
popcorntime-bin
poppler
popt
prebootloader
procps-ng
progsreiserfs
ps_mem
psmisc
pth
pv
python
python2
python2-xdg
qca
qscintilla
qt-gstreamer
qt4
qt5-base
qt5-declarative
qt5-location
qt5-script
qt5-sensors
qt5-tools
qt5-translations
qt5-webkit
qt5-x11extras
qt5-xmlpatterns
qtchooser
qterminal-git
qtermwidget-git
qtfind
qtwebkit
qupzilla
randrproto
raptor
rasqal
readline
recode
recordproto
redland
refind-efi
reiserfsprogs
renderproto
rpcbind
rsync
rtmpdump
run-parts
sbc
schroedinger
screenfetch
scrnsaverproto
sdl
sdparm
sed
shadow
shared-mime-info
smbclient
smplayer
sound-theme-freedesktop
soundtouch
spandsp
speex
sqlite
squashfs-tools
startup-notification
strigi
sudo
sysfsutils
syslinux4
system-tools-backends
sysvinit
taglib
talloc
tar
tcpdump
tdb
terminus-font
testdisk
tevent
texinfo
thin-provisioning-tools
ttf-bitstream-vera
ttf-dejavu
ttf-droid
ttf-inconsolata
ttf-indic-otf
ttf-liberation
ttf-ubuntu-font-family
tzdata
udisks2
unrar
unzip
upower-pm-utils
uriparser
usbutils
util-linux
v4l-utils
v86d
vi
videoproto
wavpack
wayland
wget
which
wildmidi
wine
wine-mono
wine_gecko
wireless_tools
x265
xautolock
xbitmaps
xcb-proto
xcb-util
xcb-util-cursor
xcb-util-image
xcb-util-keysyms
xcb-util-renderutil
xcb-util-wm
xcursor-vanilla-dmz
xdg-su
xdg-user-dirs
xdg-utils
xextproto
xf86-input-evdev
xf86-input-keyboard
xf86-input-mouse
xf86-input-void
xf86dgaproto
xf86vidmodeproto
xfsprogs
xineramaproto
xinetd
xkeyboard-config
xorg-bdftopcf
xorg-font-util
xorg-font-utils
xorg-fonts-alias
xorg-fonts-encodings
xorg-fonts-misc
xorg-luit
xorg-mkfontdir
xorg-mkfontscale
xorg-server
xorg-server-common
xorg-server-xephyr
xorg-setxkbmap
xorg-twm
xorg-utils
xorg-xauth
xorg-xdpyinfo
xorg-xdriinfo
xorg-xev
xorg-xinit
xorg-xkbcomp
xorg-xlsatoms
xorg-xlsclients
xorg-xprop
xorg-xset
xorg-xvinfo
xorg-xwininfo
xproto
xterm
xvidcore
xz
yajl
yaourt
zip
zita-alsa-pcmi
zita-resampler
zlib




edit:   changed location of [repolxqt] within  /etc/pacman.conf  as suggested by artoo (below)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 04. October 2014, 08:00:27
[openrc-eudev]
SigLevel = Optional TrustAll
Server = http://downloads.sourceforge.net/project/mefiles/Manjaro/$repo/$arch

[repolxqt]
SigLevel = Optional TrustAll
Server = https://sourceforge.net/projects/repolxqt/files/$arch/

[core]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[community]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

i3Qt - OpenRc Build   ;)
Code: [Select]
a52dec
aalib
acl
acpid
acpid-openrc
adobe-source-sans-pro-fonts
alsa-lib
alsa-utils
alsa-utils-openrc
archlinux-keyring
arj
aspell
attica
attr
autoconf
automake
avahi
bash
binutils                                                                                               
bison                                                                                                   
boost-libs                                                                                             
btrfs-progs                                                                                             
bzip2                                                                                                   
ca-certificates                                                                                         
ca-certificates-cacert                                                                                 
ca-certificates-mozilla                                                                                 
ca-certificates-utils                                                                                   
cairo                                                                                                   
catalyst-utils                                                                                         
cdparanoia                                                                                             
celt                                                                                                   
chromaprint
cifs-utils
cloog
clucene
cmake
compositeproto
compton
confuse
conky
consolekit
consolekit-openrc
coreutils
cpupower
cracklib
cryptsetup
curl
damageproto
db
dbus
dbus-glib
dbus-openrc
dconf
desktop-file-utils
device-mapper
dhclient
dhcpcd
dhcpcd-openrc
dialog
diffutils
dirmngr
displaymanager-openrc
dmenu
dmidecode
dmraid
dmxproto
dnsmasq
docbook-xml
docbook-xsl
dosfstools
e2fsprogs
ecryptfs-utils
efibootmgr
efivar
elfutils
enca
enchant
ethtool
eudev
eudev-openrc
eudev-systemdcompat
exiv2
expac
expat
extra-cmake-modules
faac
faad2
fakeroot
feh
ffmpeg
fftw
file
filesystem
findutils
fixesproto
flac
flex
fluidsynth
fontconfig
fontsproto
freeglut
freetype2
fribidi
fuse
gawk
gc
gcc
gcc-libs
gdbm
gdk-pixbuf2
gettext
giflib
git
glew
glib-networking
glib2
glibc
glu
gmp
gnupg
gnutls
gpgme
gpm
gptfdisk
grantlee-qt4
graphite
grep
groff
grub
gsettings-desktop-schemas
gsm
gst-libav
gst-plugins-bad
gst-plugins-base
gst-plugins-base-libs
gst-plugins-good
gstreamer
guile
gvfs
gvfs-mtp
gzip
harfbuzz
harfbuzz-icu
haveged
hdparm
hicolor-icon-theme
hspell
htop
hunspell
hunspell-en
hwids
hwinfo
hyphen
i3-wm
i3lock
i3status
iana-etc
icu
ilmbase
imagewriter
imlib2
inetutils
inputproto
intel-ucode
inxi
iproute2
iptables
iputils
isl
iso-codes
j4-dmenu-desktop
jack
jasper
jbig2dec
jfsutils
js185
json-c
juffed
kactivities4
kbd
kbproto
kdebase-runtime
kdelibs
kdeutils-kwalletmanager
keyboardctl
keyutils
kmod
krb5
lame
lcms2
ldb
less
lib32-acl
lib32-attr
lib32-bzip2
lib32-catalyst-utils
lib32-expat
lib32-fontconfig
lib32-freetype2
lib32-gcc-libs
lib32-gettext
lib32-glib2
lib32-glibc
lib32-glu
lib32-harfbuzz
lib32-icu
lib32-libdbus
lib32-libdrm
lib32-libffi
lib32-libice
lib32-libpciaccess
lib32-libpng
lib32-libsm
lib32-libx11
lib32-libxau
lib32-libxcb
lib32-libxcursor
lib32-libxdamage
lib32-libxdmcp
lib32-libxext
lib32-libxfixes
lib32-libxi
lib32-libxrandr
lib32-libxrender
lib32-pcre
lib32-util-linux
lib32-zlib
libaio
libarchive
libass
libassuan
libasyncns
libatasmart
libatomic_ops
libavc1394
libbluray
libbsd
libcaca
libcanberra
libcap
libcap-ng
libcddb
libcdio
libcdio-paranoia
libconfig
libcroco
libcups
libdaemon
libdatrie
libdbus
libdbusmenu-qt
libdbusmenu-qt5
libdca
libdmx
libdnet
libdrm
libdv
libdvdcss
libdvdnav
libdvdread
libepoxy
libev
libevdev
libevent
libexif
libffi
libfm-git
libfontenc
libftdi-compat
libgcrypt
libgme
libgpg-error
libgssglue
libice
libid3tag
libidn
libiec61883
libimobiledevice
libirman
libjpeg-turbo
libkactivities4
libksba
libldap
liblightdm-qt4
liblightdm-qt5
libltdl
liblxqt-git
libmad
libmms
libmng
libmodplug
libmp4v2
libmpc
libmtp
libnl
libofa
libogg
libomxil-bellagio
libpcap
libpciaccess
libpipeline
libplist
libpng
libproxy
libpulse
libqtxdg-qt5-git
libqzeitgeist
libraw1394
libreoffice-still-calc
libreoffice-still-common
libreoffice-still-en-US
libreoffice-still-writer
librpcsecgss
librsvg
libsamplerate
libsasl
libsecret
libshout
libsm
libsndfile
libsoup
libsrtp
libssh
libssh2
libtasn1
libthai
libtheora
libtiff
libtirpc
libtool
libtxc_dxtn
libunistring
libusb
libusb-compat
libusbmuxd
libutempter
libutil-linux
libva
libvdpau
libvisual
libvorbis
libvpx
libwbclient
libwebp
libx11
libx264
libx86emu
libxau
libxaw
libxcb
libxcomposite
libxcursor
libxdamage
libxdmcp
libxext
libxfixes
libxfont
libxft
libxi
libxinerama
libxkbcommon
libxkbcommon-x11
libxkbfile
libxklavier
libxml2
libxmu
libxpm
libxrandr
libxrender
libxshmfence
libxslt
libxss
libxt
libxtst
libxv
libxvmc
libxxf86dga
libxxf86vm
licenses
lightdm
lightdm-kde-greeter
linux-api-headers
linux-firmware
linux312
linux312-catalyst
linux312-headers
lirc-utils
llvm-libs
lm_sensors
locale-info
logrotate
lpsolve
lsb-release
lsof
lua
lvm2
lxmenu-data
lxqt-common-git
lxqt-config-git
lxqt-policykit-git
lxqt-qtplugin-git
lz4
lzo
lzop
m4
make
man-db
man-pages
manjaro-artwork
manjaro-hotfixes
manjaro-keyring
manjaro-release
manjaro-system
mdadm
media-player-info
memtest86+
menu-cache
mesa
mesa-demos
mesa-dri
mhwd
mhwd-catalyst
mhwd-db
mhwd-nvidia
mhwd-nvidia-304xx
mhwd-nvidia-340xx
mjpegtools
mkinitcpio
mkinitcpio-busybox
mkinitcpio-nfs-utils
mpfr
mpg123
mplayer
mtdev
mupdf
nano
nbd
ncurses
neon
nettle
nfs-utils
nfsidmap
nilfs-utils
nspr
nss
ntfs-3g
octopi-qt5
opencore-amr
openexr
openjpeg
openjpeg2
openrc-core
openresolv
openssl
opus
orc
os-prober
otter-browser
oxygen-icons
p11-kit
p7zip
package-query
pacman
pacman-mirrorlist
pam
pambase
pango
parted
patch
pciutils
pcmanfm-qt-git
pcmciautils
pcre
perl
perl-error
phonon-qt4
phonon-qt4-gstreamer
phonon-qt5
phonon-qt5-gstreamer
pinentry
pixman
pkg-config
polkit-consolekit
polkit-kde
polkit-qt4
polkit-qt5
poppler
popt
prebootloader
procps-ng
progsreiserfs
ps_mem
psmisc
pth
pv
python
python2
python2-xdg
qca
qscintilla
qt-gstreamer
qt4
qt5-base
qt5-declarative
qt5-location
qt5-script
qt5-sensors
qt5-tools
qt5-translations
qt5-webkit
qt5-x11extras
qt5-xmlpatterns
qtchooser
qterminal-git
qtermwidget-git
qtfind
qtwebkit
qupzilla-qt5-git
randrproto
raptor
rasqal
readline
recode
recordproto
redland
refind-efi
reiserfsprogs
renderproto
rpcbind
rsync
rtmpdump
run-parts
sbc
schroedinger
screenfetch
scrnsaverproto
sdl
sdparm
sed
shadow
shared-mime-info
smbclient
smplayer
sound-theme-freedesktop
soundtouch
spandsp
speex
sqlite
squashfs-tools
startup-notification
strigi
sudo
sysfsutils
syslinux4
sysvinit
taglib
talloc
tar
tcpdump
tdb
terminus-font
testdisk
tevent
texinfo
thin-provisioning-tools
ttf-bitstream-vera
ttf-dejavu
ttf-droid
ttf-inconsolata
ttf-indic-otf
ttf-liberation
ttf-ubuntu-font-family
tzdata
udisks2
unrar
unzip
upower
uriparser
usbutils
util-linux
v4l-utils
v86d
vi
videoproto
wavpack
wayland
wget
which
wildmidi
wine
wine-mono
wine_gecko
wireless_tools
x265
xautolock
xbitmaps
xcb-proto
xcb-util
xcb-util-cursor
xcb-util-image
xcb-util-keysyms
xcb-util-renderutil
xcb-util-wm
xcursor-vanilla-dmz
xdg-su
xdg-user-dirs
xdg-utils
xextproto
xf86-input-evdev
xf86-input-keyboard
xf86-input-mouse
xf86-input-void
xf86dgaproto
xf86vidmodeproto
xfsprogs
xineramaproto
xinetd
xkeyboard-config
xorg-bdftopcf
xorg-font-util
xorg-font-utils
xorg-fonts-alias
xorg-fonts-encodings
xorg-fonts-misc
xorg-luit
xorg-mkfontdir
xorg-mkfontscale
xorg-server
xorg-server-common
xorg-setxkbmap
xorg-twm
xorg-utils
xorg-xauth
xorg-xdpyinfo
xorg-xdriinfo
xorg-xev
xorg-xinit
xorg-xkbcomp
xorg-xlsatoms
xorg-xlsclients
xorg-xprop
xorg-xset
xorg-xvinfo
xorg-xwininfo
xproto
xterm
xvidcore
xz
yajl
yaourt
zip
zita-alsa-pcmi
zita-resampler
zlib

I would probably rank the lxqt repo at bottom, but thats a matter of taste.

The downside of having custom repos on top, if eg eudev gets update to 1.11 in community, the update will not work without down-ranking openrc-eudev repo.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: neonr4in on 10. October 2014, 10:32:56
Well, OpenRC running fine, but my networkmanager is inactive and keyboardctl has crashed.

Code: [Select]
Runlevel: default
 dbus                                                                                                                      [  started  ]
 keyboardctl                                                                                                               [  crashed  ]
 gpm                                                                                                                       [  started  ]
 networkmanager                                                                                                            [ inactive  ]
 consolekit                                                                                                                [  started  ]
 dhcpcd                                                                                                                    [  started  ]
 netmount                                                                                                                  [ scheduled ]
 alsasound                                                                                                                 [  started  ]
 ftpd                                                                                                                      [ scheduled ]
 cupsd                                                                                                                     [  started  ]
 acpid                                                                                                                     [  started  ]
 avahi-dnsconfd                                                                                                            [  started  ]
 cronie                                                                                                                    [  started  ]
 nscd                                                                                                                      [  started  ]
 local                                                                                                                     [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 lvmetad                                                                                                                   [  started  ]
 xdm-setup                                                                                                                 [  started  ]
 avahi-daemon                                                                                                              [  started  ]
Dynamic Runlevel: manual

Any suggestions  ???
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 10. October 2014, 12:46:18
Hi neonr4in,

keyboardctl is being shown as crashed as it exits after executing; its startup script has been changed accordingly to fix this issue.
For getting the new version, you could add the repo (https://forum.manjaro.org/index.php?topic=14080.msg157380#msg157380) I mentioned earlier in this thread (page 11), and run:
Code: [Select]
sudo pacman -S openrc-eudev/keyboardctl-openrc
Another alternative is to build a package yourself using artoo's git repo (https://github.com/udeved/pkgbuilds/tree/master/keyboardctl-openrc).
Yet another option is to simply disable keyboardctl if you dont use it ;) (for example, you use standard en-US keyboard layout)

For networkmanager also, you could try adding the repo I mentioned and update it, ie:
Code: [Select]
sudo pacman -S openrc-eudev/networkmanager-openrc
And then restart networkmanager as:
Code: [Select]
sudo rc-service networkmanager restart
If it is still inactive, and if you are on a PC (ie, no wifi), then you could simply disable nm with:
Code: [Select]
sudo rc-service networkmanager stop  # stop nm service
sudo rc-update del networkmanager  # remove nm service from startup

But if you need wifi, then you could try switching to wicd and see if it works for you (this is what I did when networkmanager was not working for me):
Code: [Select]
sudo pacman -S wicd wicd-gtk wicd-openrc  # install wicd
sudo rc-service networkmanager stop  # stop nm service
sudo rc-update del networkmanager  # remove nm service from startup
sudo rc-service wicd start  # start wicd
sudo rc-update add wicd   # add wicd to startup

If you use Xfce, you could go to settings -> session and startup, and enable wicd and disable nm-applet.

After all the steps restart your system to see if it works or not..
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: neonr4in on 10. October 2014, 13:07:26
Hi neonr4in,

Thanks, but I get this warning

Code: [Select]
sudo pacman -S openrc-eudev/networkmanager-openrc
[sudo] password for neonr4in:
warning: networkmanager-openrc-0.9.10.0-2 is up to date -- reinstalling
resolving dependencies...
warning: dependency cycle detected:
warning: networkmanager-openrc will be installed before its networkmanager-openrc dependency
looking for inter-conflicts...

Packages (1): networkmanager-openrc-0.9.10.0-2

Total Installed Size:   13.56 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n]

and
Code: [Select]
sudo rc-service networkmanager restart           
 * rc-service: No such file or directory
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 10. October 2014, 13:19:55
Thanks, but I get this warning

Code: [Select]
sudo pacman -S openrc-eudev/networkmanager-openrc
[sudo] password for neonr4in:
warning: networkmanager-openrc-0.9.10.0-2 is up to date -- reinstalling
resolving dependencies...
warning: dependency cycle detected:
warning: networkmanager-openrc will be installed before its networkmanager-openrc dependency
looking for inter-conflicts...

Packages (1): networkmanager-openrc-0.9.10.0-2

Total Installed Size:   13.56 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n]
I guess that you are upto date then..

You could try the previous suggestion of disabling networkmanager (if you dont use wifi), or replacing networkmanager with wicd..
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 10. October 2014, 13:25:57
I guess that you are upto date then..

You could try the previous suggestion of disabling networkmanager (if you dont use wifi), or replacing networkmanager with wicd..

As long as the computer only has a wired connection, I recommend dhcpcd-openrc, and no NM or wicd.  :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: neonr4in on 10. October 2014, 13:34:37
Thanks aaditya

networkmanager running successfully !

Code: [Select]
rc-status                           
Runlevel: default
 dbus                                                              [  started  ]
 keyboardctl                                                       [  crashed  ]
 syslog-ng                                                         [  stopped  ]
 gpm                                                               [  started  ]
 networkmanager                                                    [  started  ]
 consolekit                                                        [  started  ]
 dhcpcd                                                            [  started  ]
 netmount                                                          [  started  ]
 alsasound                                                         [  started  ]
 ftpd                                                              [  started  ]
 cupsd                                                             [  started  ]
 acpid                                                             [  started  ]
 avahi-dnsconfd                                                    [  started  ]
 cronie                                                            [  started  ]
 nscd                                                              [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 lvmetad                                                           [  started  ]
 xdm-setup                                                         [  started  ]
 avahi-daemon                                                      [  started  ]
Dynamic Runlevel: manual

Now, I'm trying to solve syslog-ng error

But Thank you very much  ;D
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 10. October 2014, 13:38:14
Thanks aaditya

networkmanager running successfully !

Code: [Select]
rc-status                           
Runlevel: default
 dbus                                                              [  started  ]
 keyboardctl                                                       [  crashed  ]
 syslog-ng                                                         [  stopped  ]
 gpm                                                               [  started  ]
 networkmanager                                                    [  started  ]
 consolekit                                                        [  started  ]
 dhcpcd                                                            [  started  ]
 netmount                                                          [  started  ]
 alsasound                                                         [  started  ]
 ftpd                                                              [  started  ]
 cupsd                                                             [  started  ]
 acpid                                                             [  started  ]
 avahi-dnsconfd                                                    [  started  ]
 cronie                                                            [  started  ]
 nscd                                                              [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 lvmetad                                                           [  started  ]
 xdm-setup                                                         [  started  ]
 avahi-daemon                                                      [  started  ]
Dynamic Runlevel: manual

Now, I'm trying to solve syslog-ng error

But Thank you very much  ;D

I am using metalog on artoo's advice and it seems to be working :)
Code: [Select]
$ rc-status
Runlevel: default
 metalog                                                           [  started  ]
 acpid                                                             [  started  ]
 dbus                                                              [  started  ]
 consolekit                                                        [  started  ]
 cronie                                                            [  started  ]
 alsasound                                                         [  started  ]
 wicd                                                              [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                                                         [  started  ]
Dynamic Runlevel: manual
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 10. October 2014, 13:44:24
What is the problem with syslog-ng?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: neonr4in on 10. October 2014, 13:52:14
I am using metalog on artoo's advice and it seems to be working :)

Yep, metalog worked flawlessly  :D
Code: [Select]
[18:50:38] neonr4in:~ $ rc-status                   
Runlevel: default
 dbus                                                              [  started  ]
 keyboardctl                                                       [  crashed  ]
 metalog                                                           [  started  ]
 gpm                                                               [  started  ]
 networkmanager                                                    [  started  ]
 consolekit                                                        [  started  ]
 dhcpcd                                                            [  started  ]
 netmount                                                          [  started  ]
 alsasound                                                         [  started  ]
 ftpd                                                              [  started  ]
 cupsd                                                             [  started  ]
 acpid                                                             [  started  ]
 avahi-dnsconfd                                                    [  started  ]
 cronie                                                            [  started  ]
 nscd                                                              [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
Dynamic Runlevel: manual
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: xyzzy30 on 22. October 2014, 16:17:21
I successfully swapped to OpenRC and Eudev 2, 3 months ago on my Arch. I'm mentioning it here because I got the idea from and followed the instructions in this thread (and the Arch wiki). So I thought I'd thank you all for the vital instructions and add a success to the log :). Networking using dhcpcd-openrc was easy to set up, so far the installation hasn't had any problems with any system upgrades and nothing to complain about at all. I hope this is not considered spam even though it's not 100% Manjaro related :-\.

Installed Eudev and OpenRC packages; rc-status: http://pastebin.com/QZKVgpMi

System is really booting OpenRC:
(http://i.imgur.com/sbWnthps.jpg) (http://i.imgur.com/sbWnthps)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 22. October 2014, 17:07:02
I successfully swapped to OpenRC and Eudev 2, 3 months ago on my Arch. I'm mentioning it here because I got the idea from and followed the instructions in this thread (and the Arch wiki). So I thought I'd thank you all for the vital instructions and add a success to the log :). Networking using dhcpcd-openrc was easy to set up, so far the installation hasn't had any problems with any system upgrades and nothing to complain about at all. I hope this is not considered spam even though it's not 100% Manjaro related :-\.

Installed Eudev and OpenRC packages; rc-status: http://pastebin.com/QZKVgpMi

System is really booting OpenRC:
(http://i.imgur.com/sbWnthps.jpg) (http://i.imgur.com/sbWnthps)
Thanks for the report :)
I also have a similar setup, except for using wicd and not using lvm.

I noticed that you have some older versions of packages, you could add my repo mentioned in this post (https://forum.manjaro.org/index.php?topic=14080.msg157380#msg157380) to keep upto date if you prefer :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: xyzzy30 on 22. October 2014, 22:36:18
Thanks, I'll look into doing that at some point in the near future.

On a side note: I noticed earlier today that power buttons weren't working in the LightDM greeter that I have installed. I hadn't noticed earlier because I usually shutdown manually via the terminal. After some poking around I discovered that I needed to have consolekit-openrc installed. I was unable to install with Yaourt because its dependency, consolekit was failing to install. So I tried to build and install consolekit-openrc without Yaourt, but that failed too. I had a look at the consolekit-openrc build log and it said that -ludev couldn't be found. "pacman -Qs udev" did report libeudev as installed.

After some internet digging I found a forum post that explained to me. For some reason the file /usr/lib/libudev.so didn't exist, but the other eudev lib files did. According to the post it's a terrible, terrible idea to fix it by symlinking the libudev.so, so I did it anyway :D. Consolekit and consolekit-openrc are now installed and power buttons in the greeter work. Perhaps until the next time I update..

Anyway, the point is: I don't know whether this eudev issue is specific to Arch, or whether Manjaro is affected by it as well, or whether I messed something up when I installed eudev in the first place.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: jonathon on 23. October 2014, 15:10:31
Came back to OpenRC after a while. Still sticking on ZFS. I created an /etc/init.d/zfs based on this one for Gentoo: https://raw.githubusercontent.com/zfsonlinux/zfs/master/etc/init.d/zfs.gentoo.in (just changing @sbindir@ to /usr/bin). I added it with 'rc-update add zfs default' but it doesn't show in rc-status and doesn't start on boot (and so ZFS pools don't mount); running it manually with 'rc-service zfs start' gets it working though... :S
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 23. October 2014, 15:30:42
Came back to OpenRC after a while. Still sticking on ZFS. I created an /etc/init.d/zfs based on this one for Gentoo: https://raw.githubusercontent.com/zfsonlinux/zfs/master/etc/init.d/zfs.gentoo.in (just changing @sbindir@ to /usr/bin). I added it with 'rc-update add zfs default' but it doesn't show in rc-status and doesn't start on boot (and so ZFS pools don't mount); running it manually with 'rc-service zfs start' gets it working though... :S

Make sure the shebang reads for openrc-0.13.1

Code: [Select]
#!/usr/bin/openrc-run
for 0.12.4, you need

Code: [Select]
#!/usr/bin/runscript
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 24. October 2014, 20:36:27
Thanks, I'll look into doing that at some point in the near future.

On a side note: I noticed earlier today that power buttons weren't working in the LightDM greeter that I have installed. I hadn't noticed earlier because I usually shutdown manually via the terminal. After some poking around I discovered that I needed to have consolekit-openrc installed. I was unable to install with Yaourt because its dependency, consolekit was failing to install. So I tried to build and install consolekit-openrc without Yaourt, but that failed too. I had a look at the consolekit-openrc build log and it said that -ludev couldn't be found. "pacman -Qs udev" did report libeudev as installed.

After some internet digging I found a forum post that explained to me. For some reason the file /usr/lib/libudev.so didn't exist, but the other eudev lib files did. According to the post it's a terrible, terrible idea to fix it by symlinking the libudev.so, so I did it anyway :D. Consolekit and consolekit-openrc are now installed and power buttons in the greeter work. Perhaps until the next time I update..

Anyway, the point is: I don't know whether this eudev issue is specific to Arch, or whether Manjaro is affected by it as well, or whether I messed something up when I installed eudev in the first place.
Yeah, I think maybe it got messed up somewhere, as there were probably many changes to packages since when they were conceived. I would suggest updating to the pacman repo linked earlier :)
Title: Re: Booting with OpenRC: An alternative to systemd [Development Talk]
Post by: Reboant on 28. October 2014, 17:38:53
Hey guys
 Following the tutorial on the wiki I installed openrc a few days ago but seem to be having a couple of problems.

First, module autoloading doesn't seem to be working.

My /etc/conf.d/modules consists of the following:
Code: [Select]
modules="vboxdrv"
modules="vboxnetadp"
modules="vboxnetflt"
modules="vboxpci"
modules="snd-pcm-oss"
modules="snd-mixer-oss"
modules="fuse"

The only one that loads is "fuse". I can load the others manually without a hitch.


Second, still getting the following errors at boot even though they are commented out:
Code: [Select]
* setting up tmpfiles.d entries ...
tmpfiles: ignoring invalid entry on line 12 of `/usr/lib/tmpfiles.d//etc.conf'
tmpfiles: ignoring invalid entry on line 14 of `/usr/lib/tmpfiles.d//etc.conf'
tmpfiles: ignoring invalid entry on line 15 of `/usr/lib/tmpfiles.d//etc.conf'
tmpfiles: ignoring invalid entry on line 33 of `/usr/lib/tmpfiles.d//legacy.conf'
tmpfiles: ignoring invalid entry on line 34 of `/usr/lib/tmpfiles.d//legacy.conf'
tmpfiles: ignoring invalid entry on line 35 of `/usr/lib/tmpfiles.d//legacy.conf'
tmpfiles: ignoring invalid entry on line 11 of `/usr/lib/tmpfiles.d//systemd-nologin.conf'
tmpfiles: ignoring invalid entry on line 18 of `/usr/lib/tmpfiles.d//x11.conf'
 [ !! ]

Isn't really a big deal. More of an anoyance than anything else. Would prefer not to have them listed at boot time or in the logs.


Not sure where to go from here considering I am very new to Openrc.

Other than these 2 issues everything seems to be running just fine.

Also, right now systemd is still installed but was thinking about going with eudev. Using Xfce and will not touch Gnome or Kde. Could someone be kind enough to tell me what drawbacks I might have to face?

Thanks for all the work you guys put into this. Just can't stand the logic behind systemd.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 28. October 2014, 17:57:46
Hey guys
 Following the tutorial on the wiki I installed openrc a few days ago but seem to be having a couple of problems.

First, module autoloading doesn't seem to be working.

My /etc/conf.d/modules consists of the following:
Code: [Select]
modules="vboxdrv"
modules="vboxnetadp"
modules="vboxnetflt"
modules="vboxpci"
modules="snd-pcm-oss"
modules="snd-mixer-oss"
modules="fuse"

The only one that loads is "fuse". I can load the others manually without a hitch.


Second, still getting the following errors at boot even though they are commented out:
Code: [Select]
* setting up tmpfiles.d entries ...
tmpfiles: ignoring invalid entry on line 12 of `/usr/lib/tmpfiles.d//etc.conf'
tmpfiles: ignoring invalid entry on line 14 of `/usr/lib/tmpfiles.d//etc.conf'
tmpfiles: ignoring invalid entry on line 15 of `/usr/lib/tmpfiles.d//etc.conf'
tmpfiles: ignoring invalid entry on line 33 of `/usr/lib/tmpfiles.d//legacy.conf'
tmpfiles: ignoring invalid entry on line 34 of `/usr/lib/tmpfiles.d//legacy.conf'
tmpfiles: ignoring invalid entry on line 35 of `/usr/lib/tmpfiles.d//legacy.conf'
tmpfiles: ignoring invalid entry on line 11 of `/usr/lib/tmpfiles.d//systemd-nologin.conf'
tmpfiles: ignoring invalid entry on line 18 of `/usr/lib/tmpfiles.d//x11.conf'
 [ !! ]

Isn't really a big deal. More of an anoyance than anything else. Would prefer not to have them listed at boot time or in the logs.


Not sure where to go from here considering I am very new to Openrc.

Other than these 2 issues everything seems to be running just fine.

Also, right now systemd is still installed but was thinking about going with eudev. Using Xfce and will not touch Gnome or Kde. Could someone be kind enough to tell me what drawbacks I might have to face?

Thanks for all the work you guys put into this. Just can't stand the logic behind systemd.
Hello,

For modules, all should be in a single line. For example,

Code: [Select]
modules="vboxdrv vboxnetadp vboxnetflt vboxpci snd-pcm-oss snd-mixer-oss fuse"
It was loading only fuse because the last defined value of variable modules was fuse.

If you update to OpenRC-0.13.1 (I think it has reached stable (https://forum.manjaro.org/index.php?topic=17461.0)), then those errors will probably disappear.

Btw I moved your topic to the proper sub-section.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 28. October 2014, 18:00:10

If you update to OpenRC-0.13.1 (I think it has reached stable (https://forum.manjaro.org/index.php?topic=17461.0)), then those errors will probably disappear.



I think the tmpfiles issue is completely fixed with openrc-0.13.2, currently only in unstable afaik.
It only affects users who leave systemd as udev provider.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Reboant on 28. October 2014, 18:52:57
Quote
For modules, all should be in a single line. For example,

DUH.
Thought it was something simple.  :P

Quote
If you update to OpenRC-0.13.1 (I think it has reached stable), then those errors will probably disappear.

Yep just updated the system.

Thanks guys. Gonna reboot and see how things go.

Ah yeah! Thanks for moving the post.
Title: Re: Booting with OpenRC: An alternative to systemd [Development Talk]
Post by: artoo on 28. October 2014, 19:35:03

Also, right now systemd is still installed but was thinking about going with eudev. Using Xfce and will not touch Gnome or Kde. Could someone be kind enough to tell me what drawbacks I might have to face?


None, and it will probably stay this way once a standalone logind project takes shape.
Only gnome will not be usable currently, since gnome hard depends on systemd's logind.
Its impossible to extarct logind from systemd source and make it run without systemd, so we temporarily go with old consolekit, the precursor of logind.

Edit: you also can't use gnome with openrc & systemd, gnome requires a running systemd.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Reboant on 28. October 2014, 20:50:10
Awsome!!!
After the update everything is running smooth as silk. Installed eudev and rebooted without a problem.

Thanks again guys.
Group hug!!  :)  LOL
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: viking60 on 29. October 2014, 00:23:57
This thing has been so stable and fast that I got bored.
I left systemd but tried to break it with installing eudev. Replaced systemd and rebooted. And...everything works!

I run Openbox and Pekwm on it.

The first boot after removing systemd was very slow though. On the second boot it was fast again (but I could not notice any boot speed improvement in comparison to systemd - it seemed just as blistering fast).

The one thing that does not work is logout in Oblogout - restart and shutdown works fine.
So I thought I should install upower-pm-utils to get the hibernating etc going.
And got an internal conflict with upower (and would I like to remove it).  I thought upower-pm-utils was an alternative dependency of upower?

Edit:
I replaced upower and did not notice much difference so I installed upower again and removed the pm-utils.
Everything works just fine except the logout in Oblogout....
And that is not surprising since /etc/oblogout.conf has
Code: [Select]
logout = openbox --exit which does not work all that well in Pekwm  ^-^ Works well in Openbox though :)

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 29. October 2014, 01:20:23

I replaced upower and did not notice much difference so I installed upower again and removed the pm-utils.
Everything works just fine except the logout in Oblogout....
And that is not surprising since /etc/oblogout.conf has
Code: [Select]
openbox --exit which does not work all that well in Pekwm  ^-^ Works well in Openbox though :)

A quick explanation for upower-pm-utils.

upower had upstream pm-utils support removed with 0.99, and it relies on systemd to suspend and hibernate afaik.
You should check this, you may encounter problems with upower and eudev and not properly working power-management.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: viking60 on 29. October 2014, 12:22:12
Thanks !
I take it that those problems will not occur in upower-pm-utils then?
As I said; I did not notice much difference so it is just a question of which one to choose.
(upower-pm-utils if I understand you correctly - since systemd is gone).

Installing upower-pm-utils....

And thanks for all your great work. 
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 29. October 2014, 19:38:25
Hi guys,

A manjaro-openrc user, by the name of coagen, helped me to setup the #manjaro-openrc IRC channel, on the freenode network :)

So for support on IRC, you could join the channel. Coagen or I will try to be around for your queries.

Here's some basic help about IRC if you need it (I did ;))
http://www.irchelp.org/irchelp/irctutorial.html

Summary:
Code: [Select]
Network: freenode
Channel name: #manjaro-openrc
Command to join: /join #manjaro-openrc
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 30. October 2014, 23:33:35
Strange issue which hangs on boot for about 3 mins.

OpenRC 0.13.2

udev  |* waiting for uevents to be processed ...




edit: typo
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 31. October 2014, 04:05:09
Old Kernel: 3.12-30-1
linux312
linux312-catalyst
linux312-headers

Resolved issue after installing Kernel: 3.14.22-1
linux314
linux314-catalyst
linux314-headers
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 31. October 2014, 16:47:35
Old Kernel: 3.12-30-1
linux312
linux312-catalyst
linux312-headers

Resolved issue after installing Kernel: 3.14.22-1
linux314
linux314-catalyst
linux314-headers
Thx for the bug report.
I am not able to replicate this issue, so maybe it is a combination of kernel + hardware.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 31. October 2014, 16:52:50
Comparing  Kernel 3.12 with 3.14 here are the extra modules to be found for 3.14:

atkbd
crc_t10dif
crct10dif_common
hwmon
i8042
libps2
mac_hid
mousedev
serio
snd_hda_codec_generic
tpm
tpm_infineon
tpm_tis
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 01. November 2014, 19:10:11
Strange issue which hangs on boot for about 3 mins.

OpenRC 0.13.2

udev  |* waiting for uevents to be processed ...



Which eudev version do you use?
Its no openrc issue, but eudev eventually.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 01. November 2014, 19:23:07
eudev
The userspace dev tools (udev) forked by Gentoo
Version:  2.1.1-1

eudev-openrc
OpenRC eudev postmount script
Version:  20141014-1

eudev-systemdcompat
systemd client libraries without udev; systemd compatibility package
Version:  216-2



Title: Re: Booting with OpenRC: An alternative to systemd
Post by: GypsyWolve on 03. November 2014, 04:25:06
Same issue here (after update)

downgrade eudev solved it for the moment


GW
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 03. November 2014, 11:41:09
Can those with eudev problems please upgrade, and run immediately in terminal/konsole

Code: [Select]
/etc/init.d/udev --nodeps restart

before reboot?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: GypsyWolve on 03. November 2014, 11:55:57
I did it

result: the same, but boot with a different kernel (3.17/3.10) start was normal.

Problems only with my 3.4.104

strange


GW
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 03. November 2014, 12:46:14
Problems only with my 3.4.104


Aha, that was the next question I was gonna ask, which kernel.
I can't reproduce it with kernel >3.10

Do you use any special device connected which needs firmware?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: GypsyWolve on 03. November 2014, 13:01:56
No, no Wlan, no BT, video free, nothing special

Strange is also, with the 3.2.x kernel, booting like a charm

With the older eudev its running well. The trouble came with the update today. No trouble after the waiting the boot looks normal..................log in all no problems

Thge irritation for me, it seems the boot take a rest maybe waiting for something looks like the boot died.


GW
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 03. November 2014, 16:20:17
No, no Wlan, no BT, video free, nothing special

Strange is also, with the 3.2.x kernel, booting like a charm

With the older eudev its running well. The trouble came with the update today. No trouble after the waiting the boot looks normal..................log in all no problems

Thge irritation for me, it seems the boot take a rest maybe waiting for something looks like the boot died.


GW

you could try to remove the hwdb in /etc/udev/hwdb.d and reinstall 2.1.1 and see if that helps.
There were some changes to firmware loading afaik, and my guess is, that your system still uses old hwdb.

Code: [Select]
rm -f /etc/udev/hwdb.d/*.hwdb
You could also try

Code: [Select]
udevadm hwdb --update --root="${ROOT%/}"
I think the problem will disappear once you got the updated hwdb.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: GypsyWolve on 04. November 2014, 12:12:15
Sorry for the late reply

thx for ur answer

I did it, no success

In the meantime I compiled the kernel again (with some changing in the config), no success

Now it looks
- waiting for the next update
- downgrade
- or using the eudev repo



GW
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 04. November 2014, 16:01:35
Sorry for the late reply

thx for ur answer

I did it, no success

In the meantime I compiled the kernel again (with some changing in the config), no success

Now it looks
- waiting for the next update
- downgrade
- or using the eudev repo



GW

Let's summarize, you only have this problem with kernel 3.4, but not with kernel 3.10+ ?
3.4 is not in unstable repo any longer.

The minimum kernel version is supposed to be 2.6.39
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: GypsyWolve on 05. November 2014, 01:20:36
Only 3.4 after upgrade eudev

Quote
3.4 is not in unstable repo any longer.
I know that, 3.4 became LTS until 2016
Under systemd 3.4 wasn't running, that was one of my reason to try OpenRC and its running like expected.

Quote
The minimum kernel version is supposed to be 2.6.39

What I mentioned above: strange is that the older 3.2 running the 3.4 need during boot a ~3min rest ;D

>=3.10 no problems

Call it traditional I used 3.4 since I used Manjaro (~2yrs) my machine is an old one and with 3.4 its running more as well; on my laptop I used on batt only >3.10


Have a nice day


GW
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 06. November 2014, 08:21:56
Let me add in my 2c.

Upgraded eudev 2.1.1 works for me on kernels 3.10 and 3.14, ie, does not hang on the "waiting for uevents" line (only pauses there for a couple of seconds or so).
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: xyzzy30 on 06. November 2014, 16:14:38
I have now installed OpenRC and eudev on real hardware rather than in a virtual machine, and predictably ran into a small problem. I have an Optimus (Intel+Nvidia) laptop which is hardwired to go through the Intel HD4k. Bumblebee worked fine under systemd as expected, but I was unable to find a version of it that would work with OpenRC, apart from one mention of bumblebee-openrc on Google where the link 404'd. Any ideas?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 06. November 2014, 18:11:43
I have now installed OpenRC and eudev on real hardware rather than in a virtual machine, and predictably ran into a small problem. I have an Optimus (Intel+Nvidia) laptop which is hardwired to go through the Intel HD4k. Bumblebee worked fine under systemd as expected, but I was unable to find a version of it that would work with OpenRC, apart from one mention of bumblebee-openrc on Google where the link 404'd. Any ideas?

I can provide bumblebee script, its just nobody has asked for it yet. :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: xyzzy30 on 06. November 2014, 18:31:16
If there's just me looking for it, I'd say don't use your time for it :P. This is nothing more than an off-the-cuff experiment for me, and I'd hate to use up someone's time when they could be concentrating on more important things.. :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 06. November 2014, 19:19:24
If there's just me looking for it, I'd say don't use your time for it :P. This is nothing more than an off-the-cuff experiment for me, and I'd hate to use up someone's time when they could be concentrating on more important things.. :)

Oh, no problem, the builds already exist, I just haven't put them in repo.

PS: hardware support is important. :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 06. November 2014, 22:43:52
Oh, no problem, the builds already exist, I just haven't put them in repo.

PS: hardware support is important. :)

I currently have no means to test bumblebee.

You can
Code: [Select]
$ git clone https://github.com/udeved/pkgbuilds.git

$ cd openrc-video
$ makepkg -d

Do you have bublebee running on systemd?
If yes, does it produce a pid file in /run or /run/bumblebee?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: xyzzy30 on 07. November 2014, 00:14:23
Currently I don't have systemd installed at all, both the vm and hardware are on OpenRC+eudev. I did check that 'optirun glxgears' did work on the hardware one before replacing systemd, that should be proof enough that Bumblebee really was working. I suppose I could reinstall systemd to find check for the pid file :-\
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: xyzzy30 on 07. November 2014, 15:11:31
Quote
You can
Code: [Select]
$ git clone https://github.com/udeved/pkgbuilds.git

$ cd openrc-video
$ makepkg -d

- Clone was successful.
- Makepkg -d was successful.

- Install was successful with:
Code: [Select]
[hak@localhost openrc-video]$ sudo pacman -U bum*.xz
- Could not add service:
Code: [Select]
==> run 'rc-update add bumblebeed default'
Code: [Select]
[hak@localhost openrc-video]$ sudo rc-update add bumblebeed default
 * rc-update: service `bumblebeed' does not exist
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 07. November 2014, 15:35:31
- Clone was successful.
- Makepkg -d was successful.

- Install was successful with:
Code: [Select]
[hak@localhost openrc-video]$ sudo pacman -U bum*.xz
- Could not add service:
Code: [Select]
==> run 'rc-update add bumblebeed default'
Code: [Select]
[hak@localhost openrc-video]$ sudo rc-update add bumblebeed default
 * rc-update: service `bumblebeed' does not exist


Code: [Select]
rc-update add bumblebee default
Code: [Select]
rc-service bumblebee start
bumblebee not bublebeed, reminds me to fix this.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: xyzzy30 on 07. November 2014, 18:08:03
Do you have bublebee running on systemd?
If yes, does it produce a pid file in /run or /run/bumblebee?
I re-installed  from scratch to get a clean systemd system. 'optirun glxgears -info' showed that the GL_RENDERER was Nvidia. There was no /run/bumblebee, no pid file in /run. The only bumblebee related thing in /run was bumblebee.socket.

Quote
bumblebee not bublebeed, reminds me to fix this.
Services added successfully. nvidia-smi is still descibed as nvidia-smid in the 'run =>' install output.
Code: [Select]
rc-update add vgl default
rc-update add nvidia-smi default
rc-update add bumblebee default

Reboot. Seems that VirtualGL is stuck.

rc-status
Code: [Select]
Runlevel: default
 dbus                                                              [  started  ]
 dhcpcd                                                            [  started  ]
 netmount                                                          [  started  ]
 xdm                                                               [  started  ]
 vgl                                                               [ starting  ]
 bumblebee                                                         [  stopped  ]
 ftpd                                                              [  stopped  ]
 nscd                                                              [  stopped  ]
 nvidia-smi                                                        [  stopped  ]
 cronie                                                            [  stopped  ]
 local                                                             [  stopped  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                                                         [  started  ]
Dynamic Runlevel: manual

'lspci | grep VGA' detects both video cards
Code: [Select]
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 630M] (rev a1)

'pacman -Qs libgl', using mesa-libgl (should I try nvidia-libgl?)
Code: [Select]
local/bumblebee 3.2.1-6
    NVIDIA Optimus support for Linux through VirtualGL
local/mesa 10.3.2-1
    an open-source implementation of the OpenGL specification
local/mesa-libgl 10.3.2-1
    Mesa 3-D graphics library

'pacman -Qs nvidia', installed packages
Code: [Select]
local/bumblebee 3.2.1-6
    NVIDIA Optimus support for Linux through VirtualGL
local/nvidia 343.22-4
    NVIDIA drivers for linux
local/nvidia-utils 343.22-1
    NVIDIA drivers utilities
local/nvidia-utils-openrc 20141107-1
    OpenRC nvidia-smi init script

'pacman -Qs openrc', installed packages
Code: [Select]
local/bumblebee-openrc 20141107-1
    OpenRC bumblebee init script
local/cronie-openrc 20141002-1 (openrc openrc-base openrc-desktop)
    OpenRC cronie init script
local/dbus-openrc 20141002-1 (openrc openrc-base openrc-desktop)
    OpenRC dbus init script
local/device-mapper-openrc 20141002-1 (openrc openrc-base)
    OpenRC device-mapper init script
local/dhcpcd-openrc 20141002-1 (openrc openrc-base openrc-desktop)
    OpenRC dhcpcd init script
local/displaymanager-openrc 20141002-1 (openrc openrc-desktop)
    OpenRC dm init script
local/glibc-openrc 20141002-1 (openrc openrc-base)
    OpenRC nscd init script
local/inetutils-openrc 20141002-1 (openrc openrc-base)
    OpenRC ftpd init script
local/mdadm-openrc 20141002-1 (openrc openrc-base)
    OpenRC mdadm init script
local/nvidia-utils-openrc 20141107-1
    OpenRC nvidia-smi init script
local/openrc-core 0.13.1-3 (openrc openrc-base)
    Gentoo's universal init system, udev enabled.
local/virtualgl-openrc 20141107-1
    OpenRC virtualgl init script

Xorg.0.log
http://pastebin.com/ns0nf3kS

Couple of boots from rc.log
http://pastebin.com/HDmrkCrJ
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 07. November 2014, 18:25:46
I re-installed  from scratch to get a clean systemd system. 'optirun glxgears -info' showed that the GL_RENDERER was Nvidia. There was no /run/bumblebee, no pid file in /run. The only bumblebee related thing in /run was bumblebee.socket.
Services added successfully. nvidia-smi is still descibed as nvidia-smid in the 'run =>' install output.
Code: [Select]
rc-update add vgl default
rc-update add nvidia-smi default
rc-update add bumblebee default

Reboot. Seems that VirtualGL is stuck.

rc-status
Code: [Select]
Runlevel: default
 dbus                                                              [  started  ]
 dhcpcd                                                            [  started  ]
 netmount                                                          [  started  ]
 xdm                                                               [  started  ]
 vgl                                                               [ starting  ]
 bumblebee                                                         [  stopped  ]
 ftpd                                                              [  stopped  ]
 nscd                                                              [  stopped  ]
 nvidia-smi                                                        [  stopped  ]
 cronie                                                            [  stopped  ]
 local                                                             [  stopped  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                                                         [  started  ]
Dynamic Runlevel: manual

'lspci | grep VGA' detects both video cards
Code: [Select]
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 630M] (rev a1)

'pacman -Qs libgl', using mesa-libgl (should I try nvidia-libgl?)
Code: [Select]
local/bumblebee 3.2.1-6
    NVIDIA Optimus support for Linux through VirtualGL
local/mesa 10.3.2-1
    an open-source implementation of the OpenGL specification
local/mesa-libgl 10.3.2-1
    Mesa 3-D graphics library

'pacman -Qs nvidia', installed packages
Code: [Select]
local/bumblebee 3.2.1-6
    NVIDIA Optimus support for Linux through VirtualGL
local/nvidia 343.22-4
    NVIDIA drivers for linux
local/nvidia-utils 343.22-1
    NVIDIA drivers utilities
local/nvidia-utils-openrc 20141107-1
    OpenRC nvidia-smi init script

'pacman -Qs openrc', installed packages
Code: [Select]
local/bumblebee-openrc 20141107-1
    OpenRC bumblebee init script
local/cronie-openrc 20141002-1 (openrc openrc-base openrc-desktop)
    OpenRC cronie init script
local/dbus-openrc 20141002-1 (openrc openrc-base openrc-desktop)
    OpenRC dbus init script
local/device-mapper-openrc 20141002-1 (openrc openrc-base)
    OpenRC device-mapper init script
local/dhcpcd-openrc 20141002-1 (openrc openrc-base openrc-desktop)
    OpenRC dhcpcd init script
local/displaymanager-openrc 20141002-1 (openrc openrc-desktop)
    OpenRC dm init script
local/glibc-openrc 20141002-1 (openrc openrc-base)
    OpenRC nscd init script
local/inetutils-openrc 20141002-1 (openrc openrc-base)
    OpenRC ftpd init script
local/mdadm-openrc 20141002-1 (openrc openrc-base)
    OpenRC mdadm init script
local/nvidia-utils-openrc 20141107-1
    OpenRC nvidia-smi init script
local/openrc-core 0.13.1-3 (openrc openrc-base)
    Gentoo's universal init system, udev enabled.
local/virtualgl-openrc 20141107-1
    OpenRC virtualgl init script

Xorg.0.log
http://pastebin.com/ns0nf3kS

Couple of boots from rc.log
http://pastebin.com/HDmrkCrJ

I was afraid of looking at bumblebee pkgbuild from arch upstream, and it shows  why...


Code: [Select]
--without-pidfile
This means likely, you will have to recompile bumblebee replacing above option in configure with

Code: [Select]
--with-pidfile=/run/bumblebee.pid
https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/bumblebee
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: xyzzy30 on 07. November 2014, 19:47:29
I must confess I'm confused. VirtualGL getting stuck prevents all services after it from being started at all, even ftpd which has nothing to do with graphics. It would make sense to me that no changes to the way bumblebee is compiled can fix it since bumblebee is never reached in the first place.

Anyway. I downloaded the files from https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/bumblebee, installed the necessary dependencies, edited the PKGBUILD to use the pid. Compiled, reinstalled bumblebee without first removing it and then rebooted. No change, no services after and including VirtualGL are started.

Then I tried to launch bumblebeed manually. It works:
Code: [Select]
[root@localhost hak]/usr/bin/bumblebeed &
Code: [Select]
[hak@localhost ~]$ optirun glxgears -info
GL_RENDERER   = GeForce GT 630M/PCIe/SSE2
GL_VERSION    = 4.4.0 NVIDIA 343.22
GL_VENDOR     = NVIDIA Corporation

One thing I noticed is that while starting bumblebeed from a root account works, using sudo from a non-root account does not. The process launches, but I don't have the privileges to use it. The non-root account is in the bumblebee group.

Since bumblebee appears to work when not launched during init, it makes me feel as if the problem is VirtualGL, not bumblebee.

Edit: However, then I thought to myself: if bumblebee requires VirtualGL, how can it work if VGL never started? The answer is that it did start, but never "returned" to resume the rest of the init process.
Code: [Select]
[hak@localhost ~]$ ps aux | grep vgl
root      1257  0.0  0.0  17156  2060 ?        S    20:48   0:00 /usr/bin/openrc-run /etc/init.d/vgl --lockfd 12 start
root      1258  0.0  0.0  12120  2820 ?        S    20:48   0:00 /bin/sh /usr/lib/rc/sh/runscript.sh /etc/init.d/vgl start
root      1303  0.0  0.0  12120  1744 ?        S    20:48   0:00 /bin/sh /usr/lib/rc/sh/runscript.sh /etc/init.d/vgl start

Maybe there is a problem with VGL's initscript, or something?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 07. November 2014, 20:03:55
Actually, I tested vgl script, and it does start on non hybrid nvidia.

Can you please try to create a group bumblebee and add your user to group and try again?
Overlooked that.

No idea currently, I probably get my hand on optimus laptop the weekend.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: urbanomad64 on 07. November 2014, 20:50:10
I have been able to get openrc with uedev installed and running on my system but have one problem now. Solaar 0.9.2 has a Permissions error

Code: [Select]
Found a Logitech Receiver (/dev/hidraw0), but did not have permission to open it.

If you've just installed Solaar, try removing the receiver and plugging it back in.

Which I did do and got the same message again. Any thoughts? My keyboard and mouse are working, it's just that Solaar cannot manage the Unifying Receiver now.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: xyzzy30 on 07. November 2014, 20:58:21
Overlooked that.
:)

Initially:
Code: [Select]
cat /etc/group | grep bumble
bumblebee:x:618:hak

Code: [Select]
groupdel bumblebee
After del:
Code: [Select]
cat /etc/group | grep bumble
[blank]

Reboot.

Code: [Select]
groupadd bumblebee
gpasswd -a hak bumblebee

After re-adding:
Code: [Select]
cat /etc/group | grep bumble
bumblebee:x:1001:hak

Reboot.

cat /etc/passwd
Code: [Select]
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/usr/bin/nologin
daemon:x:2:2:daemon:/:/usr/bin/nologin
mail:x:8:12:mail:/var/spool/mail:/usr/bin/nologin
ftp:x:14:11:ftp:/srv/ftp:/usr/bin/nologin
http:x:33:33:http:/srv/http:/usr/bin/nologin
uuidd:x:68:68:uuidd:/:/usr/bin/nologin
dbus:x:81:81:dbus:/:/usr/bin/nologin
nobody:x:99:99:nobody:/:/usr/bin/nologin
systemd-journal-gateway:x:191:191:systemd-journal-gateway:/:/usr/bin/nologin
systemd-timesync:x:192:192:systemd-timesync:/:/usr/bin/nologin
systemd-network:x:193:193:systemd-network:/:/usr/bin/nologin
systemd-bus-proxy:x:194:194:systemd-bus-proxy:/:/usr/bin/nologin
systemd-resolve:x:195:195:systemd-resolve:/:/usr/bin/nologin
systemd-journal-remote:x:999:999:systemd Journal Remote:/:/sbin/nologin
systemd-journal-upload:x:998:998:systemd Journal Upload:/:/sbin/nologin
hak:x:1000:1000::/home/hak:/bin/bash
polkitd:x:102:102:Policy Kit Daemon:/:/bin/false
lightdm:x:620:620:Light Display Manager:/var/lib/lightdm:/usr/bin/nologin
git:x:619:619:git daemon user:/:/bin/bash
avahi:x:84:84:avahi:/:/bin/false
nvidia-persistenced:x:143:143:NVIDIA Persistence Daemon:/:/sbin/nologin

rc-status is still the same
Code: [Select]
Runlevel: default
 dbus                                                              [  started  ]
 dhcpcd                                                            [  started  ]
 netmount                                                          [  started  ]
 xdm                                                               [  started  ]
 sshd                                                              [  started  ]
 vgl                                                               [ starting  ]
 bumblebee                                                         [  stopped  ]
 ftpd                                                              [  stopped  ]
 nscd                                                              [  stopped  ]
 nvidia-smi                                                        [  stopped  ]
 cronie                                                            [  stopped  ]
 local                                                             [  stopped  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                                                         [  started  ]
Dynamic Runlevel: manual

Now 'sudo /usr/bin/bumblebeed &' works with a non-root account, once. After that it starts but ends immediately. Without sudo, starts but no privileges to use.

I noticed that the Intel HD4000 doesn't use an Intel driver anymore, but I guess this is intended.
Code: [Select]
glxgears -info
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: i965
GL_RENDERER   = Gallium 0.4 on llvmpipe (LLVM 3.5, 256 bits)
GL_VERSION    = 3.0 Mesa 10.3.2
GL_VENDOR     = VMware, Inc.

The last thing I see on the init screen during boot is 'starting VirtualGL', and then the GUI loads. The init screen that is displayed when the system is shutting down shows 'starting VirtualGL [ok]'.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 07. November 2014, 21:11:59
I have been able to get openrc with uedev installed and running on my system but have one problem now. Solaar 0.9.2 has a Permissions error

Code: [Select]
Found a Logitech Receiver (/dev/hidraw0), but did not have permission to open it.

If you've just installed Solaar, try removing the receiver and plugging it back in.

Which I did do and got the same message again. Any thoughts? My keyboard and mouse are working, it's just that Solaar cannot manage the Unifying Receiver now.

The aur build wants user in uaccess group.
If that not works, you can also try to cretae a plugdev group.
This is just from looking at source of solaar.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: xyzzy30 on 07. November 2014, 21:47:56
I was looking at some logs.

Code: [Select]
cat /var/log/rc.log | grep xauth
xauth:  file list does not exist

Then I looked into /etc/conf.d/vgl and found
Code: [Select]
# /etc/conf.d/vgl

DISPLAY="${DISPLAY:-:0}"

# Make it a function in case we have to repeat it in init script later
set_xauth() {

# common case (works in almost all tested environments (except of lightdm)):
XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var\S*auth\S*' | cut -d ' ' -f 2)"
I happen to be using LightDM. Could this be an xauth related issue? /var/*auth*, /run/*auth*, /home/*auth* do not exist. 'xauth -f list' is running in processes.

Also '/var/lib/VirtualGL/vgl_xauth_key' is blank, but I suppose it should be since it's truncated to be so in the initscript.



EDIT: Progress, '/etc/conf.d/vgl' was the fix.
I commented  the common case line
Code: [Select]
# common case (works in almost all tested environments (except of lightdm)):
# XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var\S*auth\S*' | cut -d ' ' -f 2)"
Uncommented the LightDM line
Code: [Select]
# lightdm:
XAUTHORITY="/var/run/lightdm/root/${DISPLAY}"
Now all services start and run normally.

Except for bumblebee which remains stopped :D
Code: [Select]
cat /var/log/rc.log | grep bumble
/usr/bin/bumblebeed: unrecognized option '--pidfile'
Try `/usr/bin/bumblebeed --help' for more information.
 * start-stop-daemon: failed to start `/usr/bin/bumblebeed'
 * ERROR: bumblebee failed to start
/usr/bin/bumblebeed: unrecognized option '--pidfile'

Maybe I didn't compile bumblebee right after all, dunno.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: urbanomad64 on 07. November 2014, 21:54:24
The aur build wants user in uaccess group.
If that not works, you can also try to cretae a plugdev group.
This is just from looking at source of solaar.

Thanks for your response!!! I had to add the uaccess group and plugdev group was already created. I added myself to both groups but that didn't help. I still get the error on boot up.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: xyzzy30 on 07. November 2014, 22:27:49
Finally it is all working.

rc-status
Code: [Select]
Runlevel: default
 dbus                                                              [  started  ]
 dhcpcd                                                            [  started  ]
 netmount                                                          [  started  ]
 xdm                                                               [  started  ]
 vgl                                                               [  started  ]
 bumblebee                                                         [  started  ]
 ftpd                                                              [  started  ]
 sshd                                                              [  started  ]
 nscd                                                              [  started  ]
 nvidia-smi                                                        [  started  ]
 cronie                                                            [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                                                         [  started  ]
Dynamic Runlevel: manual

'optirun glxgears -info' reports Nvidia driver.

I modified '/etc/init.d/bumblebee' to not use a pid at all
Code: [Select]
#!/usr/bin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/bumblebee/files/bumblebee.initd,v 1.2 2012/06/04 19:46:24 pacho Exp $

depend() {
        need xdm vgl
}

# PIDFILE="${PIDFILE:-/run/bumblebee.pid}"

start() {
        ebegin "Starting BumbleBee Daemon"
                # start-stop-daemon -S -p "${PIDFILE}" -x /usr/bin/bumblebeed -- -D ${BUMBLEBEE_EXTRA_OPTS} --pidfile "${PIDFILE}"
                start-stop-daemon -S -x /usr/bin/bumblebeed -- -D ${BUMBLEBEE_EXTRA_OPTS}
        eend $?
}

stop() {

        ebegin "Stopping BumbleBee Daemon"
                # start-stop-daemon -K -p "${PIDFILE}" -R SIGTERM/10
                start-stop-daemon -K -R SIGTERM/10
        eend $?
}

I don't know enough about Linux to know whether running it without a pid is an acceptable or a terrible solution. Suits me until I figure out how to get the pid to work.

EDIT: It turns out that this method works on reboots, but not from a cold boot. I changed to using exec, and that seems to fix that. Didn't have time to check if the process is killed gracefully.

Code: [Select]
# start-stop-daemon -S -p "${PIDFILE}" -x /usr/bin/bumblebeed -- -D ${BUMBLEBEE_EXTRA_OPTS} --pidfile "${PIDFILE}"
# start-stop-daemon -S -x /usr/bin/bumblebeed -- -D ${BUMBLEBEE_EXTRA_OPTS}
exec /usr/bin/bumblebeed -- -D ${BUMBLEBEE_EXTRA_OPTS} &

...

# start-stop-daemon -K -p "${PIDFILE}" -R SIGTERM/10
# start-stop-daemon -K -R SIGTERM/10
killall bumblebee
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 08. November 2014, 15:06:41
I have been able to get openrc with uedev installed and running on my system but have one problem now. Solaar 0.9.2 has a Permissions error

Code: [Select]
Found a Logitech Receiver (/dev/hidraw0), but did not have permission to open it.

If you've just installed Solaar, try removing the receiver and plugging it back in.

Which I did do and got the same message again. Any thoughts? My keyboard and mouse are working, it's just that Solaar cannot manage the Unifying Receiver now.
Hi,

Did you follow the steps here..
https://pwr.github.io/Solaar/installation.html
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: d7rk on 08. November 2014, 16:00:57
I currently have no means to test bumblebee.

You can
Code: [Select]
$ git clone https://github.com/udeved/pkgbuilds.git

$ cd openrc-video
$ makepkg -d

Do you have bublebee running on systemd?
If yes, does it produce a pid file in /run or /run/bumblebee?

I do not have any folder /run/bumblebee.
I have bumblebee.socket file in /run.
bumblebeed is running in /usr/bin.
I couldn't find any .pid file for bumblebee on my computer.
Cheers,
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: urbanomad64 on 08. November 2014, 17:03:25
Hi,

Did you follow the steps here..
https://pwr.github.io/Solaar/installation.html
No, I hadn't because when I installed Solaar everything worked without a problem. But since you posted this link, I have done everything the instructions say to do manually. Nothing changed except the udev rules file was 42-* and I renamed it to 99-* which hasn't helped. I wasn't part of the plugdev group before yesterday but I added myself via KUser and am not sure what else to try as it is still acting the same. I even changed the GROUP="my_username" as the instructions suggested...
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 08. November 2014, 17:10:18
No, I hadn't because when I installed Solaar everything worked without a problem. But since you posted this link, I have done everything the instructions say to do manually. Nothing changed except the udev rules file was 42-* and I renamed it to 99-* which hasn't helped. I wasn't part of the plugdev group before yesterday but I added myself via KUser and am not sure what else to try as it is still acting the same. I even changed the GROUP="my_username" as the instructions suggested...
Hi,

First of all, GROUP="my_username" means GROUP="urbanomad64"

Let me list some points-

Quote
You should have a reasonably new kernel (3.2+), with the logitech-djreceiver driver enabled and loaded

To check if this module is loaded, type lsmod | grep logitech-djreceiver
If there is no output, you could try to load this module with sudo modprobe logitech-djreceiver
After that try unplugging and plugging your device.

If that works, simply add this module to /etc/conf.d/modules, ie
Code: [Select]
modules="logitech-djreceiver"
Edit-
Wrong file specified above corrected, meant /etc/conf.d/modules
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: urbanomad64 on 08. November 2014, 17:42:21
Hi,

First of all, GROUP="my_username" means GROUP="urbanomad64"

Let me list some points-

To check if this module is loaded, type lsmod | grep logitech-djreceiver
If there is no output, you could try to load this module with sudo modprobe logitech-djreceiver
After that try unplugging and plugging your device.

If that works, simply add this module to /etc/conf.d/modules, ie
Code: [Select]
modules="logitech-djreceiver"
Edit-
Wrong file specified above corrected, meant /etc/conf.d/modules
Thank you for your reply again... so, it seems as per this http://www.gossamer-threads.com/lists/linux/kernel/1992882 (http://www.gossamer-threads.com/lists/linux/kernel/1992882) that the module name has changed to hid-logitech-dj in Kernel 3.17 and I have just started in Kernel 3.16 and it is also called the same... could this have something to do with my problem?
Code: [Select]
dmesg | grep hid
[    1.646189] hidraw: raw HID events driver (C) Jiri Kosina
[    1.653763] usbcore: registered new interface driver usbhid
[    1.653766] usbhid: USB HID core driver
[    1.656955] logitech-djreceiver 0003:046D:C52B.0003: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.0-1.5/input2
[    1.711017] logitech-djdevice 0003:046D:C52B.0004: input,hidraw1: USB HID v1.11 Mouse [Logitech Unifying Device. Wireless PID:4017] on usb-0000:00:1d.0-1.5:1
[    1.713075] logitech-djdevice 0003:046D:C52B.0005: input,hidraw2: USB HID v1.11 Keyboard [Logitech Unifying Device. Wireless PID:4002] on usb-0000:00:1d.0-1.5:2
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 08. November 2014, 17:48:15
Thank you for your reply again... so, it seems as per this http://www.gossamer-threads.com/lists/linux/kernel/1992882 (http://www.gossamer-threads.com/lists/linux/kernel/1992882) that the module name has changed to hid-logitech-dj in Kernel 3.17 and I have just started in Kernel 3.16 and it is also called the same... could this have something to do with my problem?
You could verify using modinfo :)
Code: [Select]
modinfo -n hid-logitech-dj
modinfo -n logitech-djreceiver

Point is, the driver/module should be loaded for it to work correctly.
systemd takes modules to load at startup from /etc/modules-load.d/<module-name>, while OpenRC accepts a list of modules specified in /etc/conf.d/modules
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: urbanomad64 on 08. November 2014, 17:53:00
You could verify using modinfo :)
Code: [Select]
modinfo -n hid-logitech-dj
modinfo -n logitech-djreceiver

Point is, the driver/module should be loaded for it to work correctly.
systemd takes modules to load at startup from /etc/modules-load.d/<module-name>, while OpenRC accepts a list of modules specified in /etc/conf.d/modules
We must have crossed posts as I just updated my previous post with the output of dmesg but these are the ouputs you've requested.
Code: [Select]
modinfo -n hid-logitech-dj
/lib/modules/3.17.2-1-MANJARO/kernel/drivers/hid/hid-logitech-dj.ko.gz
Code: [Select]
modinfo -n logitech-djreceiver
modinfo: ERROR: Module logitech-djreceiver not found.
I have added hid-logitech-dj to my /etc/conf.d/modules file
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 08. November 2014, 17:55:09
We must have crossed posts as I just updated my previous post with the output of dmesg but these are the ouputs you've requested.
Code: [Select]
modinfo -n hid-logitech-dj
/lib/modules/3.17.2-1-MANJARO/kernel/drivers/hid/hid-logitech-dj.ko.gz
Code: [Select]
modinfo -n logitech-djreceiver
modinfo: ERROR: Module logitech-djreceiver not found.
I have added hid-logitech-dj to my /etc/conf.d/modules file
Right, the format for that is modules="hid-logitech-dj"
To load it for the current session, sudo modprobe hid-logitech-dj.
After that try to unplug and plug to see if it works.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: urbanomad64 on 08. November 2014, 18:08:48
Right, the format for that is modules="hid-logitech-dj"
To load it for the current session, sudo modprobe hid-logitech-dj.
After that try to unplug and plug to see if it works.
Done, again and I am still getting the same permissions error as always...

Code: [Select]
sudo solaar-cli show
Unifying Receiver [/dev/hidraw0:C9CB9A28] with 2 devices
1: Wireless Mouse M345 [M345:F3BC2EF5]
2: Wireless Solar Keyboard K750 [K750:2EC365BB]
Code: [Select]
solaar-cli show
solaar-cli: error: [Errno 13] Permission denied: '/dev/hidraw0'
Code: [Select]
dmesg | grep hid
[    1.646189] hidraw: raw HID events driver (C) Jiri Kosina
[    1.653763] usbcore: registered new interface driver usbhid
[    1.653766] usbhid: USB HID core driver
[    1.656955] logitech-djreceiver 0003:046D:C52B.0003: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.0-1.5/input2
[    1.711017] logitech-djdevice 0003:046D:C52B.0004: input,hidraw1: USB HID v1.11 Mouse [Logitech Unifying Device. Wireless PID:4017] on usb-0000:00:1d.0-1.5:1
[    1.713075] logitech-djdevice 0003:046D:C52B.0005: input,hidraw2: USB HID v1.11 Keyboard [Logitech Unifying Device. Wireless PID:4002] on usb-0000:00:1d.0-1.5:2
[ 1093.036684] logitech-djreceiver 0003:046D:C52B.0008: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.0-1.5/input2
[ 1093.090693] logitech-djdevice 0003:046D:C52B.0009: input,hidraw1: USB HID v1.11 Mouse [Logitech Unifying Device. Wireless PID:4017] on usb-0000:00:1d.0-1.5:1
[ 1093.091546] logitech-djdevice 0003:046D:C52B.000A: input,hidraw2: USB HID v1.11 Keyboard [Logitech Unifying Device. Wireless PID:4002] on usb-0000:00:1d.0-1.5:2
[ 1140.761926] logitech-djreceiver 0003:046D:C52B.000D: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1a.0-1.6/input2
[ 1140.816055] logitech-djdevice 0003:046D:C52B.000E: input,hidraw1: USB HID v1.11 Mouse [Logitech Unifying Device. Wireless PID:4017] on usb-0000:00:1a.0-1.6:1
[ 1140.818064] logitech-djdevice 0003:046D:C52B.000F: input,hidraw2: USB HID v1.11 Keyboard [Logitech Unifying Device. Wireless PID:4002] on usb-0000:00:1a.0-1.6:2
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 08. November 2014, 18:13:04
Done, again and I am still getting the same permissions error as always...

Code: [Select]
sudo solaar-cli show
Unifying Receiver [/dev/hidraw0:C9CB9A28] with 2 devices
1: Wireless Mouse M345 [M345:F3BC2EF5]
2: Wireless Solar Keyboard K750 [K750:2EC365BB]
Code: [Select]
solaar-cli show
solaar-cli: error: [Errno 13] Permission denied: '/dev/hidraw0'
Code: [Select]
dmesg | grep hid
[    1.646189] hidraw: raw HID events driver (C) Jiri Kosina
[    1.653763] usbcore: registered new interface driver usbhid
[    1.653766] usbhid: USB HID core driver
[    1.656955] logitech-djreceiver 0003:046D:C52B.0003: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.0-1.5/input2
[    1.711017] logitech-djdevice 0003:046D:C52B.0004: input,hidraw1: USB HID v1.11 Mouse [Logitech Unifying Device. Wireless PID:4017] on usb-0000:00:1d.0-1.5:1
[    1.713075] logitech-djdevice 0003:046D:C52B.0005: input,hidraw2: USB HID v1.11 Keyboard [Logitech Unifying Device. Wireless PID:4002] on usb-0000:00:1d.0-1.5:2
[ 1093.036684] logitech-djreceiver 0003:046D:C52B.0008: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.0-1.5/input2
[ 1093.090693] logitech-djdevice 0003:046D:C52B.0009: input,hidraw1: USB HID v1.11 Mouse [Logitech Unifying Device. Wireless PID:4017] on usb-0000:00:1d.0-1.5:1
[ 1093.091546] logitech-djdevice 0003:046D:C52B.000A: input,hidraw2: USB HID v1.11 Keyboard [Logitech Unifying Device. Wireless PID:4002] on usb-0000:00:1d.0-1.5:2
[ 1140.761926] logitech-djreceiver 0003:046D:C52B.000D: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1a.0-1.6/input2
[ 1140.816055] logitech-djdevice 0003:046D:C52B.000E: input,hidraw1: USB HID v1.11 Mouse [Logitech Unifying Device. Wireless PID:4017] on usb-0000:00:1a.0-1.6:1
[ 1140.818064] logitech-djdevice 0003:046D:C52B.000F: input,hidraw2: USB HID v1.11 Keyboard [Logitech Unifying Device. Wireless PID:4002] on usb-0000:00:1a.0-1.6:2
Looks like a fault with the udev rule then, could you post it..
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: urbanomad64 on 08. November 2014, 18:17:32
Looks like a fault with the udev rule then, could you post it..
Code: [Select]
cat 99-logitech-unify-permissions.rules
# This rule was added by Solaar.
#
# Allows non-root users to have raw access the Logitech Unifying USB Receiver
# device. For development purposes, allowing users to write to the receiver is
# potentially dangerous (e.g. perform firmware updates).

ACTION != "add", GOTO="solaar_end"
SUBSYSTEM != "hidraw", GOTO="solaar_end"

# official Unifying receivers
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", GOTO="solaar_apply"
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c532", GOTO="solaar_apply"

# Nano receiver, "Unifying Ready"
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52f", GOTO="solaar_apply"

# clasic Nano receiver -- VX Nano mouse
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c526", GOTO="solaar_apply"

GOTO="solaar_end"

LABEL="solaar_apply"

# don't apply to the paired peripherals, just the receivers
DRIVERS=="logitech-djdevice", GOTO="solaar_end"

# Allow any seated user to access the receiver.
# uaccess: modern ACL-enabled udev
# udev-acl: for Ubuntu 12.10 and older
TAG+="uaccess", TAG+="udev-acl"
                                                                                                                   
# Grant members of the "plugdev" group access to receiver (useful for SSH users)                                   
#MODE="0660", GROUP="urbanomad64"                                                                             
                                                                                                                   
LABEL="solaar_end"                                                                                                 
# vim: ft=udevrules 
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 08. November 2014, 18:36:14
Code: [Select]
cat 99-logitech-unify-permissions.rules
# This rule was added by Solaar.
#
# Allows non-root users to have raw access the Logitech Unifying USB Receiver
# device. For development purposes, allowing users to write to the receiver is
# potentially dangerous (e.g. perform firmware updates).

ACTION != "add", GOTO="solaar_end"
SUBSYSTEM != "hidraw", GOTO="solaar_end"

# official Unifying receivers
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", GOTO="solaar_apply"
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c532", GOTO="solaar_apply"

# Nano receiver, "Unifying Ready"
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52f", GOTO="solaar_apply"

# clasic Nano receiver -- VX Nano mouse
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c526", GOTO="solaar_apply"

GOTO="solaar_end"

LABEL="solaar_apply"

# don't apply to the paired peripherals, just the receivers
DRIVERS=="logitech-djdevice", GOTO="solaar_end"

# Allow any seated user to access the receiver.
# uaccess: modern ACL-enabled udev
# udev-acl: for Ubuntu 12.10 and older
TAG+="uaccess", TAG+="udev-acl"
                                                                                                                   
# Grant members of the "plugdev" group access to receiver (useful for SSH users)                                   
#MODE="0660", GROUP="urbanomad64"                                                                             
                                                                                                                   
LABEL="solaar_end"                                                                                                 
# vim: ft=udevrules 
In place of the commented out #MODE="0660", GROUP="urbanomad64"
Does putting MODE="0660", GROUP="plugdev" work..

Or you could also try sudo chown <your_user_name>:users /dev/hidraw0 and then re-run solaar-cli..
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: urbanomad64 on 08. November 2014, 18:49:28
In place of the commented out #MODE="0660", GROUP="urbanomad64"
Does putting MODE="0660", GROUP="plugdev" work..

Or you could also try sudo chown <your_user_name>:users /dev/hidraw0 and then re-run solaar-cli..
;D ;D Yeah, I didn't see that it was commented out. All is working fine now. I have even restarted to test that it would keep working and it does.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mrbrklyn on 20. November 2014, 07:13:09
I'm sorry to interupt.  I am so happy to find this manjaro iso with openbox and openrc.  This has all but saved Linux for me and I am an old time user not at affraid of get into the guts of things.  But before I write my own scripts, I would like to ask if these is a stock script for cups and sshd and to run them in openrc

There is no setup and administration tool kit with Manjaro that I can see.

I also have a comment about the wifi and NetoworkManager discussions I see sprinkled in this thread... look guys,  You really really don't need it and its wifi control is buggy and unreliable compared to wicd.  I was SO glad to have found it with the fustrating failures of nm-applet oye.

Ruben
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 20. November 2014, 07:29:03
I'm sorry to interupt.  I am so happy to find this manjaro iso with openbox and openrc.  This has all but saved Linux for me and I am an old time user not at affraid of get into the guts of things.  But before I write my own scripts, I would like to ask if these is a stock script for cups and sshd and to run them in openrc

There is no setup and administration tool kit with Manjaro that I can see.

I also have a comment about the wifi and NetoworkManager discussions I see sprinkled in this thread... look guys,  You really really don't need it and its wifi control is buggy and unreliable compared to wicd.  I was SO glad to have found it with the fustrating failures of nm-applet oye.

Ruben
Hi Ruben,

No problem ;)
For cups there is cups-openrc package, and for ssh there is openssh-openrc :)

Code: [Select]
$ pacman -Ss openssh-openrc
community/openssh-openrc 20141014-1 (openrc openrc-net) [installed]
    OpenRC openssh init script

$ pacman -Ss cups-openrc
community/cups-openrc 20141014-1 (openrc openrc-misc) [installed]
    OpenRC cups init script

How to start and enable these services (after installing packages given above), is present in the wiki (https://wiki.manjaro.org/index.php?title=Openrc#Configuration) (the services are cupsd and sshd, I will try to add this info in the wiki also).

Code: [Select]
$ sudo rc-service cupsd start
 * Starting cupsd ...                                                                                                           [ ok ]

$ sudo rc-service sshd start
 * Starting sshd ...                                                                                                            [ ok ]

For cups, you could try the web interface (available as "manage printing") option in the System category in the Xfce menu, else the address for it (available after starting the cups service ofc) is http://localhost:631/

For a cups GUI there is system-config-printer in the repos.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mrbrklyn on 20. November 2014, 07:43:39
Thank you.  I started them from the /etc/init.d/ directory and now I'm wondering how I confiure them to start on reboot (this is my laptop).
I use wmaker generally, usually.  I pulled the main packages from pacman but the other little bits of it, they are in the AUR and they don't come up with pacman -S .  In fact wmakerconf won't even compile with makepkg ... weird.  BTW I got here after 15 years on suse and opensue.  I tried a dozen or so distros on this new laptop and none of them worked at all.  Netrunner worked pretty good but systemd was was killing me and actually it eventually refused to boot.  They are arch based and they pointed me here to this openrc distro.  So far, so good but I lost all my oracle school work :(

I am a little perplexed as to why I still have a systemd directory

[ruben@manjaro ~]$ cd /etc/systemd/
[ruben@manjaro systemd]$ ls
system/  journald.conf  logind.conf
[ruben@manjaro systemd]$

that is not making me happy at all.

wmaker has a menu making tool I'd like to work, but I can't find it.

BTW - I don't mind paying a few dollars for a stable distro.  I'm not rich but I would like to make a donation to this effort
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 20. November 2014, 07:57:43
Thank you.  I started them from the /etc/init.d/ directory and now I'm wondering how I confiure them to start on reboot (this is my laptop).
I use wmaker generally, usually.  I pulled the main packages from pacman but the other little bits of it, they are in the AUR and they don't come up with pacman -S .  In fact wmakerconf won't even compile with makepkg ... weird.  BTW I got here after 15 years on suse and opensue.  I tried a dozen or so distros on this new laptop and none of them worked at all.  Netrunner worked pretty good but systemd was was killing me and actually it eventually refused to boot.  They are arch based and they pointed me here to this openrc distro.  So far, so good but I lost all my oracle school work :(

I am a little perplexed as to why I still have a systemd directory

[ruben@manjaro ~]$ cd /etc/systemd/
[ruben@manjaro systemd]$ ls
system/  journald.conf  logind.conf
[ruben@manjaro systemd]$

that is not making me happy at all.

wmaker has a menu making tool I'd like to work, but I can't find it.

BTW - I don't mind paying a few dollars for a stable distro.  I'm not rich but I would like to make a donation to this effort
Hi Ruben,

Looks like you need a few tutorials ;)

For building stuff from the AUR the base-devel package is needed.
Additionally yaourt can be used to install stuff from the AUR.
https://wiki.manjaro.org/index.php?title=AUR

For adding services to startup, the rc-update command is used in OpenRC. For example,
Code: [Select]
sudo rc-update add cupsd
The systemd directory could be present as its present in the manjaroiso (https://wiki.manjaro.org/index.php?title=ManjaroISO) configs (I dont try to change too much stuff to remain compatible with the official editions).

I would not be accepting any donations for my work, as I do it out of a hobby (and a lot of the work is done by artoo) :)
Title: Re: Installation stuck at "setting hostname" XFCE 0.8.7.1
Post by: mrbrklyn on 20. November 2014, 11:48:11
Three thing come to mind.
1) Try installing xterm form pacman
Code: [Select]
sudo pacman -S xterm2) Skip hostname change. And do it when you have a fresh install system.
Then try:
Code: [Select]
sudo nano /etc/hostname Delete "manjaro" (Hint: it the default hostname).
Then add whatever you want.
Ctrl+X to Save.
3) Or you burn your disk to fast as you install the iso image. Which can lead to weird problem to the install or after. Always set it to the slowest speed that you can!

It doesn't listen to that file anyway.  No matter what is in there it still thinks its hostname is manjaro
Title: Re: Re: Installation stuck at "setting hostname" XFCE 0.8.7.1
Post by: aaditya on 20. November 2014, 12:12:15
It doesn't listen to that file anyway.  No matter what is in there it still thinks its hostname is manjaro
You seem to be messing up all the wrong threads.
Did you read this wiki page:
https://wiki.manjaro.org/index.php?title=Openrc

Hostname in OpenRC is configured by editing /etc/conf.d/hostname
Title: Re: Re: Installation stuck at "setting hostname" XFCE 0.8.7.1
Post by: Rob on 20. November 2014, 12:14:34
Why are we bumping threads that are over a year old? :P
Title: Re: Re: Installation stuck at "setting hostname" XFCE 0.8.7.1
Post by: aaditya on 20. November 2014, 12:17:07
Why are we bumping threads that are over a year old? :P
Thx Rob, I will split it.
Title: Re: Re: Installation stuck at "setting hostname" XFCE 0.8.7.1
Post by: Rob on 20. November 2014, 12:25:26
Thx Rob, I will split it.
???

...i don't know what's going on, when i made that post it was in a separate thread. But whatevs. :)
Title: Re: Re: Installation stuck at "setting hostname" XFCE 0.8.7.1
Post by: aaditya on 20. November 2014, 12:26:38
???

...i don't know what's going on, when i made that post it was in a separate thread. But whatevs. :)
I split it and merged it into this one ;)
Title: Re: Re: Installation stuck at "setting hostname" XFCE 0.8.7.1
Post by: mrbrklyn on 21. November 2014, 00:23:38
You seem to be messing up all the wrong threads.
Did you read this wiki page:
https://wiki.manjaro.org/index.php?title=Openrc

Hostname in OpenRC is configured by editing /etc/conf.d/hostname

I finally figured that out with Grep.  /etc/hostsname is asked to be assigned within setup.  You are ASKED you to edit /etc/hostname
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 21. November 2014, 05:09:11
I finally figured that out with Grep.  stsnamesThe setuo ASKED you to edit /etc/hostname
Yeah, I did not edit that part of the installer.
Sorry for any inconvenience caused :)

What my aim is to provide a basic installable OpenRC ISO on which configuration could be done after install.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: neonr4in on 22. November 2014, 11:48:49
I think, we need to update gvfs-eudev, because its outdated and can't be installed (depedencies conflict)

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 22. November 2014, 11:53:37
I think, we need to update gvfs-eudev, because its outdated and can't be installed (depedencies conflict)
I think the gvfs from the repos seem to be working, so gvfs-eudev is probably not required now :)
If that is the case I will remove it from the openrc-eudev repo.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 22. November 2014, 11:57:49
I think the gvfs from the repos seem to be working, so gvfs-eudev is probably not required now :)
If that is the case I will remove it from the openrc-eudev repo.

Its not needed, no *-eudev or *-nosystemd package from AUR is needed with eudev-systemdcompat. ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 22. November 2014, 12:00:11
Its not needed, no *-eudev or *-nosystemd package from AUR is needed with eudev-systemdcompat. ;)
Thx, will remove it then.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: neonr4in on 22. November 2014, 12:25:23
I think the gvfs from the repos seem to be working, so gvfs-eudev is probably not required now :)
If that is the case I will remove it from the openrc-eudev repo.

OK for that

btw, any solutions for this problem, I couldn't mount MTP devices, both on Dolphin and Thunar/Caja  shown "device does not exist" or "unable to mount MTP device".

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 22. November 2014, 12:30:14
OK for that

btw, any solutions for this problem, I couldn't mount MTP devices, both on Dolphin and Thunar/Caja  shown "device does not exist" or "unable to mount MTP device".

You need gvfs-mtp or for kde kio-mtp.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: neonr4in on 22. November 2014, 12:40:00
You need gvfs-mtp or for kde kio-mtp.

both gvfs-mtp and kio-mtp are installed on the system.



Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 22. November 2014, 12:59:50
Whats the output of pgrep -l gvfs and pacman -Qs gvfs

For me,
Code: [Select]
$ pgrep -l gvfs
10942 gvfsd
11107 gvfs-udisks2-vo
11114 gvfs-mtp-volume
11118 gvfs-gphoto2-vo
11122 gvfsd-trash

$ pacman -Qs gvfs
local/gvfs 1.22.2-1
    Userspace virtual filesystem implemented as a pluggable module for gio
local/gvfs-gphoto2 1.22.2-1
    gphoto2 (PTP camera/MTP media player) backend for gvfs
local/gvfs-mtp 1.22.2-1
    MTP backend for gvfs
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: neonr4in on 22. November 2014, 14:03:04
Whats the output of pgrep -l gvfs and pacman -Qs gvfs



Here

Code: [Select]
$ pacman -Qs gvfs
local/gvfs 1.22.2-1
    Userspace virtual filesystem implemented as a pluggable module for gio
local/gvfs-afc 1.22.2-1
    AFC (mobile devices) backend for gvfs
local/gvfs-afp 1.22.2-1
    Apple Filing Protocol (AFP) backend for gvfs
local/gvfs-goa 1.22.2-1
    Gnome Online Accounts (webservices) backend for gvfs
local/gvfs-gphoto2 1.22.2-1
    gphoto2 (PTP camera/MTP media player) backend for gvfs
local/gvfs-mtp 1.22.2-1
    MTP backend for gvfs
local/gvfs-smb 1.22.2-1
    SMB/CIFS (Windows client) backend for gvfs
$ pgrep -l gvfs
5575 gvfs-udisks2-vo
5584 gvfsd
5590 gvfsd-fuse
5602 gvfs-goa-volume
5618 gvfs-mtp-volume
5625 gvfs-gphoto2-vo
5633 gvfs-afc-volume
6015 gvfsd-trash
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 22. November 2014, 14:13:51
I seem to be having the same problem.

Code: [Select]
$ mtp-detect
Unable to open ~/.mtpz-data for reading, MTPZ disabled.
libmtp version: 1.1.8

Listing raw device(s)
Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2).
   Found 1 device(s):
   Motorola: Moto G (ID2) (22b8:2e82) @ bus 1, dev 2
Attempting to connect device(s)
libusb_open() failed!: Permission denied
LIBMTP PANIC: Unable to initialize device
Unable to open raw device 0
OK.

Maybe follow the advice given in https://wiki.archlinux.org/index.php/MTP
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 22. November 2014, 14:28:13
Seems to be working correctly when I login with the root user (with the roor user the device opens), so I guess its a permissions/group/udev rule issue..
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 22. November 2014, 14:30:42
Seems to be working correctly when I login with the root user (with the roor user the device opens), so I guess its a permissions/group/udev rule issue..

I'd think it is a udev rule thing.
Is device added as on arch wiki suggested?
I can't help here, I don't have such device.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 22. November 2014, 14:41:12
I'd think it is a udev rule thing.
Is device added as on arch wiki suggested?
I can't help here, I don't have such device.
Yeah, my device seems to be listed in /usr/lib/udev/rules.d/69-libmtp.rules
Fiddling with udev rules now..
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 22. November 2014, 14:48:57
This is how I got it to work for me:

Followed the advice in https://wiki.archlinux.org/index.php/MTP#Using_media_players, except for the following:

Instead of setting OWNER="[username]", I set GROUP="plugdev"
Before that, I also created a plugdev group and added myself to it.
Code: [Select]
sudo groupadd plugdev
sudo gpasswd -a <my_username> plugdev

So the udev rule for me looks like the following:
Code: [Select]
# Udev rule for MTP Device Moto E
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="2e82", MODE="0666", GROUP="plugdev"

Then after doing sudo udevadm control --reload and replugging in my device, it seems to work :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: neonr4in on 22. November 2014, 23:21:07
^^ Yes, that method worked flawlessly on my system ;D
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 23. November 2014, 19:37:19
Hi guys,

Philm allowed us to have a separate board, so here we are :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mrbrklyn on 28. November 2014, 23:14:24
how far can we take this now?  Can I install KDE and Gnome now, on top of this.  I doubt that gnome can be added becauses it will call in login and that will cause a dependency on systemd.

Not running systemd makes this system run so much more stable and so much faster...
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 28. November 2014, 23:54:09
how far can we take this now?  Can I install KDE and Gnome now, on top of this.  I doubt that gnome can be added becauses it will call in login and that will cause a dependency on systemd.

Not running systemd makes this system run so much more stable and so much faster...

Apart from gnome, you can use any other DE without restrictions, but you may need depending on DE additional packages, eg for kde4 you need kdebase-workspace-consolekit, which is only on AUR.

You can see what packages are available depending on ck here (https://aur.archlinux.org/packages/consolekit/).

There seems to be a ck based gnome solution by the funtoo devs, but since I am not into gnome, there won't be any arch packages.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Aegir on 29. November 2014, 18:16:10
I installed openbox openrc rc1 version and it works flawlessly, no overheating problems i had with systemd version :D, except after switching to networkmanager (need for mobile broadband) i cant add modemmanger to startup, mobile broadband works when I start it manually.

Code: [Select]
sudo rc-update add modemmanager default
* rc-update: service `modemmanager' does not exist

sudo rc-update add ModemManager default
 * rc-update: service `ModemManager' does not exist

same with service ModemManager start
i can only start it with sudo ModemManager and then everything works fine. Its not big problem but kinda annoying.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 29. November 2014, 18:25:33
I installed openbox openrc rc1 version and it works flawlessly, no overheating problems i had with systemd version :D, except after switching to networkmanager (need for mobile broadband) i cant add modemmanger to autostart, mobile broadband works when I start it manually.

Code: [Select]
sudo rc-update add modemmanager default
* rc-update: service `modemmanager' does not exist

sudo rc-update add ModemManager default
 * rc-update: service `ModemManager' does not exist

same with service ModemManager start
i can only start it with sudo ModemManager and then everything works fine. Its not big problem but kinda annoying.
At the moment there does not seem to be a modemmanager-openrc package, I will ask Artoo if he could port it :)
For the time being you could add to /etc/local.d/rc.local.start
Code: [Select]
/usr/bin/ModemManager &to have it startup at boot automatically ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Aegir on 29. November 2014, 18:33:27
At the moment there does not seem to be a modemmanager-openrc package, I will ask Artoo if he could port it :)
For the time being you could add to /etc/local.d/rc.local.start
Code: [Select]
/usr/bin/ModemManagerto have it startup at boot automatically ;)

Thanks for fast reply, will do that. Manjaro openrc is amazing, i love it :) Great work ;D
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 29. November 2014, 18:37:48
Thanks for fast reply, will do that. Manjaro openrc is amazing, i love it :) Great work ;D
Its a teamwork :)
And might want to write it as /usr/bin/ModemManager & in case there are other programs that are needed to be executed (the & forks it to the background).
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 29. November 2014, 20:32:21
I uploaded a ck version to unstable which has a pk rule added to activate modemmanager, granted the user is in network group.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 14. February 2015, 18:44:40
FYI - I noticed that eudev shows to be outdated and will not update build.
eudev 2.1.1-3 (outdated installed version is 2.1.1-2)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 14. February 2015, 19:33:11
FYI - I noticed that eudev shows to be outdated and will not update.
eudev 2.1.1-3 (outdated installed version is 2.1.1-2)

2.1.1-2 is the version in manjaro repos.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Mr Green on 15. February 2015, 21:01:27
Could I get in on the action? need some advice on a secret iso project I am working on. You guys know where to find me....

sorry for hijacking your thread..

Mr Green

Who has finally got a systemd free virtual machine running openrc and eudev....
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 15. February 2015, 21:43:38
Hi MrGreen :)

Simply start a thread, something like "the secret iso openrc project"
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Mr Green on 16. February 2015, 19:19:10
Seems sourceforge is down again at the moment so was unable to load networkmanger-openrc. I will get some secret project up and running in the near future. How on earth you got eudev working with Arch is amazing.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: B-Lux on 18. February 2015, 22:43:22
Hi,

is it planned to include the Manjaro Openrc linux version (0.8.12 Xfce+Openbox OpenRC) into the official download area as a community version?

Best regards,

B-Lux
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 19. February 2015, 13:24:13
Hi B-Lux,

The reason I think the OpenRC edition is not in the community editions is that first of all the users could get confused by having two versions of Xfce/Openbox ISOs, and secondly OpenRC is a niche product ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mxx on 19. February 2015, 17:44:28
In Manjaro systemd releases I like how shutdown command is configured so that it works without sudo. How to configure it similarly in openrc edition?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 19. February 2015, 17:52:27
In Manjaro systemd releases I like how shutdown command is configured so that it works without sudo. How to configure it similarly in openrc edition?

It works without sudo in real DEs, so this is OB specific to configure. ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 19. February 2015, 18:02:52
In Manjaro systemd releases I like how shutdown command is configured so that it works without sudo. How to configure it similarly in openrc edition?
shutdown is simply symlinked to systemctl, its not configured it any way.


Method1
You can configure sudo to run certain commands without entering password:
https://wiki.archlinux.org/index.php/Allow_users_to_shutdown#Users_without_sudo_privileges
With OpenRC (non-systemd) that would translate to:
Code: [Select]
user hostname =NOPASSWD: /usr/bin/poweroff,/usr/bin/rebootwhere user and hostname have to be substituted.

After that you can add aliases to the shell (bash) so that sudo is appended automatically:
https://wiki.archlinux.org/index.php/Allow_users_to_shutdown#Creating_aliases
With OpenRC (non-systemd) that would translate to:
Code: [Select]
alias reboot="sudo reboot"
alias poweroff="sudo poweroff"


Method2
As an alternative, as artoo pointed, you could use aliases for long consolekit commands, ie,
Code: [Select]
alias reboot="dbus-send --system --print-reply --dest='org.freedesktop.ConsoleKit' /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart"
alias poweroff="dbus-send --system --print-reply --dest='org.freedesktop.ConsoleKit' /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop"
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mxx on 19. February 2015, 19:51:52
shutdown is simply symlinked to systemctl, its not configured it any way.
But it *is* configured somehow, because in Manjaro with systemd it works for all users without any aliases having been set in .bashrc.

1. Install Manjaro with systemd
2. Open up .bashrc - no aliases that you speak of
3. type shutdown -h now - works
4. type reboot - works

In my Xfce installation (systemd), I set the alias "off" for shutdown -h now over a year ago.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 19. February 2015, 20:01:06
But it *is* configured somehow, because in Manjaro with systemd it works for all users without any aliases having been set in .bashrc.

1. Install Manjaro with systemd
2. Open up .bashrc - no aliases that you speak of
3. type shutdown -h now - works
4. type reboot - works

In my Xfce installation (systemd), I set the alias "off" for shutdown -h now over a year ago.
Since shutdown and poweroff are symlinked to systemctl, when you call shutdown -h now, what gets called is (systemctl) shutdown -h now, and as systemctl does not require root rights to shut the system off (as it communicates with systemd which runs with root rights), so off it goes...
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: B-Lux on 19. February 2015, 21:06:47
Hi aaditya,

that the openrc versions are currently niche products  is maybe based on the situation, that such a great running editions aren't presented in an more attractive way.

Greetings

B-Lux
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 19. February 2015, 21:27:24
Hi aaditya,

that the openrc versions are currently niche products  is maybe based on the situation, that such a great running editions aren't presented in an more attractive way.

Greetings

B-Lux
Hmm, I kind of agree with you there.

The reason I am keeping it low profile is because of the situation we are in regarding systemd; as systemd gains more ground and if it makes it to the kernel, there will obviously be a divide b/w those who want systemd and those who dont, and as Manjaro follows Arch which supports only systemd, the foundation is weak..

Hence I dont want to publicize it too much only to throw in the trowel six months later saying "oh, we cant support it anymore".

Disclaimer: This is just my opinion though and not necessarily the team's.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mxx on 20. February 2015, 07:56:55
Since shutdown and poweroff are symlinked to systemctl, when you call shutdown -h now, what gets called is (systemctl) shutdown -h now, and as systemctl does not require root rights to shut the system off (as it communicates with systemd which runs with root rights), so off it goes...
I see, so it works only because it's linked to systemd. And therefore more tweaks are needed to achieve the same in openrc.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 20. February 2015, 12:48:30
I see, so it works only because it's linked to systemd. And therefore more tweaks are needed to achieve the same in openrc.

We depend currently on arch packages, and if arch decide to go eg kdbus as some point, it may be that we get in a situation where more manpower is needed to port some solution to manjaro and to replace heavily systemd depend arch packages.
I personally would love to eliminate some stuff in arch packages to suit alternatives much better.

I am bit more optimistic than aaditya though.  :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 20. February 2015, 20:25:52
kdbus is the replacement for dbus, in time this will be transfered into the kernel.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mrbrklyn on 14. March 2015, 18:33:39
We depend currently on arch packages, and if arch decide to go eg kdbus as some point, it may be that we get in a situation where more manpower is needed to port some solution to manjaro and to replace heavily systemd depend arch packages.
I personally would love to eliminate some stuff in arch packages to suit alternatives much better.

I am bit more optimistic than aaditya though.  :)

I would like to help, and i have a friend, David Sugar who has been a big GNU systems progrmmer for a long time, he want to help as well.

Ruben
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mrbrklyn on 14. March 2015, 18:43:45
Hi guys,

Being tired of the increasing complexity of systemd (http://boycottsystemd.org/), I decided to switch to a simpler init system, and ended up on OpenRC (http://www.gentoo.org/proj/en/base/openrc/).

Information about OpenRC:
https://wiki.manjaro.org/index.php?title=Openrc

ISOs with OpenRC and eudev:
OpenRC ISO (Net) (https://forum.manjaro.org/index.php?topic=18830.0)
OpenRC ISO (Xfce-Openbox) (https://forum.manjaro.org/index.php?topic=19215.0)


I will summarise the installation instruction:

Its available from the Manjaro repositories (as an alternative to systemd).

1) Update your system.
Code: [Select]
sudo pacman -Syu
2) Install the openrc-base package group.
Code: [Select]
sudo pacman -S openrc-base
3) Install the openrc-desktop package group.
Code: [Select]
sudo pacman -S openrc-desktop
3-a) Install an openrc-compatible display manager and configure it in /etc/conf.d/xdm (Wiki link (https://wiki.manjaro.org/index.php?title=Openrc#Display_Manager))

3-b) For networking, dhcpcd is enabled by default; however if it does not work for you can try the networkmanager-openrc package.

Note-
After installing the above packages, pacman may display a message like :
Code: [Select]
installed acpid-openrc (20140527-1)
==> run 'rc-update add acpid default'

That is required for enabling the mentioned service.

To boot with systemd instead, when the GRUB menu for Manjaro is encountered while booting, press e to edit, and at the end of the line that starts with linux, add:
Code: [Select]
init=/usr/lib/systemd/systemd
The boot-log for OpenrRC is present in /var/log/rc.log


For more detailed instructions along with how to install eudev and some troubleshooting, have a look at the wiki:
https://wiki.manjaro.org/index.php?title=Openrc

For IRC (http://www.irchelp.org/irchelp/irctutorial.html) support, the channel is #manjaro-openrc on freenode (https://freenode.net/index.shtml).

FWIW - of late:

:: Proceed with installation? [Y/n] Y
:: Retrieving packages ...
 manjaro-system-2015...     5.3 KiB   223K/s 00:00 [######################] 100%
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
(1/1) upgrading manjaro-system                     [######################] 100%

:: Starting full system upgrade...
:: Replace lirc-utils with extra/lirc? [Y/n] Y
resolving dependencies...
looking for conflicting packages...
:: systemd and eudev-systemdcompat are in conflict (systemd-tools). Remove eudev-systemdcompat? [y/N] N
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: systemd and eudev-systemdcompat are in conflict


what is the way around?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 14. March 2015, 18:52:40
FWIW - of late:

:: Proceed with installation? [Y/n] Y
:: Retrieving packages ...
 manjaro-system-2015...     5.3 KiB   223K/s 00:00 [######################] 100%
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
(1/1) upgrading manjaro-system                     [######################] 100%

:: Starting full system upgrade...
:: Replace lirc-utils with extra/lirc? [Y/n] Y
resolving dependencies...
looking for conflicting packages...
:: systemd and eudev-systemdcompat are in conflict (systemd-tools). Remove eudev-systemdcompat? [y/N] N
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: systemd and eudev-systemdcompat are in conflict


what is the way around?
Could you post the above inside code blocks (button symbol # on the toolbar) so that I can see which version of manjaro-system you updated?

Also, since I dont know whats in your system, could you post the output of the following:
Code: [Select]
pacman -Qs systemd
pacman -Qs eudev
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mrbrklyn on 15. March 2015, 06:05:10
Code: [Select]
:: Proceed with installation? [Y/n] Y
:: Retrieving packages ...
 manjaro-system-2015...     5.3 KiB   223K/s 00:00 [######################] 100%
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
(1/1) upgrading manjaro-system                     [######################] 100%

:: Starting full system upgrade...
:: Replace lirc-utils with extra/lirc? [Y/n] Y
resolving dependencies...
looking for conflicting packages...
:: systemd and eudev-systemdcompat are in conflict (systemd-tools). Remove eudev-systemdcompat? [y/N] N
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: systemd and eudev-systemdcompat are in conflict



Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mrbrklyn on 15. March 2015, 06:53:08
Code: [Select]
[ruben@stat13 ~]$ pacman -Qs systemd
local/eudev-systemdcompat 217-2 (eudev-base)
    systemd client libraries without udev; systemd compatibility package
local/lib32-systemd 218-1
    system and service manager (32-bit)
local/polkit-consolekit 0.112-2
    PolyciKit with ConsoleKit support for non-systemd systems
local/python2-systemd 217-1
    Python2 bindings for systemd
local/vim-systemd 20140209-1
    Vim syntax highlighting for systemd unit files
[ruben@stat13 ~]$
local/eudev 2.1.1-2
    The userspace dev tools (udev) forked by Gentoo
local/eudev-openrc 20141229-1 (eudev-base)
    OpenRC eudev postmount script
local/eudev-systemdcompat 217-2 (eudev-base)
    systemd client libraries without udev; systemd compatibility package
local/upower-pm-utils 0.9.23-4 (eudev-base)
    Abstraction for enumerating power devices, listening to device events and querying history and
    statistics
[ruben@stat13 ~]$

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 15. March 2015, 07:40:26
Code: [Select]
sudo pacman -S openrc-desktop
Code: [Select]
sudo pacman -S eudev-base
Title: Re: Manjaro 0.9.0 Net OpenRC ISO rc1
Post by: schpankme on 21. March 2015, 08:37:36
sudo rc-update del sysctl boot   :P
Title: Re: Re: Manjaro 0.9.0 Net OpenRC ISO rc1
Post by: aaditya on 21. March 2015, 08:43:18
sudo rc-update del sysctl boot   :P
But why :)

https://wiki.archlinux.org/index.php/Sysctl
Title: Re: Re: Manjaro 0.9.0 Net OpenRC ISO rc1
Post by: schpankme on 21. March 2015, 08:45:46
sysctl gives boot errors for the unsuspecting.   C:-)
Title: Re: Re: Manjaro 0.9.0 Net OpenRC ISO rc1
Post by: aaditya on 21. March 2015, 08:52:56
sysctl gives boot errors for the unsuspecting.   C:-)
Maybe you simply havent created it ;)

Error about /etc/sysctl.conf not found (https://wiki.manjaro.org/index.php?title=OpenRC,_an_alternative_to_systemd#Error_about_.2Fetc.2Fsysctl.conf_not_found)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 22. March 2015, 21:09:15
Hi guys, have been playing with OpenRC since yesterday, as aaditya knows :) Hi aaditya, I just thought I'd get in here and thank artoo too, thanks artoo ;)  The both of you have came up with something rather nice here.

I have been trying all day to break it and it just won't break hahaha.  Just kidding, this OpenRC release is, in my opinion, the way XFCE, Openbox and whatever else will work on it, was made to run on Linux, it is blindingly fast and as far as I can tell up to now very very stable, hell, I even considered switching to unstable just to see if I could break it there  >:D

@aaditya, I think I will end up using this as my main flavour of The Mighty Manjaro.  ;)

Thanks guys for this amazing piece of software.

Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 22. March 2015, 23:35:07
Welcome to the alternate Universe.

Thank you Manjaro and the OpenRC Team for the Choice.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 23. March 2015, 00:05:04
Thanks schpankme, it really is and all, I'm really enjoying the lightening speed in comparison to the "other" init system, don't want to say it and be told I'm flaming lol  Just kidding, I don't know enough to flame about it anyhow, just know this is super quick compared and that's from what I see with regards to system performance.

Stability, so far so good, I haven't broken it yet, ask me again in a few weeks lol

Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 24. March 2015, 03:41:04
Hi guys, just out of interest...

I am running OpenRC on an old Viglen computer I use for "messing" about, just installed it tonight :)  I did have LXqt on it (thanks Esclapion :)) ) and it ran but it was really unbearably slow.  So far this old machine is now usable although it is still slow but not no were near as bad, this release has a lot of potential to suit many different scenarios and even breath life back in to an old dead horse  ;)

Here is a pastebin (http://pastebin.com/ynfmp2qr) with the specs of this old box.

Just thought I would share this with ya all.

Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 24. March 2015, 07:09:15

running OpenRC on an old Viglen computer

pastebin (http://pastebin.com/ynfmp2qr)

darso,

We can convert your system to low memory, openbox build, and free up about half the current memory requirement.  Let me know if you want to proceed with removing the XFCE overhead, other.

Install ps_mem
Code: [Select]
sudo pacman -S ps_mem
Code: [Select]
sudo ps_mem   #execute ps-mem Private  +   Shared  =  RAM used   Program
Code: [Select]
124.0 KiB +  33.0 KiB = 157.0 KiB init
132.0 KiB +  43.0 KiB = 175.0 KiB gnome-pty-helper
184.0 KiB +  38.5 KiB = 222.5 KiB acpid
428.0 KiB +  30.0 KiB = 458.0 KiB dhcpcd
 88.0 KiB + 436.5 KiB = 524.5 KiB sh (2)
592.0 KiB +  56.5 KiB = 648.5 KiB crond
540.0 KiB + 174.0 KiB = 714.0 KiB dconf-service
576.0 KiB + 180.0 KiB = 756.0 KiB dbus-launch (2)
572.0 KiB + 185.5 KiB = 757.5 KiB xfconfd
716.0 KiB +  42.5 KiB = 758.5 KiB udevd
660.0 KiB + 311.0 KiB = 971.0 KiB agetty (6)
920.0 KiB + 110.0 KiB =   1.0 MiB gnome-keyring-daemon
864.0 KiB + 335.0 KiB =   1.2 MiB at-spi2-registryd
  1.1 MiB + 102.0 KiB =   1.2 MiB bluetoothd
972.0 KiB + 326.0 KiB =   1.3 MiB gvfsd
980.0 KiB + 342.0 KiB =   1.3 MiB bash
  1.1 MiB + 472.0 KiB =   1.6 MiB at-spi-bus-launcher
  1.6 MiB + 500.5 KiB =   2.1 MiB sudo
  1.4 MiB + 764.0 KiB =   2.1 MiB lxpolkit
  1.3 MiB + 871.0 KiB =   2.2 MiB xfce4-notifyd
  1.7 MiB + 723.0 KiB =   2.4 MiB dbus-daemon (4)
804.0 KiB +   1.8 MiB =   2.6 MiB pacmanhelper
  2.7 MiB +  75.5 KiB =   2.8 MiB gpg-agent
  2.9 MiB + 253.0 KiB =   3.2 MiB console-kit-daemon
  2.1 MiB +   1.2 MiB =   3.3 MiB xfce4-power-manager
  2.8 MiB + 508.5 KiB =   3.3 MiB udisksd
  2.4 MiB +   1.0 MiB =   3.5 MiB tint2
  2.6 MiB + 856.0 KiB =   3.5 MiB conky
  3.4 MiB + 407.5 KiB =   3.8 MiB gvfsd-fuse
  2.6 MiB +   1.4 MiB =   3.9 MiB syslog-ng (2)
  2.6 MiB +   1.4 MiB =   4.0 MiB volumeicon
  2.8 MiB +   1.3 MiB =   4.1 MiB lightdm (2)
  3.6 MiB + 612.0 KiB =   4.2 MiB upowerd
  2.8 MiB +   1.7 MiB =   4.5 MiB clipit
  4.9 MiB + 427.5 KiB =   5.3 MiB compton
  4.6 MiB +   1.2 MiB =   5.9 MiB openbox
  5.4 MiB +   2.4 MiB =   7.8 MiB xfce4-terminal
  7.3 MiB +   1.5 MiB =   8.8 MiB wicd-monitor
  8.6 MiB +   1.0 MiB =   9.6 MiB light-locker
  9.1 MiB + 752.5 KiB =   9.8 MiB wicd
  9.5 MiB + 409.0 KiB =   9.9 MiB polkitd
  9.3 MiB +  10.6 MiB =  19.9 MiB octopi-notifier
 17.2 MiB +   3.0 MiB =  20.2 MiB wicd-client
 11.4 MiB +  11.1 MiB =  22.5 MiB manjaro-settings-manager-daemon
 35.8 MiB +   3.9 MiB =  39.6 MiB Xorg
---------------------------------
                        228.4 MiB


Targeted items to remove:
gnome-pty-helper
acpid
crond
gnome-keyring-daemon
bluetoothd
xfce4-notifyd
pacmanhelper
gpg-agent
xfce4-power-manager
volumeicon
upowerd
xfce4-terminal
wicd-monitor
light-locker
wicd
octopi-notifier
wicd-client
manjaro-settings-manager-daemon


1) Remove gnome-pty-helper (https://wiki.manjaro.org/index.php?title=Get_rid_of_the_gnome-pty-helper_process#The_Man_page_says_the_following)
su
# copy & paste the following
Code: [Select]
chmod 644 /usr/lib/vte/gnome-pty-helper
chmod 644 /usr/lib64/vte/gnome-pty-helper
chmod 644 /lib64/vte/gnome-pty-helper
chmod 644 /lib/vte/gnome-pty-helper
exit

2) Remove acipd, acpid-openrc
Code: [Select]
sudo pacman -Rns acpid-openrc
note: ==> run 'rc-update del acpid default'

3) Remove cronie (crond), run-parts, cronie-openrc
Code: [Select]
sudo pacman -Rns cronie-openrc
note: ==> run 'rc-update del cronie default'

4) Remove gcr, gnome-keyring-daemon
Code: [Select]
sudo pacman -Rns gnome-keyring
5) Remove Bluetooth
Code: [Select]
sudo pacman -Rns bluemanbluez, bluez-libs, imagemagick, libcl, libcal, liblqr, libusb-compat, obex-data-server, openobex, python2-pybluez, blueman, bluez-openrc

note: ==> run 'rc-update del bluetooth default'

6) Remove xfce4, other ?





Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 24. March 2015, 10:51:36
Thanks for that schpankme, that saved around 28mb so far  ;D makes a difference on this machine, poor thing is old like myself  :o

I wouldn't mind trying to save more and I will likely only use Openbox as the DE but I don't want to rape and pillage the fine piece of work that artoo and aaditya has put together, thank you guys.  I haven't actually tried XFCE on it yet, will go and do that now  ;)

Thanks again schpankme, you're a real gentleman, I hope the offer is an open one  ;)

EDIT: I logged in to XFCE to try it and granted, it did just a little more wheezing but it's not to bad still.  I am gonna put this OpenRC on my main box also, sure it'll give me something else to learn about  :P

Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 27. March 2015, 01:39:25
Hi guys, I have a little question, I have been hunting for info on mounting my disk on boot using OpenRC and have not found anything, all I keep coming up with is the systemd way.  Here's my question, can anyone help please?   :-[

I hate being stumped  :o

Thanks in advance,
Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Ponder on 27. March 2015, 02:07:50

Normally the disks to be mounted are listed in /etc/fstab. I'm not aware that systemd does it differently, but then again, I don't use it.

Here is my fstab entry.


Code: [Select]
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# Uncomment the line below to setup /tmp as tmpfs
# tmpfs    /tmp    tmpfs    nodev,nosuid    0   0
UUID=65932575-38ac-4609-8029-b7bde65a2159 /boot ext2 defaults,noatime 0 1
UUID=b7a78df1-22a9-42a5-94b6-8899bafb1460 / xfs defaults,noatime,discard 0 1
UUID=cce0d4d9-d448-4515-8b07-3cb2522eba1f swap swap defaults 0 0
UUID=ee5e3df8-a312-4e10-86b1-5702833ef533 /home xfs defaults,noatime,discard 0 1

Check man fstab and man mount for details.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 27. March 2015, 02:14:34
Hi Ponder, thanks for your answer, so if I am reading you right all I need to do is add the UUID and other info to fstab?  Is that right?

Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Ponder on 27. March 2015, 02:29:17
Hi Ponder, thanks for your answer, so if I am reading you right all I need to do is add the UUID and other info to fstab?  Is that right?

Cheers,
darso.

That should do it. Of course it has to be the right information for your system, which is going to be different than my example. You don't have to use UUIDs, but they supposedly are the superior way to identify the individual drive(s) and partitions.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 27. March 2015, 02:37:53
Hi again mate, I set up my fstab with the info needed, I have two partitions I want to load, /data Label:Data and 1tb Label:1TB.  I entered the UUID's in to my fstab and on booting the computer it's telling me there are no mount points for these drives, now I am totally lost and I can no longer see the drives in my file manager (Thunar), I know restoring the fstab file to original will bring them back okay although I would still like them to automount.  I don't mean to be a pain in the neck but could you even point me in the right direction to create fore mentioned mount points, pleeeeeeeeeeease  ;D

EDIT:
Here is my fstab
Code: [Select]
#
# /etc/fstab: static file system information
#
# <file system>    <dir>    <type>    <options>    <dump>    <pass>
# Uncomment the line below to setup /tmp as tmpfs
# tmpfs    /tmp    tmpfs    nodev,nosuid    0   0
# DEVICE DETAILS: /dev/sda1 UUID=be8cf1e1-a173-4a1b-a35d-af4396befacf LABEL=Boot
# DEVICE DETAILS: /dev/sda2 UUID=f3797dcc-58d9-4302-9ac7-80c516e002aa LABEL=Swap
# DEVICE DETAILS: /dev/sda3 UUID=97fa1ecb-acf8-4656-a83c-3654893205b5 LABEL=Root
# DEVICE DETAILS: /dev/sdb1 UUID=d47e8a32-e6b5-423e-9750-eb5119468099 LABEL=Home
# DEVICE DETAILS: /dev/sdb2 UUID=ad69b2b0-4ccd-4964-a258-be5dd648ebf9 LABEL=Data
# DEVICE DETAILS: /dev/sdb3 UUID=6a9eadf7-2940-4ccf-ae65-0a88dee5c159 LABEL=1TB
UUID=97fa1ecb-acf8-4656-a83c-3654893205b5 / ext4 defaults 0 1
UUID=be8cf1e1-a173-4a1b-a35d-af4396befacf /boot ext2 defaults 0 1
UUID=d47e8a32-e6b5-423e-9750-eb5119468099 /home ext4 defaults 0 1
UUID=ad69b2b0-4ccd-4964-a258-be5dd648ebf9 /data ext4 defaults 0 1
UUID=6a9eadf7-2940-4ccf-ae65-0a88dee5c159 /1tb ext4 defaults 0 1
UUID=f3797dcc-58d9-4302-9ac7-80c516e002aa swap swap defaults 0 0

Thanks for your help,
Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Ponder on 27. March 2015, 02:53:21
You just have to make directories to mount them on if you haven't already done so.

Code: [Select]
sudo mkdir /data
would make a directory for your /data partition.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 27. March 2015, 03:04:18
Ponder thank you thank you thank you thank you, that worked perfectly, you're a real gent and I am so embarrassed because that was so simple and I fluffed it  :-[

Thanks very much buddy,
Cheers,
darso.

P.S. Now I will be able to sleep tonight thanks to you  ;D
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Ponder on 27. March 2015, 03:06:24
My pleasure Darso, and trust me, I've done worse. Much worse.  ::)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 27. March 2015, 03:16:53
Me too hahaha this OpenRC release is nice though, it means a new learning process for me but the benefits are well worth it.  I had udes used Manjarobox before and loved the OpenBox WM although found that a learning process on it's own.  I also love XFCE and used that for quite a while.  I tried installing OpenBox on my XFCE setup but I could never just get OB to work/look/feel the way these guys can, they really are excellence personified at what they are doing.

So OpenRC has so far given me exactly what I wanted and much more than what I need and we all have the "Dynamic Duo" as my good friend Ticnt calls them artoo and aaditya to thank for this and of course the brilliant devs behind all the packages and software that makes it possible.

A big heart felt thank you guys, and to you to Ponder, for your help tonight.

Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Mr Green on 15. April 2015, 07:48:32
interesting guide on systemdfree.org for switching too openrc. Would like to use repo for testing runit. Who do I need to get permission from?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 15. April 2015, 14:00:23
interesting guide on systemdfree.org for switching too openrc. Would like to use repo for testing runit. Who do I need to get permission from?
Its free to use as far as I know :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Mr Green on 15. April 2015, 22:03:15
Be nice to credit someone for there work...will check how up too date it is before I raid Manjaro repos :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: nous on 16. April 2015, 15:33:59
Be nice to credit someone for there work...will check how up too date it is before I raid Manjaro repos :)

Just mentioning systemd-free.org (http://systemd-free.org) is enough. We do it out of our love for the community, not for fame... :-)

The repo is well maintained and frequently updated, almost daily.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Mr Green on 16. April 2015, 22:19:27
I have started too spread the word. Keep up the good work ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: schpankme on 16. April 2015, 22:22:12
systemd-free.org
We do it out of our love for the community, not for fame

The repo is well maintained and frequently updated, almost daily.

"An init system must be an init system"

Thank you
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: nous on 17. April 2015, 13:27:01
I really appreciate it, thank you.

The site is under constant scrutiny and improvement; I'd love to incorporate any comments, experiences and suggestions. Ideally, it could include more init systems - no, scratch that: it will include more init systems once we achieve a resonably reliable desktop configuration guide, which has become the most difficult part, thanks to you-know-what's intrusiveness.

Truly, if an init system stays within the scope of its purpose and doesn't mess with other components' business, switching to/from it cannot and should not affect desktop functionality.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 20. April 2015, 00:16:13
Hi guys,

Just a little question, with maybe big implications  >:D

Are there, or will there be any plans for OpenRC to support Btrfs?

I did have a look in to it and tried from a live USB to install using Btrfs but was unable to do so.  I am not sure if this was down to my lack of knowledge or that it simply is not supported, yet, I hope!  So just thought I would ask above question here to be sure.

Thanks in advance for any info.

Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 20. April 2015, 09:14:32
Hi guys,

Just a little question, with maybe big implications  >:D

Are there, or will there be any plans for OpenRC to support Btrfs?

I did have a look in to it and tried from a live USB to install using Btrfs but was unable to do so.  I am not sure if this was down to my lack of knowledge or that it simply is not supported, yet, I hope!  So just thought I would ask above question here to be sure.

Thanks in advance for any info.

Cheers,
darso.
Hi darso,

As far as I know, the cli installer offers an option for formatting a partition as Btrfs while installing; I have not tried it though and hence dont know if it works.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 20. April 2015, 11:37:55
Hi aaditya, thanks for answering.

Well, I will do just that, then we will know  ;)   I will get back to you here later today and let you know how it went.

Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 20. April 2015, 13:14:20
Hi again additya,

I don't think this does work with OpenRC, at least the set-up I need.  I get as far as "Disk Preparation" and the installer starts asking for swap, root and home drives.

I am atm trying to put together a small tutorial on using grub-btrfs to create an environment that makes snapshots of the system really simple, as soon as I have that finished I will get back in to this and see if I can configure it with the fore mentioned config, just to see what happens  ;)

Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Loup on 21. April 2015, 01:18:51
Hi darso,

i'll explain again ... if openrc use grub then it work.
If openrc does not use grub, simply use a two partition set-up / boot btrfs and / btrfs
Then no need for grub since all admin is done from level 0

Have fun
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 21. April 2015, 01:24:07
Hi darso,

i'll explain again ... if openrc use grub then it work.
If openrc does not use grub, simply use a two partition set-up / boot btrfs and / btrfs
Then no need for grub since all admin is done from level 0

Have fun

Hi Loup,

EDIT: Yes OpenRC uses grub.

I didn't realize this could be done with /boot /.  Can I also have /home and do I need swap? I have 8gb ram.

Cheers,
darso.

P.S. I have been searching all over the net for specific btrfs+OpenRC info  :o

P.P.S. Nice addition in our post  ;D
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Loup on 21. April 2015, 01:39:12
Hi darso,

I understand that you went thru alot of reading these recent days .  ;D

I did this set-up ( btrfs one partition ) to be able to convert a single automatic ext4 install. I dont like the existing ubuntu solution

The normal way to use btrfs is to have a /boot btrfs partition and / partition.
make snapshot of boot directory, make snapshot of / directory

mount ( btrfs set-default command ) those image and reboot ( all done from 0 level in terminal )
Btrfs does not support swap so far. At 8 g. of ram ... have you ever seen swap used on your system ?

You will not find info on btrfs and openrc, since it as nothing to do with btrfs. Btrfs is an fs ( file system ) openrc is an init program like systemd

Hope this is a better explanation  :-[
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 21. April 2015, 11:20:54
Hi darso,

I understand that you went thru alot of reading these recent days .  ;D

Btrfs does not support swap so far. At 8 g. of ram ... have you ever seen swap used on your system ?

You will not find info on btrfs and openrc, since it as nothing to do with btrfs. Btrfs is an fs ( file system ) openrc is an init program like systemd

Hope this is a better explanation  :-[

Hi Loup,

Yes, I have, lots & lots  :o ;D

No, I have never seen it being used at all, thanks - "swapoff" = 8gb extra disk space  ;D

I know btrfs is a filesystem and OpenRC is init, I should maybe have worded that better, what I meant was I had been looking for info on weather someone had used the two together already, sorry for the bad explanation on that one  :-[

Yes it does explain it better mate, I needed to sleep last night and just kinda flaked out.  I'm not sure if I dreamt it or not but I sort of seen your answer, it came to me on the back of a white leprechaun???  :o ::) ;D >:D The wee bugger didn't bring any gold though!  ;D

Thanks again buddy.

Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Ponder on 21. April 2015, 12:35:42
Hi Loup,


No, I have never seen it being used at all, thanks - "swapoff" = 8gb extra disk space  ;D


The swap area is used for hibernation. I'm not sure what happens if you have no swap but try to hibernate.

I know you can have a swap file instead of a dedicated partition and hibernate to that, though. Never tried it myself.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 21. April 2015, 12:56:01
The swap area is used for hibernation. I'm not sure what happens if you have no swap but try to hibernate.

I know you can have a swap file instead of a dedicated partition and hibernate to that, though. Never tried it myself.

Hibernate??? Wuts that???  >:D

My computer went in to hibernate I'd through it in the bin for being lazy lol

I think I'll just do away with swap then  ;)

Thanks again,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: viking60 on 21. April 2015, 15:10:27
The swap area is used for hibernation. I'm not sure what happens if you have no swap but try to hibernate.

I know you can have a swap file instead of a dedicated partition and hibernate to that, though. Never tried it myself.

The swap file works like the normal "swap" there are no downsides, so when our friend here finds out what hibernation is  :) and needs a swapfile; he can simply make one.
(It is that thing where you computer goes to "sleep" and starts within seconds after you turn it on again - some people are impressed with that fast "boot" - particularly Gnome devs who even left out the poweroff button and had hibernation as default)

You can also make a swap file if you find out that you have to little swap  the file will then add to the swap you had.
(Not instead of dedicated partition but in addition to...)

So when the time comes: here is HowTo (http://bjoernvold.com/forum/viewtopic.php?f=25&t=1763#p16976)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Ponder on 21. April 2015, 15:53:17

(It is that thing where you computer goes to "sleep" and starts within seconds after you turn it on again - some people are impressed with that fast "boot" - particularly Gnome devs who even left out the poweroff button and had hibernation as default)

Damn, I thought they were pledged to Red Hat. Silly me. They seem to be Redmond bound.   ;D
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 21. April 2015, 16:54:09
(It is that thing where you computer goes to "sleep" and starts within seconds after you turn it on again - some people are impressed with that fast "boot" - particularly Gnome devs who even left out the poweroff button and had hibernation as default)

So when the time comes: here is HowTo (http://bjoernvold.com/forum/viewtopic.php?f=25&t=1763#p16976)

Computer goes to sleep!  I pay for the buggers electricity, it isn't allowed to sleep, even IF I do  >:D

Thanks for this though guys, it's a better idea to create a file I feel anyhow.  I think it would give more control i.e. where the file resides, it can be put on the largest partition and if you want to "swapoff" you can just delete the file and voila! instant free space  ;)

I am doing nothing for a few days except for enjoying my computer.  I spent a few days (thanks Loup) figuring out Btrfs and now I am just enjoying playing with a new Gnome install, it wouldn't work after updates but I got it sorted and I have been wanting to have a look for a while, now I am!  ;D

Next step is to try and set-up OpenRC with Btrfs but I'm leaving that for a few days  :o

Thanks again for the info.

Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Ponder on 21. April 2015, 17:14:19

Computer goes to sleep!  I pay for the buggers electricity, it isn't allowed to sleep, even IF I do  >:D


My mistake, I thought you were Irish, not Scotch.  ;D

Hibernating computers aren't powered up anymore than one that is simply turned "off."

Suspended computers are powered up to some degree, as everything is stored in RAM, which must be kept refreshed on your typical PC.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: darso on 21. April 2015, 19:51:03
My mistake, I thought you were Irish, not Scotch.  ;D

Hibernating computers aren't powered up anymore than one that is simply turned "off."

Suspended computers are powered up to some degree, as everything is stored in RAM, which must be kept refreshed on your typical PC.

I have a little Scottish on my Mothers side, maybe that's it!  :o ;D

Cheers,
darso.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: flippy on 24. May 2015, 14:00:58
This kinda dawn on me that I have sysvinit install with the lastest 8.13. But this got me thinking. If OpenRC is it own init. Am I ever going need sysvinit for anything?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 24. May 2015, 14:10:01
This kinda dawn on me that I have sysvinit install with the lastest 8.13. But this got me thinking. If OpenRC is it own init. Am I ever going need sysvinit for anything?
Technically OpenRC is more of an RC system than an init system, ie, it is used to manage services.

sysvinit is still required to boot up and halt the system.

For more details, https://wiki.gentoo.org/wiki/OpenRC
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: herbie643 on 24. May 2015, 21:09:28
Just wanted to post and say that the detailed instructions for moving from Systemd to OpenRC were flawless.   Took me about 30mins, and that is including the 'missed' graphical login procedure.
System 'feels' more responsive and on bootup, uses about 75-100mb less memory.
Great work on the Wiki page.
Straightforward and easy to follow.

Thanks for a job well done.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 24. May 2015, 22:04:48
Technically OpenRC is more of an RC system than an init system, ie, it is used to manage services.

sysvinit is still required to boot up and halt the system.

For more details, https://wiki.gentoo.org/wiki/OpenRC

We could think about providing openrc with runit instead of sysvinit.
>=0.16 support process supervision, the question is, do we need such gimmick?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mrbrklyn on 25. May 2015, 01:37:46
We could think about providing openrc with runit instead of sysvinit.
>=0.16 support process supervision, the question is, do we need such gimmick?

why?  Does it matter?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: aaditya on 25. May 2015, 04:46:36
Just wanted to post and say that the detailed instructions for moving from Systemd to OpenRC were flawless.   Took me about 30mins, and that is including the 'missed' graphical login procedure.
System 'feels' more responsive and on bootup, uses about 75-100mb less memory.
Great work on the Wiki page.
Straightforward and easy to follow.

Thanks for a job well done.
Thx for the feedback :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: herbie643 on 25. May 2015, 05:04:05
You are quite welcome.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: ganjaman70 on 26. May 2015, 22:37:13
How can I check if I'm running OpenRC with eudev?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mxx on 27. May 2015, 00:10:10
pacman -Q eudev ?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: herbie643 on 27. May 2015, 00:45:59
Or
rc-status --all | grep udev
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Ponder on 27. May 2015, 02:07:41
Or
rc-status --all | grep udev

That tells you that a version of udev is running, but not if it is eudev. The only way I know is to look at the packages. Eudev will conflict with the systemd version. Both versions can't be installed at the same time. If eudev is installed, it will be the version running.

I find that octopi is the easiest way to look at this sort of thing.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: ganjaman70 on 27. May 2015, 02:40:58
I see...

eudev: "/usr/bin/udevd". Otherwise the executable would be "systemd-udevd".

Nevertheless, last line of udevd & udevadm man pages say "eudev" :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: herbie643 on 27. May 2015, 02:51:30
I looked in the pamac and found

eudev-openrc
and under Files

/etc/init.d/udev-postmount

So I would assume, maybe I shouldn't assume, you know how that goes, but rc-status --all |grep udev shows

udev-postmount                                                    [  started  ]
and it appears eudev is running?

Title: Re: Booting with OpenRC: An alternative to systemd
Post by: ganjaman70 on 27. May 2015, 04:50:43
Yes
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: flippy on 27. May 2015, 05:23:07
We could think about providing openrc with runit instead of sysvinit.
>=0.16 support process supervision, the question is, do we need such gimmick?
I been testing out a distro that used pure runit. The boot time on runit is insane fast. On my new ssd. less then half sec boot. vs manjaro openrc 8.13 in 3 sec boot. boot time are base from grub to log in screen. or tty for me.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 27. May 2015, 10:24:13
I been testing out a distro that used pure runit. The boot time on runit is insane fast. On my new ssd. less then half sec boot. vs manjaro openrc 8.13 in 3 sec boot. boot time are base from grub to log in screen. or tty for me.

I know runit is fst if you use it, but runit with openrc would only serve as sysinit replacement, and openrc could be configured to use runit's process supervision. But I think, it not really a pressing feature we need.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mrbrklyn on 27. May 2015, 10:40:00
I know runit is fst if you use it, but runit with openrc would only serve as sysinit replacement, and openrc could be configured to use runit's process supervision. But I think, it not really a pressing feature we need.

Hi

That is why I asked what differece it would make.  Boottime seriously means nothing to me since I run this on my workstations and my small servers.  Is there any other advantage?

Ruben
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: handy on 31. July 2015, 16:16:35
I'm on OpenRC & eudev (& loving it) & want to set up NFS between two OpenRC boxes. I've had a bit of a search on the net but haven't really found the info that I need (or at least not recognised it).

Does anyone know where I can find the information on how to set up NFS on a Manjaro OpenRC system?

Thanks in advance.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 31. July 2015, 16:41:42
I'm on OpenRC & eudev (& loving it) & want to set up NFS between two OpenRC boxes. I've had a bit of a search on the net but haven't really found the info that I need (or at least not recognised it).

Does anyone know where I can find the information on how to set up NFS on a Manjaro OpenRC system?

Thanks in advance.

https://wiki.gentoo.org/wiki/NFS

:)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: handy on 01. August 2015, 02:31:19
@artoo: I had already looked at that page & bookmarked it. I find it a bit hard to understand with all of the extra Gentoo stuff. [edit:] There wasn't really that much extra Gentoo stuff... ;) /

It has been years since I last setup NFS & from memory (which isn't my strong point) it was fairly easy/simple to get going (harder to fine tune).

So it looks like I'll have to use the Arch & the Gentoo wiki's to find my way through this. The Arch one is much simpler, though systemd specific, which is of course why I'm posting the question here to begin with...
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: handy on 01. August 2015, 04:09:02
I think I've got the Server sorted out & now I've started on the Client, where I've struck a problem in the Gentoo wiki:

Quote
Client
Mounting remote directories

Before mounting remote directories, a few daemons must be be started first. This is the job of the nfsclient service.
root # /etc/init.d/nfsclient start

 * Starting rpcbind                                                        [ ok ]
 * Starting NFS statd                                                     [ ok ]
 * Starting NFS sm-notify                                               [ ok ]

The /etc/init.d/nfsclient script is missing from the machine which I followed the wiki instructions to convert from systemd to OpenRC/eudev yesterday.

As is /etc/init.d/nfs (& I haven't checked to see what others that don't belong to NFS may be missing?).

I'll copy them over from my full OpenRC/eudev install & see how I go from there...

I think it would be good if these files were included in the OpenRC base package. I also understand how easy it would be to miss them. ;)

[edit:] I'll post a list of the files that are in the /etc/init.d directory of the full OpenRC install that I did a few days ago, that are not on my machine that I converted according to the Manjaro wiki page yesterday. In case it is of any use to anyone (I chose not to install cups on the machine I converted yesterday):

Code: [Select]
cupsd
haveged
hdparm
nfs
nfsclient
ntp-client
ntpd
rfcomm
rpcbind
rpc.gssd
rpc.idmapd
rpc.pipefs
rpc.statd
rpc.svcgssd
rsyncd
sntp
syslog-ng
tlp
wpa_supplicant
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 01. August 2015, 09:25:01
I think I've got the Server sorted out & now I've started on the Client, where I've struck a problem in the Gentoo wiki:

The /etc/init.d/nfsclient script is missing from the machine which I followed the wiki instructions to convert from systemd to OpenRC/eudev yesterday.

As is /etc/init.d/nfs (& I haven't checked to see what others that don't belong to NFS may be missing?).

I'll copy them over from my full OpenRC/eudev install & see how I go from there...

I think it would be good if these files were included in the OpenRC base package. I also understand how easy it would be to miss them. ;)

[edit:] I'll post a list of the files that are in the /etc/init.d directory of the full OpenRC install that I did a few days ago, that are not on my machine that I converted according to the Manjaro wiki page yesterday. In case it is of any use to anyone (I chose not to install cups on the machine I converted yesterday):

Code: [Select]
cupsd
haveged
hdparm
nfs
nfsclient
ntp-client
ntpd
rfcomm
rpcbind
rpc.gssd
rpc.idmapd
rpc.pipefs
rpc.statd
rpc.svcgssd
rsyncd
sntp
syslog-ng
tlp
wpa_supplicant


Code: [Select]
sudo pacman -S nfs-utils-openrc
You mean like putting nfs-utils-openrc in openrc-base group?

Code: [Select]
pacman -Sgq openrc-base
cronie-openrc
cryptsetup-openrc
dbus-openrc
device-mapper-openrc
dhcpcd-openrc
glibc-openrc
inetutils-openrc
lvm2-openrc
mdadm-openrc
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: handy on 01. August 2015, 10:36:55
@artoo: What does the nfs-utils-openrc bring to the game? I didn't have that installed on my client machine, but I have my NFS4 network functioning?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 01. August 2015, 11:09:09
@artoo: What does the nfs-utils-openrc bring to the game? I didn't have that installed on my client machine, but I have my NFS4 network functioning?

It installs client and server init scripts.
So you wouldn't have to manually copy them like you did. :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: handy on 01. August 2015, 11:14:00
I'm in the process of attempting to get autofs running & it looks like it doesn't install properly. When I tried to run the following command:

Code: [Select]
sudo /etc/init.d/autofs start
as per the Gentoo wiki, I get the following error:

Code: [Select]
sudo: /etc/init.d/autofs: command not found
I had a bit of a ferret around inside of /etc but I can't find the file? Had a look in the pacman.log & it just says "transaction completed" there are no error messages.

So I really don't know where to go, no clues...
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: handy on 01. August 2015, 11:14:34
It installs client and server init scripts.
So you wouldn't have to manually copy them like you did. :)

That makes sense. :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 01. August 2015, 11:34:47
I'm in the process of attempting to get autofs running & it looks like it doesn't install properly. When I tried to run the following command:

Code: [Select]
sudo /etc/init.d/autofs start
as per the Gentoo wiki, I get the following error:

Code: [Select]
sudo: /etc/init.d/autofs: command not found
I had a bit of a ferret around inside of /etc but I can't find the file? Had a look in the pacman.log & it just says "transaction completed" there are no error messages.

So I really don't know where to go, no clues...

Code: [Select]
sudo pacman -S autofs-openrc
All *-openrc packages except openrc-core provide initscripts for the package they depend on.

eg cronie-openrc depends on cronie, syslog-ng-openrc depends on syslog-ng and so on.

You basically got an openrc layer on top of default packages you can use to pull in what you want.
Just have a look at openrc pacman groups with octopi  for example.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: handy on 01. August 2015, 15:26:27
Thanks aarto. :)

By the way, I've never seen any of the GUI package managers for Arch/Manjaro. Call me old fashioned... ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: flippy on 12. August 2015, 16:35:42
Don't feel like making a new topic so I'll post this here.  :P

This is a more a DE question. But also a theroy.
Are gtk3 DE starting to become more of a issue to used due to GNOME lack of consolekit support? If this is true. I wonder if the same issue will be in qt5. Or all this depend on the developer?


My mind went out to wonderland to much. Maybe being a little to concern to early.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 19. August 2015, 15:53:53
@flippy

Yes, right, its basically up to the developers.
I try to answer regarding gnome.
The bottleneck is systemd's logind.
As of now, the is no true equivalent to logind as alternative, but consolekit2 is heading towards implementing kind of logind replacement. Historically, consolekit was the precursor of logind, but logind is for various reasons difficult to replicate.
Consolekit2 is a forked and further developed version of unmaintained consolekit.
So the short answer is, gnome devs decided to remove consolekit support couple of months ago.
Their code doesn't support it any longer afaik. If someone was keen on patching in ck2 support, feel free to do.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: bsdtux on 31. August 2015, 15:35:46
I just installed this last night and I am at a loss of words. It was super fast, worked right out of the box. I started converting all my gentoo boxes over to this distro. Again I really appreciate your hard work on the switch from systemd to openrc and giving me a choice of init systems once more.

Not sure what I can do to help but let me know if there is anything I can do.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: keikun007 on 04. September 2015, 06:59:08
just out of curiosity, anybody knows if it'´s possible to use openrc only in ubuntu?
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 04. September 2015, 08:13:19
just out of curiosity, anybody knows if it'´s possible to use openrc only in ubuntu?

It is certainly possible.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: GreenMartian on 26. October 2015, 02:01:44
Hey artoo,

Nice work!

Do you plan to be with this spin of Manjaro for a while?

Thanks,
GM
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: koguma on 11. November 2015, 11:11:41
Just wanted to give another shoutout to artoo since the last post is a month ago.  Great job!

This is a really great endeavor.  I also think that once the inevitable disaster strikes with systemd and people bail on it like rats from a sinking ship it'll be great to have good alternatives.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 05. January 2016, 19:24:19
I totally forgot to announce, that I integrated a patch in openrc.

With the patch, users will find in /etc/conf.d/modules as new switch.

Code: [Select]
# if openrc should make use of /etc/modules-load.d
# systemd places stuff there
use_modules_load_d=false


This means, openrc will read conf files in /etc/modules-load.d and will write /etc/conf.d/modules at every boot. if set true. So it basically loads modules automatically, that are provided by kernel extra packages
It is deactivated by default, but it should work well except for hybrid cards eventually.
Enthusiasts can test by setting the switch to true, but please report back any errors.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: dxrobertson on 06. January 2016, 23:08:13
I totally forgot to announce, that I integrated a patch in openrc.

With the patch, users will find in /etc/conf.d/modules as new switch.

Code: [Select]
# if openrc should make use of /etc/modules-load.d
# systemd places stuff there
use_modules_load_d=false


This means, openrc will read conf files in /etc/modules-load.d and will write /etc/conf.d/modules at every boot. if set true. So it basically loads modules automatically, that are provided by kernel extra packages
It is deactivated by default, but it should work well except for hybrid cards eventually.
Enthusiasts can test by setting the switch to true, but please report back any errors.


This is not working for my b43 module I need to load.  I have blacklisted wl module and "unblacklisted" b43 in /etc/modprobe.d/linux41-broadcom-wl.conf.  In /etc/modules-load.d/modules.conf I put b43.  And my /etc/conf.d/modules contains a single line: use_modules_load_d=true.  The /etc/conf.d/modules file is being generated at each boot, copying the old file to  /etc/conf.d/modules.lastboot.

I can load the b43 with modprobe b43 and wifi works fine.

I am using Manjaro OpenRC xfce (The one just created by  aaditya) and my updates are all current.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: fdc1b on 07. January 2016, 00:57:14
Hi Artoo, I'm using the KDE Openrc version from some days and I'm more than happy, also if I have to tune some aspects. Anyway, some considerations.
First: I did an error voting and I'm using eudev, not udev, a click error; sorry  O:-)

Second: I got some little problems, almost all solved and they are:
1) I'm not able to startup pulseaudio as standard service (I read and tried all the options in the thread about it, but nothing), anyway, I was able to start it with the "Startup and Program" service in System Settings, so no problem, but strange
2) Wine emulation is slower and more CPU crunching than with the standard systemd Manjaro KDE version (I'm till using it as my production OS), and I'm not able to understand why: all look like identical
3) After the installation (KDE minimal the last version) the menu icon wasn't visible, and 2 reboot was needed
4) Plasma 5 seems to be slower to open and close the windows, but I must profile the time better, this is simply an impression
5) The upgrades are aligned with the standard Manjaro upgrade or there is a delay?

Just to inform you, but nothing so terrible and my BEST compliments for the great work!

I'm using a luks crypted disk with btrfs and no problems. In the next days I'll install also all the other programs that usually use and I'll do some deeper tests, but all seems to work fine.

If needed, I may manage some tests, I can install and I'll installa testing environment.

Good works also if its not yet ready for a "standard user", IMHO. I'll try also the xfce version, just cause I'm curious, but I like too much the Plasma environment ;)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: eugen-b on 07. January 2016, 12:37:35
@dxrobertson, I did modprobe b43 right after installing and had no problems.
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: Atsuri on 12. January 2016, 07:03:39
@dxrobertson, I did modprobe b43 right after installing and had no problems.

I think the recent kernels addressed some issue with the b43 module :). My MacBook 7,1 broadcom 4322 chip suddenly started working out-of-the-box again. Earlier it needed pulling the sta driver from AUR on Arch Linux or installing the module from the main repos here in Manjaro.

On my side I would like to applaud the openRC endeavor for Manjaro. The Gentoo-converted packages work flawlessly and together with the Manjaro/Arch base are how an openRC distro should work, I think - simple dependency resolution with sane syntax and output (hail pacman!) + PKGBUILDs. The only minor problem I had was the openGL provider setter through mhwd (Gentoo uses eselect for that, so there is not much difference, though eselect is somewhat 'canon') and dhcpcd not being enabled through rc-update on startup after install (no internet connection, therefore).

Either way, great job!!! :D
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: artoo on 12. January 2016, 14:06:52
@Atsuri, fdc1b

Thx both. :)

The relative slowness may be a result of systemd libs still present on the system.
Most arch packages are compiled with some systemd feature enabled.

Relatively to my gentoo on the same machine, yes, it tends to be a wee bit slower, however, my gentoo packages are also cpu optimized etc..., as opposed to generic arch/manjaro settings.

A long term goal would be to eliminate libsystemd, and to have a systemdless package base, which could also serve to reorganize swapping udev components. Its atm all pretty much libsystemd depend, instead of eg libudev, but this can only be addressed when there is some new needed infrastructure available.
It is nearly impossible to maintain currently a full package set by just one dev.

I am always open to include help to openrc team.  :)
Title: Re: Booting with OpenRC: An alternative to systemd
Post by: mrbrklyn on 21. February 2016, 04:54:56
@Atsuri, fdc1b

Thx both. :)

The relative slowness may be a result of systemd libs still present on the system.
Most arch packages are compiled with some systemd feature enabled.

Relatively to my gentoo on the same machine, yes, it tends to be a wee bit slower, however, my gentoo packages are also cpu optimized etc..., as opposed to generic arch/manjaro settings.

A long term goal would be to eliminate libsystemd, and to have a systemdless package base, which could also serve to reorganize swapping udev components. Its atm all pretty much libsystemd depend, instead of eg libudev, but this can only be addressed when there is some new needed infrastructure available.
It is nearly impossible to maintain currently a full package set by just one dev.

I am always open to include help to openrc team.  :)

i want to help