u/ConstructionSafe2814

▲ 0 r/ollama

Is it possible to train a model on a specific hit repository?

I'm working a lot on Ceph specifically. I have used ollama a year ago and concluded that the available models spat out more nonsense than anything else when asking stuff about Ceph in particular. It hallucinated well over 80% of the commands I asked it for. That's not helpful at all.

So my idea would be to "augment"/"train" any reasonable model that happens to be good at coding with the documentation of the Ceph git repository, which also contains its documentation.

Is such a thing possible at all with ollama? Or do I need extra tooling to do this? Eg. OpenWeb-UI?

reddit.com
u/ConstructionSafe2814 — 6 days ago
▲ 7 r/bash

Is there a way to capture keystrokes even though you're not at a prompt?

I'm spending a lot of time on the terminal, (/dev/ttyX, framebuffer, no X/wayland).

I have made some key binds to control screen brightness, set the font size, volume up/down, limit CPU clock frequency, ...

Problem is, it only works if I'm at a Bash prompt and not if a program is open (mc, vim, chawan, ...)

If eg, I've got vim open, I need to either find a terminal that has a Bash prompt open or exit vim before I can change the screen brightness.

My problem would be fixed if there would be some kind of a way for bash to capture certain key sequences even though a program is running.

Is that possible at all?

thanks!

reddit.com
u/ConstructionSafe2814 — 12 days ago
▲ 469 r/debian

This week I bought a Lenovo ThinkPad x270. The reason for buying it is because it's got 2 batteries. One internal and one hot swappable. I'm going to a conference in a couple of weeks and I don't want to run out of batteries. The x270 is apparently a champ in battery run time. Especially if you've got 2 72Wh batteries ánd an internal battery. Oh and it's really cheap in 2026 :)

But it's not only about battery capacity, it's also about reducing power consumption. So I installed linux-cpupower and maxed out the cpu at the lowest clock speed it allows: 400MHz. Then with powertop I tweaked all the tunables so it says "good".

Now powertop showed that the laptop idles at 2.7W at idle and backlight at a low setting. Estimated battery time: 13h. And it doesn't have the internal battery installed just yet. Nice!

After I capped the CPU at 400MHz, many applications became unbearably slow, the next thing I considered: at work I live 95% of the time at the command line anyway. What if I just try to ditch the GUI all together and see if I can get to a somewhat workable setup? I assumed most text based applications would be quite usable, even at a hard 400MHz cap.

So I installed fbterm and tmux and gpm. Those mostly make up the look and feel of my laptop. fbterm is nice because scrolling through the book I'm writing with less is noticeably slower. Terminal performance in fbterm though, is much better! It also lets you choose the font colour and size easily. Tmux mostly replaces my tiling window manager. And gpm enables the mouse + copy paste!

nmtui facilitates connecting to WiFi networks, elinks for web browsing, fbi for image viewing if need be, bluetoothctl is used to connect my bluetooth headphones and cmus is my music player. Then mutt for emails, calcurse for my calendar and cmatrix to overdo it all.

Then the main reason for the laptop: typing away. I'm using vim and groff to type a book I'm wThe only time I notice the CPU is capped at 400MHz is when I compile the document especially to PDF takes roughly 9 seconds. Compiling the document to UTF8 just under a second (Near instant uncapped).

Just a small note: X11 is still installed but I only launch it when I actually need a GUI application, eg viewing the compiled PDFs. Evince is extremely slow at 400MHz btw. I might look out for an alternative.

The laptop has 8GB of RAM. After a while that it's running, Debian runs at around 500~600MB of RAM. So yeah, I'm not overly worried about the current RAM prices 😋
But yeah, I'm sort of surprised how usable the whole actually is. I'm not saying it's truly convenient but at least not unworkable either 🤓

u/ConstructionSafe2814 — 20 days ago
▲ 9 r/bash

I've set up my ~/.bashrc so that if I press ESC-<capitalkey> it does some things. Now I want to explore vi mode and you guessed it, my custom key sequences no longer work :)

Is there an alternative?

Main reason for the ESC key "macro sequences" is that I'm trying to live as much without a desktop environment. And I can't remember all the commands I want to do stuff I rarely do. Or I don't want to a recursive search every time for example for echo 5000 > /sys/class/backlight/intel-backlight/brightness

I have eg ESC-[ASDF] to set different font sizes in my /dev/ttyX so I can have "zoom". I also have ESC-M to limit my CPU to 400MHz and set other tunables for absolute max battery life.

It's handy, but how do I combine this with trying out vi mode?

Also, are there potentially better alternatives to ESC-<somekey>?

reddit.com
u/ConstructionSafe2814 — 20 days ago
▲ 10 r/debian

I'm trying to make my Debian laptop in a tolerable state living entirely from the command line. One thing is getting music on my bluetooth headphones.

I'm using cmus to play music, I installed pipewire-audio. Then I connect to the headphones using bluetoothctl pair/connect. Surprisingly so, it worked immediately.

The problem I'm having now is that it works as long as I stay in the same virtual terminal (eg /dev/tty1). If I curl-alt-F2, the audio in the headphones is dropped instantly and continues over the laptop speakers.

I can work around this if I start both cmus and bluetootctl in a tmux session. But then I can only work from that tty. If I dare to switch, audio is dropped.

Does anyone know why this happens and how to deal with it?

I want more tty's becuase I also use setfont on other terminals to get a larger font (zoom). Some applications run well on small fonts, some on larger.

reddit.com
u/ConstructionSafe2814 — 21 days ago

Nothing special, but an appreciation post for my Daicamping DL-302 multitool.

I was cycling to work this morning when the chain flew off the sprocket. I think it screw up one link in the chain because it was visibly "off" and the chain kept on falling off.

No problem for the multi tool. I ... rearranged the link, so it's back in line with the rest and I can cycle home again 👌

u/ConstructionSafe2814 — 25 days ago