Author Archive for Kirrus

Hello

Sorry for the large gap in my posting. I’ve just moved to London and whilst my work is internet-related, did not feel it right for me to use the office PCs & net connection to blog, whilst I await a broadband service to be connected at home :)

I do like to keep some separation between home and work.

Anyway, I finally signed out the office 3G USB stick, so that I can have internet access at home. (To check it works, when I go on-call this weekend and get woken up at stupid hours in the morning when servers go down, because trust me. They will. Of course. That is the only reason. Being able to blog again is only a happy side effect. *ahem* ;) )

So far, it seems to work ok. I’ve not had any problems really, apart from having to add a new section in my firewall configuration so that the relevant holes will be opened in my laptop’s defence. If you’re interested (comment) I’ll post the version of the stick we’ve got, and how to make it work in Hardy.

Also, this connection is of course, compressed like nothing by Vodaphone. So much so that images coming down look… well very bad. Anyway, as most of what I do online is text based, I’m not crying too much. Just one question, for those of you with 3G compressed data-sticks: Is the upstream also compressed to corruption? I’m asking, as I have a set of images from my camera, that I really should look at uploading, but I don’t want them to be compressed on the way to flikr, or this site.

Right. Its late, and I want to go to bed. Night all :)

Linux command line tips & Stuff

I’ve been taught a couple of command line tips at work, and thought it wouldn’t be fair if I didn’t pass them on. So, we begin.

CTRL-R

This insanely useful trick, in a terminal or a console, will allow you to search your bash history for any command you’ve previously run and re-run it. For example, quite often on my laptop, type “CTRL-R upg” in a terminal window, which runs the following command:

sudo apt-get update && sudo apt-get upgrade -y

If you don’t know, that command updates your package repository listing (what programs have been updated), and then goes and upgrades all of the packages that have been upgraded, with the only exception of the more significant upgrades, like to the kernel. (A human has to activate those particular upgrades - and the -y tag doesn’t signify human, as that command can be cron jobbed very easily…)

CTRL-O

This one I was taught in my interview for Positive Internet. (So, I’d better not get this wrong! ;))

If you have run a series of commands in a terminal or console repeatedly, say editing a file, doing a config check and then restarting apache (as I have done whilst I’ve been playing with my Apache2 config file for this blog), then this little switch is priceless. Basically, once you hit the up arrow to find the command you wish to use, hitting CTRL-O instead of Enter, will execute the command, and then once you’re back at the shell prompt list the next command in the series. So for the first set of commands:

vi /etc/apache2/sites-available/kirrus  [ENTER and edit the config]
apache2ctl configtest [ENTER]
apache2ctl graceful [ENTER]

Ooops, I’ve just killed my blog by way of a looping redirect! Quick, undo!

[UP ARROW, UP ARROW, UP ARROW]
vi /etc/apache2/sites-available/kirrus [CTRL-O and fix the config]
apache2ctl configtest [CTRL-O]
apache2ctl graceful [ENTER]

The benefit? The second time round, once I found and initiated the series of commands, I didn’t need to type anything, other than the changes to the config file, and the initiating control sequences. Annoyingly, you can’t just hit CTRL-O once, and then expect to be in the chain next time you hit enter - hitting enter won’t provide you with the next command in the chain once you’re finished. Although, this of course can be a good thing, if you want to return to a clean command prompt.

Hopefully one of those will be useful to you.

Ubuntu-UK Planet, Caffeine and Rambling.

For some strange reason, the Ubuntu UK planet didn’t pick up my last post as a new post. Possibly because it got a little confused with the server move and IP address change? Anyway, for those of you reading this on the planet, I have a post about a couple of the tools that come with apache2 on my blog. Not much, but hopefully interesting.

Caffeine: I’ve pretty much overdosed this evening. Head’s swimming right now, and the screen appears to be filling my vision (hence the more than normal ramblingness [yes I invented a word :)] going on in this post). Stayed on at work for an hour and a half, pushing me closer to the tiredness limit. So, on the way home I drank a bottle of Coca Cola, (the tube section) and a small americano coffee (the train section). It kept me awake (yay!) at the cost of me being a little… jumpy at the moment. Still, it’ll wear down shortly, especially since I finished my food about 20 minutes ago. That always helps clear the caffeine effect. So, shortly I’m going to crash from my caffeine high, and be a Zombie. Hopefully won’t be that way tomorrow morning, but at least I can sleep on the train in and if I’m lucky and get a next-to-the-door seat on the tube quickly, on the tube in. (The glass to your left or right acts as a good, if a little hard, pillow. The glass behind you, unfortunately, moves too much, and gets painful quite quickly.)

