Tag Archives: thinkpad

Valuable News – 2019/01/11

The Valuable News weekly series is dedicated to provide summary about news, articles and other interesting stuff mostly but not always related to the UNIX or BSD systems. Whenever I stumble upon something worth mentioning on the Internet I just put it here so someone else can

Today the amount information that we get using various information streams is at massive overload. Thus one needs to focus only on what is important without the need to grep(1) the Internet everyday. Hence the idea of providing such information ‘bulk’ as I already do that grep(1).

UNIX

In Other BSDs for 2019/01/05.
https://www.dragonflydigest.com/2019/01/05/22307.html

Devin Teske made sysconf(8) to safely edit system config files on FreeBSD.
Another great tool after sysrc(8) that allows safe edit of system rc files.
https://github.com/freebsdfrau/FrauBSD/tree/master/sysconf

New PEFS 2018.12.29 Release.
http://pefs.io/blog/2018/12/release-20181229/?fbclid=IwAR2fPxLnl18rfAVcQ6OmMR7FhsRGuorHq84xYhQ-cnO2m7_7Z2aSFB65PLI

Revive Cisco IDS Into Capable OpenBSD Computer.
https://komlositech.wordpress.com/2018/12/30/revive-a-cisco-ids-into-a-capable-openbsd-firewall/

How I did start using FreeBSD.
https://www.banym.de/how-i-did-start-using-freebsd.html

MacBook Pro 9.2 Gets FreeBSD Support.
https://twitter.com/FreeBSDHelp/status/1081395210259595265

New HardenedBSD 13.0 Image for RPI3.
https://hardenedbsd.org/~shawn/rpi3/2019-01-05/HardenedBSD-aarch64-13.0-HARDENEDBSD-fa32a12f857-RaspberryPi3.img.xz
https://twitter.com/lattera/status/1081919725611950082

FreeBSD gives sh(1) proper default prompt instead of just “$“.
https://svnweb.freebsd.org/base?view=revision&revision=342812

More FreeBSD RFC Sendmail Deprecation Discussion.
https://lists.freebsd.org/pipermail/freebsd-arch/2017-December/018712.html

DistroWatch – Feature Story – FreeBSD 12.0-RELEASE Review.
“(…) this release feels like a polished and improved incremental step forward.”
https://distrowatch.com/weekly.php?issue=20190107#freebsd

DistroWatch – Musings on Distros After Prolonged Use (2019).
“FreeBSD is probably my favourite server-oriented operating system, mostly because it never surprises me.
FreeBSD tends to do what you tell it to do, and just do what you tell it to do.”

https://distrowatch.com/weekly.php?issue=20190107#lookback

New ZFS on FreeBSD Implementation Can Now Be Tested with TrueOS.
https://www.phoronix.com/scan.php?page=news_item&px=ZFS-On-Linux-Test-TrueOS-Spin
https://pkg.trueos.org/iso/snapshot-zol/

OmniOS Community Edition r151028j/r151026aj/r151022ch.
https://omniosce.org/article/release-028j-026aj-022ch

FreeBSD Foundation – December 2018 – Development Projects Update.
https://www.freebsdfoundation.org/blog/december-2018-development-projects-update/

Zackup – Backup to ZFS – Inspired by BackupPC.
https://github.com/digineo/zackup

POSIX Shell and Utilities.
https://shellhaters.org/

OPNsense 18.7.10 Released.
https://forum.opnsense.org/index.php?topic=10903.0

A wc clone written in Rust.
https://crates.io/crates/cw

FreeBSD as my Network Storage Server (Part 1).
https://www.jasonvanpatten.com/2015/11/26/freebsd-as-my-network-storage-server/

FreeBSD as my Network Storage Server (Part 2).
https://www.jasonvanpatten.com/2015/11/26/freebsd-as-my-network-storage-server-part-2/

Knightmare: DevOps Cautionary Tale.
Knightmare: A DevOps Cautionary Tale

IOCCC: Best of Show.
https://www.ioccc.org/2018/mills/hint.html

Quick Naive Benchmarks on AMD A8-5550M APU on FreeBSD (with and without AESNI).
https://lists.freebsd.org/pipermail/freebsd-current/2018-December/072466.html

Goal of GameBSD is to provide a place for students to learn about programming and technology.
https://gamebsd.com/index.html

AIX 7.2 running on AARCH64 (ARM) Pinebook with QEMU.
https://twitter.com/astr0baby/status/1082811124897251328

OpenBSD Router.
http://www.homeandofficeit.com/Main/OpenBSDRouter

New console font Spleen made default on OpenBSD.
https://undeadly.org/cgi?action=article;sid=20190110064857

Interactive VIM Tutorial.
https://openvim.com/

ZFS on Linux does not work on Linux 5.0 kernels.
https://marc.info/?l=linux-kernel&m=154714516832389

Hardware

AMD Ryzen Mobile 3000-Series Launched – 2nd Gen Mobile at 15W-35Wand Chromebooks.
https://www.anandtech.com/show/13771/amd-ces-2019-ryzen-mobile-3000-series-launched

AMD launches two new A-series 6W chips for Chromebooks.
https://liliputing.com/2019/01/amd-launches-two-new-a-series-chips-for-chromebooks.html

AMD Powered Acer Chromebook 315 Announced.
https://www.anandtech.com/show/13783/acer-at-ces-amd-powered-acer-chromebook-315-announced

Huawei claims its Kunpeng 920 ARM based processor is the industry’s fastest.
64 cores clocked at 2.6GHz with 8-channel DDR4 memory.
Also two 100G RoCE ports and support for PCIe Gen4 and CCIX.
https://venturebeat.com/2019/01/06/huawei-claims-its-kunpeng-920-arm-based-risc-processor-is-the-industrys-fastest/

Huawei Unveils Industry’s Highest-Performance ARM-based CPU.
https://www.huawei.com/en/press-events/news/2019/1/huawei-unveils-highest-performance-arm-based-cpu

Samsung Plans 3nm Gate-All-Around FETs in 2021.
https://www.eetimes.com/document.asp?doc_id=1333318

