Skip to content

u/rieje

In this archive from Jun 2016 to Nov 2021

62
posts
77
comments
0
media
769
score
2 saved before deletion

Curious what you find missing in bspwm not in Sway/i3? I like bspwm's philosophy with its modularity via config and sxhkd (it's why I use sxhkd with i3 now), but last time I checked it didn't have tabs. I'm slowly making the move to Wayland where compositors like Sway and River (which is inspired by dwm/bspwm) require much more control that I don't like because it makes switching from one compositor to another a heavier investment (no compositor-agnostic custom keybindings like with sxhkd). Curious if you've tried River.

1 points

With zfs-dkms, not able to load the zfs module after rebooting. Is this a common problem or expected? I needed to downgrade linux (and I suppose linux-firmware and linux-headers) in the meantime. I see zfs-linux still has linux=5.7.12.arch1 as its dependency so maybe I shouldn't have updated? But I thought zfs-dkms should in theory "just work". What's the best practice regarding this?

Disclaimer: total noob.

2 points

How are you able to choose which kernel to boot on startup? And assuming you use zfs-dkms, on update to both linux and linux-lts, it auto-builds zfs modules for both if e.g. you're currently running the linux kernel?

Does your system really make it as simple as rebooting to using a different kernel after setting up the boot environment? Would love to do the same.

1 points

No or it depends. You have to know it is similar to saving your passphrase in a file readable only by root. Some people will consider it not ok.

Is encrypt safer than sd-encrypt since the latter saves passphrase to kernel keyring then? Unlike sd-encrypt, encrypt won't have passphrase in clear?

I have a LUKS system set up for years being a Linux noob this is the first time I've read about potential concerns regarding the root user and how it relates to encryption. For simplicity's sake and the fact that sudo is used so frequently, my root password is quite simple and my LUKS passphrase is very strong. I suppose I wouldn't wouldn't really gain much from using a stronger root password.

1 points

Do you use git pull or git pull -r? I'm having a problem with subsequent git rebase master after the initial when one when I created the repo. I'm following this method of dotfile management (and this one as well). I made a thread here and I would really appreciate it if you would take a quick look to see if your workflow is different from mine and/or what problem I'm experiencing.

Much appreciated.

1 points

Oh, I see. So just continue what I'm doing and there's no way to make it more convenient? Thanks. I was thinking if adding an entry to fstab works but I think that only works when booting with the drive plugged in. Maybe a hook is possible for when plugging in device (udev?), or maybe what I'm looking for isn't worthwhile and/or good practice.