Right. I can feel myself starting to slow down, so I’d better sign off before the Zombieness (Yay for creating random useless words!) comes into play.

Stay safe :)

Moved & a couple of Apache2 tools/tricks

If you can can see this post, then my server move is complete. I have moved this blog across to a dedicated server, provided by my employers, Positive Internet.

So far, I’ve not done too much playing with it, but in case you need to know, adding this in your apache2.conf file will allow it to read .htaccess files in any /home/<username>/public_html/ document roots - handy if you don’t want to use /var/www/ to store all your websites.

<Directory /home/*/public_html>
        AllowOverride All
</Directory>

There are a couple of useful apache2 tools which don’t get a lot of publicity.

a2enmod - enable a mod in apache. You’ll need to reload apache after running it. If you run it without specifying a mod, it will list all available ones.

a2dismod - disable a mod. Again, if you run it without specifying a mod it will list all enabled ones, before giving you a prompt asking which one to disable.

Along similar lines, if you’re using sites-available/sites-enabled to quickly enable/disable vhosts, you can use:

a2ensite - enable a website.

a2dissite - disable a website.

Of course, you can then use apache2ctl graceful to restart the webserver nicely - so the changes take effect, but you don’t close all the connections currently talking to apache.

Have fun!

Oh my. The grandeur. The absurdity.

http://news.bbc.co.uk/1/hi/technology/7492907.stm

…Skype or even Firefox might be declared illegal in Europe if they are not certified by an administrative authority

The day, literally, the DAY that I publish my warning and thoughts on exactly this.


Time, privacy and its lack thereof

Over the weekend I watched “V for Vendetta”. Its come up recently in a forum I frequent, specifically the quote at the beginning - about ideas being impossible to kill.

Its wrong.

Ideas can be killed. Eventually. It takes time, patience, and willingness on the part of those whose minds you are changing.

I wonder, do you ever worry about this country? (I’m talking to the Brits here. Sorry everyone else, this post is aimed at the UK, our laws and situation though you may find parallels about where you live.) We have a government that (almost) no-one likes. We have a leader, who at best could be termed ignorant. At worst a devious schemer.

Not worked out what I’m talking about yet? This is what I’m talking about. I’m talking about the erosion of our privacy. I’m talking about the surveillance state we are in. Do you even know what powers our oh so wonderful government has over us now? Read some of the above links. Heck even the Information Commissioner, the guy supposed to be looking after our privacy as relating to computers is saying its here!

I’ve been reading all these news items one by one, slowly, over a period of the three or so years that I’ve been watching and reading all articles that come up in BBC News’s tech section. As I’ve read them one by one, and not put them together, I haven’t worried too much. Till now. Apart, each are only merely slightly worrying. Together, we’ve got a problem. If you’ve not already, I recommend you now go and watch “V for Vendetta“, and then read “The Traveller“. Then continue reading below the line.

———————————————————————————-

You think the technologies to create this don’t exist? As someone who sits on the edge (or maybe inside) of geek-dom, I can say with knowledge and certainty, they do. We could be living in George Orwell’s 1984’s level of observation in a simple matter of 6 months. Heck, if you’re in London, you’re probably already carrying at least one unique ID tracker, most of which can be read remotely at 30 feet (or more). Your RFID Oyster card. Your mobile phone. Your RFID chipped passport. Your RFID credit/debit card.

Don’t believe me? Read up on RFID and RFID skimming.

Literally, all we have to do now is wait, as our last safeguards are removed or bypassed, and before too long all it will take to bring us to the societies depicted in “1984″, “V for Vendetta” and “The Traveller” is one crack pot power maniac in government. Need I mention, I don’t have a high opinion of Gordon Brown?

Its not as if it hasn’t happened before in history, one man taking over a democratic country and turning it into a dictatorship. But much worse, as in our country is all the tools needed to *keep* our country in a dictatorship and aid its passage to one.

Now, I can say all this, as we’re not there yet. However, I see the day fast approaching when I would be arrested for what I have written here, and asked to relinquish my encryption key’s pass phrase. (You’ll have to torture me before that happens.)

Someone once told me, that we’d never get to the point where the EU constitution comes into play. The treaty that was ratified by the UK merely a few weeks ago, was basically the EU constitution.

I have heard many times, “I’ve got nothing to hide”. No, not yet. Until you have to hide your sexuality. Your Race. Your religious beliefs. Your musical preferences. Your secrets.

I leave you with a link and this old, poem. How long before it becomes relevant once more?

=======================

When the Nazis came for the communists,
I remained silent;
I was not a communist.

When they locked up the social democrats,
I remained silent;
I was not a social democrat.

When they came for the trade unionists,
I did not speak out;
I was not a trade unionist.

When they came for the Jews,
I remained silent;
I wasn’t a Jew.

When they came for me,

there was no one left to speak out.

=======================

Click Here to talk to others worried about this

Want to know more? Click the image.

Want to fight? Click the image.

Will you remain silent?

Hancock, Books and photographs

Hancock

I went and saw this film with my brother and a couple of mates today. Was good, up to a point. Certainly, Will Smith is getting better - he appeared to play the part flawlessly, at a level I’ve not seen him act at before.

My one, slight moan, is that they included a brief, guarded and pointless sex scene. I guess, it *may* have been included to make a point, but it felt more like a box-tick exercise than anything else. Apart from that, an enjoyable way to while away a bit of time.

Books

Stack of booksBooks, I finished a Colin Forbes book this week. Awful. I had to put it down mid-way, and read a completely different book as a break before I picked up again. It felt so rough! And to think, I used to like his books. Fit his usual formula to a T, felt contrived, with a few instances of what PBEM RPG players call “SuperHero Syndrome“. In a Matthew Reily book, I can forgive SuperHero syndrome: he does it with such flair! However, it is not forgiveable in a Colin Forbes book. Which is a shame.

I started to read a Clive Cussler book “Dark Watch” a few weeks back. I got half way through, an OK book, till I got to a line of pure placement advertisement, which put me off completely and utterly. Here’s an extract. (For the copyright fiends out there, this is fair use!)

“Juan found a parking spot a few blocks from the court and spent the next two hours walking the neighborhood, sipping black coffee from a Starbucks. He felt he should have bought his coffee from a local vendor instead of an international franchise, but it had been months since he’d had a taste of his favourite brew. He made a mental note to contact the company’s Seattle headquarters and see if it was possible to buy their special equipment for the Oregon.” [Oregon is the wet-merc ship he captains.]

Oh dear. What an abysmal excuse for an advert. At the very least, it could have been subtle! Stopping at “it had been months..” would have been fine. I have stopped reading the book. I’ll finish it sometime, but not yet. When I’m not so irritated at that advert. At least on the web, it is generally fairly easy to spot, and ignore, them. A bit harder to when you’re engrossed in a story.

Photographs

I’ve been trying to use F-Spot on my laptop to manage photos. Unfortionately, it has a nasty habit of freezing my laptop totally, when I click “OK” on certain dialog boxes. Quite frustrating. So, another question for those reading, what image management software would you recommend ? It has to run nativly on Ubuntu Hardy, but apart from that, pick whatever you like (including web-software). I have a large collection of photos (my camera’s counter recently went over the 1,000 mark), which I want to tag and organise. An effective search function is a must, so that I can add relevant photos to my blogs from my collections.

Books going free!

Hello all. I seem to be gaining books at an alarming rate, what with my current commute. So, I am going to give you first refusal (before I put these up on Bookmooch) on two sets of Elizabeth Moon books. Both of which I would love to be able to keep, but which I don’t have the space to.

So without further ado, I am offering these books to the first person who emails/comments for them. Full postal addresses if you please, UK preferred, but I will send to the US if asked.

The Serrano Legacy - 3 compendiums (paperback)

Vatta’s War - 5 books (paperback)

I also have Kevin J Anderson’s the Saga of the Seven suns, collection or close only (All 7 books. Its big. I live near London. Email for more info)

James Patterson’s Four Blind Mice. As this came from the US, I’d be quite happy to ship it back there.

My Email address is: kirrus@kirrus.co.uk

In unrelated stuff, I let my 5-a-day launchpad group subscription expire this weekend. Boy, it doesn’t half nag you! I got an email every day for _7_ days, saying “you’ll get one more email, when its expired”. Annoying by half. Unfortionatly with my nasty commute, I’ve not got the energy required for triage :(

Irony

Now, this is what I call irony.

Currently, I’m going past this poster every time I go through a certain underground station.

(Cookie for the first person who guesses which station *).

As you can see, its an advert for the John Twelve Hawks book “The Dark River”, which apart from being a good read, contains a insightful set of images about our current existence in a surveillance state.


Almost directly opposite this poster, almost staring at it, is this delightful example of exactly that surveillance state:

In other news, I still think that Daviey (of  Ubuntu-UK Podcast, amongst other achievements, fame) sounds almost like one of the London Victoria Tube station announcers. Something in the inflection of the voice…

Work is going well. I’m quite tired and haven’t had much time spare to do much I like. I’m coming to realise that I can’t afford to run a car, and live close to work. Great. Sell the car, or put up with 2 to 2 and a half hour commute. Wonderful.

Lazyweb, whats your advice?

* Note, cookie is entirely virtual and is a figment of our collective imaginations.
As long as you don't actually want to look at it, feel it or eat it, its exists and can be won...

Reading

I’ve been reading a lot of novels (on my commute) recently, so I thought it was probably about time I reviewed a couple of them.

Elizabeth Moon

I’ve been reading a lot by Elizabeth Moon recently. She mostly writes Space-Opera/Sci-Fi, athough she has one fantasy trilogy and one Autism related book.

Vatta’s War is a series of 5 books, set in a well-described universe. Some themes and technologies are reminicient of her earlier works, mainly the Serrano Legacy, but it is different enough to be a good read.

Her autism book is called The Speed of Dark, and it has to be one of the best books I’ve ever read. Its very emotional, but based on the authors own knowlegde of Autism. (Her son is Autistic.) If you want to know more about what makes autism different (and why it is part of a sufferers’ [for lack of a better term] identity), read this. Well… just read it anyway. Excellent book.

James Patterson - Four Blind Mice

This is a murder mystery, with a number of twists. A continuation of his “Alex Cross” series… A good read. Not something to shout from the rooftops about, but a good read. Hard to guess the ending :)

John Twelve Hawks - The Dark River

The second book in his trilogy. Preceded by “The Traveller“. Awesome book. He has quite a lot of knowledge about surveillance technologies. He’s made a couple of mistakes (one, for example, relating to the technical bits of “ip addresses”, but the only reason I picked that up is because I’m a computer geek, who understands the some of the basics behind the internet.) But, nothing too serious. Most of this technology exists, or is in final stage of development. http://news.bbc.co.uk/1/hi/sci/tech/7433128.stm < scary.

For a book (and the series) its quite interesting, a mixture of sci-fi and reality. Makes you think deeply, so its true sci-fi.

Round-up

I’d recommend reading Elizabeth Moon’s The Speed of DarkJohn Twelve HawksThe Traveller and The Dark River, to actually get something from the books. The others are just pure pleasure reading, but none the less enjoyable :)
I’ll stop rambling here, as my mind is swiming somewhat, and this screen seems to be filling my vison. Its been a long few weeks….

Hidden Ubuntu Gems: Window Selection, Always on Top & Password Gen

I thought it was probably a good time for another Ubuntu-related post, so here we go.

Window Selection

Window controls, selection raising etc

Something I found on one of my explorations, is this really handy feature (handy for me at least), which allows you to give a window “focus” (or selection) merely by putting your mouse over it. To activate it, click on “System”, go to “Preferences”, and then click on “Window”. Up pops a small selection window.

As you can see, I’ve ticked “Select windows when the mouse moves over them”. You can also have windows be raised to the top of the screen if you hold your mouse over them for a certain length of time. As my collegue at work found, setting the interval to “0″ is not very useful…

There are a couple of other tweaks you can make here. I’ll let you explore them on your own :)

Always on Top

“Always on Top” allows you to basically tell the system that you want a window to be the upper-most on the screen, no matter what else you do. You can’t “Raise” anything above it. I tend to use this little gem with my next tip.

Set a window to be always on top by right clicking on the title bar (the big orange bar at the top of the window, which contains the minimize, maximize and close buttons). Click the “Always on Top” option. That  window will now stick on top of your screen. Undo it, by right clicking again on the title bar, and clicking “Always on Top” again.

Password Gen (pwgen)

pwgen is a small, neat, command-line program to quickly generate fairly easy-to-remember, fairly secure passwords. You can install it by clicking here, or going to whichever package manager you prefer (synaptic, Add-Remove Programs, apt-get or aptitude) and installing “pwgen”.a screenshot of pwgen with my preferred settings in use

Use it simply by typing “pwgen” in a terminal (”Applications” > “Accessories” > “Terminal”). I tend to run it with the command “pwgen 8 1″, which generates one 8 character password.

Now, if you’re adding a lot of users to a system or something (I am currently at work), using a combination of these tips will save you time… I’ll leave it up to you to work out how to combine them. (Hint: resizing a terminal window like I did above is a good starting point.)




Creative Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales
Creative Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales