add default software; uncomment grub-reconfig; update IP
This commit is contained in:
16
clients/initialsetup.sh
Executable file → Normal file
16
clients/initialsetup.sh
Executable file → Normal file
@@ -15,16 +15,16 @@ if [ "$1" = "reset" ]; then
|
||||
fi
|
||||
|
||||
|
||||
# Disable timeout in grub
|
||||
echo "Update GRUB timeout to unlimited"
|
||||
cp /etc/default/grub /etc/default/grub.bak
|
||||
sed "s|^GRUB_TIMEOUT=.*$|GRUB_TIMEOUT=-1|" /etc/default/grub > grub.tmp ; mv grub.tmp /etc/default/grub
|
||||
update-grub
|
||||
# Disable timeout in grub (only in Dual boot)
|
||||
#echo "Update GRUB timeout to unlimited"
|
||||
#cp /etc/default/grub /etc/default/grub.bak
|
||||
#sed "s|^GRUB_TIMEOUT=.*$|GRUB_TIMEOUT=-1|" /etc/default/grub > grub.tmp ; mv grub.tmp /etc/default/grub
|
||||
#update-grub
|
||||
|
||||
|
||||
# Set apt-cacher-ng proxy
|
||||
echo "Configuring apt to use local apt-cacher-ng proxy"
|
||||
echo 'Acquire::http { Proxy "http://192.168.1.250:3142"; };
|
||||
echo 'Acquire::http { Proxy "http://192.168.1.10:3142"; };
|
||||
Acquire::https { Proxy "https://"; };' > "/etc/apt/apt.conf.d/01proxy"
|
||||
|
||||
killall apt-get
|
||||
@@ -33,6 +33,10 @@ killall apt-get
|
||||
#mv lists /var/lib/apt/
|
||||
apt-get update
|
||||
|
||||
# Default software
|
||||
echo "Installing default software"
|
||||
apt-get -y install synaptic filezilla
|
||||
|
||||
|
||||
# Reset GUI settings on every login (XFCE)
|
||||
USER=$(grep ":1000:" /etc/passwd | awk -F: '{ print $1 }')
|
||||
|
||||
Reference in New Issue
Block a user