-
Notifications
You must be signed in to change notification settings - Fork 14
/
freshinstall-debian.sh
207 lines (148 loc) · 5.46 KB
/
freshinstall-debian.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
#!/bin/bash
# BKP2FSARCHIVE 1ST!!
# Add std pkgs to new install, after running -purgedebs 1st to make space
# 2022.1014 for debian
logfile=~/freshinstall.log
function addpkgs {
# apt-get install -y --force-yes $*
apt-get install -y --allow-unauthenticated $*
} 2>>$logfile
addpkgs gpg wget
# REF: https://www.virtualbox.org/wiki/Linux_Downloads
#wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
#wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --dearmor --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg
source /etc/os-release
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian $VERSION_CODENAME contrib" \
> /etc/apt/sources.list.d/virtualbox.list
apt-get update
# essential
addpkgs joe mc lynx w3m screen lzop fsarchiver netcat-traditional bwm-ng openssh-server smartmontools sysstat
# 2006.0828 for vmware:
addpkgs linux-headers-`uname -r` build-essential
#libc6-i386 ia32-libs
# Admin
addpkgs synaptic aptitude apt-file mlocate ntpdate
addpkgs mbr lm-sensors gawk net-tools
addpkgs sshfs pv buffer ethtool gparted iotop android-tools-adb dos2unix
addpkgs p7zip parallel pbzip2 xz-utils # TODO - codecs? - to play dvds
# unrar
addpkgs jfsutils xfsprogs
# SCSI stuff
addpkgs lsscsi scsitools sdparm sg3-utils
#/unstable
# Removed from deflt knoppix
addpkgs lftp gftp ethstatus nmap iptraf autossh filezilla httrack
# ncftp
# AUDIO/VIDEO STUFF
addpkgs sox vorbis-tools cdparanoia vlc youtube-dl handbrake handbrake-cli lame mpg123 ffmpeg devede
addpkgs udftools dvd+rw-tools growisofs wodim icedax
addpkgs xine-ui mplayer vlc
#TODO? + installed pkg /usr/share/doc/libdvdread4/install-css.sh
addpkgs pavucontrol pulseaudio # for HDMI sound
# 2017.1029 no install pkg deadbeef for antix
# X stuff
addpkgs rdesktop ssh mingetty xlsx2csv arandr wmctrl
addpkgs thunar xfce4-terminal xterm xtightvncviewer x11vnc xfce4-screenshooter scrot mesa-utils
addpkgs lxde fonts-liberation xfonts-scalable evince
addpkgs libreoffice
# xffm4 no pkg 2017.1029
#log2mail
#debian-goodies
addpkgs nano nedit reportbug
# TOYS
addpkgs cmatrix xaos imagemagick geeqie ristretto jpegoptim tumbler
#xearth xsnow
# Printing
addpkgs cups hplip hplip-gui # run ' hp-doctor ' non-root
addpkgs thunderbird
# X and session, if netinstall
addpkgs lightdm xfce4\*
#+ installed pkg # apt-get install virtualbox
addpkgs virtualbox-7.0
# Moved to end due to prompt/weirdness/needs config
# ZFS on linux
#2017.0223 FIX + installed pkg zfsutils-linux # was missing 'zpool' cmd
# REF: https://github.com/zfsonlinux/zfs/wiki/Debian / https://packages.debian.org/source/stretch/zfs-linux
#addpkgs zfs-dkms zfsutils-linux
addpkgs samba smbclient cifs-utils
#addpkgs cifs-utils
# && modprobe zfs
# These require input:
addpkgs localepurge vsftpd # libdvd-pkg
#addpkgs squid3
#dpkg-reconfigure libdvd-pkg
#addpkgs discover vsftpd sawfish localepurge rcconf scsiadd icewm
addpkgs mutt #sarg
# for squid reports - REF: https://www.tecmint.com/sarg-squid-analysis-report-generator-and-internet-bandwidth-monitoring-tool/
#add-apt-repository ppa:danielrichter2007/grub-customizer
#apt update
#addpkgs grub-customizer
apt-file update &
[ `lsmod |grep -c zfs` -gt 0 ] && zpool import
echo "`date` - DONE"
exit;
2018.jan all-in-1 for mx17:
# apt-get install ethtool xterm rdesktop evince gparted httrack gedit lftp chromium \
udftools xz-utils lzop exfat-utils bwm-ng geeqie xine-ui mplayer synaptic aptitude apt-file sysstat fbpager \
vsftpd openssh-server localepurge icedax cdparanoia growisofs nmap vorbis-tools pv pbzip2 lsscsi mbr p7zip-full filezilla \
vlc youtube-dl fsarchiver lm-sensors mesa-utils gawk dos2unix xlsx2csv lame arandr ffmpeg wodim android-tools-adb \
dvd+rw-tools lsdvd scrot rxvt cifs-utils xtightvncviewer jpegoptim iotop handbrake handbrake-cli x11vnc \
xvt hplip hplip-gui imagemagick bittornado-gui sox ristretto xfce4-screenshooter tumbler pavucontrol \
libdvd-pkg buffer fonts-liberation ttf-mscorefonts-installer xfonts-scalable parallel hddtemp
# No longer provided by cron
#addpkgs checksecurity
# NVIDIA driver
#addpkgs linux-amd64-generic
#addpkgs nvidia-glx
# AUDIO STUFF
addpkgs sox deadbeef
##addpkgs abcde
##addpkgs ecawave
##addpkgs mpgtx
##addpkgs grip
##addpkgs mp3burn
##addpkgs mp3c
# (mp3 creator)
##addpkgs id3
##addpkgs flac
##addpkgs groovycd
# No longer avail; use JRE
##addpkgs jdk1.1
# not exist anymore
##addpkgs pine
## Remember to remove mutt!
##addpkgs cdplayer
#timezoneconf
## autoinstall
# (duplicate system installation pkgs)
##addpkgs bastille
##addpkgs dmsetup
##addpkgs easyfw
# (firewall config GUI)
##addpkgs jablicator
# (Allow others to dup your setup)
##addpkgs linuxconf
# - consider webmin...
#addpkgs webmin webmin-lvm webmin-samba webmin-smart-status webmin-squid webmin-status webmin-filemanager
#lvm2
##addpkgs psad
# (attack detection)
##svgatextmode
##addpkgs xarchon
##addpkgs xonix
#VERY BAD - removes sysvinit!!
##addpkgs usbmgr
#addpkgs zgv xwpe gnome-terminal multi-gnome-terminal rxvt
# powershell
# sysv-rc sysv-rc-conf
# 2006.0828
#addpkgs xmms
#2006.0407
#addpkgs gaim bittorrent cadaver gqview libjpeg-progs
##addpkgs ntop
#2003.0325 - Sopwith game!! :)
##addpkgs sopwith
##addpkgs gnome-gataxx
# Too many gnome dependencies; also, replaced by gnome-games. 2006.0407
##addpkgs kpoker