https://github.com/marcodpt/config
Meus arquivos de configurações e scripts
https://github.com/marcodpt/config
config private script setup setup-script
Last synced: 4 months ago
JSON representation
Meus arquivos de configurações e scripts
- Host: GitHub
- URL: https://github.com/marcodpt/config
- Owner: marcodpt
- Created: 2023-10-25T18:52:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-28T21:49:34.000Z (about 1 year ago)
- Last Synced: 2024-05-29T04:24:30.490Z (about 1 year ago)
- Topics: config, private, script, setup, setup-script
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Config
My settings files and automation scripts.
## iot
Installation```
wget -q -O - https://raw.githubusercontent.com/marcodpt/config/main/iot/install.sh | sudo bash
```- `install.sh` is a script to initialize a terminal with scale and printer.
- `rc.local` is used by this script to start the server when powered on.
- `startup.sh` restarts servers and is used by `install.sh` and `rc.local`.
- `config.toml` are the server settings.Restart server
```
sudo /etc/iot/startup.sh
```## marco
My personal settings.```
wget -q -O - https://raw.githubusercontent.com/marcodpt/config/main/marco/install.sh | sudo bash
``````
ssh-add
wget -q -O - https://raw.githubusercontent.com/marcodpt/config/main/marco/config.sh | bash
```- `install.sh` install the packages I use to work.
- `config.sh` set my preferences.
- `bashrc` put `vim` as the default editor and always use `tmux` in the terminal.
- `vimrc` these are my `vim` settings.
- `tmux.conf` these are my `tmux` settings.## SSH
### Import private key
```
mkdir -p ~/.ssh
cp path/to/key ~/.ssh/id_rsa
chmod go-rw ~/.ssh/id_rsa
ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub
```### Generate new key
```
ssh-keygen -t rsa -b 4096 -C "[email protected]" -f ~/.ssh/id_rsa
```## GPG
### Import key (public or private)
```
gpg --import path/to/key
gpg --edit-key [email protected]
trust
5
quit
```### Export public key
```
gpg --armor --export [email protected] > pub.asc
```### Export private key
```
gpg --armor --export-secret-key [email protected] > key.asc
```### List public keys
```
gpg -k
```### List private keys
```
gpg -K
```### Generate new key
```
sudo rngd -r /dev/urandom
gpg --gen-key
```