Reset root password in Debian

Today I’ve faced embarrassing situation, I’ve forgot my root password to my Debian VM. I know this is lame. But happened, so I’ve started looking for solution and after viewing few more or less helpful websites I’ve compiled my own solution. To reset root password on Debian (Lenny) do following:

  1. During start of PC when there is your boot manager displayed press “e”.
  2. Move arrow on the keyboard to highlight “kernel”.
  3. Press “e” again.
  4. On the displayed line change “ro” to “rw” and add “init=/bin/bash” at the end. Without quotation marks of course.
  5. Press Enter and then “b” to boot your Debian.
  6. Debian would boot to bash console with root privileges. Now execute “passwd” command and input your new password.
  7. Reboot your system.

That’s it. Your root account is now back. Enjoy!

VMWare Workstation and switching between Linux virtual terminals

I’m using VMWare Workstation a lot to virtualize my testing environments. Along with many other OSs that I’m using there are Linux systems and one of the most useful functionality in Linux are (in my opinion) virtual terminals. Virtual terminal is like your another monitor, so when doing many things you can avoid mess by using few “desktops” instead of one. In Linux you’re creating and switching between terminals by pressing CTRL+ALT+F1-12. Problem with VMWare is that CTRL+ALT has special meaning there, so pressing mentioned combination does nothing. Instead you can use workaround, first press CTRL+ALT+SPACE, then release SPACE and press F1-12 button.

First digital camera

Have you ever seen first digital camera? Here it is:

It was developed by Kodak engineer Steve Sasson in December 1975. It was capable of making black/white photos, had 0.01 Megapixel and taking picture took him about 23 seconds. Oh, and it stored your photos on simple magnetic tape, like for Walkman. And now you have a lot better device in your pocket size cell phone, nice.

How to get colored syntax in Vim on Debian

I’m using Debian Linux as a second operating system. Previously I was using it only for my servers, but now I’ve decided to start doing some software development on it. As I love bash environment, the choice of text editor was pretty obvious, Vim, the greatest editor ever made. But problem was that I like my syntax to be colored, it’s easier to write program code then. No problem, I thought, quick searching via Google gave me the “:syntax on” command which should enable what I’ve wanted. After typing it in my Vim I’ve received a message “command not available in this version”, WTF? So I’ve searched and searched, and searched a little more:) And finally solved it!

Kosciusko and a beer

I’ve found set of old Budweiser advertising posters and among them was this one:

If you don’t know who was Kosciusko ask Wikipedia Well, it’s a little shame that Polish hero was used for advertising such beer as Bud. I’m talking about American Budweiser which is not drinkable, not Czech one which is very good. America has definitively got good beers, but Bud is not one of them.

Legion

Another movie added to my to-watch list. Looks like story is pretty stupid and naive, but it would be smashing with special effects and action. And Quaid is playing there, one of my favorite actors. Although scene with ice cream man is one the dumbest I’ve ever seen. Fortunately rest of “monsters” look good, so I’ll definitively give it a try. Oh, and grandma is awesome!

Update your WordPress!

Just a quick note. If you are, like me, using WordPress for your blog then you should update it to version 2.8.4 asap. Read more here.

Windows Update is not multilingual!

For about a month I was receiving notification that there is service pack 2 available for my Office 2007 package via Windows Update. So I’ve chosen to install it, but it always returned error when installing. Today I’ve decided that it’s about time to update my Office, so I’ve navigated to MS site and downloaded update manually. Started installation and boom, error again! But then something came to my mind, “wait a minute, I have English version of Vista, but Polish version of Office!”. Of course, it was so simple. I’ve downloaded Polish version of service pack 2 and installation went smoothly. Yeah! But why Windows Update cannot recognize that I’m using Polish version. Is it making decisions only basing on version of OS? Apparently yes, but it’s stupid. Hopefully it would be fixed in Windows 7.