Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

"Just" 270 MB for...an idle server

Uncategorized
7 5 33

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    1 Posts
    0 Views
    Have you ever wanted to have Theo de Raadt give you his fortune in your GNU Emacs session? I made a package some time ago which serves exactly this purpose. You can find the package, as well as it's history on Codeberg with the following link. It is currently my only Emacs package, but I plan to make more when it becomes useful to.https://codeberg.org/amadaluzia/theo.elAppending to the history after the package was published onto Codeberg, I ended up in a call where me and @izder456 were talking about theo.el. I believe in that call, it was also reposted in the OpenBSD room on Matrix. I also remember being suggested to put it on MELPA, so that is exactly what I did.After creating the pull request and fixing all of the issues that stopped it from being pushed into MELPA, it couldn't make it on as it was a pretty repetitive package, and there were about 5 other `fortune`-esque packages with much more customisability. However, I now have a better package because of MELPA's guidelines, and I believe that I can still give attention to the package, even if not through MELPA.That's why I wanted to talk about it here, because maybe you are interested in having a fortune package for your GNU Emacs. If so, and assuming you have straight.el, you can simply copy the following snippet into your init.el. After that, you should have it installed.https://gist.github.com/amadaluzia/be96e325326a9d66619543af410e4bf4Let me know how the package goes for you. I would love to improve the GNU Emacs ecosystem further, as a GNU Emacs user.#opensource #foss #emacs #openbsd #bsd #runbsd
  • 0 Votes
    1 Posts
    7 Views
    We all love media – to some extent at least!Movies, TV Shows and all the moving pictures we can find and consume.So, since we all have movies etc. on our NAS/HDD/SSD/whatever we should be able to play and see everything we have on all our connected devices.But what can we do?Simple, we leverage Jellyfin to present our media to us.In this little howto we will set up Jellyfin in a Jail on FreeBSD.Let’s get right to it!Creating the JailJails can be created in different ways. In this howto however we will use Bastille – which is a excellent tool for creating Jails.This howto will not go into detail of how to set up Bastille. If you need to set up Bastille first, given you have not installed said tool, you can have a look at the quickstart guide:Bastille Quickstart GuideRight, let’s create the Jail first.$ sudo bastille create media 14.3-RELEASE 10.0.23.77/24 vtnet0You of course need to change the IP address and network interface (vtnet0 is probably not what you want!). Also, one can of course change the name of the Jail – I’ve chosen media since that describes the use case well of said Jail.After that our Jail is ready!Jellyfin needs mlock to be enabled to work properly.$ sudo bastille config media set allow.mlock 1But wait a second… How do I access all my media files?There is no access in the Jail to any directory on the host holding all my videos!Right, that is the case indeed!So, what can we do?Simple, we just mount our media directory in the Jail with nullfs!$ sudo bastille mount "media" /home/x/videos/ /videos nullfs ro 0 0This line mount /home/x/videos/ in the Jail under /videos. Also, I mount the directory as readonly – which you can change by sepcifying rw on the command above. Be sure to also select the correct Jail – in my case media.Jail fun with JellyfinWe can now finally enter the jail to further go along with the howto.$ sudo bastille console mediaLet’s first install Jellyfin which is directly accessible from the official package repository.$ pkg$ pkg update -f$ pkg install -y jellyfinThe first command pkg bootstraps the pkg package manager. The second command refreshes the package cache and the last command installs Jellyfin itself.Right, so far so good.But we also need to configure Jellfin (Service) to always start. And, last but not least, we need to start Jellyfin – since it is not running after the installation finished.$ sysrc jellyfin_enable="YES"$ service jellyfin startWe did all that, alright… But how do we know Jellyfin is running?Let’s have a look at the ps and sockstat output.root@media:~ # sockstat -l4USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS jellyfin jellyfin 10700 478 udp4 10.0.23.77:7359 *:*jellyfin jellyfin 10700 503 tcp4 10.0.23.77:8096 *:*root@media:~ # ps ax PID TT STAT TIME COMMAND10662 - SsJ 0:00.00 /usr/sbin/syslogd -ss10699 - IsJ 0:00.00 daemon: /usr/local/jellyfin/jellyfin[10700] (daemon)10700 - IJ 0:03.81 /usr/local/jellyfin/jellyfin --datadir /var/db/jellyfin --cachedir /var/cache/jellyfin10706 - SsJ 0:00.00 /usr/sbin/cron -J 60 -s10804 1 IJ 0:00.00 login [pam] (login)10805 1 SJ 0:00.01 -sh (sh)10842 1 R+J 0:00.00 ps axAh yes, Jellyfin is running and listening on port 8096 – which is the designated port for Jellyfin!Jellyfin all the way!Since we established that Jellyfin is running and listening, let’s open our webbrowser of choice and navigate over to the install wizard.$ firefox http://10.0.23.77:8096We are greated with the intital Jellyfin wizard.I will not go into detail on how to set up the wizard. But don’t worry, there is a excellent guide over on the official Jellyfin website.The guide can be found here: Jellyfin Setup Wizard guideBe sure to add your nullfs mounted directory in your library to be able to play said videos and shows.That is all there is to it.Simple, easy and clean. Everything is done in a Jail and isolated. Also, mounting a media directory is easy and straightforward via bastille mount.Final wordsThis little howto just shows how versatile jails are. One can of course tweak the setup further and for example add a reverse proxy (like Nginx) to the mix.The sky is the limit – Tools like bastille are very powerful and flexible!Enjoy!…and as always:Stay Open!
  • 0 Votes
    1 Posts
    9 Views
    My favourite experience regarding Wii homebrew so far has to be NetBSD. I wanted to use my Wii as a computer for a while now, and NetBSD being available as an operating system you can install and get going on an SD card and a Wii with the HBC is definitely the highlights of my Wii homebrew experience. I don't use my Wii much at the moment, as I don't even have a monitor I can use for my Wii yet, but I have used it for a while on a TV and it was nice.Networking is a bit hard, at least on the Wii however. I tried to get WiFi included in as a Wii image of NetBSD to burn, this was during my time on FreeBSD, and I just couldn't compile it. I was doing something weird where I would alternate between GCC and clang but that would have been a waste of time once it got to booting.Other than that, it was nice writing a fetch program entirely written in C using vi and man pages to get by. It was a nice break from writing things without an LSP to help, although I still love using modern features many editors provide, obviously excluding AI, so I will stick with that. I also found that Lua existed on it which definitely helped whenever I didn't want to write C.First *BSD post in a while, as I forgot to talk about the time I used NetBSD. I'll probably talk about Linux more at some point but I wanted to talk about *BSD a little again. Try NetBSD if you get the chance!#netbsd #homebrew #wii #tech #computers #programming
  • 0 Votes
    1 Posts
    10 Views
    Tomorrow 2025-09-25 at 10:30 CEST, the refreshed "Network Management with the OpenBSD Packet Filter Toolset" https://events.eurobsdcon.org/2025/talk/FW39CX/ by yours truly, @stucchimax and Tom Smyth will start at #eurobsdcon. We will put the updated slides online just before the session starts.#openbsd #freebsd #pf #packetfilter #networking #firewall #trickery #security