Last active
June 29, 2024 17:09
-
-
Save bartprokop/a0d20813328f3c0104c290a38d099ece to your computer and use it in GitHub Desktop.
Getting Arch Linux on Low End Box from oneprovider.com
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
# Generate initial login password for installation | |
tr -dc A-Za-z0-9 </dev/urandom | head -c 15 ; echo '' | |
# Clear known SSH key after (re-) installing OS on bare metal: | |
ssh-keygen -R 195.154.112.70 | |
# # Host 195.154.112.70 found: line 52 | |
# /c/Users/proko/.ssh/known_hosts updated. | |
# Original contents retained as /c/Users/proko/.ssh/known_hosts.old | |
# Try to SSH to new server using username and password from server properties. | |
# Note, user password and root passwords are the same. | |
# It might also be reasonable to create DNS name for the server as well as reverse DNS entry. | |
ssh [email protected] | |
# Your user is not added to sudoers, so (root password is same as user password): | |
su - | |
pacman -S nano | |
EDITOR=nano visudo /etc/sudoers.d/enable-wheel | |
# %wheel ALL=(ALL:ALL) NOPASSWD: ALL | |
usermod -aG wheel bart | |
# Upload your remote SSH keys and set strong, random passwords for root and your user accounts. | |
reboot | |
# Check if everything works after reboot. | |
# Fix entropy | |
pacman -S rng-tools | |
systemctl start rngd | |
systemctl enable rngd | |
# Check what disk you have | |
pacman -S smartmontools | |
smartctl -a /dev/sda | |
# Validate your Internet connectivity | |
pacman -S speedtest-cli | |
speedtest-cli | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment