-
Notifications
You must be signed in to change notification settings - Fork 0
Linux
Adam Conkey edited this page Aug 20, 2024
·
27 revisions
I use balenaEtcher on MacOS to write a disk image to a USB flash drive.
cd ~/Downloads
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current.amd64.deb
sudo snap install slack spotify
sudo snap install emacs --classic
sudo apt install \
build-essential \
cargo \
curl \
git \
git-lfs \
htop \
texlive-full \
tmux \
xclip
cargo install dutree bat exa
- Enter your GPU information here to figure out which run file to download.
-
sudo apt purge nvidia*
if there were any drivers already installed on the machine. - Reboot machine and enter TTY terminal with Ctrl + Alt + F2
- Run the script:
cd ~/Downloads sudo chmod +x NVIDIA-Linux-x86_64-525.60.11.run # Whatever your file is named sudo ./NVIDIA-Linux-x86_64-525.60.11.run
- Follow the prompts until it succeeds, and reboot.
- Do
ssh-keygen
and follow prompts, use defaults. - Copy public key to clipboard:
xclip -sel c < ~/.ssh/id_rsa.pub
- Add the key where you need it, e.g. GitHub
- Do
ssh-copy-id -i ~/.ssh/id_rsa.pub user@remote
- Enter your password for the remote host when asked.
- Now you should be able to connect via SSH without entering a password.
If you want to enable connecting to your machine via SSH:
- Install the SSH server:
sudo apt install openssh-server
- Change the port to something other than 22 to thwart script kiddies:
sudo emacs /etc/ssh/sshd_config
- Change the line
#Port 22
toPort 5522
(i.e. uncomment and change the port number as desired)
sudo systemctl restart ssh
-
sudo systemctl status ssh
. You should see it indicating it's actively running with the port you specified above.