Search Results: "Jan Wagner"

27 October 2007

Jan Wagner: software depencies

First the good thing: I updated wordpress to 2.3. Now the bad thing: I updated wordpress to 2.3. With 2.3 there where many infrastructure changes. For a complete list, see the Release Announcement. The most extensions breaking change was the implementation of native tag support. Referencing to Not working Plugin List Ultimate Tag Warrior and Extended Live Archives are problematic. Both caused troubles on update, but there is a fix for ELA and one for UTW. By reviewing the informations for writing this articel, I noticed that I’m running fine with the Ultimate Tag Warrior Bugfix Release provided by Christine from the Internet.
My theme K2 was needing also an update, which caused the style to be broken. So waiting for a fix did take little longer, but when reviewing it, I noticed that only a css class name did need an update.
This all teaches me, when using a project with much depencies, it will be a mess when updating, as long as isn’t all provided by one source. It’s some kind of using a project “still in development”.
Update: While we are at “still in development” .. I updated to 2.3.1-RC1 some seconds ago. :)

20 October 2007

Jan Wagner: wordpress plugin and widget packages

Yesterday I was going through the plugins and widgets, if there are any updates or such. I realized again, that updating of plugins (and maybe searching for the relocated download source) makes me mad. Also testing and switching back is annoying much.
So I decided to package plugins and widgets I use. Since some plugins and widgets are not maintained long enought for any debian release cycle or getting obsolet with new wordpress releases, I decided to maintain the packages outside of the debian project. Anyways … some people are also scared about the security situation of wordpress. I guess this isn’t much better for wordpress extensions. Next pity, some extensions or any equivalents aren’t available for wordpress 2.3 (yet). If you run multiple blogs via the stock debian package and wan’t to make use of the new wordpress version in any of your sites, you have update all at once … which maybe not a way you want to go. I decided to repackage wordpress 2.3.0 as wordpress23, which allows you to install wordpress (<<2.3.0) and wordpress23 at same time. If you want to use debian plugin, widget or theme packages or use these from your normal wordpress installation (/usr/share/wordpress) with wordpress23, you need to symlink the dirs. For example:

# mv /usr/share/wordpress23/wp-content/plugins/ /usr/share/wordpress23/wp-content/plugins.orig
# mv /usr/share/wordpress23/wp-content/themes/ /usr/share/wordpress23/wp-content/themes.orig
# ln -s /usr/share/wordpress23/wp-content/plugins /usr/share/wordpress/wp-content/plugins
# ln -s /usr/share/wordpress23/wp-content/themes /usr/share/wordpress/wp-content/themes Remember that package updates of wordpress or wordpress23 may overwrite parts of /usr/share/wordpress/wp-content/[plugins themes] in such situation. BE CAREFULL! You can get the stuff via apt-line:

deb ftp://ftp.cyconet.org/debian wordpress main non-free contrib Or directly from: http://ftp.cyconet.org/debian/archive/wordpress/ The actual package list is: wordpress-plugin-af-extended-live-archive
wordpress-plugin-ald-spa
wordpress-plugin-all-in-one-seo-pack
wordpress-plugin-exec-php
wordpress-plugin-google-sitemap-generator
wordpress-plugin-landingsites
wordpress-plugin-lightbox-2
wordpress-plugin-now-reading
wordpress-plugin-page-links-to
wordpress-plugin-photopress
wordpress-plugin-related-posts
wordpress-plugin-rolemanager
wordpress-plugin-sideblog
wordpress-plugin-spam-karma
wordpress-plugin-stats
wordpress-plugin-ubernyms
wordpress-plugin-utw
wordpress-plugin-utwgooglesitemaps
wordpress-plugins
wordpress-widget-category-cloud
wordpress-widget-samsarin-php
wordpress-widget-utw-cloud
wordpress-widgets
wordpress23 If you want a plugin or widget included and it makes sence to do so, drop me a mail, where to grab. Be aware that UTW isn’t supported since wordpress 2.3 anymore. A tag system was included into wordpress and you need to search replacements for all the nice UTW extension! Stay tuned! , , , , ,

13 September 2007

Jan Wagner: debian-cyconet-archive-keyring

If you experience the following error:

W: GPG error: ftp://ftp.cyconet.org etch-backports Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 8B78E5581BCDFF8C You may fix it with something like:

# aptitude -t etch-backports install debian-cyconet-archive-keyring , , ,

5 September 2007

Jan Wagner: check updates via nagios

On your clients you have to modify /etc/snmp/snmpd.conf:

#com2sec paranoid default public
com2sec readonly default public
exec .1.3.6.1.4.1.2021.8.3 aptupdate /usr/local/bin/nagios-check-apt-updates Get the check script to the client:

# wget –no-check-certificate \
https://kosh.ganneff.de/ganneffutils/nagios/nagios-check-apt-updates \
-O /usr/local/bin/nagios-check-apt-updates
# chmod +x /usr/local/bin/nagios-check-apt-updates Allow the snmp user to make use of apt-get:

# echo “snmp ALL=(ALL) NOPASSWD: /usr/bin/apt-get update” >> /etc/sudoers
# echo “snmp ALL=(ALL) NOPASSWD: /usr/bin/apt-get –simulate upgrade” >> /etc/sudoers Restart the snmpd:

# /etc/init.d/snmpd restart
Restarting network management services: snmpd. On the nagios monitoring system you have to run something like this:

# /usr/lib/nagios/plugins/check_snmp -H <client> -t30 \
-C public -o .1.3.6.1.4.1.2021.8.3.101.1 \
-r “No updates available”
SNMP CRITICAL - *”Security updates (1): libkrb53; “* iso.3.6.1.4.1.2021.8.3.101.1=”Security updates (1): libkrb53; ” After upgrading the client you should get:

# /usr/lib/nagios/plugins/check_snmp -H <client> -t30 \
-C public -o .1.3.6.1.4.1.2021.8.3.101.1 \
-r “No updates available”
SNMP OK - “No updates available” iso.3.6.1.4.1.2021.8.3.101.1=”No updates available” , ,

Jan Wagner: eGroupware 1.4.001.dfsg-2.1~bpo40+1 backported to etch

I did upload a updated version of eGroupware to my pool. You can grab it from http://ftp.cyconet.org/debian/archive/bpo/egroupware/1.4.001.dfsg-2.1~bpo40+1/ or via:

deb ftp://ftp.cyconet.org/debian etch-backports main non-free contrib For installing the rules analog backports.org applies. Have fun! , , , ,

3 August 2007

Jan Wagner: Conditional greylisting (with postfix, policyd-weight and postgrey)

In case you think that greylisting might have some disadvantages but give you also some benefits, you probably have thought about to use greylisting with some conditions. For example if you checked some parameters of the mail and you (or better your mailsystem) guess it may be spam, greylisting could be very usefull.
Until now, I was using plain policyd-weight. But mails with $REJECTLEVEL <= score <= $DEFER_LEVEL where in some conditions defered (see policyd-weight default) and if they come back with the same conditions, they will be defered twice. So it makes sence to me to greylist them and if they return within $DEFER_LEVEL, they will pass cause the greylist will allow them.
At first let’s create a restriction class which we can call from policyd-weight within main.cf of postfix:

# restriction class for use with polw (DEFER_ACTION)
smtpd_restriction_classes = greylist
greylist = check_policy_service inet:127.0.0.1:60000 To call postgrey for $REJECTLEVEL <= score <= $DEFER_LEVEL you need to make use of the restriction class “greylist” and let $DEFER_STRING match all defer strings, to get them all greylisted:

# echo “\$DEFER_STRING = ‘NOT’;” >> /etc/policyd-weight.conf
# echo “\$DEFER_ACTION = ‘rc:greylist’;” >> /etc/policyd-weight.conf
# /etc/init.d/postgrey restart Also you may have a look into The DNSBL countries.nerd.dk. This might be a way to score connections comming from well known spamming countries. But keep in mind, that there may also legitim mails comming from those! ;) , , ,

7 July 2007

Jan Wagner: Ignoring security (usability)

Since some time, Deutsche Bahn rolled public wireless lan called “WLAN am Bahnhof” out at 25 railroad stations, you can choose between 4 providers. Sounds really nice, but beside the economical conditions, there is also at least one security issue.
Connecting to the network and opening your favorite browser redirects you to a encrypted portal. So far, so good … the really bad news is, that the certificate expired over 6 years ago.
Broken certificate
This seems to be a normal behavior, since it happens often, that invalid certificates are used. This leeds to blunted users, which aren’t verifying such certificates anymore, even when it’s important.
Does anybody know a reasonable way to notify anybody who can solve the problem there beside the normal contact forms? , , ,

28 June 2007

Jan Wagner: performancing.com and privacy

Today I was crawling through my mail logs for various reasons.
I was really surprised, that I saw a mail to a dedicated mailaddress which I’m using for communication with performancing.com. I was short checking, if this mailaddress is anywhere published at performancing.com, but couldn’t find anything. A one liner over the last week of mail logs:

# zgrep performancing /var/log/mail.info* grep clam wc -l
26 For a address only used for communicating with one organisation (used as contact mail address) this seems a bit too much traffic and this are only the mails, which was accepted by the MTA. So the questions comes to my mind …. what happens with the addresses at performancing.com? Maybe I missed something? , ,

18 June 2007

Jan Wagner: Booting Linux on Cisco 7513

Today I was reconfiguring a Cisco 7513 with a RSP 16 and a FastEthernet module inside.
So I did a “erase nvram” and a “reload”. After booting I was surprised to see the following in my Terminal:

Would you like to enter the initial configuration dialog? [yes/no]:
Loading pxelinux.0 from 10.42.10.50 (via FastEthernet4/0/0): !!!
[OK - 13156 bytes] So the box took an IP via DHCP and tried to netboot. (Un)fortunately it only breaks my terminal, so no worries! ;) , , ,

6 June 2007

Jan Wagner: PHP packages in etch and binary compatibility to 3rd party extensions

Since etch php is compiled with large file support. This breakes binary compatibility to other packages, which are commonly not compiled with LFS and leads into trouble with 3rd party extensions, cause these are precompiled against the ABI of upstream and LFS not turned on. One example is Zend Optimizer. You may say this will only hit closed source applications, but if these are customer requirements, you have to solve the issue in some way.
You can do this by compiling your php and all extension from source without LFS enabled, but here you have to care about bugs, regressions and exploits for your own.
An other solution is to rebuild the packages from etch with LFS disabled. I’ve done this with the source packages of php4 and php5 from etch. Additionaly I did backport php-suhosin from unstable against this php packages for php4 and php5. Packages are available at http://ftp.cyconet.org/debian/archive/special/ or via

deb http://ftp.cyconet.org/debian etch-special-cyconet main non-free contrib If there are any DSA popping up, you can expect updates with a short delay. Please keep in mind, that you cant install php extension directly from etch. You need to rebuild them against php[45]-dev with disabled LFS. Other php packages may apear later. , , , , ,

22 May 2007

Jan Wagner: recent eGroupware for debian

Since one week eGroupware 1.4RC1 is available. Peter did upload it into experimental and I did repackage it for etch, for a smarty integration (dpkg -i for > 15 packages sucks).
You can download it by using the following line in sources.list:

deb ftp://ftp.cyconet.org/debian etch-backports main non-free contrib Please note that you also need installed egroupware-egw-pear.
If you experience troubles, report your bugs upstream. , , , ,

19 May 2007

Jan Wagner: Pimp my T5725

Yesterday my ordered HP Thin Client T5725 arrived. The clue is, Debian sarge is and no moving parts (no noise) are inside. It’s a really nice thin client and it can be used as Surfstation out of the box. There is also a “HP Connection Administrator” which can manage ‘Citrix‘, ‘rdesktop‘ and ‘XDMCP‘ connections.
After taking a short overview, I decided to update to etch. This was a kind tricky, cause packages did need to update in correct order to save the HP packages. Due the switch from Xfree to xorg with etch, the graphical frontend for configuring the X server didn’t work anymore, but in my environment this is no issue.
So now I’m really happy with a HP Thin Client and bleeding edge software on it, for xdmcp use. ;) , , , ,

17 May 2007

Jan Wagner: New Wordpress (2.2.0) etch-backport

I did rebuild the brand new version of wordpress for etch. New user requests and etch-bpo stated:
* Is the backport neccessary? I don’t think we should upload packages to bpo
simply because we can do it if you can install the package directly from
testing without any recompilation we shouldn’t add it to bpo. Pinning
exists.
So I’m not allowed to upload it to backports.org, but I did upload it to my repro, like the following other packages: You can download it by using the following line in sources.list:

deb ftp://ftp.cyconet.org/debian etch-backports main non-free contrib , , , , , ,

24 April 2007

Jan Wagner: windows in domU on etch. where is the showstopper?

Since some days I’m trying to install windows into a domU just for fun. All went fine until accessing discs. Sometime partition is not formatable, sometimes files could not read from cdrom. To be sure, it’s not the disc image, I used a fresh one from a MSDN Subscription, but it didn’t help. Searching around on web, I found that I’m not the only one, with this issue. The common(s) seems to be etch (and AMD CPU). I found traces of the issue at SP Team Blog, xen-users and xen-forum (german). Maybe anybody can enlighten me? , , ,

20 April 2007

Jan Wagner: Is DNSSEC ready for wild life?

Today the RIPE DNS for LIRs Training Course did take place. (some not up to date course material can be found here)
Managing some thousands of zones inclusive nameserver infrastructure behind since several years, I thought it would be neat to provide a secure dns chain to our costumers.
After going deeper into the material within the course, I recognized the following impacts: Since the last issue isn’t solved (yet), it doesn’t make any sence for me to invest resources into setting up DNSSec infrastructur, cause the end user would not recognize if the communication with the resolving nameserver or the resolving nameserver itself is taken over. Any complaints and/or hint? Did I missed something? , , ,

17 April 2007

Jan Wagner: Got Hardware Donation

Last weekend I got a hardware donation from muempf. It’s a new 1U server with the following specs:
Supermicro P8SCi Systemboard
Intel P4 3.00GHz
2x 512 MB DDR2 533MHz unbuffered ECC Systemmemory
2x 160 GB SATA disk (ST3160812AS)
2x GE Networkcard (BCM95721)
Console Redirection
I ordered additional 2x 1024 MB DDR2 533MHz modules and replaced an old server with this new system.
The system was installed on a Software Raid(1). The system migration was smooth, except problems getting the NICs up and running. They was recognized as eth2 and eth3 (10 MBit and no link). After hours searching around, I was guessing the problem is anywhere related to udev. Daniel told me to wipe ‘/etc/udev/rules.d/z25_persistent-net.rules’ nearly at the same time I saw, this was the only file with different size in ‘/etc/udev/’ compared to a working (etch) system on this hardware. Removing the file did the trick. As the system is running now very well, sincere thanks are given to muempf! ,

29 March 2007

Jan Wagner: Taking Xen guests (domU) alive via routed network

The xend config looks like this:

playground:~# grep -v ^# /etc/xen/xend-config.sxp
(network-script ‘network-bridge netdev=dummy0′)
(vif-script vif-bridge)
(dom0-min-mem 196)
(dom0-cpus 0) Creating volume group for Xen domU (/dev/hdb2 was allready created with id 8e):

playground:~# pvcreate /dev/hdb2
Physical volume “/dev/hdb2″ successfully created
playground:~# vgcreate xen-vol /dev/hdb2
Volume group “xen-vol” successfully created
playground:~# vgscan
Reading all physical volumes. This may take a while…
Found volume group “xen-vol” using metadata type lvm2 Creating first domU:

