Ancestors

Toot

Written by squid_slime@lemm.ee on 2024-08-21 at 17:32

What is the most duct-tape thing you've done to Linux?

https://lemm.ee/post/40221370

=> More informations about this toot | More toots from squid_slime@lemm.ee

Descendants

Written by xp19375@sh.itjust.works on 2024-08-21 at 17:46

sssd didn’t work well with my company’s AD server, which would cause repeated authentication failures until I restarted sssd. I rigged up a bash script which would restart sssd any time xscreensaver logged an auth fail.

=> More informations about this toot | More toots from xp19375@sh.itjust.works

Written by MajorHavoc@programming.dev on 2024-08-21 at 17:56

I regularly recommend configurations to peers that are arguably impossible for normal humans.

I love to run stuff on Raspberry Pi, and I fear no gcc compile flag. (Ok. That’s a bold faced lie, even I fear a couple of them.) So I frequently forget the bullshit I had to do to get something weird running on a random Pi.

=> More informations about this toot | More toots from MajorHavoc@programming.dev

Written by macattack@lemmy.world on 2024-08-21 at 17:57

Prior to switching (upgrading?) to Wayland, Debian KDE crashed under X11 regularly when waking from hibernation. Restarting the plasma shell made it operatable again, so I created an alias and regularly rebooted the DE shell 2-3x a day:

alias damnTaskbar=‘killall plasmashell ; kstart plasmashell &’

=> More informations about this toot | More toots from macattack@lemmy.world

Written by Eager Eagle on 2024-08-21 at 21:45

I still occasionally need to use one of these two

alias kplasma='plasmashell --replace & disown'

[#] when kwin crashes or acts weird

alias kbug='if [ "${XDG_SESSION_TYPE}" = "x11" ]; then kwin_x11 --replace & disown; else kwin_wayland --replace & disown; fi'

=> More informations about this toot | More toots from eager_eagle@lemmy.world

Written by DeltaWingDragon@sh.itjust.works on 2024-08-25 at 19:05

Damn Taskbar is gold

=> More informations about this toot | More toots from DeltaWingDragon@sh.itjust.works

Written by eldavi@lemmy.ml on 2024-08-21 at 18:02

intel won’t allow its linux drivers to work above wifi 4 speeds in ap mode, so i created a kvm virtual windows machine with pci pass through on the wifi nic plus ip masquerade and now i’m getting wifi 6 speeds in ap mode.

=> More informations about this toot | More toots from eldavi@lemmy.ml

Written by Gregor on 2024-08-21 at 18:18

Oh god, this is horrible. I beg you to find a better solution 🙏

=> More informations about this toot | More toots from gregor@gregtech.eu

Written by eldavi@lemmy.ml on 2024-08-21 at 20:54

it’s horrible in more ways that you would expect and what other solutions exist with intel hardware in ap mode on linux?

=> More informations about this toot | More toots from eldavi@lemmy.ml

Written by zelifcam on 2024-08-21 at 18:37

this is beautiful

=> More informations about this toot | More toots from zelifcam@lemmy.world

Written by eldavi@lemmy.ml on 2024-08-21 at 20:55

it’s a pita every time something goes wrong.

=> More informations about this toot | More toots from eldavi@lemmy.ml

Written by Avid Amoeba on 2024-08-21 at 18:41

I think NDISwrapper is still maintained for issues like this.

=> More informations about this toot | More toots from avidamoeba@lemmy.ca

Written by eldavi@lemmy.ml on 2024-08-21 at 20:53

i wasn’t aware that you could use ndiswrapper on an access point; i’ll look into it.

=> More informations about this toot | More toots from eldavi@lemmy.ml

Written by Avid Amoeba on 2024-08-21 at 23:09

Lame. 😔

=> More informations about this toot | More toots from avidamoeba@lemmy.ca

Written by unexposedhazard@discuss.tchncs.de on 2024-08-21 at 22:19

Lots of laptops just use a removable m.2 wifi card. Have you considered replacing it with something thats properly supported? I know hardware costs money but not that much probably.

=> More informations about this toot | More toots from unexposedhazard@discuss.tchncs.de

Written by AmbiguousProps on 2024-08-22 at 01:26

This is the real solution, just stop using the built in stuff and free yourself

=> More informations about this toot | More toots from AmbiguousProps@lemmy.today

Written by eldavi@lemmy.ml on 2024-08-22 at 02:05

It’s not a laptop and the hardware is fully capable of ap mode support in it’s older iteration if drivers; Intel made the decision to remove that capability.

=> More informations about this toot | More toots from eldavi@lemmy.ml

Written by eldavi@lemmy.ml on 2024-08-22 at 02:03

It’s not a laptop; it’s a mini desktop that I obtained to serve as a wifi router; storage server; firewall; VPN; media server; remote file storage; and my cat’s favorite warm napping surface.

the wifi nic is embedded on the motherboard and it was chosen since it included a high gain antenna; among other qualities.

Wifi works fine if you use it in ordinary client mode w full Linux support and the hardware is capable of fully supporting ap mode in older Linux kernels; it’s just that Intel decided remove higher speed ap mode support in the latest versions of the driver to force people to buy thier more expensive wifi nics.

=> More informations about this toot | More toots from eldavi@lemmy.ml

Written by unexposedhazard@discuss.tchncs.de on 2024-08-22 at 07:13

Ah okay thats the one kind of device where there is nothing you can really do true.

=> More informations about this toot | More toots from unexposedhazard@discuss.tchncs.de

Written by eldavi@lemmy.ml on 2024-08-23 at 02:49

it’s an ordinary desktop; the screwiness is introduced by intel’s decision to remove ap capability from its recent drivers.

=> More informations about this toot | More toots from eldavi@lemmy.ml

Written by TimeSquirrel on 2024-08-21 at 18:06

I've set Raspberry Pis to auto-reboot themselves at night if they are being used for headless network services that need to be available 24/7, just to clear out memory leaks or other things that may have gotten locked up. Not sure if that's duct tape or just a standard practice. They aren't the most stable things sometimes. They're known for power supply and SD card issues.

=> More informations about this toot | More toots from TimeSquirrel@kbin.melroy.org

Written by leisesprecher@feddit.org on 2024-08-21 at 18:37

I did this with my sensors running in Pi picos.

There was some wonkyness with some of the electrical stuff and since I have no idea how to debug that, I just restarted them every 24 hours and at start “drained” all pins by repeatedly reading from them.

I’m reasonably sure, this setup is cursed enough to kill an electrical engineer on sight, but it kind of works good-ish enough.

=> More informations about this toot | More toots from leisesprecher@feddit.org

Written by BrianTheeBiscuiteer@lemmy.world on 2024-08-21 at 18:11

Don’t remember the specifics but I had a key combo setup to force a soft reset in my DE. Occasionally a kernel or driver update would fuck up my video and make the system unusable but still live. I try to avoid hard resets.

=> More informations about this toot | More toots from BrianTheeBiscuiteer@lemmy.world

Written by dotslashme@infosec.pub on 2024-08-21 at 18:13

Actually really few instances of jerry rigging, but I do remember during my distro-hopping days where I used a binary gcc package to compile a more optimized binary of gcc. At the time, that felt pretty weird, but looking back I see why.

=> More informations about this toot | More toots from dotslashme@infosec.pub

Written by everett@lemmy.ml on 2024-08-21 at 18:16

Possibly my light/dark mode scripts. They change my Plasma theme, which is honestly most of the job, but also set the matching GTK theme, set the new theme in running Konsole sessions, do a bunch of manual sed edits on conf files for applications that don’t follow system theming, finally restarting plasmashell to clean up the occasional edge case where a tray icon is supposed to follow the theme but doesn’t.

=> More informations about this toot | More toots from everett@lemmy.ml

Written by iiGxC@slrpnk.net on 2024-08-21 at 22:01

Oh yeah I do this, I’ll raise you that mine also sshs into my server to update the editor theme

=> More informations about this toot | More toots from iiGxC@slrpnk.net

Written by 🅿🅸🆇🅴🅻 on 2024-08-21 at 18:18

I’m rebooting my router every week via a crontab because some dynamic dns update process fails form time to time and I find it hanging. No time to debug the actual problem.

=> More informations about this toot | More toots from 314xel@lemmy.world

Written by Snot Flickerman on 2024-08-21 at 18:23

I have an old laptop running some basic services.

I have taken it apart before to replace the hard drive with an SSD, but I never replaced the dead CMOS battery because you have to literally completely disassemble it to get at the battery.

So I have a cronjob that runs on startup to change the system clock to the right time-zone.

=> More informations about this toot | More toots from SnotFlickerman@lemmy.blahaj.zone

Written by piexil@lemmy.world on 2024-08-24 at 02:55

Debian (and Ubuntu) has the package “fake-hwclock”. I’m sure other distros do too.

Periodically saves the time info to disk and resets the clock with it on boot.

=> More informations about this toot | More toots from piexil@lemmy.world

Written by mrvictory1@lemmy.world on 2024-08-21 at 18:24

I ran chmod 777 /dev/uinput so AntiMicroX worked on Wayland. The PC was intented to be used as an HTPC. A Dualshock 3 would be the remote and KDE Plasma Bigscreen would be used to launch Linux native apps ie. Firefox and Android apps via Waydroid, hence the Wayland requirement. AntiMicroX would bind gamepad inputs to arrow keys, enter, ESC, volume up/down, mouse navigation, left/right click etc. The whole setup was duct tape, user unfriendly and it ultimately did not solve the problem that sent me down this rabbit hole: Internet was unstable even with an ethernet cable so it had no advantage over the crappy Android TV stick that had trouble streaming anything but Chromecast.

A close contender is having to disable Internet when launching a specific online only game otherwise performance halves.

There is also a guide I uploaded to Reddit that describes how to import ringtones from Linux to iOS that has 8 steps and involves rebooting your phone. And another guide to run 2 games at once and stream one of thrm while playing the other locally.

I have a problem with half working duct tape solıtions.

=> More informations about this toot | More toots from mrvictory1@lemmy.world

Written by Feathercrown@lemmy.world on 2024-08-22 at 14:58

Neat idea. Btw what’s that character you used in place of a “u” in “solıtions”? It looks an “i” lost its tittle

=> More informations about this toot | More toots from Feathercrown@lemmy.world

Written by mrvictory1@lemmy.world on 2024-08-22 at 15:13

In Turkish we have ı/I and i/İ instead of i/I. u is next to ı, I made a typo.

=> More informations about this toot | More toots from mrvictory1@lemmy.world

Written by InternetCitizen2@lemmy.world on 2024-08-21 at 18:37

Side of the case fell off.

=> More informations about this toot | More toots from InternetCitizen2@lemmy.world

Written by slazer2au on 2024-08-21 at 18:41

Had a Centos VM that kept slipping time. Every week it would loose about 30min. No amount of NTP syncing got the time correct until manual intervention.

Msp couldn’t work it out, couldn’t rebuild the server for infrastructure reasons, and only that server had the issue. The other 3 VMs on that host were fine.

Cron job on one server took it current time, sshed to the dodgy server and configured the correct time.

=> More informations about this toot | More toots from slazer2au@lemmy.world

Written by cizra@lemm.ee on 2024-08-21 at 18:43

Mounting a Samba share and moving my LVM pvolumes of / onto a losetup’ed file on it, while running the system. Bass ackwards.

=> More informations about this toot | More toots from cizra@lemm.ee

Written by chtk@feddit.nl on 2024-08-21 at 18:51

Good grief. Why?

=> More informations about this toot | More toots from chtk@feddit.nl

Written by cizra@lemm.ee on 2024-08-21 at 20:21

I needed to redo partitions, but didn’t want to reboot.

=> More informations about this toot | More toots from cizra@lemm.ee

Written by chtk@feddit.nl on 2024-08-21 at 21:01

That’s not even a bad idea then.

One of my machines has a boot partition that’s a bit too small, on an otherwise LVM setup.

=> More informations about this toot | More toots from chtk@feddit.nl

Written by cizra@lemm.ee on 2024-08-21 at 21:16

I’d recommend a Linux installer on a memory stick, instead. It’s bound to have less network lag.

=> More informations about this toot | More toots from cizra@lemm.ee

Written by chtk@feddit.nl on 2024-08-21 at 21:38

Nah, it’ll be fine.

I might have a large enough USB SSD laying around some where. I could probably use that instead.

=> More informations about this toot | More toots from chtk@feddit.nl

Written by cizra@lemm.ee on 2024-08-22 at 05:50

Does your FS support online resizing? EXT4 doesn’t, so you’d have to use an installer stick.

Be super careful about partition sizes. I once tried to shrink my FS to an exact size, then shrink the LV to the same size - it ended up corrupting my FS. After that time, I started undersizing the FS, then resizing LV, finally expanding the FS again.

Have backups.

=> More informations about this toot | More toots from cizra@lemm.ee

Written by chtk@feddit.nl on 2024-08-22 at 06:32

Does your FS support online resizing?

Yeah. I mainly use btrfs; it supports online growing and shrinking.

Be super careful about partition sizes. […]

I know. I have done plenty of same device partition resizing. I know the pit falls, and for safety shrink the FS to below what the LV is going to be.

Have backups.

Thanks for the reminder. I’ve been meaning to set up snapshot backups for this machine using rsnapshot as an experiment. I mainly use Dirvish

=> More informations about this toot | More toots from chtk@feddit.nl

Written by cizra@lemm.ee on 2024-08-22 at 06:54

I use rsync with a custom shell script to manage the number of incremental copies. You’ll probably prefer something less janky.

=> More informations about this toot | More toots from cizra@lemm.ee

Written by chtk@feddit.nl on 2024-08-22 at 08:55

That sounds pretty much like what Dirvish and rsnapshot do. Both wrap rsync.

=> More informations about this toot | More toots from chtk@feddit.nl

Written by tibi@lemmy.world on 2024-08-22 at 20:06

Did it work? There’s a huge chance of data corruption if you are copying the disk of a running system.

=> More informations about this toot | More toots from tibi@lemmy.world

Written by cizra@lemm.ee on 2024-08-23 at 05:36

It didn’t, but due to unrelated reasons. The root FS was mounted r/w, so the regular IO eventually overwhelmed the network’s ability to copy stuff.

But no worries, a reboot later, with unmounted FS, I finished the same thing.

Copying the disk of a running system appears to be fine in LVM. Copying is done block-by-block, and the only thing it has to do to make it atomic is: in case of a conflict (writing into a block that’s being copied right now), postpone writing to a block until it’s copied, then finish the write in the new location. Or else, abort the copy, finish the write, then copy again.

=> More informations about this toot | More toots from cizra@lemm.ee

Written by Avid Amoeba on 2024-08-21 at 18:45

On the client side of a relayd-based wireless bridge using OpenWrt, I discovered there’s a bug in relayd that made the process hang after it move so many gigs of data. I made a cron job that pings the network relayd makes accessible. If the ping fails, it nukes relayd. Of course this relies on a live machine to ping. If this machine dies for so e reason, the crown job would just keep killing relayd over and over again. 🥹

=> More informations about this toot | More toots from avidamoeba@lemmy.ca

Written by Shadow on 2024-08-21 at 18:47

Had a zfs array on an adaptec raid card. On reboot the partition table would get trashed and block the zfs pool from coming up, but running fdisk against the disk would recover it from the backup.

Had a script to run on reboot that just ran “fdisk -l” on every disk, then brought up the zfs pool. Worked great for years until I finally did a kernel upgrade that resolved it.

=> More informations about this toot | More toots from Shadow@lemmy.ca

Written by UNY0N@lemmy.world on 2024-08-21 at 18:54

This certainly isn’t of the same caliber as some of these other comments, but I found it to be fitting to the topic.

Last year I was having problems getting the game stellaris working on arch. (I use bazzite now, btw) My solution was the following:

If any one of those step was left out, it didn’t work. I’m no linux expert, so I didn’t have the skills to actuality find the real problem.

=> More informations about this toot | More toots from UNY0N@lemmy.world

Written by prole@lemmy.blahaj.zone on 2024-08-21 at 20:15

Even when Proton doesn’t work, it still somehow works.

Magic.

=> More informations about this toot | More toots from prole@lemmy.blahaj.zone

Written by UNY0N@lemmy.world on 2024-08-22 at 07:35

Indeed. Proton for the win yet again.

=> More informations about this toot | More toots from UNY0N@lemmy.world

Written by Julian on 2024-08-21 at 20:40

I… What? Why does that work? How did you figure this out?

=> More informations about this toot | More toots from julianh@lemm.ee

Written by UNY0N@lemmy.world on 2024-08-22 at 07:34

Blind trial and error, mostly. Making the game folder read-only was the real “duct-tape” part, it occued to me to do that after steam kept “updating” the game and breaking my solution.

=> More informations about this toot | More toots from UNY0N@lemmy.world

Written by SavvyWolf on 2024-08-21 at 18:56

I one crossgraded a debian server from x86 to x86_64.

=> More informations about this toot | More toots from savvywolf@pawb.social

Written by arcayne@lemmy.today on 2024-08-23 at 08:55

absolute madlad

=> More informations about this toot | More toots from arcayne@lemmy.today

Written by MonkderVierte@lemmy.ml on 2024-08-21 at 18:57

Bootstraping.

=> More informations about this toot | More toots from MonkderVierte@lemmy.ml

Written by Random Dent on 2024-08-21 at 18:57

I have a folder full of scripts tied to aliases that fix various things when they go wonky, and I’ve long since forgotten what any of them do. I just know if xxx app stops working, I type fix_xxx into the terminal and then it does a bunch of stuff and then it works again lol.

Also I have a bunch of aliases tied to common tasks, like e1 = reboot, e2 = shutdown etc. I have no idea where that habit came from.

=> More informations about this toot | More toots from CrabAndBroom@lemmy.ml

Written by MonkderVierte@lemmy.ml on 2024-08-21 at 19:14

I dare you to try grep -Irn alias in your home dir.

=> More informations about this toot | More toots from MonkderVierte@lemmy.ml

Written by Random Dent on 2024-08-21 at 21:27

I’m not even sure what that would do! Presumably list every time the word alias appears in every file across the whole home directory or something like that?

=> More informations about this toot | More toots from CrabAndBroom@lemmy.ml

Written by MonkderVierte@lemmy.ml on 2024-08-22 at 10:56

Rtfm!

No, seriously, -I avoids binaries, -r recursively, -n print matching file and line number.

=> More informations about this toot | More toots from MonkderVierte@lemmy.ml

Written by Random Dent on 2024-08-22 at 15:25

Alright, I’m gonna try it and see how long this takes!

=> More informations about this toot | More toots from CrabAndBroom@lemmy.ml

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113001205516726165
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
750.234507 milliseconds
Gemini-to-HTML Time
32.378027 milliseconds

This content has been proxied by September (3851b).