<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.kalen.pw/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.kalen.pw/feed.php">
        <title>wiki.kalen.pw development:linux</title>
        <description></description>
        <link>https://wiki.kalen.pw/</link>
        <image rdf:resource="https://wiki.kalen.pw/lib/tpl/SimpleDoku/images/favicon.ico" />
       <dc:date>2026-05-01T12:05:09+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:acl_access_control_list&amp;rev=1625004336&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:applications&amp;rev=1631814314&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:certificates&amp;rev=1625004343&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:desktop_files&amp;rev=1625004352&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:fedora&amp;rev=1680974084&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:file_management&amp;rev=1625004416&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:fish&amp;rev=1625004395&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:gnome&amp;rev=1632966636&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:matrix_riot&amp;rev=1625004430&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:misc_commands&amp;rev=1681354729&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:mounting_drives&amp;rev=1680974377&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:samba&amp;rev=1625004474&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:screen&amp;rev=1636855614&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:selinux&amp;rev=1625004579&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:settings_tweaks&amp;rev=1625004610&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:start&amp;rev=1680895476&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:systemd&amp;rev=1628022237&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:themeing&amp;rev=1680974509&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.kalen.pw/doku.php?id=development:linux:torrent&amp;rev=1625004730&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.kalen.pw/lib/tpl/SimpleDoku/images/favicon.ico">
        <title>wiki.kalen.pw</title>
        <link>https://wiki.kalen.pw/</link>
        <url>https://wiki.kalen.pw/lib/tpl/SimpleDoku/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:acl_access_control_list&amp;rev=1625004336&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:05:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Access Control Lists</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:acl_access_control_list&amp;rev=1625004336&amp;do=diff</link>
        <description>Access Control Lists

A second layer of permissions beyond the standard ugo+rwx. Denoted with a + at the end of ls -l

----------

Configuring


# get permissions
sudo getfacl directory/or_file_name

# set permissions 
sudo setfacl -m g:group_name:rwx ./directory/or_file_name</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:applications&amp;rev=1631814314&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-09-16T10:45:14+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Applications</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:applications&amp;rev=1631814314&amp;do=diff</link>
        <description>Applications

Application specific documentation

----------

	*  GNOME Games
	*  Terminator

----------</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:certificates&amp;rev=1625004343&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:05:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Certificates</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:certificates&amp;rev=1625004343&amp;do=diff</link>
        <description>Certificates

----------

Hash Verification

Useful for checking validity of certificates. Usually when done through something that isn't Let's Encrypt


# used to check the private key (usually ends with .key)
openssl rsa -noout -modulus -in example.com.key | openssl md5
# used to check the certificate (usually ends with .crt)
openssl x509 -noout -modulus -in example.crt | openssl md5</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:desktop_files&amp;rev=1625004352&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:05:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>.desktop files</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:desktop_files&amp;rev=1625004352&amp;do=diff</link>
        <description>.desktop files

Let's you have icons and appear in various search programs

----------

Setup

Put custom file in ~/.local/share/applications.  Existing files in /usr/share/applications

Example file


        [Desktop Entry]
        Name=Poweroff
        Exec=poweroff
        Icon=/home/kalenpw/.icons/Custom/poweroff.png
        Type=Application
        Categories=GTK;GNOME;</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:fedora&amp;rev=1680974084&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-04-08T10:14:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Fedora</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:fedora&amp;rev=1680974084&amp;do=diff</link>
        <description>Fedora

----------

DisplayLink

&lt;https://www.reddit.com/r/Fedora/comments/yxkm3w/fedora_37_anybody_know_how_to_get_displaylink_to/&gt;

 First time install

	*  Download DisplayLink Ubuntu Drivers
		*  &lt;https://www.synaptics.com/products/displaylink-graphics/downloads/ubuntu&gt;

	*  sudo dnf -y upgrade --refresh
	*  Reboot to ensure latest kernel
	*  sudo dnf -y install dkms libdrm-devel openssl 
	*  Reboot again to ensure updates</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:file_management&amp;rev=1625004416&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:06:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>File Management</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:file_management&amp;rev=1625004416&amp;do=diff</link>
        <description>File Management

