Ubuntu 20.04 Fine tune: verschil tussen versies

Uit WaaaghPedia
Geen bewerkingssamenvatting
 
(9 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04
== Importeer SSH Sleutels ==
 
VMWARE TOOLS https://linuxconfig.org/install-vmware-tools-on-ubuntu-20-04-focal-fossa-linux
 
 
 
'''Importeer SSH Sleutels'''


{{:SSH_Keys}}
{{:SSH_Keys}}


'''Update Ubuntu'''
== Update Ubuntu ==


<pre>sudo apt update
<pre>sudo apt update
sudo apt upgrade
sudo apt upgrade -y
sudo apt install open-vm-tools net-tools</pre>
sudo apt install -y open-vm-tools net-tools</pre>


'''Install packages'''
== Zet timezone ==
<pre>sudo timedatectl set-timezone Europe/Amsterdam</pre>


'''Run setup script'''
== Install packages ==
 
== Run setup script ==
Dit script zet alle instellingen en configuraties naar mijn zin.
Dit script zet alle instellingen en configuraties naar mijn zin.
<pre>cd ~
<pre>cd ~
git clone https://github.com/WaaaghNL/dotfiles.git
git clone https://github.com/WaaaghNL/dotfiles.git
cd dotfiles
cd dotfiles
./install.sh</pre>
sh ./install.sh‎</pre>
 
== Opruimen en Sluit af==
<pre>rm -rf ~/.bash_history
sudo shutdown -h now</pre>


'''Aliassen instellen'''
== Bronnen ==
<pre>
* https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04
echo 'alias vi="nano"' >> ~/.bashrc
* VMWARE TOOLS https://linuxconfig.org/install-vmware-tools-on-ubuntu-20-04-focal-fossa-linux
echo 'alias ll="ls -ls"' >> ~/.bashrc
echo 'export PS1="\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\h\[$(tput sgr0)\]\[\033[38;5;6m\][\w]:\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"' >> ~/.bashrc
</pre>


[[Categorie:Ubuntu]]
[[Categorie:Ubuntu]]
[[Categorie:ToDo]]
[[Categorie:ToDo]]
[[Categorie:Ubuntu 20.04]]
[[Categorie:Ubuntu 20.04]]

Huidige versie van 13 aug 2022 om 14:50

Importeer SSH Sleutels

mkdir ~/.ssh
touch ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDqOq7WMtPomV0qavAriuZzptMYrsTe4Dd19EfJkMqtZ7dEPVeeNqCA5Ytk892Gg7iKAVZWBrqIJmrJBPaf20mIA7A61SIEf4URaq9BbVDHQiFLewbSDLiZ3b/CfRWKCBXWwVC+wMtVEGzh8nbqJWY05BLfya2B+bPIV30TcTf6vKVhiKRLad/TEPJQml355dqFw1r1sPD/1TzgcGE8Unz8wVm7AiK+VmHNKOueSNMGOmDuOJwJqn6PdEtr+QtrjlG0Uw5RXqWc6R4YrhCXweR+XL2jKHT61ymc69luwxfn5n3He8b/k6ZIP3d1NySobHJQ5fVYVh3EIRbRwnpZXf5YeJrFvRgiWCze99tKAc7NUU9N3Pcmpk7vs2nRutZzkd2ku5EZli1bp7g1PFu2gBH1VmYtRuU0Xh3mjSiav4qtje8i70IW2qRl8Bnpa+4DsL/IV7dppgI8kYBLQcoO2hw3wo1S4zr3IyWsbhb5BmirpzKwk5tri4XlMqYHtoj4kr/uSXPIUYTQ0OYtqQrZoWVCq6tiTq4HHECGoaowTOGCz2LgBAq3S7gp274yq/2TRZ4NKXrgS/ORwpVQkfXACEQbTrCFdFNR0hrQlHM/By8zI/keC2M0jIxHlMH4gFkP2tuGk/VRVlluQEyRG6dW6+lSWAGDlHkTB1eETrWi9JYGdw== RonaldvanHeugten.nl Public SSH Key' >> ~/.ssh/authorized_keys

Extra beveiliging

#sudo sed -i /etc/ssh/sshd_config -r -e 's/^PermitRootLogin.*/PermitRootLogin no/g'
sudo sed -i /etc/ssh/sshd_config -r -e 's/^ChallengeResponseAuthentication.*/ChallengeResponseAuthentication no/g'
sudo sed -i /etc/ssh/sshd_config -r -e 's/^PasswordAuthentication.*/PasswordAuthentication no/g'
sudo sed -i /etc/ssh/sshd_config -r -e 's/^UsePAM.*/UsePAM no/g'
sudo sed -i /etc/ssh/sshd_config -r -e 's/^MaxAuthTries.*/MaxAuthTries 6/g'
sudo systemctl reload sshd

Update Ubuntu

sudo apt update
sudo apt upgrade -y
sudo apt install -y open-vm-tools net-tools

Zet timezone

sudo timedatectl set-timezone Europe/Amsterdam

Install packages

Run setup script

Dit script zet alle instellingen en configuraties naar mijn zin.

cd ~
git clone https://github.com/WaaaghNL/dotfiles.git
cd dotfiles
sh ./install.sh‎

Opruimen en Sluit af

rm -rf ~/.bash_history
sudo shutdown -h now

Bronnen