Files
mkdocs/docs/Distributions/Mint/Mint.md
Bruno 21 6103008715 07-05-2020
-La section Distributions regroupe Solus, Mint et Debian
-Section Windows
2020-05-07 13:43:00 +02:00

173 lines
3.6 KiB
Markdown

# Linux Mint
#### Configuration matérielle:
```bash
System:
Host: MintBook
Kernel: 4.15.0-50-generic x86_64 bits: 64 compiler: gcc v: 7.3.0
Desktop: Cinnamon 4.0.10 wm: muffin dm: LightDM
Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic
```
```bash
Machine:
Type: Laptop System: Apple product: MacBookPro11,3
```
Quel hardware ?
```bash
# macOS
$ sysctl hw.model
hw.model: MacBookPro13,3
```
```bash
# ubuntu
$ sudo dmidecode -s system-product-name
MacBookPro11,3
```
https://wiki.ubuntu.com/MactelSupportTeam/CommunityHelpPages
https://help.ubuntu.com/community/MacBookPro
#### Firefox (et Thunderbird) en français:
-gestionnaire de paquets Synaptic. Chercher Firefox et installer le paquet de langue Fr
-dans `about:config` mettre `'fr'` à l'option `'general.useragent.locale'`
#### Chromium en français:
```bash
$ sudo apt-get install chromium-browser-l10n
```
#### SSH:
**Créer une clé SSH:**
```bash
$ ssh-keygen -t rsa -b 4096 -C "Clé sur MintBook"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/bruno/.ssh/id_rsa):
Created directory '/home/bruno/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/bruno/.ssh/id_rsa.
Your public key has been saved in /home/bruno/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:DvdgIfk9VTr4jQHW2/ehbu/1tX8iMkRAlcpfEwbud+M Clé sur MintBook
The key's randomart image is:
+---[RSA 4096]----+
| ...=+ . |
| ..o.o+o |
| o..oo.=+ |
| oo+.o+=...|
| . So+.+.=.o|
| = ooo + ..|
| ... . E o|
| o .o. *|
| o..o==|
+----[SHA256]-----+
```
#### Installer Typora:
```bash
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
# or use
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
# add Typora's repository
echo -e "\ndeb https://typora.io/linux ./" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
# install typora
sudo apt-get install typora
```
#### gksu est déprécié:
Depuis ubuntu 18.04, **gksu** est déprécié et n'est plus disponible.
Au lieu de la commande **gksu**:
```bash
$ gksu gedit /etc/nginx/sites-available/mint
```
il faut utiliser la commande **gedit admin://**:
```bash
$ gedit admin:///etc/nginx/sites-available/mint
```
#### Ouvrir gedit (en arrière-plan) depuis le terminal:
```bash
$ nohup gedit .dircolors >/dev/null &
```
```bash
$ gedit .dircolors &
```
#### Convertir une man-page en pdf:
```bash
man ls | gedit -
man ls | zenity --text-info
man -t ls | ps2pdf - ls.pdf
man -Tps ls | ps2pdf - > ls.pdf
# fonctions pur .zshrc:
fman () { until [[ -z $1 ]] ;do man -f "$1" 2>/dev/null && coproc man --html=firefox "$Extra close brace or missing open brace1"; shift; done; }
eman() { man -t "$1" | ps2pdf - "$1".pdf && setsid evince "$1".pdf; }
#Ouvrir. le .pdf:
xdg-open /path/to/file.pdf
evince /path/to/file.pdf
pdfopen, pdfclose - open or close a PDF file viewer
```
#### [cinnamon] Les Préférences ne se chargent pas:
cinnamon-settings doesn't open with pillow >= 6.0.0 (Python)
https://github.com/linuxmint/cinnamon/issues/8495#issuecomment-480221648
#### Impossible d'écrire sur le disque USB
```bash
$ id
uid=501(bruno) gid=20(staff) groups=20(staff),701(com.apple.sharepoint.group.1),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)
$ sudo chown bruno:users /mnt/MyDisk
```