Posts

Showing posts from November, 2011

How to disable "Reopen windows when logging back in" in Mac OS X Lion

We might have seen when we log out, restart or shutdown Mac OS X Lion, we get a dialog window with a check box next to “Reopen windows when logging back in” that restores all of your currently open applications and windows. To disable this feature there is no visible preference/configuration item to do this. The mac os x stores all the window related information under under each users preferences directory. Upon next login it loads all the windows based on the saved data under preferences. The following section helps you in how to disable this.
1. Write a shell Script as below and and save as disable.sh : #!/bin/bash
   echo "#!/bin/bash" > /tmp/disableWindows.sh
 echo "rm/Users/*/Library/Preferences/ByHost/com.apple.loginwindow.*" >>/tmp/disableWindows.sh
   mv /tmp/disableWindows.sh /usr/bin/disableWindows.sh
   chmod +x /usr/bin/disableWindows.sh
   defaults write com.apple.loginwindow LoginHook /usr/bin/disableWindows.sh
2. Run the disable.sh with sudo pri…

How to reset root password in OpenSuSE and SuSE Linux Enterprise Desktop.

In case you have forgot the root password in your OpenSuSE or SuSE Linux Enterprise Desktop system, the following steps will help you in resetting your root password.
Turn on your system.In the grub menu select the kernel you want to boot and press tab to shift focus to "Boot Options"Now type ,    init =/bin/bash ( if you are using GRUB boot loader)  or linux init=/bin/bash ( if you are using the LILO boot loader). Press Enter to continue.You will see a prompt such as  (none)# in the teminal.Now run command mount , to verify whether your  "/"  volume is mounted or not.If mounted, Run passwd command in terminal to change the password for root.