Clean Linux Install
These notes are a brief guide for installing Linux fresh on a new machine.
An assumption is made that a ‘friendly’ distro is being used that comes with a lot already set up, including a desktop environment etc. with these commands being more of a focus of getting everything needed for use in a working environment.
Here we assume openSUSE with the zypper package manager, but
distro-specific commands could be adapted.
- Install from bootable USB
- Set up SSH key
1ssh-keygen- To allow access to another machine copy the contents of
~/.ssh/id_<type>.pubon this machine to~/.ssh/authorized_keyson the remote.
- To allow access to another machine copy the contents of
- Set up GPG key
1gpg --full-generate-key- To use on another machine run:
and then on the other machine:
1 2 3gpg --export-secret-keys --armor <FINGERPRINT> > ~/gpg-secret.asc gpg --export-ownertrust > ~/gpg-trust.txt scp ~/gpg-secret.asc ~/gpg-trust.txt <remote-machine>:~/1 2 3gpg --import gpg-secret.asc gpg --import-ownertrust gpg-trust.txt gpg --list-secret-keys
- To use on another machine run:
- Update and install packages
- Check to make sure there isn’t a repo left over from the bootable USB:
If there is then remove with
1zypper lr -usudo zypper removerepo <name> - Refresh and update all packages:
1 2sudo zypper ref sudo zypper dup - Install useful developer packages:
1 2sudo zypper install -t pattern devel_basis sudo zypper install cmake
- Check to make sure there isn’t a repo left over from the bootable USB:
- Install password-store:
1 2sudo zypper install password-store git clone <password-store-location> ~/.password-store