Post

Manjaro (Ordinateur Bureau PC2)

Manjaro XFCE sur ordinateur PC2

Manjaro (Ordinateur Bureau PC2)

Ordinateur PC2

Matériel

Carte mère PG41T-M LX

Carte mère PG41T-M LX

CPU

  • Intel® Socket 775 Core™2 Quad/Core™2 Extreme/Core™2 Duo/Pentium® dual-core/Celeron® dual-core /Celeron® Processors
  • Compatible with Intel® 05B/05A/06 processors
  • Support Intel® 45nm Multi-Core CPU
  • *Refer to www.asus.com for Intel CPU support list

Chipset

  • Intel® G41 /ICH7
  • Front Side Bus
  • 1333/1066/800 MHz

Memory

  • 2 x240-pin DIMM, Max. 8 GB, DDR3 1333(O.C.)/1066/800 Non-ECC,Un-buffered Memory
  • Dual Channel memory architecture
  • ** Refer to www.asus.com or user manual for Memory QVL (Qualify Vendor List)
  • *** When installing total memory of 4GB capacity or more, Windows® 32-bit operation system may only recognize less than 3GB. Hence, a total installed memory of less than 3GB is recommended.

Expansion Slots

  • 1 x PCIe x16
  • 1 x PCIe x1
  • 2 x PCI

VGA

  • Integrated Intel GMA X4500 graphics
  • Maximum shared memory of 1G
  • Supports RGB with max. resolution 2048 x 1536 (@75Hz)
  • Supports Microsoft® DirectX® 10

Storage

  • Southbridge
  • 1 xUltraDMA 100/66/33
  • 4 xSATA 3 Gb/s ports

LAN

  • PCIe Gb LAN

Audio

  • ALC887 8-Channel AUDIO CODEC
  • *Choose the chassis with HD audio module in front panel to support 8-Channel audio output
  • Supports Jack-detect and Multi-Streaming teconologies
  • Supports S/PDIF out interface

USB

  • 8 USB 2.0/1.1 ports (4 ports at mid-board, 4 ports at back panel)

ASUS Unique Features

  • ASUS MyLogo 2
  • ASUS EZ Flash 2
  • ASUS CrashFree BIOS 3
  • ASUS Q-Fan
  • ASUS Anti-Surge
  • ASUS EPU-L
  • ASUS Express Gate
  • Turbo Key
  • AI NET2

Overclocking Features

  • SFS (Stepless Frequency Selection)
    • FSB tuning from 200MHz to 800MHz at 1MHz increment

Overclocking Protection

    • ASUS C.P.R.(CPU Parameter Recall)

Back Panel I/O Ports

  • 1 x D-Sub
  • 1 x Parallel port
  • 1 x PS/2 Keyboard
  • 1 x PS/2 Mouse
  • 1 x LAN(RJ45) port
  • 4 x USB 2.0/1.1
  • 1 x COM port
  • 3 x Audio jacks

Internal I/O Connectors

  • 2 x USB connectors support additional 4 USB 2.0 ports
  • 1 x IDE connector
  • 4 x SATA connectors
  • 1 x CPU Fan connector
  • 1 x Chassis Fan connector
  • 1 x High Definition front panel audio connector
  • 1 x S/PDIF Out connector
  • 1 x System Panel
  • 1 x Internal Speaker connector
  • 24-pin EATX power connector
  • 4-pin ATX 12V Power connector

BIOS

  • 8 Mb Flash ROM , AMI BIOS, PnP, DMI2.0, WfM2.0, ACPI2.0, SMBIOS 2.5

Accessories

  • User’s manual
  • 1 x UltraDMA 133/100/66 cable
  • 2 x SATA cable(s)
  • I/O Shield
  • Support Disc
  • Drivers
  • ASUS PC Probe II
  • Anti-virus software (OEM version)
  • ASUS Update

Form Factor

  • uATX Form Factor
  • 9.6 inch x 7.9 inch ( 24.4 cm x 20.1 cm )

Manjaro

Installation sur PC2 à partir d’une clé USB
Disque SSD 120Go
Partitionnement gdisk
Root / 20Go
Home /home 35Go
Swap 4Go Machine : mnj-pc2
Utilisateur : mnj

Première connexion , passage en mode terminal
Modifier en mode su le fichier /etc/sudoers pour donner accès à mnj, ajouter ce qui suit :
mnj ALL=(ALL) NOPASSWD: ALL

yaourt

on veut avoir accès à l’outil yaourt, il faut modifier /etc/pacman.conf

1
sudo nano /etc/pacman.conf

et ajouter ceci à la fin du fichier

1
2
3
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch

Installer yaourt qui dépend de l’ajout du dépôt archlinuxfr

1
2
sudo pacman -Syy
pacman -S yaourt

Une fois yaourt installé, on peut enlever sans aucun risque les lignes en question.

Mise à jour manjaro
sudo pacman -Syu

Erreurs mise à jour

En cas d’erreur de mise à jour :

1
2
3
erreur: openssl-1,0: signature de "Pierre Schmitz <pierre@archlinux.de>" est inconnue confiance
:: /var/cache/pacman/pkg/openssl-1.0-1.0.2.l-1-x86_64.pkg.tar.xz de fichier est corrompu (paquet invalide ou corrompu (signature PGP)).
Voulez-vous le supprimer? [Y / N]

La solution

1
2
3
sudo pacman -Scc
sudo pacman-key --refresh-keys
sudo pacman -Syu

Openssh

Installation et lancement

1
sudo pacman -S openssh # installé par défaut avec manjaro

Validation

1
systemctl enable sshd.socket

Lancement SSH

1
systemctl start sshd.socket

On peut se connecter en utilisateur d’un autre poste

Outils et applications

keepassx2 gestion des mots de passe,terminator, filezilla, nmap, minicom, gedit, Retext éditeur markdown

1
yaourt -S gedit retext gedit keepassx2 terminator filezilla nmap minicom

timedatectl ,synchroniser avec un serveur de temps

Editer du fichier de configuration timesyncd.conf :

1
sudo nano /etc/systemd/timesyncd.conf

Définir les serveurs de temps :

1
2
3
[Time]
NTP=
FallbackNTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org

Activer la synchronisation
sudo timedatectl set-ntp true
Après synchronisation
timedatectl

1
2
3
4
5
6
7
      Local time: lun. 2017-10-23 16:59:34 CEST
  Universal time: lun. 2017-10-23 14:59:34 UTC
        RTC time: lun. 2017-10-23 14:59:34
       Time zone: Europe/Paris (CEST, +0200)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no

Stopper la synchronisation :
sudo timedatectl set-ntp false

Dossiers de partage NFS et fstab

1
2
sudo mkdir /mnt/{serie,video,usb,virtuel}
sudo chown $USER.users -R /mnt/{serie,video,usb,virtuel}

Modification /etc/fstab ,ajouter video (nfs)

1
192.168.0.45:/media/video                   /mnt/video         nfs4  noauto,x-systemd.automount        0      0

Manjaro Gestionnaire de paramètres

Paramètres régionaux : Français (France)
Paquets linguistiques : installer tous les paquets
Noyau : pour installer un kernel différent

Mozilla/Firefox

Adobe Flash Player firefox

1
sudo pacman -S flashplugin

Préférences

  • Général :
    • Page d’accueil : https://ipinfo.io
  • Recherche : DuckDuckGo par défaut
  • Vie privée :
    • Décocher Historique, Marques-page et Onglets ouverts
    • Ne jamais conserver l’historique (redémarrage firefox)

Client Owncloud

Installation client owncloud et dépendances

1
sudo pacman -S owncloud-client ## gnome-keyring libgnome-keyring installés/manjaro

lien ~/media –> /mnt
cd ~
ln -s /mnt media
Créer dossier .ssh,.keepassx et scripts
mkdir .ssh .keepassx scripts
Pour les notes
mkdir Documents/yanspm.com

Trousseau de clé avec mot de passe idem connexion utilisateur
Paramètre client owncloud/nextcloud : Lancé au démarrage

Les dossiers synchronisés https://cinay.pw/owncloud .keepassx –> ~/.keepassx
Les dossiers synchronisés https://cinay.pw/nextcloud Home/scripts –> ~/scripts
Les dossiers synchronisés https://yanspm.com/nextcloud Notes –> ~/Documents/yanspm.com

Images (fond écran,connexion et grub)

Les images de fond d’écran /usr/share/backgrounds/xfce

