Gentoo - initramfs with busybox, lvm and some more...

Posted on Tue 11 August 2015 in Linux • Tagged with Gentoo, linux, notepad, initrd • 1 min read

Preparations

mkdir -p /usr/src/initramfs/{bin,lib/modules,dev,etc,mnt/root,proc,root,sbin,sys}
cp -a /dev/{null,console,tty,sda*} /usr/src/initramfs/dev/

busybox

USE="static make-symlinks -pam -savedconfig" emerge --root=/usr/src/initramfs/ -av busybox

LVM
LVM provides already a static binary :)

cp /sbin …

Continue reading

Apache2 & Jenkins & SSL

Posted on Sat 15 December 2012 in Linux • Tagged with Apache2, Gentoo, java, notepad, linux • 1 min read

$JAVA_HOME/bin/java -DJENKINS_HOME=/var/lib/jenkins -Xms=512m -Djava.awt.headless=true \
  -server -jar /var/lib/jenkins.war --httpPort=8080 --httpListenAddress=127.0.0.1 \
  --ajp13Port=-1 --logfile=/var/log/jenkins.log

apache vhost config

  ServerAdmin admin@example.com
  DocumentRoot "/srv/www/"
  ServerName jenkins.example.com

  SSLEngine On
  SSLVerifyClient …

Continue reading

Gentoo - Jenkins startup script

Posted on Wed 19 September 2012 in Linux • Tagged with Gentoo, linux, notepad • 1 min read

Not the best but its working for me...maybe JENKINS_* and JAVA_OPTS can be moved to /etc/conf.d/jenkins or something else.

#!/sbin/runscript

depend() {
        use logger dns
        need apache2
        provide jenkins
}

JENKINS_USER=jenkins
LOCKFILE=/var/run/jenkins.pid

JENKINS_HOME=/home/jenkins
JAVA_HOME=/usr/java/jdk1.6.0_25

JAVA_OPTS …

Continue reading

Gentoo and libvirt-0.9.12

Posted on Wed 01 August 2012 in Linux • Tagged with Gentoo, Linux, notepad • 1 min read

Yesterday i've started the update process for my system...so far, so good.

After a while emerge finished successfully...of course with a lot of messages, even some messages (from libvirt) that in my kernel config some features are missing e.g.

[...]
CONFIG_DEVPTS_MULTIPLE_INSTANCES
CONFIG_VETH
CONFIG_MACVLAN
CONFIG_NETFILTER_XT_TARGET_CHECKSUM
CONFIG_NETFILTER_ADVANCED
CONFIG_BRIDGE_NF_EBTABLES
[...]

As usually …


Continue reading

Gentoo / ArchLinux - NetworkManager and policykit

Posted on Thu 26 January 2012 in Linux • Tagged with Arch Linux, Gentoo, linux, notepad, networkmanager • 1 min read

If you want to use the NM (especially the nm-applet) in Gentoo or ArchLinux, you have to grant the user to access the NM. Therefor you create the following file

# cat /etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla 
[nm-applet]
Identity=unix-group:plugdev
Action=org.freedesktop.NetworkManager.*
ResultAny=yes …

Continue reading

Gentoo Binary Packages

Posted on Mon 16 January 2012 in Linux • Tagged with Gentoo, linux, notepad • 1 min read

GCC (4.5.3) flags for

* Intel(R) Core(TM) i7 CPU M 620
* Intel(R) Core(TM) i7 CPU 920
* Intel(R) Core(TM)2 Duo CPU T7700
CFLAGS="-march=core2 -mtune=generic -O2 -pipe -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mmmx"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu …

Continue reading