HNHacker News
TopNewBestAskShowJobs

vermaden

4,309 karma · joined September 1, 2012

Another ${RANDOM} sysadmin.

BLOG: https://vermaden.wordpress.com/ TWIT: https://twitter.com/vermaden

DESC: FreeBSD BSD UNIX Linux Backup Restore Storage Clusters Distributed Desktop Laptop X11 ThinkPad AMIGA Shell POSIX ZSH ZFS

submissionscomments
vermaden··on Remastering Colin McRae Rally 3 with SilentPatch
I would love to see same amount of work (and ideas) but for CMR 2.0 instead :)
vermaden··on X Window System Basics (2014)
Amazed?

I am amazed that people try to force limited and unfinished Wayland instead of X11. I recently had RHEL on ThinkPad T14 at work - which by default uses Wayland - yet even employer by default switches settings to X11 because EVERYTHING works there as desired - including screen sharing and/or recording.

... and for my personal stuff? I have ZERO issues with X11 on FreeBSD - why would I switch to Wayland if everything works as desired on X11? FreeBSD of course supports Wayland and you can use it there if you wish - but I just do not see the point of it. I do not have ANY screen flickering or other issues on X11.

Not to mention that A LOT of stuff is X11 only and not ported (and never will be) to Wayland.

vermaden··on Debloating Windows 10 with one command and no internet scripts
Windows 10 user should ho 'all the way' and use Atlas OS - which is Windows 10 'redesigned for gaming'

    Atlas users can enjoy:

    - higher framerate

    - lowered input delay & latency

    Great for people on a low-end system or high-end gaming machine.
Its for gaming but it has all the 'bullshit' cut out and/or disabled.

Details here: https://atlasos.net/

Regards.

vermaden··on WebAssembly: Docker Without Containers
Docker only uses namespaces and cgoups.

Docker does not provide and security or isolation.

To have security and isolation with Docker you must use something external like SELinux or AppArmor.

Hope that helps.

Regards.

vermaden··on Ask HN: How do people find your blog?
I always wanted to start and write on my blog - just to share some things that other may find useful.

I started with something simple - entirely preloaded (all howtos) and static:

1. http://www.strony.toya.net.pl/~vermaden/links.htm

I assume no one ever entered it ... besides me of course.

Then some time later - I though that having that 'static' links site is pointless - lets start 'proper' blog this time. I have chosen Gogle Blogspot this time.

2. https://vermaden.blogspot.com/

... and after several posts I generally abandoned it.

Several years later I made a decision to make another blog ... but this time with some strategy behind.

3. https://vermaden.wordpress.com/

This (3rd) attempt was 'successful' and people sometimes actually visit my blog - sometimes even comment. In March of 2023 I will 'celebrate' the 5th year of that blog. I have made about 100 posts there and I made about 100,000+ views per year:

- https://i.imgur.com/raWvrZj.png

What is the secret of [3.] being successful and [1.] and [2.] definitely not? Sharing.

I do not know what blog (subject matter) you are trying to share - but for IT/UNIX/BSD/Linux related blogs (as mine) you need to share each post on these mediums:

- mastodon

- twitter

- lobsters

- hacker news

- FreeBSD forums

- reddit (r/BSD)

- reddit (r/FreeBSD)

- reddit (r/unix)

- reddit (r/linux)

- linkedin

Not sure about Facebook/Meta as their 'ecosystem' definitely does not suit my needs.

You need to ask yourself where and how people would try to find your content. They would definitely not browse a catalog of blogs. Maybe they wil ltry the search engine ... but search engines only pick up sites that are somewhat popular. They omit pages/blogs that are 'unknown'. How blogs are known? By many links pointing to them.

In other words - if you do not share your work/posts on all 'relevant' platforms - then you will 'die' in a 'non-known' hell.

If you believe your work - and it is work, you 'waste' your time to write/share these things you do - is valuable - then share them in all possible mediums/medias. If your content is good - you have to do nothing else. If your content is crap - You will immediately get feedback about it :D

One of the things that I really appreciate was the feedback I got. I often assumed that I know a lot about 'X' topic - just to change my mind after several comments later and providing and UPDATE to my blog post :)

I do not know what should I add here more so I will end my comment - but feel free to ask if You have any questions.

Regards, vermaden

vermaden··on Ask HN: Best board games of 2022?
Its not a 2022 board game - but I would really recommend Carcassonne with these two expansions:

- Traders and Builders [1]

- Inns and Cathedrals [2]

The base itself is little limited - but with these two expansions you have one of the best sets for a nice evening with friends. You can also add River or River II expansion - but they only 'divert' the beginning of the game - so you can omit them.

The Carcassonne is really a simple game - yet it takes real thinking and strategy to really master it.

What I like the most about Carcassonne is its 'minimalistic' approach. There are roads/cities/grasslands/monasteries ... and nothing else ... yet taking someone else' city or road is very important strategic move - or splitting the work between X players.

You do not need cards, figures, notes, calculators, excel or dice. You just play and move the cones on the scoring board.

Regards.

[1] https://carcassonne.fandom.com/wiki/Traders_%26_Builders

[2] https://carcassonne.fandom.com/wiki/Inns_%26_Cathedrals

vermaden··on Ask HN: Are Any of You Tired from macOS and Want to Go Back to Linux?
I am long time (15+ years) FreeBSD user and sysadmin.

My employer used to use RHEL Linux on ThinkPad T14 which worked for me. I configured GNOME with keyboard shortcuts I use daily on my FreeBSD ThinkPad W520 and was quite happy with it - especially with several additional GNOME extensions.

Unfortunately my employer decided that it will ditch Linux from admins laptops and forces migration to Windows ... but its also possible to get Apple Macbook.

I am sick an tired of being sick and tired by Winblows bullshit so I decided to get Apple Macbook straight away.

I got the M1 version of Macbook Air. Its nice light device ... but the keyboard is TERRIBLE to say the least - when you are used to the AWESOME W520 keyboard.

But that is just the 'tip of the iceberg' of problems.

The keyboards shortcuts are quite limited. You can use some external apps for that. Same for windows tiling. I wrote my own window tiler for X11/openbox. I needed to install Rectangle for that - and it works really well for that.

... but ZERO luck with free apps/solutions for MIDDLE CLICK copy/paste. I have tried free MiddleClick ... but seems it does not support Ventura yet.

Generally after two decades with computers I fell like with two left hands at macOS. Both on software and hardware (keyboard) side.

The interface is looking nice ... but you are also VERY limited to how small the interface or fonts can be. I prefer to have rather small fonts and/or interface as large fonts/interface takes too much screen space.

Here is what I use daily:

- https://vermaden.files.wordpress.com/2019/04/freebsd-desktop...

Not sure how that helps - but that are my $0.02 on that topic.

Regards.

vermaden··on Ask HN: What's your proudest hack?
Hi,

I really liked your probe ... and yes freebsd-update(8) may be useful for small updates from -pX to -pY but large updates like from 12.1 to 12.2 are real PITA.

The HardenedBSD (FreeBSD fork) made its own hbsd-update(8) tool which just fetches whole new OS and after extraction installs/updates needed things. But its PITA for small updates :)

Sorry to hear you have bad experiences with FreeBSD Froums ... but to be honest I do not often go there now - just ocasional visits.

I used to love BSD forums when the BSDForums.org existed. Then we started over with DaemonFroums.org as BSDForums.org was shutdown by some asshole admin ... and not long ago official FreeBSD Forums appeared.

Not sure why they (at FreeBSD Forums) would chase you as you provided really nice solution/frontend to freebsd-update(8) tool.

Regards, vermaden

vermaden··on Linux Desktop Environments System Usage
I have done full poweroff(8) before each DE test.

I did not configured them to start.

For some reason these DEs started them - do not ask me why - ask these DEs creators.

Packages on FreeBSD are rather 'vanilla' - only ported to work properly on FreeBSD - so its pointless to ask FreeBSD port maintainers here.

The only thing I configured to start were in FreeBSD main /etc/rc.conf config file:

    % cat /etc/rc.conf
    hostname="freebsd"
    ifconfig_em0="DHCP"
    sshd_enable="YES"
    moused_enable="YES"
    powerd_enable="YES"
    dumpdev="AUTO"
    zfs_enable="YES"
    dbus_enable="YES"
Regards.
vermaden··on Btrfs in Linux 6.2 brings performance improvements, better RAID 5/6 reliability
Just 'better' (less fuckups) or it works 100% and its production ready? :)

