rearranged the repository structure

This commit is contained in:
piccihud
2023-05-17 15:24:22 +02:00
parent c203b8305d
commit a38bd885c5
220 changed files with 20 additions and 1231 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@@ -0,0 +1,146 @@
configuration {
modi: "drun,window,run,ssh";
width: 900;
lines: 15;
columns: 1;
font: "Open Sans 13";
bw: 1;
/* location: 0;*/
/* padding: 5;*/
/* yoffset: 0;*/
/* xoffset: 0;*/
/* fixed-num-lines: true;*/
show-icons: true;
terminal: "konsole";
/* ssh-client: "ssh";*/
/* ssh-command: "{terminal} -e {ssh-client} {host}";*/
run-command: "{cmd}";
/* run-list-command: "";*/
run-shell-command: "{terminal} -e {cmd}";
/* window-command: "xkill -id {window}";*/
/* window-match-fields: "all";*/
/* drun-icon-theme: ;*/
drun-match-fields: "name,generic,exec,categories";
/* drun-show-actions: true; */
drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";
/* disable-history: false;*/
/* ignored-prefixes: "";*/
/* sort: false;*/
/* sorting-method: ;*/
case-sensitive: false;
/* cycle: true;*/
sidebar-mode: true;
/* eh: 1;*/
/* auto-select: false;*/
/* parse-hosts: false;*/
/* parse-known-hosts: true;*/
combi-modi: "drun,run,window";
matching: "fuzzy";
/* tokenize: true;*/
/* m: "-5";*/
/* line-margin: 2;*/
/* line-padding: 1;*/
/* filter: ;*/
/* separator-style: "dash";*/
/* hide-scrollbar: false;*/
/* fullscreen: false;*/
/* fake-transparency: false;*/
/* dpi: -1;*/
/* threads: 0;*/
/* scrollbar-width: 8;*/
/* scroll-method: 0;*/
/* fake-background: "screenshot";*/
/* window-format: "{w} {c} {t}";*/
/* click-to-exit: true;*/
/* show-match: true;*/
/* theme: ;*/
/* color-normal: ;*/
/* color-urgent: ;*/
/* color-active: ;*/
/* color-window: ;*/
/* max-history-size: 25;*/
combi-hide-mode-prefix: true;
/* matching-negate-char: '-' /* unsupported */;*/
/* cache-dir: ;*/
/* pid: "/run/user/19201007/rofi.pid";*/
display-window: true;
/* display-windowcd: ;*/
display-run: true;
display-ssh: true;
display-drun: true;
display-combi: true;
/* display-keys: ;*/
/* kb-primary-paste: "Control+V,Shift+Insert";*/
/* kb-secondary-paste: "Control+v,Insert";*/
/* kb-clear-line: "Control+w";*/
/* kb-move-front: "Control+a";*/
/* kb-move-end: "Control+e";*/
/* kb-move-word-back: "Alt+b,Control+Left";*/
/* kb-move-word-forward: "Alt+f,Control+Right";*/
/* kb-move-char-back: "Left,Control+b";*/
/* kb-move-char-forward: "Right,Control+f";*/
/* kb-remove-word-back: "Control+Alt+h,Control+BackSpace";*/
/* kb-remove-word-forward: "Control+Alt+d";*/
/* kb-remove-char-forward: "Delete,Control+d";*/
/* kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h";*/
/* kb-remove-to-eol: "Control+k";*/
/* kb-remove-to-sol: "Control+u";*/
/* kb-accept-entry: "Control+j,Control+m,Return,KP_Enter";*/
/* kb-accept-custom: "Control+Return";*/
/* kb-accept-alt: "Shift+Return";*/
/* kb-delete-entry: "Shift+Delete";*/
/* kb-mode-next: "Shift+Right,Control+Tab";*/
/* kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";*/
/* kb-row-left: "Control+Page_Up";*/
/* kb-row-right: "Control+Page_Down";*/
/* kb-row-up: "Up,Control+p,ISO_Left_Tab";*/
/* kb-row-down: "Down,Control+n";*/
/* kb-row-tab: "Tab";*/
/* kb-page-prev: "Page_Up";*/
/* kb-page-next: "Page_Down";*/
/* kb-row-first: "Home,KP_Home";*/
/* kb-row-last: "End,KP_End";*/
/* kb-row-select: "Control+space";*/
/* kb-screenshot: "Alt+S";*/
/* kb-ellipsize: "Alt+period";*/
/* kb-toggle-case-sensitivity: "grave,dead_grave";*/
/* kb-toggle-sort: "Alt+grave";*/
/* kb-cancel: "Escape,Control+g,Control+bracketleft";*/
/* kb-custom-1: "Alt+1";*/
/* kb-custom-2: "Alt+2";*/
/* kb-custom-3: "Alt+3";*/
/* kb-custom-4: "Alt+4";*/
/* kb-custom-5: "Alt+5";*/
/* kb-custom-6: "Alt+6";*/
/* kb-custom-7: "Alt+7";*/
/* kb-custom-8: "Alt+8";*/
/* kb-custom-9: "Alt+9";*/
/* kb-custom-10: "Alt+0";*/
/* kb-custom-11: "Alt+exclam";*/
/* kb-custom-12: "Alt+at";*/
/* kb-custom-13: "Alt+numbersign";*/
/* kb-custom-14: "Alt+dollar";*/
/* kb-custom-15: "Alt+percent";*/
/* kb-custom-16: "Alt+dead_circumflex";*/
/* kb-custom-17: "Alt+ampersand";*/
/* kb-custom-18: "Alt+asterisk";*/
/* kb-custom-19: "Alt+parenleft";*/
kb-select-1: "Super+1";
kb-select-2: "Super+2";
kb-select-3: "Super+3";
kb-select-4: "Super+4";
kb-select-5: "Super+5";
kb-select-6: "Super+6";
kb-select-7: "Super+7";
kb-select-8: "Super+8";
kb-select-9: "Super+9";
kb-select-10: "Super+0";
/* ml-row-left: "ScrollLeft";*/
/* ml-row-right: "ScrollRight";*/
/* ml-row-up: "ScrollUp";*/
/* ml-row-down: "ScrollDown";*/
/* me-select-entry: "MousePrimary";*/
/* me-accept-entry: "MouseDPrimary";*/
/* me-accept-custom: "Control+MouseDPrimary";*/
}
@import "/home/piccihud/.local/share/rofi/themes/nord-oneline.rasi"

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