playground:~# xen-create-image –ip 192.168.222.50 –hostname xetch.blubb.cyconet.org
General Infomation
——————–
Hostname : xetch.blubb.cyconet.org
Distribution : etch
Fileystem Type : ext3
Size Information
—————-
Image size : 4Gb
Swap size : 1024Mb
Image type : full
Memory size : 128Mb
Kernel path : /boot/vmlinuz-2.6.18-4-xen-vserver-686
Initrd path : /boot/initrd.img-2.6.18-4-xen-vserver-686
Networking Information
———————-
IP Address 1 : 192.168.222.50
Netmask : 255.255.255.0
Gateway : 192.168.222.1
Creating ext3 filesystem on /dev/xen-vol/xetch.blubb.cyconet.org-disk
Done
Installing your system with debootstrap mirror ftp://ftp.de.debian.org/debian/
Done
Running hooks
Done
No role script specified. Skipping
Creating Xen configuration file
Done
Setting up root password
Enter new UNIX password:
etype new UNIX password:
passwd: password updated successfully
All done
Logfile produced at:
/var/log/xen-tools/xetch.blubb.cyconet.org.log Add the following to /etc/network/interfaces:

auto dummy0
iface dummy0 inet static
address 192.168.222.1
netmask 255.255.255.0
network 192.168.222.0
broadcast 192.168.222.255 Bringing up network interface, restarting xen and starting the domU:

playground:~# ifup dummy0
playground:~# /etc/init.d/xendomains stop
playground:~# /etc/init.d/xend restart
playground:~# /etc/init.d/xendomains start
playground:~# xm create xetch.blubb.cyconet.org.cfg -c
Using config file “/etc/xen/xetch.blubb.cyconet.org.cfg”.
… If you want to autostart your domUs, you have to symlink the configfile to /etc/xen/auto:

playground:~# mkdir /etc/xen/auto/
playground:~# ln -s /etc/xen/xetch.blubb.cyconet.org.cfg /etc/xen/auto/xetch.blubb.cyconet.org.cfg , , , ,

28 March 2007

Jan Wagner: Getting started with XEN on etch

Today I thought it’s time to look deeper into the Xen hype. So I decided to install xen on etch. I followed Ganneffs recommandation

playground:~# aptitude install bridge-utils iproute \
xen-ioemu-3.0.3-1 xen-utils-3.0.3-1\
xen-linux-system-2.6.18-4-xen-vserver-686 libc6-xen Booting the dom0 leeds me into kernel panic, cause no root device was found. Hmm … there seems to be the driver missing. Right - there wasn’t any /boot/initrd.img-2.6.18-4-xen-vserver-686.
Waldi did hint me to /var/lib/dpkg/info/linux-image-2.6.18-4-xen-vserver-686.postinst and I got my ramdisk this way:

playground:~# update-initramfs -c -t -k \
2.6.18-4-xen-vserver-686
playground:~# command -v update-grub > \
/dev/null && update-grub After booting dom0 successfully, my serial console disappeared. After some digging around, I got the clue I need to tell xen, that there is one.
I modified /boot/grub/menu.lst:

# xenhopt=com1=115200,8n1 console=com1
..
# xenkopt=console=vga Dom0 is running now, lets see what we can do next, maybe:

playground:~# aptitude install xen-tools , , , ,

18 March 2007

Jan Wagner: MySQL5 support in php5 packages on backport.org

I’m stuck of the requests linking php5 on backports.org against “MySQL5″.
You need support of MySQL5 or the mysqli extention for your php5 packages for sarge? So the packages on backports.org are not what you want. The packages are compiled against libmysqlclient12 (mysql 4.0) cause all apache modules (on backports.org) are compiled against this version. Linking php5 against an other version will lead you in trouble when using these apache modules and php5 together, cause sarge doesn’t support “versioned symbols”. For more information see the threads on php-maint or
backports-users
! If you install packages from backports.org, you should read the latter one anyways. , , , ,

8 March 2007

Jan Wagner: vroot support gone in debian kernel 2.6.18 why?

# grep -i vroot /boot/config*-vserver*
/boot/config-2.6.16-2-vserver-686:CONFIG_BLK_DEV_VROOT=y
/boot/config-2.6.17-2-vserver-686:CONFIG_BLK_DEV_VROOT=y
/boot/config-2.6.18-3-vserver-686:# CONFIG_BLK_DEV_VROOT is not set
/boot/config-2.6.18-4-vserver-686:# CONFIG_BLK_DEV_VROOT is not set Does anybody know, why it’s not compiled in since 2.6.18 anymore? , ,

Next.

Previous.