
* Updated README * Updated pip and deb packages. * New firefox bookmark format [currently doesn't work] Change-Id: I115609d6db6b77a6812dd92aa066fb5edc4f38a1
28 lines
540 B
Bash
Executable File
28 lines
540 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -x
|
|
|
|
# Remove compiled pyc files
|
|
updatedb
|
|
count=$(locate -- *.pyc | wc -l)
|
|
i=1
|
|
for pyc in $(locate -- *.pyc); do
|
|
rm -rf "$pyc"
|
|
echo -en "\r$((i++)) of $count deleted"
|
|
done
|
|
echo ""
|
|
updatedb
|
|
|
|
# Empty packages cache
|
|
apt clean
|
|
apt autoclean
|
|
apt update
|
|
|
|
# Disable Console serial port redirection
|
|
sed -i "s/console=ttyS0//g" /etc/default/grub
|
|
sed -i "s/console=ttyS0//g" /etc/default/grub.d/*
|
|
update-grub
|
|
|
|
# Set hostname
|
|
echo "upstream-training" > "/etc/hostname"
|
|
echo "127.0.1.1 upstream-training" >> "/etc/hosts"
|