How to Learn from linux -- how to enable the keypad when ubuntu 16.04 is started, ubuntu16.04

Source: Internet
Author: User

How to Learn from linux -- how to enable the keypad when ubuntu 16.04 is started, ubuntu16.04

Step 1: Install numlockx and enter the command

Sudo apt-get install numlockx

 

Step 2: Use vim to open the rc. local file and enter the command

Sudo vim/etc/rc. local

 

Step 3: Modify the file content inExit 0Add and save the following content

If [-x/usr/bin/numlockx]; thennumlockx onfi

How does vim insert content?

1. Shortcut Key I: Switch to insert mode

2. Arrow Keys adjust the cursor to the insert position

3. copy and paste the code

4: run the Esc key to exit the insert mode and return to the default command mode. Enter the command wq to save and exit.

 

After restart or logout. The keyboard can be automatically started.

 

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.