Tue. Apr 28th, 2026

Technology

Alienware M18 R1 AMD & Linux

I recently got the Alienware M18 R1 AMD gaming ‘laptop’. I got this computer because AMD GPUs are supposed to be better supported in Linux than NVIDIA ones. Of course, I have almost always used NVIDIA before, so it actually seems a little tougher at the moment!

Anyway, I’m just going to list some things that I’ve been figuring out…

In order for GPU switching to actually work, I need to add a boot time kernel parameter. My original source used two… I’m not sure if the pcie one is necessary, but I included it.

amdgpu.runpm=0
pcie_aspm=off

The parameters can be added to /etc/default/grub.conf. In Fedora Workstation, you can add them in one command:

grubby --args="amdgpu.runpm=0 pcie_aspm=off" --update-kernel=ALL

In Fedora Silverblue, the parameters can be added using the following commands:

rpm-ostree kargs --append=amdgpu.runpm=0
rpm-ostree kargs --append=pcie_aspm=off

And in PopOS!, the command is:

kernelstub -a "amdgpu.runpm=0 pcie_aspm=off"

The Steam client doesn’t like to work using the dedicated graphics card. That’s okay, because the games will. To make Steam start using the integrated GPU by default, copy the steam .desktop file from /usr/share/applications (or /var/lib/flatpak/exports/share/applications/ if you use flatpak) to ~/.local/share/applications/, then edit it to change these lines from true to false:

PrefersNonDefaultGPU=false
X-KDE-RunOnDiscreteGpu=false

Also, for Steam, the download speeds are super slow unless you apply the following fix:
Edit the file ~/.steam/steam/steam_dev.cfg.
Add the following lines:
@nClientDownloadEnableHTTP2PlatformLinux 0
@fDownloadRateImprovementToAddAnotherConnection 1.0

The second line increases the number of servers that the client connects to, though it can sometimes actually slow the downloads down, so you may not want to include it.

Docker Problems In Almalinux 8

I kept having issues with Docker in Almalinux 8/Cloudlinux 8/Centos 8. Basically, any time that the server would reboot, my Docker containers would fail to start. If I restarted the Docker service manually, it would start working. The problem is that Docker manipulates iptables, but when the Firewall would start, Docker’s iptables would be overwritten. After doing a lot of Googling, it seems I have found a solution.

To resolve this create the following in /etc/csf/csfpre.sh

iptables -t nat -N DOCKER
iptables -t nat -A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
iptables -t nat -A OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER
iptables -t nat -A POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE

iptables -t filter -N DOCKER
iptables -t filter -A FORWARD -o docker0 -j DOCKER
iptables -t filter -A FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -t filter -A FORWARD -i docker0 ! -o docker0 -j ACCEPT
iptables -t filter -A FORWARD -i docker0 -o docker0 -j ACCEPT

I found this solution posted here.

DirectAdmin + Seafile Configuration

After a lot of trial and error, I have finally managed to get Seafile working with my DirectAdmin panel. I am posting my configuration here so that it will be much easier to do the next time!

First, here is my docker-compose.yml file:

version: '2.0'
services:
  db:
    image: mariadb:10.5
    restart: always
    container_name: seafile-mysql
    environment:
      - MYSQL_ROOT_PASSWORD=************  # Requested, set the root's password of MySQL service.
      - MYSQL_LOG_CONSOLE=true
    volumes:
      - /app/seafile/seafile-mysql/db:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.
    networks:
      - seafile-net

  memcached:
    image: memcached:1.5.6
    restart: always
    container_name: seafile-memcached
    entrypoint: memcached -m 256
    networks:
      - seafile-net

  elasticsearch:
    image: seafileltd/elasticsearch-with-ik:5.6.16
    restart: always
    container_name: seafile-elasticsearch
    environment:
      - discovery.type=single-node
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms1g -Xmx1g"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    mem_limit: 2g
    volumes:
      - /app/seafile/seafile-elasticsearch/data:/usr/share/elasticsearch/data  # Requested, specifies the path to Elasticsearch data persistent store.
    networks:
      - seafile-net
  
  seafile:
    image: docker.seadrive.org/seafileltd/seafile-pro-mc:latest
    restart: always
    container_name: seafile
    ports:
      - "8082:80"
      - "8443:443"  # If https is enabled, cancel the comment.
    volumes:
      - /app/seafile/seafile-data:/shared   # Requested, specifies the path to Seafile data persistent store.
    environment:
      - DB_HOST=db
      - DB_ROOT_PASSWD=***********  # Requested, the value shuold be root's password of MySQL service.
      - TIME_ZONE=America/Chicago # Optional, default is UTC. Should be uncomment and set to your local time zone.
      - SEAFILE_ADMIN_EMAIL=********@***********.com # Specifies Seafile admin user, default is 'me@example.com'
      - SEAFILE_ADMIN_PASSWORD=************     # Specifies Seafile admin password, default is 'asecret'
      - SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not
      - SEAFILE_SERVER_HOSTNAME=************.com # Specifies your host name if https is enabled
    depends_on:
      - db
      - memcached
      - elasticsearch
    networks:
      - seafile-net

networks:
  seafile-net:

And now, here is the DirectAdmin Reverse Proxy code that should be pasted in to the Custom HTTPD section:

|*if SUB="seafile"|
SSLProxyEngine On
ProxyPreserveHost On

ProxyPass / https://seafile.EXAMPLE.COM:8443/
ProxyPassReverse / https://seafile.EXAMPLE.COM:8443/

|*endif|

Fix KDE on NVIDIA Driver

For KDE font/gui size issues after switching to NVIDIA driver, I found the following post:

It’s a nvidia thing lol I had the same issue and never even noticed it until one day I gave the free noveau drivers a try and everything looked way better and smaller. For some reason nvidia sets/forces my DPI to I believe 120, anyways it’s really easy to solve.

Open the nvidia.conf file in your text editor

sudoedit /etc/X11/mhwd.d/nvidia.conf

Then edit or add the option DPI under the screen display sub section and disable UseEdidDpi.

To make things easier here is what I have under my “Screen” section which now forces the use of 96 for dpi scaling.

Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Option "UseEdidDpi" "False"
        Option "DPI" "96x96"
    EndSubSection
EndSection

I hope this helps you as it did for me.

How to configure Plex Media Server in Linux

You need to configure fstab to set the proper permissions.

There is a whole page about how to do this on the Plex site, see: https://support.plex.tv/hc/en-us/articles/200288606-Mounting-NTFS-Drives-on-Linux

To make it short:

  • Find the UUID of your drive:

    sudo blkid | grep ntfs

  • create a directory where you will mount the drive:

    sudo mkdir /media/ext_NTFS_USB_Drive

  • edit file /etc/fstab with command:

    gksu gedit /etc/fstab

  • add a line to this file and save.

    UUID=485CBF485CBF3014 /media/ext_NTFS_USB_Drive ntfs-3g permissions,auto 0 0

    where the UUID is the one your drive and the mount point is the folder you created.
  • now mount the drive:

    sudo mount /media/ext_NTFS_USB_Drive(you might get an error saying the drive is already mounted, in Nautilus for example. Just unmount it – Safely Remove Drive, or click the Eject Icon in Nautilus)

Now in Plex, you need to change the location of the media folder you were trying to add to somewhere inside: /media/ext_NTFS_USB_Drive

Slayaway Camp Killer Kodes

Slayaway Camp is a fun little puzzle game for those of us who love 80s slasher movies. I’m going to post some Killer Kodes which are used to unlock additional killers in the game:

campgate2016
freshmaker
gygax
badu
smiggles
beaster
lichee
griffin
gnollnumbertwo
forhades
comewithme
theyfloat
nananananananana
adieutube
slashback
awristrocket
scooper
dont-hang-up
groundhog
butthead
woodguardian
gotyoubabe
cup-of-wishes
soafraid
blowholepower
postlakeview
gonnalaughatu
bowels-out

YNAB: How Compact Database

How to contact the database in YNAB4:  CTRL+SHIFT+ALT+C

This will remove all devices except for the computer being used.  This device will be assigned to ‘A’, and then I can add all my other devices again.  This is useful, because everytime I flash a new ROM on my phone and add YNAB to it, it adds a new device.  YNAB will only let you add up to 26 devices (letters A – Z).