Managing files with common CLI tools rsync, mv, cp, scp etc.

----------

cp


# trailing slash affects whether source gets copied or not
cp -r ./old_dir ./new_dir  # will copy old_dir into new_dir
cp -r ./old_dir/ ./new_dir # will copy everyhing inside old_dir to new_dir</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:fish&amp;rev=1625004395&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:06:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Fish</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:fish&amp;rev=1625004395&amp;do=diff</link>
        <description>Fish

I can't remember why now, but at some point I tried fish and zsh on Mac and found fish works better there. 

----------

Aliases

Aliases are created by simply creating a file in ~/.config/fish/functins

Example mkcd


function mkcd
    mkdir -p $argv
    and cd $argv
end</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:gnome&amp;rev=1632966636&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-09-29T18:50:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>GNOME</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:gnome&amp;rev=1632966636&amp;do=diff</link>
        <description>GNOME

----------

Useful extensions

	*   Dash to Dock 
	*   Hide Activities Button 
	*   Transparent Shell 
	*   User Themes  - Let's you set shell theme

----------

Switching Ubuntu to default GNOME


 # option at login to use GNOME 
sudo apt install gnome-session
# change login screen to use GNOME css
sudo update-alternatives --config gdm3-theme.gresource
# If some flatpak apps aren't using dark theme
flatpak install adwaita-dark</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:matrix_riot&amp;rev=1625004430&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:07:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Matrix &amp; Riot.im</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:matrix_riot&amp;rev=1625004430&amp;do=diff</link>
        <description>Matrix &amp; Riot.im

Self hosted federated chat system

----------

Installation


mkdir synapse
cd synapse
virtualenv -p python3 ./env
source ./env/bin/activate
pip install --upgrade pip
pip install --upgrade setuptools
pip install matrix-synapse
python -m synapse.app.homeserver --server-name chat.kalenpw.com --config-path homeserver.yaml --generate-config --report-stats=no</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:misc_commands&amp;rev=1681354729&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-04-12T19:58:49+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Misc Commands</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:misc_commands&amp;rev=1681354729&amp;do=diff</link>
        <description>Misc Commands

Various commands that are handy I tend to forget

----------


# get name for compton
xprop WM_CLASS # and clicking the window.

# sed with regex
# mac
find . -type f -name &quot;*.txt&quot; -print0 | xargs -0 sed -i &quot;&quot; -E 's!&lt;color (#([[:digit:]]|[A-Fa-f])+)&gt;(.*)&lt;/color&gt;!&lt;font inherit/inherit;;\1;;inherit&gt;\3&lt;/font&gt;!g'
# linux
find . -type f -name &quot;*.txt&quot; -print0 | xargs -0 sed -i -E 's!&lt;color (#([[:digit:]]|[A-Fa-f])+)&gt;(.*)&lt;/color&gt;!&lt;font inherit/inherit;;\1;;inherit&gt;\3&lt;/font&gt;!g'

# set vol…</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:mounting_drives&amp;rev=1680974377&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-04-08T10:19:37+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Mounting Drives</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:mounting_drives&amp;rev=1680974377&amp;do=diff</link>
        <description>Mounting Drives

----------

Auto mount on boot

To get UUID of drives sudo blkid

Configured in /etc/fstab

example config:


  /dev/disk/by-uuid/f3421b8c-7370-4f60-9db6-76cccf8c5b9b / ext4 defaults 0 0
  UUID=fdaa90ad-0a40-4425-a8c3-88a8bd689d66 /media/kalenpw/SSD1000 auto defaults 0 0
  UUID=976d8f12-cce8-4a11-bf1c-2572c11fddcb /media/kalenpw/HDD500 auto defaults 0 0
  UUID=6b89d441-e62c-4cdd-b298-6b9619dc07e0 /media/kalenpw/HDD1000 auto defaults 0 0</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:samba&amp;rev=1625004474&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:07:54+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Samba</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:samba&amp;rev=1625004474&amp;do=diff</link>
        <description>Samba

Used to share files across a network

----------

Config located at /etc/samba/smb.conf


# name in brackets is what shows in file explorer
[Files] 
    path = /media/kalenpw/Files 
    valid users = kalenpw 
    read only = no 
    writable = yes 
 
[Music] 
    path = /media/kalenpw/Music 
    valid users = kalenpw 
    read only = no 
    writable = yes</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:screen&amp;rev=1636855614&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-11-13T19:06:54+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Screen</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:screen&amp;rev=1636855614&amp;do=diff</link>
        <description>Screen

----------


# create a named session
screen -s SessionName

# attach
screen -r SessionName

#detach
ctrl+a  d</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:selinux&amp;rev=1625004579&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:09:39+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>SELinux</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:selinux&amp;rev=1625004579&amp;do=diff</link>
        <description>SELinux

Security-Enhanced Linux. Can be the reason why a file you appear to have permissions for is unavailable

----------

Commands


# check if selinux is enabled
getenforce

# list selinux permissions
ls -la --context

# set permissions
chcon &lt;permissions&gt; filename</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:settings_tweaks&amp;rev=1625004610&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:10:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Settings Tweaks</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:settings_tweaks&amp;rev=1625004610&amp;do=diff</link>
        <description>Settings Tweaks

	*  Super + Arrow as Home/End</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:start&amp;rev=1680895476&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-04-07T12:24:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Linux</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:start&amp;rev=1680895476&amp;do=diff</link>
        <description>Linux

	*   ACL - Access Control List
	*   Applications 
	*   Certificates
	*   .desktop files 
	*   Fedora 
	*   Fish
	*   File Management - rsync, mv, cp etc
	*   GNOME 
	*   Matrix + Riot
	*   Misc Commands 
	*   Mounting Drives 
	*   Samba 
	*   Screen 
	*   SELinux 
	*   Settings Tweaks 
	*   Systemd 
	*   Themeing 
	*   Torrent</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:systemd&amp;rev=1628022237&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-08-03T13:23:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Systemd</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:systemd&amp;rev=1628022237&amp;do=diff</link>
        <description>Systemd

	*   Create Service 
	*   systemctl</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:themeing&amp;rev=1680974509&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-04-08T10:21:49+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Themeing</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:themeing&amp;rev=1680974509&amp;do=diff</link>
        <description>Themeing

Dated, but here for posterity

----------

GTK

Config file: ~/.config/gtk-X.Y/settings.ini


[Settings]
   gtk-theme-name=Equilux
   gtk-icon-theme-name=Ultra-Flat
   gtk-font-name=Sans 10
   gtk-cursor-theme-name=DMZ-Black
   gtk-cursor-theme-size=0
   gtk-toolbar-style=GTK_TOOLBAR_BOTH
   gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
   gtk-button-images=1
   gtk-menu-images=1
   gtk-enable-event-sounds=1
   gtk-enable-input-feedback-sounds=1
   gtk-xft-antialias=1
   gtk-xft-hi…</description>
    </item>
    <item rdf:about="https://wiki.kalen.pw/doku.php?id=development:linux:torrent&amp;rev=1625004730&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-29T15:12:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Torrent</title>
        <link>https://wiki.kalen.pw/doku.php?id=development:linux:torrent&amp;rev=1625004730&amp;do=diff</link>
        <description>Torrent

----------

Creating a .torrent

Rip files from CD 


# does both flac and 320kbps mp3 at same time
abcde -o 'flac:-8,mp3:-b 320'


// todo script to extract the mp3 and flac

Create the .torrent 


imdl torrent create --private --source RED --announce https://flacsfor.me/57a49359d288fce48fbc777db83fdb2d/announce --input /media/kalenpw/HDD1000/Seedbox/Dylan_Owen-2009-How_to_Stay_Young-flac/ --output /media/kalenpw/HDD1000/Seedbox/Dylan_Owen-2009-How_to_Stay_Young-flac.torrent</description>
    </item>
</rdf:RDF>
