harsh3466

joined 1 year ago
[–] [email protected] 3 points 1 month ago

That is a lovely setup. I'm gonna drop that into my bash_aliases so much more elegant than me adding the alias for each server.

[–] [email protected] 3 points 1 month ago (2 children)

I do have the servers in ~/.ssh/config. I just got tired of typing ssh server and wanted the be able to just type server to ssh in.

[–] [email protected] 2 points 1 month ago

Hahaha. Fucking autocorrect. Git log.

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago) (6 children)
alias gl='git log'
alias server-name-here='ssh server-name-here'

I have a bunch of the server aliases. I use those and gl the most.

[–] [email protected] 1 points 1 month ago

Banger. Love this song

[–] [email protected] 2 points 1 month ago

If you do go with nextcloud, use the docker AIO (all in one) setup. It's the officially supported method and it's worked really well for me.

[–] [email protected] 6 points 1 month ago* (last edited 1 month ago) (2 children)

I don't use OMV, but I have a nas server I built and here is my .02

  • set up an smb share in OMV for windows. Mounting that in windows should be trivial (don't hold me. Haven't used windows in years now, but last I used win10 smb was super easy to mount)
  • look into docker on OMV for deploying stuff. I run docker on my NAS and host a bunch of stuff including:
    • jellyfin for all the rips of my DVDs
    • navidrome for all the rips of my CDs
    • nextcloud to replace google stuff
    • radicale for my calendars
    • Joplin server for my notes
    • mealie for recipes
    • more stuff I can't think of right now
  • with docker, if you want a GUI for creating, managing and interacting with your stuff, look at Dockge and Portainer

Edit: added more stuff

[–] [email protected] 18 points 1 month ago

Eye of the World is the actual first book. I'd suggest starting there. Also, just a heads up, it gets to be a bit of a slog around book seven, but the finish is really worth it.

[–] [email protected] 2 points 1 month ago

I'll give ultrasonic a try. Thank you.

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago) (6 children)

Have you had problems on android with tempo not continuing playback?

I also run navidrome, and have tried tempo, substreamer, and another client I can't think of, and any of the clients that stream keep stopping playback after one song when the screen is locked.

I've given the client all the permissions for running in the background and using battery that I can and no matter what I do, it'll just stop after one song.

I'm on a pixel 7a with gOS.

For now I've settled on Poweramp with tla selection of the music on my phone since I can't fit it all in storage. Its been really frustrating.

[–] [email protected] 6 points 1 month ago

As a self-hoster, I love docker. It's been an amazing deployment tool.

9
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 

A body count implies death, and bonus connection of genre bending rap/hip hop

 

We got freeways/interstates in front yards.

 

Marty Casey was on the show Rockstar: INXS back in 2005 and wrote and performed this song as part of the show's competition

 

Connection: also a television show intro (Carry on My Wayward Son for Supernatural, Bad Things for True Blood)

 

This is just me celebrating a small win. I've been slowly learning bash scripting, and just now I was able to quickly write a simple bash script to automate a file moving task without referring to my notes or the web!

It's not a super complicated script, I'm just happy I'm starting to internalize the knowledge I've been building.

I've been organizing my media files after ripping our DVD collection. I had all the files for The Smurfs cartoon (love the Smurfs) in the main Smurfs show folder. I wanted to put them all into their respective season folders (Season.XX). Here's the script:

#! /bin/bash

for number in {01..09}; do
	find . -type f -name "The.Smurfs.S$number*" -exec mv {} Season.$number/ \;
done

I could have done it as a one liner, but I like to keep things like this for future reference.

 
 

EDIT WITH UPDATE: Operation went off without a hitch! I'm now up and running with the 512GB nvme drive! Next stop is dual booting nixos, which was the whole reason for switching to the larger drive.

ORIGINAL POST:

I’ve got a laptop running Arch (btw), with a 128GB nvme in it. The nvme has two partitions. EFI boot, and a luks encrypted lvm.

I’ve got a 512GB nvme I want to swap in. I think I can clone the device with dd, update the uuids, expand the lvm, and drop in the 512 nvme, but my searching hasn't given me a clear confirmation of this. Am I correct in my thought process, or am I setting myself up for disaster?

 
19
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
 

Edit 4: I think I've fixed the issue. I uninstalled vim, deleted ~/.viminfo and /etc/vimrc, then reinstalled vim. I jumped around a file a bit, went in and out of edit mode, and type a bunch of ~ and it didn't jump the text around at all. Still not sure what I did, but it appears this variation of turning it on and off again worked.

I'm hoping someone can help me with this.

I was holding my laptop while I had a vile open in vim, and I slipped, mashing a bunch of keys on the keyboard by mistake.

After doing this, I can't type the ~ character anymore. Anytime I try to type it, it jumps the text to the last line, putting the last line at the top of the editing screen so that's the only line of text showing.

I thought maybe I had set an option that would show up in ~/.vimrc, but there's no ~/.vimrc file. There is a /etc/vimrc file, and a ~/.viminfo file.

I've searched and had no luck finding out what I did to cause this behavior. I also tried looking through the vim manpage and couldn't find any info there either.

Edit 3: I just installed neovim and in neovim it acts as expected when I type the ~. Something I did notice is that in vim, I now have a blinking block cursor in insert mode as well as in visual mode, while in neovim, it's a block cursor in visual mode and a vertical bar cursor in insert mode. I think this was the normal behavior in vim prior to whatever the heck I did.

Hoping someone knows what the heck I did. Thank you!

Edit: clarified what happens when I try to type ~

Edit 2: added details of the .vimrc and .viminfo files

 

Had to do them quietly so I didn't wake her.

 

Edit 2: Fixed! Thanks to @[email protected] for this github issue link.

The solution is in the last comment suggesting to set ManageForeignRoutingPolicyRules=no in /etc/systemd/networkd.conf

Original post is below...

So I've got something I don't quite know how to find a solution for and I'm hoping this lovely community can help!

I've been experimenting with Arch (btw) with Hyprland to learn more about the install process, and linux in general, and to see if I like tiling window managers (I do).

I've installed this on a thinkpad I use for tinkering/learning, and the problem I'm encountering is that when I open up the laptop and the system resumes from suspend, the VPN connection is active, but broken, or maybe leaky.

What I mean by that is prior to suspending, with the vpn connection active, if I run curl ip.me, the result is the vpn server ip, Which is the expected behavior.

After resuming from suspend, when I run curl ip.me, I get my naked home ip instead of the vpn ip.

At first I thought I was losing the vpn connection, but when I check the status with sudo wg, it will show the vpn connection is still active, like so:

interface: wg0
  public key: pubkeyhere
  private key: (hidden)
  listening port: 38014
  fwmark: 0xca6c

peer: peer here
  endpoint: ip.endpoint.here:51820
  allowed ips: 0.0.0.0/0
  latest handshake: 7 seconds ago
  transfer: 8.07 KiB received, 3.77 KiB sent

I've tried searching for this to figure out what's happening, and I'm not finding anything, likely because I don't know how to properly query for results.

What I've been doing is just manually running an alias on resume that brings the vpn connection down, and then back up again with:

sudo wg-quick down wg0 && sleep 2 && sudo wg-quick up wg0

I've tried different variations on a script placed in /usr/lib/systemd/system-sleep to no avail. I have verified that that the script is running properly. I tested first with echo "sometext" > ~/somefile for both pre and post and the script is executed on suspend and again on resume.

Script example:

#! /usr/bin/bash

case $1/$2 in
	pre/*)
		;;
	post/*)
		sleep 2
		/usr/bin/wg-quick down wg0
		sleep 2
		/usr/bin/wg-quick up wg0
		;;
esac

Despite this script executing what is essentially the same command as my alias on resume, my home ip is what results from running curl ip.me.

Other details that may or may not be relevant.

I've got a [email protected] systemd service that runs on startup to connect to the vpn.

System is Arch with Hyprland, iwctl to manage the wifi connection. I'm not using hyprlock. When I close the laptop it suspends the session, and when I open it back up it just resumes it, no lock screen or password needed.

I don't really understand what's going on here, and I haven't been able to find any information that helps me figure out what's happening or how to address it. Any help would be greatly appreciated!

Edit: just wanted to add that I've also looked through journalctl and I haven't found anything useful (to me) there.

 

Growing up these donuts were a new year's tradition. I hadn't had them for decades, so I decided to learn how to make them. They're super easy to make and super delicious. It's a fried donut with a wonderfully crispy outer shell and a soft pillowy interior. They're traditionally topped with warm honey, cinnamon, and chopped walnut (I also toasted the walnuts).

view more: ‹ prev next ›