Tips for Debian Linux

Source: Internet
Author: User
DebianLinux tips-Debian information for the Linux release, which is described below. 1. Get the root permission.
Some specific operations require the root permission. Run su and enter the root password to obtain the root permission.

2. Debian does not have a Chinese font after default installation, so Chinese garbled characters may occur.
You need to install the Chinese font (run apt-get install ttf-arphic-uming as root on the terminal) or copy the Chinese font (typically simsun. ttf) to the/usr/share/fonts/turetype directory. To make Chinese display better, you also need to go to GNOME Desktop preferences or set the font rendering mode to monochrome in the KDE control center.

3. After Debian is installed by default, GNOME does not allow the root user to access the graphic interface.
If you want to, set it in the logon window. Choose Allow local system administrator login from the menu choose configure TPD settings security

4. mount Windows partitions.
In fact, the simplest method of attaching a partition is similar to mount/dev/hda1/mnt.

5. When Linux mounts a Chinese Windows partition, if the file with the Chinese name cannot be displayed (not garbled ).
Specify-o iocharset = utf8 during mounting. For example, mount/dev/hda1/mnt-o iocharset = utf8 (disk C); mount/dev/hda5/mnt-o iocharset = utf8 (disk D ). If you have any questions, you can change utf8 to gbk. If the system automatically identifies an error in the partition format, add the-t ntfs option. If your Windows partition is not in the NTFS format but FAT32 format, replace ntfs with vfat. If there is a problem with mounting ntfs to your new kernel, change iocharset to nls. The above method is correct for testing in version 2.6.8.

6. Use aptitude to install the software.
Run aptitude, press/, enter the program name, press enter, SHIFT + "+" select, g install. If the first one is not found, immediately press n to find the next one.

7. Install the basic development kit.
Whether you are a developer or not, if you want to install a variety of software using source code, you should install some basic development tools: gcc, g ++, make, libx11-dev, libstdc ++, libstdc ++ x. x-dev, x-dev, binutils, autoconf, automake ,... (To be supplemented)

8. Re-compile the software after an error occurs.
If an error occurs during software compilation, run make clean after modification, and then start from scratch. If Makefile does not provide make clean, you can obtain a new clean source code. Generally, the source code package is decompressed after the old source code is deleted.

9. Create a shortcut.
Find the executable file in the file browser (right-click to view properties), and drag it to the taskbar to create a shortcut (Program initiator, Application Launcher ).

10. Set locale
Run dpkg-reconfigure locales as root, select zh_CN.UTF-8/zh_CN.GBK by space, and press enter to go to the next page and select the default locale. If you do not know which one to choose is the default, then you choose zh_CN.UTF-8, if you know, choose what you think.

11. Set rcconf at startup
If you want or do not want a service to automatically start when it is started, run rcconf (root permission required) and remove the * sign before the service or add (by space ).
Related Article

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.