... just use FreeBSD with OpenZFS for RAIDZ/RAIDZ2/RAIDZ3 pools instead.

... or even OpenZFS on Linux.

vermaden··on Linux Desktop Environments System Usage
That depends what you use to measure.

At first I used RES column from FreeBSD top(1) command.

Here are results for the same desktop environments from other tools:

                | htop(1) | conky(1) | freecolor(1)
    ------------+---------+----------+-------------
        FreeBSD |  112 MB |    - -   |  157 MB 
        Openbox |  237 MB |  460 MB  |  382 MB 
           MATE |  508 MB |  778 MB  |  788 MB 
           XFCE |  533 MB |  794 MB  |  829 MB 
    helloSystem |  585 MB |    - -   |  830 MB 
          GNOME |  625 MB |  990 MB  | 1000 MB 
     KDE/Plasma |  730 MB | 1659 MB  | 1167 MB
This table above is also at the end of the blog post.

So as You see depending on the used tool you may get REALLY different results while having the same components started.

Regards.

vermaden··on Linux Desktop Environments System Usage
Why would software just installed on system increase memory usage?

XFCE is not suppose to start/load KDE components and vice versa ...

vermaden··on Linux Desktop Environments System Usage
My take on the same subject on FreeBSD:

- https://vermaden.wordpress.com/2022/07/12/desktop-environmen...

vermaden··on What's a good Linux terminal emulator that doesn't try to reinvent TMUX?
I use these (depending on the needs):

- xterm

- urxvt

- sakura

- terminator

vermaden··on Poll: Which IDE/text editor do you use?
The vi(1) and vim(1) but also Geany which is very small/light and very powerful.

I love its block copying/pasting/typing and also that you can 'pass' any block of selected text into external command and it will be pasted back into that file you selected it after being parsed by it.

For example you can send that block of text info sort -n or tr ' ' '\n' command ... or into column -t to make it format well.

This also makes Geany a great editor/IDE for taking notes/documentation etc.

I tried to use ZIM for that but you can not even disable word wrapping so its maybe useful for some 'short' things but it definitely does not work for me and Geany fits beautiful here.

Regards.

vermaden··on Ask HN: What is the most impactful thing you've built?
Thanks for fixing clickability :)
vermaden··on Ask HN: What is the most impactful thing you've built?
Three things.

    - beadm -----> https://github.com/vermaden/beadm
    - automount -> https://github.com/vermaden/automount
    - lsblk -----> https://github.com/vermaden/lsblk
All of them for FreeBSD system.
vermaden··on Ask HN: Do you recall any book or course that made a topic finally click?
These:

- Absolute FreeBSD - have everything needed to learn and understand FreeBSD.

- ANSI C by Kernighan/Ritchie - the C language.

- Forever Fat Loss - why we get fat and what to do about it.

- Why We Sleep - everything you wanted to know about sleep.

Regards.

vermaden··on ZFSBootMenu – A boot loader to manage ZFS boot environments for Linux
I still wait for ANY Linux distro that would have installer that would allow you to install Linux with Root on ZFS and with ZFSBootMenu (or any other ZFS Boot Environments tool) ...
vermaden··on Migrate from Linux to FreeBSD
Oldschool FreeBSD Jails are easier then Docker.

The VNET enabled FreeBSD Jails (separate network stack) are more complicated - at start only - you need to get to know how to use the new epair(4) VNET interfaces etc.

vermaden··on Migrate from Linux to FreeBSD
Thanks for at least a partial solution. Installation can be scripted.

I remember the disappointment after PC-BSD died and Project Trident invested their 'time' into Void Linux instead of FreeBSD ... then I thought that it actually my be a good move - so finally some Linux would have some ZFS and ZFS Boot Environments love - especially as these people used ZFS Boot Environments on FreeBSD earlier ... and then it all died.

A lot of potential killed/lost there. First - PC-BSD introduced PBI packages - something that is today known on Linux as SNAP for example - some application packed together with libraries and dependencies in one 'package' - then for some reason they killed this idea - while Linux 'reinvented' it as SNAP (and others) and 'The World' was (and sometimes still) is fascinated by it. Sick. Same with Docker that was introduced in 2013. The so called 'World' went crazy with 'containers everywhere' ideology while FreeBSD Jails were available 13 years later since 2000. Sometimes I just got the idea that Linux people do not see any other innovations other then that happened with Linux system. Like FreeBSD Jails or Solaris Zones or IBM WPARs or HP-UX nPars never existed ...

