Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chicunic/compute-engine-init
https://github.com/chicunic/compute-engine-init
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chicunic/compute-engine-init
- Owner: chicunic
- Created: 2022-05-26T05:40:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-26T02:31:18.000Z (27 days ago)
- Last Synced: 2024-11-26T03:26:03.331Z (27 days ago)
- Language: Shell
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# compute-engine-init
## CentOS Stream 9 init
### 1. Add SSH key to remote server
```bash
ssh-copy-id -i ~/.ssh/id_ed25519.pub chicunic@
```### 2. Disable sudo password
```bash
sudo visudo
```### 3. Disable root password & password authentication
Update `/etc/ssh/sshd_config`
```txt
PermitRootLogin no
PasswordAuthentication no
```### 4. Install useful packages
Execute `1-init.sh`
### 5. Install oh-my-zsh
Switch to root user for the following commands
```bash
sudo su
```Install oh-my-zsh
```bash
dnf install -y zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```Install p10k
```bash
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
```Set `ZSH_THEME="powerlevel10k/powerlevel10k"` in `~/.zshrc`
Copy `.p10k.zsh` in home folder and add the followings in `~/.zshrc`
```txt
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
```