2

Ubuntu 18.10 开机自动打开数字键盘

 2 years ago
source link: https://blog.diqigan.cn/posts/enable-numlock-on-ubuntu.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Ubuntu 18.10 开机自动打开数字键盘

发表于

2018-12-01 更新于 2019-08-23 分类于 codinglinux

Valine: 本文字数: 458 阅读时长 ≈ 1 分钟

可能是为了照顾程序员?Ubuntu 开机默认是不打开数字键盘的,本文主要描述如何让 Ubuntu 开机自动打开小键盘.

  1. 同时按下 “ctrl + alt + T” 打开终端;

  2. 获取 root 权限:

    sudo -i
  3. 允许 gdm 和 X 服务建立连接:

    xhost +SI:localuser:gdm
  4. 切换到 gdm 用户:

    su gdm -s /bin/bash
  5. 设置开机自动打开数字键盘:

    gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state 'on'
  6. 启动触控板:

    gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true

    至此,设置已经完成.

  7. 如果你像我一样强迫症,可以取消 gdm 和 X 服务器的连接设置:

    xhost -SI:localuser:gdm

That’s all, enjoy it.

参考文献:

  1. Enable Numlock, Tap to Click in Ubuntu 18.04 Login Screen — ml

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK