@Dirk@lemmy.ml
@Dirk@lemmy.ml avatar

Dirk

@Dirk@lemmy.ml

🏠 Hamburg, Germany
🚃 Daily Commuter
🐧 Linux User
🎮 Part-time Gamer
💻 Hobbyist Coder
🔗 0x7be.de

🇬🇧 / 🇩🇪

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

Dirk,
@Dirk@lemmy.ml avatar

No person should be allowed to own more residential property than they’re realistically need for living.

Alternative github frontends?

Github has become more bloated, slower and more user-hostile with each update (just like all other big corp platforms). SPA navigation slow like hell, the “new” file viewer/browser is hardly usable in my opinion, code search does not work without login, etc. So are there any good alternative FE where the following work (read...

Dirk,
@Dirk@lemmy.ml avatar

+1 for Forgejo. Runs butter smooth even on not so high-end machines. You can even mirror your GitHub repos.

Plus: It is not owned by a for-profit organization.

Is it actually dangerous to run Firefox as root?

I have a few Linux servers at home that I regularly remote into in order to manage, usually logged into KDE Plasma as root. Usually they just have several command line windows and a file manager open (I personally just find it more convenient to use the command line from a remote desktop instead of directly SSH-ing into the...

Dirk,
@Dirk@lemmy.ml avatar

This. Thread should have officially ended here.

Dirk,
@Dirk@lemmy.ml avatar

For the same reason a lot of programming languages can’t calculate 0.1+0.2 properly.

https://lemmy.ml/pictrs/image/800d9121-8b45-421a-b3a1-3a866750899f.png

There’s a website explaining it: 0.30000000000000004.com

What's the best way to have a .bashrc that I can use throughout systems?

So, I just found out about a programme called SynthShell which kind of does the work for you and gives you a nice looking shell, the thing is that this also creates some config files and other stuff in my system, instead of just one .bashrc file to edit. What would be the best way to learn to have a nice looking bash where I can...

Dirk, (edited )
@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,
@Dirk@lemmy.ml avatar

You should try Linux Mint. It’s a good distribution for new Linux users. It’s easy to understand, has a good community with plenty of solutions for all types of problems and it is not too specific.

Gaming with Steam on Linux works without any major issues except when it comes to games that intentionally made run on Windows only due to their DRM. I suggest using the Flatpak variant of Steam so you won’t clutter your system with too many weird dependencies.

Dirk,
@Dirk@lemmy.ml avatar

I just installed it and never changed any permissions. Maybe you confuse it with AppImage?

Dirk,
@Dirk@lemmy.ml avatar

I’m running Hyprland on my Intel laptop without any issues (but I’m doing not much multimedia on it). But on my Nvidia desktop, oh no. Screen recording is flakey (especially with multiple sources and audio recording to different channels) in OBS, video editing impossible due to heavy UI flickering, gaming has worse performance, watching YouTube has noticable lag.

For just opening your browser and doing non-multimedia stuff it’s fine I guess.

Dirk,
@Dirk@lemmy.ml avatar

I’m running a good old GTX 1080.

Dirk,
@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,
@Dirk@lemmy.ml avatar

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

Dirk,
@Dirk@lemmy.ml avatar

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

Dirk,
@Dirk@lemmy.ml avatar

Do people actually want this?

Absolutely not. But this is the new standard now.

Dirk,
@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,
@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,
@Dirk@lemmy.ml avatar

It’s in the internet! This HAS to be true.

Dirk,
@Dirk@lemmy.ml avatar

Nothing beats the Arch wiki, to be honest. One of the best and broadest collections of useful information around the web. And since Arch is not-too-modified in relation to upstream, all of the information is usable for most a lot of other distributions, too.

And yes: I’m using Arch, btw.

To be more specific: I’m running Arch with Hyprland (a tiling compositor for Wayland) on my DELL XPS 13 without any issues, running Arch with Openbox (X11) on my main computer since over a decade without any major issues (device is used for gaming, multimedia, video and image editing and screen recording), and on all devices I serve something from.

Since I run Arch as a server (had it as communication server, as DHCP/DNS server, as VPN endpoint on a Raspberry Pi, and as a gaming server, currently on my main server it’s used as host for a Docker setup), I can tell you, you don’t need to worry about any real issues regarding stability and performance. Arch is way less bleeding edge as non-Arch users think. Just update regularly every 2-3 weeks at least, and check the news before doing so.

I’m curious to hear about your experiences and recommendations!

It boils down to what effort you want to put into it.

If university and work usage is mainly running productivity stuff like some type of text processing or using web-based applications you likely won’t ever have any issues. If you’re constantly switching environments, need to run specific apps (maybe even 32-bit software), constantly use different video outputs, tons of different BT devices, etc. … well … Arch is of course capable of everything the bigger distributions have to offer by default (all the nice “magic” stuff that happens automatically in the background), you just need to set everything up by yourself.

I might be biased towards Arch, but maybe just try if it fits your intended purpose and if you’re willing to set up everything at least once before using it.

Dirk, (edited )
@Dirk@lemmy.ml avatar

I remember years ago it already was like this in the forums. It actually made me stop using it and running a custom made web based reader for some time.

I wouldn’t use it anymore nowadays.

FreshRSS is the way to go. It even has plugins (and a plugin for YouTube channels as RSS feeds, very convenient).

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