add fedora instr

This commit is contained in:
rskntroot
2025-02-22 15:46:11 -07:00
parent fc7ab1c10a
commit e53b26c0e4

View File

@@ -6,7 +6,7 @@ some setup guides
- by `rskntroot` on `2025-02-20` - by `rskntroot` on `2025-02-20`
## Debian ## Preferences
### SSH ### SSH
@@ -14,15 +14,34 @@ some setup guides
``` bash ``` bash
sudo -i sudo -i
```
``` bash
cd /etc/ssh/ cd /etc/ssh/
mv sshd_config sshd_config.backup mv sshd_config sshd_config.backup
curl https://raw.githubusercontent.com/k4yt3x/sshd_config/master/sshd_config -o ./sshd_config curl https://raw.githubusercontent.com/k4yt3x/sshd_config/master/sshd_config -o ./sshd_config
sed -i 's/^#DebianB/DebianB/' sshd_config
chmod 644 /etc/ssh/sshd_config chmod 644 /etc/ssh/sshd_config
cat <<%% >> /etc/ssh/sshd_config
# Enable Public Key Auth
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
%%
systemctl restart ssh systemctl restart ssh
exit exit
``` ```
### Auth
=== "Existing Key"
``` bash
key="ecdsa-sha2-nistp256 ASASDASDFsomekey user@whatever"
```
``` bash
mkdir -p ~/.ssh && echo ${key} >> ~/.ssh/authorized_keys
```
=== "New Key" === "New Key"
``` bash ``` bash
@@ -30,31 +49,12 @@ exit
cat id_ecdsa.pub >> ~/.ssh/authorized_keys cat id_ecdsa.pub >> ~/.ssh/authorized_keys
``` ```
=== "Existing Key"
``` bash
key="ecdsa-sha2-nistp256 ASASDASDFsomekey user@whatever"
```
``` bash
mkdir ~/.ssh && echo ${key} >> ~/.ssh/authorized_keys
```
``` bash ``` bash
sudo -i sudo -i
cat <<%% >> /etc/ssh/sshd_config
###RSKIO
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
%%
systemctl restart ssh
exit
``` ```
### Docker ### Docker
### Setup Docker
- see https://docs.docker.com/engine/install/ubuntu/ - see https://docs.docker.com/engine/install/ubuntu/
``` bash ``` bash
@@ -68,8 +68,19 @@ docker ps
- see https://docs.docker.com/config/completion/ - see https://docs.docker.com/config/completion/
=== "Debian"
``` bash ``` bash
sudo apt install bash-completion -y sudo apt install bash-completion -y
```
=== "Fedora"
``` bash
sudo dnf install bash-completion -y
```
``` bash
cat <<%% >> ~/.bashrc cat <<%% >> ~/.bashrc
if [ -f /etc/bash_completion ]; then if [ -f /etc/bash_completion ]; then
. /etc/bash_completion . /etc/bash_completion
@@ -82,6 +93,8 @@ source ~/.bashrc
### Tools ### Tools
=== "Debian"
``` bash ``` bash
sudo apt install -y \ sudo apt install -y \
curl \ curl \
@@ -93,26 +106,43 @@ sudo apt install -y \
vim vim
``` ```
=== "Fedora"
``` bash
sudo dnf install -y \
htop \
sensors
```
### Shortcuts ### Shortcuts
#### fastfetch
- see [fastfetch](https://github.com/fastfetch-cli/fastfetch) for more info - see [fastfetch](https://github.com/fastfetch-cli/fastfetch) for more info
=== "ARM_64"
=== "Debian"
``` bash ``` bash
mkdir ~/Downloads/ && cd Downloads url="https://github.com/fastfetch-cli/fastfetch/releases/download/2.37.0/fastfetch-linux-aarch64.deb"
curl -L https://github.com/fastfetch-cli/fastfetch/releases/download/2.37.0/fastfetch-linux-aarch64.deb -o fastfetch-linux-aarch64.deb
sudo dpkg -i fastfetch-linux-aarch64.deb
cd ~
``` ```
=== "x86_64" ``` bash
mkdir -p ~/downloads/ && cd ~/downloads
curl -fsSLO ${url} -o ${file}
sudo dpkg -i fastfetch-installer
```
=== "Fedora"
``` bash ``` bash
mkdir ~/Downloads/ && cd Downloads url="https://github.com/fastfetch-cli/fastfetch/releases/download/2.37.0/fastfetch-linux-aarch64.deb"
curl -L https://github.com/fastfetch-cli/fastfetch/releases/download/2.37.0/fastfetch-linux-amd64.deb -o fastfetch-linux-amd64.deb ```
sudo dpkg -i fastfetch-linux-amd64.deb
cd ~ ``` bash
mkdir -p ~/downloads/ && cd ~/downloads
curl -fsSLO ${url} -o ${file}
sudo dnf install fastfetch-installer
``` ```
``` bash ``` bash