**Small tricks on Fedora** ====== Connect to a tagged "VLAN" ====== ===== Basics ===== The network connection to a tagged vlan is not working very good on Fedora26 (gnome at least). The configuration per GUI as described into the [[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-configure_802_1q_vlan_tagging_using_a_gui#procedure-Adding_a_New_VLAN_Connection|documentation]] can't be done because "VLAN connections" isn't present into the GUI of the NetworkManager of Gnome. \\ \\ Therefore the connection must be configured by hand: \\ * Go to ''/etc/sysconfig/network-scripts/'' and find the file containing the parameters of your "normal" LAN connection, ''ifcfg-enp5s0'' in my case * Create a new file with the name syntax ''ifcfg-interface.vlanID'' (ifcfg-enp5s0.60 in my case) * Enter the parameters into this new file: LAN=yes DEVICE=enp5s0.60 BOOTPROTO=none ONBOOT=yes IPADDR=192.168.XXX.YYY # the IP of your machine into the vlan NETMASK=AAA.BBB.CCC.DDD # the mask of the vlan GATEWAY=192.168.XXX.YYY # of the vlan NETWORK=192.168.XXX.0 # of the vlan DNS1=192.168.XXX.YYY # of the vlan * restart the networking $ sudo systemctl restart network.service The connection into the vlan should be now active (ping should be possible). ===== Activate and deactivate the VLAN ===== Going to the NetworkManager, the active vlan connection is now visible. \\ It is possible too to disable it. \\ But it is not possible to enable it again! \\ The way to re-enable the connection is to go to the connection-editor: $ nm-connection-editor Then it is possible to go into the parameters of the vlan connection (e.g. enable or disable its auto-start). Setting for auto-connection and saving the configuration will re-enable the vlan connection and then it is possible to disable it again via the NetworkManager. \\ For re-enabling, go again to the connection-editor and re-save the parameters. Don't forget to deactivate the auto-connection into the connection-edito after closing the vlan connection per Network-Manager if the auto-connection to the vlan at reboot is not wished! [[http://www.linuxed.net/post/2009/03/04/D%C3%A9finir-un-VLAN|Source 1]] [[https://ask.fedoraproject.org/en/question/98326/fedora25-network-settings-add-network-connection-goes-straight-to-add-vpn/|Source 2]] ====== Desactive SElinux ====== ===== Temparary ===== # /usr/sbin/setenforce 0 to desactivate SElinux and # /usr/sbin/setenforce 1 for reactivation. ===== Durable setting ===== Edit ''/etc/selinux/config'' and replace ''SELINUX=enforcing'' through SELINUX=disabled and reboot. For reactivation, do the contrary. ====== Desactive the firewall ====== systemctl stop firewalld and for a durable setting do in addition: systemctl disable firewalld ====== Dia for diagrams ====== Set the resolution for export: \\ On export, specify the PNG (anti-aliased = **anti-crénelé** in french) (*.png) exporter. When you click Save, it will ask you for the resolution. Change either the X or Y, and it will scale up the other so your image is not distored. Do not use the Cairo or Pixbuf exporters, as they do not ask you. \\ \\ To specify the PNG exporter, select File->Export, and at the bottom of the Export Diagram dialog is a section Export Options and the drop down to list the available exporters. ====== Digikam ====== If the top menu bar is not present (= bar for settings), press "Strg"+"m" which switches the menu bar on and off. ====== Driver for wifi interface RTL8821CE ====== https://www.reddit.com/r/Fedora/comments/bkk6dg/install_rtl8821ce_in_fedora/ pas installé car autre interface wifi sur l'ordi (cf rtl8723de) \\ \\ \\ $ sudo dnf install kernel kernel-headers kernel-core kernel-debug kernel-debug-core kernel-debug-devel kernel-debug-modules kernel-debug-modules-extra kernel-devel kernel-modules kernel-modules-extra make automake gcc gcc-c++ kernel-devel git dkms dnf-utils wget unrar Mot de passe : Adobe Systems Incorporated 3.0 kB/s | 2.9 kB 00:00 Fedora Modular 30 - x86_64 24 kB/s | 24 kB 00:01 Fedora Modular 30 - x86_64 - Updates 30 kB/s | 24 kB 00:00 Fedora 30 - x86_64 - Updates 28 kB/s | 23 kB 00:00 Fedora 30 - x86_64 - Updates 1.3 MB/s | 23 MB 00:18 Fedora 30 - x86_64 24 kB/s | 24 kB 00:01 RPM Fusion for Fedora 30 - Free - Updates 42 kB/s | 11 kB 00:00 RPM Fusion for Fedora 30 - Free - Updates 554 kB/s | 347 kB 00:00 RPM Fusion for Fedora 30 - Free 64 kB/s | 11 kB 00:00 RPM Fusion for Fedora 30 - Nonfree - Updates 64 kB/s | 11 kB 00:00 RPM Fusion for Fedora 30 - Nonfree - Updates 28 kB/s | 45 kB 00:01 RPM Fusion for Fedora 30 - Nonfree 65 kB/s | 11 kB 00:00 Le paquet kernel-5.2.9-200.fc30.x86_64 est déjà installé. Le paquet kernel-headers-5.2.9-200.fc30.x86_64 est déjà installé. Le paquet kernel-core-5.2.9-200.fc30.x86_64 est déjà installé. Le paquet kernel-modules-5.2.9-200.fc30.x86_64 est déjà installé. Le paquet make-1:4.2.1-13.fc30.x86_64 est déjà installé. Le paquet git-2.21.0-1.fc30.x86_64 est déjà installé. Le paquet wget-1.20.3-1.fc30.x86_64 est déjà installé. Le paquet unrar-5.7.4-1.fc30.x86_64 est déjà installé. Dépendances résolues. ======================================================================================================================================================================================================== Paquet Architecture Version Dépôt Taille ======================================================================================================================================================================================================== Installation: automake noarch 1.16.1-12.fc30 updates 695 k dnf-utils noarch 4.0.7-1.fc30 updates 33 k gcc x86_64 9.2.1-1.fc30 updates 23 M gcc-c++ x86_64 9.2.1-1.fc30 updates 12 M kernel-debug x86_64 5.2.9-200.fc30 updates 17 k kernel-debug-devel x86_64 5.2.9-200.fc30 updates 13 M kernel-debug-modules-extra x86_64 5.2.9-200.fc30 updates 2.2 M kernel-devel x86_64 5.2.9-200.fc30 updates 13 M kernel-modules-extra x86_64 5.2.9-200.fc30 updates 2.1 M dkms noarch 2.6.1-3.fc30 fedora 78 k Installation des dépendances: cpp x86_64 9.2.1-1.fc30 updates 9.8 M elfutils-libelf-devel x86_64 0.177-1.fc30 updates 23 k kernel-debug-core x86_64 5.2.9-200.fc30 updates 31 M kernel-debug-modules x86_64 5.2.9-200.fc30 updates 29 M zlib-devel x86_64 1.2.11-17.fc30 updates 46 k autoconf noarch 2.69-29.fc30 fedora 698 k isl x86_64 0.16.1-8.fc30 fedora 796 k libmpc x86_64 1.1.0-3.fc30 fedora 56 k m4 x86_64 1.4.18-10.fc30 fedora 210 k perl-Thread-Queue noarch 3.13-2.fc30 fedora 21 k Résumé de la transaction ======================================================================================================================================================================================================== Installer 20 Paquets Taille totale des téléchargements : 139 M Taille des paquets installés : 331 M Voulez-vous continuer ? [o/N] : ====== Driver for wifi interface RTL8723DE ====== https://h30434.www3.hp.com/t5/Notebook-Wireless-and-Networking/Realtek-8723DE-wifi-module-amp-Bluetooth-Linux-driver/td-p/6477307/page/6 \\ https://superuser.com/questions/1301390/bluetooth-not-working-for-realtek-rtl8723de-hci0-didnt-find-patch-for-chip-i/1322067#1322067 post du 12 mai 2018 $ git clone -b extended https://github.com/lwfinger/rtlwifi_new.git $ cd rtlwifi_new/ sudo dnf install kernel-headers $ sudo dnf install @development-tools Mot de passe : Dernière vérification de l’expiration des métadonnées effectuée il y a 0:09:10 le lun. 02 sept. 2019 20:25:32 CEST. Dépendances résolues. ======================================================================================================================================================================================================== Paquet Architecture Version Dépôt Taille ======================================================================================================================================================================================================== Installation des paquets du groupe/module: patch x86_64 2.7.6-11.fc30 updates 126 k subversion x86_64 1.12.2-1.fc30 updates 1.1 M systemtap x86_64 4.1-1.fc30 updates 7.2 k diffstat x86_64 1.62-2.fc30 fedora 38 k doxygen x86_64 1:1.8.15-6.fc30 fedora 4.3 M patchutils x86_64 0.3.4-13.fc30 fedora 106 k Installation des dépendances: cpp x86_64 9.2.1-1.fc30 updates 9.8 M gcc x86_64 9.2.1-1.fc30 updates 23 M subversion-libs x86_64 1.12.2-1.fc30 updates 1.5 M systemtap-client x86_64 4.1-1.fc30 updates 3.6 M systemtap-devel x86_64 4.1-1.fc30 updates 2.3 M systemtap-runtime x86_64 4.1-1.fc30 updates 448 k utf8proc x86_64 2.3.0-1.fc30 updates 63 k apr x86_64 1.6.5-3.fc30 fedora 106 k apr-util x86_64 1.6.1-10.fc30 fedora 90 k dyninst x86_64 10.0.0-7.fc30 fedora 3.8 M efivar-libs x86_64 37-1.fc30 fedora 90 k isl x86_64 0.16.1-8.fc30 fedora 796 k libmpc x86_64 1.1.0-3.fc30 fedora 56 k libserf x86_64 1.3.9-11.fc30 fedora 54 k mokutil x86_64 1:0.3.0-11.fc30 fedora 41 k xapian-core-libs x86_64 1.4.10-1.fc30 fedora 737 k Installation des dépendances faibles: kernel-devel x86_64 5.2.9-200.fc30 updates 13 M apr-util-bdb x86_64 1.6.1-10.fc30 fedora 12 k apr-util-openssl x86_64 1.6.1-10.fc30 fedora 14 k Installation des groupes: Development Tools Résumé de la transaction ======================================================================================================================================================================================================== Installer 25 Paquets Taille totale des téléchargements : 65 M Taille des paquets installés : 219 M Voulez-vous continuer ? [o/N] : $ git checkout origin/extended -b extended fatal: Une branche nommée 'extended' existe déjà. $ sudo make install $ sudo modprobe rtl8723de ====== Enabling / Disabling Wayland ====== For gdm session manager: # nano /etc/gdm/custom.conf and comment / uncomment the line ''WaylandEnable=false'' ====== Gparted and Wayland ====== I noticed some issues between Gparted and Wayland: when Wayland is actived, Gparted refuses to open [[https://forums.fedora-fr.org/viewtopic.php?id=66732]] \\ Solution to open Gparted: $ xhost +local:root && sudo gparted && xhost - ====== Installation du pilote proprio Nvidia ====== Source: https://doc.fedora-fr.org/wiki/Carte_graphique_NVIDIA_:_installation_des_pilotes_propri%C3%A9taires \\ Sur une F30 fraichement installée: dnf install akmod-nvidia-340* suffit! ====== Kdenlive: paramètres de rendu d'une vidéo ====== * WebM ou mp4 / H.264/AAC fast * qualité vidéo: 20 (=> à confirmer!) * débit audio: 160 (=> à confirmer!) * si il y a des saccades dans la vidéo: Balayage: "forcer entrelacé" ou "forcer progressif" * dans "plus d'option" sélectionner la vitesse d'encodage ====== OpenVPN and SElinux ====== In order to avoid that SElinux blocks the connection to a server OpenVPN, store the certificates and keys into the folder ''~/.cert/'' and give permissions 600. Finally run as root: ''# restorecon -R -v /home_folder/of/user/.cert'' \\ Source: [[http://forums.fedoraforum.org/showthread.php?t=296243]] ====== PDF ====== * to fill out and view filled pdf-files => install ''okular'' * to make sone simple modifications (insert or delete pages, rotations etc...) to pdf files => install ''pdfmod'' * to compress a pdf file: run following command: $ gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=fichier_reduit.pdf fichier_a_reduire.pdf ====== Polices d'écritures supplémentaires ====== https://doc.fedora-fr.org/wiki/Comment_Installer_des_polices_de_caract%C3%A8res_suppl%C3%A9mentaires_%3F ====== View the journal of NetworkManager ====== Logged as root: journalctl -u NetworkManager.service ====== Wayland or Xorg is running?? ====== $ echo $XDG_SESSION_TYPE x11 => Xorg is running \\ or $ echo $XDG_SESSION_TYPE wayland => wayland is running in this case