linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

UntouchedWagons, in Best practices in mounting NAS shares?
@UntouchedWagons@lemmy.ca avatar

I use systemd mount files instead of fstab, that way I can specify a network dependency in the off chance there’s no network connection. Plus I can have other services like jellyfin depend on that mount file so it starts after the share is available.

steel_moose,
@steel_moose@lemmy.world avatar

Dipping my toes into this as well. Would you care to share the contents of your .mount unit file?

If I understand it correctly systemd generates unit files at boot using fstab 🤔. Probably not possible to specify the network dependency in fstab.

UntouchedWagons,
@UntouchedWagons@lemmy.ca avatar

<span style="color:#323232;">#cat /etc/systemd/system/mnt-data.mount
</span><span style="color:#323232;">[Unit]
</span><span style="color:#323232;">Description=nfs mount script
</span><span style="color:#323232;">
</span><span style="color:#323232;">[Mount]
</span><span style="color:#323232;">What=192.168.0.30:/mnt/tank/Media
</span><span style="color:#323232;">Where=/mnt/data
</span><span style="color:#323232;">Type=nfs4
</span><span style="color:#323232;">
</span><span style="color:#323232;">[Install]
</span><span style="color:#323232;">WantedBy=remote-fs.target
</span>

The file name has to match the folder upon which the share is mounted with hypens instead of forward slashes

dtrain,

Thank you!

4am,

I need to start doing this

TCB13,
@TCB13@lemmy.world avatar
Rockslide0482,

in fstab, there’s a nofail option that I started using when mounting NFS and other disks that may be missing and I don’t want to kill my bootup

youngGoku, (edited ) in Ubuntu is my daily driver but I'm thinking of setting this up on my never used Raspberry PI -- anyone using it? How tough do you think it will be as a first project?

<span style="color:#323232;">chmod +x ./install.sh 
</span><span style="color:#323232;">./install.sh
</span><span style="color:#323232;">
</span>

Hmm usually not a secure practice to do this

0000,

What’s the alternative to doing this? Is it safer to read the script first and then execute it as

sh ./install.sh?

youngGoku,

Read the official docs to build from source.

duncesplayed,

Those instructions are from the official docs, and install.sh comes from the source repo. It’s an annoying script (it basically runs apt, npm, make, on your behalf…thanks, I can do that myself), but if you’re trusting the repo source to begin with, I don’t think it’s any less secure.

wowwoweowza,

I have a great deal to learn…

macattack, (edited ) in 13" or smaller Linux laptop - best replacement for aging chromebook?

As of next month, I’ve been using Chromebooks for 10 years however I also came to the same conclusion re: Google/ChromeOS over the summer.

Initially, I bought a Windows laptop but the keyboard layout (specifically the function keys) felt absolutely foreign, even after I wiped it and installed Debian. In retrospect, my theory is that a $500 Chromebook has worse internals but a much better keyboard/trackpad than a Windows equivalent, and that the keyboard layout is more user-friendly in a browser-first world. Eventually, I went back to my Chromebook but with a twist.

I’m biased, but since you seem like you know your way around Linux and tinkering, one suggestion that hasn’t been mentioned is that you buy a new Chromebook and turn it into a Chrultrabook (aka a Chromebook w/ ChromeOS completely wiped & replaced w/ Linux).

I’ve been running one of the last few months and it’s been an overall pleasant experience. Perhaps most important for me is that the tutorial includes keyd to reprogram the keyboard shortcuts to mirror the Chromebook layout. The community is growing and responsive, especially on the Linux side.

Documentation website

Supported Chromebooks

Helpful Discord Chat

Brand new Forum that is still being built

Nimrod,

Thanks for the resources. I think this could be the way forward. I’ll do some research first, as I need something super stable, since I won’t be the final user. So if it breaks, I’m on the hook.

Do you have any suggestions on possible candidate Chromebooks?

macattack,

I just did some digging on Best Buy and Amazon for sales, but mostly came across larger models or models that were MediaTek/Snapdragon (the chrultrabook team almost exclusively works on intel devices).

I’d say your best bet is to go to the supported devices list, and Ctrl + F for ‘13’ or ‘11’ to highlight the smaller-sized chromebooks and then check to see what’s available, or to jump in the Discord and pose the question to those in the linux channel

Nimrod,

Nice. That’s the move. I am finding it more and more difficult to find smaller laptops/chromebooks these days. If I want a big screen, I’ll sit down at my desktop!

Thanks again for the resources

teawrecks, in Best practices in mounting NAS shares?

The NAS should be regularly backed up/snapshotted, so that even if you/a bad process deletes everything, you can restore it all quickly and easily.

LastYearsPumpkin,

A backup is an emergency protection, not a primary plan. This attitude is dangerously close to making the backup a critical part of their uptime.

teawrecks,

Having something rm your entire NAS is an emergency, not something that should be happening regularly. If it is, you’ve got bigger problems.

Shareni, in How to take actions on multiple docker containers at once

I’m using docker packages for Doom Emacs. The main one is docker.el. On top of being faster and easier to use than the cli, you can also do some pretty neat stuff like use dired+tramp to browse files and open them in Emacs.

MigratingtoLemmy, in 13" or smaller Linux laptop - best replacement for aging chromebook?

Dell inspiron 15, unfortunately. Going for about $300 the last time I checked, add in another stick of RAM and an SSD, perfect linux machine right there

b9chomps, in 13" or smaller Linux laptop - best replacement for aging chromebook?
@b9chomps@beehaw.org avatar

How about a used Thinkpad? Like the X280. 12.5". Touch. Depending on your region you can get a pretty good deal if you are OK with some scratches or other faults

cows_are_underrated,

You can also buy them refurbished, which is what I did with my school laptop(yoga x380)

YIj54yALOJxEsY20eU, in Ubuntu is my daily driver but I'm thinking of setting this up on my never used Raspberry PI -- anyone using it? How tough do you think it will be as a first project?

Do you listen to Linux Unplugged podcast? They just mentioned this lol

null,

And if you don’t listen to LUP, you should really listen to LUP. And all the other Jupiter podcasts.

wowwoweowza,

Thank you! I shall start listening!

xlash123, in How to take actions on multiple docker containers at once
@xlash123@sh.itjust.works avatar

Just a few shortcuts that may help:

  • docker ps is an alias for docker container ls
  • as long as it can be uniquely identified, a prefix of the container ID can be used instead of copy pasting the entire ID
  • you can use container names instead of IDs
  • tab completion works for container names

As someone else suggested though, docker compose is probably best suited for this job, but hopefully this helps in other situations.

eclipse, in Help me decide my first distro for Audio.

If you are new to Linux just use Fedora. Everything will just work and you can install all your apps via the store.

SatyrSack,

Specifically, I’d recommend Fedora Jam. It has all sorts of audio stuff preconfigured/preinstalled for musicians

labs.fedoraproject.org/en/jam/

Bluefruit, in Why didn't anyone remind me the dual booting exists?

imo dual booting is kinda clunky. Id rather have a vm of windows tbh. I dont like restarting my pc to swtich OS.

But hey if you like it, more power to you man.

Rooskie91,

Are there any performance losses running Windows VM to play games? Asking as I am new to this.

JPAKx4,

Only did it bc anti cheats. I would use vms otherwise.

Bluefruit,

Ah I gotcha. Another option im considering is using a separate pc for windows and using a kvm to switch between them. That may be a good option for you as well if you can swing it.

JPAKx4,

Unfortunately no, I’m trying to save money atm.

merthyr1831, in The Linux kernel has been accidentally hardcoded to a maximum of 8 cores for nearly 20 years

Would’ve been nice of them to compile the kernel with a fix applied to see how much of an impact it has (though even in the post they seem to suggest that it’s not that impactful unless you run massive clusters)

tkf, in Best practices in mounting NAS shares?
@tkf@infosec.pub avatar

I’m curious, what file system do you use to mount your share? (SMB, SSHFS, WebDAV, NFS…?) I’ve never managed to get decent performance on a remote-mounted directory because of the latency, even on a local network, and this becomes an issue with large directories

NotAnArdvark,

Agreed on the latency issues. I tested SMB and NFS once and found them to be pretty much the same in that regard.

I’m interested to test iSCSI, as for some reason I think it might be better designed for latency.

dan, (edited )
@dan@upvote.au avatar

If you want the lowest latency, you could try NBD. It’s a block protocol but with less overhead compared to iSCSI. github.com/NetworkBlockDevice/nbd/tree/master

Like iSCSI, it exposes a disk image file, or a raw partition if you’d like (by using something like /dev/sda3 or /dev/mapper/foo as the file name). Unlike iSCSI, it’s a fairly basic protocol (the API is literally only 9 commands). iSCSI is essentially just regular SCSI over the network.

NFS and SMB have to deal with file locks, multiple readers and writers concurrently accessing the same file, permissions, etc. That can add a little bit of overhead. With iSCSI and NBD, it assumes only one client is using the file (because it’s impossible for two clients to use the same disk image at the same time - it’ll get corrupted) and it’s just reading and writing raw data.

Rockslide0482,

main thing to note is that NFS is an object based storage (acts like a share) where iSCSI is block based (acts like a disk). You’d really only use iSCSI for things like VM disks, 1:1 storage, etc. For home use cases unless you’re selfhosting (and probably even then) you’re likely gonna be better off with NFS.

if you were to do iSCSI I would recommend its own VLAN. NFS technically should be isolated too, but I currently run NFS over my main VLAN, so do what ya gotta do

phx,

Yeah, there are a few limitations to each. NFS, for example, doesn’t play nicely with certain options if you’re using a filesystem overlay (overlays), which can be annoying when using it for PXE environments. It does however allow you to mount in several remote machines simultaneously, which I don’t think iSCSI would play nicely with.

SMB though has user-based authentication built in, watch can be quite handy esp if you’re not into setting up a whole Kerberos stack in order to use that functionality with NFS.

SpaceCadet,
@SpaceCadet@feddit.nl avatar

I’ve found that NFS gives me the best performance and the least issues. For my use cases, single user where throughput is more important than latency, it’s indistinguishable from a local disk. It basically goes as fast as my gigabit NIC allows, which is more or less the maximum throughput of the hard disks as well.

A benefit of NFS over SMB is that you can just use Unix ownerships and permissions. I do make sure to synchronize UIDs and GIDs across my devices because I could never get idmapping to work with my NAS.

2xsaiko,
@2xsaiko@discuss.tchncs.de avatar

idmapping

idmap only works with Kerberos auth, but iirc I didn’t have to set anything up specifically for it. Though I’ve also never really had to test it since my UIDs match coincidentally, I just tested with the nfsidmap command.

possiblylinux127, in Red Hat Enterprise Linux 10 Dropping The X.Org Server Except For XWayland

Makes sense

PseudoSpock, in https://redstrate.com/blog/2023/11/my-work-in-kde-for-november-2023/
@PseudoSpock@lemmy.dbzer0.com avatar

Downvoting for the thumbnail image.

astraeus,
@astraeus@programming.dev avatar

Upvoting for the thumbnail image

Cute fox girl gets +1

TheGrandNagus,

The original Linux mascot almost was a Fox girl called Xenia.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #