zsh and wireguard updates
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
|
||||
- [Workstation](#workstation)
|
||||
- [Framework AMD Notes](#framework-amd-notes)
|
||||
- [Wifi](#wifi)
|
||||
- [ATH12K Wifi Drivers](#ath12k-wifi-drivers)
|
||||
- [Microcode](#microcode)
|
||||
- [linux-git kernel](#linux-git-kernel)
|
||||
- [Base Tools](#base-tools)
|
||||
- [ZSH](#zsh)
|
||||
- [Prompt Themes](#prompt-themes)
|
||||
- [Aliases](#aliases)
|
||||
- [Rollback Pacman Update](#rollback-pacman-update)
|
||||
- [Podman](#podman)
|
||||
@@ -31,6 +33,7 @@
|
||||
- [Initialization](#initialization)
|
||||
- [Development](#development)
|
||||
- [Cura](#cura)
|
||||
- [Creality Print](#creality-print)
|
||||
- [AWS CLI](#aws-cli)
|
||||
- [NSlookup](#nslookup)
|
||||
- [rpi-imager](#rpi-imager)
|
||||
@@ -40,7 +43,7 @@
|
||||
|
||||
## Framework AMD Notes
|
||||
|
||||
### Wifi
|
||||
### ATH12K Wifi Drivers
|
||||
|
||||
Install the wireless-regdb to set the regulatory domain to US
|
||||
|
||||
@@ -50,20 +53,21 @@ pacman -S wireless-regdb
|
||||
|
||||
Edit `/etc/conf.d/wireless-regdom` to set the domain
|
||||
|
||||
Switch to iwd for the NetworkManager backend.
|
||||
<https://git.codelinaro.org/clo/ath-firmware/ath12k-firmware/-/tree/main>
|
||||
|
||||
```bash
|
||||
pacman -S iwd
|
||||
```
|
||||
1. `git clone https://git.codelinaro.org/clo/ath-firmware/ath12k-firmware`
|
||||
2. `cd ath12k-firmware`
|
||||
3. Run the following:
|
||||
|
||||
Edit `/etc/NetworkManager/conf.d/wifi_backend.conf`
|
||||
```bash
|
||||
wget https://github.com/qca/qca-swiss-army-knife/raw/master/tools/scripts/ath12k/ath12k-fw-repo
|
||||
chmod 755 ath12k-fw-repo
|
||||
sudo ./ath12k-fw-repo --install /lib/firmware
|
||||
```
|
||||
|
||||
```conf
|
||||
[device]
|
||||
wifi.backend=iwd
|
||||
```
|
||||
|
||||
Finally, reboot the machine for the changes to take effect.
|
||||
4. `sudo cp ath12k/board.bin /lib/firmware/ath12k/WCN7850/hw2.0/`
|
||||
5. `sudo cp ath12k/regdb.bin /lib/firmware/ath12k/WCN7850/hw2.0/`
|
||||
6. Reboot
|
||||
|
||||
### Microcode
|
||||
|
||||
@@ -81,10 +85,20 @@ initrd /initramfs-linux.img
|
||||
options ...
|
||||
```
|
||||
|
||||
### linux-git kernel
|
||||
|
||||
<https://aur.archlinux.org/packages/linux-git>
|
||||
|
||||
1. `git clone https://aur.archlinux.org/linux-git.git`
|
||||
2. `cd linux-git`
|
||||
3. `makepkg`
|
||||
4. `sudo pacman -U linux-git... linux-git-headers...`
|
||||
|
||||
## Base Tools
|
||||
|
||||
```bash
|
||||
pacman -S rsync which git iperf3 pwgen dosfstools exfatprogs
|
||||
# gvfs and gvfs-dnssd are for webdav support
|
||||
pacman -S rsync which git iperf3 pwgen dosfstools exfatprogs gvfs gvfs-dnssd
|
||||
```
|
||||
|
||||
## ZSH
|
||||
@@ -92,7 +106,43 @@ pacman -S rsync which git iperf3 pwgen dosfstools exfatprogs
|
||||
```bash
|
||||
pacman -S zsh grml-zsh-config
|
||||
chsh -s $(which zsh)
|
||||
echo "autoload -U compinit; compinit" > ~/.zshrc
|
||||
|
||||
cat <<EOF > ~/.zshrc
|
||||
# Basic settings
|
||||
autoload bashcompinit && bashcompinit
|
||||
autoload -U compinit; compinit
|
||||
zstyle ':completion:*' menu select
|
||||
|
||||
# Prompt settings
|
||||
autoload -Uz promptinit
|
||||
promptinit
|
||||
PROMPT_EOL_MARK=
|
||||
|
||||
# Syntax Highlighting
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
|
||||
# Command Not Found Autocomplete
|
||||
source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
|
||||
### Custom Commands and Aliases ###
|
||||
EOF
|
||||
```
|
||||
|
||||
### Prompt Themes
|
||||
|
||||
See: <https://wiki.archlinux.org/title/Zsh#Prompt_themes>
|
||||
|
||||
Use `prompt -l` to list prompts
|
||||
|
||||
Use `prompt -p` to see previews
|
||||
|
||||
In your `.zshrc` set the following:
|
||||
|
||||
```bash
|
||||
autoload -Uz promptinit
|
||||
promptinit
|
||||
prompt grml
|
||||
```
|
||||
|
||||
### Aliases
|
||||
@@ -444,6 +494,23 @@ Icon=/home/ducoterra/.icons/cura.png
|
||||
Type=Application
|
||||
```
|
||||
|
||||
## Creality Print
|
||||
|
||||
<https://www.creality.com/pages/download-software?spm=..page_11657537.creality_print_1.1>
|
||||
|
||||
```bash
|
||||
mv ~/Downloads/Creality_Print*.AppImage ~/Applications/Creality_Print.AppImage
|
||||
chmod +x ~/Applications/*.AppImage
|
||||
```
|
||||
|
||||
```conf
|
||||
[Desktop Entry]
|
||||
Name=Creality Print
|
||||
Exec=/home/ducoterra/Applications/Creality_Print.AppImage
|
||||
Icon=/home/ducoterra/.icons/creality_print.png
|
||||
Type=Application
|
||||
```
|
||||
|
||||
## AWS CLI
|
||||
|
||||
<https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html>
|
||||
|
||||
Reference in New Issue
Block a user