-
Notifications
You must be signed in to change notification settings - Fork 3
/
install
executable file
·60 lines (45 loc) · 1.86 KB
/
install
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
cd "$( dirname "$0" )"
## su -
## systemctl disable wpa_supplicant
## vi /etc/network/interfaces
## vi /etc/wpa_supplicant/wpa_supplicant.conf
## vi /etc/udev/rules.d/70-persistent-net.rules
## ifup -a
## ip addr ls
## apt update
## apt install aptitude git ssh sudo vim net-tools
## vim /etc/group
## grep himdel /etc/sudoers || echo 'himdel ALL=NOPASSWD: ALL' >> /etc/sudoers
## vim /etc/dhcp/dhclient.conf # supersede dns
## ssh-keygen, add to github, clone doftiles
## sudoers
## also Defaults !admin_flag
sudo ln -svf /usr/share/zoneinfo/Etc/UTC /etc/localtime
sudo sh -c 'echo Etc/UTC > /etc/timezone'
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install steam:i386
sudo apt install lua5.2 luarocks lua-socket lua-xmlrpc lua-zlib mpv
sudo ln -s /usr/share/lua/5.1/xmlrpc /usr/share/lua/5.2/xmlrpc
mkdir -p ~/.config/mpv/scripts
git clone https://github.com/rumkex/osdb-mpv.git ~/.config/mpv/scripts
grep max_user_watches /etc/sysctl.conf || ( echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p )
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
wget https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb
sudo dpkg -i google-chrome-beta_current_amd64.deb
rm -vf google-chrome-beta_current_amd64.deb
[ -e ~/bin ] || ln -sv ~/dotfiles/bin ~/bin
cd /usr/local/bin/
sudo ln -sv ~/bin/rename.perl rename
sudo ln -sv ~/bin/xdg-open .
# TODO link home stuff
./update
# rm -f /usr/lib/python3*/EXTERNALLY-MANAGED
# TODO install fbkxb (no longer in deb)
gio mime x-scheme-handler/http google-chrome-beta.desktop
gio mime x-scheme-handler/https google-chrome-beta.desktop
xdg-mime default google-chrome-beta.desktop x-scheme-handler/http
xdg-mime default google-chrome-beta.desktop x-scheme-handler/https
# no longer in util-linux
sudo ln -s /usr/bin/busybox /usr/local/bin/last