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 ( 10338 views )   |  permalink   |  $star_image$star_image$star_image$star_image$star_image ( 3 / 1028 )
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 ( 10815 views )   |  permalink   |  $star_image$star_image$star_image$star_image$star_image ( 3 / 3268 )
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 ( 11772 views )   |  permalink   |  $star_image$star_image$star_image$star_image$star_image ( 3 / 3453 )
Open Office Dictionaries 
Sunday, 17 February 2008, 00:00 - Knowledge, Open Office Stuff
Posted by Administrator
To add a new spelling dictionary, hyphenation dictionary or thesaurus files for another language, at least for OpenOffice 2.x:

Close all OpenOffice applications
Obtain the file for your language from OpenOffice Dictionaries Wiki
Unpack the zip-file to the dictionaries directory, e.g.:
    cd /usr/lib/openoffice/share/dict/ooo
unzip /path/where/downloaded/de_CH-20071211.zip

Run install-dict:
    /usr/lib/openoffice/install-dict 

Now you should see the new language module with Tools / Options / Language Settings / Writing Aids under "Available language modules"

Paths may vary, on my gentoo machine, the OpenOffice files are under /usr/lib/openoffice/
add comment ( 2305 views )   |  permalink   |  $star_image$star_image$star_image$star_image$star_image ( 3 / 3308 )
Data Synchronisation scripts for rsync 
Saturday, 10 November 2007, 00:00 - Tools & more
Posted by Administrator
Some simple shell scripts for synchronize your data using rsync.

You only have to adapt the variables at the beginning of the scripts according your needs.

rsync_home.sh


This one can be used if you have your remote system mounted onto the local file system, e.g. using NFS or SAMBA

Variables:

MOUNTPOINT: Path on local system where you have mounted the exported path of remote system
LOCALDIR: Path on local system from where you want to synchronize (by default your home directory)
EXCLUDEFILE: File where you can enter all path's (one on a line) that shouldn't be transferred
LOGFILE: File to log output of rsync into

rsync_home_ssh.sh


This one is an example if you want to access the remote system over SSH.

Variables:

REMOTEHOST: Full qualified host name of remote system
LOCALDIR: Path on local system from where you want to synchronize (by default your home directory)
REMOTEDIR: directory on remote host after the colon (":") (by default your home directory)
EXCLUDEFILE: File where you can enter all path's (one on a line) that shouldn't be transferred
LOGFILE: File to log output of rsync into

Remote Host can be either preset or passed as a command line parameter.

For not have to type your passphrase for your ssh key every time, you can store it within your SSH agent.
add comment ( 2571 views )   |  permalink   |  $star_image$star_image$star_image$star_image$star_image ( 3 / 3025 )

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