-
Notifications
You must be signed in to change notification settings - Fork 0
/
env-setup.sh
52 lines (49 loc) · 2.29 KB
/
env-setup.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
# env-setup runs install commands to set up most commonly used software on a new Fedora-like OS.
#
# Copyright (C) 2015 Julien BREHIN, aka. Aand
#
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
#!/bin/bash
if [ "$(id -u)" != "0"]; then
echo "Sorry, you need root level of privileges to run this.\n"
exit 1
fi
#if [[ $1 != "" ]]
echo "Upgrading current software..."
dnf upgrade -y
echo "Done upgrading.\n"
echo "Installing commmonly used packages from Fedora repo..."
dnf install -y \
texlive-collection-genericextra texlive-documentation texlive-collection-fontsextra texlive-collection-latexextra texlive-collection-langfrench texlive-collection-langenglish texlive-collection-langeuropean texlive-collection-bibtexextra \
redshift redshift-gtk\
gnome-tweak-tool \
thunderbird \
conky \
unzip \
gimp inkscape \
weechat \
valgrind gdb gcc gcc-c++ \
golang-bin gcc-go \
python python3 ipython \
dnf-plugins-core\
octave octave-signal octave-io octave-odepkg plplot-octave octave-control octave-specfun octave-statistics octave-symbolic octave-doc
echo "Done installing Fedora packages.\n"
echo "Installing Sublime Text 3...\n"
curl -L git.io/sublimetext | sh
echo "Done installing ST3.\n"
echo "Installing RPMFusion repo (free + non-free) and related packages...\n"
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
dnf install -y vlc
echo "Done installing RPMFusion.\n"
echo "Installing copr software..."
dnf copr enable spot/chromium
dnf copr enable hadrons123/thermald
dnf install chromium thermal-daemon
systemctl enable tehrmald.service
systemctl start thermald.service
echo "Done installing copr software.\n"