add qflipper, rpi imager, and pacman aliases

This commit is contained in:
2023-12-26 10:19:49 -05:00
parent 7c550ea9c8
commit d61dd48d19

View File

@@ -3,6 +3,8 @@
- [Workstation](#workstation)
- [Base Tools](#base-tools)
- [ZSH](#zsh)
- [Aliases](#aliases)
- [Rollback Pacman Update](#rollback-pacman-update)
- [Podman](#podman)
- [Docker](#docker)
- [QEMU/KVM](#qemukvm)
@@ -28,11 +30,13 @@
- [Cura](#cura)
- [AWS CLI](#aws-cli)
- [NSlookup](#nslookup)
- [rpi-imager](#rpi-imager)
- [qFlipper](#qflipper)
## Base Tools
```bash
pacman -S rsync which git iperf3 pwgen
pacman -S rsync which git iperf3 pwgen dosfstools exfatprogs
```
## ZSH
@@ -43,6 +47,32 @@ chsh -s $(which zsh)
echo "autoload -U compinit; compinit" > ~/.zshrc
```
### Aliases
You can put you aliases in `.zshrc` with the following format:
```bash
alias update='sudo pacman -Syu --noconfirm'
```
It's recommended that for complicated/multiline aliases you create a folder called
`~/.local/scripts` where you store each alias. Make sure to back up this folder!
#### Rollback Pacman Update
This script will grep for all updates performed today and roll them back one by one.
rollback_update.sh
```bash
grep -a upgraded /var/log/pacman.log| grep $(date +"%Y-%m-%d") > /tmp/lastupdates.txt
awk '{print $4}' /tmp/lastupdates.txt > /tmp/lines1;awk '{print $5}' /tmp/lastupdates.txt | sed 's/(/-/g' > /tmp/lines2
paste /tmp/lines1 /tmp/lines2 > /tmp/lines
tr -d "[:blank:]" < /tmp/lines > /tmp/packages
cd /var/cache/pacman/pkg/
for i in $(cat /tmp/packages); do sudo pacman --noconfirm -U "$i"*; done
```
## Podman
Install with the following
@@ -390,3 +420,30 @@ complete -C '/usr/local/bin/aws_completer' aws
```bash
pacman -Syu bind
```
## rpi-imager
<https://github.com/raspberrypi/rpi-imager>
```bash
sudo pacman -S cmake qt5-base
```
follow install instructions
## qFlipper
<https://flipperzero.one/update>
```bash
mv ~/Downloads/*qFlipper*.AppImage ~/Applications/qFlipper.AppImage
chmod +x ~/Applications/*.AppImage
```
```conf
[Desktop Entry]
Name=qFlipper
Exec=/home/ducoterra/Applications/qFlipper.AppImage
Icon=/home/ducoterra/.icons/qFlipper.png
Type=Application
```