-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-linux.sh
executable file
·56 lines (44 loc) · 1.27 KB
/
init-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
#!/usr/bin/env bash
# Sets up all my stuff on a Debian based linux, like Ubuntu
cd ~
delete-these="examples.desktop Public Videos"
for element in delete-these; do
if [ -e "$element" ]; then
rm -rf "$element"
fi
done
# TODO: find out if this is Debian, Fedora, Cygwin, or Darwin based
os-name="$(uname)"
if [ "$os-name" eq "Darwin" ]; then
echo "You're on a mac. Go run init-mac.sh instead."
exit
elif [ "$os-name" == "linux-gnu" ]; then
install-command="yes | sudo apt-get install"
yes | sudo apt-get update
else
echo "Unknown OS name: '$os-name'"
exit
fi
# chrome
# "$install-command" chromium-browser flashplugin-nonfree
# emacs
"$install-command" emacs
# git
# "$install-command" git-core git-gui git-docs
# vlc
"$install-command" vlc libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh
# music
"$install-command" ffmpeg libavcodec-extra-54 youtube-dl
sudo youtube-dl -U
sudo youtube-dl -U
# ruby
"$install-command" ruby rubygems
# rails dependencies
"$install-command" build-essential bison openssl libreadline6 \
libreadline6-dev curl zlib1g zlib1g-dev libssl-dev libyaml-dev \
libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev libcurl4-gnutls-dev
# flux
sudo add-apt-repository ppa:kilian/f.lux
sudo apt-get update
sudo apt-get install fluxgui