--- /dev/null
+# Install
+
+First, of course, you need to install Flatpak itself.
+
+Then:
+* at least one repository
+* possibly a gui installer
+* an access rights management
+
+## Repository: Flathub
+
+`flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo`
+
+## GUI installers
+
+* plasma-discover (qt, but *not* on flatpak)
+* [Warehouse (gtk)](https://flathub.org/fr/apps/io.github.flattool.Warehouse)
+* [Easy Flatpak gtk?](https://flathub.org/fr/apps/org.dupot.easyflatpak)
+
+## Access rights management
+
+* [Flatseal](https://flathub.org/fr/apps/com.github.tchx84.Flatseal)
+
+
* **fix_victor_vran.sh**: required commands to install deps for **Victor Vran**
* **unlock.sh**: unlock the package installation system *pacman*
+
+/home/deck/.steam/root/config/uioverrides/ : boot movies
#!/bin/sh
if [ "$USER" != root ]; then
- echo Requires root access >&2
+ echo "Requires root access (call passwd if needed first)" >&2
exit 2
fi
+#
+# systemctl stop docker.service
+# systemctl stop docker.socket
+#
+# Docker: /lib/systemd/system/docker.service
+# look for ExecStart=/usr/bin/dockerd -H fd......
+# add a "--data-root /new/path" before the -H
+# copy /var/lib/docker there
+#
+# systemctl daemon-reload
+# systemctl start docker
+#
+# add deck to the docker group
+#
+
steamos-readonly disable
+if [ "$1" = init ]; then
+ # How to disable sigs ?
+ # /etc/pacman.conf
+ # Under the [options] section, add the following line:
+ # SigLevel = Never
+ if ! grep -q "^SigLevel = Never" /etc/pacman.conf; then
+ sed -i "s:^\(SigLevel .*\):#\1\nSigLevel = Never:" /etc/pacman.conf
+ fi
+ pacman-key --init
+ pacman-key --populate archlinux
+ pacman -Sy
+ (
+ echo '#!/bin/sh'
+ echo cat /etc/hostname
+ ) > /usr/local/bin/hostname
+ chmod a+rx /usr/local/bin/hostname
+ ln -s deck /home/user
-if [ "$INIT" = 1 ]; then
- pacman-key --init
- pacman-key --populate archlinux
- pacman -Sy
-fi
+ (
+ echo '#/bin/sh'
+ echo
+ echo 'mkdir -p /tmp/shared'
+ echo chown deck:deck /tmp/shared
+ echo true
+ ) > /etc/rc.local
+ chmod a+rx /etc/rc.local
+ (
+ echo '[Unit]'
+ echo Description=Startup Script
+ echo
+ echo '[Service]'
+ echo ExecStart=/etc/rc.local
+ echo
+ echo '[Install]'
+ echo WantedBy=default.target
+ ) > /lib/systemd/system/startup.service
+ systemctl enable startup.service --now
+fi
pacman -S imagemagick
+pacman -S mc
+pacman -S inotify-tools
pacman -S docker
-pacman -S linux-neptune-61-headers # for VBox
-pacman -S virtualbox virtualbox-host-dkms virtualbox-guest-iso
-
+#pacman -S linux-neptune-61-headers # for VBox
+#pacman -S virtualbox virtualbox-host-dkms virtualbox-guest-iso
steamos-readonly enable
-modprobe vboxdrv
+#modprobe vboxdrv
-echo If it failed, you may want to try again with INIT=1
**Ctrl-X**, **Ctrl-E**: will open the current line in EDITOR.
+## Terminal title
+
+```sh
+echo -ne "\033]0;MY_NEW_TITLE\007"
+```
+
## Arrays
```bash
echo ${arr[@]}
echo ${arr[*]}
echo ...
+ copy=("${arr[@]}")
```
+
+## Cursor
+
+### Hide cursor
+
+tput civis
+
+#### Cursor movement
+
+- Position the Cursor:
+ \033[<L>;<C>H
+ Or
+ \033[<L>;<C>f
+ puts the cursor at line L and column C.
+- Move the cursor up N lines:
+ \033[<N>A
+- Move the cursor down N lines:
+ \033[<N>B
+- Move the cursor forward N columns:
+ \033[<N>C
+- Move the cursor backward N columns:
+ \033[<N>D
+
+- Clear the screen, move to (0,0):
+ \033[2J
+- Erase to end of line:
+ \033[K
+
+- Save cursor position:
+ \033[s
+- Restore cursor position:
+ \033[u
+
+## Escape
+
+escape1() {
+ rul1='s:\\:\\\\:g'
+ rul2="s:':'\\\\'':g"
+ /bin/echo -nE "$1" | sed "$rul1;$rul2;"
+}
+
+escape() {
+ # bashism: last part is to "cancel" empty, single argument
+ #builtin printf ' %q' "$@" | cut -c2- | sed "s:^''$::"
+
+ # pure sh version for alpine and zimit and...
+ if [ "$*" != "" ]; then
+ while [ $# -gt 0 ]; do
+ /bin/echo -nE "'`escape1 "$1"`' "
+ shift
+ done
+ fi | sed 's: $::'
+
+ echo
+}
* Politique:
* [Le droit d'asile (France)](/Politique/Le%20droit%20d'asile%20pour%20les%20nuls)
- * [Qu'est-ce qui cloche dans mon CV ?\r](/Politique/Qu'est-ce%20qui%20cloche%20dans%20mon%20CV)
+ * [Qu'est-ce qui cloche dans mon CV ?](/Politique/Qu'est-ce%20qui%20cloche%20dans%20mon%20CV)
* Quotes:
* [Humans need lies](/Quotes/Humans%20need%20lies)
* History:
* [Force X11](/Tech/SteamDeck/force-x11)
* [Docker](/Tech/SteamDeck/docker)
* [SSH](/Tech/ssh)
+ * python:
+ * [Virtual Environments (venv)](/Tech/python/Virtual%20Environments%20(venv))
* [Web CSS](/Tech/web-css)
* [MP4 Conversion](/Tech/mp4)
* Raspi: