-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
27 lines (24 loc) · 900 Bytes
/
install.sh
File metadata and controls
27 lines (24 loc) · 900 Bytes
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
#!/bin/bash
# install shit:
# nvm, node 7.7x, kernel-headers, fixed rtl driver, curl, get, etc.
# configure connman for wifi, etc.
# disable HDMI/AUDIO (NOT EMMC!!!!)
# set default cape universala
function wirelessFix() {
# SRC: https://github.com/pvaret/rtl8192cu-fixes
# get the kernel version via uname -r
version=$(uname -r)
apt-get install git linux-headers-${version} build-essential dkms
git clone https://github.com/pvaret/rtl8192cu-fixes.git
dkms add ./rtl8192cu-fixes
dkms install 8192cu/1.10
depmod -a
cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
cp ./rtl8192cu-fixes/8192cu-disable-power-management.conf /etc/modprobe.d/
}
function installNVM() {
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm install v7.7.4
}