I'm not sure how more beginner-friendly distros like Ubuntu handle this as I think chowning isn't necessary but I might be mistaken (I don't recall needing to chown when I used my flash drives when I first started out using Ubuntu/Linux).

1 points

here's my fstab. So because the first mounted subvolume for the partition crypt_root is the line

UUID=d07daf32-637e-4b11-92ce-b21230fcf32d	/         	btrfs     	noatime,compress=lzo,ssd,space_cache,subvolid=257,subvol=/@,subvol=@	0 0

those are the mount options that apply for all other subvolumes in crypt_root? That would make the mount options of all other subvolumes in crypt_root like those mounted on /home, ~/build, and ~/.cache in my fstab redundant, right? For the subvolume mounted on /home, I have the mount options nosuid,nodev not specified in the first mounted subvolume shown above--do these get applied because they are not btrfs-specific options or do they not get applied because only the first mounted subvolume matters? If the latter, how can I use these options for /home but still not use it for the first mounted subvolume which is on /?

Lastly, I can create a separate subvolume on the same partition and use chattr +C (I don't have to create a subvolume and can use a folder instead, but I want to create a subvolume for the virtual machines to exclude it from being snapshotted). How does this compare to creating a separation, formatting it to btrfs, and using nodatacow instead?

Much appreciated.

1 points

Edit: Finally found the answer here.. Thanks.


Here's my fstab. So because the first mounted subvolume for the partition crypt_root is the line

UUID=d07daf32-637e-4b11-92ce-b21230fcf32d	/         	btrfs     	noatime,compress=lzo,ssd,space_cache,subvolid=257,subvol=/@,subvol=@	0 0

those are the mount options that apply for all other subvolumes in crypt_root? That would make the mount options of all other subvolumes in crypt_root like those mounted on /home, ~/build, and ~/.cache in my fstab redundant, right? For the subvolume mounted on /home, I have the mount options nosuid,nodev not specified in the first mounted subvolume shown above--do these get applied because they are not btrfs-specific options or do they not get applied because only the first mounted subvolume matters? If the latter, how can I use these options for /home but still not use it for the first mounted subvolume which is on /?

Thanks.

2 points

You mentioned being frugal and wanting a two drive NAS? I wouldn't bother with server equipment. I would (and

probably will) built a Raid 1 NAS out of one of the ASROCK boards (I have spare RAM) or a cheap Atom SOC off

ebay. Couple caveats - that 10W TDP CPU on the ASROCK board isn't super well supported yet - runs fine in

Windows, supposedly support is there in recent Linux kernels (certainly was a problem with older kernels), and

I can't speak for the BSDs. Not sure if you were planning to run some sort of NAS software package, but it is

probably a roll your own situation for now on the Apollo Lake stuff.

I live in NJ, so 14 cents/kWh. Data is important--I currently only have RAID 1 on the data (not considered a

backup), simply for protection against HDD failure. I have a 8 TB WD Red that I am planning on using it as a

backup drive connected to the server for. I don't need the backup to be readily available. Since I plan on

using borg which encrypts backed up data, storing offsite doesn't really matter, but data should not be with a

third-party service. Error checking/bitrot protection is important--I use Btrfs for that (but haven't done any

reading to implement that yet). TO be honest, a bunch of the data is most likely retrievable online, but is

very time-consuming to, so that's why I consider it important.

As for the media server--I'm not exactly sure what transcoding video entails. For example, on both my laptop

and desktop, I'm running Arch Linux (which I'm comfortable with using CLI with) and I want to be able to play

videos from a HDD connected to the server on either systems--so I guess I don't need transcoding and this is

not an issue? Is transcoding only needed when I'm a machine where it can't normally play the file? Another

option is to transcode the entire file as a copy (not on-the-fly) when I do need to transcode (like playing on

a PS3) but I assume that's time consuming (but couldn't that be set up to done by the server when I'm not busy)

or space-efficient (especially if I only plan to watch that content once and delete the file).

I guess there's a difference between frugal and being cheap--I'm willing to spend a decent amount (~$1000) but

I only want to spend what I need. With regards to electric bill, it might not be expensive looking at the

price, but f0r a service that presumably runs 24/7/365 or close to it and benefiting only me, long-term cost

efficiency via energy-efficiency is important to me. It's a constant cost, so I'm willing to invest more now to

reduce that type of cost. I mentioned 2 drives because it sounds like something I can get away with without

drastically introducing greater long-term cost. For example, do I really need access to every media file in my

library at any given time? Not really, so I can afford to not have ~12 additional drives running all the time

in idle for the majority of the time--2 is enough for me at the moment.

As for the server hardware, I guess anything that's not a Raspberry Pi (if I want to do some transcoding) is

more than adequate then? People so far have recommended NAS servers (QNAP, Synocology), NUC, and SOC). Still

not sure how to decide which of these is best for my needs (I was considering something similar to a desktop

setup with a Xeon processor before I heard of these). I have experience building a desktop system but have no

knowledge of more server-appropriate hardware (like you said, I probably won't need it, but I want a decent home server that's not just some temporary hack which I can't make use of if I do want to do more capable things in the future).

1 points

My budget is ~$1,000. I'm actually frugal (hence this post regarding a server for energy-efficiency), but I have no issues spending more money to "invest" in the long-term. For a server, I suspect it won't experience any significant improvements in the next decade or two so I figured it would be worth it to get something nicer (i.e. more energy-efficient, durable, quiet, less wearing, less heat, etc.). Electric bill is a concern because it is something that is a constant cost over time and is more relevant for someone like me who lives by himself (e.g. spending $X amount per month for 1 person is more "expensive" than spending that same amount for a household of 5 people).

I never even realized NUC is a thing, but I'm really curious how it compares to something like an HP MicroServer or a QNAP. Are they all really similar and only differ in terms of specs or are they for different purposes? I mention these specific examples because I know that the MicroServer is popular on Reddit and I've heard stuff about a NAS server from the Raspberry Pi subreddit, but honestly I don't know how they differ.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.