Dirk

joined 1 year ago
[–] Dirk@lemmy.ml 3 points 2 hours ago

I should’ve had that backed up

Absolutely! IT's time to check out Stow now. With this you can easily manage your configuration and dotfiles (and all other data) in a single location.

https://venthur.de/2021-12-19-managing-dotfiles-with-stow.html

[–] Dirk@lemmy.ml 1 points 5 days ago

Oh, different keyboard ...

[–] Dirk@lemmy.ml 31 points 6 days ago (3 children)

Itrieditandiamnothappythatthereisnospacebaronthatkeyboard.

[–] Dirk@lemmy.ml 3 points 6 days ago (1 children)

I know how shared webhosting works. This is why I wonder why the author thinks containers and chroots are the same thing.

[–] Dirk@lemmy.ml 12 points 6 days ago (4 children)

So they say I can run a dozen of different web applications on the same machine all on the same port internally and different port externally and have a reverse proxy forwarding the traffic to the correct port based on the hostname it was called with by simply using a bunch of chrooted environments?

[–] Dirk@lemmy.ml 30 points 1 week ago (8 children)

Since we’re here

What you guys are referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX. Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project. There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux. Thank you for taking your time to cooperate with with me, your friendly GNU+Linux neighbor, Richard Stallman.

[–] Dirk@lemmy.ml 1 points 2 weeks ago

Have you tried what the message tells you?

[–] Dirk@lemmy.ml 1 points 2 weeks ago

My laptop (actually designed and used as mobile device with a 13 inch screen) has one USB-C port which is meant for charging or for attaching a docking station. And I am absolutely happy with it.

[–] Dirk@lemmy.ml 5 points 2 weeks ago
I cnan tyep therehundrde wrods pre minuet, regradlses of USb type!
[–] Dirk@lemmy.ml 21 points 2 weeks ago (2 children)

As a non-American I couldn't care less about American politics. So here's a recipe for classic waffles instead:

  • 1 egg
  • 225g self-raising flour
  • 1 tbsp golden caster sugar (optional)
  • 250ml milk
  • 50g butter, melted and cooled
  • ½ tsp vanilla extract (optional)
  • 1 tbsp sunflower or vegetable oil
  • maple syrup and icing sugar, to serve (optional)

Crack the egg into a large bowl, then tip in the flour and a generous pinch of salt. Add the sugar, if using, then gradually whisk in the milk followed by the melted butter until smooth. Whisk in the vanilla, if using. Alternatively, make the batter by blitzing all the ingredients together using a blender or hand blender. Can be made 1-2 hrs ahead and chilled.

Heat a waffle maker following the manufacturer's instructions and brush with a little of the oil. Then ladle in enough batter to just cover the surface. Cook following the manufacturer's instructions (usually 5-6 mins) until the waffles are golden brown and crisp.

Serve immediately or keep warm in a low oven while you make the rest. Drizzle with maple syrup or sprinkle with icing sugar, if you like.

[–] Dirk@lemmy.ml 6 points 3 weeks ago

Supports both programming and gaming

Both is super uncritical.

You can install Steam as Flatpak without any real or major issues nowadays and thanks to Proton you can basically play any games except those that use Windows-specific ring 0 spyware as their DRM or anti-cheat mechanism. Pro-Flatpak: You don't need to deal with 32-bit libs dependency hell.

Same with programing. The relevant compilers are all available for pretty much all common distributions. Same with the common scripting interpreters as well as all common IDEs.

but I’m considering moving it to a VM if the performance impact is manageable

Depending on your VM solution you can usually pass-through CPU and/or GPU and have nearly the same performance as on bare metal.

but am open to exploring new options.

This might be a bold move, but have you considered Arch Linux? You need to do most things by yourself, but the wiki is one of the best and most complete and extensive distribution-specific Linux wikis available. So if you're willing to read instructions and learn new things, why not give it a try? (Disclosure: Arch is my daily driver since 2008 on desktops, laptops and homeservers).

 

I'm currently researching the best method for running a static website from Docker.

The site consists of one single HTML file, a bunch of CSS files, and a few JS files. On server-side nothing needs to be preprocessed. The website uses JS to request some JSON files, though. Handling of the files is doing via client-side JS, the server only need to - serve the files.

The website is intended to be used as selfhosted web application and is quite niche so there won't be much load and not many concurrent users.

I boiled it down to the following options:

  1. BusyBox in a selfmade Docker container, manually running httpd or The smallest Docker image ...
  2. php:latest (ignoring the fact, that the built-in webserver is meant for development and not for production)
  3. Nginx serving the files (but this)

For all of the variants I found information online. From the options I found I actually prefer the BusyBox route because it seems the cleanest with the least amount of overhead (I just need to serve the files, the rest is done on the client).

Do you have any other ideas? How do you host static content?

 

Currently I’m planning to dockerize some web applications but I didn’t find a reasonably easy way do create the images to be hosted in my repository so I can pull them on my server.

What I currently have is:

  1. A local computer with a directory where the application that I want to dockerize is located
  2. A “docker server” running Portainer without shell/ssh access
  3. A place where I can upload/host the Docker images and where I can pull the images from on the “Docker server”
  4. Basic knowledge on how to write the needed Dockerfile

What I now need is a sane way to build the images WITHOUT setting up a fully featured Docker environment on the local computer.

Ideally something where I can build the images and upload them but without that something “littering Docker-related files all over my system”.

Something like a VM that resets on every start maybe? So … build the image, upload to repository, close the terminal window, and forget that anything ever happened.

What is YOUR solution to create and upload Docker images in a clean and sane way?

 
 
 

Are we still doing ancient memes?

view more: next ›