Connecting to a Ubuntu Shared Printer

Posted by : Rob Stevens | Sunday, February 07, 2010 | Published in

I've recently had to rebuild my Linux server following a hard drive failure and have had to go through the hassle of once again getting my file and print shares correctly configured. As with all system rebuilds, you learn from the process of last time and add in the improvements and extra features that you wish you'd thought of then. This time around I've gone with the x64 version of Ubuntu Server 9.10 and tried to keep it much more minimal than last time with as few services running, and as much crap removed as possible.
Admittedly my Linux knowledge has improved somewhat since the last time I did this a couple of years ago, but this time round the process of getting things how I want them has been much less torturous. Setting up the file sharing was a breeze and getting the printer installed and shared, while not exactly easy was not as bad as last time.

Anyhow, I'm digressing from the point of this post. All of the above was fairly straight forward and non-bitchy. The irritations started when I started trying to connect Windows clients to the printer. The two that I set up initially are both Windows 7 Professional. One is x64, the other x86.

The x86 machine connected to the printer fine, but I hit problems when it came to selecting a driver. Obviously the my model wasn't included in the list of pre-installed drivers, that would be far too easy. For some reason Windows 7 doesn't give you the option for searching Windows Update for drivers when you're connecting a network printer and the printer manufacturer doesn't supply one. They tell you to use Windows Update. After much hunting around, swearing, and trying to extract the driver from manufacturer driver releases for earlier OS' I stumbled upon this Microsoft support article telling you how to manually download Windows updates via the web. Yes, it should be obvious that such a useful site exists, but I had no idea it was there, so I'm guessing quite a few others don't either. We learn something new every day, and all that... Anyhow, a quick hunt around on here found me the driver files I needed, and problem solved.

The x64 version however was altogether bitchier. Trying to connect resulted in a typically descriptive error of "cannot connect to printer". A little help here. Why can't you connect? Just a hint? Cue more hunting around on Google. Whilst this failed to produce a direct fix, I did discover quite a useful workaround:

Open up a command prompt and type

net use LPT2: \\servername\printer

Then start the 'Add Printer Wizard' and choose to connect to a local printer. Select LPT2 and you will then be presented with a driver selection screen that actually lets you use Windows Update to acquire your driver. Imagine that!

I also have to get around to adding this printer to the Vista Home and XP Pro machines we have here. Lets see what problems that throws up...

Evony, Interupted

Posted by : Rob Stevens | Thursday, February 04, 2010 | Published in

Players of the online RPG Evony have apparently logged on today to find there's something missing. Something as in everything. Nothing left. Gone. The forum dwellers are going mental.

The game has been running for quite some time now and people plough real cash into it, so there's going to be some seriously pissed off gamers out there! The companies' main site says that they are doing some server upgrades. One can only assume that someone screwed up.

Haven't played it my self, but if everybody's being dropped back down to the same level I may just have a look...

I'd say that it's very unlikely that they'll not have backups, but who knows. Sillier things have happened.

Edit: And they're back. Ah well, drama while it lasted ;)

Logitech Touchmouse App

Posted by : Rob Stevens | Wednesday, February 03, 2010 | Published in

For my media centre at home I have pretty simple system of a PC connected to my TV via S-Video and the sound run through my stereo system. I'd previously been controlling it either via a wireless keyboard and mouse, or by using the free version of VNC. Both of these have drawbacks. The keyboard and mouse are an absolute bitch to keep paired. They both run through the same receiver and every time the batteries go on one of them it takes large amounts of time resetting, swearing, resetting again and more often than not, failing to get both to pair. This is were VNC usually comes in. For the most part it's OK, but it does get really laggy when watching streaming video (Youtube, iPlayer, etc.). This gets really annoying when you start watching something and it takes 20-30 seconds of frantic scrabbling before the volume can be pursuaded to go low enough for the building to stop rattling. I had been thinking of trying out keyboard and mouse with seperate receivers to cut down on the bitchiness, but obviously this is an outlay of cash that I would rather avoid.

Enter my latest iPhone based toy. At the end of last week the Logitech Blog announced an iPhone app and corresponding computer service that allows you to use your iPhone as a touchpad mouse, and includes the usual iPhone keyboard. The app offers a three button mouse with configurable tracking speed (I found the default needed turning down a bit), and two finger hoizontal/vertical scrolling (again with ajustable speed). The app apparently works on the iPod Touch as well and is available for free from the Apple App Store.

The app and server seem to work very well. There is the occasional stutter, but I expect this will be ironed out through performance tweaking in later realeases. The only major thing that's missing that I would like to see from this is the ability to create access lists on the server end of things. As it stands, anyone joining the same wireless network will be able to connect and control any computer on the network running the service. The app doesn't give any sort of visual feedback, so actually doing anything would rely on guesswork, but being a picky, security minded type, it's a hole I'd rather wasn't left open. The other minor niggle is that the connection seems to drop when the iPhone goes to sleep, meaning that you have to disconnect and reconnect to keep using it. Again, hopefully these minor issues will be corrected.

Overall, an excellent app that provided a much needed scratch for my mediacentre itch.

Edit: Just in case any of the good folks at Logitech happen to see this, I have another addition to my feature wish list, this time on the UI front. It would be good if there was an option to choose the screen position of the mouse buttons. I think I would find using the app more intuative if the mouse buttons were at the bottom of the screen, in a similar position to those on a laptop trackpad. Having them at the top feels awkward and can require two hands to perform tasks that could be done with one with suggested layout.

MyEnTunnel - SSH Based Encrypted Web Traffic

Posted by : Rob Stevens | Sunday, January 17, 2010 | Published in

I've been playing with SSH tunnelling for a little while for things like forwarding RDP sessions into my home network, and encrypting web traffic. I've usually done this either by using the tunnelling options within Putty, or I've done it via command line (e.g. 'ssh -ND 9999 you@example.com' - do a 'man ssh' in your terminal for a full range of options).
I had had suspected that there was a simpler way of doing this, particularly for the encrypted web proxy, but I hadn't gotten round to actually looking into it. I spotted MyEnTunnel in some comments on a Hak5 show that had covered a similar topic so I thought I'd give it a go. So far so good.

To quote the description on the program's homepage,

"MyEnTunnel is a simple system tray application (or NT service) that establishes and maintains TCP SSH tunnels. It does this by launching Plink (PuTTY Link) in the background and then monitors the process."


It's a Windows based app and at its simplest level this gives you a GUI that allows you create a SOCKS based encrypted proxy on a specified port, as shown:



N.B. the specified port 7070 can be set to any unused port, just remember it for later.

Once the tunnel has been configured and successfully connected, the next step is to configure your browser. I use Firefox, but these settings should be fairly simple to apply to any browser.

Open your main options panel for you browser of choice (For FF Windows version go to 'Tools>Options' then select the Advanced tab. Click the 'settings' button in the connection box and you will be presented with a list of different connection settings for your browser. Now all you need to do is change your settings to reflect those in the image below (obviously changing the server, username, etc. to point at your own SSH server).



Voila! Encrypted web traffic.

There's obviously plenty more you can do with this app. If I come across anything particularly exciting during the course of playing with it, I'll either post it here or to Twitter.

XBox Media Centre

Posted by : Rob Stevens | Sunday, December 06, 2009 | Published in


I've been looking for some decent media centre software for a while. Most of the ones I've tried had some sort of killer flaw, whether it be a horribly complicated interface or a database backend that hogs far too much of the system resources.
A friend recommended that I have a look at XBox Media Centre (XBMC). I'd seen it before, a few years ago on a friends chipped XBox, but I hadn't realised that it had been ported to other platforms. It's available on Windows, Linux, and Mac, as well as the original XBox and has a good sized community behind it providing a wide range of skins, plugins, and scripts that add shinier interfaces and additional functionality. A couple of good plugins that I've found have been the YouTube and National Geographic add-ons that can be found on XBMCZone.

The program seems to run smoothly with few glitches in the interface. My only gripe is that the search that adds media to the library can be a bit finicky about odd file and folder names that contain characters such as square brackets.
The interface is very intuitive and has a range of different view options that provide a variety of levels of information. This information and the related images is automatically downloaded and applied to the media providing quite an attractive user environment.

I've been using XBMC for less than a day but thus far I'm much happier with it than other efforts. Best of all, it's open source and therefore free. Always a plus.


Homepage
XBMCZone.com
Lifehacker XBMC Set Top Box Build Guide

Edit: I've also found quite a cool free iPhone app called XBMControl that lets you use your phone as a remote for the media centre. It's a little buggy and I'll probably keep looking at alternatives as I know there are a fair few RC apps around.

Busy Busy

Posted by : Rob Stevens | Sunday, November 01, 2009 | Published in

It's amazing how work tends to eat up time. All my good intentions for putting more into this blog seem to have come to naught for now. At least I'm starting to get into the swing of the day to day stuff for the job meaning that it's no longer one big constant frantic rush to keep on top of things.

I've had an interesting variety of things to deal with over the last couple of months. It's ranged from more things like hard drive repairs and malware removal, through to more interesting work with servers and networking kit. I'm starting to get more to grips with things like server hardware and OS maintenance and am slowly bringing my networking skills to the level they need to be at.

I'm studing to do some more certifications. The ones penciled in at present are the Microsoft 70-291 (Implementing, Managing, and Maintaining a Microsoft Windows Server 2003 Network Infrastructure) and 70-653 (TS: Windows Small Business Server 2008, Configuring) as SBS is one of the main platforms that I work with a the moment. Most of the systems I work with are Server 2003, but it's more than likely that the number of 2008 system we work with will increase, so I may as well look into the most up to date cert. Once I have the 291 exam done it's only a couple more to get my MCSA. May as well crack on...

It gets better

Posted by : Rob Stevens | Sunday, August 09, 2009 | Published in

Still loving the new job. A generally brilliant opportunity to start applying my skills. It's quite a surprise to see how much I'm finding myself starting to do something, scratching head, looking up how to do it, then the penny dropping - I know how to do this! Definitely a matter of learning how to apply things in certain contexts. At the moment it's still very much a case of learning the basic everyday stuff to do with actually participating in the day to day business. Hopefully that'll all become second nature soon and I can get on with sharpening up and learning new skills.

One of the most interesting things I've been doing is installing and configuring Draytek dual WAN routers for VPN usage. Interesting stuff to do, very satisfying to get working, and much easier to do than the Cisco stuff I did at uni! (On a side note I'm hoping to get around to writing a review on this kit at some point. Watch this space...)

I've also been up to some test server configuration - revising setup of RAS and NAT on Server 2003, and learning how to configure the same box as a VPN gateway. I was able to do this using the companies backup Internet connection so I could dial in from an external connection, something I've not been able to do before and made things much more realistic. More to come. The thirst for knowledge has returned.

Graduation and New Job

Posted by : Rob Stevens | Tuesday, July 14, 2009 | Published in

Well, that's graduation over and done with. Was pretty tedious in places, but overall I'm glad I did it. It draws a line under things, so to speak. For anyone who's interested, have a pic of me in my academic finest.



I also started my new job today. Pretty promising so far. Did a couple of client visits today - simple stuff, but all part of the job, built a server, set up my work machine, etc. and tomorrow I'm off to visit the company data centre. I'm pleased that everything is turning out as expected thus far.

Definitely a week to remember.