CitiZen nmap output: beagleboard with these open ports:
- 22 – ssh
- 80 – http
- 81 – unknown
- 1883 – mqtt
- 35505 – http
–jeroen
Posted by jpluimers on 2019/06/14
CitiZen nmap output: beagleboard with these open ports:
–jeroen
Posted in *nix, *nix-tools, nmap, Power User | Leave a Comment »
Posted by jpluimers on 2019/06/07
I got confused as I thought red text would mean an error.
But they’re not: greenish yellow on a read background means error (a symbolic link to a place that’s no longer there).
It’s the output of https://github.com/gkotian/gautam_linux/blob/master/scripts/colours.sh as the one at
Actually the script is here https://raw.githubusercontent.com/gkotian/gautam_linux/master/scripts/colours.sh as the one at [WayBack] command line – What do the different colors mean in the terminal? – Ask Ubuntu failed with errors like this one:
-bash: *.xbm: bad substitution
The full script output is below.
Since various terminals have a different mapping from colours in the ANSI escape code colour table, I used the standard HTML colours using (which slightly differs from the Terminal.app screenshot on the right):
LS_COLORS uses dircolors which depends on the ISO 6429 color encoding) ANSI escape code: Colors.References:
Note that the shell on Mac OS X uses a different way of configuring colours CLICOLOR as described in [WayBack] settings – CLICOLOR and LS_COLORS in bash – Unix & Linux Stack Exchange. I might cover that another day.
Script output:
Posted in *nix, *nix-tools, ANSI escape code, bash, CSS, Development, Encoding, HTML, HTML5, Linux, openSuSE, Power User, Software Development, SuSE Linux, Tumbleweed, Web Development | Leave a Comment »
Posted by jpluimers on 2019/05/23
Too bad G+ doesn’t allow the WayBack machine or Archive.is to archive the whole thread at [WayBack] [Archive.is] Das es inzwischen fast überall Standard ist die Uhren mit einem guten Zeitsignal zu synchronisiseren (NTP, DCF-77, GPS etc) ist eigentlich eine gute Sache… – Kristian Köhntopp – Google+ so here are a few quotes below.
The generatel conclusions seem to be that:
This was the start:
Nils Ketelsen originally shared:
Guckt man live sieht es schon anders aus: Während die RunQueue meist so bei 4-5 liegt (bei 21vCPUs kein Problem) springt sie jede volle Minute einige Sekunden lang auf 20. Bei durch 2 Teilbaren Minuten auf ca. 40. Bei durch 10 Teilbaren Minuten auf 70, bei durch 15 teilbaren Minuten auf 150…. Ich habe eben durch einen schlecht getimten Toilettenbesuch die volle Stunde verpasst, das muss ich gleich mal anders hinbekommen, aber ich gehe davon aus, daß es da noch schlimmer ist.
And these some of the comments:
Posted in *nix, *nix-tools, Algorithms, cron, Development, Power User, Software Development | Leave a Comment »
Posted by jpluimers on 2019/05/17
Booting the VM gave this in the log:
# btrfs balance /
WARNING:
Full balance without filters requested. This operation is very
intense and takes potentially very long. It is recommended to
use the balance filters to narrow down the scope of balance.
Use 'btrfs balance start --full-balance' option to skip this
warning. The operation will start in 10 seconds.
Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting balance without any filters.
ERROR: error during balancing '/': Input/output error
There may be more info in syslog - try dmesg | tail
diaspore:~# dmesg | tail
[ 2261.857360] BTRFS info (device sda2): found 144 extents
[ 2261.922014] BTRFS info (device sda2): found 144 extents
[ 2262.003653] BTRFS info (device sda2): found 144 extents
[ 2262.146557] BTRFS info (device sda2): found 144 extents
[ 2262.268034] BTRFS info (device sda2): relocating block group 20951597056 flags data
[ 2268.255631] BTRFS info (device sda2): found 19765 extents
[ 2278.541549] BTRFS info (device sda2): found 19758 extents
[ 2278.685372] BTRFS info (device sda2): relocating block group 14558429184 flags data
[ 2278.714483] BTRFS warning (device sda2): csum failed root -9 ino 269 off 65150976 csum 0x27374190 expected csum 0x7091fbbc mirror 1
[ 2278.714619] BTRFS warning (device sda2): csum failed root -9 ino 269 off 65150976 csum 0x27374190 expected csum 0x7091fbbc mirror 1
Booting from a rescue DVD, then checking with an unmounted /dev/sda2 nothing is wrong:
localhost:~ # btrfs check /dev/sda2 Checking filesystem on /dev/sda2 UUID: 23d33d0f-0468-4408-b73c-b0eec9387d82 checking extents checking free space cache checking fs roots checking csums checking root refs checking quota groups found 6460166144 bytes used, no error found total csum bytes: 5795704 total tree bytes: 214171648 total fs tree bytes: 193740800 total extent tree bytes: 12910592 btree space waste bytes: 40754145 file data blocks allocated: 35720101888 referenced 11352182784
Both had the same version:
# btrfs version btrfs-progs v4.13
If I ever need recovery, then these links likely help:
–jeroen
Posted in *nix, *nix-tools, btrfs, File-Systems, Power User | Leave a Comment »
Posted by jpluimers on 2019/05/16
To reset Ubuntu Unity or any other Linux desktop with GNOME/MATE DEs to its default settings, run:
dconf reset -f /
Source: [WayBack] Reset Linux Desktop To Default Settings With A Single Command – OSTechNix
I need to check if it works on OpenSuSE with XFCE as there the dconf command is installed, but I still have a default desktop (mainly because most of the work I do is using a terminal over ssh).
–jeroen
via: [Archive.is] Never thought about dconf reset… Joe C. Hecht – Google+
Posted in *nix, *nix-tools, Linux, Power User, X11 | Leave a Comment »
Posted by jpluimers on 2019/05/13
Based on [WayBack] command line – How to access a usb flash drive from the terminal? – Ask Ubuntu
Figure out the device:
lsblksudo blkidsudo fdisk -lMount the device (assuming it is /dev/sdb1):
sudo mount /dev/sdb1 /media/usbpmount /dev/sdb1udisksctl mount -b /dev/sdb1Unmounting and eject is in [WayBack] Linux (Ubuntu): safely remove USB flash disk via command line – Stack Overflow
–jeroen
Posted in *nix, *nix-tools, Linux, Power User | Leave a Comment »
Posted by jpluimers on 2019/05/06
On my research list:
Borg
Deduplicating archiver
with compression and encryptionBorgBackup (short: Borg) gives you:
- Space efficient storage of backups.
- Secure, authenticated encryption.
- Compression: LZ4, zlib, LZMA.
- Mountable backups with FUSE.
- Easy installation on multiple platforms: Linux, macOS, BSD, …
- Free software (BSD license).
- Backed by a large and active open source community.
Source: [WayBack] BorgBackup – Deduplicating archiver with compression and authenticated encryption
Repositories:
–jeroen
Posted in *nix, *nix-tools, Development, Power User, Software Development | Leave a Comment »
Posted by jpluimers on 2019/04/29
From [WayBack] osx lion – osx change printer ip address without adding new printer – Super User:
Q
Is there a way to change a printer’s IP address in OSX (Lion) without having to add a new printer? I did find Printer IP Remedy, but was curious if there was an ‘official’ method.
A
You can do this in the CUPS web interface with the following steps:
- Open Terminal.app and run
cupsctl WebInterface=yes. This enables the CUPS web interface- Open
http://127.0.0.1:631/printersin your web browser- Click on the printer you want to change. From the “Administration” drop down, select “Modify Printer”.
- Log in with your local admin account
- Select the new printer IP either from “Discovered Network Printers” or add it manually with “Other Network Printers”. Make sure that you keep the same connection protocol as it says in “Current Connection” (for me, this was LPD).
Once you’re done with this, Mac OS X will directly print to the new IP address. There is no need to reboot or so. If you want to disable the CUPS web interface again, run
cupsctl WebInterface=no.
The CUPS solution works splendid in MacOS as well, so there was no need for [Archive.is] Printer IP Remedy 1.3 free download for Mac | MacUpdate.
Without the CUPS web interface enabled, the web-interface at http://127.0.0.1:631/printers looks like this:
Web Interface is Disabled
The web interface is currently disabled. Run “cupsctl WebInterface=yes” to enable it.
After enabling it like the CUPS web interface wit cupsctl WebInterface=yes, you can see I have the same printer configured multiple times with different communication protocols and output languages:
Printers
Search in Printers:
Showing 6 of 6 printers.
Queue Name Description Location Make and Model Status OKI_MC342_36855D OKI-MC342-PSO-36855D Office MC342-AirPrint Idle OKI_MC342_36855D_PCL OKI-MC342-36855D PCL 1060NP-Office Generic PCL Laser Printer Idle OKI_MC342_IPP OKI-MC342-IPP Office Generic PostScript Printer Idle OKI_MC342_LPR OKI-MC342-LPR Office Generic PostScript Printer Idle
The first two printers were mapped by DNS, but the last two were mapped by IP address.
Changing the IP address was simple:
This is also the place where you can change “Default options”, like paper size (which – for all but the first – somehow defaulted to US Letter 11 inch, while it is actually filled with A4 paper).
At the end, disable the web interface: cupsctl WebInterface=no.
Related:
–jeroen
Posted in *nix, *nix-tools, Apple, iMac, Mac, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, macOS 10.12 Sierra, macOS 10.13 High Sierra, Power User | Leave a Comment »
Posted by jpluimers on 2019/04/26
Cool list of ls , sort and find to get the largest files, directories: [WayBack] How to Find Out Top Directories and Files (Disk Space) in Linux.
–jeroen
Posted in *nix, *nix-tools, Linux, Power User | Leave a Comment »
Posted by jpluimers on 2019/04/22
I wondered [WayBack] linux – Why is this a binary multi-megabyte blob /etc/udev/hwdb.bin under /etc? – Unix & Linux Stack Exchange.
All my OpenSuSE systems had the /etc/udev/hwdb.bin file with sizes varying between 7.5 and 10 megabytes with many of the zypper dist-upgrade causing updates.
Luckily the system also contains these files which had valid unit definitions, so the file was generated/updated during boot:
/usr/bin/systemd-hwdb/usr/lib/systemd/system/sysinit.target.wants/systemd-hwdb-update.service/usr/lib/systemd/system/systemd-hwdb-update.serviceThanks [WayBack] nwildner for answering that question!
So after installing etckeeper and performing etckeeper init you can immediately remove it from the git repository:
# cd /etc
# git rm --cached /etc/udev/hwdb.bin
rm 'udev/hwdb.bin'
# git commit -m "no need for /etc/udev/hwdb.bin to be under revision control as systemd-hwdb maintains it"
For more background, see [WayBack] How to make Git “forget” about a file that was tracked but is now in .gitignore? – Stack Overflow.
–jeroen
Posted in *nix, *nix-tools, etckeeper, Linux, openSuSE, Power User, SuSE Linux, systemd, Tumbleweed | Leave a Comment »