1
2
sudo cp ~/scripts/images/manjaro-linux.png /usr/share/backgrounds     # fond écran sharp  
sudo cp ~/scripts/images/manjaro-linux-black.png /usr/share/backgrounds     # fond écran sharp  

Ecran et logo pour lightdm de la page de connexion

1
2
sudo cp ~/scripts/images/archlinux-lightdm.png /usr/share/backgrounds/
sudo cp ~/scripts/images/yannick* /usr/share/pixmaps/

Personnaliser XFCE

Modification du tableau de bord , clic-droit –> Tableau de bord –> Préférences de tableau de bord
Tableau de bord 1, à positionner en haut de l’écran

Eléments tableau de bord 1

  • Horloge Affichage date et heure, format personnalisé : %e %b %Y %R
  • Copie d’écran , ajouter Captures d’écran

Après validation tableau de bord, clic droit sur icône capture écran puis Propriétés -> Zone à capturer : Sélectionner une zone

image_tag src=”/images/xfce-tableau-bord1.png” width=”300” %}

Menu –> Apparence

  • Style : Xfce-flat
  • Icônes : Vertex-Maia # Numix Circle
  • Polices : Cantarell 10

Menu –> Applications favorites

  • Utilitaires -> Emulateur de terminal : /usr/bin/terminator “%s”

Menu Paramètres –> Bureau

  • Fonds d’écran image /usr/share/backgrounds/
  • Icônes : Tout décocher dans Icônes par défaut

Gestionnaire de fichier Thunar

  • Edition –> Préférence ,ongle Comportement Ouvrir le dossier dans un nouvel onglet

image_tag src=”/images/thunar-prefer1.png” width=”300” %}

Fonction recherche ,installer les logiciels

1
yaourt -S catfish mlocate #installés par défaut/manjaro
  • Edition –> Configurer les actions personnalisées ,ajouter (+)

image_tag src=”/images/thunar-prefer2.png” width=”300” %}image_tag src=”/images/thunar-prefer3.png” width=”300” %}

Menu –> Gestionnaire d’alimentation

image_tag src=”/images/ga1.png” width=”300” %} image_tag src=”/images/ga2.png” width=”300” %}

image_tag src=”/images/ga3.png” width=”300” %}

Menu –> Session et démarrage

image_tag src=”/images/session-demarrage-modifie.png” width=”300” %}

Ecran connexion (lightDM)

Ecran et logo pour lightdm de la page de connexion
Accès aux paramètres lightDM en mode graphique (mot de passe root)
Images /usr/share/backgrounds/archlinux-lightdm.png et /usr/share/pixmaps/yannick53x64.png

  • Menu –> Paramètres –> LightDM GTK+ Paramètres d’Apparence

image_tag src=”/images/lightdm1.png” width=”300” %}

Ecran de boot (grub)

Ecran de la page de démarrage grub

1
sudo nano /etc/default/grub
1
GRUB_BACKGROUND="/usr/share/backgrounds/archlinux-lightdm.png"  

Reconfigurer grub pour la prise en charge de l’image

1
sudo grub-mkconfig -o /boot/grub/grub.cfg

Veille écran

Installer par défaut sur archlinux,pas sur manjaro (xscreensaver)

1
yaourt -S xscreensaver

Création d’un script pour Activer/Désactiver le programme de mise en veille xscreensaver
Prérequis : zenity ,installé par défaut sous Manjaro
Le script ~/scripts/veille.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# veille.sh


# Détecter si xscreensaver est actif
if [ "$(pidof -s xscreensaver)" ]; then
    arret=false
    zenity --question --title "veille" --ok-label="Oui" --cancel-label="Non" --text "Economiseur Ecran ACTIF\n\n DESACTIVER ?"
    if [ $? = 0 ]
    then
            echo "ARRET daemon xscreensaver ..."
            xscreensaver-command -exit
            sleep 3
    fi
else
    arret=true
    zenity --question --title "veille" --ok-label="Oui" --cancel-label="Non" --text "Economiseur Ecran NON ACTIF\n\n ACTIVER ?"
    if [ $? = 0 ]
    then
            echo "DEPART daemon xscreensaver ..."
            xscreensaver -nosplash &
            sleep 3
    fi
fi

Création lanceur XFCE en utilisant Editeur de menus ou manuellement :

1
2
mkdir -p ~/.local/share/applications/  #création dossier **applications** si inexistant
nano ~/.local/share/applications/menulibre-veille-ecran.desktop

Contenu :

1
2
3
4
5
6
7
8
9
10
11
[Desktop Entry]
Version=1.0
Type=Application
Name=Activer/Désactiver veille écran
Icon=/home/mnj/scripts/preferences-desktop-screensaver.png
Exec=sh /home/mnj/scripts/veille.sh
Path=/home/mnj/scripts
NoDisplay=false
Categories=Utility;X-XFCE;X-Xfce-Toplevel;
StartupNotify=false
Terminal=false

Recherche d’historique

Ajoutez la recherche d’historique de la ligne de commande au terminal.
Tapez un début de commande précédent, puis utilisez shift + up (flèche haut) pour rechercher l’historique filtré avec le début de la commande.

1
2
3
# Global, all users
echo '"\e[1;2A": history-search-backward' | sudo tee -a /etc/inputrc
echo '"\e[1;2B": history-search-forward' | sudo tee -a /etc/inputrc

Kodi

kodi
sudo pacman -S kodi
vidéos ~/media/video/

Jeux

Supertux
yaourt -S supertux supertuxkart

OpenVPN ProtonVPN

Installer networkmanager-openvpn openvpn
yaourt -S networkmanager-openvpn # qui va installer openvpn , installés par défaut/manjaro

Utiliser l’outil graphique pour créer une connexion VPN à partir du fichier ch.protonvpn.com.udp1194.ovpn, le nommer Suisse-ProtonVPN
Se connecter pour valider le mot de passe

Lancement automatique de la connexion VPN

Renommer la connexion filaire par défaut Connexion filaire 1 –> Free.fr
Modification du fichier de connexion vpn /etc/NetworkManager/system-connections/Suisse-ProtonVPN ,password-flags passe à 0 et ajout configuration vpn-secrets

1
2
3
4
5
6
[vpn]
 ....
password-flags=0
 
[vpn-secrets]
password=your_protonvpn_password

Créer le script de configuration pour automatiser la connexion VPN
sudo nano /etc/NetworkManager/dispatcher.d/10-openvpn

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
VPN_NAME="Suisse-ProtonVPN"

case "$2" in
  up)
    if [ "$CONNECTION_ID" == "Free.fr" ]; then
      nmcli con up id "$VPN_NAME" 
    fi
  ;;
  down)
      if nmcli con show --active | grep "$VPN_NAME"; then
        nmcli con down id "$VPN_NAME"
      fi
  ;;
esac

Changer les droits
sudo chown root:root /etc/NetworkManager/dispatcher.d/10-openvpn
sudo chmod 755 /etc/NetworkManager/dispatcher.d/10-openvpn

Afin que les scripts s’exécutent, il est nécessaire d’activer le dispatcher
sudo systemctl enable NetworkManager-dispatcher

Redémarrer la machine

SSH connexion avec clé (facultatif)

sur l'ordinateur de bureau Générer une paire de clé curve25519-sha256 (ECDH avec Curve25519 et SHA2) nommé PC2-Key pour une liaison SSH avec le serveur KVM.
ssh-keygen -t ed25519 -o -a 100 -f ~/.ssh/PC2-Key
Envoyer la clé publique sur le serveur KVM
scp ~/.ssh/PC2-Key.pub mnj@192.168.0.30:/home/mnj/

sur PC2 On se connecte
ssh mnj@192.168.0.30
Copier le contenu de la clé publique dans /home/$USER/.ssh/authorized_keys
$ cd ~
Sur PC2 ,créer un dossier .ssh

1
2
3
pwd  #pour vérifier que l'on est sous /home/$USER
mkdir -p .ssh
cat /home/$USER/PC2-Key.pub >> /home/$USER/.ssh/authorized_keys

et donner les droits
chmod 600 /home/$USER/.ssh/authorized_keys
effacer le fichier de la clé
rm /home/$USER/PC2-Key.pub
Modifier la configuration serveur SSH
sudo nano /etc/ssh/sshd_config
Modifier

1
2
3
#Port 22
PermitRootLogin no
PasswordAuthentication no

Relancer openSSH
sudo systemctl restart sshd

Accès depuis le poste distant avec la clé privée
$ ssh -i ~/.ssh/PC2-Key mnj@192.168.0.30

Cet article est sous licence CC BY 4.0 par l'auteur.