Lenovo ThinkPad X1 Carbon 7th Gen Gets Thinner.
https://www.anandtech.com/show/13833/lenovo-at-ces-2019-7th-gen-thinkpad-x1-carbon-gets-thinner

Life

Amazon sent 1700 audio recordings of Alexa user to a stranger.
https://www.hackread.com/amazon-sent-audio-recordings-of-alexa-user-to-stranger/?fbclid=IwAR0B9CiTTpOxDClsNmfrlmRxyzP1nHzMYbCk2e8aAI8EgNkgKvyImJXGd-A

Before you can be with others, first learn to be alone.
https://aeon.co/ideas/before-you-can-be-with-others-first-learn-to-be-alone

10 Harmful Effects of Religion.
http://sarahrocksdale.wixsite.com/blog/single-post/2019/01/08/10-Harmful-Effects-of-Religion

System Down: systemd-journald Exploit.
https://www.qualys.com/2019/01/09/system-down/system-down.txt

Other

The State Of Software Security In 2019.
https://noncombatant.org/2019/01/06/state-of-security-2019/

The Developer Experience Bait-and-Switch.
https://infrequently.org/2018/09/the-developer-experience-bait-and-switch/

LinkedIn violates privacy and detects usage of browser extensions.
https://github.com/dandrews/nefarious-linkedin

Classic Doom gets 3D/HD remaster – courtesy of the fans.
https://www.pcgamesn.com/doom/doom-remaster

RPG Codex Review: ATOM RPG (Remix of Fallout Story).
https://rpgcodex.net/content.php?id=11080

Facebook is the new crapware.
https://techcrunch.com/2019/01/09/facebook-is-the-new-crapware/

EOF
Advertisements

Valuable News – 2018/12/28

The Valuable News weekly series is dedicated to provide summary about news, articles and other interesting stuff mostly but not always related to the UNIX or BSD systems. Whenever I stumble upon something worth mentioning on the Internet I just put it here so someone else can

Today the amount information that we get using various information streams is at massive overload. Thus one needs to focus only on what is important without the need to grep(1) the Internet everyday. Hence the idea of providing such information ‘bulk’ as I already do that grep(1).

UNIX

The iocage 1.0 Released.
https://github.com/iocage/iocage/releases/tag/1.0

FreeBSD in Audio Studio.
FreeBSD is usually not the first choice for music art, but it has quite a lot to offer.
https://fosdem.org/2019/schedule/event/freebsd_in_audio_studio/

Install DragonFly BSD 5.4.
https://gitlab.com/jacekkowalczyk82/freebsd/blob/master/DragonFlyBSD.md

FreeBSD and USB MIDI.
https://meka.rs/blog/2017/06/17/freebsd-usb-midi/

In Other BSDs for 2018/12/22.
https://www.dragonflydigest.com/2018/12/22/22216.html

HardenedBSD 1100056.11 Available.
https://hardenedbsd.org/article/op/2018-12-22/stable-release-hardenedbsd-stable-11-stable-v110005611

HardenedBSD 1200058.1 Available.
https://hardenedbsd.org/article/op/2018-12-22/stable-release-hardenedbsd-stable-12-stable-v12000581

DragonFly 5.4.1 Released.
https://www.dragonflydigest.com/2018/12/24/22268.html

FreeBSD 2018/01-09 Status Report.
https://www.freebsd.org/news/status/report-2018-01-2018-09.html

FreeBSD Had Very Successful 2018 – Performance Improvements – Better Hardware Support.
https://www.phoronix.com/scan.php?page=news_item&px=FreeBSD-2018-Q1-Q3-Status

Blender 2.8 Released.
https://www.blender.org/2-8/

FreeBSD Foundation Created FreeBSD Timeline.
https://www.freebsdfoundation.org/freebsd/timeline/

Gitea On OpenBSD – Using Official Package.
https://dev.to/nabbisen/gitea-on-openbsd-using-official-package-2ogl

BSD Now 278 – Real McCoy.
https://www.jupiterbroadcasting.com/128586/the-real-mccoy-bsd-now-278/

FreeBSD switches mutexes to atomics in GEOM_DEV I/O path.
IOPS increases from 600K to 800K+ on NVMe at 72-core systems.
https://svnweb.freebsd.org/base?view=revision&revision=342558

FreeBSD Wireless Quickstart.
http://srobb.net/fbsdquickwireless.html

Haiku Beta – Release Heard Around the World.
https://medium.com/@andrewgreimann_62789/haiku-beta-the-release-heard-around-the-world-d776cae5f3e7

Mac OS X Kernel Programming Guide – BSD Overview.
How much BSD is in the macOS system.
https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/BSD/BSD.html

FreeBSD on ThinkPad X240.
https://unrelenting.technology/articles/freebsd-on-the-thinkpad-x240

Hardware

Distrowatch.com – First Impressions of Pinebook.
https://distrowatch.com/weekly.php?issue=20181224#pinebook

Slimbook PRO2.
https://slimbook.es/en/pro-ultrabook-13-aluminium

Banana Pi to Launch 24-Core ARM Server.
https://www.cnx-software.com/2018/12/26/banana-pi-24-core-arm-server/

Life

Sugar Sick Secrets: How Industry Forces Have Manipulated Science to Downplay the Harm.
https://www.ucsf.edu/news/2018/12/412916/sugars-sick-secrets-how-industry-forces-have-manipulated-science-downplay-harm

World’s Newest Major Religion – No Religion.
https://news.nationalgeographic.com/2016/04/160422-atheism-agnostic-secular-nones-rising-religion/

What is each country’s second-largest religious group?
http://www.pewresearch.org/fact-tank/2015/06/22/what-is-each-countrys-second-largest-religious-group/

Evolution Is Finally Winning Out Over Creationism.
https://slate.com/technology/2015/11/polls-americans-believe-in-evolution-less-in-creationism.html

35 years ago Isaac Asimov was asked by Star to predict world of 2019.
https://www.thestar.com/news/world/2018/12/27/35-years-ago-isaac-asimov-was-asked-by-the-star-to-predict-the-world-of-2019-here-is-what-he-wrote.html

Other

DOOMBA – Convert your Roomba tracking data into randomized DOOM map.
http://richwhitehouse.com/index.php?postid=72

EOF

FreeBSD Desktop – Part 2.1 – Install FreeBSD 12

This article is an update/rewrite to the already published FreeBSD Desktop – Part 2 – Install. With the upcoming introduction of the FreeBSD 12.0-RELESE version new possibilities arise when it comes to installation. I already talked/showed that method in my ZFS Boot Environments Reloaded at NLUUG presentation but to make it more available and obvious part of my FreeBSD Desktop series I write about it again in dedicated article entry.

You may also check earlier/other articles of the FreeBSD Desktop series:

Now (in FreeBSD 12.x) it is possible to install FreeBSD on GELI encrypted root on ZFS pool without any additional partitions or filesystems. No longer separate UFS or ZFS boot pool /boot filesystem is needed. And what is even more appealing such setup is supported both on UEFI and BIOS (also refereed as Legacy or CSM) systems. Such setup is also compatible with both new bectl(8) utility and the old proven beadm(8) tool. It is also nice that to make such setup you only need to choose the Auto ZFS option from the bsdinstall(8) so you will not have to do it by hand. I advice using GPT (BIOS+UEFI) as it will support both system types so when you are running BIOS system now and will move the disk to other system that boots with UEFI it will also just work out of the box.

The FreeBSD 12.0 is currently at the RC1 stage so we will use that one for below examples of such setup. The 12.0-RELEASE is expected to arise before Christmas if no significant problems or bugs will be found on the road to RC2 and RC3 editions.

For the record here is the FreeBSD 12.0-RC1 Availability information page and aggregated FreeBSD 12.0-RELEASE Release Notes for the upcoming new major FreeBSD version, but it is not yet complete/ready.

I will only show one install process that will work for both UEFI and BIOS systems – the crucial option here is GPT (BIOS+UEFI) to select (which is also the default one). The other option that You need to select is Yes for the Encryption part and also select the SWAP size. You may as well do not use swap and enter ‘0‘ here which means that SWAP partition will not be created. You may as well create ZFS ZVOL partition for SWAP on ZFS pool later or just create a file like /SWAP and enable it as SWAP. No matter which SWAP option you will choose if your system swaps then you are too low on memory and neither of these methods are better or worse then.

freebsd-install-01.png

freebsd-install-02.png

freebsd-install-03.png

One last thing about the default FreeBSD (no matter if 11.x or 12.x) ZFS dataset/filesystem layout. I showed it on my ZFS Boot Environments/ZFS Boot Environments Reloaded presentations but without any text comment as I talked it live.

By default both /var and /usr filesystems are part of the Boot Environment. They are protected and snapshoted during the beadm create newbe process (or by bectl(8) also). Its appears that /var and /usr are separate processes when you type zfs list commend as shown on the slide below.

zroot-layout-01.png

… but when you check the canmount parameter for all ZFS datasets, then it become obvious that /usr and /var are ’empty’ datasets (not mounted).

zroot-layout-02.png

… and also confirmation from theΒ df(1) tool.

zroot-layout-03.png

I asked FreeBSD Developers what is the reason for such construct and its for the mountpoint inheritance purposes. For example when zroot/usr has mountpoint set to /usr then when you create zroot/usr/local dataset, then it will automatically get the /usr/local for the mountpoint parameter by inheritance. At the first sight it may be misleading (I also got caught) but it makes sense when you think about it.

The only filesystems that are NOT included for the Boot Environment protection are these:

  • /usr/home
  • /usr/ports
  • /usr/src
  • /var/audit
  • /var/crash
  • /var/log
  • /var/mail
  • /var/tmp

