-
Notifications
You must be signed in to change notification settings - Fork 0
/
initialise_raspi.sh
41 lines (29 loc) · 1.55 KB
/
initialise_raspi.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
#!/bin/bash
echo 'Do not run as script'
exit 1
usermod -m -d /home/viren pi
usermod -l viren pi
groupmod -n viren pi
ln -s /home/viren/ /home/pi
visudo
echo -e '\ndeb http://archive.raspbian.org/raspbian wheezy main contrib non-free' >> /etc/apt/sources.list
echo -e '\ndeb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free' >> /etc/apt/sources.list
apt-get update
apt-get remove --purge wolfram-engine penguinspuzzle scratch dillo squeak-vm squeak-plugins-scratch sonic-pi idle idle3 netsurf-gtk netsurf-common
apt-get remove --purge gnome-* lxde* lightdm* xserver* desktop-* lxappearance lxinput lxmenu-data lxpanel lxpolkit lxrandr lxsession lxsession-edit lxshortcut lxtask lxterminal leafpad menu menu-xdg xpdf xkb-data xinit xfonts-utils xfonts-encodings xdg-utils xauth xarchiver x11-utils x11-common
apt-get autoremove
apt-get clean
apt-get install -y avahi-daemon colordiff transmission transmission-daemon build-essential cython python python-dev python-ipy git apache2 mysql-server samba ncftp vim locate exuberant-ctags screen
# apache
a2enmod ssl proxy_http
cp default default-ssl /etc/apache2/site-available
cp proxy.conf /etc/apache2/mods-available
htpasswd -c /etc/htpasswd viren
# transmission
mkdir /home/viren/bittorrent/download -p
mkdir /home/viren/bittorrent/incomplete -p
chown -R debian-transmission:debian-transmission /home/viren/bittorrent/download
chown -R debian-transmission:debian-transmission /home/viren/bittorrent/incomplete
chmod a+rwx /home/viren/bittorrent/download
# create ~/.plotly_token
# create ~/.duckdns_token