Archive for the ‘Notepad’ Category

mutt: daily use (still in progress)

Tag messages matching shift-t -> “search string” Limit messages matching (pattern) l > ~T (tagged) l > ~A (all) l > ~N (new) l > ~U (unread) l > “search string” Random commands ;d > Delete tagged messages s > Move message ;s > Move tagged messages b > Bounce messages

Apache2 & Jenkins & SSL

$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 <VirtualHost *:443> ServerAdmin admin@example.com DocumentRoot "/srv/www/" ServerName jenkins.example.com SSLEngine On SSLVerifyClient none SSLVerifyDepth 3 SSLCertificateFile /etc/ssl/example.crt SSLCertificateKeyFile /etc/ssl/example.key ProxyRequests Off ProxyPreserveHost On <Proxy http://127.0.0.1:8080/*> Order deny,allow Allow from all </Proxy> ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ <Location /> Order allow,deny Allow from all AuthType [...]

Building qemu & libvirt from scratch…

Pre-requirements git clone git://git.qemu.org/qemu.git git clone git://github.com/sahlberg/libiscsi.git http://libvirt.org/sources/libvirt-1.0.0.tar.gz (4/12/12) aptitude install libvdeplug2 libvdeplug2-dev libaio1 libaio-dev libcap-dev libattr1-dev libsdl-dev libxml2-dev Building libiscsi: ./autogen.sh ./configure make && make install qemu: ./configure –enable-kvm –enable-vde –enable-virtfs –enable-linux-aio –enable-libiscsi –enable-sdl –target-list=i386-softmmu,x86_64-softmmu,i386-linux-user,x86_64-linux-user –audio-drv-list=alsa make && make install libvirt: (maybe you should build libvirt with python < v3.2) ./configure [...] configure: Drivers [...]

aacraid & arcconf – Create a RAID5 online

|– Drives –| arcconf CREATE 1 LOGICALDRIVE Name R5_3TB Rcache RON Wcache WT MAX 5 0 4 0 5 0 6 0 7 Raid size

Gentoo – Jenkins startup script

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="-DJENKINS_HOME=${JENKINS_HOME}/jenkins-home -Xmx512m -Djava.awt.headless=true -server" JENKINS_OPTS="–httpPort=8080 –httpListenAddress=127.0.0.1 –ajp13Port=-1" JENKINS_OPTS="${JENKINS_OPTS} –logfile=${JENKINS_HOME}/jenkins.log" ARGS="${JAVA_OPTS} -jar ${JENKINS_HOME}/jenkins.war ${JENKINS_OPTS}" start() { ebegin "Starting ${SVCNAME}" start-stop-daemon –user ${JENKINS_USER} [...]

Gentoo and libvirt-0.9.12

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 i’ve ignored these messages After a [...]

“No Java compiler available” on SLES11SP1 and tomcat6

On one of my two sle11 machines i had a java exception which i could not explain. java.lang.IllegalStateException: No Java compiler available org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:581) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.mule.galaxy.web.ThreadLocalCacheFilter.doFilter(ThreadLocalCacheFilter.java:27) [...] # rpm -qa tomcat6 tomcat6-6.0.18-20.35.36.1 Oracle Java JDK 1.6.0_27 After i compared both, i’ve found some missing links on the second one. # ln -s [...]

wodim

Burning ISO image wodim speed=16 dev=/dev/cdrw image.iso Copy on-the-fly genisoimage -R -T -V /dev/cdrom | wodim dev=/dev/cdrw Blanking CDRW wodim dev=/dev/cdrw blank=disk

Gentoo / ArchLinux – NetworkManager and policykit

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 ResultInactive=no ResultActive=yes Thats necessary because polkit-auth was removed from the policykit package. Also you must add the user [...]

pv – monitor the progress of data through a pipe

I’ve found a very nice tool pv… $ dd if=/dev/sda1 | pv | dd of=backup.img 359MB 0:00:05 [75.3MB/s] [ <=> ]