Random notes from installing Linux on it … it does just work – but ….
Continue reading “Intel NUC6i7KYK with Debian Jessie”
compiling a vanilla kernel to a .deb
As I keep losing this….
Creating a .deb kernel package from a vanilla kernel.org kernel :
- wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.24.tar.xz
- tar -xf linux-4.4.24.tar.xz
- cd linux-4.4.24
- cp /boot/config-whatever .config
- Optionally: edit and set: CONFIG_DEBUG_INFO=n to stop the *dbg* package being generated
- make olddefconfig
- make deb-pkg -j6 LOCALVERSION=-dg1
BTRFS file deduplication with bedup
adventures with cgroups for resource control
What?
Control Groups aka cgroups – see the docs .
Resource control and monitoring.
Some examples follow for throttling i/o speed(s) for a process control group (cgroup).
Continue reading “adventures with cgroups for resource control”
Dell t300 – Buying an ancient server
So, one of my office servers was misbehaving – and random crashes finally tipped me over the edge.
Read on a blurb of text about buying an ancient computer from ebay and some uninteresting pitfalls encountered.
Bash random number generation
Historically I’ve used $RANDOM as a random number source in bash — a bit like :
RAND=$(( $RANDOM % 10 ))
when I’ve needed a random number out of 0,1,2,3,4,5,6,7,8 and 9
one problem with this is that $RANDOM itself is populated between 0 and 32767 by the shell – so it’s not going to give totally even distribution.
Finally, I discovered ‘shuf’ — usage like :
shuf -i 1-100 -n 1
-i RangeFrom-RangeTo
-n how many
So –
RAND=$(( shuf -i 1-10 -n 1))
ack-grep config – ackrc – adding new file types
I needed to add some more file types for ack-grep to find / search when I’m looking for PHP code that resides in files with non-standard extensions (e.g. something.def, something.inc etc).
Continue reading “ack-grep config – ackrc – adding new file types”
MySQL Max_connections stuck on 214 ?
I found MySQL was being annoying earlier and not ‘accepting’ my max_connections = 450 directive on a Debian Wheezy install, and being seemingly stuck on having 214 connections….
More monitors.
I have an Intel NUC d54250wyk as my work computer (it’s a little dinky thing, which somehow manages to pack a reasonable punch).
On board it has a mini-hdmi port, and a mini-display port – which I used for a dual monitor configuration.
But two monitors is so last year …. and after 5+ years of having two monitors to stare at, I thought it was perhaps time to move up to 3 (or more).
Continue reading “More monitors.”
BTRFS gotchas… (balance / scrub / snapshots / quota)
I’ve been using BTRFS for a few weeks now, and some bits are great (filesystem snapshots, dynamic resizing etc).
The “Good” and “Bad” things follow:
Continue reading “BTRFS gotchas… (balance / scrub / snapshots / quota)”