Get your browser to follow etqw:// links (Linux)

I managed to get both FireFox and Opera to run Enemy Territory – Quake Wars & join the server straight from the browser window.

First you need to create a little script to put it all together.

#!/bin/sh

# Script to run ETQW from a browser

ETQW=”/root/scripts/etqw.x86″

SERVER=`echo ${1} | cut -d “/” -f 3`

${ETQW} +connect ${SERVER}

You will have to change the ETQW variable to the location of your ETQW binary

Now you just need to get  Opera to run that script when you click a link.

Open Opera and Click

Tools –> Preferences –> Programs –> Add

 Put “etqw” in the protocol box

and the link to your connect script it the application box “/scripts/etconnect.sh”

Now ETQW will run when you click it from Opera

For FireFox you need to point the browser window to

about:config

you can now right click and choose New –> Boolean & set the Name to

“Network.protocol-handler.external.etqw”

& set it to true

Now Create a New String

“network.protocol-handler.app.etqw”

& Set the value to

 “/root/scripts/etconnect.sh”

Firefox Should now follow your links

Install KDE 4 SVN on Gentoo via Emerge (Gentoo)

To do this we will be using layman

To install the layman overlay manager

emerge layman

get the update overlay list

layman –fetch

add the kde overlay to your portage

layman -a kde

Tell portage to use the overlay where possible

echo “source /usr/portage/local/layman/make.conf” >> /etc/make.conf

Add these to make.conf

qt4 dbus taglib

I needed to re-emerge qt so it would add support tor the two new use flags

emerge –newuse qt

————-Start of Dependencies————-
i needed to add

app-misc/strigi **

dev-libs/libzip **

=media-libs/taglib-9999 **

=net-libs/telepathy-qt-9999 **

=net-voip/tapioca-qt-9999 **

=dev-libs/soprano-9999 **

To /etc/portage/package.keywords

Get these dependancies

emerge app-crypt/qca*

emerge =app-misc/strigi-0.5.7

media-gfx/exiv2-0.15 wanted me to run

revdep-rebuild

This application goes through all your packages and checked for broken links

Got More dependancies

emerge dev-libs/libzip

emerge =media-libs/taglib-9999

emerge =net-libs/telepathy-qt-9999

emerge =net-voip/tapioca-qt-9999

emerge =dev-libs/soprano-9999

—————End of Dependencies—————-

————–Start of KDE4 Monolithic Packages—
Add this

=kde-base/kdelibs-9999.4 **

=kde-base/kdepimlibs-9999.4 **

=kde-base/kdebase-9999.4 **

kde-base/qimageblitz **

=kde-base/kdeadmin-9999.4 **

=kde-base/kdeartwork-9999.4 **

=kde-base/kdeedu-9999.4 **

=kde-base/kdegames-9999.4 **

=kde-base/kdegraphics-9999.4 **

=kde-base/kdemultimedia-9999.4 **

=kde-base/kdenetwork-9999.4 **

=kde-base/kdepim-9999.4 **

=kde-base/kdetoys-9999.4 **

=kde-base/kdeutils-9999.4 **

=kde-base/kdevplatform-9999.4 **

=kde-base/kdevelop-9999.4 **

=kde-base/kdewebdev-9999.4 **

=kde-base/kdevplatform-9999.4 **

to /etc/portage/package.keywords

Then emerge all these packages

emerge =kde-base/kdelibs-9999.4

emerge =kde-base/kdepimlibs-9999.4

emerge =kde-base/kdebase-9999.4

emerge =kde-base/kdeadmin-9999.4

emerge =kde-base/kdeartwork-9999.4

emerge =kde-base/kdeedu-9999.4

emerge =kde-base/kdegames-9999.4

emerge =kde-base/kdegraphics-9999.4

emerge =kde-base/kdemultimedia-9999

emerge =kde-base/kdenetwork-9999.4

emerge =kde-base/kdepim-9999.4

emerge =kde-base/kdetoys-9999.4

emerge =kde-base/kdeutils-9999.4

————–End of KDE4 Monolithic Packages—

You can now use GDM to select KDE SVN

Note – Some developers recommend maxing a user just for KDE 4 , a few developers had trouble with KDE 4 making changes to config files in your /home/username  folder

I had no problems but may be something to think about

How to mount FTP servers as local folders (gentoo)

I have used the curlftpfs & FUSE for this mount

emerge curlftpfs

This will install the curlftpfs library & FUSE

We nom need to load the kernel module

modprobe fuse

We can now mount the FTP server

curlftpfs ftp://username:password@ventexwebdesigns.com.au/public_html /root/Desktop/PHP/

You should now find your filesystem mounted

When your finished run

fusermount -u /root/Desktop/PHP/

To unmount the FTP connection

Clark Connect On VMware (Ubuntu)

I really want to run http://www.clarkconnect.com/ as my gateway for my home network but i dont like to run more than one server 24-7 for environmental reasons.

I have a ubuntu server/media centre PC that is a Core 2 duo with 1gb of ram. Thats enough for two linux servers.

Add Hardware

At the moment i have one network card plugged into my network (eth0) for ubuntu’s traffic

I added another two

One (eth1) for Clark Connect’s internal traffic

And the second for Clark Connect’s Web Connection (Via ADSL)

Now i have a Ubuntu 7.10 machine with 3 nics

eth0 – Ubuntu

 eth1 – CC – LAN

eth2 – CC – WAN

Install VMware

I installed VMwarefollowing the instructions here

http://www.ubuntugeek.com/howto-install-vmware-tools-in-ubuntu.html

The only difference is that when it asks you about networks you want to bridge physical cards to virtual VMware cards

This will give you direct access to the cards by VMware sessions

Install Clark Connect on VMware

Now by logging into VMware i created a new Virtual Machine for clark connect and adding the network connections

I also told vmware to use the Clark connect ISO as the CD drive so i didnt have to bother burning off a CD

Now i just booted from the cd using VMware and installed as usual

I now have ClarkConnect running on VMware giving out DHCP addresses and Sharing my ADSL

Finishing Touches

The last job to do is to get VMware to boot Clark Connect on boot each time.

In the VMware server console i right clicked the Clark Connect Virtual Machine and hit Settings

On the Options tab there is an option Startup/Shutdown under here you can set the Virtual Machine to power on at Ubuntu boot time

All done

How To Install MythTv on Ubuntu 7.10 (basic) (Ubuntu)

I installed the following packages via Synaptic Package Manager
(You may need the Mulitverse and Universe Repositories)

It is important to note that you do not need all these packages but i want to setup some of the others later
eg news, extra themes etc

Package List

mytharchive mythbrowser mythcontrols mythdvd mythgallery mythgame mythmusic mythnews mythplugins mythstream mythtv mythtv-themes mythtv-transcode-utils mythvideo mythweather mythweb

During the Installation DPKG asked me the following questions

Do i want remote access to mythweb – Yes (i want to be able to schedule programs from other machines)

Do i want remote access to the mythtv database – Yes (i want to be able te use other frontends)

Fixing the Mysql Database

The Database installation didnt work on default settingg because i already have a database set so the MYSQL root password was not known by mythtv. If you didnt have MYSQL installed before this you will probably not need this step
To fix the database i ran as root

 dpkg-reconfigure mythtv-database

This asked me for the mysql root password

Adding yourself to the mythtv group

sudo gpasswd -a robert mythtv

gpasswd = the user group manager app
-a = add switch
robert = username
mythtv = the group we want the user added to

You will now need to logout and in again to get the new group settings

Run the mythtv-setup program
Open a terminal window and type

mythtv-setup

press enter

This will run the configuration program (it will ask you to shutdown the backend say yes)

