forked from oizmerly/env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu
33 lines (25 loc) · 884 Bytes
/
ubuntu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# install
apt upgrade
apt update
add-apt-repository ppa:graphics-drivers/ppa
apt install nvidia-390
update-initramfs -k all -u
bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
update-initramfs -u
# power
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
# thinkpad power
sudo apt-get install tp-smapi-dkms acpi-call-dkms
# packages
apt install htop curl build-essential tmux zsh git
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# touchpad
sudo modprobe psmouse
sudo modprobe psmouse
xrandr --output DP-2 --brightness 0.9
# brigtness
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia.NVreg_EnableBacklightHandler=1"
video.only_lcd=0