Ubuntu desktop uses root login and sound problems, displays Chinese garbled characters in windows text, memory off swap, brightness, and install QQ

Source: Internet
Author: User

Ubuntu desktop uses root login and sound problems, displays Chinese garbled characters in windows text, memory off swap, brightness, installs QQ to edit sudo gedit/etc/lightdm. conf [SeatDefaults] greeter-session = unity-greeteruser-session = effectugreeter-show-manual-login = true # manually enter the user name and password for logging on to the system allow-guest = false # Not Allowed guest log on to allow-root = true. Then we start the root account: follow the prompts to enter the password of the sudo passwd root account. Sudo reboot # restart ubuntu. The "login" option will be available in the logon window. At this time, we can manually enter root to log on. For the sake of security, the sound system is disabled by default for Ubuntu as the root user. If you want to enable it easily, because pulseaudio is not started after root login. Therefore, you must first start it to add the root to the pulse and pulse-access groups: sudo usermod-a-G pulse-access rootgpasswd-a root pulsegpasswd-a root pulse-access and then: edit the/etc/default/pulseaudio file cp-p/etc/default/pulseaudio. bak gedit/etc/default/pulseaudio modify the following two parts: PULSEAUDIO_SYSTEM_START = 1DISALLOW_MODULE_LOADING = 0 to 1 and 0, which indicates that the module can run in the system environment and can be dynamically loaded. Restart the computer, and the sound will come out to solve the problem of Chinese garbled characters when opening text files in windows in ubuntu. apt-get install gconf-editor command: (I prefer) gsettings set org. gnome. gedit. preferences. encodings auto-detected "['gb18030', 'utf-8', 'gb2312', 'gbk', 'big5', 'current ', 'utf-16'] "or graphic editing: 1.Alt+ F2, Run" gconf-editor "2. "apps-> gedit-2-> preferences-> encodings" right side "auto-detected" double-click, "add" --> "GB18030" OK to save. Move it to the top row, save and exit. Switch off swap 1. turn off the original swap. sudo swapoff-a 2. comment out the swap under/etc/fstab (usually the last line). After gedit/etc/fstab is installed with Ubuntu12.04, it is found that the screen is the maximum brightness each time it is turned on, it is very troublesome to set the brightness every time. The network search finds a solution. The solution is as follows: how to set the brightness automatically when the Ubuntu notebook is started: 1. sudo apt-get install laptop-mode-tools 2. gedit/etc/laptop-mode/laptop-mode.conf change the following flag to 1: ENABLE_LAPTOP_MODE_ON_AC = 1 # use laptop modeENABLE_LAPTOP_MODE_WHEN_LID_CLOSED = 1 3 in AC mode. current brightness value (my value is 732) cat/sys/class/backlight/intel_backlight/brightness # intel_backlight may vary with machines 4. configure the value gedit/etc/laptop-mode/conf after restart. d/lcd-brightness.conf modify the following line: CONTROL_BRIGHTNESS = 1 # LCD brightness control using laptop mode BATT_BRIGHTNESS_COMMAND = "echo 732" # brightness level when using battery LM_AC_BRIGHTNESS_COMMAND = "echo 732" # brightness level when using external power supply = "echo 732" # brightness level when using external power supply, this is not very understandable # BRIGHTNESS_OUTPUT = "/proc/acpi/video/VID/LCD/brightness" BRIGHTNESS_OUTPUT = "/sys/class/backlight/intel_backlight/brightness" reboot has a try

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.