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.
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-firmwareandlinux-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?
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.
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.
I've tried uninstalling and removing signal-desktop (which removes electron as a dependency) then installing electron explicitly and re-building signal-desktop, but same thing, unfortunately.
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.
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).
You mean chown /? I didn't explicitly create /media partition. Everything directly under / e.g. /etc/usr are and should stay root:root, right? So I'm confused.
Even after executing gio mime video/x-matroska mpv.desktop, the mkv file still opens with Firefox (some other mkv files open with mpv) when I do xdg-open video.mkv. Here's the output of gio info video.mkv. Any ideas? Much appreciated.
I'm not really sure if all the steps the wiki is describing is relevant--do I follow all the steps there or just change no to yes for the state.plugged option under Jack Headphone? Any caveats?
Hmm, I think it might be a bug with the program I'm using (fsearch). I was doing what you suggested with a file manager but it turns out pcmanfm correctly uses mpv as the default application for the mkv file, but when playing the file with fsearch, it uses Firefox. Very strange, I will submit a bug report to fsearch.
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?
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 /?
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).
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.
I am using Btrfs's native RAID support for RAID 1 on Arch Linux--I'm not sure if I need to disable write cache on Arch and/or for Btrfs's RAID (I don't think so).
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.
With
zfs-dkms, not able to load the zfs module after rebooting. Is this a common problem or expected? I needed to downgradelinux(and I supposelinux-firmwareandlinux-headers) in the meantime. I see zfs-linux still haslinux=5.7.12.arch1as its dependency so maybe I shouldn't have updated? But I thoughtzfs-dkmsshould in theory "just work". What's the best practice regarding this?Disclaimer: total noob.
Other comment (don't want to tag ortgano_ again) mentions it's a "bug" with Firefox 75 that affects window managers like i3 and bspwm.
https://k2s.cc/file/33ed6fb939c4b/DPMX-005.mp4
How are you able to choose which kernel to boot on startup? And assuming you use
zfs-dkms, on update to bothlinuxandlinux-lts, it auto-builds zfs modules for both if e.g. you're currently running thelinuxkernel?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.
Is
encryptsafer thansd-encryptsince the latter saves passphrase to kernel keyring then? Unlikesd-encrypt,encryptwon'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
sudois 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.Is using
sd-encryptsaving passphrase to kernel keyring a concern in terms of security?What does the root user being able to dump the master key imply and is it a security concern?
How does the root user have access to the passphrase in clear and will
encryptalso have this problem? How can I see this myself?Thanks.
i use arch btw
Default makepkg.conf shipped with pacman, which is currently
PKGEXT='.pkg.tar.xz'.LUKS2 too? How?
I've tried uninstalling and removing signal-desktop (which removes electron as a dependency) then installing electron explicitly and re-building signal-desktop, but same thing, unfortunately.
Do you use
git pullorgit pull -r? I'm having a problem with subsequentgit rebase masterafter 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.
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 tochownwhen I used my flash drives when I first started out using Ubuntu/Linux).Oh, I see. So just continue what I'm doing and there's no way to make it more convenient? Thanks.
You mean
chown /? I didn't explicitly create/mediapartition. Everything directly under/e.g./etc/usrare and should stayroot:root, right? So I'm confused.Even after executing
gio mime video/x-matroska mpv.desktop, the mkv file still opens with Firefox (some other mkv files open with mpv) when I doxdg-open video.mkv. Here's the output ofgio info video.mkv. Any ideas? Much appreciated.I'm not really sure if all the steps the wiki is describing is relevant--do I follow all the steps there or just change
notoyesfor thestate.pluggedoption underJack Headphone? Any caveats?After I already re-enabled Headphones.
TIL reading is hard.
Hmm, I think it might be a bug with the program I'm using (fsearch). I was doing what you suggested with a file manager but it turns out pcmanfm correctly uses mpv as the default application for the mkv file, but when playing the file with fsearch, it uses Firefox. Very strange, I will submit a bug report to fsearch.
here's my fstab. So because the first mounted subvolume for the partition
crypt_rootis the linethose are the mount options that apply for all other subvolumes in
crypt_root? That would make the mount options of all other subvolumes incrypt_rootlike those mounted on/home,~/build, and~/.cachein my fstab redundant, right? For the subvolume mounted on/home, I have the mount optionsnosuid,nodevnot 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/homebut 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 usingnodatacowinstead?Much appreciated.
Edit: Finally found the answer here.. Thanks.
Here's my fstab. So because the first mounted subvolume for the partition
crypt_rootis the linethose are the mount options that apply for all other subvolumes in
crypt_root? That would make the mount options of all other subvolumes incrypt_rootlike those mounted on/home,~/build, and~/.cachein my fstab redundant, right? For the subvolume mounted on/home, I have the mount optionsnosuid,nodevnot 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/homebut still not use it for the first mounted subvolume which is on/?Thanks.
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).
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.
I am using Btrfs's native RAID support for RAID 1 on Arch Linux--I'm not sure if I need to disable write cache on Arch and/or for Btrfs's RAID (I don't think so).