Posts Tagged ‘Linux’

A quick update on Chute Stick (USB Emergency Disk).

Wednesday, February 27th, 2008

Just to mention that I’ve now released a list of the software I currently have on my pen drive.

 http://www.robertsmall.org/wiki/index.php5?title=Chute_Stick#The_Software

I will provide more information on each item in the near future including versions and links. I expect a few of you are thinking of cloning my setup until I release a script.

Kind regards, Robert

  • Share/Bookmark

USB Rescue/Emergency Stick (Parachute on a stick)

Wednesday, February 27th, 2008

Some of you will already know about this little project that I’ve been working on. Basically I’m producing a USB memory stick with all the things which I think it needs. Quoting the wiki page:

http://www.robertsmall.org/wiki/index.php5?title=Chute_Stick

If you’re in a situation where you only have one memory stick, what’d you want on it? If baggage handling lose all your bags and you just have the encrypted hard drive in your jacket pocket and the memory stick round your neck, what do you want on the stick?

You’re stranded on an island (or somewhere with a really poor internet connection) and you want to acquisition a computer for your own uses, what do you want on your stick? Someone else on the island wants you to fix their computer, what do you want on the stick?

In general, what do you want on a memory stick when you don’t trust or want to use your internet connection? This is what the Chute Stick project is meant to provide.

Although there are many different situations where this may be of use and some of them wont require most of the software provided this is meant to be an ‘in any event evacuation plan’. I know a lot of you have already contacted me about this and so there probably wont be that many comment; however, there are several things which I’d love to be posted here:

  • Situations where you might need a rescue stick.
  • Software suggestions/requests.
  • Things to stay away from.
  • Suggestions for replacement software, I know I may not have picked the right stuff all the time.
  • Suggestions about ways of packaging or unpacking software.
  • Ways to make things more accessible to more people.

Of course you could just tell me I’m doing something useful!

Which brings me to another point, what am I doing? Well I don’t intend to distribute too much software, I’d prefer to write a script which downloads and updates software to a memory stick for you. Much of the software I’m looking at is either not free/libre and so I don’t expect to be able to do more than provide a script to get the end user to download and use the software correctly. If anyone is familiar with the gentoo ebuild context they’ll understand more of what I mean, my script wouldn’t require pre-built packages but do it’s own work.

The wiki page is: http://www.robertsmall.org/wiki/index.php5?title=Chute_Stick

Kind regards, Robert.

  • Share/Bookmark

BottleCap becomes Windows friendly. (0.0.6-rc5)

Monday, December 31st, 2007

Another BottleCap release candidate, this one is Windows compatible out of the box. Just remember to edit bcsettings.py. Get the update and please report any bugs here.

Kind regards, Robert.

  • Share/Bookmark

Boxingday BottleCap release! (0.0.6-rc4)

Wednesday, December 26th, 2007

I’ve just uploaded another RC. I advise updating as it has a few bugfixes, especially if you’re on windows. Tonnes of work to make pylint happy and adding of docstrings, expect another release soon as I change and add things. I still have to fix the clones module but I’ve made the highlight ban code actually work.

Have fun, stay safe, and feel free to tell me if there’s anything wrong, remember to check the official channel for updates! irc.v8d.org #BottleCap

Kindest regards at this festive season, Robert Small.

  • Share/Bookmark

BottleCap has another RC – 0.0.6-rc3.

Tuesday, December 18th, 2007

I’ve released some more code, it provides a few new features:

  • HTTP update checking (now threaded)
  • timed unbanning and a *better* way of banning
  • it has the beginnings of the new correction script
  • a few other minor changes

I’ll leave it as such, do join the channel (irc.v8d.org #BottleCap) and ask more questions. Since rc1 I’ve added a few little things to allow windows to function better with BottleCap, I’ve not yet given it a full testing, let’s hope it all works soon.

Kind regards, Robert.

  • Share/Bookmark

A short passage on BottleCap (Modular script-pack for XChat).

Sunday, December 9th, 2007

People often ask me why I wrote BottleCap, this normally comes immediately after asking what BottleCap is. I might as well answer both. BottleCap is a small modular Python script designed to replace or create a few features I found either partially or completely lacking in XChat. It was primarily designed for Linux but should work on any OS providing it has XChat and python. It provides a fair few things and is in slow development. Some of the features are:

  • Spelling and grammar correction
  • Toaster pop-ups
  • Highlight handling
  • Auto-away and auto-return
  • Automatic invite handling
  • Regexp banning.

It’s a useful script and to my knowledge there are no ways to exploit it. I’ve mainly written it on request or as I’ve needed it, the regexp banning module is in direct result of an attack levied at a channel I’m op’d in. The attack used stupidly easy to spot nicknames which were rather hard to ban, a regexp did the job wonderfully.

Spelling and grammar correction is mainly to help me when I’m reading certain channels I moderate which are mostly used by children, it takes the strain off reading and deciding what they’re talking about!

There’s more information on this page (http://www.v8d.org/wiki/index.php?title=BottleCap) and please as in #BottleCap on irc.v8d.org for a copy and help getting it working.

If you’ve used BottleCap, or use BottleCap now, please post, I’d love to have a few ‘BottleCap changed my life!’ comments. Any suggestions would be great too.

Kind regards, Robert.

  • Share/Bookmark

The Linux GPS project has commenced!

Friday, December 7th, 2007

The Linux GPS project has been started, it’s aimed at providing useful information about Linux related GPS projects and how to get GPS devices working correctly with Linux. I have a CF based Holux GPS device and a Bluetooth/USB based Holux device, I’ll provide as much information about these as possible.

We hope to provide information on the protocols we come across and the ways they can be made to ‘play’ nicely with Linux. In the end we may develop programs to provide unavailable features to Linux users. Although there are several projects which seem interested in providing GPS support for Linux they seem to lack a central place for a user to start, a place for you to pick what you need and get everything working; Linux GPS is being developed with this in view.

www.linux-gps.org

Your support would be appreciated.

Kind regards, Robert.

  • Share/Bookmark

On the matter of hard drive replacement.

Friday, November 16th, 2007

This is laptop-centric, desktop users will have a far easier time in general.

I’ve just done my second hard drive replacement on a laptop, I’d never had cause to do them before and everyone who’d mentioned it had warned me it was laced with peril. It would seem that they were wrong. Both IDE* drives were replaced with relative simplicity, I’ll explain how.

You’ll need:

  • A 2.5 inch IDE adapter or caddy.
  • Cables which come with, usually USB.
  • A blank CD.
  • A dog, children, lunch, or similar distraction.

What I tested this with:

  • Adapters/Caddies:
    • Generic IDE 2.5 inch caddy, USB power and data.
    • Generic SATA 2.5 inch caddy, USB power and data, only for a little data removal, no copying but should work just as well.
  • Partition types:
    • ext2
    • ext3
    • linux swap (with resume image)
    • fat16
    • fat32
    • ntfs
  • Operations:
    • Copy, paste.
    • Copy, paste and resize.
    • Standard checks.

So, firstly you want to burn a copy of the gparted livecd onto the CD. This CD contains the tools to do all the work we’re intending to do. Now you must take your old hard drive out of your laptop and put it in the caddy/adapter, don’t plug it in yet. Take the new hard drive and put it in your laptop, put the CD in the drive and boot to it.

You’ll be asked a few regional questions, answer them and wait for the gparted screen to show. When this shows plug in the caddy/adaptop and for some, turn it on. Tell gparted to refresh the devices, it’s under the first menu. In the right at the top of the window there’ll be a drop-down list of devices, select your external caddy (most likely the second).

At this point I should mention that when you’re copying data things might break, it’s unlikely but possible. Don’t blame me, blame Canada.

YouTube Preview Image

Simply right click the partitions you want to copy over (select copy) then select your new drive and paste them. When you do this you can actually resize them, a useful function as most likely you’re putting in a larger drive. Make your / or OS partition bootable using the flags dialog.

Windows users will probably want to use their install disk to ‘repair’ their installation, Linux users can chroot into their / partition and do a grub-install hd0 to create a new mbr.

There are ways to make this process slightly better/easier but I’m giving you the basics of a GUI based one for lazy people like myself, remember to read manuals and keep a computer with internet access nearby.

Kind regards, Robert.

* This process would be identical for SATA, just pick 2.5 inch SATA adapters insted of IDE.

  • Share/Bookmark

Pigs might fly.

Friday, November 2nd, 2007

Written on the plane on Nov 2nd.

Airports are interesting places. As a man who’s rarely travelled abroad they posses a curious attraction. I hate security, I really hate being put though all the things that they deem necessary to make sure that you’re not a terrorist or maniac. Being entirely mad I always wonder why they let me through without question, the world is most certainly a strange place. As I write this I’m directly over Belfast, or so the GPS tells me, Several thousand feet above it I admit, but still above Belfast, I don’t feel anything special because of this, I suppose I should really.

I know a fair few people who’re scared of flying, I am not. I’m not really scared of airports, turbulence, flying meals, Dutch, or English security; what gets me is American security. I dislike being bullied, I dislike being made to feel scared and suspect, I dislike American airport security. My experiences have, on the whole, been OK, I’ve never been shot or had anything confiscated and I’ve never seen anyone shot or confiscated; my gut feeling dislikes being involved with people who refuse to look me in the eye and carry a gun while looking rather bullying. It’s strange, I’ve never actually had anything bad happen but I just don’t like their attitude.

I don’t like DVDs which contain advertisements telling me not to download them and I don’t like people requesting to ‘mark’ my receipts. I am not a thief, please stop treating me as such

I’m somewhere around half way through the second flight now, I don’t find it the most enthralling pastime but between watching the in flight TV and considering life my time has passed reasonably well. More fortunately I have no worries about my laptop giving out as I have two extended life batteries and three standard ones, today a long time of computer life tomorrow the world! It also helps that I’ve done a lot of work on making my laptop as energy saving as possible, It currently is using around 8.4W, this includes some (a little) disk usage and a fair bit of keyboard usage. I have all my cunning plans to create marginally better laptop yet to implement, the unfortunate fact is that the X31 only has one PCMCIA slot and one CF (CompactFlash) slot; this is a perfect amount for one GSM/UMTS modem and one GPS device, leaving no space for a CF boot card. Other cunning plans have involved putting my swap space onto CF or moving my log and tmp directories onto one, this all relies on a CF card and I like my GPS. Some of you may suggest a USB based solution, but this would also eat power and eating power is bad.

Still, around eight watts is a sensible usage and provides me with many hours using my dock and spare batteries, what’s more I have TuxOnIce working nicely and can switch between batteries without even bothering to reboot! Life is wonderful, well, maybe not wonderful but at least mediocre.

I’m currently passing over Greenland. I love the Dutch and their language, and their airlines. They’ve provided me with a ‘vegetarian pasta’, I didn’t really mind what the pasta had eaten, but it tasted very nice. KLM food generally is nice, they provide me tomato juice and pepper to go with it, they provide hot towels – i have to provide the hands to use them, they provide a nice meal with real cutlery. In fact I’m not that sure that I’m that far from being at home and in comfort. That is if it weren’t for my nose. My nose feels like it is likely to explode, and my neck on the same side is echoing the emotion, I presume this is some issue with the pressure up here.

To distract myself I’m analysing the scientific impossibilities within the dramatisation of Harry Potter, I personally have preferred the spin-off comedies.

  • Share/Bookmark

TuxOnIce a most excellent hibernation/suspension tool.

Monday, October 29th, 2007

I started using TuxOnIce when I switched kernel’s to the kamikaze sources. I’ve been doing a few things to try and get the best power usage out of Linux and my IBM X31 possible, TuxOnIce seems to do an excellent job suspending and resuming my entire OS. Without giving it any extra kernel parameters and only changing a few options within the configuration. For those of you who haven’t met TuxOnIce, it’s the new Suspend2.

Some of you may know that I’ve recently purchased an IBM X31 and that I’ve been trying to get the best battery life from it possible. One of the things about this is not having to restart whenever you have to change a battery, hibernation as it was dubbed by the windows developers is a useful trick for this. I can wait till my battery is almost run out, hibernate, change batteries, then start up again and resume where I left off. This can be done in a short enough time to preserve a net connection and not ping out on IRC! I’ve actually considered creating a ‘blank’ suspend image which has the main core of the OS and the DE loaded already and simply resuming to that instead of ever starting a new session, the problem with that would be resuming from a different partition when I’d actually suspended. I’d also have to create a new version of this image each time I updated my kernel or certain bits of core software, this will take some thought before I decide to go into it but it does provide something for thinking about.

I’m intending to build my father a media centre, this will (of course) use a Linux core and a probably a MythTV front end. This project would greatly benefit from a suspend image booted from a CF card, in fact, it would be almost instant boot and instantly be usable from where it last was. This might be a method of producing a very fast unalterable distro, your entire filesystem could be on ram-disks and your entire operating system could be stored on a suspend image, all you’d need is an initrd image and a kernel. The entire system could be updated by a bootable dvd which simply replaces the suspend image. If anyone has any comments on this then please do leave them as I’ve become interested in the concept within the space of writing it. Before I get attacked for breaking freedom and closing an OS, it wouldn’t be closed at all, the suspend image could be disassembled and edited with absolute ease; to prevent this some for of checksumming or signing would have to be implemented and I would not support that. Tell me your thoughts.

I used to use Suspend2 when I first experimented with Gentoo a few years ago, now I’ve returned to it for my IBM X31 I’ve resumed my interest (pun not intended). Back then I was looking to completely replace windows and show my school that it was possible. Although I proved this to myself they were still cynical and blamed every problem on Linux, even when the camera refused to work on their windows PC’s. There are none so blind as the willing. I do find it both sad and somewhat frightening, people believe what they’re told by the people they believe are right; even after being shown categorical results to the opposite. I’m rambling.

Do leave my any thoughts on the suspend image based OS.

Kind regards, Robert.

  • Share/Bookmark