Ubuntu Usage related issues (continuous update)

Source: Internet
Author: User
Tags compress archive linux mint

1.ubuntu mouse blink problem occurs

After installing Ubuntu, the Ubuntu system identifies two monitors on the computer ("built-in monitor" and "unknown Monitor"), and the mouse does not blink when we close the unknown monitor.

Workaround: Turn off "unknown monitor", System setup-> display-> Click "Unknown Monitor"-> shutdown

2. Ubuntu Input Method settings

After installing Ubuntu, I am here the Input method is IBus (iBus, English is all called intelligent inputbus, is the class Uinx operating system under the multi-language input method frame. Because it uses the bus-style architecture, it is named buses. IBUs support a variety of input methods, such as pinyin input method (including full/simple/double spell), and support based on the code table input method, such as Wubi, Zheng Code, two and Cangjie and other input methods. IBUs is now the default multilingual input platform for several popular Linux distributions, such as Ubuntu,linux Mint,fedora. , this is not very easy to use, said online fcitx more useful, so the reference, using CTRL + ALT + T open the terminal, input: sudo apt-get install fcitx-table-wbpy, the specific steps see reference 2.

Of course, can also install click on the Open link (as if installed Sogou input method, in the Ubuntu language support there, there is a fcitx this option), experience flying general feeling, download.


The difference between Full-width and Half-width is for the Chinese input method, the full angle of the characters, letters accounted for 2 bytes, half-width characters and letters accounted for 1 bytes, such as in the full corner of the input "and" characters: &&&&&&, half a corner of the input:&&&&&& &&,

3. How does Ubuntu open the terminal

(1) Shortcut key: Ctr + ALT + T; (2) First Alt + F2 (or hold down the win key or click on the Ubuntu logo in the upper left corner) to open the Run box (equivalent to Windows Run), and then enter: Gnome-terminal can be opened.

4. How to restart and shutdown Ubuntu

1. Sudo shutdown-r now reboot, sudo shutdown-h now shutdown

5. How to achieve the character interface and image interface switching

1. Ctrl + Alt + F1/F2/F3/F4/F5/F6 implementation switches from graphical interface to character interface

2. Ctrl + Alt + F7 implementation switch from character interface to graphical interface

6. How does Ubuntu get into root (super Admin)

The first time you install Ubuntu, just prompted to create a new user name, and set the appropriate password, there is no hint that the root set password, and so on, but after the installation is only the new user name and a customer user, then how to enter the root user? At first I entered the terminal directly: Su Root, the hint is wrong, originally before this did not give root set password; to the Internet, a search originally need to be in the new user there, first set the password for root:

$sudo passwd Root, then prompted us, "Please enter a new UNIX password:", input, then let us re-enter the password, so that the root successfully set the password, and then the current user's Terminal ~ $su root, enter the password, then smoothly into the root user.

It should be noted here that the user created during the installation of the system belongs to the Admin group, so we can login to this user and then set the login password for the root user.

By default, the root user of Ubuntu does not have a fixed password, and its password is randomly generated and dynamically changed. Of course, in the absence of a password for root, we enter $ sudo su, where SU is the abbreviation for switch user, prompting us to enter the current user's password or access root

Exit from the root user, you can directly enter the command exit or Ctl+d.

Because the default root user has no fixed password and is locked, how do you want to set a password for root:

$ sudo passwd root, then enter the password as prompted. Then we can use $SU root and then enter the password to switch to root, and of course we can use sudo su to switch to root user.

Summary: Way 1:sudo su #输入当前用户的密码

Method 2:su root #前提是需要通过sudo passwd root to set a password

7. Ubuntu Set the boot time

The system boot time is managed by the profile grub, and first we need to find the Grub.cfg file, which is under the/boot/grub/path:

1, the Grub.cfg file for backup: $sudo CP grub.cfg Grub.cfg.bak

View grub.cfg: $sudo gedit grub.cfg

2, using Su root into the root user editor: #vi grub.cfg, and then in the command mode input:/timeout, locate the relevant information,

Where set timeout = 10, which indicates that the default wait time is 10 seconds

3. Modify the relevant information, here modified to set timeout=3, and then press ESC to exit edit mode, enter the command mode, input: wq!, force exit and save, reboot the system, you can.

Note here: When modifying grub.cfg, it is best to make the Grub.cfg file for backup, the other Grub.cfg property is-r--r--r--r, the user and the user group is root, so use root permission to force save.

method of extracting/compressing tar under 8.ubuntu system

About decompression knowledge can refer to: Ubuntu decompression rar File method

9. Install Flashplayer under Ubuntu

Recently installed Win7+ubuntu dual system, but not very familiar with Ubuntu, so when browsing the Web page is not prompted to install Flash, before how to install entanglements for a long time, but eventually resolved.

Step one: Download flashplayer,install_flash_player_11_linux.x86_64.tar.gz to the website (I am installing Ubuntu 14.04 64 bits)

Step Two: Decompression: $tar vxzf install_flash_player_11_linux.x86_64.tar.gz

Here's what you need to be aware of: the use of tar

Tar

Format: tar [options] [file directory list]

Function: Package A backup of the file directory

Options:

-C to create a new archive;-R to append files to the end of the archive;-X to extract files from the archive file

-O unlocks the file to standard output;-v processing to output related information;-F to normal file operations

-Z invokes gzip to compress archive file, call gzip to complete uncompressed when associated with-X

-Z invokes compress to compress the archive file, and the-X joint is called Compress completes the decompression.

Step three: sudo cp libflashplayer.so/usr/lib/mozilla/plugins/

Fourth step: sudo cp-r/usr*/usr/

Installation Complete

How Ubuntu opens the terminal at its current location

Ubuntu default installation, right button is not "open in the terminal (E)" This option, which requires us to install a software: Nautilus-open-terminal, as long as the open terminal input $ sudo apt-get install nautilus-open-terminal, download installation can be.

can refer to: Ubuntu install Firefox under the Flash plugin

The terminal path in Ubuntu displays only the current directory

Can refer to: let Ubuntu terminal path only display current directory

Using USB under Ubuntu

can refer to: Ubuntu under the use of U disk

How to screenshot under Ubuntu

1. Screenshot of the contents of all screens: Press "Print screen" in the upper right corner (My notebook is: Printscr key)

2. Screenshot of the currently active window: first let the window that needs to be truncated is active, and then press ALT and print SCREEN combination keys.

3. Timed screenshot (like Windows does not have this function): Open the terminal, and then enter the $ gnome-screenshot--delay=10, where the delay=10 represents 10 seconds after the automatic screen.

4. Mouse Select Area screenshot: Press the key combination: Shift and print screen, while dragging the mouse, you can intercept the mouse selected area.

14. How to reload Ubuntu in Win7 and Ubuntu dual systems

First need to remove Ubuntu, in fact, after entering the Win7 system, on the computer right key-> management-> Disk Management, and then the space assigned to Ubuntu directly deleted. And then reload Ubuntu again, but this is a prerequisite, first if you install Ubuntu in the first time you assign the/boot this space, this grub is on the boot, then you can remove Ubuntu directly in Win7, but, If you install Ubuntu, write grub to the MBR, or/DEV/SDA, (if you turn on the Gurb menu each time, write to the MBR). So when you uninstall Ubuntu, you rewrite the MBR to remove the Ubuntu gurb. If so, the first thing we need is to fix the MBR:

' 1. Enter win7, download mbrfix This software, put into C:\windows\system32 folder

2. At the command prompt, enter: mbrfix/drive 0 fixmbr/yes

3. Then reboot,

4. Enter the disk space where Win7 direct Ubuntu resides. (Reference: Win7, Ubuntu dual system correctly uninstall Ubuntu system)

5. After that, you can install Ubuntu in the same way that Ubuntu installed it on Win7 before.

15. In Ubuntu, Apt-get installation directory and installation path

(1) apt-get download, the software path is:/var/cache/apt/archives

Such as

$ sudo apt-get install Kernel-wedge kernel-package Libncures5-dev
Here we download and install the Kernel-wedge, Kernel-package and Libncures5-dev packs,

And then we can see it in/var/cache/apt/archives.



(2) The Apt-get install installation directory is determined by the maintainer of the package, not by the user

The system installs the software generally in the/urs/share, the executable file in/usr/bin, but the configuration file may install to the/etc,lib file in/usr/lib


Solutions to screen brightness retention problems in Ubuntu

First open terminal input: ~$ sudo gedit/etc/rc.local, open rc.local file, as follows:

#!/bin/sh-e # # rc.local # # This script is executed in the end of each
multiuser runlevel.
# Make sure that script would ' exit 0 ' on success or any other
# value On error.
# in order to
-enable or disable this script just change the execution
# bits.
# by
Default this script does nothing.

Exit 0

And then, before exit 0, add this sentence: Echo 8 >/sys/class/backlight/acpi_video0/brightness, which is:
#!/bin/sh-e # # rc.local # # This script is executed in the end of each
multiuser runlevel.
# Make sure that script would ' exit 0 ' on success or any other
# value On error.
# in order to
-enable or disable this script just change the execution
# bits.
# by
Default this script does nothing.
echo 8 >/sys/class/backlight/acpi_video0/brightness
exit 0



Then keep exiting and restart. The main point here is that the number after Echo is 0-10, corresponding to 0% to 100% brightness range, such as Echo 8, which represents the brightness of 80%.


How to solve the slow WiFi speed in Ubuntu

First we go into ~$ cd/etc/modprobe.d, we will find that there is no ath9k.conf this file, so we need to build a, the operation is as follows:

ahuang1900@egtdell:/etc/modprobe.d$ sudo-s
[sudo] password for ahuang1900: 
root@egtdell:/etc/modprobe.d# Gksu gedit/etc/modprobe.d/ath9k.conf

In the ath9k.conf file, add the statement: Options ath9k nohwcrypt=1, save the file, reboot the system ...



How to install Codeblocks in Ubuntu and open it.

I. Installation of Codeblocks

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.