vermaden··on Migrate from Linux to FreeBSD
... on RHEL/CentOS/Alma/Rocky Linux which use SELinux instead? :)
vermaden··on Migrate from Linux to FreeBSD
You can also install and use Google Chrome on FreeBSD pretty easy with this:

- https://github.com/mrclksr/linux-browser-installer

It will just use FreeBSD Linux Binary Compatibility layer (not emulation).

FreeBSD supports most Linux syscalls with it so it can run unmodified Linux binaries 'just like that'.

More here:

- https://docs.freebsd.org/en/books/handbook/linuxemu/

Regards.

vermaden··on Migrate from Linux to FreeBSD
I am still waiting for ANY Linux distribution to actually install ZFS on root with installer AND support ZFS Boot Environments out of the box ...
vermaden··on Migrate from Linux to FreeBSD
As you require Docker/k8s there is not much that can be done here - just stick to Linux (or use them in a FreeBSD Bhyve VM but we know its better to just use Linux).

Just like with your Photoshop (or Lightroom) example - if you need to run one - you use macOS or Windows for that - Linux also not possible here.

vermaden··on Migrate from Linux to FreeBSD
Docker is just namespaces and cgroups. You do not have separation between host and the containers on Linux - you need additional software for that - like AppArmor or SELinux. The FreeBSD Jails are secure and separated from the host on the contrary. FreeBSD Host can access Jails but Jails can not access Host resources - unless consciously configured to do so.

As for the usage ... FreeBSD Jails can have their OWN network stack (with own firewall and interfaces) while Docker can only use Linux network namespaces.

You can launch/start a single process Jail and a single process Docker - here they are similar. You can also unpack entire operating system userland in both and it will also run - with own packages database etc.

Hope that helps.

vermaden··on Migrate from Linux to FreeBSD
You can use both lspci and lsusb on FreeBSD:

    # lspci               
    00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
    00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04)
    00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
    00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
    00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
    00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4)
    00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b4)
    00:1c.6 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 (rev b4)
    00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
    00:1f.0 ISA bridge: Intel Corporation QM67 Express Chipset LPC Controller (rev 04)
    00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Mobile SATA AHCI Controller (rev 04)
    00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
    03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 3e)
    0d:00.0 System peripheral: Ricoh Co Ltd PCIe SDXC/MMC Host Controller (rev 08)
    0e:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
    
    # lsusb
    Bus /dev/usb Device /dev/ugen0.3: ID 046d:c52b Logitech, Inc. Unifying Receiver
    Bus /dev/usb Device /dev/ugen0.4: ID 04f2:b217 Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP)
    Bus /dev/usb Device /dev/ugen2.2: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus /dev/usb Device /dev/ugen0.2: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus /dev/usb Device /dev/ugen0.1: ID 0000:0000  
    Bus /dev/usb Device /dev/ugen2.1: ID 0000:0000  
    Bus /dev/usb Device /dev/ugen1.1: ID 0000:0000  
    
    # uname -v    
    FreeBSD 13.1-RELEASE-p3 GENERIC
vermaden··on Migrate from Linux to FreeBSD
K8s and Docker are purely Linux things. Use Linux for that. Its like you would say "I really like these Jails, on which Linux distribution I can run them on?" :) On FreeBSD You use Jails and Bhyve.

Some other whys for FreeBSD here:

- https://vermaden.wordpress.com/2020/09/07/quare-freebsd/

vermaden··on Migrate from Linux to FreeBSD
Just use doas(1) instead. Small. Simple. Secure.
vermaden··on macOS Ventura is now available
Yes.

With FreeBSD I can 'send' entire BE to other system and boot it there - which I often do.

Just use:

    # zfs send <ZFS-BE-DATASET@snap> | ssh <IP> zfs recv <ZFS-BE-DATASET>
I also sometimes installed FreeBSD/GhostBSD system in a VM and then 'send' it to physical hardware.

Hope that helps.

← PreviousPage 9 of 17Next →