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
- 0 Posts
- 13 Comments
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>
#!/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 runsystemctl --user daemon-reload
andsystemctl --user enable startup.service --now
, this will enable and start the service in one go.I also recommend adding the following lines under
[
]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
12510198@lemmy.blahaj.zoneto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Bulk remove trackers (qBit) - how?English10·6 months agoHeres 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.#!/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)))
12510198@lemmy.blahaj.zoneto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•I have tried I2P, here is my take.English13·7 months agoI use qBittorrent, I have used I2PSnark in the past, and it felt clunky and slow, and it was kinda difficult to use
12510198@lemmy.blahaj.zoneto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Has anyone tried I2P for torrenting? How is it?English13·7 months agoIve 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.
12510198@lemmy.blahaj.zoneto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•*Permanently Deleted*English9·8 months agoIdk 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
12510198@lemmy.blahaj.zoneto Free and Open Source Software@beehaw.org•What is the best FOSS Matrix client?English5·10 months agoNheko is my favourite client, it uses QT and is written in C++, its lightweight and works well on my machines with low resources, it also respects my system theme
12510198@lemmy.blahaj.zoneto Free and Open Source Software@beehaw.org•What is the best FOSS Matrix client?English1·10 months agodeleted by creator
12510198@lemmy.blahaj.zoneto Minecraft@lemmy.world•Ok guys what do we think of the new texture?English9·11 months agoI think it kinda looks like a lollipop
12510198@lemmy.blahaj.zoneto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•How to reset downloads on AAAD?English3·1 year agoI was thinking about that too, I cant think of much this ID is good for other than fingerprinting users. It just sucks that there isnt much of anything that can be done about it without a rooted device or privacy rom.
12510198@lemmy.blahaj.zoneto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•How to reset downloads on AAAD?English8·1 year agoI did a internet search on “AAAD” and I found this github repository. I’m not sure if it is the same, but they seem to serve the same purpose and share the same name. I took a look into the code and I saw something about
Settings.Secure.ANDROID_ID
inAboutPaymentActivity.kt
, so I did some searching on that, and according to a person on stackoverflow,Settings.Secure.ANDROID_ID
is a ID unique to every app on your phone, this ID will persist across uninstalls and reinstalls. The only reason it should change is if the package name or signing key changes. Also it should be different for different users on the phone, but im guessing it might not be possible to add more users on android auto, im not sure, I’ve never really used one.Now, about circumventing it, you could modify the source code and remove the license verification checks and rebuild, but this might not be legal, I’m not to good with legal stuff, but the license had a few words that suggest it might be non-free, but if software licenses arent an issue, feel free! There is also the option of just resigning the apk with your own key, which should change the ID, I believe you can do this in luckypatcher with one click, but lucky patcher is kind of sketchy and might not be able to work on android auto, I dont know much about them.
I hope this helps, im sorry I couldnt find any like anything that could just reset it and be done with it, maybe someone else might chime in with a more helpful answer.
12510198@lemmy.blahaj.zoneto Firefox@lemmy.ml•Do you trust saving CC numbers in Firefox?English81·1 year agoIf Firefox can read it from disk without a password, any other program running as your user can read it from disk without a password. But to prevent this you can encrypt your Firefox profile with a password.
I use SSH with port fowarding to securely access my services running on my server to anywhere I have internet. Its easy to setup, just expose any device running a ssh server like openssh to the internet, probably on a port that isnt 22, and with key only authentication.
Then on whatever device you want to get your services on you can do like
ssh -p 8022 -L 8010:192.168.75.111:80 user@serverspublicip
Where
8022
is the port of the ssh server exposed to the internet (default is 22),8010
is the port its gonna bind to on the device you are using the client (it will bind to 127.0.0.1 by default),192.168.75.111:80
is the address/hostname and the port of where your services are on your local network, anduser@serverspublicip
is your username and the ip address of where your ssh server is.You can also use ssh to make a SOCKS proxy in your network like this
ssh -g -D 1080 user@serverspublicip
This will make a socks proxy into your network on your device at
127.0.0.1:1080
. All of this can also be done on just about any mobile phone running android by using termux.
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 toforking
, I think this could solve the problem, they also have anExecStop
line, id set it toExecStop=fusermount -u %h/googledrive
so it will unmount properly whenever you manually stop the service. So try settingType=forking
, and adding theExecStop
line, hopefully this will stop systemd from restarting it when it hasnt actually exited