Archive for August, 2005

Ubuntu lost root password

Thursday, August 18th, 2005

On popular request, here’s the command that let you change the root password if you just simply don’t know it. Anyway I need to warn you, that the root user itself is not enabled by default, so it really does not have a password either.

I must cite it again: you do not need a standalone root user to work with Ubuntu!

The normal user account that you have - holds the right to do super user operations, so you’re the root yourself. All users, who belong to the admins group will automatically have right as well (check settings in the /etc/sudoers file).

The sudo way means that you just want to do a task, but not run a shell as root. This is a huge difference! So instead of saying su, or su - to get to a root shell, you can say only sudo whatever and you’ll be asked your normal user password only. That’s all :)

If you still keen on to have the normal root user on your box, type:

sudo passwd root

However I should say again, you don’t want the root user became active on your box. If you want a root shell, simply run: sudo -s to get one!


Ndiswrapper and the ASCII WEP key

Monday, August 8th, 2005

Using Ndiswrapper under Ubuntu is fun! Really easy to configure and install. My AP is in ASCII WEP code mode, so I just need the following commands to make it work: iwconfig wlan0 essid APNAME
iwconfig wlan0 key restricted s:THEPASSWORD

The *nix way. I love it.

Update: if you plug in the USB wifi device after the bootup procedure, it’ll not load the drivers. You must say ifup wlan0 to active it.


Ubuntu restore after Windows Install

Monday, August 8th, 2005

I badly needed Windows on my laptop, and had only some hours to install it, so I skipped the step to make it a dual-boot system.
As I returned to so called “normal operation” I wanted to use Ubuntu again. What to do? The Grub multiloader had been overwritten by Windows, so switching the Boot flag to the partition is not enough.
1) I found a nice image file at http://www.troubleshooters.com/linux/grub/grub.htm, downloaded and created a bootable CD with it.
2) When the Grub menu appeared, I pressed c for command-line options.
3) Typed: root (hd0,0)
setup (hd0)

4) Voila, Grub found the necessary vmlinuz file and the initrd (which was manually impossible for me) and after a reboot, I was able to log in to Ubuntu again.
5) I added the Windows partition to the Grub menu (/boot/grub/menu.lst)
title Microsoft Windows
root (hd0,1)
savedefault
makeactive
chainloader +1

6) don’t forget to change the ‘hiddenmenu’ item to ‘menu’, otherwise you’ll not see the boot menu, just after pressing Esc
7) and from now on the two operating systems live together, happily ever after.


Mac OS X - Erase / Write CD-RW from Terminal

Monday, August 8th, 2005

I’m blessed to find this: hdiutil burn -erase No need for external apps. In the next post i’ll find out how to write a Bootable Image from a .dmg file ;)
Update: as I mentioned above, here’s the code: hdiutil burn something.iso

That’s clean and easy.


Spamassassin misery on Fedora

Monday, August 1st, 2005

sa-learn --D --force-expire equals -30% cpu usage… sweet ;)


Balint.tk is now using a subset of this Wordpress engine

Monday, August 1st, 2005

For testing purposes - and to get to know more about how Wordpress is doing it’s business - I’ve re-created my personal homepage under http://balint.tk - using the same database and engine what I have on this virtual site.

*this post is a stub, it will continue when more steps of this progress will show up to the public :) *


Compile Codebehind web projects with Mono

Monday, August 1st, 2005

I’ve found a cool article about codebehind stuff under http://bdn.borland.com/article/0,1410,32057,00.html and I’ve upgraded http://skaelede.hu to be a Codebehind project. (All I needed to do is to remove the src="index.aspx.cs" from the index.aspx file header) then run the following script given in the example. In the last step, you need to move the DLL to the so called bin directory of the given project.