Skip to content

Instantly share code, notes, and snippets.

@mattrude
Last active Nov 11, 2020
Embed
What would you like to do?

To run:

curl -Ls "https://gist.githubusercontent.com/mattrude/4195d155c5deb53b628055a5f83fd5e3/raw/raspi-build.sh" |sh -
#!/bin/sh
sudo apt -y install multitail vim
echo "set tabstop=4
set shiftwidth=4
set expandtab" |sudo tee /etc/vim/vimrc.local 1> /dev/null
mkdir -p ~/.ssh;
echo "## Dell Laptop
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEA1f64qldHelhwbujxqPIEdcH8L9Hw+GX55u6wNfDPwSylHxsqVbFATBu8A9OsYIBTmLDokj2roqvmhSh361yVPLHTNbbGW3JJVyadtwr8qc8jPMg/0ceBCyyEO7fwDjyFDH1s/+U5Arjsvzc+avGsplWe+13bvoos6ZqMVTC8bZZ9FhKcpZZZ2C1U04rUQtKhu3iOyiQLRWdOPPpLzIsE/bVSnmA2BlXFZGmCaaFjQXSieEGnhEbQb4+KUe56LC54i7Lj5J5ZpegKTNyl6cMKpDNL46ntDv8cV236+FKkMOuIR6OqCKCamKZsR1J/YZxw9QrZERY3a8g1Nm7syiPJjQ== New-Dell-Laptop
## Phone
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYk1YbKUnO79jfyvLHk6p9h6v/I+rX0geGKxAwzh1o+MxHgXDjQtom61owMLDb25YPyvXNTwDJV56WhWWtKubfb4/0PSC7qltJcCYpqz19QM5wZmy2jgok/MCT1CPrC9jKeO7xJ4KZa+/ypKNdUYYd7Njw8+RdgjSElyDujMZrrUnliDzpULQJNUEJ3y4+nTu0GpCvha3zdj2S/Vb9qfpCatnF0cmNOAlATZAPHP0MdomVSQHVZaDARtMQtQ0tmgPRNBH1Ep08STPSigr6vLFnMyPo59GxDVUI4g7R9TnL1pmQwuJwV8I5n3j1yVbfZxWFL8g7Jv9OYCtYwQpdpy1R JuiceSSH
## Desktop (root)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDMzjjlmdDTzMUvPeYXNJ0MagG71aNgdHmaB6qqwnZfM2BtMBVAySYJkcWXeM8e25ncYd567HuvIYS6v2+s8RiWcH3dfhzG7gbk/vmi8sLu56gsruk6JCPspeLHp2eMLSr8jHHVxAqO6UysFOnfNFRqVG6aeFCzsNW8kgw3I+B12+G/ulNNycuSvj+NL579C146n2bTt13NJCLNriYRITYcIf6/AngZoNYExhfrkSRCmF3febRJ8kqYOreRWluZRcZc2vyGVTOxNWCKVU4SDEtTqedMnAVn7FxnBfJPlfVDcii11n2XTumhYl8wSJ5SFPCeqdBiBvfSi5j8fEz0A8Ql root@desktop.lan.therudes.com
" |sudo tee ~/.ssh/authorized_keys 1> /dev/null
sudo mkdir -p /root/.ssh
echo "## Dell Laptop
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEA1f64qldHelhwbujxqPIEdcH8L9Hw+GX55u6wNfDPwSylHxsqVbFATBu8A9OsYIBTmLDokj2roqvmhSh361yVPLHTNbbGW3JJVyadtwr8qc8jPMg/0ceBCyyEO7fwDjyFDH1s/+U5Arjsvzc+avGsplWe+13bvoos6ZqMVTC8bZZ9FhKcpZZZ2C1U04rUQtKhu3iOyiQLRWdOPPpLzIsE/bVSnmA2BlXFZGmCaaFjQXSieEGnhEbQb4+KUe56LC54i7Lj5J5ZpegKTNyl6cMKpDNL46ntDv8cV236+FKkMOuIR6OqCKCamKZsR1J/YZxw9QrZERY3a8g1Nm7syiPJjQ== New-Dell-Laptop
## Phone
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYk1YbKUnO79jfyvLHk6p9h6v/I+rX0geGKxAwzh1o+MxHgXDjQtom61owMLDb25YPyvXNTwDJV56WhWWtKubfb4/0PSC7qltJcCYpqz19QM5wZmy2jgok/MCT1CPrC9jKeO7xJ4KZa+/ypKNdUYYd7Njw8+RdgjSElyDujMZrrUnliDzpULQJNUEJ3y4+nTu0GpCvha3zdj2S/Vb9qfpCatnF0cmNOAlATZAPHP0MdomVSQHVZaDARtMQtQ0tmgPRNBH1Ep08STPSigr6vLFnMyPo59GxDVUI4g7R9TnL1pmQwuJwV8I5n3j1yVbfZxWFL8g7Jv9OYCtYwQpdpy1R JuiceSSH
## Desktop (root)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDMzjjlmdDTzMUvPeYXNJ0MagG71aNgdHmaB6qqwnZfM2BtMBVAySYJkcWXeM8e25ncYd567HuvIYS6v2+s8RiWcH3dfhzG7gbk/vmi8sLu56gsruk6JCPspeLHp2eMLSr8jHHVxAqO6UysFOnfNFRqVG6aeFCzsNW8kgw3I+B12+G/ulNNycuSvj+NL579C146n2bTt13NJCLNriYRITYcIf6/AngZoNYExhfrkSRCmF3febRJ8kqYOreRWluZRcZc2vyGVTOxNWCKVU4SDEtTqedMnAVn7FxnBfJPlfVDcii11n2XTumhYl8wSJ5SFPCeqdBiBvfSi5j8fEz0A8Ql root@desktop.lan.therudes.com
" |sudo tee /root/.ssh/authorized_keys 1> /dev/null
if [ `grep "alias l='ls -lh --color'" ~/.bashrc |wc -l` == 0 ]; then
echo "alias l='ls -lh --color'" >> ~/.bashrc
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment