In suse, if you forgot your root password, you can go to the single mode as usual. Steps are explained below:
1. Reboot the machine
2. When Startup Options(blue background in SLES) appear, choose Failsafe mode
3. In the Boot Options, append init=/bin/sh at the end of the line
4. Press Enter to boot
5. You will be presented with a shell. Change your password using command passwd root
6. Reboot the machine. root is now can be accessed using your new password
Tuesday, March 31, 2009
Suse forgotten root password
Wednesday, March 25, 2009
Changing default shell in ubuntu
I faced this problem when I created a new account using command line where the default shell of my new account is /bin/sh. After googling around, I found 2 useful solutions which are listed below:
1. Change user entry in /etc/passwd
a) edit /etc/passwd using any editor
- $ vi /etc/passwd
- foo:x:1001:1001::/home/foo:/bin/sh
- foo:x:1001:1001::/home/foo:/bin/bash
e) Logout and login back
2. Use chsh command
a) type chsh
- $ chsh
c) This screen will appear
- Enter the new value, or press ENTER for the default
Login Shell [/bin/sh]:
Done :)
Thursday, March 19, 2009
Turn off automatic first capital letter in openoffice
By default, openoffice will automatically turn the first letter to capital in a sentence. This feature is very useful but sometimes you do not want your first letter in your sentence to be capital. There is a setting that you have to turn off to make this happen. This steps have been tested on openoffice 3.
- go to Tools -> AutoCorrect
- go to Options tab
- Uncheck Capitalize first letter of every sentence under [T] which means disable capitalize first letter of every sentence when typing
- Click on OK
Tuesday, March 3, 2009
Installing microsoft truetype font on ubuntu
The reason we need this microsoft truetype fonts is that we want the documents created in microsoft office to be nicely opened in openoffice. To install microsoft trutype fonts:
1. Run the command below to install msttcorefonts. You can also use synaptics package manager to install if you are not familiar with terminal
$ sudo apt-get install msttcorefonts
2. To immediately use the new font, run the command below to rebuild back font information cache files
$ sudo fc-cache -fv
3. Your new fonts are ready to be used. Fonts that are already installed are:
- Andale Mono
- Arial Black
- Arial (Bold, Italic, Bold Italic)
- Comic Sans MS (Bold)
- Courier New (Bold, Italic, Bold Italic)
- Georgia (Bold, Italic, Bold Italic)
- Impact
- Times New Roman (Bold, Italic, Bold Italic)
- Trebuchet (Bold, Italic, Bold Italic)
- Verdana (Bold, Italic, Bold Italic)
- Webdings