Reminder to self: Fix #220 feature SKIP_FIRMWARE by jpluimers · Pull Request #221 · Hexxeh/rpi-update
It’s bash. How hard can it be.
(no that was a rhetorical question).
–jeroen
Posted by jpluimers on 2016/12/13
Reminder to self: Fix #220 feature SKIP_FIRMWARE by jpluimers · Pull Request #221 · Hexxeh/rpi-update
It’s bash. How hard can it be.
(no that was a rhetorical question).
–jeroen
Posted in *nix, *nix-tools, Debian, Development, Hardware Development, Linux, openSuSE, Power User, Raspberry Pi, Raspbian, SuSE Linux, Tumbleweed | Leave a Comment »
Posted by jpluimers on 2016/12/05
Quick look at commands that can be used to gather hardware information such as cpu, disks, memory, partition, peripherals etc on Linux OS based systems
Source: 18 Useful Commands to Get Hardware Information on Linux – Linuxslaves
Covered commands (the article has no index and the headings in it don’t have an id tag, so I linked them to other relevant URLs if I could find them):
via:
–jeroen
Posted in *nix, *nix-tools, Linux, openSuSE, Power User, RedHat, SuSE Linux, Tumbleweed, Ubuntu | 2 Comments »
Posted by jpluimers on 2016/11/25
I got a bit lost in the woods of implicit URLs between various places.
All I wanted is to install software.opensuse.org: Install package server:monitoring / lnav preferably from the link http://software.opensuse.org/ymp/server:monitoring/openSUSE_Tumbleweed/lnav.ymp
It’s the OpenSuSE package for The Log File Navigator which I found based on the recommendation “The Log File Navigator – Joe C. Hecht – Google+“.
The package was in a non-standard repository “server:monitoring”, but shortening the package link doesn’t get you there:
These do however (thanks tacit):
From both, it’s just a couple of clicks away to the lnav packages:
Zypper doesn’t allow you to install one-click install ymp links like http://software.opensuse.org/ymp/server:monitoring/openSUSE_Tumbleweed/lnav.ymp
But OCICLI (one-click install CLI) does. And yes, unlike most console commands IT’S IN UPPERCASE. You can use it like this (note the warning):
OCICLI http://software.opensuse.org/ymp/server:monitoring/openSUSE_Tumbleweed/lnav.ymp
OCICLI is fully compatible with zypper as OCICLI uses YaST and libzypp as underlying technology and zypper uses libzypp.
The yml files are metadata offering to add one or more repositories and install one or more packets or patterns. OCICLI automates that process.
Another option is to manually add the repository using zypper, then install lnav from zypper. There is no URL to this (again; are these the virtues of Web 2.0?) you have to click a few times:
openSUSEAdd repository and install manuallyopenSUSE Tumbleweed, look for this code
zypper addrepo http://download.opensuse.org/repositories/server:monitoring/openSUSE_Tumbleweed/server:monitoring.repo
zypper refresh
zypper install lnav
As currently there is a bug in OCICLI, it will show a warning: Warning: unable to close filehandle properly: Bad file descriptor, <STDIN> line 7 during global destruction (#1) which I reported:
Posted in *nix, Linux, openSuSE, Power User, SuSE Linux, Tumbleweed | Leave a Comment »
Posted by jpluimers on 2016/11/18
You need this statement to unpack an rpm file on Mac OS X without having rpm installed:
rpm2cpio ##filename.rpm## | cpio -idmv
This will make rpm2cpio unpack the rpm file in the current directory using these cpio options:
stderrcpio is already part of the Mac OS X system.
You can get rpm2cpio through homebrew by typing brew install rpm2cpio which will likely also download he xz dependency.
–jeroen
via: rhel – Open a RPM on a Mac? – Unix & Linux Stack Exchange
Posted in *nix, *nix-tools, Apple, iMac, Linux, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.9 Mavericks, Power User, rpm | Leave a Comment »
Posted by jpluimers on 2016/11/16
In my alias list:
alias "tmux-attach-or-create-main-session=tmux new-session -A -s main"
Via User Wesley Baugh – Unix & Linux Stack Exchange who answered:
If naming your session is okay, then it’s easy to do with the new-session command:
tmux new-session -A -s mainwhere
mainis the session name that will be attached to or created if needed.From
man tmuxThe -A flag makes new-session behave like attach-session if session-name already exists; in this case, -D behaves like -d to attach-session.
–jeroen
Source: How to start tmux with attach if a session exists – Unix & Linux Stack Exchange
Posted in *nix, *nix-tools, Linux, openSuSE, Power User, SuSE Linux, tmux | Leave a Comment »
Posted by jpluimers on 2016/11/15
In the 1990s and early 2000s I did a lot of Unix-Like (Minix, SunOS, HP-UX, Xenox) and later Linux (mostly RedHat and SuSE) work. The internet and Linux weren’t as big as they are now and old stuff was still in use including syslogd.
So recently wanting to do more on the Linux side of things using OpenSuSE (as 15+ years ago, I spent most of my time with SuSE Linux) and assumed logging was still done using syslogd like Mac OS X does.
Boy, I was wrong. Like the internet and lots of other things, logging on OpenSuSE has fragmented in at least these three categories of which two syslog implementations (but syslogd is deprecated and – according to the URC #SUSE Channel – unmaintained):
/var/log like named, apache, etc)There seems to be heated debates on what to use when, so I’ll try to stick with the defaults as much as possible.
A few things I need to sort out:
Tonu Su (TSu2) posted an elaborate answer on the above questions on the OpenSuSE forums.
–jeroen
via:
Posted in *nix, *nix-tools, About, Linux, openSuSE, Power User, RedHat, SuSE Linux, Tumbleweed | 2 Comments »
Posted by jpluimers on 2016/11/14
Boy I wish I had known about screen and tmux years ago. Screen is such a generic term that I never bumped into it, but tmux is easier to find and I like it more. When on the road, I regularly loose SSH sessions, so I’ve been starting tmux ever since I discovered it and reattach to it whenever needed thereby getting the same exact she’ll I was connected to.
http://unix.stackexchange.com/q/598/69111
–jeroen
Posted in *nix, *nix-tools, Communications Development, Development, Linux, openSuSE, Power User, SSH, SuSE Linux, TCP | Leave a Comment »
Posted by jpluimers on 2016/11/11
To grow you must first change the size of the container: the partition, the LV, or arraydevice. Then you can resize the file system. It’s the same with XFS, and NTFS. I’m only aware of Apple’sdiskutil resizevolume command that resizes the flavors of HFS+ and at the same time sets the new end valuefor the partition entry.
Source: Development of the BTRFS linux file system (not yet archived at the WayBack machine)
I will need the above for a single disk device having a BTRFS partition sandwiched between a swap and xfs partition:
# parted -l Model: VMware Virtual disk (scsi) Disk /dev/sda: 21.5GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 1562MB 1561MB primary linux-swap(v1) type=82 2 1562MB 17.7GB 16.1GB primary btrfs boot, type=83 3 17.7GB 21.5GB 3799MB primary xfs type=83
I’ll likekly be:
I might be able to do all this from the gparted live CD as moving xfs and growing btrfs is on the GParted — Features list.
Fingers crossed. Luckily I’ve backups (:
–jeroen
Posted in *nix, ESXi4, ESXi5, ESXi5.1, ESXi5.5, ESXi6, Linux, openSuSE, Power User, SuSE Linux, Tumbleweed, VMware, VMware ESXi | Leave a Comment »
Posted by jpluimers on 2016/11/11
If ever on openSuSE Tumbleweed you get an error ImportError: No module named pkg_resources then check you have the installed the python-setuptools package it is different from python3-setuptools which was installed by default but is not the default python used.
This is how to install it:
zypper install python-setuptools
Tools like speedtest-cli require it.
The odd thing: on a Mac, the homebrew speedtest-cli installed and ran with no additional packages needed:
retinambpro1tb:tmp jeroenp$ brew install speedtest-cli
==> Downloading https://github.com/sivel/speedtest-cli/archive/v0.3.2.tar.gz
==> Downloading from https://codeload.github.com/sivel/speedtest-cli/tar.gz/v0.3.2
######################################################################## 100.0%
🍺 /usr/local/Cellar/speedtest_cli/0.3.2: 5 files, 52K, built in 2 seconds
retinambpro1tb:tmp jeroenp$ speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Routit BV (37.153.243.246)...
Selecting best server based on latency...
Hosted by ExtraIP (Amersfoort) [3.99 km]: 6.488 ms
Testing download speed........................................
Download: 49.89 Mbit/s
Testing upload speed..................................................
Upload: 47.81 Mbit/s
(this is on one of my fiber connections back when it was 50/50 megabit).
Note that for both the web interface of speedtest.net and command-line versions (like Python based speedtest-cli) sometimes needs some fiddling with chosen servers and repeated measurements to get a consistent average as quite some factors can influence the measurements.
For my home location, this one gives me the most consistent results for my fiber connections (they’re so good and reliable that I don’t have ADSL or cable any more):
speedtest-cli --server 3629
You can get the list of servers ordered by increasing distance using this command:
speedtest-cli --list | head -n 20
–jeroen
Posted in *nix, *nix-tools, Internet, Linux, openSuSE, Power User, SpeedTest, SuSE Linux | 2 Comments »
Posted by jpluimers on 2016/11/07
At first sight I thought I had a damaged partition table on the HDD, but then I realised it was a bogus DVD.
parted -l would give me this:
Error: Can't have a partition outside the disk! Ignore/Cancel? i Error: Can't have a partition outside the disk! Ignore/Cancel? i Model: NECVMWar VMware IDE CDR10 (scsi) Disk /dev/sr0: 4647MB Sector size (logical/physical): 2048B/2048B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 7340kB 23.9MB 16.5MB primary esp, type=ef 2 23.9MB 18.6GB 18.6GB primary boot, hidden, type=17
A simple eject /dev/sr0 solved the issue.
Too bad there is no way to force parted to ignore errors (or specify a default answer).
–jeroen
Posted in *nix, *nix-tools, Linux, openSuSE, Power User, SuSE Linux, Tumbleweed | Leave a Comment »