Skip to content

Commit 0022dca

Browse files
rpotter12tabesin
authored andcommitted
installing 3rd party software (#477)
* installing 3rd party software * changing else if to if * removal of desktop files
1 parent e382236 commit 0022dca

File tree

2 files changed

+53
-38
lines changed

2 files changed

+53
-38
lines changed

scripts/chroot.sh

-14
Original file line numberDiff line numberDiff line change
@@ -143,24 +143,10 @@ fi
143143
#Overwrite for decreasing the uid
144144
sed -i '/UID_MIN/ c\UID_MIN 998' /etc/login.defs
145145
146-
# Install graphic
147-
apt-get -qq -y --purge install gimp inkscape
148-
#apt-get -qq -y --purge remove imagemagick
149-
150-
# Install Libreoffice
151-
apt-get -qq -y --purge install --no-install-recommends libreoffice-gtk libreoffice-gtk libreoffice-writer libreoffice-calc libreoffice-impress
152-
153146
#screen-dimming turns off always
154147
#echo -ne "\033[9;0]" >> /etc/issue
155148
#setterm -blank 0 >> /etc/issue
156149
157-
#Install vlc
158-
apt-get -qq -y install vlc
159-
160-
#Install dropbox
161-
apt-get -qq -y install nautilus-dropbox
162-
nautilus --quit
163-
164150
# Oxygen to be used as a fallback icon theme
165151
apt-get -qq -y install oxygen-icon-theme
166152

scripts/chroot_reconst.sh

+53-24
Original file line numberDiff line numberDiff line change
@@ -58,37 +58,66 @@ rm /usr/share/xsessions/plasma.desktop
5858
# ugliest hack ever
5959
cp /usr/share/xsessions/lxqt.desktop /usr/share/xsessions/plasma.desktop
6060
61-
# Installing
62-
apt-get -qq -y install git
61+
# 3rd party software installation
62+
if ["chromium" in "$INSTALL"]
63+
then
64+
apt-get install -y chromium-browser
65+
fi
66+
if ["firefox" in "$INSTALL"]
67+
then
68+
apt-get -qq -y install firefox
69+
fi
70+
if ["chrome" in "$INSTALL"]
71+
then
72+
if [[ $(arch) = "amd64" ]]
73+
then
74+
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
75+
dpkg -i google-chrome-stable_current_amd64.deb &&
76+
rm -f google-chrome-stable_current_amd64.deb
77+
else
78+
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb &&
79+
dpkg -i google-chrome-stable_current_i386.deb &&
80+
rm -f google-chrome-stable_current_i386.deb
81+
fi
82+
fi
83+
if ["vlc" in "$INSTALL"]
84+
then
85+
apt-get -qq -y install vlc
86+
fi
87+
if ["git" in "$INSTALL"]
88+
then
89+
apt-get -qq -y install git
90+
fi
91+
if ["gimp" in "$INSTALL"]
92+
then
93+
apt-get -qq -y --purge install gimp
94+
fi
95+
if ["inkscape" in "$INSTALL"]
96+
then
97+
apt-get -qq -y --purge install inkscape
98+
fi
99+
if ["office" in "$INSTALL"]
100+
then
101+
apt-get -qq -y --purge install --no-install-recommends libreoffice-gtk libreoffice-gtk libreoffice-writer libreoffice-calc libreoffice-impress
102+
fi
103+
if ["dropbox" in "$INSTALL"]
104+
then
105+
apt-get -qq -y install nautilus-dropbox
106+
nautilus --quit
107+
fi
108+
109+
# removal of desktop files
110+
rm /usr/share/applications/mpv.desktop
111+
rm /usr/share/applications/smplayer.desktop
112+
rm /usr/share/applications/smtube.desktop
113+
rm /usr/share/applications/audacious.desktop
63114
64115
# Installing sublime text editor
65116
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | apt-key add -
66117
echo "deb https://download.sublimetext.com/ apt/stable/" | tee /etc/apt/sources.list.d/sublime-text.list
67118
apt-get -qq update
68119
apt-get -qq -y install sublime-text
69120
70-
# Installing Firefox
71-
apt-get -qq -y install firefox
72-
73-
# Installing Chrome
74-
if [[ $(arch) = "amd64" ]]
75-
then
76-
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
77-
dpkg -i google-chrome-stable_current_amd64.deb &&
78-
rm -f google-chrome-stable_current_amd64.deb
79-
else
80-
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb &&
81-
dpkg -i google-chrome-stable_current_i386.deb &&
82-
rm -f google-chrome-stable_current_i386.deb
83-
fi
84-
85-
# Installing VLC media player
86-
apt-get -qq -y install vlc
87-
rm /usr/share/applications/mpv.desktop
88-
rm /usr/share/applications/smplayer.desktop
89-
rm /usr/share/applications/smtube.desktop
90-
rm /usr/share/applications/audacious.desktop
91-
92121
# after Xenial one could also use apt install ./package
93122
dpkg -i plymouth-theme-meilix-text_1.0-2_all.deb; apt-get -qq -y -f install; dpkg -i plymouth-theme-meilix-text_1.0-2_all.deb
94123
dpkg -i plymouth-theme-meilix-logo_1.0-2_all.deb

0 commit comments

Comments
 (0)