55 lines
1.1 KiB
Markdown
55 lines
1.1 KiB
Markdown
```bash
|
|
install gnome-disk-utility
|
|
install yay
|
|
install conda nvm nvim
|
|
```
|
|
|
|
**use for reconfig grub for fix stuck at initial ramdisks:**
|
|
|
|
how does i get out stuck at initial ramdisk:
|
|
|
|
- first, access local os:
|
|
|
|
```bash
|
|
mount /dev/sda2 /mnt
|
|
mount /dev/sda1 /mnt/boot
|
|
arch-chroot /mnt/
|
|
```
|
|
|
|
- second, remove all initframs and vmlinuz, amd-ucode on `\boot`
|
|
|
|
- third, copy each vmlinuz from `usr\lib\modules` to boot
|
|
|
|
example:
|
|
```bash
|
|
cp \usr\lib\modules\6.10.10-lts..\vmlinuz \boot\vmlinuz-linux-lts
|
|
```
|
|
|
|
- forth, check on `etc\modprob.d` have any file `.conf` if it exist remove it
|
|
|
|
- fifth, reinstall amd-ucode `pacman -S amd-ucode`
|
|
|
|
- six, run `mkinitcpio -P`
|
|
|
|
done!
|
|
|
|
---
|
|
|
|
config mhz for gpu ignore tearing when inactivity
|
|
```bash
|
|
sudo pacman -S lact
|
|
```
|
|
---
|
|
|
|
## SSH tunneling
|
|
1. first u must have port 22 available on 192.168.1.1 virtual trigger
|
|
2. uncomment `port 22` on file follow path `/etc/ssh/sshd_config`
|
|
3. `sudo systemctl enable sshd | systemctl start --now sshd`
|
|
-> after that u can connect to ssh. it means u doesnt need add open port 22
|
|
|
|
|
|
|
|
## Open port
|
|
- Make sure u have `iptables-nft` installed
|
|
- Run script `sudo bash ./.config/iptables_config.sh`
|