This is the most complex part of the mythtv setup
As a general rule if you don’t know an answer leave it as default

In this section we need to tell myth about our hardware (capture card), tell myth about our video source (Free to Air TV) and then tell myth that we want to watch free to air tv on our capture card

The first menu item is the general configuration go in here

1. General
In here I needed to set

TV format = PAL

Frequency Table = Australia

XMLTV Offset = None (this says that the times in the tv guide are local times)

that’s all we need from here now go back to the main menu and go into Capture Cards

2. Capture Cards
All I needed here was to change my

card type = DVB DTV capture card

The name of the card came up below
Jump to menu and go for video sources

3. Video Sources
Set

Video Source Name = Free to Air HDTV

XMLTV listing = Transmitted guide only (EIT) – this will get us going for a start

Now for input connections go back to the main menu

4. Input Connections
This is where you connect the Capture card to the Free to Air Source
Select your Video Source

I then needed to scan for channels so I clicked “Scan for Channels”
I changed my

Country = Australia

Scan Type = FullScan

This scanned the Networks and added them all

I did not need to do anything in the channel editor

Finishing Up
Just escape out of the setup program and it will ask you to run mythtv-fill-database
This fills the database with the settings you have just set in the setup application
Setup is complete
If you go into tho applications menu —> Sound and Video —>MythTv Frontend

You should be able to watch TV on your PC

ProjectM in Amarok via LibVisual (Ubuntu)

In another post i showed how i installed ProjectM (The Open Source Milkdrop for Linux)

It has just been sitting dorment wasting hard drive space, now to tie it in with Amarok

Get the Source code from Sourceforge projectM website labeled (ProjectM-LibVisual)

Extract the code.

I needed an extra package

sudo apt-get install -y libsdl1.2-dev

then cd into the source directory and run

cmake . -DCMAKE_BUILD_TYPE=RELEASE

make

make install

Nom when you click visualisations in Amarok you will get ProjectM

<EDIT>

Diego has just pointed out that ubuntu now has packages to support Project M in amarok.

See his comment for details

</EDIT>

Third Party mirrors list (gentoo)

I had a problem with some sourceforge mirrors timing out.

looking at /usr/portage/profiles/thirdpartymirrors

idsoftware ftp://ftp.idsoftware.com/idstuff ftp://dl.xs4all.nl/pub/mirror/idsoftware/idstuff ftp://ftp.fu-berlin.de/pc/g$

jpackage ftp://mirrors.dotsrc.org/jpackage ftp://jpackage.hmdc.harvard.edu/JPackage http://sunsite.informatik.rwth-aac$

kde http://ibiblio.org/pub/mirrors/kde ftp://ftp.kde.org/pub/kde ftp://ftp.gtlib.cc.gatech.edu/pub/kde ftp://down$

kernel http://www.kernel.org/pub http://www.us.kernel.org/pub http://www.de.kernel.org/pub http://www.fr.kernel.org/$

liflg http://liflg.death-row.org/files/native http://mirrors.ecology.uni-kiel.de/games/liflg/native http://home.coc$

lokigames http://mirrors.dotsrc.org/lokigames/updates http://lokifiles.tuxgames.com/updates

macromedia http://sluglug.ucsc.edu/macromedia http://ruslug.rutgers.edu/macromedia http://macromedia.mplug.org http://ma$

nero http://ftp3.use.nero.com/software/NeroLINUX http://ftp4.use.nero.com/software/NeroLINUX http://ftp5.use.nero.$

mplayer http://www1.mplayerhq.hu/MPlayer http://www2.mplayerhq.hu/MPlayer

mysql http://mysql.mirror.secondchapter.info http://mysql.secsup.org ftp://mirror.mcs.anl.gov/pub/mysql http://mirr$

Theres a snippet

I just dumped the lagging mirror from the file and now i dont have to wait for the server to timeout before it jumps to the next