Archive for the ‘Tech’ Category

by @ 7:15   Linux / Unix | Tech   Permalink

Have Xampp run at boot time

Wednesday, September 27th, 2006

“”Many people know from their own experience that it’s not easy to install an Apache web server and it gets harder if you want to add MySQL, PHP and Perl. XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use – just download, extract and start.“”

Quoted from Apache Friends. Home of the Xampp project.

It took me some time to find the information I need to get Xampp to start when the computer boots up. Apache Friends has a small How To to get the process going everytime, but it failed to work for me. So Borntwisted and myself had a natter about it and decided to add the Xampp start command into the startup programs and voila, it works a treat.

If the Apache Friends info does not work for you, and you are using Ubuntu Dapper then follow these simple instructions.

  • System
  • Preferences
  • Sessions
  • Startup Programs (tab)
  • Add

Enter the following command:

sudo /opt/lampp/lampp start

When your computer reboots you should now have Xampp start as a process.

Page 4 of 512345

Fix Firefox sound issues (Ubuntu Dapper)

Wednesday, September 27th, 2006

I am using the pre-installed version of Mozilla Firefox for Linux, some of you I know are not. This fix defiantly works on the pre-installed version, it is a little flaky on a manual install of Firefox and has been known not to work.

Please do try it if you have the manual install and hopefully it will work for you.

Open a new terminal window and type the following command:

sudo aptitude install alsa-oss

Once completed, enter the following command:

sudo gedit /etc/firefox/firefoxrc

Find and replace:

FIREFOX_DSP=”none”

With:

FIREFOX_DSP=”aoss”

Close and restart Firefox. In some cases a full reboot is required.

Page 4 of 512345

Realplayer Sound fix (Ubuntu all versions)

Wednesday, September 27th, 2006

I had to download the RealPlayer for Linux because of certain videos and the plugin for Firefox.

unfortunatly I had no sound, although video quality was fantastic. So after some searching around I found a few fixes, this one worked for me.

Open your terminal window and edit this file in your favourite text editor (“gedit” for me) You will also need to substitute the RealPlayer version with the version you have.

  1. sudo gedit /usr/lib/realplay-10.0.8/realplay

Find the line near the bottom of the file that says: (line 73 for me)

  1. $REALPLAYBIN”$@”

Replace that line with the following:

  1. aoss $REALPLAYBIN”$@”

EDIT

As Michael Olberg kindly pointed out (thank you) you may need to double check that you have the aoss package installed.

To check that it is installed, or to install it, just type the following into a terminal window.

  1. sudo apt-get install alsa-oss
  2. or you can just click this link (provoding you are viewing from an ubuntu machine)
Page 4 of 512345

Ubuntu ‘Open as Root’ Script

Tuesday, September 26th, 2006

Open a terminal window and enter:

gedit ~/.gnome2/nautilus-scripts/openas-root

Now add this code to the file

#!/bin/sh ### openas-root: ### written by alexp ### nautilus script for opening the selected files as superuser (uid=0), ### utilizing the appropriate applications. for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do gksudo “gnome-open $uri” & done ### end of file.

Save and close this file.

Now enter this command into the terminal window:

chmod +x ~/.gnome2/nautilus-scripts/openas-root

Your all done. Right click any file or folder and under scripts you will find – openas-root

Enjoy.

Page 4 of 512345

Install Internet Explorer on Ubuntu Dapper

Friday, September 22nd, 2006

Unfortunatly we all need to use Internet Explorer at some point. Even us Linux users require it to test web designs to make sure that they work correctly.

90 odd percent of people out there use Internet Explorer, not through choice, they just do not know that a safer, more secure alternative exists. Which by the way is Firefox

So I followed the instructions I found on the web to install IE version 5.0, 5.5 and 6.0 so that I may test my designs. I decided to put those instructions here for Ubuntu Dapper users to follow.

Check /etc/apt/sources.list – make sure you have access to the universe packages by uncommenting the following lines:

deb http://us.archive.ubuntu.com/ubuntu dapper universe deb-src http://us.archive.ubuntu.com/ubuntu dapper universe

If you have just uncommented the lines, don’t forget to apply the changes:

sudo apt-get update

Step 1 Install wine:

sudo apt-get install wine

Step 2 Install cabextract:

sudo apt-get install cabextract

Step 3 Install IEs4Linux:

wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-2.0beta7.tar.gz tar -xzvf ies4linux-2.0beta7.tar.gz cd ies4linux-2.0beta7 ./ies4linux

That’s it. Follow the instructions and allow them to install. Once installed you will have 3 new shortcuts on your desktop.

hope you found this info useful.

Page 4 of 512345

Contact