Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)
Posts
2
Comments
37
Joined
2 yr. ago
  • It looks like its creating a new process and going in the background and systemd cant track it anymore, so it thinks that its exited and tries restarting. I took a link Oscar sent, and I saw that there is a systemd service and the Type is set to forking, I think this could solve the problem, they also have an ExecStop line, id set it to ExecStop=fusermount -u %h/googledrive so it will unmount properly whenever you manually stop the service. So try setting Type=forking, and adding the ExecStop line, hopefully this will stop systemd from restarting it when it hasnt actually exited

  • I dont think systemd will expand the ~, try replacing the ExecStart=/bin/bash ~/.local/bin/ocamlfuseStartup.sh line with ExecStart=/bin/bash %h/.local/bin/ocamlfuseStartup.sh, this will expand to your home directory, if its still giving a not found error, try running which google-drive-ocamlfuse in a terminal and make sure the path is correct

  • The 203 error you got is because your script isnt a valid executable, it needs to have a shebang at the top, you can change it to something like this and set the executable bit with chmod +x <file>

     undefined
        
    #!/usr/bin/env bash
    google-drive-ocamlfuse ~/googledrive
    
    
      

    this tells it to run using bash as the interpreter.

    Im not familliar with this google drive software, but im figuring that its exiting with an error code cuz its running as a system service, and $HOME probobly isnt set so ~ doesnt expand and the software gets an invalid path.

    But I recommend using a user service for this, it will run when you login, you should be able to copy the service file you already have into ~/.config/systemd/user/ and run systemctl --user daemon-reload and systemctl --user enable startup.service --now, this will enable and start the service in one go.

    I also recommend adding the following lines under [Service]

     undefined
        
    Type=simple
    Restart=always
    RestartSec=60
    
    
      

    idk if the software will exit if it loses network or wifi or anything, but this will have it automatically restart after 60 seconds, should it exit for any reason.

    If you need it to run before login, it is possible to do with a system service, but it will need a bit more setup

  • Heres a python script I made up from just modifying another script I use, it depends on qbittorrent-api, but to use just fill out the connection info and add all the trackers you want to remove in the TRACKERS array, I've included 2 rarbg trackers just as an example.

     undefined
        
    #!/usr/bin/env python3
    import qbittorrentapi
    import sys
    
    TRACKERS = [
            "udp://9.rarbg.to:2770/announce",
            "udp://9.rarbg.me:2730/announce"
     ]
    
    conn_info = dict(
        host     = "qbittorrent.localhost",
        port     = 80,
        username = "admin",
        password = "PASSWORD"
    )
    
    def main (argv, argc):
        qbt_client = qbittorrentapi.Client(**conn_info)
    
        try:
            qbt_client.auth_log_in()
        except qbittorrentapi.LoginFailed as e:
            print(e)
            return 1
    
        for torrent in qbt_client.torrents_info():
            #urls = []
            #for tracker in torrent.trackers:
                #print(tracker)
                #urls.append(tracker.url)
            
            torrent.remove_trackers(urls=TRACKERS)
    
            #torrent.add_trackers(urls=TRACKERS)
    
        qbt_client.auth_log_out()
        return 0
    
    if __name__ == "__main__":
        sys.exit(main(sys.argv, len(sys.argv)))
    
    
      
  • Ive been torrenting on I2P with qBittorrent for a lil while now, its not as fast as the clearnet, the fastest speed down ive ever got so far is 1.7MB/s, and this was on a torrent with loads of seeders. Its possible to increase your tunnel quantity and lower the amount of hops each tunnel has for better performance, but you will have less anonymity with less tunnel length.

    But so far its been nice, there is no need to think about NAT/Firewall, as all peers can communicate with each other, but it doesnt have as much content as the clearnet, so I try to cross-seed what I can. But when im torrenting, I try to go I2P-first, and then fallback on the clearnet if I couldnt find what I was looking for.

  • I'm using Nheko, I know for sure that it works on Linux, I'm using it on my machine, but on the github it lists MacOS and Widnows in the tags, so I figure they are supported. It's a native program written in Qt and C++.

  • Idk if im allowed to link it here, but for anyone having trouble accessing TG, they offer an onion service on tor, which is gonna be a whole lot harder to block, you can find the link on their official proxy list

  • I made this userscript to put the vote count in comments back beside the vote button because the new one is kind of hard to see, its not the prettiest script (idk much about javascript), but I've tested it in Librewolf with Violentmonkey and it does work, hope it helps someone else!

     js
        
    // ==UserScript==
    // @name        New script blahaj.zone
    // @namespace   Violentmonkey Scripts
    // @match       https://lemmy.blahaj.zone/post/*
    // @grant       none
    // @version     1.0
    // @author      -
    // @description 8/24/2024, 3:32:47 PM
    // @run-at      document-idle
    // ==/UserScript==
    
    function main ()
    {
        var parent_comments = document.getElementsByClassName("comment list-unstyled"); 
        for (var i = 0; i < parent_comments.length; /*i++*/)
        {
            /*console.log(i);*/
            var comments = parent_comments[i].getElementsByTagName("article");
            for (var j = 0; j < comments.length; j++)
            {
                var upvote_button = comments[j].getElementsByTagName("button")[1];
                
                if (upvote_button.attributes["vote_count_patched"] != null)
                {
                    i++;
                    continue;
                }
                
                var post_votes = upvote_button.attributes[2].textContent.split(' ')[0];
                upvote_button.append(' ' + String(post_votes));
                upvote_button.attributes["vote_count_patched"] = true;
                i++;
            }
        }
    }
    /*var mutation = null;
    var mutation_observer = new MutationObserver(function(m) { mutation = m; console.log("new mutation logged yo");} );
    mutation_observer.observe(document, { childList: true, subtree: true }); */
    
    var mutation_observer = new MutationObserver(main);
    mutation_observer.observe(document, { childList: true, subtree: true});
    
    main();
    
      
  • Gentoo Linux @reddthat.com
    12510198 @lemmy.blahaj.zone

    It's not much, but I've made my first working Gentoo install!

    It took about 23 hours to get it booted under its own power using a binary kernel. And on the 4th day (today) I've managed to get a custom kernel working. Gentoo has been very fun to use and to customize, and it's very fast and responsive, even on my old hardware and with a hard disk, browsing heavy webpages with Librewolf is no problem at all. I've been sleeping on Gentoo for WAY to long.

  • Ive only had to setup a nvidia system once, so I might be missing some packages, but I think pacman -Rns nvidia nvidia-utils lib32-nvidia-utils should get rid of all of it.

  • WARNING: doing this will absolutely DESTROY YOUR SYSTEM, PERMANENTLY!!!

    But if you wish to continue, you can erase all the EFI variables using the rm utility, I dont think you will be able to completely zero out the chip on the system from inside of Linux as its read-only.

    But to delete all the EFI variables, cd into /sys/firmware/efi/efivars, if this directory is not availiable, either the efivarfs is not mounted, or you are booted in legacy BIOS mode. But once you are in this directory, run chattr -i ./* as root or sudo to remove the immutable bit on all the files, then run rm ./* as root. This WILL break your system. Only do this if you know how to restore your system using like a chip programmer.

  • This happened to me too. I had to grab the box that comes up and resize it like I would with a normal window, mine glitched a lot when I tried it, try resizing it as far as you can, it will try and glitch back, but just keep fighting it until it becomes a usable size, then log out of Plasma and log back in, and then you can size it back down to a normal size. Hopefully there will be an official fix for this soon

  • What about something like this:

     sh
        
    for i in /media/johann/5461-000B/DCIM/100MEDIA/*.AVI; do newpath="$HOME/Public/240321/$(basename "$i" | sed 's/^IMAG/240321_/g')"; ffmpeg -i "$i" -ss 00:00:00 -t 00:00:20 "$newpath" && rm "$i"; done
    
      
  • Linux @lemmy.ml
    12510198 @lemmy.blahaj.zone

    SOLVED: Is there a way to enable the systemctl switch-root command after initrd.target in systemd version 255? (Arch Linux)

    Ive been tryna figure this out all day, Ive read the manual for systemctl and I didnt see anything about switch-root after the initrd target. I did see a --force option, however it didnt do anything. Before the upgrade to version 255, I would use a script or manually mount the partition, and then I would just do like systemctl switch-root /mnt and it would just switch to the other system in an instant as if I booted it normally. But ever since this update it just prints Not in initrd, refusing switch-root operation. and does nothing.

    Is there a configuration file I can edit to allow switch-root after the initrd? Or is it like hard-coded and systemd would need patching and recompiling to allow for this? If so is there a way to just trick systemd into thinking its in the initrd and just let me switch-root?

    I was dissappointed when I found out I couldnt just switch-root anymore. Any help, ideas, or suggestions will be much appreciated, thank you!

    EDIT: To switch root in the new