Archive for December, 2008
Forgot Root Password?
I had this problem few months back, but hey this is not the end of the world and most of you I believe already knew how we can reset the old password to the new one. There are few method and some working nicely with Noguix, Slackware and some only work with SLES and Opensuse. :-
1) Boot to init 1
This method known to be work with Noguix and Slackware, just reboot your machine, at the grub menu just simply press “e” button then put “single” or “init=/bin/bash” parameter at the end of your kernel line. Press “Enter” then press “b” to boot the machine with new appended line. Normally after this you will get a prompt “bash#” then,
bash#passwd
You need to key in the new password and reconfirm it once again. Reboot your machine and login with your new root password.
2) Edit /etc/shadow
This known to be work for almost Linux Distro with 2.4 kernel
- Boot your machine with Noguix live-cd
- mount -t ext3 /dev/sdaX /mnt/sdaX -o rw (which sdaX is your root partition)
- vi /mnt/sdaX/etc/shadow
- Remove everything from first and the second coluns
- root:$1$F1i/2no5$IAIkqIHzcR5SOhM/1WiOy.:14198:0::::: and should become
- root::14198:0:::::
- Save it, $cd and unmount the drive with $umount /mnt/sdaX
- Reboot your machine without live-cd.
- You then will be asked for new password
3) Chroot
This method can be used for SuSE and OpenSuSE machine and mostly work on all type of Linux Distro
- boot with any live-cd
- $mount -t ext3 /dev/sdaX /mnt/sdaX -o rw (/dev/sdaX must be your root partition)
- $chroot /mnt/sdaX /bin/bash
- $passwd
ariyossss
athlon_crazy 25/12/2008 21:49pm
No commentsMount Partitions With “noatime”
While doing some research “how to improve the IO performance” on the net I found one good tutorial which mentioned mounting the partition with “noatime” option can result significant IO performance particularly on Linux machine. As for simple understanding :
- set noatime = NO = last read access of files will result in disk write operation
- set noatime = YES = last read access information will be not updated
This by the way excluding any changes made to the files which need to be updated.
I can feel a bit improvement on my Slackware when browsing my media partition with “noatime” option which before this slightly lag. However, I will test this on one of my Noguix machine running on VMware ESX which provide me with better graphical & result in details.
How to mount with “noatime” option:-
Edit your /etc/fstab
/dev/sdaX /media/sdaX ext3 defaults 0 0
to
/dev/sdaX /media/sdaX ext3 defaults,noatime 0 0
Then run
$mount -o remount /media/sdaX
ariyossss
athlon_crazy 21122008 1:48am
1 commentDamn Boring!
Damn Boring! What I’m doing now at my customer site alone in the middle of the night?. At 1:00am, out side is raining, the whether so cold and I can feel all my colleagues now sleeping with nice wet dream. !@#$%^.
I can’t believe I’m still doing support at this time and if the reason I’m here because of some project it’s different story but I overnight for the support dude! This is madness!
I really don’t know why SLES9 patch via rug take so much time to finish. 2 hours and plus already but no sign this patching will be finished within this few minutes.
F!@#$ U.
ariyossss
athlon_crazy 16/12/2008
No commentsSamba PDC Implementation on Noguix
Previously I did a lot of testing on Samba PDC on noguix linux without actually implement it into my home network. Since the number of virtual machine now really growing up and perhaps this is the time for me to have it sooner rather than later. To be honest, my first and second attempt was not successful. The first attempt had something wrong with my samba PDC configuration files and the second one, I don’t have a DHCP server in my previous environment to push DNS server for host name resolution for client who want to join the domain but at least I know my samba PDC configuration file now is working.
So with the third attempt plus working DHCP, DNS & Samba PDC server, I managed to joined the first WinXP machine into PDC via Network ID. I wish I could learn a different scenario and step in joining various OS to samba PDC, then I add another eight (8) Linux machines and one (1) Win2k3r2 to this PDC. As I expected, it works like a charm without so much issue and with some modification on smb.conf files, my job to control all the machines become so easy. You can actually do auto map drive for all windows
users, save the profiles & create standard or power users when joining samba PDC in other words, you are controlling them. Isn’t this too cool?
Thanks
p/s : You can find this complete tutorial in the documentation section.
athlon_crazy 8/12/2008 12:26am
No comments
