Chapter 10

Commands

Desktop

apt install gnome-tweaks

# 配置 Display Manager
dpkg-reconfigure gdm3   # or lightdm 

GNome

  • guake
# 应用存放位置
~/.local/share/applications
/usr/share/applications

# GUI Editor: alacarte

KDE

  • konsole
  • yakuake
# Disable Boloo indexing
balooctl status
balooctl stop
balooctl disable

sudo vi ~/.kde/share/config/baloorc
Indexing-Enabled=false

XFCE4

# 重新生成panel
xfce4-panel --quit ; pkill xfconfd ; rm -rf ~/.config/xfce4/panel ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml ; xfce4-panel;

Disable X at boot time

sudo vi /etc/default/grub
    GRUB_CMDLINE_LINUX_DEFAULT="text"
sudo update-grub

# systemd也需要执行
sudo systemctl enable multi-user.target --force
sudo systemctl set-default multi-user.target

# 使用X, 登录后执行
startx

terminal启动不起来

Alt + F2, 然后执行 gnome-terminal -x bash

文件系统

# 证书存放位置
/etc/ssl/certs/ca-certificates.crt


# inotify
# check the max number of inotify watches
cat /proc/sys/fs/inotify/max_user_watches
# set max number of inotify watches
echo 819200 | sudo tee -a /proc/sys/fs/inotify/max_user_watches

硬件/ hardware

# Disk Size
df -h
sudo fdisk -l| grep Disk

# video
lshw -C video
lspci | grep VGA