Ubuntu command line installation graphical interface

Source: Internet
Author: User


Run startx, "The program 'startx 'is currently not installed. you can install it typing: sodu apt-get install xinit "Continue entering sodu apt-get install xinit, www.2cto.com" reading package lists... donebuilding dependency treereading state information... doneE: couldn't find package xinit "has such an error: first, because your computer is not connected to the Internet, and second, because your computer has no such short package as xinit. For the first point, refer to my previous article to connect to the wireless network through the command line. Second, you can use the apt-get update command to update the package first, after the update, you can install xinit. When executing apt-get install xinit, Chinese garbled characters are displayed. solution 1: learn English well .. set the environment variable to English .... (Don't smoke me ..) modify/etc/default/locale sudo vim/etc/default/locale1 modify the default LANG = zh_CN.UTF-8 LANGUAGE = zh_CN: zh
For: www.2cto.com LANG = "en_US.UTF-8" LANGUAGE = "en_US: en" disk to exit and then: sudo reboot and then env or locale to view the modified results can be... solution 2: This is what I want to talk about... install zhcon... enter sudo apt-get install zhcon in the terminal www.2cto.com or the command line ~ When running, remember to load the vgz driver and utf8 support; otherwise the screen will be black... in addition, running on the terminal only in the command line will cause errors. Therefore, your command should be zhcon -- utf8 -- drv = vga. If you want to input so much at a time, it will be too troublesome ~ /. Add an alias sudo vim ~ to bashrc ~ /. After bashrc is enabled, add a line of www.2cto.com alias zhcon = 'zhcon -- utf8 -- drv = vga 'to it to save and exit. Then, run zhcon directly after entering the command line to avoid black screen problems. zhcon supports Chinese characters. the display also supports Chinese input methods. Due to hot key conflicts, I only know that Ctrl + space can be used to switch to the full spelling input method. This solves the problem of Chinese directory/file name.

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.