Skip to content

Instantly share code, notes, and snippets.

@mokiding
Last active September 22, 2017 04:09
Show Gist options
  • Save mokiding/3575043d3f5c76eaff3e1d9f1d1904e8 to your computer and use it in GitHub Desktop.
Save mokiding/3575043d3f5c76eaff3e1d9f1d1904e8 to your computer and use it in GitHub Desktop.
What i usualy do after installing {flavor} of ubuntu.
#Check ubuntu version with
cat /etc/*release
#Go to sudo and update repo
sudo su
#Replace .rs in sources.list
sed -i 's/rs.//g' /etc/apt/sources.list
apt update
#Remove unused things
apt purge firefox* libreoffice* gnome-orca* deja-dup* atril* rhythmbox* pidgin* thunderbird* plank* pluma* shotwell* synapse*
#For this core packages better use remove than purge ...
apt remove ubuntu-mate-welcome mate-utils simple-scan popularity-contest
#Now update system
apt dist-upgrade
#Install Google Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
gdebi google-chrome-stable_current_amd64.deb
#Install Atom
wget https://atom.io/download/deb
mv deb atom.deb
gdebi atom.deb
#Basic utilities
apt install synaptic filezilla vlc git curl unrar leafpad
#Install Adapta-Nokto-Eta and icons PPA
apt-add-repository ppa:tista/adapta -y
apt-add-repository ppa:noobslab/icons -y
apt update
apt install adapta-gtk-theme arc-icons
@mokiding
Copy link
Author

mokiding commented Sep 22, 2017

To fix mdam "mdadm.conf defines no arrays"
Just add this to your /etc/mdadm/mdadm.conf (change /dev/vda1 to your mountpoint "cat /proc/mounts")
ARRAY <ignore> devices=/dev/vda1
and then just run "update-initramfs -u"

Update1:
Someone posted better 1 line solution on serverfault.com
grep "ARRAY <ignore> devices" /etc/mdadm/mdadm.conf >/dev/null || echo "ARRAY <ignore> devices=/dev/vda1" | sudo -A tee -a /etc/mdadm/mdadm.conf >/dev/null;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment