OpenRC: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
No edit summary
Tgurr (talk | contribs)
mNo edit summary
Line 1: Line 1:
== Packages ==
== Packages ==
{{Box Code|emerge baselayout -pv|
 
<pre>
{{File|/etc/portage/package.use|sys-apps/openrc {{EnableFlag|ncurses}} {{EnableFlag|pam}} {{EnableFlag|unicode}}}}
[ebuild    U ] sys-apps/baselayout-2.0.1 [1.12.12] USE="-build (-bootstrap%) (-static%) (-unicode%*)" 23 kB
[ebuild  N    ] sys-apps/openrc-0.4.3-r3  USE="ncurses pam unicode -debug" 143 kB
</pre>
}}


== Installation ==
== Installation ==
{{Codeline|# emerge baselayout --oneshot}}
{{Root|emerge baselayout --oneshot}}


== Configuration ==
== Configuration ==
Merge your configs first:
Merge your configs first:


{{Codeline|# etc-update}}
{{Root|etc-update}}


Create a new symlink for your eth0, else your network won't be available after reboot:
Create a new symlink for your eth0, else your network won't be available after reboot:


{{Codeline|# cd /etc/init.d}}
{{Root|cd /etc/init.d}}


{{Codeline|# ln -s net.lo net.eth0}}
{{Root|ln -s net.lo net.eth0}}


Now edit /etc/conf.d/net, you'll find your old config in /etc/conf.d/net.eth0 but note that the syntax has changed so don't copy & paste. To set eth0 to a static IP you'll need something like this:
Now edit /etc/conf.d/net, you'll find your old config in /etc/conf.d/net.eth0 but note that the syntax has changed so don't copy & paste. To set eth0 to a static IP you'll need something like this:
{{Box File|/etc/conf.d/net|
 
{{File|/etc/conf.d/net|
<pre>
<pre>
config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255"
config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255"
Line 31: Line 28:
== Finalize ==
== Finalize ==


{{Codeline|# rm /etc/init.d/functions}}
{{Root|rm /etc/init.d/functions}}


{{Codeline|# rm /etc/conf.d/rc}}
{{Root|rm /etc/conf.d/rc}}


{{Codeline|# rm /etc/init.d/net.lo.openrc.bak}}
{{Root|rm /etc/init.d/net.lo.openrc.bak}}

Revision as of 17:41, 13 January 2011

Packages

File: /etc/portage/package.use
sys-apps/openrc ncurses pam unicode

Installation

# emerge baselayout --oneshot

Configuration

Merge your configs first:

# etc-update

Create a new symlink for your eth0, else your network won't be available after reboot:

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

Now edit /etc/conf.d/net, you'll find your old config in /etc/conf.d/net.eth0 but note that the syntax has changed so don't copy & paste. To set eth0 to a static IP you'll need something like this:

File: /etc/conf.d/net
config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255"
routes_eth0="default via 192.168.0.1"

Finalize

# rm /etc/init.d/functions
# rm /etc/conf.d/rc
# rm /etc/init.d/net.lo.openrc.bak