[-] AldinTheMage@ttrpg.network 4 points 3 weeks ago

This was really helpful - It got me pointed down the right track to figure out the video= settings in the grub config. I was able to disable the laptop monitor and enable the CRT by adding this to /etc/default/grub

# Disable laptop monitor (LVDS-1) and only output to CRT (HDMI-A-1)
GRUB_CMDLINE_LINUX_DEFAULT="video=LVDS-1:d video=HDMI-A-1:1024x768"

I initially set it to 640x480, but display was better with higher res and large font size, which I scales up with sudo dpkg-reconfigure console-setup

I created a service account for this, and set up a systemd service to start getty on that account based on those docs

[Service]
Type=idle
ExecStart=
ExecStart=-/sbin/agetty --skip-login --noreset --noclear --autologin axies - ${TERM}![](https://ttrpg.network/pictrs/image/cf0ab3f3-9674-4578-a230-c8f3df7a7bdc.webp)

Then I added htop to the ~/.bash_profile for that user and... done!

Only thing is there is some overscan on the display and initially about 3 rows / cols were cut off on each side. I was able to adjust the CRT display itself to mostly mitigate this, so now only a bit is cut off and it's usable, but it's not perfect. I tried setting the margin in the video options in grub with margin_top, margin_left etc., as per these docs but that didn't work, even though I verified the resolution was applying correctly. But it is functional!

[-] AldinTheMage@ttrpg.network 4 points 3 weeks ago

This is great info, thanks! I did some messing around yesterday and got it opening a tty on boot, and disabled the startx so it stays there. I will look into the monitor power stuff too. Thanks!

[-] AldinTheMage@ttrpg.network 6 points 3 weeks ago* (last edited 3 weeks ago)

From what I know, headless means different things depending on context - in this instance I'm using it in the sense that my server does not require any user session, or any user input devices, it just powers on and all of the services start up at the system level. I can SSH into it to configure things, but it doesn't require any user session or input to run the services. A video output probably falls outside of this in some sense, but I would like it to be automatic without requiring an active user session.

The monitor I have is an old Panasonic tv / radio combo, so the display can be flipped on with a physical switch when I'm at my desk, so shouldn't be any wasted power usage. It won't be on all the time.

I'm using Linux Mint, which is probably not optimal, but I had a USB ready and I'm just using terminal stuff so it didn't seem like it mattered too much. It does have systemd, which made it pretty easy to set up the docker stuff

Thanks for the input!

36
submitted 3 weeks ago* (last edited 3 weeks ago) by AldinTheMage@ttrpg.network to c/linux@programming.dev

I have an old laptop set up with mint (what I had a usb laying around for) and running foundryvtt with docker. That's all set up and working great, starts services on reboot, runs headless.

What I would like to do, mainly because I think it would look cool, is have a small CRT screen that I have plugged into the laptop via HDMI to display the performance status with htop, or docker output or something. I can do this with starting a terminal session with the other display plugged in, but this requires user interaction and all of that.

This side of linux is kind of new to me, so I am not sure what direction I need to start looking in. Is it possible to set up a service to run headless and output to a display in a way that automatically comes up if the device is rebooted? Or is it possible to modify my existing docker container to output logs to display?

Appreciate any input to help get me pointed in the right direction.

EDIT: Solved!

Thanks to everyone for pointing me towards getty, grub boot settings, and bash profiles - got a setup that I'm happy with.

I was able to disable the laptop monitor and enable the CRT by adding this to /etc/default/grub

# Disable laptop monitor (LVDS-1) and only output to CRT (HDMI-A-1)
GRUB_CMDLINE_LINUX_DEFAULT="video=LVDS-1:d video=HDMI-A-1:1024x768"

(don't forget sudo update-grub to apply)

I initially set it to 640x480, but display was better with higher res and large font size, which I scales up with sudo dpkg-reconfigure console-setup

I created a service account for this, and set up a systemd service to start getty on that account based on those docs

[Service]
Type=idle
ExecStart=
ExecStart=-/sbin/agetty --skip-login --noreset --noclear --autologin axies - ${TERM}![](https://ttrpg.network/pictrs/image/cf0ab3f3-9674-4578-a230-c8f3df7a7bdc.webp)

Then I added htop to the ~/.bash_profile for that user and... done!

Only thing is there is some overscan on the display and initially about 3 rows / cols were cut off on each side. I was able to adjust the CRT display itself to mostly mitigate this, so now only a bit is cut off and it's usable, but it's not perfect. I tried setting the margin in the video options in grub with margin_top, margin_left etc., as per these docs but that didn't work, even though I verified the resolution was applying correctly. But it is functional!

[-] AldinTheMage@ttrpg.network 21 points 1 month ago

I love Debian. Been using it on my laptop for over a year. Some specific drivers are a little fiddly if you have nvidia graphics but it's not too bad, lots of good info on the debian wiki.

[-] AldinTheMage@ttrpg.network 4 points 1 month ago

I miss the old tts voices and now everything is ai generated garbage :( Bring back the robot voices!

[-] AldinTheMage@ttrpg.network 34 points 1 month ago

That's why we use JavaScript on the front end, JavaScript on the back end, and you can streamline it even more by using JavaScript for the db layer too. After all, if you have too much data to be reasonably parsed in a single .json file, you are probably just architecting wrong.

8

My distro of choice is Debian (I like their philosophy and it works great on my laptop) but I have an nVidia card in my desktop PC, and driver management was kind of annoying. Decided to try Kubuntu, which worked ok, but I didn't really love, and then I didn't update for a bit too long and had some repo issues trying to install updates. I didn't bother digging into what the fix would be, since I had been considering Bazzite for a while, as it has been talked about a lot for gaming.

Knowing literally nothing other than "Bazzite works out of the box with nVidia" I figured I'd give it a go. First off, I was surprised at the size of the image, and how long the install took. I did some reading about atomic distros and began to understand why things were set up that way. Seems pretty cool! I still don't love that as soon as I logged in on my fresh install, Steam opened up and asked for a log in, but that is what I signed up for with Bazzite, I guess. The nVidia drivers out of the box worked fantastic, as advertised, and I love a good KDE desktop, so it's not all bad.

Initially I was frustrated that some things weren't working in the flatpak versions of the app (couldn't get to my 3d printer using the .local address from the browser because flatpak has a bug with mDNS) and layering a package with rpm-ostree seems like overkill and not a good experience. Then I watched some videos on distrobox.

I can just distrobox create --image debian:latest debian-box and then use apt install for whatever packages I want, export them and use them as if they were natively installed on Bazzite??? And this works on any distro??? I have been using Linux exclusively for a few years (and on and off for more years), but I have been totally out of the loop with distrobox and atomic distros. This feels like the same level of magic I felt when I first dual booted Ubuntu back in the Windows Vista days. This seems like it will fix 99% of the issues I run into on Linux.

I know distrobox isn't exclusive to atomic distros, but I wouldn't have discovered it if not for Bazzite.

Anyway, none of this is really new info, but I just wanted to nerd out about it for a bit with people who will know what I'm talking about.

[-] AldinTheMage@ttrpg.network 4 points 6 months ago

I love the magic system in Genesys, with just basic spells (attack, heal, augment, curse, etc), some varying effects with suggested flavor (e.g. "Ice" adds ensnare to an attack, but mechanically it doesn't matter if it is vines, goop, whatever), and how much that effect increases spell difficulty. It lets the players go into a brainstorming session trying to come up with a spell to get out of a very specific situation, and having the game support almost anything.

E.g. this create water idea could be an attack spell with the poisonous quality (making it a hard check), which requires the target to make a hard resilience check or take a bunch of extra damage and strain, which for a skilled mage against a non-boss creature (e.g. an overly ambitious bandit) is well within one-shot range. If they pass the check, they would still take damage from the attack, but would be able to cough up most of the water before it got too serious.

This system sounds very cool also, and I have recently heard of Mage in another thread. I would like to play a system that gives players the ability to come up with spells that the GM doesn't know ahead of time (I seriously dislike long lists of predefined spells), but also has a little more of that hard magic-science set of rules to satisfy my inner Sanderson fanboy. I have built in some external scaffolding around the magic in my Genesys setting that does this, and it has been a ton of fun so far.

My main gripe is that I wish I had more time to play RPGs (more than a couple sessions a month) so I could try out more systems.

[-] AldinTheMage@ttrpg.network 5 points 7 months ago

But have you tried Outlook (NEW) and Teams (NEW)?? Microsoft made changes to deeply integrate copilot into them, while making the UI unintelligible and broken as well. It's a much more authentic Windows experience

[-] AldinTheMage@ttrpg.network 28 points 7 months ago

I'm the guy but instead of a pyramid scheme I'm just trying to get all of my friends to install Linux and switch to fediverse social platforms

[-] AldinTheMage@ttrpg.network 4 points 7 months ago

Aunt Jemima was on the syrup. Mrs Butterworth is the syrup

Picture of Mrs Butterworth shaped syrup bottles on a shelf

[-] AldinTheMage@ttrpg.network 6 points 7 months ago

AI art is unethical

view more: next ›

AldinTheMage

joined 2 years ago