QEMU/KVM Virtual Host Manager 
Saturday, 29 September 2012, 21:11 - Tools & more, QEMU/KVM Stuff
Posted by Administrator

Description


This tiny script shows you a overview of the virtual machines on QEMU/KVM carrier servers using libvirt as management interface.

It can either show all virtual machines or only the running VMs.

Prerequisites


This PHP Script requires PHP extension libvirt-php

Download


Download the gzip'ped tar archive

Installation


Unpack the archive to a webserver document root with direct access to your libvirt hypervisors over TCP Port 16509 or SSH

Adapt at least the variables $dnsdomain and $arr_hosts to your infrastructure and change $comtype to "qemu+ssh" when SSH instead of direct port access is wanted

Try it out using http://yourwebserver/virtmgr/index.php

add comment ( 16 views )   |  permalink   |  $star_image$star_image$star_image$star_image$star_image ( 2.5 / 4 )
Postfix Mail Queue Manager 
Saturday, 29 September 2012, 00:00 - Tools & more, Postfix Stuff, Mail stuff
Posted by Administrator

Description


This PHP script shows the content of the mail queues of multiple servers and give you the possibility to hold, release, delete and reqeue single messages.

If you install a tiny wrapper script on mail servers, you may even remove or requeue multiple messages from a certain sender.

In addition, you can also requeue all messages (sendmail -q).

Download


Download the gzip'ped tar archive

Prerequisites:


On a web- or intranet accessible host (access protection highly recommended!):
- Web Server with PHP script language support (shell_exec function has to be enabled)
- Key-based SSH access to mail servers for webserver user

On mail servers:
- Postfix
- sudo

Installation


Unpack the archive beneath a webserver document root

Adapt the variables $mailservers and $user to your needs, if you like to use the selection by sender e-mail address feature, configure also variable $wrapper_cmd

Add the following lines to /etc/sudoers on the mail server(s), assuming user admin for login to the mail server(s) (change it to your needs):

admin    ALL=(ALL) NOPASSWD: /usr/sbin/postsuper
admin ALL=(ALL) NOPASSWD: /usr/sbin/postqueue
admin ALL=(ALL) NOPASSWD: /usr/local/bin/mailqueue.sh
(last line only needed for selection by sender address)

If you want to use the selection by e-mail address feature, put mailqueue.sh to some path on the mail server(s) and make it executable, e.g.:
cp mailqueue.sh /usr/local/bin/mailqueue.sh
chmod 755 /usr/local/bin/mailqueue.sh

Try it out using http://yourwebserver/mailqmgr/index.php
add comment ( 12068 views )   |  permalink   |  related link   |  $star_image$star_image$star_image$star_image$star_image ( 3 / 2947 )
Remove Apache VirtualHost section 
Tuesday, 17 July 2012, 00:00 - Tools & more, Apache Stuff
Posted by Administrator
This small perl script removes a VirtualHost configuration section

Call with:
remove_virtual.pl <webname> <apache conf file>

<webname> is to be replaced with the FQDN of the name based virtual host (ServerName)

<apache conf file> is the full path to the apache configuration file that contains the VirtualHost
add comment ( 9865 views )   |  permalink   |  $star_image$star_image$star_image$star_image$star_image ( 3 / 493 )
Schweizer Fernsehen (SF) Podcasts 
Monday, 16 July 2012, 00:00 - Tools & more, WDLXTV Stuff
Posted by Administrator
For this stuff to work, you need the alternative firmware WDLXTV for your WD TV Live Box. You can get that from the WDLXV site.

Simply get the file and copy it to /conf/ directory on your WD TV Live wdlxtv pimp'ed box:
 scp dailypodcasts.xml root@ip_of_your_wdtv:/conf/ 

(if you have trouble downloading the file, e.g. get displayed XML code, use "Save As..." function of your browser)
add comment ( 10361 views )   |  permalink   |  $star_image$star_image$star_image$star_image$star_image ( 3 / 2740 )
Playing WMA Pro content using 32bit mplayer on 64bit Linux 
Sunday, 20 June 2010, 20:18 - Knowledge
Posted by Administrator

Problem


You cannot play new WMA media (aka wma9) content on your 64bit Linux system because of missing audio format support, e.g you get an error message similar like that:

Cannot find codec for audio format 0x162.

Solution


Get win32codecs

Unpack the files to /usr/lib/codecs ,e.g. with

    tar xvjf essential-20071007.tar.bz2
mkdir -p /usr/lib/codecs
mv essential-20071007/* /usr/lib/codecs/
ln -s /usr/lib/codecs /usr/lib/win32

add the path to the library search path so the libraries can be found:

    echo "/usr/lib/win32/" > /etc/ld.so.conf.d/win32codecs.conf
ldconfig

Obtain the mplayer 32bit package (built for Ubuntu 9.10 Karmic Koala). Only the 32bit version can make use of the win32codecs!

Install the deb package:
    dpkg -i mplayer32_1.0svn_amd64.deb 

Run the 32bit mplayer with /usr/bin/mplayer32 <URL>

MPlayer should now play the stream or file, enjoy!!
add comment ( 11312 views )   |  permalink   |  $star_image$star_image$star_image$star_image$star_image ( 3 / 2885 )

<<First <Back | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Next> Last>>