linux

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

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.

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!

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)

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

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.

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.

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

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…

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

0x4E4F, in Best practices in mounting NAS shares?

Mounting it in fstab is a bad idea… in home even worse.

Just make some desktop entries with the shares and that should be enough.

Tiuku,

What’s so wrong with fstab?

0x4E4F, (edited )

Well, for one, it’s network attached storage. If it’s not present in the network for one reason or another, guess what, your OS doesn’t boot… or it errors during boot, depending on how the kernel was compiled and what switches your bootloader sends to the kernel during boot. Second, this is an easy way for malware to spread, especially if it’s set to run after user logon.

Molecular0079,

I agree, for most cases just mount it via your File Manager of choice. If you’re using it as a backing storage for another server, then that’s a use case where fstab is fine.

NotAnArdvark,

I’ve found that Dolphin, at least, is much slower with network mounts than a CLI-based “mount”.

Molecular0079,

Lately performance has improved dramatically. A year ago, it used to be about half-speed, but now it’s basically on par with a CLI-mount.

dtrain,

If I mount it in the file manager, how do I reference that location in the terminal to say do copy operations to it?

0x4E4F,

It has to have a mount point somewhere. Just double click the desktop entry, that will mount it wherever you told it to and then you can copy to that location, easy peasy 😉.

Molecular0079,

Which file manager are you using?

In Nautilus, you can right click anywhere and click Open in Console, at which point it will open up a terminal leading to a gvfs mount directory.

In KDE, it is slightly more annoying because there’s no right click option to quickly open it in terminal, but like gvfs, there’s a mount directory that you can access at /run/user//kio-fuse-/smb/.

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

Wayland will reach feature parity by the right? … Right?

KISSmyOS,

Wayland is just a protocol. The WMs, compositors and applications need to implement the features the X server used to provide.
Those that don’t will become useless when X is gone.

ElderWendigo,

Right so I guess I should have over specified that I hope ALL the other bits that actually make it function the same will also catch up and for example something as basic as forwarding GUI programs will simply work without jumping through a bunch of tedious flaming hoops with pitfalls on either side. It doesn’t really matter to me that Wayland has decided it’s somebody else problem.

LeFantome,

“Forwarding GUI programs” already works. Check out Waypipe.

LeFantome,

For many uses, Wayland has feature parity now or is even the superior option. That is how it can be the default on so many systems ( including RHEL9 as per the article ).

Compositors that do not provide the features that uses want will fail to compete ( what you mean by become useless I assume ).

That said, different users will want different things and, unlike X, Wayland allows competing compositors to address different communities. Some compositors will lack features some users want while offering features that other users need. A composite targeting embedded use cases may not need multi-monitor or fractional scaling features for example. A security focussed option may think that global hot-keys and external lock-screens are anti-features. I think the Wayland world could be quite interesting.

ScottE,

X11 is also just a protocol, and will live on with or without Xorg.

possiblylinux127,

Its pretty close and is so much better in terms of stability and reliability

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

Framework laptop is pretty good.

Bene7rddso, (edited )

No way you’re getting that under at $300

lautan, 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?

It’s a good idea. I recommend it.

drwho, 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?

As long as you follow the instructions you should be okay.

wowwoweowza,

Thank you — seems like a nice place to start to move beyond starting a browser.

PrivateNoob, in https://redstrate.com/blog/2023/11/my-work-in-kde-for-november-2023/

Why did this post get downvotes? Is it because of the URL title?

sir_reginald,
@sir_reginald@lemmy.world avatar

yeah, that makes it look like a bot posted it

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