Sitelet https://github.com/chenzhiwei/linux/tree/master/deepin
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Deepin

Configure apt

sudo echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/99zhiwei-custom

Install Chrome browser

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list
apt update
apt install -y google-chrome-stable

Make the google apt repo has a higher priority than deepin repo:

vim /etc/apt/preferences.d/google
Package: google-chrome-stable
Pin: origin "dl.google.com"
Pin-Priority: 1002

Install essential packages

apt update
apt install -y bash-completion build-essential command-not-found dnsutils git gnupg jq sshpass tree vim whois
apt install -y ibus ibus-qt1 ibus-qt4 ibus-clutter ibus-gtk ibus-gtk3 ibus-rime librime-data-wubi librime-data-pinyin-simp librime-data-stroke

Setup keyboard

xmodmap -e "keycode 76 = Insert Insert" # need persist this map from f10 to insert key
echo "keycode  76 = Insert Insert Insert Insert" >> ~/.Xmodmap

echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode
echo 1 | sudo tee /sys/module/hid_apple/parameters/swap_opt_cmd

echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
echo options hid_apple swap_opt_cmd=1 | sudo tee -a /etc/modprobe.d/hid_apple.conf

sudo update-initramfs -u -k all

for xmodmap change, add a startup application with a shell wrapper of the xmodmap command.

HiDPI high screen resolution

QT does not support HiDPI until 5.6, so need to add an environment variable before starting the QT applications.

Such as QT_SCALE_FACTOR=2 your-app, or QT_AUTO_SCREEN_SCALE_FACTOR=1 your-app.

In .desktop file, add Exec=env QT_AUTO_SCREEN_SCALE_FACTOR=1 your-app.

GTK HiDPI, export GDK_SCALE=2, then start the application.

Bring brightness back

  • /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_backlight=vendor"

具体可以看这里:https://bbs.deepin.org/forum.php?mod=viewthread&tid=169677&page=1