Ubuntu 9.10 root logon VI supports backspace and direction keys exit XWindow shortcut keys set apt-Get source to get configuration 小 installation netbeans font garbled solution reprint

Source: Internet
Author: User
Tags netbeans

Ubuntu 9.10 is newly installed. To better use Ubuntu, You need to configure it better.

----------------------------------------

I am used to centos, so it is not suitable to add the sudo when using Ubuntu, And the folder access

There are also restrictions, so I think using the root account to log on, the method is as follows:
Sudo passwd root can set the password for the root user twice.
----------------------------------

Ubuntu VI does not support direction keys and backspace keys. Therefore, you need to add these functions as follows:
VI/etc/Vim/vimrc. Tiny
Change set compatible to set nocompatible.
Set backspace = 2
----------------------------------
Ubuntu shields the shortcut keys for exiting XWindow by default, so if you want to use CTRL + ALT + backspace to restart xwindows or

Use this shortcut key to log out and modify it as follows:

System-> preferences-> keyboard, click the layout tab, and then click the layout option in the lower left corner.
Find the key sequence to kill the X server, and check contrl + ALT + backspace.
Or enter
Setxkbmap-option terminate: ctrl_alt_bksp

----------------------------------

Change the Ubuntu font to and configure the penguin input method (the built-in input method is quite uncomfortable)
1. Create a path and copy the font to the created path.
Sudo mkdir-P/usr/share/fonts/zh_cn/TrueType
Sudo CP/Media/WINXP/Windows/fonts/simsun. TTC/usr/share/fonts/zh_cn/TrueType/simsun. TTF
Sudo CP/Media/WINXP/Windows/fonts/tahomabd. TTF/usr/share/fonts/zh_cn/TrueType/
Sudo CP/Media/WINXP/Windows/fonts/tahoma. TTF/usr/share/fonts/zh_cn/TrueType/
Sudo CP/Media/WINXP/Windows/fonts/verdanab. TTF/usr/share/fonts/zh_cn/TrueType/
Sudo CP/Media/WINXP/Windows/fonts/verdanai. TTF/usr/share/fonts/zh_cn/TrueType/
Sudo CP/Media/WINXP/Windows/fonts/verdana. TTF/usr/share/fonts/zh_cn/TrueType/
Sudo CP/Media/WINXP/Windows/fonts/verdanaz. TTF/usr/share/fonts/zh_cn/TrueType/
2. Download The font http://rapid=.com/files/34564259/yahei.consolas.1.11b.when downloading the file, select free user. The download starts in about 40 s.
Copy the content in the compressed package to/usr/share/fonts/zh_cn/TrueType/and rename it yahei. Las las. TTF.
3
Generate the font directory list and other commands:
Sudo chmod 644/usr/share/fonts/zh_cn/TrueType
CD/usr/share/fonts/zh_cn/TrueType/
Sudo mkfontscale
Sudo mkfontdir
Sudo FC-Cache/usr/share/fonts/zh_cn/TrueType/

4
Modify configuration file
Sudo gedit/etc/fonts/CONF. d/69-language-selector-zh-cn.conf
Locate the row and add the yahei consolas hybrid in three places.
For example:
<String> yahei kerberlas hybrid </string>
<String> bitstream Vera sans mono </string>
<String> dejavu sans mono </string>
<String> wenquanyi Zen Hei </string>
<String> ar PL uming CN </string>
..........
5. Restart XWindow and use CTRL + ALT + backspace. (to use this command, you must first select system> preferences> keyboard> layout option> check Key sequence to kill the X server.)
Sudo apt-Get install fcitx
Set the Default Input Method to fcitx.
Im-switch-s fcitx // no need to add sudo
After X-window is restarted, The fcitx input method should be started normally. The input entries will be displayed at the top of the screen. However, the Chinese text in the input box may be "Mouth", which requires a small change.
Modify configuration file
Gedit ~ /. Fcitx/config
Modify the following items:
Show font (medium) = yahei consolas hybrid # If you have not installed, you can use "wenquanyi bitmap song"
Modify a code table File
Sudo gedit/usr/share/fcitx/data/Tables. conf
Because the five-stroke Pinyin is enough, other input methods do not need to appear. You only need to leave the following content in the file, and other configuration segments can be cleared or commented out.
Restart X-Window
Normally, after the X-window is restarted, the Chinese display of the little penguin input method will be completely normal, and only "five strokes pinyin" will be available ".
--------------------------------------------------------

Installing and using garbled characters in netbeans
Copy Windows/fonts/simsun. TTC to JRE/lib/fonts.
Create the fallback directory, change simsun. TTC to TTF, and copy it to fallback,
Restart netbeans.

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/njchenyi/archive/2010/04/13/5480884.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.