distros:arch_linux_plasma
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
distros:arch_linux_plasma [2016/10/08 15:14] – Sean Rhone | distros:arch_linux_plasma [2016/10/17 20:11] (current) – Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Information ====== | ||
+ | * Arch Linux ((https:// | ||
+ | * Plasma Desktop ((https:// | ||
+ | |||
+ | ===== Prerequisites ===== | ||
+ | |||
+ | * [[distros: | ||
+ | |||
+ | ====== Notes ====== | ||
+ | |||
+ | * NVIDIA graphics driver from official repos does not work with ZEN Kernel ((can apparently mess with DKMS or the ZEN-specific NVIDIA driver from AUR)) | ||
+ | * fstrim works with XFS root partition ((https:// | ||
+ | * Touchpad disable doesn' | ||
+ | |||
+ | ====== Software ====== | ||
+ | |||
+ | ===== Update ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo pacman -Syyuu | ||
+ | |||
+ | ===== Xorg ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo pacman -S --needed xorg-server xorg-xrandr xf86-input-evdev xf86-input-libinput | ||
+ | |||
+ | ===== Graphics ===== | ||
+ | |||
+ | ==== Mesa ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | mesa-libgl lib32-mesa-libgl | ||
+ | |||
+ | ==== NVIDIA ==== | ||
+ | |||
+ | * Continue to [[distros: | ||
+ | |||
+ | nvidia nvidia-settings nvidia-utils opencl-nvidia | ||
+ | |||
+ | ==== Intel ==== | ||
+ | |||
+ | * This is necessary on Chatters ((modesetting doesn' | ||
+ | |||
+ | xf86-video-intel mesa-libgl | ||
+ | |||
+ | ===== Plasma ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | plasma-meta kde-applications-meta plasma-wayland-session phonon-qt4-gstreamer phonon-qt5-gstreamer gst-libav libx264 fcron xdg-user-dirs kdeconnect ttf-dejavu ttf-liberation sshfs telepathy-gabble | ||
+ | |||
+ | ===== General ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | acpid alsa-tools amarok android-tools aria2 firefox filezilla gimp hidepid htop hunspell hunspell-en keepassx2 libreoffice-fresh lsof mesa-demos mpv networkmanager-openvpn openvpn perl-image-exiftool qbittorrent p7zip ufw unrar wget | ||
+ | |||
+ | ===== Games ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | supertuxkart minetest neverball | ||
+ | |||
+ | ===== Printing ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | cups hplip foomatic-db-engine system-config-printer | ||
+ | |||
+ | ===== Wine ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | wine-staging winetricks wine_gecko wine-mono lib32-gst-plugins-base-libs lib32-libpulse lib32-openal lib32-gnutls lib32-giflib lib32-libpng lib32-lcms2 lib32-mpg123 lib32-libxml2 samba | ||
+ | |||
+ | ==== Non-multilib ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | wine-staging winetricks wine_gecko wine-mono gst-plugins-base-libs libpulse openal gnutls giflib libpng lcms2 mpg123 libxml2 samba | ||
+ | |||
+ | ===== AntiMicro ===== | ||
+ | |||
+ | * https:// | ||
+ | * Should do [[distros: | ||
+ | |||
+ | wget ' | ||
+ | |||
+ | ===== Video Decoding ===== | ||
+ | |||
+ | ==== Intel ==== | ||
+ | |||
+ | * VA-API | ||
+ | |||
+ | libva-intel-driver | ||
+ | |||
+ | ==== Mesa ==== | ||
+ | |||
+ | * VDPAU | ||
+ | |||
+ | mesa-vdpau | ||
+ | |||
+ | ==== NVIDIA ==== | ||
+ | |||
+ | * VDPAU | ||
+ | |||
+ | nvidia-utils | ||
+ | |||
+ | ===== OBS Studio ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | obs-studio | ||
+ | |||
+ | ===== Kodi ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | kodi | ||
+ | |||
+ | ====== Services ====== | ||
+ | |||
+ | ====== acpid ====== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo systemctl enable ' | ||
+ | |||
+ | ====== TRIM ====== | ||
+ | |||
+ | * This requires more (currently undocumented here) set-up if using an encrypted root partition and/or LVM | ||
+ | * This requires a SSD with no encrypted root nor LVM | ||
+ | |||
+ | sudo systemctl enable ' | ||
+ | |||
+ | ====== SDDM ====== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo systemctl enable ' | ||
+ | |||
+ | ====== CUPS ====== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo systemctl enable ' | ||
+ | |||
+ | ====== Settings ====== | ||
+ | |||
+ | ===== Plasma ===== | ||
+ | |||
+ | * Disable Show the desktop toolbox from Tweaks | ||
+ | * Always show all entries on System Tray | ||
+ | * Application Dashboard alternative | ||
+ | |||
+ | ===== Wallet ===== | ||
+ | |||
+ | * Classic, blowfish encrypted file (no password) | ||
+ | |||
+ | ===== SDDM ===== | ||
+ | |||
+ | ==== Appearance ==== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Theme] | ||
+ | Current=breeze | ||
+ | CursorTheme=breeze_cursors | ||
+ | |||
+ | ==== Auto-login ==== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Autologin] | ||
+ | User=espionage724 | ||
+ | Session=plasma.desktop | ||
+ | |||
+ | ===== Dolphin ===== | ||
+ | |||
+ | * Video Files (ffmpegthumbs) Previews | ||
+ | |||
+ | ===== Font ===== | ||
+ | |||
+ | * Force 96 fonts DPI | ||
+ | |||
+ | ===== Keyboard Shortcuts ===== | ||
+ | |||
+ | konsole | ||
+ | |||
+ | keepassx2 | ||
+ | |||
+ | ===== Network Profile ===== | ||
+ | |||
+ | ==== IPv4 DNS ==== | ||
+ | |||
+ | === Pi-hole === | ||
+ | |||
+ | 192.168.1.158 | ||
+ | |||
+ | === DNS.WATCH === | ||
+ | |||
+ | 84.200.69.80 | ||
+ | |||
+ | 84.200.70.40 | ||
+ | |||
+ | ===== Amarok ===== | ||
+ | |||
+ | * See [[Information: | ||
+ | |||
+ | ===== Uncomplicated Firewall ===== | ||
+ | |||
+ | ==== Initial ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo ufw reset && sudo ufw default deny && sudo ufw logging off && sudo ufw enable && sudo systemctl enable ' | ||
+ | |||
+ | ==== Secure Shell ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo ufw limit ' | ||
+ | |||
+ | ==== Custom Rules ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | === Steam In-Home Streaming === | ||
+ | |||
+ | [steam-ihs] | ||
+ | title=steam-ihs | ||
+ | description=Steam In-Home Streaming | ||
+ | ports=27031, | ||
+ | |||
+ | sudo ufw allow ' | ||
+ | |||
+ | === KDE Connect === | ||
+ | |||
+ | [kde-connect] | ||
+ | title=kde-connect | ||
+ | description=KDE Connect | ||
+ | ports=1714: | ||
+ | |||
+ | sudo ufw allow ' | ||
+ | |||
+ | === qBittorrent Web UI === | ||
+ | |||
+ | * Enable in Options > Web UI | ||
+ | |||
+ | [qbittorrent-web] | ||
+ | title=qbittorrent-web | ||
+ | description=qBittorrent Web UI | ||
+ | ports=8080/ | ||
+ | |||
+ | sudo ufw allow ' | ||
+ | |||
+ | === Kodi Remote === | ||
+ | |||
+ | * This allows remote control with Yatse | ||
+ | * Enable HTTP server in Kodi | ||
+ | |||
+ | [kodi-remote] | ||
+ | title=kodi-remote | ||
+ | description=Kodi Remote Control | ||
+ | ports=8080/ | ||
+ | |||
+ | sudo ufw allow ' | ||
+ | |||
+ | ===== Boot Loader ===== | ||
+ | |||
+ | ==== GRUB ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | ==== systemd-boot ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | ==== I/O Scheduler ==== | ||
+ | |||
+ | * Choose only one | ||
+ | |||
+ | === Deadline === | ||
+ | |||
+ | * Rotational disks | ||
+ | |||
+ | elevator=deadline | ||
+ | |||
+ | === blk_mq === | ||
+ | |||
+ | * SSDs | ||
+ | |||
+ | scsi_mod.use_blk_mq=1 | ||
+ | |||
+ | ==== Disable NMI watchdog ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | nmi_watchdog=0 | ||
+ | |||
+ | ==== Disable Webcam and Bluetooth ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | modprobe.blacklist=uvcvideo, | ||
+ | |||
+ | ==== Disable Laptop Display ==== | ||
+ | |||
+ | * Needed on Chatters | ||
+ | |||
+ | video=LVDS-1: | ||
+ | |||
+ | ===== makepkg ===== | ||
+ | |||
+ | nano ~/' | ||
+ | |||
+ | CFLAGS=" | ||
+ | CXXFLAGS=" | ||
+ | CPPFLAGS=" | ||
+ | MAKEFLAGS=" | ||
+ | PKGEXT=' | ||
+ | |||
+ | ===== Input ===== | ||
+ | |||
+ | ==== Flat Cursor Movement ==== | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | MatchIsPointer | ||
+ | Option | ||
+ | EndSection | ||
+ | | ||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | MatchIsTouchpad | ||
+ | Option | ||
+ | EndSection | ||
+ | | ||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | MatchIsTouchscreen | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | ==== Touchpad ==== | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | MatchIsTouchpad " | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | ===== Kernel Hardening ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | kernel.dmesg_restrict = 1 | ||
+ | kernel.kptr_restrict = 1 | ||
+ | |||
+ | ===== mpv ===== | ||
+ | |||
+ | * Change '' | ||
+ | * Remove '' | ||
+ | |||
+ | mkdir -p ~/' | ||
+ | |||
+ | hwdec=' | ||
+ | vo=' | ||
+ | ao=' | ||
+ | |||
+ | ===== Pacman Hooks ===== | ||
+ | |||
+ | ==== systemd Initramfs Regenerate ==== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | [Trigger] | ||
+ | Operation = Upgrade | ||
+ | Type = Package | ||
+ | Target = systemd | ||
+ | | ||
+ | [Action] | ||
+ | Description = Generating initramfs... | ||
+ | Depends = linux | ||
+ | When = PostTransaction | ||
+ | Exec = / | ||
+ | |||
+ | ===== PulseAudio ===== | ||
+ | |||
+ | mkdir -p ~/' | ||
+ | |||
+ | resample-method = soxr-mq | ||
+ | flat-volumes = no | ||
+ | deferred-volume-safety-margin-usec = 1 | ||
+ | |||
+ | ===== Secure Shell ===== | ||
+ | |||
+ | * See [[Clients: | ||
+ | |||
+ | ===== Wine Staging ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | export STAGING_SHARED_MEMORY=1 | ||
+ | export STAGING_WRITECOPY=1 | ||
+ | |||
+ | ====== Computer-specific ====== | ||
+ | |||
+ | ===== Spinesnap ===== | ||
+ | |||
+ | ==== Open-Source Graphics ==== | ||
+ | |||
+ | * Intel Corporation Sky Lake Integrated Graphics (rev 07) | ||
+ | * NVIDIA Corporation Device 1399 (rev a2) | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | EndSection | ||
+ | |||
+ | ==== Proprietary Graphics ==== | ||
+ | |||
+ | === Xorg === | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | Section " | ||
+ | Load " | ||
+ | EndSection | ||
+ | | ||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | BusID " | ||
+ | Option | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | === SDDM === | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | xrandr --setprovideroutputsource ' | ||
+ | xrandr --auto | ||
+ | |||
+ | ===== Hailrake ===== | ||
+ | |||
+ | ==== Graphics ==== | ||
+ | |||
+ | * Advanced Micro Devices [AMD] nee ATI Device 983d | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | EndSection | ||
+ | |||
+ | ==== Audio ==== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Unit] | ||
+ | Description=IDT 92HD95 Audio Bass and Volume Fix | ||
+ | | ||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | | ||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | |||
+ | ===== Oak ===== | ||
+ | |||
+ | ==== Open-Source Graphics ==== | ||
+ | |||
+ | * Advanced Micro Devices, Inc. [AMD/ATI] RV610 [Radeon HD 2400 PRO] | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | EndSection | ||
+ | |||
+ | ==== Filesystem Maintenance ==== | ||
+ | |||
+ | === Service === | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | |||
+ | === Timer === | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Unit] | ||
+ | Description=Filesystem Maintenance | ||
+ | | ||
+ | [Timer] | ||
+ | OnCalendar=weekly | ||
+ | Persistent=true | ||
+ | | ||
+ | [Install] | ||
+ | WantedBy=timers.target | ||
+ | |||
+ | ===== Chatters ===== | ||
+ | |||
+ | ==== Open-Source Graphics ==== | ||
+ | |||
+ | * Intel something (TODO: Fix) | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | EndSection | ||
+ | |||
+ | ====== Cache Cleanup ====== | ||
+ | |||
+ | ===== Service ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Service] | ||
+ | User=CHANGEME | ||
+ | Group=CHANGEME | ||
+ | Type=oneshot | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | |||
+ | ===== Timer ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Unit] | ||
+ | Description=Temporary File and Cache Cleanup | ||
+ | | ||
+ | [Timer] | ||
+ | OnCalendar=weekly | ||
+ | Persistent=true | ||
+ | | ||
+ | [Install] | ||
+ | WantedBy=timers.target | ||
+ | |||
+ | ====== Automatic Updates ====== | ||
+ | |||
+ | ===== Service ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | |||
+ | ===== Timer ===== | ||
+ | |||
+ | * See [[Information: | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Unit] | ||
+ | Description=Software Package Maintenance and Updater | ||
+ | Wants=network-online.target | ||
+ | | ||
+ | [Timer] | ||
+ | OnCalendar=*-*-* 05:10:00 | ||
+ | Persistent=true | ||
+ | | ||
+ | [Install] | ||
+ | WantedBy=timers.target | ||
+ | |||
+ | ====== Pacman Mirrorlist ====== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | ===== Service ===== | ||
+ | |||
+ | * Grabs US mirrors (IPv4, HTTPS) | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | |||
+ | ===== Timer ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Unit] | ||
+ | Description=Pacman Mirrorlist Generator | ||
+ | Wants=network-online.target | ||
+ | | ||
+ | [Timer] | ||
+ | OnCalendar=weekly | ||
+ | Persistent=true | ||
+ | | ||
+ | [Install] | ||
+ | WantedBy=timers.target | ||
+ | |||
+ | ====== Steven Black' | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | ===== Service ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | ExecStart='/ | ||
+ | |||
+ | ===== Timer ===== | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | [Unit] | ||
+ | Description=Hosts File Protection Updater | ||
+ | Wants=network-online.target | ||
+ | | ||
+ | [Timer] | ||
+ | OnCalendar=weekly | ||
+ | Persistent=true | ||
+ | | ||
+ | [Install] | ||
+ | WantedBy=timers.target | ||
+ | |||
+ | ====== Mozilla Firefox ====== | ||
+ | |||
+ | ===== about: | ||
+ | |||
+ | cd ~/' | ||
+ | |||
+ | user_pref(" | ||
+ | user_pref(" | ||
+ | user_pref(" | ||
+ | user_pref(" | ||
+ | user_pref(" | ||
+ | user_pref(" | ||
+ | user_pref(" | ||
+ | user_pref(" | ||
+ | user_pref(" | ||
+ | |||
+ | ===== Extensions ===== | ||
+ | |||
+ | * 7 Extensions | ||
+ | |||
+ | xdg-open ' | ||
+ | |||
+ | ==== Hailrake ==== | ||
+ | |||
+ | * Firefox is super-slow on this computer with the above extenstions, | ||
+ | * https:// | ||
+ | |||
+ | ==== uBlock Origin ==== | ||
+ | |||
+ | * Enable Adblock Warning Removal List | ||
+ | * Enable Anti-Adblock Killer | Reek | ||
+ | * Disable everything else below | ||
+ | * Enable Fanboy+Easylist-Merged Ultimate List | ||
+ | |||
+ | ==== uMatrix ==== | ||
+ | |||
+ | * Auto-update hosts files | ||
+ | |||
+ | ==== Privacy Settings ==== | ||
+ | |||
+ | * Full Privacy | ||
+ | |||
+ | ====== Notable Folders and Commands ====== | ||
+ | |||
+ | ===== Shortcuts ===== | ||
+ | |||
+ | / | ||
+ | |||
+ | ~/ | ||
+ | |||
+ | ===== Icons ===== | ||
+ | |||
+ | / | ||
+ | |||
+ | ~/ | ||
+ | |||
+ | ===== fstrim ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo fstrim -v --all | ||
+ | |||
+ | ===== Xorg Debug ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | xdg-open '/ | ||
+ | |||
+ | ===== Verify DRI3 ===== | ||
+ | |||
+ | * Won't report DRI3 with NVIDIA Proprietary Graphics Driver | ||
+ | |||
+ | LIBGL_DEBUG=' | ||
+ | |||
+ | ===== Show CPU Frequency ===== | ||
+ | |||
+ | grep ' | ||
+ | |||
+ | watch -n 0.1 grep \'cpu MHz\' '/ | ||
+ | |||
+ | ===== Partition Information ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | df -hT | ||
+ | |||
+ | ===== hdparm Secure Erase ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo hdparm -I '/ | ||
+ | |||
+ | sudo hdparm --user-master u --security-set-pass ' | ||
+ | |||
+ | sudo hdparm --user-master u --security-erase-enhanced ' | ||
+ | |||
+ | ===== Optimal GCC compiler flags ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+// | ||
+ | |||
+ | ===== Remove EXIF data ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | exiftool -all= *.* -overwrite_original |