Friendly Tech Ninja Linux how-to's for beginners

26Feb/10

Howto: Fix Spotify sound problems on Ubuntu 9.10 Karmic Koala

spotify_logo

After installing Spotify on my Ubuntu 9.10 system I found that I was having some sound issues, popping, cracking and sound crashes. I'll walk you through my settings and point you to the Spotify FAQ for the suggested settings (they didn't work for me, but they could for you) So here we go...

5Dec/09

Howto: Fix Gnome Do Home Folder Bug on Ubuntu 9.10 Karmic Koala

If you've had a problem opening the Home Folder with Gnome Do, basically if I add the Home Folder icon to my docky or even find it doing a search, it simple wont open. Well I did some poking around and found a fix.

Step 1
Open up your Terminal under Application->Accessories menu and run the following command:

gksudo nautilus /usr/share/applications

This will basically open up your file manager as root so you can edit the Home Folder executable.

29Nov/09

Howto: Fix Performance of ATI Drivers with Compiz on Ubuntu 9.10 Karmic Koala

Everyone know's that ATI drivers always seem to have something wrong with them, be it tearing in video or just general slow performance.

I happen to be victim to both of these currently, the way I got around video tearing was by changing my video output as I outlined in my previous tutorial, Howto:Fix ATI Video Playback. As for the performance issues I've finally found the answer! It turns out that it's got something to do with backfill we don't need to know what it is or what it does, all you need to know is getting rid of it fixes performance issues such as slow maximizing windows and also should fix video tearing!

Caution: I'd like to warn you in advance that doing anything with xserver could make your system unstable and crash you desktop interface. So do this at your own risk!

20Nov/09

Quick Tip: Getting your mic working with alsamixer

microphone

After installing Skype flawlessly if time around I was messing around with some sound settings and managed to muck something up and stopped my microphone from working. It was either me or an update, but more than likely it was me. After using alsamixer to fix my previous gripe with the pc speaker beeping and not finding a way to fix my problem in the Sound Preferences application found under System -> Preferences I turned back to alsamixer.

When I opened up alsamixer pressed tab until I was viewing [All] I saw that there were two options both called analog and I figure well everything else seems to be on why no see what they do, anyway, I ended up pressing up once to change them both to Digital and that seemed to fix my problem instantly!

16Oct/09

Howto: Fix Alert/System Beep in Ubuntu 9.10 Karmic Koala

I was looking online for a recent bug that occurred after one of the Karmic updates, basically what happened was it started setting off my system speaker, this would occur when lets say you in the Terminal and your press the down arrow key, it doesn't do anything, but this sets the system beep off. Another example would be when your in gedit and you press backspace in a blank document, it's not actually deleting anything, but it sets off the system beep and is really annoying.

I did find one fix that works fairly well, which was basically to create a bash script that would turn off the system speaker when run, you'd then make it run that script on startup and you wouldn't have to worry about it any more (link at the bottom).

I did some more digging around and found a slightly better way in my opinion that involves using alsamixer. Here's how:

Step 1

Open up a Terminal and type:

sudo alsamixer

Now using your left/right arrow keys navigate over to PC Beep and press M on your keyboard, you'll see MM appear under the volume bar, this basically means it's been muted now press Esc to exit.

Step 2

Now run the command:

sudo alsactl store

This will basically save the changes you made.

That's it, pretty easy...you don't have to really muck about with bash scripts and the like, it just works.

However lets hope they fix the problem in the final release.

If you have any suggestion or question please leave a comment.

Link
Thread with startup fix and where I posted a link to this fix.

5Aug/09

Howto: Fix ATI Video Playback *UPDATE*

In my previous article you where made use VLC as your default media player if you wanted to have a good video playback experience. While I think VLC is a really good media player, I'm sure not every shares my enthusiasm for it and that's okay. I've found a way to fix this. I discovered a application that is installed with your Gstreamer codecs called "Multimedia Systems Selector". This method removes the need to switch you media player (eg. Totem) of choice.

Step 1
To access the program, run in the terminal:
gstreamer-properties

Or (for you GUI people)

Go to "System" -> "Preferences" -> "Main Menu". Then select the "Preferences" under the Systems directory. Look down the list and tick the box next to Multimedia Systems Selector" and "Close". You can now access the application throught "System" -> "Preferences" -> "Multimedia Systems Selector"

Step 2
Now in the program go to the "Video" tab and under "Default Output" use the dropdown menu for the "Plugin" option and change it from "Autodetect" to "X Window System (No Xv)" and "Close" the program.

You're all set, now you can use whatever media player you like!

If you have any problems, questions, suggestions please leave a comment.

3Aug/09

Howto: Fix ATI Video Playback

If you've come from my post on Howto: Fix Ubuntu 9.04 ATI Driver Issues and the drivers installed successfully congratulations. Although now you've found in Movie Player (Totem) when playing video and moving the window the video starts to tear or when you click on a window that covers up Totem the video plays on top of every other window. The reason this occurs is simply because the ATI drivers suck! (I'm using the driver that are accessed through "System" -> "Administration" -> "Hardware Drivers")...however there is a way to fix this!

Update: I've written an update to this fix here.

Step 1
Firstly we need to install VLC media player, I personally think this is the best video player out there on any platform seeing as it will play just about anything under the sun. In your terminal run:
sudo apt-get install vlc

It shouldn't take too long to download and install.

Step 2
Once it's installed open up "VLC media player" from your "Applications" -> "Sound & Video" menu.
Click on "Tools" -> "Preferences" -> "Video". Where is says "Output" the current value is "Default", change this using the drop down menu to "X11 vidoe output". Click "Save" and exit the window.

Step 3
You're going to want to make VLC your default video player, this can be done by right clicking a video and going to "Properties" -> "Open With" and select VLC, if VLC is not there go to "Add" and select it from the list of applications, click "Add" again and set it as the default video player.

Note: You might have to repeat this step for different video formats eg. avi, xvid, mp4. You only have to set VLC as default to that video format once on any file of that format, after that it'll know to open up those formats in VLC. Although if you do run into a video that opens in Totem, you know what to do.

If you have any problems, questions, suggestions please leave a comment.

24Jul/09

Howto: Fix AVG + iTunes Update = Small.BOG Trojan Horse

avg-itunes

UPDATE: AVG has updated there virus database so you shouldn't have any problems with just, just make sure you've updated your AVG.

Don’t worry, Apple hasn’t really given you a Trojan Horse! Basically what’s happening is AVG is scanning the iTunes Installer, iTunes and iPod directories and thinking you’ve been infected with a “Small.BOG Trojan Horse”. This prevents you from downloading the installer, because AVG just deletes files inside it and even if you mange to download the installer without AVG deleting files from it, it will just delete files from the directories where iTunes is installed. Enough of that, here how to fix it...

This fix will work for both Windows XP and Vista (I’m assuming it’ll work on 64-bit version also).

Step 1
We first need to create expectations in AVG, this will stop it from scanning and deleting files from the /iTunes and /iPod directories in C:/Program Files.

Open up AVG and right and click on resident shield, select open and uncheck resident shield active.

Click “Manage Exceptions”, then “Add Path” and navigate to both (you’ll have to do this one at a time):

C:/Program Files/iTunes/
C:/Program Files/iPod/

Note: If you have uninstalled iTunes at this time you won’t see the iTunes or iPod directory. Simple navigate to where they should be (C:/Program Files/) and create a new folder and call them iTunes and iPod.

Click “Apply”, then “OK”, then “Save Changes”.

Step 2
Now we have to disable AVG from starting up (we will re-enable this once iTunes is installed), because if we don’t it will just delete files from the iTunes installer straight after we download it.

Right click on “My Computer” (either in the Start Menu or Desktop icon) and go to “Manage”. Double click “Services and Applications” and then double click on “Services”.

Look for “AVG Free8 WatchDog” and right click on it and go to “Properties”. Where is says “Startup Type” it should say “Automatic”, change this to “Disabled” via the dropdown menu. Click “Apply” and then “OK”.

Close all windows and restart your computer.

Note: don't worry about the security warnings you get when you boot back up, this is normal and we will amend them once we have fixed iTunes.

Step 3
If you tried to reinstall iTunes but it didn’t work, follow the instructions in Fix A. If you did not uninstall iTunes and just left it the way it was, follow the instructions in Fix B. If you don’t have the “Apple Software Update” program needed in A or just aren’t sure follow the instruction in Fix C (This one is pretty much bullet proof, if all fails try Fix C).

Fix A
If you uninstalled iTunes when you found it had stopped working and tried to reinstall it, but found that didn’t work either. Open the “Apple Software Update” program in your Start Menu (if you don’t have it follow the instructions in Fix C) and check the box for “iTunes + QuickTime” and click install. Follow the on screen prompts. It should download and install. Just quit out of the updater when it's all done, run iTunes to make sure it's working and move on to Step 4 if this didn’t work try Fix C.

Fix B

If you did not uninstall the program, run iTunes from the Start Menu (or icon), I found that in Vista (not sure about XP, but assuming) it knew there was a problem and fixed it. Again just follow any prompts and make sure when its finished iTunes is working. If this doesn’t work try Fix C.

Fix C
If you don't have “Apple Software Update” installed currently or have completely removed iTunes you can just go to http://www.apple.com/itunes/download/ and download iTunes. Make sure you've selected the right version for your system (32-bit or 64-bit) and download it. Once it has downloaded simply double click the setup installer and follow the on screen prompts, it should install fine. If no errors occur during the install just run iTunes and make sure it works.

Step 4
Return to the “Services” window (see above; right click on My Computer->Manage->Services and applications->Services) and find “AVG Free8 WatchDog” again. Right click on it and set the “Startup Type” back to “Automatic”.

Restart your computer and everything should be fine working fine. Open up AVG, and then open the “Resident Shield” and check the “Resident Shield Active” box. You're all done now. iTunes should not have any more problems with AVG.

I followed these methods on both a Windows XP and Vista machine (both 32-bit). I assume this will work with 64-bit versions as long as you follow my instructions.

This is just a work around to stop AVG from deleting iTunes. Lets hope AVG update there database soon. Once they do we can remove the Exception paths we add so that AVG can scan those directories for actual malicious files.

Please post in the comments if this helps you or if you have any problems.

Note: At the time of this post the conflicting software versions where; AVG version 8.5.392, Virus database version 270.13.28/2259 (Release Date 24 July 2009) conflicting with iTunes Version 8.2.1.6.