185
linux/debian/debian.md Normal file
View File

@@ -0,0 +1,185 @@
# Debian KDE
Come prima cosa, occorre scaricare la .iso della distro in questione:
[https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/11.6.0-live+nonfree/amd64/iso-hybrid/](https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/11.6.0-live+nonfree/amd64/iso-hybrid/)
Nell'esempio, `Debian 11 KDE`.
Al termine del download, creare la chiavetta con la live, al fine di poter intraprendere l'installazione.
## Balena Etcher
Come prima cosa, importare i repository:
```bash
curl -1sLf 'https://dl.cloudsmith.io/public/balena/etcher/setup.deb.sh' | sudo -E bash
```
Quindi procedere con l'installazione:
```bash
sudo apt update ; sudo apt install balena-etcher-electron -y
```
Adesso è possibile avviare il programma, seleziore l'.iso scaricata precedentemente, il supporto corretto ed avviare la procedura.
## Installazione di Debian
Avviare la live e da qui procedere con l'installazione guidata, cliccando sull'icona. Rispetto al 'graphic installer' del menù, è decisamente più semplice.
## Modificare i repository
Al fine di avere una distribuzione con pacchetti più aggiornati, occorre modificare il file `/etc/apt/source.list`.
[https://guide.debianizzati.org/index.php/Repository_ufficiali](https://guide.debianizzati.org/index.php/Repository_ufficiali)
Se si vuole restare sempre con la versione testing di Debian, a prescindere dai rilasci di Debian, scegliere questa configurazione:
```bash
# Debian testing
deb http://deb.debian.org/debian/ testing main
deb-src http://deb.debian.org/debian/ testing main
# Aggiornamenti di sicurezza
deb http://security.debian.org/debian-security testing-security main
deb-src http://security.debian.org/debian-security testing-security main
# Gli aggiornamenti raccomandati per testing (testing-updates) sono disabilitati
```
Quindi procedere con l'aggiornamento dei pacchetti:
```bash
sudo apt update ; sudo apt -y upgrade ; sudo apt autoremove -y ; sudo apt autoclean -y ; pkcon refresh ; pkcon update -y
```
## Bismuth
```bash
echo "deb http://deb.volian.org/volian/ scar main" | sudo tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list > /dev/null
wget -qO - https://deb.volian.org/volian/scar.key | sudo tee /etc/apt/trusted.gpg.d/volian-archive-scar-unstable.gpg > /dev/null
sudo apt update && sudo apt install kwin-bismuth
```
Tramite `Bismuth`, uno script per KDE, è possibile avere semplicemente un tiling window manager.
[https://github.com/Bismuth-Forge/bismuth](https://github.com/Bismuth-Forge/bismuth)
![bismuth](./asset/debian/debian/bismuth.png 'Bismuth')
## Papirus Icon
[https://github.com/PapirusDevelopmentTeam/papirus-icon-theme](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme)
Il miglior icon pack per Gnu/Linux!
```bash
sudo apt update ; sudo apt install papirus-icon-theme -y
```
![papirus](./asset/debian/papirus.png 'Papirus icon pack')
### Papirus Theme for LibreOffice
[https://sourcedigit.com/23703-install-papirus-theme-for-libreoffice-papirus-libreoffice-theme/](https://sourcedigit.com/23703-install-papirus-theme-for-libreoffice-papirus-libreoffice-theme/)
```bash
wget -qO- https://raw.githubusercontent.com/PapirusDevelopmentTeam/papirus-libreoffice-theme/master/install-papirus-root.sh | sh
```
In questo modo si installa il tema per LibreOffice, indipendentemente dalla distro.
![Papirus Theme](./asset/debian/libreoffice1.png 'Opzioni')
![Papirus Theme](./asset/debian/libreoffice2.png 'Vista')
## Firefox
Per installare la versione normale, non quella ESR (Extended Release Support), di Firefox su Debian Testing, seguire questa guida:
[https://wiki.debian.org/it/Firefox](https://wiki.debian.org/it/Firefox)
Basta scaricare il file .deb e procedere con l'installazione:
[https://packages.debian.org/sid/amd64/firefox/download](https://packages.debian.org/sid/amd64/firefox/download)
```txt
davide@piccihud:~/Scaricati$ ls -1lh
totale 88M
-rw-r--r-- 1 davide davide 57M 24 set 14.11 firefox_105.0-1_amd64.deb
sudo apt install ./firefox_105.0-1_amd64.deb
sudo apt purge -y firefox-esr
sudo rm firefox_105.0-1_amd64.deb
```
> NOTA: in questo modo l'applicazione si aggiornerà solo manualmente
![Firefox](./asset/debian/firefox.jpeg 'Firefox')
## Rofi
Installare Rofi e poi procedere con le sue configurazioni: ![Rofi](https://gitea.it/PicciHud/Appunti/wiki/Rofi)
```bash
sudo apt update && sudo apt install -y rofi
```
## .NET
[https://learn.microsoft.com/it-it/dotnet/core/install/linux-debian](https://learn.microsoft.com/it-it/dotnet/core/install/linux-debian)
## Brave Browser
[https://brave.com/linux/#nightly-channel-installation](https://brave.com/linux/#nightly-channel-installation)
## Newsboat : RSS/Atom feedreader
Si tratta di un lettore RSS testuale. Si installa direttamente dai repo ufficiali di Debian:
```bash
sudo apt update ; sudo apt install newsboat
```
Per le varie configurazioni, seguire la documentazione ufficiale:
[https://newsboat.org/releases/2.29/docs/newsboat.html](https://newsboat.org/releases/2.29/docs/newsboat.html)
Per aggiungere un feed, basta inserirle URL in questo file:
```bash
~/.newsboat/urls
```
Oppure è possibile importare un file OPML con il seguente comando:
```bash
newsboat -i file.opml
```
I comandi base:
- `Shift+R`: download degli articoli dai feed inseriti;
- `/`: ricerca all'interno di tutti i files;
- `A`: marca il feed come letto;
- `Q`: chiude Newsboat;
- `O`: apre l'articolo nel browser;
- `Q`: permette di ritornare nel terminale.
### Fluent Reader
Una valida alternativa:
[https://hyliu.me/fluent-reader/](https://hyliu.me/fluent-reader/)
## Collegamenti
- [https://wiki.debian.org/it/SourcesList](https://wiki.debian.org/it/SourcesList)
- [https://www.debian.org/devel/testing](https://www.debian.org/devel/testing)
- [https://it.linux-console.net/?p=348#gsc.tab=0](https://it.linux-console.net/?p=348#gsc.tab=0)

View File

@@ -0,0 +1,252 @@
# Debian minimale
La iso può essere scaricata da qui: [https://cdimage.debian.org/cdimage/unofficial/non-free/images-including-firmware/current/amd64/iso-cd/](https://cdimage.debian.org/cdimage/unofficial/non-free/images-including-firmware/current/amd64/iso-cd/)
Oppure esiste anche la mini.iso, dal peso di circa 50 MB: [https://deb.debian.org/debian/dists/bullseye/main/installer-amd64/current/images/netboot/](https://deb.debian.org/debian/dists/bullseye/main/installer-amd64/current/images/netboot/)
Selezionare `Advance options ...`
![debian](./asset/minidebian/debian1.png)
quindi `Expert install`
![debian](./asset/minidebian/debian2.png)
Impostare la lingua desiderata. Qui sarà scelta la lingua *italiana*. Lo stesso vale per il layout della tastiera.
Il punto successivo, *Access software for a blind person using a braille display* può essere eluso
![debian](./asset/minidebian/debian3.png)
Rilevare e montare i supporti di installazione
![debian](./asset/minidebian/debian4.png)
Caricare i seguenti moduli aggiuntivi, che tuttavia, come specificato nella descrizione, non sono necessari
![debian](./asset/minidebian/debian5.png)
Configurare la rete automaticamente, tramite il DHCP
![debian](./asset/minidebian/debian6.png)
![debian](./asset/minidebian/debian7.png)
Stabilire il nome dell'host
![debian](./asset/minidebian/debian8.png)
Abilitare le `shadow password`
![debian](./asset/minidebian/debian9.png)
Non permettere l'accesso a root
![debian](./asset/minidebian/debian10.png)
Stabilire il nome dell'utente e assegnargli una password
![debian](./asset/minidebian/debian11.png)
### Partizionamento manuale
![debian](./asset/minidebian/debian12.png)
Selezionare il disco corretto
![debian](./asset/minidebian/debian13.png)
Creare una nuova tabella delle partizioni di tipo `GPT`
![debian](./asset/minidebian/debian14.png)
![debian](./asset/minidebian/debian15.png)
Selezionare nuovamente il disco e creare la partizione `/boot/efi`
![debian](./asset/minidebian/debian16.png)
![debian](./asset/minidebian/debian17.png)
100 MB sono sufficienti
![debian](./asset/minidebian/debian18.png)
![debian](./asset/minidebian/debian19.png)
Completare il partizionamento. Importante che sia avviabile
![debian](./asset/minidebian/debian20.png)
Procedere allo stesso modo per la partizione `/boot`, sempre di 100 MB. Usare come file-system `ext2`
![debian](./asset/minidebian/debian21.png)
Quindi creare la partizione di root `/`. Volendo è possibile creare una partizione `/home` separata.
Come file-system va benissimo sia `ext4` che `btrfs`
![debian](./asset/minidebian/debian22.png)
#### Cifrare la partizione root
![debian](./asset/minidebian/debian23.png)
Selezionare la partizione `/`
![debian](./asset/minidebian/debian24.png)
![debian](./asset/minidebian/debian25.png)
Dopo aver completato la cifratura, selezionare il volume e assegnargli il punto di mount corretto e pure il tipo di file-system
![debian](./asset/minidebian/debian26.png)
![debian](./asset/minidebian/debian27.png)
Saltare la creazione della partizione di swap
![debian](./asset/minidebian/debian28.png)
Proseguire con l'installazione del sistema di base
![debian](./asset/minidebian/debian29.png)
![debian](./asset/minidebian/debian30.png)
Per evitare problemi di compatibilità, installare tutti di driver disponibili
![debian](./asset/minidebian/debian31.png)
![debian](./asset/minidebian/debian32.png)
### Partizionamento manuale con LVM
Qualora si desiderasse utilizzare LVM, dopo aver creato una nuova tabella delle partizioni GPT
![debian](./asset/minidebian/debian45.png)
Selezionare partizionamento manuale
![debian](./asset/minidebian/debian46.png)
![debian](./asset/minidebian/debian47.png)
Dopo aver creato la partizione `boot/efi` e la partizione di `/boot` di almeno 150 MB,
procedere con la creazione del LVM. Per maggiori informazioni leggere qui: [LVM](https://it.wikipedia.org/wiki/Gestore_logico_dei_volumi)
![debian](./asset/minidebian/debian48.png)
Creare il gruppo di volumi (nell'esempio composto da un solo disco) con nome a piacere
![debian](./asset/minidebian/debian49.png)
![debian](./asset/minidebian/debian50.png)
Creare quindi il *volume logico*, assegnando tutto la spazio a disposizione
![debian](./asset/minidebian/debian51.png)
#### Cifrare partizione di root-LVM
![debian](./asset/minidebian/debian52.png)
![debian](./asset/minidebian/debian53.png)
![debian](./asset/minidebian/debian54.png)
![debian](./asset/minidebian/debian55.png)
![debian](./asset/minidebian/debian56.png)
Questa la situazione finale. Se si volesse, è sempre possibile creare una partizione `/home` separata
![debian](./asset/minidebian/debian57.png)
### Configurare il gestore pachetti
![debian](./asset/minidebian/debian33.png)
![debian](./asset/minidebian/debian34.png)
Utilizzare il *software non libero* a scelta, in base anche al proprio hardware
![debian](./asset/minidebian/debian35.png)
Abilitare anche i software *backported*
![debian](./asset/minidebian/debian36.png)
Installare automaticamente gli aggiornamenti di sicurezza
![debian](./asset/minidebian/debian37.png)
Per un installazione minimale, selezionare solo `Utilità di sistema standard`. Il DE verrà installato successivamente
![debian](./asset/minidebian/debian38.png)
### Installazione di GRUB
![debian](./asset/minidebian/debian39.png)
![debian](./asset/minidebian/debian40.png)
Terminare quindi l'installazione
![debian](./asset/minidebian/debian41.png)
#### Configurazioni di GRUB
Dopo aver avviato il pc, modificare il file `/etc/default/grub` in questo modo:
```bash
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX=""
```
![debian](./asset/minidebian/debian42.png)
Dare quindi il comando `sudo update-grub` e riavviare la macchina.
In questo caso GRUB non verrà mostrato all'avvio e ci si troverà davanti immediatamente la schermata per de-crittografare la partizione `/`
![debian](./asset/minidebian/debian43.png)
Questa la situazione finale dei dischi
![debian](./asset/minidebian/debian44.png)
### Debian Testing
Per Debian testing, modificare il file `/etc/apt/sources.list` nel seguente modo:
```bash
# Debian testing
deb http://deb.debian.org/debian/ testing main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ testing main contrib non-free non-free-firmware
# Aggiornamenti di sicurezza
deb http://security.debian.org/debian-security testing-security main contrib non-free non-free-firmware
deb-src http://security.debian.org/debian-security testing-security main contrib non-free non-free-firmware
# Gli aggiornamenti raccomandati per testing (testing-updates) sono disabilitati
```
## Collegamenti
- [https://ubuntuhandbook.org/index.php/2020/06/hide-grub-boot-menu-ubuntu-20-04-lts/](https://ubuntuhandbook.org/index.php/2020/06/hide-grub-boot-menu-ubuntu-20-04-lts/)
- [https://unix.stackexchange.com/questions/577379/how-can-i-install-debian-with-full-disk-encryption-and-a-custom-sized-swapfile](https://unix.stackexchange.com/questions/577379/how-can-i-install-debian-with-full-disk-encryption-and-a-custom-sized-swapfile)
- [https://it.linux-console.net/?p=2525](https://it.linux-console.net/?p=2525)
- [https://debian-handbook.info/browse/it-IT/stable/sect.installation-steps.html](https://debian-handbook.info/browse/it-IT/stable/sect.installation-steps.html)
- [https://www.blakehartshorn.com/installing-debian-on-existing-encrypted-lvm/](https://www.blakehartshorn.com/installing-debian-on-existing-encrypted-lvm/)
- [https://www.paritybit.ca/blog/debian-with-btrfs](https://www.paritybit.ca/blog/debian-with-btrfs)
- [https://guide.debianizzati.org/index.php/Installare_Debian:_configurazione_LVM](https://guide.debianizzati.org/index.php/Installare_Debian:_configurazione_LVM)

138
linux/debian/kde.md Normal file
View File

@@ -0,0 +1,138 @@
## Personalizzare KDE
Ecco alcuni temi molto interessanti compatibili in toto con KDE Plasma:
- [https://github.com/catppuccin/catppuccin](https://github.com/catppuccin/catppuccin)
- [https://draculatheme.com](https://draculatheme.com)
1. Clonare questo repository:
```bash
git clone https://github.com/catppuccin/KDE && cd KDE/kde-store-archives/global-theme
```
2. Installare il tema con questo comando:
```bash
kpackagetool5 -i catppuccin.tar.gz
```
![KDE](./asset/kde/kde.png 'KDE')
Un tema molto bello per le icone della barra di stato è **Materia Theme**, installabile con questo comando:
```bash
wget -qO- https://raw.githubusercontent.com/PapirusDevelopmentTeam/materia-kde/master/install.sh | sh
```
Qui maggiori informazioni:
[https://github.com/PapirusDevelopmentTeam/materia-kde](https://github.com/PapirusDevelopmentTeam/materia-kde)
![Status](./asset/kde/statusbar.png 'Barra di stato')
![Material](./asset/kde/material.png 'Material Theme')
Nelle impostazioni di KDE, impostare `#1f2430` come colore di sfondo delle finestre:
![1f2430](./asset/kde/1f2430.png '1f2430')
![Material](./asset/kde/material2.png 'Material Theme')
### Konsole
Per personalizzare la shell e il prompt dei comandi, si può utilizzare **Starship Shell**:
[https://github.com/starship/starship/blob/master/docs/it-IT/guide/README.md](https://github.com/starship/starship/blob/master/docs/it-IT/guide/README.md)
Questo è il link per la personalizzazione dello schema dei colori:
[https://github.com/catppuccin/konsole](https://github.com/catppuccin/konsole)
## Vim
[https://github.com/catppuccin/vim](https://github.com/catppuccin/vim)
Ecco delle impostazioni base per Vim:
```bash
davide@piccihud:~$ cat .vimrc
set number
colorscheme catppuccin_mocha
set spell spelllang=it
syntax enable
set termguicolors
```
Il tema viene installato in questo modo:
```bash
cd ~
git clone https://github.com/catppuccin/vim.git
mv colors/ .vim/
```
Inserire la seguente riga nel file `.vimrc`:
```vim
colorscheme catppuccin_mocha
```
## Firefox
Qui si trovano moltissimi temi CSS per Firefox:
[https://firefoxcss-store.github.io/](https://firefoxcss-store.github.io/)
Uno dei migliori:
[https://github.com/crambaud/waterfall](https://github.com/crambaud/waterfall)
![Firefox](./asset/kde/firefox.png 'Waterfall Theme')
### Dark Reader
[https://github.com/catppuccin/dark-reader](https://github.com/catppuccin/dark-reader)
> Mocha
```css
Background #1e1e2e
Text #cdd6f4
Selection #585b70
```
![Mocha](./asset/kde/reader.png 'Tema')
![Menù](./asset/kde/reader-menu.png 'Menù')
## Cambiare Display manager
[https://github.com/fairyglade/ly](https://github.com/fairyglade/ly)
Per prima cosa, bisogna installare le dipendenze:
```bash
sudo -i
apt install build-essential libpam0g-dev libxcb-xkb-dev
```
Quindi clonare il repository Git e seguire le istruzioni per l'installazione:
```bash
git clone --recurse-submodules https://github.com/fairyglade/ly
cd ly
make
make install installsystemd
systemctl enable ly.service
```
Maggiori informazioni alla pagina sopra elencata. Di seguito il risultato ottenuto:
![ly](./asset/kde/ly.png 'Display Manager')
Il file di configurazione si trova in `/etc/ly/config.ini`.

218
linux/debian/rofi.md Normal file
View File

@@ -0,0 +1,218 @@
# Rofi
Rofi non è solo un lanciatore di applicazioni, ma permette di fare molte più cose, tra cui:
- aprire file;
- eseguire comandi bash;
- navigare tra le finestre aperte;
- ...
## Modalità
Rofi ha diverse modalità integrate che implementano casi d'uso comuni e possono essere estese da vari script o plugin.
Di seguito è riportato un elenco delle diverse modalità:
- **run**: permette di lanciare eseguibili nel terminale, a partire dal loro `$PATH`;
- **drun**: avvia le applicazioni installate nel sistema;
- **window**: permette di passare tra le varie finestre aperte;
- **ssh**: avvia il collegamento a un host remoto via ssh;
- **combi**: combina più modalità.
## Installazione su Debian e derivate
```bash
sudo apt update && sudo apt install -y rofi
```
## Configurazione
Per generare il file di configurazione predefinito:
```bash
mkdir -p ~/.config/rofi
rofi -dump-config > ~/.config/rofi/config.rasi
```
Questo comando crea un file chiamato `config.rasi` nel seguente percorso: `~/.config/rofi/`. È possibile modificare questo file per personalizzare rofi, anche graficamente con dei temi personalizzati.
Eccone un esempio: [config.rasi](./asset/rofi//config.rasi)
### Abilitare le varie modalità
È sufficiente specificare un elenco ordinato e separato da virgole delle modalità da abilitare. Ecco un esempio, con abilitate solo le modalità `run` e `ssh`:
```bash
rofi -modes "run,ssh" -show run
```
Per ottenere una visione combinata di due o più modalità:
```bash
rofi -show combi -combi-modes "window,run,ssh" -modes combi
```
## Temi personalizzati
Qui si trovano moltissimi temi:
[https://github.com/adi1090x/rofi](https://github.com/adi1090x/rofi)
Dopo aver installato `rofi`, clonare il precedente repository:
```bash
git clone --depth=1 https://github.com/adi1090x/rofi.git
cd rofi
chmod 755 setup.sh
./setup.sh
```
Quindi, per scegliere lo stile, modificare il file `~/.config/rofi/launchers/type-X/launcher.sh`, dove `X` è un numero da 1 a 7, inserendo lo stile prescelto.
Nell'esempio:
```bash
theme='style-10'
```
Ecco il file in questione:
```
davide@piccihud:~$ cat ~/.config/rofi/launchers/type-4/launcher.sh
#!/usr/bin/env bash
## Author : Aditya Shakya (adi1090x)
## Github : @adi1090x
#
## Rofi : Launcher (Modi Drun, Run, File Browser, Window)
#
## Available Styles
#
## style-1 style-2 style-3 style-4 style-5
## style-6 style-7 style-8 style-9 style-10
dir="$HOME/.config/rofi/launchers/type-4"
theme='style-10'
## Run
rofi \
-show drun \
-theme ${dir}/${theme}.rasi
```
Come prima, per cambiare i colori predefiniti del tema, modificare il seguente file:
```bash
davide@piccihud:~$ cat ~/.config/rofi/launchers/type-4/shared/colors.rasi
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
*
* Available Colors Schemes
*
* adapta catppuccin everforest navy paper
* arc cyberpunk gruvbox nord solarized
* black dracula lovelace onedark yousai
*
**/
/* Import color-scheme from `colors` directory */
@import "~/.config/rofi/colors/dracula.rasi" #Inserire il colore prescelto
```
Questo è tutto. Ora basta inserire nel file `config.rasi` la seguente riga, una volta scelto lo stile del tema:
```bash
davide@piccihud:~$ cat .config/rofi/config.rasi
@theme "~/.config/rofi/launchers/type-4/style-10.rasi"
```
![Rofi](./asset/rofi/rofi.png 'Rofi')
### Alcune aggiunte al tema
`~/.config/rofi/launchers/type-4/style-10.rasi`
```bash
10 /*****----- Configuration -----*****/
11 configuration {
12 modi: "drun,window,run"; /*aggiunte alcune modalità, come quella per mostrare le finestre attive o per eseguire comandi da terminale*/
13 show-icons: true; /*le icone sono visibili*/
14 display-drun: " Apps";
15 display-run: "";
16 display-filebrowser: "";
17 display-window: "";
18 /* drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]"; */
19 drun-display-format: "{name}"; /*solo il nome dell'applicazione diventa visibile, senza descrizione, come sopra*/
20 window-format: "{w} · {c} · {t}";
21 }
[..]
53 /*****----- Main Window -----*****/
54 window {
55 /* properties for window widget */
56 transparency: "real";
57 location: south; /*rofi è posizionato in basso*/
58 anchor: south;
59 fullscreen: false;
60 width: 100%;
61 x-offset: 0px;
62 y-offset: 0px;
```
Quindi modificare il file `.config/rodi/config.rasi`:
```bash
1 configuration {
3 terminal: "konsole";
4 run-command: "{cmd}";
5 run-list-command: "";
6 run-shell-command: "{terminal} -e {cmd}"; /*Questa è la sintassi del comando*/
7 kb-select-1: "Super+1";
8 kb-select-2: "Super+2";
9 kb-select-3: "Super+3";
10 kb-select-4: "Super+4";
11 kb-select-5: "Super+5";
12 kb-select-6: "Super+6";
13 kb-select-7: "Super+7";
14 kb-select-8: "Super+8";
15 kb-select-9: "Super+9";
16 kb-select-10: "Super+0";
17 }
18 @theme "~/.config/rofi/launchers/type-4/style-10.rasi"
```
In questo modo, è possibile lanciare comandi bash direttamente da rofi, tramite la seguente sintassi:
```bash
terminal_name command
konsole ncdu
```
oppure passare tra le finestre attive, infine selezionare i risultati con delle scorciatoie (`Alt+X`), dove `X` indica un numero maggiore o uguale a 1, corrispondente al risultato dell'applicazione che si desidera avviare.
Il risultato finale:
![Rofi](./asset/rofi/final.png 'Rofi')
### Gestire le connessioni di rete
Rofi può essere esteso tramite plugin. Eccone uno per poter controllare la connessione ad intenet:
```bash
git clone https://github.com/ericmurphyxyz/rofi-wifi-menu.git
cd rofi-wifi-menu
mv rofi-wifi-menu.sh ~/bin
```
È possibile richiamare lo script dopo aver assegnato una scorciatoria da tastiera: `$HOME/bin/rofi-wifi-menu.sh`
![WiFi](./asset/rofi/wifi.png)
## Collegamenti
- [https://github.com/davatorium/rofi](https://github.com/davatorium/rofi)
- [https://github.com/adi1090x/rofi](https://github.com/adi1090x/rofi)
- [https://github.com/adi1090x/rofi/blob/master/files/config.rasi](https://github.com/adi1090x/rofi/blob/master/files/config.rasi)