While in most cases it is not needed to protect these in the Boot Environment protection if you want to also protect these type these two comments to move all the /usr/* and /var/* datasets/filesystems into the Boot Environment pool/ROOT/dataset. It will work on a running system without need for reboot, just make sure you use -u flag.

# zfs rename -u zroot/usr zroot/ROOT/default/usr
# zfs rename -u zroot/var zroot/ROOT/default/var

Now grab that FreeBSD ISO and install it the best possible way up to date πŸ™‚

You will probably want to get amd64 version which is suitable for both 64-bit AMD and Intel systems.

EOF

Β 

Valuable News – 2018/10/27

The Valuable News weekly series is dedicated to provide summary about news, articles and other interesting stuff mostly but not always related to the UNIX or BSD systems. Whenever I stumble upon something worth mentioning on the Internet I just put it here so someone else can

Today the amount information that we get using various information streams is at massive overload. Thus one needs to focus only on what is important without the need to grep(1) the Internet everyday. Hence the idea of providing such information ‘bulk’ as I already do that grep(1).

UNIX

FreeBSD 12.0-BETA1 Available.
https://lists.freebsd.org/pipermail/freebsd-stable/2018-October/089821.html

ZFS Replication Tool zrepl 0.1.0-rc2 Available.
https://github.com/zrepl/zrepl/releases/tag/0.1.0-rc2

In Other BSDs for 2018/10/20.
https://www.dragonflydigest.com/2018/10/20/21945.html

OpenBSD – How to fix a broken ACPI.
https://www.echinopsys.de/en/blog/fix-broken-acpi-on-openbsd.html

DNS over TLS in FreeBSD 12.
https://blog.des.no/2018/10/dns-over-tls-in-freebsd-12/

FreeBSD switch default PHP version from 7.1 to 7.2.
https://svnweb.freebsd.org/ports?view=revision&revision=482746

No more joy in FreeBSD.
https://twitter.com/pbiernacki/status/1054325671705669633
https://lists.freebsd.org/pipermail/svn-src-head/2018-October/119022.html

OpenBSD 6.4 with nested virtualization at gridscale.
https://hazardous.org/archive/blog/2018/10/21/openbsd64-nested-vt-gridscale

DragonFly BSD Performance – SMP Scaling (2018).
What FreeBSD always was suposed to be.
https://www.dragonflybsd.org/performance/

OpenBSD switched default linker on amd64 from GNU to LLVM lld.
https://twitter.com/openbsd/status/1054465364657168384
https://marc.info/?l=openbsd-ports&m=154023755628845&w=2

How to install FreeBSD 11 on Google Cloud Compute.
https://www.cyberciti.biz/faq/howto-deploying-freebsd11-unix-on-google-cloud/

VirtualBox 6.0 Beta 1 Released.
VirtualBox 6.0 will be a new minor release. Yes fuck logic.
https://forums.virtualbox.org/viewtopic.php?f=1&t=89946

FreeBSD commit to introduce /etc/src.conf knob to build userland with retpoline.
https://twitter.com/FreeBSDHelp/status/1053841202896764928
https://svnweb.freebsd.org/base?view=revision&revision=339511

OpenIndiana Hipster 2018.10 Available.
https://www.openindiana.org/2018/10/24/openindiana-hipster-2018-10-is-here/
https://wiki.openindiana.org/oi/2018.10+Release+notes
http://dlc.openindiana.org/

FreeBSD runs RISC-V in multiuser on lowRISC Nexys 4 DDR.
https://twitter.com/ed_maste/status/1054795743725268993

XigmaNAS 11.2.0.4.6154 Available.
https://sourceforge.net/projects/xigmanas/files/XigmaNAS-11.2.0.4/11.2.0.4.6154/

Barman 2.5 with Support for PostgreSQL 11.
https://www.postgresql.org/about/news/1897/

POWER9 Desktop.
https://twitter.com/hughhalf/status/1054642786727800833https://twitter.com/hughhalf/status/1054642786727800833

Installing Arcan on FreeBSD.
https://github.com/wolfspider/ArcanFreeBSDGuide

What I learned from porting my projects to FreeBSD.
https://github.com/shlomif/what-i-learned-from-porting-to-freebsd#what-i-learned-from-porting-my-projects-to-freebsd

GhostBSD 18.10 RC1/RC2 Available.
https://ghostbsd.org/18.10_RC1_release_announcement
https://ghostbsd.org/18.10_RC2_release_announcement

FreeBSD is not Linux distribution.
https://www.youtube.com/watch?v=ps67ECyh0sM

OpenBSD 0-day Xorg/Xenocara LPE via CVE-2018-14665.
https://twitter.com/hackerfantastic/status/1055568290112831490

Microsoft are services run by UNIX systems.
Hotmail on FreeBSD.
MSN using Apache on Solaris.
bCentral ad servers running on FreeBSD.
https://twitter.com/unix_byte/status/1053848882793181188

OpenBSD Foundation reached its 2018 fundraising goal.
https://www.openbsdfoundation.org/contributors.html

Hardware

AMD EPYC 3251 Benchmarks and Review the Challenger We Need.
https://www.servethehome.com/amd-epyc-3251-benchmarks-and-review/

ASRock DeskMini A300 STX Motherboard.
https://smallformfactor.net/forum/threads/possibility-of-amd-on-stx-form-factor.6798/page-6#post-119036

Supermicro CEO Letter Addressing Recent Article.
https://www.supermicro.com/en/news/CEO-letter

Intel kills off the 10nm process.
https://semiaccurate.com/2018/10/22/intel-kills-off-the-10nm-process/

Need modest ARM Cortex-A CPU? Just apply online with $125,000.
https://www.theregister.co.uk/2018/10/22/arm_cortex_a5_designstart/

Porting Coreboot to the 51NB ThinkPad X210 Mod.
https://mjg59.dreamwidth.org/50924.html

Thinkpad X62.
https://geoff.greer.fm/2017/07/16/thinkpad-x62/

How IBM ThinkPad Became Design Icon.
https://www.fastcompany.com/90145427/how-ibms-thinkpad-became-a-design-icon
https://news.ycombinator.com/item?id=18273305

HP Spectre 13.3 x360 – Quad-Core i7 with 22.5 Hour Battery Life.
https://www.anandtech.com/show/13509/hp-launches-ultra-thin-hp-spectre-13-x360

Life

Not exercising worse for your health than smoking, diabetes and heart disease, study reveals.
https://edition.cnn.com/2018/10/19/health/study-not-exercising-worse-than-smoking/index.html

Other

Warhol and the Amiga.
https://www.warhol.org/exhibition/warhol-and-the-amiga/

Soviet Tesla – Electric Lada from 30 Years Ago That Was Mass Produced.
http://englishrussia.com/2018/09/04/soviet-tesla-electric-lada-from-30-years-ago-that-was-mass-produced/

NASA finds perfectly rectangular iceberg in Antarctica as if it was deliberately cut.
https://www.physics-astronomy.org/2018/10/nasa-finds-perfectly-rectangular.html

Apple and Samsung fined for deliberately slowing down phones.
https://www.theguardian.com/technology/2018/oct/24/apple-samsung-fined-for-slowing-down-phones

EOF

Valuable News – 2018/10/13

The Valuable News weekly series is dedicated to provide summary about news, articles and other interesting stuff mostly but not always related to the UNIX or BSD systems. Whenever I stumble upon something worth mentioning on the Internet I just put it here so someone else can

Today the amount information that we get using various information streams is at massive overload. Thus one needs to focus only on what is important without the need to grep(1) the Internet everyday. Hence the idea of providing such information ‘bulk’ as I already do that grep(1).

UNIX

XINUOS Releases New SCO OpenServer 5 Definitive 2018 based on FreeBSD.
http://www.prweb.com/releases/xinuos_releases_new_sco_openserver_5_definitive_2018/prweb15816407.htm
https://xinuos.com/menu-products/openserver-5-2018

Running FreeBSD on OSX using xhyve (bhyve port).
https://dan.langille.org/2018/10/02/running-freebsd-on-osx-using-xhyve-a-port-of-bhyve/

Proper way to update FreeBSD Jails between point releases.
https://orville.thebennettproject.com/articles/the-proper-way-to-update-freebsd-jails/

OpenBSD vmd(8) now supports qcow2 external snapshots which means read only base image with changes written to external files.
https://twitter.com/canadianbryan/status/1049354743573893120
https://marc.info/?l=openbsd-cvs&m=153901633011716&w=2

OmniOS Community Edition r151026w/r151024aw/r151022bu Available.
https://omniosce.org/article/releases-026w-024aw-022bu

FreeBSD 12 on my PINE64 Pinebook.
https://twitter.com/allanjude/status/1049498429301424128

Tanzanian Digital Library Initiative makes extensive use of FreeBSD and DragonFly BSD.
http://tandli.com/about-tdli/technologies/

Biscuit is monolithic POSIX-subset operating system kernel in Go for x86-64 CPUs.
It was written to study the performance trade-offs of using a high-level language with garbage collection to implement a kernel with a common style of architecture.
https://github.com/mit-pdos/biscuit

SoloBSD 11.2-STABLE-1009 from HardenedBSD 1100056.6 Available.
https://www.solobsd.org/index.php/2018/10/09/solobsd-11-2-stable-1009/

XFS vs EXT4 – Comparing MongoDB Performance on AWS EC2.
https://scalegrid.io/blog/xfs-vs-ext4-comparing-mongodb-performance-on-aws-ec2/

NVMM – NetBSD Virtual Machine Monitor provides hardware-accelerated virtualization support on NetBSD.
http://m00nbsd.net/4e0798b7f2620c965d0dd9d6a7a2f296.html

FreeBSD architectures over time based on http://dmesgd.nycbug.org collection.
https://twitter.com/bsdimp/status/1050045542632308738

FreeBSD 12.0-ALPHA9 Available.
https://lists.freebsd.org/pipermail/freebsd-snapshots/2018-October/000461.html

DragonFlyBSD 5.3 Offering Some Performance Improvements.
https://www.phoronix.com/scan.php?page=article&item=dragonfly-53-1280v5

How to check your data integrity?
https://dataswamp.org/~solene/2017-03-17-integrity.html

Step by Step: All in One Recovery Backup Appliance with FreeNAS 11.1 U6 Bhyve and Veeam.
https://forums.freenas.org/index.php?threads/step-by-step-all-in-one-recovery-backup-appliance-with-freenas-11-1u6-bhyve-and-veeam.70449/

BSD Now 267 – Absolute FreeBSD.
https://www.jupiterbroadcasting.com/127546/absolute-freebsd-bsd-now-267/

Learning Notes on FreeBSD Jails.
https://genneko.github.io/playing-with-bsd/system/learning-notes-on-jails/

MidnightBSD 1.0 Released.
https://midnightbsd.org/notes/

POWER9 functional simulator works on FreeBSD amd64.
https://twitter.com/kevinbowling1/status/1051009520346918913

Eleven bash Tips You Might Want to Know.
Eleven bash Tips You Might Want to Know

Laptop Recommendations for DragonFly BSD.
https://www.dragonflydigest.com/2018/10/12/21932.html

In Other BSDs for 2018/10/13.
https://www.dragonflydigest.com/2018/10/13/21906.html

HOWTO Bhyve (Windows and Linux) from viBSD.
https://www.youtube.com/playlist?list=PLoIdhcVxgUKTN6Y76OpdbrVAlqd8ZkxCf

FreeNAS 11.2-BETA2 Available.
https://www.ixsystems.com/blog/library/freenas-11-2-beta2/

Hardware

Raptor Computing Reveals More Details About Blackbird Low-Cost POWER9 Board.
https://www.phoronix.com/scan.php?page=news_item&px=Raptor-Blackbird-Details

Helios4 ARM Based Open Source NAS SBC For Linux/FreeBSD.
https://technewsone.net/helios4-arm-based-open-source-nas-sbc-for-linux-freebsd/

How Does an Intel Processor Boot?
https://binarydebt.wordpress.com/2018/10/06/how-does-an-x86-processor-boot/

Secure Partitions in ARM Trusted Firmware-A.
https://osfc.io/talks/secure-partitions-in-trusted-firmware-a

ARGON One – Most Versatile Raspberry Pi Mini Computer.
https://www.kickstarter.com/projects/argonforty/argon-one-the-most-versatile-raspberry-pi-mini-com

Libre GPU effort based on RISC-V/Rust/LLVM/Vulkan by developer of earth-friendly computer.
https://hub.packtpub.com/a-libre-gpu-effort-based-on-risc-v-rust-llvm-and-vulkan-by-the-developer-of-an-earth-friendly-computer/

ROG Strix GL702ZC is world’s first laptop with 8-core AMD Ryzen 7 1700 CPU.
https://www.asus.com/Laptops/ROG-Strix-GL702ZC/

IBM ThinkPad Laptop Power Series 850.
http://www.osnews.com/story/30782/IBM_ThinkPad_Power_Series_850
https://en.wikipedia.org/wiki/PowerPC_Reference_Platform

Rambus – No Need to Reinvent the Wheel – How Easy It Is to Build with RISC-V.
https://www.rambus.com/blogs/no-need-to-reinvent-the-wheel-how-easy-it-is-to-build-with-risc-v/

TSMC – First 7nm EUV Chips Taped Out and 5nm Risk Production in Q2 2019.
https://www.anandtech.com/show/13445/tsmc-first-7nm-euv-chips-taped-out-5nm-risk-in-q2

Raptor Computing Reveals More Details About Blackbird Low Cost POWER9 Board.
https://www.phoronix.com/scan.php?page=news_item&px=Raptor-Blackbird-Details

RAS Differentiates IBM Power Systems Platform.
http://ibmsystemsmag.com/power/businessstrategy/competitiveadvantage/ras-differentiates-ibm-power-systems/?platform=hootsuite

Life

What’s a senior engineer’s job?
https://jvns.ca/blog/senior-engineer/

How to Get Things Done When You Don’t Feel Like It.
https://queue.acm.org/detail.cfm?id=3280677

Other

These Magical Sunglasses Block All Screens Around You.
https://www.wired.com/story/irl-glasses-screen-blocking/

Firefox removes core product support for RSS/Atom feeds.
https://www.gijsk.com/blog/2018/10/firefox-removes-core-product-support-for-rss-atom-feeds/

Relative performance of C and Rust.
http://dtrace.org/blogs/bmc/2018/09/28/the-relative-performance-of-c-and-rust/

EOF

Valuable News – 2018/10/07

The Valuable News weekly series is dedicated to provide summary about news, articles and other interesting stuff mostly but not always related to the UNIX or BSD systems. Whenever I stumble upon something worth mentioning on the Internet I just put it here so someone else can

Today the amount information that we get using various information streams is at massive overload. Thus one needs to focus only on what is important without the need to grep(1) the Internet everyday. Hence the idea of providing such information ‘bulk’ as I already do that grep(1).

UNIX

Using Dummynet for Traffic Shaping on FreeBSD.
https://www.hyperois.com/members/knowledgebase.php?action=displayarticle&id=1

HardenedBSD 1100056.6 Released.
https://hardenedbsd.org/article/op/2018-09-30/stable-release-hardenedbsd-stable-11-stable-v11000566

Cache Invalidation Bug in Linux Memory Management.
https://googleprojectzero.blogspot.com/2018/09/a-cache-invalidation-bug-in-linux.html

IBM is responsible for making \ the path separator instead of / in MS-DOS.
https://twitter.com/fahickman/status/1045809677827596288
https://github.com/Microsoft/MS-DOS/blob/master/v2.0/source/README.txt

State of Memory Safety in Linux.
https://blog.araj.me/state-of-memory-safety-in-linux/

Haiku R1/Beta1 Released.
http://www.osnews.com/story/30758/Haiku_R1_beta_1_released
https://www.haiku-os.org/get-haiku/release-notes/

FreshRSS – free self-hostable aggregator.
https://freshrss.org/

Miniflux is a minimalist and opinionated feed reader.
https://miniflux.app/

Using very old ZFS filesystem can give you kernel panic on Linux.
https://utcc.utoronto.ca/~cks/space/blog/linux/ZFSOldFilesystemPanic

OpenBSD vmd(8) now works out of the box on AMD Ryzen.
https://twitter.com/LeoUnglaub/status/1046058268555186176

The origin of the name POSIX.
https://stallman.org/articles/posix.html

PostgreSQL Per-Table Autovacuum Tuning.
https://www.keithf4.com/per-table-autovacuum-tuning/

Sequence Caching: Oracle vs. PostgreSQL.
https://seiler.us/2018-10-02-sequence-caching-oracle-vs-postgresql/

Polish BSD User Group.
https://oshogbo.vexillium.org/blog/55/

OpenSSH 2.3-7.4 Mass Username Enumeration (CVE-2018-15473).
https://github.com/trimstray/massh-enum

The POWER9 Desktop is Now Official!
https://twitter.com/PCzanik/status/1047782986660364290

If you were the Linus Torvalds of FreeBSD what would be the first thing you would change?
https://twitter.com/freebsdbytes/status/1047563491828277253

BSD Now 266 – File Type History.
https://www.jupiterbroadcasting.com/127441/file-type-history-bsd-now-266/

OpenBSD on the Desktop: some thoughts.
https://blog.gsora.xyz/openbsd-on-the-desktop-some-thoughts/

Installing Gophernicus in OpenBSD.
http://gopher.solobsd.org/gophernicus.html?utm_source=discoverbsd

FreeBSD finally updates GNOME port to 3.28 version.
https://twitter.com/wezm/status/1047990697838563329
https://svnweb.freebsd.org/ports?view=revision&revision=480951
https://help.gnome.org/misc/release-notes/3.28/

FreeBSD – FCP-0101 – Deprecating Most 10/100 Ethernet Drivers.
https://lists.freebsd.org/pipermail/freebsd-stable/2018-October/089717.html

In Other BSDs for 2018/10/06.
https://www.dragonflydigest.com/2018/10/06/21880.html

DTrace is coming to Windows. Already available on FreeBSD/macOs/Illumos. The only holdout is Linux.
https://twitter.com/TheGlasspelican/status/1048405923318943744
https://youtu.be/tG8R5SQGPck?t=732

Announcing pkgsrc-2018Q3 Release.
https://mail-index.netbsd.org/tech-pkg/2018/10/05/msg020326.html?utm_source=discoverbsd

Migrating OmniOS VM from KVM to bhyve.
https://omniosce.org/info/bhyve_migrate

FreeBSD diskinfo -wS (synchronous writes) bandwidth limits on Optane devices.
https://twitter.com/nickprincipe/status/1048251974532124673

First SmartOS snapshot with bhyve support as alternative hypervisor to QEMU/KVM.
https://bsd.network/@sehnsucht/100843128594097501
http://us-east.manta.joyent.com/Joyent_Dev/public/SmartOS/smartos.html#20180315T080815Z
https://github.com/joyent/smartos-live/commit/48cb3c49e1a9c4cf204a59bed8312b0096f6209e

FreeBSD amd64: make memset less slow with mov.
https://svnweb.freebsd.org/base?view=revision&revision=339205

Hardware

AMD 12-core (2970WX) and 24-core (2920X) Threadripper 2 CPUs on 29th October.
https://www.anandtech.com/show/13443/amd-announces-availability-of-12-and-24core-threadripper-2-cpus-coming-late-october

RISC-V Inches Toward The Center.
https://semiengineering.com/risc-v-inches-toward-the-center/

Lenovo ThinkPad X1 Extreme / 6-core / 64 GB RAM / GTX 1050 Ti / under 4 pounds.
https://arstechnica.com/gadgets/2018/08/lenovos-thinkpad-x1-extreme-hex-core-gtx-1050-ti-64gb-ram-under-4-pounds/

ARM Partners with Xilinx to Bring Cortex-M Processors to FPGAs.
https://blog.hackster.io/arm-partners-with-xilinx-to-bring-cortex-m-processors-to-fpga-be60b4c77b1a

iDRACula Vulnerability Impacts Millions of Legacy Dell EMC Servers.
https://www.servethehome.com/idracula-vulnerability-impacts-millions-of-legacy-dell-emc-servers/

Wi-Fi Alliance Introduces Wi-Fi 6 (802.11ax) Technology.
Wi-Fi 5 to identify devices that support 802.11ac technology.
Wi-Fi 4 to identify devices that support 802.11n technology
https://www.wi-fi.org/news-events/newsroom/wi-fi-alliance-introduces-wi-fi-6

MicroZed Chronicles: XDF & Versal.
https://blog.hackster.io/microzed-chronicles-xdf-versal-b5a04cd0f973

Intel Customized SoC for HP: Amber Lake-Y with On-Package LTE Modem.
https://www.anandtech.com/show/13434/intel-custom-amber-lake-y-with-lte-modem

High resolution photos of the motherboard that looks almost the same in Bloomberg.
https://twitter.com/1kevin335200/status/1047960097937346566

Life

Insufficient Sleep Associated with Risky Teen Behavior.
https://neurosciencenews.com/sleep-teen-behavior-9938/

Annoying habits of highly effective people.
https://www.economist.com/business/2018/09/29/the-annoying-habits-of-highly-effective-people

Your IQ Matters Less Than You Think.
http://nautil.us/issue/65/in-plain-sight/your-iq-matters-less-than-you-think

Other

World’s Oldest Torrent Still Alive After 15 Years.
https://torrentfreak.com/worlds-oldest-torrent-still-alive-after-15-years-180929/

After Seeing These 15 Maps You’ll Never Look At The World The Same.
http://www.physics-astronomy.org/2018/05/after-seeing-these-15-maps-youll-never.html

EOF

FreeBSD Desktop – Part 16 – Configuration – Pause Any Application

Many desktop oriented operating systems try to provide various usability improvements and features, like quite useful Expose or Dashboard in Mac OS X or useless Tiles concept in recent editions of Microsoft Windows systems.

pause.key.jpg

After using UNIX for so many years I knew that I could freeze (or pause) any process in the system with kill -17 (SIGSTOP) signal and then unfreeze it with with kill -19 (SIGCONT) signal as I described in the Process Management section of the Ghost in the Shell – Part 2 article. Doing it that way for the desktop applications is PITA to say the least. Can you imagine opening xterm(1) terminal and searching for all Chromium or Firefox processes and then freezing them one by one every time you need it? Me neither.

Fortunately with introduction of so called X11 helper utilities – like xdotool(1) – it is now possible to implement it in more usable manner.

Today I will show you how to freeze any X11 application with single keyboard shortcut or mouse gesture if you utilize them in any way with small simple script.

When such feature can be useful (or what for)?

Lets say you have Firefox started with many tabs open (50+) and you know that it drains battery life from your laptop. You can close it but when You will need information from any of those tabs, then You will have to start Firefox again (even more battery usage) and load all needed tabs (battery …). The alternative is to pause all Firefox processes when You do not use them. This will freeze all its processes and subprocesses and it will not use any CPU (or battery) power. When you will need it, then you will unpause it without the need to load all tabs again.

Other example may be some heavy processing. For example you started RawTherapee or Darktable processing of large amount of photos and you are not able to smoothly watch a video. Just pause it, watch the video and unpause it again to finish its work.

Its also usable in single player gaming when You can REALLY pause the game, literally πŸ™‚

You may also check earlier articles of the FreeBSD Desktop series:

First we need to install the so called X11 helpers. Do that with this pkg(8) command.

# pkg install xprop xdotool zenity xbindkeys

Now for the script that would make all this magic happen. The desktop-pause.sh script is available on GitHub as its syntax is nicely colored there. Save it in some place where its searchable through ${PATH} variable like ~/bin or ~/script directory and make it executable.

% fetch -O ~/scripts/desktop-pause.sh https://raw.githubusercontent.com/vermaden/scripts/master/desktop-pause.sh
% chmod +x ~/scripts/desktop-pause.sh
% echo $PATH | grep scripts
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/vermaden/scripts

It has three ways of usage.

% desktop-pause.sh
usage: desktop-pause.sh OPTION [ARGUMENT]

OPTIONS:
  -a  -  Do pause/resume active window.
  -s  -  Do pause/resume interactively selected window.
  -p  -  Do pause/resume specified PID.
  -l  -  Do list paused processes/windows.
  -L  -  Do list paused processes/windows with PIDs.

ARGUMENT:
  PID for '-p' option.

If started with -a option, then it would pause/unpause the currently active window. This option is best used with keyboard shortcut or mouse gesture. It you start desktop-pause.sh script with -s argument, then the cursor will change and you will be able to select which window to freeze (or unfreeze). The -p option is usable in terminal directly as you may want to freeze/unfreeze a process without X11 environment or for some debugging purposes for example. The last -l option will list applications that are currently paused.

pause.key.thinkpad

Most present-day generation laptops have island type limited keyboards so you will have to choose for yourself which keyboard shortcut to use. As I still use 2011 ThinkPad T420s laptop with 7-row keyboard I have little more options. The [Pause Break] key seems to be the best candidate for such feature πŸ™‚ I will use it for the ‘active window freeze/unfreeze’ with -a option and [SHIFT]-[Pause Break] key for the more interactive -s option.

To create such new keyboard shortcut we will use handy xbindkeys(1) tool.

Lets see what code we will have to put into the ~/.xbindkeysrc configuration file.

% xbindkeys --help
xbindkeys 1.8.6 by Philippe Brochard
usage: xbindkeys [options]
  where options are:
  -V, --version           Print version and exit
  -d, --defaults          Print a default rc file
  -f, --file              Use an alternative rc file
  -p, --poll-rc           Poll the rc/guile configs for updates
  -h, --help              This help!
  -X, --display           Set X display to use
  -v, --verbose           More information on xbindkeys when it run
  -s, --show              Show the actual keybinding
  -k, --key               Identify one key pressed
 -mk, --multikey          Identify multi key pressed
  -g, --geometry          size and position of window open with -k|-mk option
  -n, --nodaemon          don't start as daemon

As its single key we will need --key option. Lets do it then.

% xbindkeys --key
Press combination of keys or/and click under the window.
You can use one of the two lines after "NoCommand"
in $HOME/.xbindkeysrc to bind a key.
"(Scheme function)"
    m:0x0 + c:110
    Pause

Now lets read the [SHIFT]-[Pause Break] sequence.

% xbindkeys --key
Press combination of keys or/and click under the window.
You can use one of the two lines after "NoCommand"
in $HOME/.xbindkeysrc to bind a key.
"(Scheme function)"
    m:0x1 + c:110
    Shift + Pause

We now have all needed information for the ~/.xbindkeysrc configuration file. Here is how it looks configured.

% cat ~/.xbindkeysrc

# [Pause Break] FOR ACTIVE WINDOW
"~/scripts/desktop-pause.sh -a"
  Pause

# [Shift]-[Pause Break] FOR INTERACTIVE WINDOW
"~/scripts/desktop-pause.sh -s"
  Shift + Pause

Now lets start xbindkeys(1) and verify that it works.

% xbindkeys

Press the [Pause Break] key when you are in the terminal where you started xbindkeys(1) utility. Now hit [ENTER] several times, the terminal should be freezed. Now hit [Pause Break] key again. The etnered [ENTER] keys have been passed to it as it was unfreezed.

Lets check the Firefox example.

When processes run like usual they have on of the I*/S*/R* state like shown below.

% ps ax | grep firefox | grep -v grep
67981  -  S       3:28.66 /usr/local/lib/firefox/firefox -contentproc -childID 58 -isForBrowser -prefsLen 31209 -schedulerPrefs 0001,2 -appdir /usr/local/lib/firefox/browser 41124 tab
41124  0- S      68:44.94 firefox
43940  0- S      25:52.43 /usr/local/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 27620 -schedulerPrefs 0001,2 -appdir /usr/local/lib/firefox/browser 41124 tab

When you will now freeze Firefox with [Pause Break] key its processes will have T state.

% ps ax | grep firefox | grep -v grep
67981  -  T       3:28.66 /usr/local/lib/firefox/firefox -contentproc -childID 58 -isForBrowser -prefsLen 31209 -schedulerPrefs 0001,2 -appdir /usr/local/lib/firefox/browser 41124 tab
41124  0- T      68:45.17 firefox
43940  0- T      25:52.85 /usr/local/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 27620 -schedulerPrefs 0001,2 -appdir /usr/local/lib/firefox/browser 41124 tab

After you unfreeze them again with [Pause Break] key they will get back to normal I*/S*/R* state.

% ps ax | grep firefox | grep -v grep
67981  -  S       3:28.67 /usr/local/lib/firefox/firefox -contentproc -childID 58 -isForBrowser -prefsLen 31209 -schedulerPrefs 0001,2 -appdir /usr/local/lib/firefox/browser 41124 tab
41124  0- S      68:45.54 firefox
43940  0- S      25:53.01 /usr/local/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 27620 -schedulerPrefs 0001,2 -appdir /usr/local/lib/firefox/browser 41124 tab

You may of course specify by hand the Firefox PID which is 41124 in current state.

% desktop-pause.sh -p 41124
INFO: kill -17 41124
INFO: kill -17 67981
INFO: kill -17 43940

The Firefox browser will be paused again.

% ps ax | grep firefox | grep -v grep
67981  -  T       3:28.68 /usr/local/lib/firefox/firefox -contentproc -childID 58 -isForBrowser -prefsLen 31209 -schedulerPrefs 0001,2 -appdir /usr/local/lib/firefox/browser 41124 tab
41124  0- T      68:46.68 firefox
43940  0- T      25:56.22 /usr/local/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 27620 -schedulerPrefs 0001,2 -appdir /usr/local/lib/firefox/browser 41124 tab

Use it again to unpause it.

% desktop-pause.sh -p 41124
INFO: kill -19 41124
INFO: kill -19 67981
INFO: kill -19 43940

And viola! Firefox runs again.

% ps ax | grep firefox | grep -v grep
67981  -  S       3:28.68 /usr/local/lib/firefox/firefox -contentproc -childID 58 -isForBrowser -prefsLen 31209 -schedulerPrefs 0001,2 -appdir /usr/local/lib/firefox/browser 41124 tab
41124  0- S      68:46.72 firefox
43940  0- S      25:56.28 /usr/local/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 27620 -schedulerPrefs 0001,2 -appdir /usr/local/lib/firefox/browser 41124 tab

There are no downsides to this feature but one has to remember paused applications will not refresh themselves as their processes are freezed. Below you can see frozen Epiphany browser upon which the xterm(1) window was moved. Pretty Windows like effect.

epiphany.paused

After you unpause the Epiphany it gets back to normal as shown below.

epiphany.unpaused.png

Remember to add xbindkeys(1) command to your ~/.xinitrc (or ~/.xsession file) to make it permanent.

UPDATE 1

One of the Hacker News users named rhn_mk1 explained the lack of window contents refresh while application is freezed. I will just cite his comment below.

That depends on the window manager. The application state is not really affected, it just stops updating (redrawing its area). When another window moves away, the window manager asks the “underlying” application to update that area of the screen. It’s dead, so the WM keeps displaying the last thing that was there, until something else happens in that spot.

On the other hand, compositing window managers will dedicate a separate buffer to each application, where they have exclusive access. That kind of a window manager would not have to ask the application to update anything – it would just take the image from the dedicated application’s buffer and update the screen with it. Since the application’s buffer can’t be modified by anything else, it would have the last state of the application in it. That would in turn find its way to the screen. No glitches.

UPDATE 2

One of the Reddit users 89luca89 pointed me to the browser-suspender solution that ‘simply suspends the browser when not in focus using STOP/CONT’ signals.

UPDATE 3

The Lobsters user seschwar pointed out that there is Stoppable Layout functionality for XMonad which automatically pauses the processes of all windows except for the active one and it also uses SIGCONT and SIGSTOP signals.

UPDATE 4

One of the Hacker News users named imglorp suggested that my “command could also iconify/minify the app’s windows”.

This is really good idea.

I just added -A and -S options that also minimize a window.

% desktop-pause.sh 
usage: desktop-pause.sh OPTION [ARGUMENT]

OPTIONS:
  -a  -  Do pause/resume active window.
  -A  -  Do pause/resume active window and minimize it.
  -s  -  Do pause/resume interactively selected window.
  -S  -  Do pause/resume interactively selected window and minimize it.
  -p  -  Do pause/resume specified PID.
  -l  -  Do list paused processes/windows.
  -L  -  Do list paused processes/windows with PIDs.

ARGUMENT:
  PID for '-p' option.

Here is the changelog for the desktop-pause.sh script:
https://github.com/vermaden/scripts/commit/03591a138b14cededa15a05fe9c77bf1a941795d

EOF