-
Notifications
You must be signed in to change notification settings - Fork 4
/
configXubuntu16.sh
152 lines (150 loc) · 5.82 KB
/
configXubuntu16.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
clear
echo Upgrading system...
sudo apt-get update -qq && sudo apt-get upgrade -y -qq
clear
echo Installing restricted extras and codecs...
sudo apt-get install -y -qq xubuntu-restricted-extras libavcodec-extra
clear
echo "Do you want Laptop Tools and Tweaks for better power management?"
read poma
if [ "$poma" != "n" ]; then
sudo apt-get install -y -qq powertop laptop-mode-tools
sudo update-rc.d laptop-mode defaults
sudo apt-get remove -y light-locker && sudo apt-get install -y xscreensaver
echo "Tuning your laptop... (can take some time)"
sudo powertop --auto-tune --html
firefox powertop.html &
clear
echo "TODO:"
echo "sudo su"
echo "echo 0 > /proc/sys/vm/swappiness"
echo "exit"
echo
echo "Edit your /etc/fstab (sudo nano /etc/fstab)"
echo "Add: tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=1024M 0 0"
echo "Press any key to continue..."
read anykey
fi
clear
echo Do you want extra Icons and Themes Y/n?
read icth
if [ "$icth" != "n" ]; then
wget http://downloadcontent.opensuse.org/repositories/home:/Horst3180/xUbuntu_15.10/all/arc-theme-solid_1465131682.3095952_all.deb
sudo dpkg -i arc-theme-solid_1465131682.3095952_all.deb
wget http://ppa.launchpad.net/tiheum/equinox/ubuntu/pool/main/f/faenza-icon-theme/faenza-icon-theme_1.3.1_all.deb
sudo dpkg -i faenza-icon-theme_1.3.1_all.deb
sudo add-apt-repository -y -u ppa:moka/daily
sudo add-apt-repository -y -u ppa:numix/ppa
sudo apt-get install -y -qq moka-icon-theme numix-icon-theme numix-icon-theme-circle
wget https://raw.githubusercontent.com/klakar/geosupportsystem/master/Systems-Linux-icon.png
sudo mv Systems-Linux-icon.png /usr/share/pixmaps/Linux.png
fi
clear
echo Do you want DVD support Y/n?
read dvsu
if [ "$dvsu" != "n" ]; then
sudo apt-get install -y -qq libdvd-pkg
sudo dpkg-reconfigure libdvd-pkg
fi
clear
echo Fix any broken packages
sudo apt-get -y dist-upgrade
sudo apt-get install -f -y
clear
echo Adding extra repositorys
sudo add-apt-repository -y -u ppa:team-xbmc/ppa
sudo add-apt-repository -y -u ppa:hugin/hugin-builds
sudo add-apt-repository -y -u ppa:mixxx/mixxx
sudo add-apt-repository -y -u ppa:kdenlive/kdenlive-stable
sudo add-apt-repository -y -u ppa:obsproject/obs-studio
clear
echo Installing videoplayers, audio software and editors...
sudo apt-get install -y -qq leafpad vlc browser-plugin-vlc kodi kdenlive kde-runtime audacity mixxx obs-studio guvcview lmms
sudo apt-get install -y -qq libwebrtc-audio-processing-dev
cp -n /etc/pulse/default.pa ~/.config/pulse/
echo "### Load echo cancellation module" >> ~/.config/pulse/default.pa
echo "load-module module-echo-cancel source_name=echosource aec_method=webrtc" >> ~/.config/pulse/default.pa
echo "set-default-source echosource" >> ~/.config/pulse/default.pa
pulseaudio -k
pulseaudio -D
clear
echo Installing photo and graphics software...
sudo apt-get install -y -qq darktable gimp inkscape blender hugin enblend handbrake synfigstudio
clear
echo Do you want Games Y/n?
read game
if [ "$game" != "n" ]; then
sudo apt-get install -y -qq steam wine playonlinux
fi
clear
echo Installing Docky...
sudo apt-get install -y -qq docky
echo Installing Firewall...
sudo apt-get install -y -qq gufw python-gi
echo Installing encryption for flash disks...
sudo apt-get install -y -qq cryptsetup gnome-disk-utility
clear
echo Do you want Science software CAD/GIS/etc Y/n?
read scis
if [ "$scis" != "n" ]; then
sudo apt-get install -y meshlab freecad pgadmin3 gpsbabel gpsbabel-gui mtkbabel gpsd gpsd-clients
echo Do you want stable or nightly QGIS S/n?
read stni
if [ "$stni" != "n" ]; then
echo deb http://qgis.org/debian xenial main | sudo tee /etc/apt/sources.list.d/qgis.list
else
echo deb http://qgis.org/debian-nightly xenial main | sudo tee /etc/apt/sources.list.d/qgis.list
fi
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 073D307A618E5811
sudo add-apt-repository -y -u ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update -qq && sudo apt-get install -y -qq qgis python-qgis qgis-plugin-grass qgis-plugin-globe
sudo apt-get install -y -qq saga python-saga libotb otb-bin python-otb python-exif python-scipy libwxgtk3.0-dev libgdal-dev
sudo apt-get install -y -qq pyqt4-dev-tools python-sphinx bluefish git python-pip
fi
clear
echo Installing some system software and utilities
sudo apt-get install -y launchy indicator-cpufreq gnome-disks usb-creator-gtk baobab psensor virtualbox
clear
echo Do you want Skype Y/n?
read skyp
if [ "$skyp" != "n" ]; then
wget https://download.skype.com/linux/skype-ubuntu-precise_4.3.0.37-1_i386.deb
sudo dpkg -i skype-ubuntu-precise_4.3.0.37-1_i386.deb
fi
clear
echo Do you want DropBox Y/n?
read drop
if [ "$drop" != "n" ]; then
wget https://linux.dropbox.com/packages/ubuntu/dropbox_2015.10.28_amd64.deb
sudo dpkg -i dropbox_2015.10.28_amd64.deb
fi
clear
echo Do you want Spotify Y/n?
read spot
if [ "$spot" != "n" ]; then
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 13B00F1FD2C19886
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt-get install -y -qq spotify-client
fi
clear
echo Fixing broken packages...
sudo apt-get -y -qq install -f
clear
echo Do you want Antivirus? Try Sophos...
firefox https://secure2.sophos.com/en-us/products/free-tools/sophos-antivirus-for-linux/download.aspx &
clear
echo Checklist for Optional Tweaks
echo 1. Change the WHISKER MENU Properties
echo 2. Check for ADDITIONAL DRIVERS
echo 3. Activate the FIREWALL
echo 4. Add "super" KEYBOARD shortcut
echo 5. Change Theme in APPEARANCE
echo 6. Change Icons Theme in APPEARANCE
echo 7. Change the DESKTOP wallpaper and icons
echo 8. WINDOW MANAGER style and TWEAKS compositor
echo 9. Start DOCKY and add launchers
echo 10. Tweak LIGHTDM greeter
echo 11. Add TLP and Launchy to AUTOSTART
echo 12. Get Simplenote - Really! Do!
echo
echo Reboot - Log In - Add more SOFTWARE