After installing Ubuntu on a USB stick with the Ubuntu USB Startup Disk Creator (usb-creator-gtk) you might encounter an error such as the following:
stdin: I/O error stdin: error 0 /init: line 1: can’t open /dev/sr0: No medium found
This is actually a bug with the software and isn’t anything you’ve done wrong. It […]
I have a TV and my monitor connected to my PC by a VGA switch box but what’s annoying is they aren’t the same resolution. This causes problems because I can’t see what I’m doing when I have switched to TV and usually have to leave the setting manager open so that when I […]
After installing Ubuntu 11.10 I headed straight for an install of gnome-shell, I’ve been using it for a couple of months without any issue and got used to it enough that it wouldn’t impede on my workflow. That was until this release, when it was officially supported by Canonical and all of a […]
ifconfig eth0 | sed -n ‘/^[A-Za-z0-9]/ {N;/dr:/{;s/.*dr://;s/ .*//;p;}}’
So you want to display just your IP address and not all the other stuff that comes with using the ifconfig command. Then use the above command.
It’s useful if you need your IP address in a script but you don’t want to set a static […]
Let’s say you’ve got a text file, of any size, big or small, and you want to remove every other line of that file, well here are a few commands in Linux that allow you to do this.
Example, you want to get from this:
1 2 3 4 5 6 7 8 9 […]
So, you’ve created an awesome Live USB Linux stick with a persistence file which let’s you boot anywhere and carry all your sweet sweet datas around on it too. If you want to see those files in Linux on your desktop or laptop outside the USB you’re going to have to mount the loop […]
Previously I was having problems with Ubuntu dropping wifi connections and failing to reconnect, to solve this I wrote a script which would kill the network-manager and then connect using iwconfig commands (here). While this works fine, it felt a little hacky, having to have a script running as sudo constantly in the background […]
A quick guide for getting pyrobot running in Ubuntu, I’ve managed to get it running on 32bit and 64bit Ubuntu (10.10) so follow the guide accordingly to whichever architecture you’re using (64bit is about half way down the post).
32-bit
1. Download this file, or copy the below into a file and save it […]
One of my most used commands in Linux is the history command, it lists all your recent commands. The problem with this is you might have to scroll through hundreds before you get to one of any interest, so adding grep to search through these and bring back only relative one’s is great.
Give […]
|
About
Alex - Roboticist
Studied Robotics BSc and MSc by Research at UWE.
Currently working at BMT Group Ltd.
I like my software and OS, like I like my beer, free (in both senses of the term). I program in C/C++, Python, Bash on x86, x64, PIC, ARM, Dead Wildlife. Particular interest in Linux, Machine Vision, Android and Underwater, and posting is likely to follow these interests.
You're free to redistribute anything you find on here, unless it states otherwise, as long as you are not selling it for profit and you link back to my site. Cheers.
Disclaimer
Just to cover my ass. Any information on this site is for informational purposes only, I take no responsibility for the accuracy, reliability, bla, bla or bla to it. Any information you use, you are using at your own risk. I am in no way liable for any loss, damage of data, hardware or anything else in connection with the use of this website.
|