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 Ask HN: Weirdest hack that you ever saw in production?
I know an ISP at Poland that used/uses 169.254.0.0/16 for their whole clients network. This way anytime the client does not get an IP address from DHCP (for example because DHCP server is down) the client after little longer periond of time would get a working IP address anyway :)
vermaden··on Ask HN: Weirdest hack that you ever saw in production?
In an private cloud EHC (EMC Hybrid Cloud) implementation there was a need that deployed hosts needed to have, well a hostname with a domain, like hostname01.example.com but the problem was that EHC does not support that in that version (as stupid as it sounds) so the developer put a script in all Linux templates called /root/hostmame.sh (yes with an error) which was run by cron every minute and the only thing it did was to put the hostname01.example.com into the /etc/sysconfig/network file (RHEL/CentOS/Oracle Linux) and to invoke the hostname command with hostname01.example.com as an argument.

Every minute of every host on the private cloud ...

... but I have come upon many strange problems in various EMC products so that does not surprise me a lot.

vermaden··on Geany – Lightweight IDE for Linux and Windows
... not only for Linux and Windows.

Geany is known to run under: Linux FreeBSD (and HardenedBSD / GhostBSD) NetBSD OpenBSD MacOS X AIX Oracle Solaris Illumos (OpenIndiana) Windows

vermaden··on Experiences with running PostgreSQL on Kubernetes
Whole team just to 'manage' ONE virtualization 'technology'?

No thanks.

One admin is more then enough to cover and master FreeBSD Jails and many other technologies ... no just Kubernetes.

vermaden··on Firefox 58
Still a lot of 'must have' extensions do not work with Firefox Quantum (57+) like UnMHT for example ...
vermaden··on Modern Linux in an ancient PC
I always wonder ... why 'waste' so much time with cross-compiling #Linux when #FreeBSD [1] supports such 486 computer out of the box along with binary packages even in latest to date 11.1-RELEASE version?

[1] https://www.freebsd.org/releases/11.1R/announce.html

vermaden··on Are all BSDs created equally? A survey of BSD kernel vulnerabilities [video]
Pity they havent included HardenedBSD into the list ...
vermaden··on Intel vs GlobalFoundries at the leading edge
It would be interesting to see first x64 only (only 64-bit) CPU from either Intel or AMD ...
vermaden··on Extensions in Firefox 58
One of the extensions I miss most is UnMHT.

Anyone have info about if/when it will support Quantum?

vermaden··on Firefox’s faster, slicker, slimmer Quantum edition now out
Being faster is one thing (good thing).

Having most of extensions unusable - not quite.

Till 'UnMHT' or 'Custom Tab Width' and several other extensions are not present for Firefox Quantum, I stick to 'slow' Firefox 56.

vermaden··on The best laptop ever made
Nope.

The best laptop is the one with 7 row keyboard, like ThinkPad T420.

While Macbooks have nice aluminium body and are very light and thin they are far from being 'the best'.

vermaden··on Linux sandboxing improvements in Firefox 57
People tend to assume that if Firefox 57 or other version will be faster then Chrome, then a lot people would then start to use Firefox instead of Chrome.

As much as I would like to see that its not gonna happen, and I am writing this as a Firefox user.

Remember what 'REAL' Opera 12 did in its times comparing to Chrome or Firefox? It loaded pages faster, used less memory, was most standards compliant and also came with bundled torrent client, and mail client and RSS client and ... and having 100+ tabs opened DID NOT EVEN SLOWED IT!

... and guess what, both Firefox and Chrome had more users while Opera had about 4-5%.

It did not mattered if it was faster or better.

Currently Opera is just a Chrome with different skin, so I moved to Firefox with Midori and Iridium as 'backups'.

vermaden··on Game Over We Have Obtained Fully Functional JTAG for Intel CSME via USB DCI
I expect a message from Intel that it was bad idea to place ME in the CPU and that in the future Intel would not do such things ... but that would be only a PR bullshit.

First thing Intel would do is to implement/create new ME-like thing, maybe on other arch like ARK before and hide it little more.

Then finally someone would find it anyway in a few years and let others know about it ...

"History does not repeat itself, but it rhymes."

vermaden··on Simple note taking from the command line
Such 'notes' function can seem 'useful' at first glance, but how You gonna 'organize these notes, for example after You have used it for about a year, or several years?

I prefer other approach.

Everytime I get to know some new switch for a command, or new use for them, or even a new command, I create ~/man/command file with examples and commends inside, like ~/man/tar or ~/man/gstat or ~/man/xorg.conf.

This way its already organized and you can grep -r 'something' ~/man for the thing you need.

My $0.02.

vermaden··on Parallel processing with Unix tools
Just put this line into ~/.xinitrc or ~/.zshrc or other file that is executed BEFORE you start CLI:

echo 'will cite' | parallel --citation 1> /dev/null 2> /dev/null &

vermaden··on FreeBSD 11.1 released
As for powertop on Linux, on FreeBSD you have powermon (from Ports):

# kldload cpuctl # powermon

                  Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz
                      (Arch: Sandy Bridge, Limit: 44W)



   4.98W [=======>                                                           ]



 Package:           Uncore:             x86 Cores:          GPU:
 Current: 4.98W     Current: 3.34W      Current: 1.44W      Current: 0.21W
 Total: 14.37J      Total: 9.79J        Total: 3.62J        Total: 0.96J


Also for power management, powerdxx (from Ports) is better then powerd:

/etc/rc.conf powerdxx_enable=YES powerdxx_flags="-n hiadaptive -a hiadaptive -b hiadaptive -m 1600 -M 3000"

vermaden··on The Collapse of the Unix Philosophy
The author writes 'Unix' but backs his thoughts only from Linux systems ... and Linux is not Unix ... I will stop right here ;)
vermaden··on KDE Slimbook
No go. Shitty keyboard. Learn from Thinkpad T400 how good keyboard looks like.
vermaden··on Dd is not a disk writing tool (2015)
> How do you combine dd with gzip?

# dd < /dev/ada0 bs=8m | gzip -c -9 > /mnt/file.raw.gz

> How do you use pv if the source is raw device?

# dd < /dev/ada0 bs=8m | pv | dd > /dev/ada1 bs=8m

> How do you dd over ssh?

# dd < /dev/ada0 bs=8m | gzip -9 | pv | ssh user@host 'dd > /dev/da1 bs=8m'

> This belief can make simple tasks complicated.

As master Dennis Ritchie once said - "UNIX is very simple, it just needs a genius to understand its simplicity."

vermaden··on Vivaldi – A Browser for Our Friends
No FreeBSD support. No go.
vermaden··on Finding an Alternative to Mac OS X
Please read about ZFS Boot Environments, no matter if from Oracle documentation or Illumos one, You will get the idea what it provides. There is beadm command same as in Solaris/Illumos and You can select BE at boot in the FreeBSD bootloader.

In short the idea is that You create snapshot (BE) of the current system state (filesystems), then make changes/upgrades. If something went wrong, then You reboot to that snapshot (BE) like nothing had happened.

About GNU userland, I also use SOME GNU tools like 'gls' (GNU ls) or 'gawk' (GNU awk). They are provided by the FreeBSD sysutils/coreutils package/port, I also use sysutils/moreutils like 'vipe' or 'vidir'.

The documentation part on FreeBSD is much better then on Linux, check the Handbook, or Wiki, or FAQ, or plain old MAN PAGES with useful examples. I sometimes read/use ARCH Linux wiki or Gentoo WIKI but for most of the time FreeBSD documentation is second to none. Even with a lot less people then Linux has.

BTW, while there are a lot more Linux people out there then BSD people, remember that Linux people are fragmented over about thousand Linux distributions while there are only several BSD distributions.

I do not want to sound 'bad' here but I also found many times that 'BSD people' known more about Linux then 'Linux people' if You know that I mean.

Regards, vermaden

vermaden··on Finding an Alternative to Mac OS X
I use FreeBSD as a desktop/laptop/workstation since years and it works great for me. Total control over the system You work on is priceless.

Everything on my hardware works (ThinkPad W530). The WWAN(3g) connection, Wifi, SD Card Reader, Power Management, multi monitor setup, external disk in the Modular Bay ...

Also having ZFS and ZFS Boot Environments on a system is great for updates/changes. You are literally bulletproof.

Some screens: http://vermaden.deviantart.com/art/CorporateBSD-FreeBSD-at-W... http://vermaden.deviantart.com/art/FreeBSD-10-3-Openbox-6356...

Regards, vermaden

vermaden··on Ask HN: How do you organise/integrate all the information in your life?
> * To do lists/Reminders

I use a file called ~/TODO for that in this format:

  |  % cat ~/TODO
  |  == EASY ==
  |    todo/no/progress
  |  . task/some/progress
  |  x task/done
  |
  |  == MEDM ==
  |    todo/no/progress
  |  . task/some/progress
  |  x task/done
  |
  |  == HARD ==
  |    todo/no/progress
  |  . task/some/progress
  |  x task/done
> * Bookmark lists

I use a file called ~/SITES for that in this format:

  |  % cat ~/SITES
  |
  |  begin category
  |    http://link link name
  |    http://link <b>more interesting link</b>
  |    begin subcategory
  |      http://link link name
  |      http://link <b>more interesting link</b>
  |    end
  |  end
I then generate HTML file SITES.htm with 'clickable' links with a script from that file in cron(1) hourly.

> * Financial tools

Just a XLS file with GNUMERIC/LIBREOFFICE for editions.

> * Calenders/Reminders

I use a file called ~/CAL for that in this format:

  | % cat ~/CAL
  | 09/28  c  car/something
  | 10/04  B  birthday/someone
  | 10/08  x  some/event/other
  | 10/12  N  some/name/event
  | 11/10  B  birthday/someone/else
... and everytime I spawn a new xterm(1) terminal a script that parses ~/CAL starts with 21 days upfront to remind me what I have to remember, like that

  | ==
  |     TODAY IS 10/26  B  birthday/someone
  | 15 day(s) to 11/10  B  birthday/someone/else
  | 22:54|hostname|dir % _
  | ==
> * Files on disk

ZFS with LZ4 compression + GELI encryption on FreeBSD.

Regards,

vermaden

vermaden··on FreeBSD: A Faster Platform For Linux Gaming Than Linux? (2011)
I am one of those strange people that still prefer FreeBSD to any Linux desktop/server distribution.

I also used Linux for several years before I started to learn and use FreeBSD, and sometimes I still use Linux, but only when I am payed to do so.

After several years with FreeBSD I even tried to move back to Linux, hearing all these 'advertisements' how good it is on the desktop, how painful FreeBSD is on the desktop etc.

So I used Ubuntu Linux for a whole year on the desktop/workstation without using FreeBSD. My experiences with that quickly got me back to FreeBSD, let me tell You why. First, hangs and crashes that was fixable only by reboot, the sound mostly. I did not turned of that workstation, as that was not needed, so every 2-4 days I was forced to do the reboot just to have the sound back. No matter if I used that sound (play music) during that 2-4 days or the machine just stayed idle, it hanged anyway. Reloading the ALSA modules did not help. Maybe it was a bug, but I always was 'up-to-date' and ALSA and the kernel were upgraded many time, even two time to the 'next big release'.

The other 'awful' thing is the updates. They work the same way like in Windows, for 9/10 times, they fix things, but on the 10/10 You end up with totally broken system that even can not boot, and like with Windows: "With minor problems reboot, with major problem reinstall."

That never happened to me on the FreeBSD land every upgrade/update of the FreeBSD's base system succeed.

There are other distributions You say ... yes there are, but which ones? Linux Mint is basically the same as Ubuntu, but with different default GUI and with some more codecs loaded in by default. I also have an allergy to anything that Lennart did, so for example Arch Linux is dead for me because it uses systemd and pulseaudio. Fedora 'the Lennux'? No thanks.

The whole Linux ecosystem seems broken to me because of all the things explained here: http://www.pappp.net/?p=969

Also, I do not longer want to go back to OSS vs ALSA discussion, where OSS from the FreeBSD base system just works for me with everything I do and ALSA does not on so many ways.

I do not want to 'flame' again the 'initrd' mechanism in Linux where some drivers are in the initrd and some other are in the kernel and others are in the modules, but modules are not for initrd but just kernel, the kernel and initrd is under /boot but the modules are under /lib/modules /... this is just plain mess for me.

On FreeBSD You have one directory with kernel and modules /boot/kernel period. No other subkernels like initrd just to boot and then pass the machine to the 'real' kernel. Using FreeBSD on the desktop requires knowledge and experience, and that makes it hard to use as a desktop/workstation. PC-BSD tries to change that, we will se how far can it go with it.

A lot of people ask, why You use FreeBSD when there is Linux?

I would ask the opposite, why You use Linux when there is FreeBSD?

I have here ZFS with latest 5000 version, yes, this is the next version after ZFS v28, this is ZFS Feature Flags.

I have ZFS Boot Environments with sysutils/beadm, the same way as it works on Solaris (even better), so I can create a bootable snapshot and destroy everything in my system, even rm -rf /* but after the reboot I may choose to boot from BE created just before that disaster and ... nothing happened.

I do not use DTrace, but many probably do. Jails are very nice thought. I already spoken about OSS in the base system, I already written about deterministic and reliable upgrades. I can also repeat the 'known' properties of FreeBSD like great documentation, great community, a very logical attitude in OS mechanisms and filesystem hierarchy ...

FreeBSD is no panacea to all operating systems problem, it has its own issues, the FreeBSD team has a lot of less resource (and hype) then the Linux world, but taking all the 'cons' and 'pros' its a lot less painful to use FreeBSD then to use any Linux.

If You are interested in FreeBSD desktop workstation, then check these: http://forums.freebsd.org/showthread.php?t=35308 https://cooltrainer.org/2012/01/02/a-freebsd-9-desktop-how-t...

... and I do not want You to see this comment as Linux bashing, these are just my thought about using Linux and using FreeBSD.

Regards, vermaden

vermaden··on What happens when you run `rm-Rf /*`?
If You use Boot Envionments (FreeBSD/Solaris/Illumos) then its harmless, You will just need to reboot into other Boot Environment.
← PreviousPage 17 of 17