add qflipper, rpi imager, and pacman aliases
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
- [Workstation](#workstation)
|
- [Workstation](#workstation)
|
||||||
- [Base Tools](#base-tools)
|
- [Base Tools](#base-tools)
|
||||||
- [ZSH](#zsh)
|
- [ZSH](#zsh)
|
||||||
|
- [Aliases](#aliases)
|
||||||
|
- [Rollback Pacman Update](#rollback-pacman-update)
|
||||||
- [Podman](#podman)
|
- [Podman](#podman)
|
||||||
- [Docker](#docker)
|
- [Docker](#docker)
|
||||||
- [QEMU/KVM](#qemukvm)
|
- [QEMU/KVM](#qemukvm)
|
||||||
@@ -28,11 +30,13 @@
|
|||||||
- [Cura](#cura)
|
- [Cura](#cura)
|
||||||
- [AWS CLI](#aws-cli)
|
- [AWS CLI](#aws-cli)
|
||||||
- [NSlookup](#nslookup)
|
- [NSlookup](#nslookup)
|
||||||
|
- [rpi-imager](#rpi-imager)
|
||||||
|
- [qFlipper](#qflipper)
|
||||||
|
|
||||||
## Base Tools
|
## Base Tools
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pacman -S rsync which git iperf3 pwgen
|
pacman -S rsync which git iperf3 pwgen dosfstools exfatprogs
|
||||||
```
|
```
|
||||||
|
|
||||||
## ZSH
|
## ZSH
|
||||||
@@ -43,6 +47,32 @@ chsh -s $(which zsh)
|
|||||||
echo "autoload -U compinit; compinit" > ~/.zshrc
|
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
|
## Podman
|
||||||
|
|
||||||
Install with the following
|
Install with the following
|
||||||
@@ -390,3 +420,30 @@ complete -C '/usr/local/bin/aws_completer' aws
|
|||||||
```bash
|
```bash
|
||||||
pacman -Syu bind
|
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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user