Slide to Unlock - Windows Mobile

December 5, 2009

After years (literally!) of putting up with not having a decent keylock on Windows Mobile, I’ve finally decided to seek out an app to handle this. I have problems, esp. on the motorbike, with pocket dialling if someone sends me a text or calls me while it’s in my pocket.

I’m giving this a go: http://www.ac-s2.com/

There’s a pile of configuration you can do, but I’ve pretty much left it on defaults, and it does what it says it will on the wrapper: locks the screen and you have to slide to unlock it!

Sound on Karmic

November 3, 2009

After seeming all too easy, I have hit a snag with Karmic. Although I like that it seemed to setup OK by default, the sound quality is awful - it’s like a sort of metallic tinny sound, like a tiny pimple speaker being over-driven.

Found a similar problem reported here: http://ubuntuforums.org/showthread.php?t=1295266

Looks like there’s a few people around with similar issues. For starters, I’m installing the gnome-alsamixer, which enables a bit more things to tinker with. I’ve had a look at this, and it wasn’t much use.

Found this page here https://help.ubuntu.com/community/SoundTroubleshooting

aplay -l
turned up about what you’d expect, so it looks like it’s detecting the sound card OK.

And after reading a bunch of stuff, turns out all I needed to do was pull some of the sliders down from 100%! Go through and for all the PCM sliders, put them at about 80%.

Never a dull moment with this Linux stuff….

Karmic Koala install

Following on from my earlier post here, rather than doing 4 upgrades (8.04>8.10>9.04>9.10) I’m doing a clean install of Karmic. And in much the same way, and going from my previous post, I’m going through what I do to get this sucker setup. From what I’ve been reading, this is a bit more user friendly for a GUI/Windows refugee such as myself, so I’m interested to see what’s different! I’m also going to try and do everything through the GUI, as an exercise (I know some stuff is easier through the shell, but I want to see how much you can get done).

So here goes:

1. Install from CD - I’ll assume you know how to do this!
2. System > Administration > Software Sources. Change “Download From” to iiNet (my ISP)
3. Click on the Restricted Drivers pop-up that comes up near the clock. Enable the NVIDIA driver. Restart when done. I installed the recommended one, v185.
4. Set to 5.1 sound. The sound settings have changed, and now longer defaults to digital even though I have analog speakers - Niiice.
5. Setup a printer. System, Administration, Printing.
Click New, it searches for my network printer, found it, and installs the driver. I still like this bit in Ubuntu!
6. Updates. Go System, Administration, Update Manager, and Check and Install updates. This still takes a little while, although since I’m pulling it off iiNet’s servers, I get 600-700Kb/s.
7. For this, I’m not going to install the ms-core fonts, at least not yet. I want to see how I go without them.
8. I’m going to change to a static IP through the GUI this time:
System, Preferences, Network Connections
Changed to static IP, with local DNS server etc.
9. Looks like there’s no way still to do a permanent mapping to a windows share without editing files and stuff, so the way I do this is:
First off, make sure you can browse to the Windows share and connect to it (Places, Connect to Server)
And I’m putting this into /media, so it shows in Places.
apt-get install smbfs

mkdir /media/fileshare

Add to /etc/fstab
//server/share /media/fileshare cifs exec,credentials=/etc/cifspw 0 0

create a file /etc/cifspw, and enter the following (and save it)
username=bigtrev
password=YouGottaBeKidding

Then run:
chmod 600 /etc/cifspw

and then
mount -a

10. I still need winbind enabled, so still do this bit as well (it’s probably something to do with how my network is setup, or not setup as the case may be!)
Add WINS support:
edit /etc/nsswitch.conf
change the line that says
hosts: files dns (and maybe some other stuff)
to have wins in the line as well.
Then apt-get install winbind

11. Install OpenSSH
apt-get install openssh-server

12. Now I’m interested in seeing how Flash runs on this new install. Basically, I browsed to a webpage that needs Flash installed (out of interest, after reading this post, it was http://sportsillustrated.cnn.com/). I selected to install the Adobe version from the 3 available, and let’s see how it goes on Youtube (which was always it’s nemesis, at least for me). AND IT WORKS BEAUTIFULLY! Flash video was always the biggest problem I had with this as a desktop OS!

All in all, I’ve been impressed with Karmic - It’s easier to install than ever, and all sort of pretty-like too!

In game shrinks for World of Warcrack

August 29, 2009

Linky

World of Warcraft is so addictive that a psychiatrist is planning to send a team of counsellors into the game to treat players before they lose touch with the real world.

It comes after a report published by Sweden’s Youth Care Foundation this year found World of Warcraft was the most dangerous game on the market and “the cocaine of the computer games world”.

I have enough video games addiction without getting hooked on this one!

Robocopy - simple little backup script

June 27, 2009

I’ve been asked in the past to help out people (read family/friends, generally “love jobs”) with backing up stuff. Often there isn’t very much that needs to be backed up - what’s prompted this little script is a family member who just needs to backup about 4GB of stuff from a couple of folders.

Robocopy is something I’ve used in the past, and is a quick, easily scriptable little utility for moving stuff around in Windows. I’ve used it for all sorts of things, server migrations and stuff, for a number of reasons:
- it’s quick
- it’s simple
- it only copies the delta, and leaves stuff it’s already copied alone - this comes in particularly useful for when moving large quantities of files which are in use - you can “pre-stage” most of the stuff, and then it only copies what you need once you do the “final” copy.

Without further ado, here’s the script. It won’t be the best bit of scripting you’ve ever seen, but:

@echo off

REM Robocopy script

REM

REM This sets the main path for the backup. This is set a folder called backup in the current folde (ie. the USB key or wherever you're running this from)

set dest=%cd%\backup\

REM This sets the global options for the robocopy backups

set options=/E /ZB /COPYALL /MIR /R:3 /W:3 /V

REM each different folder you want to backup, and what folder you want it to be called in the destination.

REM comment out any that you don't need, and make sure the corresponding robocopy statement is also commented out.

REM ##########

set path=C:\Somefolder

set destfolder=Somefolder

robocopy %path% "%dest%%destfolder%" %options%

echo.

echo.

if errorlevel 16 echo ***FATAL ERROR*** Make sure all programs are closed and retry & echo. & echo. & pause & goto end

if errorlevel 8 echo **FAILED COPIES** Make sure all programs are closed and retry & echo. & echo. & pause & goto end

REM ##########

REM For each folder you want to backup, copy below

REM ##########

set path=C:\anotherfolder

set destfolder=anotherfolder

robocopy %path% "%dest%%destfolder%" %options%

echo.

echo.

if errorlevel 16 echo ***FATAL ERROR*** Make sure all programs are closed and retry & echo. & echo. & pause & goto end

if errorlevel 8 echo **FAILED COPIES** Make sure all programs are closed and retry & echo. & echo. & pause & goto end

REM ##########

:end

Basically, it sets as much of the “constant” stuff as it can for reuse with variables, and you just copy those chunks of code as required. There is basic error handling - if you run the batch and something goes wrong, it’ll stop and tell you.

Robocopy is available in the Windows resource kits. For more info, looky here. For download, go here.

Just make sure Robocopy.exe is on your USB key you’re running the script from, or in c:/windows/system32 (or somewhere else in your PATH variable)

I’m not going to document the whole thing - this is much for my reference as anyone else’s. Do some reading if you need to - the doco for Robocopy is very good, and there’s heaps of info out there.

Free Remote Access Software - Windows

June 21, 2009

I’ve had occasion in the past to provide remote support to people, and I’ve used this particular product before. Then I forgot what the hell it was called, so now I’m writing a blog post about it for me to look up when I forget it again!

It’s a service called LogMeIn. Basically, there’s a small client that you get the person you’re supporting to download and install, and once that’s done, they give you the username and password and you can remote desktop to their machine over the internets. I’ve found that it works nice, heaps better than the Remote Assistance “feature” in Windows, which I don’t think I’ve ever got working.

Apparently it even works on those “Apple” thingies.

The free version is available here: https://secure.logmein.com/products/free/

Flashblock

Given my recent Flash woes, I’ve come across this: http://flashblock.mozdev.org/

It’s been around for a while, and I’ve heard of it before, but haven’t got around to installing it until now. You can just add it through the Addins dialog in Firefox, and instead of your browser displaying all the crappy Flash content on every page (which is usually just ads anyway), it replaces it with an icon that you can click to selectively open.

In a completely unscientific test with Youtube, I’ve found it’s at least improved my experience. Maybe not quite 100%, but a LOT better.

Avast Free Antivirus for Windows

For a little while now, I’ve been recommending Avast to family/friends who need antivirus for their Windows machines. These are instructions so I can point people towards how to install and maintain Avast, so I’ve told you to come here and find this post, you’re at the right place!

Installing Avast:

To install the free version of Avast:
1. Click here to download: http://files.avast.com/files/latest/avast_home_setup.exe If that link is broken, let me know.
Alternatively, go to the Avast website free version download page - http://www.avast.com/eng/download-avast-home.html .
2. Once the file is downloaded, install it. Just follow the prompts, you can leave everything on defaults.
3. When it asks for the Registration Key, you’ll need to do the steps below

Getting your registration key for Avast Free version:
1. Click here: http://www.avast.com/eng/home-registration.php
2. Choose one of the 3 links up the top of the page:

- I’m a new user and I need a registration key for avast! Home Edition
- I’m a registered user, but I lost my registration key
- I’m a registered user and my registration key has expired, I need a new one

3. Follow the prompts, put in your details. They are a legit company, so don’t worry about providing your email address - I’ve never got any spam off them.

If Avast is saying that the registration is expiring/has expired, then you just need to follow the above steps to get a fresh key, which will cover you for the next 12 months.

Zimbra - Releasing quarantined emails

June 19, 2009

I’ve had someone send me an email with an encrypted ZIP file in it, which has got snagged in the Zimbra mail filter. Nice, just release it, right?

Not so easy.

I had a look through the admin console, and there’s no way of doing it through that. I’ve found this thread, which has a couple of methods to try it, and we’ll see which one works!

1. connect to the file system of your server (SSH or whatever)
2. browse to /opt/zimbra/data/amavisd/quarantine
3. The email should be there. When it was quarantined, you would have got an email containing: The message has been quarantined as: virus-DFSjhdshwkhed. That’s the name of the file
4. Copy the file somewhere different
5. Open the file in a text editor. It’ll show the email up the top, with the attachment below. Make sure you do actually want to open it!
6. Install uudeview if you don’t already have it:
apt-get install uudeview
7. run uudeview virus-DFSjhdshwkhed in the folder you copied it to before
8. Open ZIP file. Rejoice!

Joining MP3s

June 15, 2009

You wouldn’t believe how hard it was to find the answer to this (or maybe I was just asking the wrong question!).

I’ve been looking for software to join a bunch of MP3’s together - basically for mix CDs which end up with a bunch of separate mp3’s, and when played on a player end up with an annoying little gap between the tracks.

Hence, I’ve discovered mp3wrap. It’s available in the repos, and it’s as easy as doing the following in a folder full of the mp3’s you want to join:

mp3wrap -v myalbum.mp3 *mp3
(the -v lets you see what it’s doing)

It seems to stuff the time information (ie. the mp3 goes for over an hour but the progress bar says 3 min something). I’ll have to try it on an iPod and see how it goes.

(update) - looks like it doesn’t work that well - my mp3 stopped playing at the end of the first original track (in Totem). It still thinks it’s 3:30 long… Back to the drawing board…