-
Notifications
You must be signed in to change notification settings - Fork 57
/
linux.sh
executable file
·68 lines (47 loc) · 1.7 KB
/
linux.sh
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
61
62
63
64
65
66
67
68
#!/bin/bash
# This script is intended to setup a fresh desktop with ROS and
# with dependencies on homebrew or linuxbrew depending on the OS being used
# @author Andrew Hundt <[email protected]>
echo ""
echo "###############################################################################################"
echo "# Initial setup of basic linux utilities needed for software development #"
echo "###############################################################################################"
echo ""
# partly based on https://github.com/ahundt/homebrew-robotics/blob/master/robonetracker.sh
# source: https://gist.github.com/phatblat/1713458
# Save script's current directory
DIR=$(pwd)
# /bin/bash
set -e
set -u
set -x
sudo apt-get -y update
# minimal linuxbrew requirements
sudo apt-get install -y build-essential curl git python-setuptools ruby
# additional useful tools that should probably be owned by the OS rather than linuxbrew
sudo apt-get install -y screen tree sudo ssh x11-apps synaptic build-essential git
sudo apt-get install -y linux-headers-$(uname -r)
cd ~
if [ ! -d `pwd`/src ] ; then
mkdir src;
fi
cd src
# USB wireless adapter driver
# TP-Link Archer T4U dual band 802.11 ac
# http://askubuntu.com/questions/533408/trying-to-install-wireless-archer-t4u-driver
wireless_pkg=false
if [ $wireless_pkg ] ; then
# package based USB wireless adapter install instructions
sudo apt-get install rtl8812au-dkms
else
# compile wireless driver from source
if [ ! -d `pwd`/rtl8812AU_8821AU_linux ] ; then
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
fi
cd rtl8812AU_8821AU_linux/
git pull
make
sudo make install
sudo modprobe 8812au
fi
cd $DIR