Forked from UbuntuEvangelist/Things To Do After Installing Ubuntu 24.04 LTS Server
Created
October 14, 2021 17:31
-
-
Save parallaxhub/bd96bf450bf4bf1eec7e58256f4e79a9 to your computer and use it in GitHub Desktop.
Things To Do After Installing Ubuntu 20.04 LTS Cloud Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
apt update -y | |
apt-get upgrade -y | |
apt update -y | |
apt install build-essential checkinstall | |
apt install ubuntu-restricted-extras | |
apt install software-properties-common | |
apt install apt-show-versions | |
apt upgrade -o APT::Get::Show-Upgraded=true | |
apt-show-versions | grep upgradeable | |
apt update -y | |
apt-get upgrade -y | |
add-apt-repository ppa:nilarimogard/webupd8 | |
apt update -y | |
apt install launchpad-getkeys | |
launchpad-getkeys | |
add-apt-repository ppa:git-core/ppa | |
apt update -y | |
apt install git | |
git config --global user.name "name" | |
git config --global user.email [email protected] | |
ssh-keygen -t rsa -b 4096 -C "[email protected]" | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_rsa | |
# Add SSH Key the GitHub | |
cat /root/.ssh/id_rsa.pub | |
apt upgrade -y && apt update | |
apt-get install openssh-server | |
nano /etc/ssh/sshd_config | |
# Find (ctrl+w) this line and set | |
PermitRootLogin yes | |
PubkeyAuthentication yes | |
PasswordAuthentication yes | |
# Save & exit ctrl+s and ctrl+x then hit enter | |
service ssh restart | |
apt upgrade -y && apt update | |
apt -f install && apt autoremove | |
apt -y autoclean && apt -y clean | |
apt upgrade -y && apt update | |
reboot | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment