Any advantages to this over scp, samba/nfs, or even something like LocalSend?
- 0 Posts
- 96 Comments
Vector@lemmy.worldto Linux@lemmy.ml•I found the easiest way to transfer files to and from my Linux PC - and it's so fast [ZDNET]English25·4 个月前
Vector@lemmy.worldto Linux@lemmy.ml•Is there a simple GUI application alerting the user when a process is not running?English1·4 个月前Oh very neat, that works great! A much better solution.
Vector@lemmy.worldto Linux@lemmy.ml•Is there a simple GUI application alerting the user when a process is not running?English1·4 个月前Good call on DBUS. Setting XDG_RUNTIME_DIR seems to be enough to fix it up, I’ll update my other response.
Vector@lemmy.worldto Linux@lemmy.ml•Is there a simple GUI application alerting the user when a process is not running?English7·4 个月前I know you’re looking for a desktop solution, but here’s something that you can try in case you can’t find one – I’m betting that having a solution is better than having none!
So I just had a quick muck around:
- You can use
pgrepto detect if a process with a given name is running - You can write to
/dev/pts/0to trigger a desktop notification - You can drop it into a cron job to run it automatically on a schedule
As a test, the following command will look for a process called
syncthingand send a desktop notification if it can’t find it:pgrep syncthing || echo "Syncthing is not running > /dev/pts/0"To set up a cron job:
- open a terminal
- open the editor with
crontab -e(if you need to pick an editor,nanowill probably be your best bet, it’s easiest to use) - in the editor, add the following line to the end of the file:
0 * * * * pgrep syncthing || echo "Syncthing is not running" > /dev/pts/0- The
0 * * * *sets up the schedule (on the 0th minute of every hour, every day of the month, every month, on every day of the week) - Everything after that is the command to run
- The
- save and quit
If you ever want to get rid of it, just open the cron file again (
crontab -e) and remove the line.I gave this a go on KDE under Wayland and it seems to do the trick. Good luck, I hope you find what you’re looking for!
[edit-1] added step (2) to install libnotify-bin in case you don’t have it already. [edit-2] added
XDG_RUNTIME_DIRto step (4) [edit-3] removed references to libnotify, replace with /dev/pts/0 (Nice one, @sun_is_ra@sh.itjust.works !)- You can use
Vector@lemmy.worldto Linux@lemmy.ml•Is there a simple GUI application alerting the user when a process is not running?English5·4 个月前Hello! I don’t know of a desktop watchdog application that will do this for you, but you may be able to achieve this with a simple cron job. Probably just an hourly crontab entry that looks for a running process with the right name, and uses something like
notify-sendto send an alert if it’s not found. I’ll jump on the computer and have a quick play, though I run gnome not plasma so I don’t know how well it will translate.
Sure, I would guess that the same goes for just about any contest that can’t be objectively measured.
At least they’re trying to do fun, interesting, and useful. 🙂
Not sure if you’re familiar or not with the Ig Nobel Prize (the “ig”is important - it’s not the same as the Nobel Prize), but it’s a kind of parody-but-not of the Nobel prize. It typically covers off-beat or weird science, to “honor achievements that first make people laugh, and then make them think.”
It’s about as quirky as the science it covers:
Miss Sweetie Poo, a little girl who repeatedly cries out, “Please stop: I’m bored”, in a high-pitched voice if speakers go on too long
Throwing paper planes onto the stage is a long-standing tradition. For many years Professor Roy J. Glauber swept the stage clean of the airplanes as the official “Keeper of the Broom”. Glauber could not attend the 2005 awards because he was traveling to Stockholm to claim a genuine Nobel Prize in Physics.
Calling each subsequent event the “first” is definitely on brand!
Vector@lemmy.worldto Today I Learned@lemmy.world•TIL that Hachikō, an Akita dog in Japan, waited at Shibuya Station every day for 9 years after his owner died, eventually becoming a national symbol of loyalty.English20·7 个月前I knew what was coming and I looked anyway. I don’t know why, because it will never not make me sad.
Vector@lemmy.worldto Shitty Ask Hilarious Chaos @hilariouschaos.com•How do I outsource my shit ?English2·8 个月前Outsourcing your outsourcing. Meta AF.
I had a poke around but couldn’t find an exact match. At face value it does appear to be a molex variant, though.
Perhaps you might have some luck thumbing through the molex catalog: https://www.molex.com/en-us/products/connectors/wire-to-wire-connectors
Missed opportunity - the hands on the clock should clearly be at the 6 and 9 positions.
I suspect it’s a reference to James Doohan’s amputated finger.
Nice one! Reminds me a little of LEXX.
Vector@lemmy.worldtoUnited States | News & Politics@midwest.social•Expect more fake eggs made of colored marshmallows or even potatoes on this year's Easter spreadEnglish1·10 个月前Soon they’ll be making eggs out of chocolate, just imagine!
Vector@lemmy.worldtoNew York Times gift articles@sopuli.xyz•Orange Alert: What Caused the Colors on This Snowy Owl?English3·11 个月前Save you a click: nobody knows.
“The department has no plans to try to capture it for any reason,” Ms. Cleveland said, “so we’re unlikely to ever have a conclusive explanation for this coloring.”
Vector@lemmy.worldto Not The Onion@lemmy.world•Texas official warns against “measles parties” as outbreak keeps growingEnglish52·1 年前Something something South Park, something something Ookie Mouth.
🫠
Vector@lemmy.worldto Selfhosted@lemmy.world•Which selfhosted TTS provider should I use with home assistant?English2·1 年前Don’t know much about the training side of things, but I have Piper set up with home assistant using the Wyoming protocol and it just goes. Some of the out-of-the-box voices are pretty decent too.
Vector@lemmy.worldto Futurology@futurology.today•Researchers suggest an ion engine could get a telescope to the Solar Gravitational Len point 81 billion kms from Earth in 13 years, and thus allow high resolution imaging of nearby exoplanets.English19·1 年前For comparison, Voyager 1 is almost 24.8 billion km away from Earth right now and has been traveling since 1977 (near on 50 years).
Haven’t read the article yet, but if the headline is anything to go by, very cool if it can be done.
Edit:
Just read the article. Disappointingly but unsurprisingly:
The paper defined an ideal power plan that can output 1 kW per kg of weight.
This is currently well outside the realm of possibility, with the best ion thruster power sources coming at something like 10 W per kg and even nuclear electric propulsion systems outputting 100 W per kg. Some potentially better technologies are on the horizon, but nothing tested in the literature would meet this requirement yet.
You may need to log out and log back in for the addition of the sudo group to take effect.
The default config sudo should be fine, but if the above doesn’t work then you may also want to look up “visudo” to check/modify the sudo config.
For everyone who wanted to know what a fish would look like if it was a sock puppet, now you know.
Nature’s wild.