Skip to content

Instantly share code, notes, and snippets.

@Mausy5043
Last active March 6, 2017 17:23
Show Gist options
  • Save Mausy5043/d71048ffc0769043cc9414814df4cf08 to your computer and use it in GitHub Desktop.
Save Mausy5043/d71048ffc0769043cc9414814df4cf08 to your computer and use it in GitHub Desktop.
debbie
sudo sh
sed -i 's/main/& contrib non-free/' /etc/apt/sources.list
#sed -i 's/\%sudo\tALL=(ALL:ALL)/&\ NOPASSWD:/' /rootfs/etc/sudoers
echo "debbie2 ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers.d/debbie2
apt update
apt list --upgradable
apt upgrade
apt install sudo bc screen lsof rsync nfs-common logrotate htop nano git apt-utils tree
# add additional groups
usermod -a -G sudo,systemd-journal,users debbie2
# switch on NTP
sudo timedatectl set-ntp true
timedatectl status
echo "boson.lan:/srv/array1/rbin/rpi /home/debbi3/bin nfs4 nouser,atime,rw,dev,exec,suid,auto 0 0" >> /etc/fstab
exit
# add aliases
echo "alias ll='ls -l'" >> ~/.bash_aliases
echo "alias la='ls -laF'" >> ~/.bash_aliases
echo "alias ls='ls --color=auto'" >> ~/.bash_aliases
echo "alias grep='grep --color=auto'" >> ~/.bash_aliases
echo "alias fgrep='fgrep --color=auto'" >> ~/.bash_aliases
echo "alias egrep='egrep --color=auto'" >> ~/.bash_aliases
echo 'PATH="$HOME/bin:$HOME/.local/bin:$PATH"' >> ~/.bash_aliases
echo 'PATH="/sbin:/usr/sbin:/usr/local/sbin:$PATH"' >> ~/.bash_aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment