Comments

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

Dirk, to linux in Microsoft says a Copilot key is coming to keyboards on Windows PCs starting this month
@Dirk@lemmy.ml avatar

iit’s just a new keycap

Plus the configuration that is needed to remap the key back to the correct key code.

Dirk, to linux in Microsoft says a Copilot key is coming to keyboards on Windows PCs starting this month
@Dirk@lemmy.ml avatar

Like with the Windows key, this won’t be an option.

Dirk, to linux in Microsoft says a Copilot key is coming to keyboards on Windows PCs starting this month
@Dirk@lemmy.ml avatar

Yes. The Microsoft standard. Like the Windows key on all keyboards nowadays.

Dirk, to linux in Microsoft says a Copilot key is coming to keyboards on Windows PCs starting this month
@Dirk@lemmy.ml avatar

Do people actually want this?

Absolutely not. But this is the new standard now.

Dirk, to selfhosted in Uid/gid in docker containers don't match the uid/gid on the server?
@Dirk@lemmy.ml avatar

This is really dependent on […]

… basically anything. Yes. You will always find yourself in problems where the best practice isn’t the best solution for.

In your described use case an option would be having the application inside the container running with 10000:10001 but writing the data into another directory that is configured to use 1000:1001 (or whatever the user is you want to access the data with from your host) and just mount the volume there. This takes a bit more configuration effort than just running the application with 1000:1001 … but still :)

Dirk, to linux in Friendly reminder
@Dirk@lemmy.ml avatar

Woah, stop! No professionals!

Dirk, to linux in What's your favorite music player on Linux?
@Dirk@lemmy.ml avatar

I simply play music using mpv.

Dirk, (edited ) to linux in What's the best way to have a .bashrc that I can use throughout systems?
@Dirk@lemmy.ml avatar

I personally use yadm

I just use some code and Git.


<span style="color:#323232;">if [ ! -z "$PS1" ]; then
</span><span style="color:#323232;">    repo="${XDG_CONFIG_HOME}/dotfiles/"
</span><span style="color:#323232;">    br='origin/main'
</span><span style="color:#323232;">
</span><span style="color:#323232;">    title="e[1me[31mn ░▒▓e[7m    %s    e[27m▓▒░e[0mnn%snn"
</span><span style="color:#323232;">    status="$(git --git-dir="$repo" --work-tree="$HOME" status -s)"
</span><span style="color:#323232;">    diff=$(git --git-dir="$repo" --work-tree="$HOME" diff --stat --cached $br)
</span><span style="color:#323232;">
</span><span style="color:#323232;">    [ -n "$status" ] && printf "$title" "Uncommited changes!" "$status"
</span><span style="color:#323232;">    [ -n "$diff" ] && printf "$title" "Not yet pushed commits!" "$diff"
</span><span style="color:#323232;">
</span><span style="color:#323232;">    unset title status diff br
</span><span style="color:#323232;">    alias dotfiles="/usr/bin/git --git-dir=$repo --work-tree=$HOME"
</span><span style="color:#323232;">fi
</span>

The code runs when it’s an interactive shell with a PS1 prompt and just checks if any of the tracked files have changed or if there are commits that are not pushed. By configuration I ignore all untracked files. If something has changed or wasn’t pushed it always prints an annoying message.

Whenever I want to do something I use dotfiles … instead of git …, everything else works the same.

Dirk, to linux in Is it actually dangerous to run Firefox as root?
@Dirk@lemmy.ml avatar

This. Thread should have officially ended here.

Dirk, to selfhosted in Uid/gid in docker containers don't match the uid/gid on the server?
@Dirk@lemmy.ml avatar

Yep! The names are basically just a convenient way for referencing a user or group ID.

Under normal circumstances you should let the system decide what IDs to use, but in the confined environment of a docker container you can do pretty much what you want.

If you really, really, really want to create a user and group just set the IDs manually:


<span style="color:#323232;">FROM alpine:latest
</span><span style="color:#323232;">COPY myscript.sh /app/myscript.sh
</span><span style="color:#323232;">RUN addgroup -g 10001 mycoolgroup && adduser -D -u 10000 -G mycoolgroup mycooluser
</span><span style="color:#323232;">USER mycooluser:mycoolgroup
</span><span style="color:#323232;">CMD ["sh", "/app/myscript.sh"]
</span>

Just make sure to stay at or above 10000 so you won’t accidentally re-use IDs that are already defined on the host.

Dirk, to linux in Friendly reminder
@Dirk@lemmy.ml avatar

… the single worst company …

Dirk, to selfhosted in Uid/gid in docker containers don't match the uid/gid on the server?
@Dirk@lemmy.ml avatar

You don’t need to create the user first. Here’s the simplest I can come up with:


<span style="color:#323232;">FROM alpine:latest
</span><span style="color:#323232;">COPY myscript.sh /app/myscript.sh
</span><span style="color:#323232;">USER 10000:10001
</span><span style="color:#323232;">CMD ["sh", "/app/myscript.sh"]
</span>

This simply runs /app/myscript.sh with UID 10000 and GID 10001.

Dirk, to memes in Oh I love Trash
@Dirk@lemmy.ml avatar

I recently just cleanly got out of Facebook after a decade.

Deleted all my comments, all my media and all my posts, and left all groups and unfriended everyone, then changed my name and my URL and finally disabled/deleted my account.

I don’t miss anything.

Dirk, to selfhosted in Uid/gid in docker containers don't match the uid/gid on the server?
@Dirk@lemmy.ml avatar

It’s actually a suggested configuration / best practice to NOT have container user IDs matching the host user IDs.

Ditch the idea of root and user in a docker container. For your containerized application use 10000:10001. You’ll have only one application and one “user” in the container anyways when doing it right.

To be even more on the secure side use a different random user ID and group ID for every container.

Dirk, to linux in Is DNS Bloat too?
@Dirk@lemmy.ml avatar

Looks fine 👍

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #