[linux] New Years resolution: Check out Ottawa co-working spaces

2022-12-30 Thread Robert P. J. Day


  In particular, if you're looking for a place to work away from home,
I've been a member of https://www.coworkly.ca/ in Vanier pretty much
since it opened its doors (I was member #2). There's lots of public
space to set up your laptop, but I have my own private office loaded
with laptops and displays all to myself with 24-hour access.

  If you're looking for a place to work in the new year, check it out.

Rob Day

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] does anyone out there have any raspberry pi 4's they're not using?

2022-11-30 Thread Robert P. J. Day


  i'm working on a project that could use one or two more rpi4s, and
rpis are excruciatingly hard to come by these days, back-ordered
everywhere. if anyone has a spare one they either want to sell, or are
just not using for the moment that i could borrow until the supply
comes back in, let me know. thanks.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] anyone still looking for really nice co-working space?

2021-10-17 Thread Robert P. J. Day


  i have no financial stake in this, just pointing out that if anyone
is still looking for an office away from home, i've been a member at
https://www.coworkly.ca/ at the vanier location since the beginning (i
was actually member #2), and i am totally satisfied.

  given not enough room for both me and my partner to work at home in
our condo, and my current contract employer still unsure as to when
the kanata location will open up again, having access to a 24/7
private office a moderate walk from home is the perfect solution.

  i currently spend $650 (+ HST) per month for my own window-equipped,
private office with enough room for a massive desk that holds two
laptops and four displays, small bookshelf and plastic storage drawers
in the corner, with room left over.

  at the moment, there are available offices for anywhere from one to
four people, and the owner (maher arar) takes spectacularly good care
of everything; i have never had cause to complain.

  so check it out, and financially support a local business that gives
techie (and other) people a superb place to work away from home.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] SSC looking for HP-UX -> SUSE migration expert

2021-09-07 Thread Robert P. J. Day

  i was told i can share this with the list -- teksystems is looking
for a contract person who can help migrate HP-UX servers to SuSE for
shared services canada. i've attached the 1-page job description; i
have no financial interest in this, and interested parties are invited
to contact teksystems directly -- ask for daryl rancourt.

rday

SSC - Linux Migration Engineer.pdf
Description: Adobe PDF document


[linux] any math heads out there who want some books?

2021-08-29 Thread Robert P. J. Day


  doing a massive purge of archived books, and have copies of the
following i'm willing to unload on anyone who would have a legitimate
interest, perhaps on behalf of someone taking math courses in college:

  polya's "how to solve it"
  polya's 2 vol set "mathematics and plausible reasoning"
  newman's 2 vol set "science and sensibility"
  2 martin gardner math puzzle books
  "a random walk in science"

i'd rather unload these all at once rather than one or two at a time,
so if you have interest in the box of them, let me know.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] some (trivial?) questions about "install" command

2021-08-27 Thread Robert P. J. Day


  i'm going over an existing code base with lots of scripts and
"install" commands, and i'm finding some of the variations of that
command being used a little odd, so i just want to ask the experts
whether i really understand that command by throwing out a few of the
examples.

  first, there are a number of groupings like this:

  install -d d1
  install -d d1/d2
  install -d d1/d2/d3

clearly(?), the above is overly wordy, you could just do:

  install -d d1/d2/d3

*unless* you were setting the mode of each directory separately (i am
not aware of how you could do that in a single command). but if no
modes are being specified and you just take the default, is there any
conceivable rationale for breaking this over several lines?

  the other common usage is the ubiquitous:

  install -d d1/d2/d3
  install -m 644 file d1/d2/d3

on the other hand, one *could* do this in a single line with:

  install -D m 644 file d1/d2/d3/file

now, personally, i actually prefer the first two-line form as i think
the one-line form is a bit busy, *but* i appreciate the power of
doing:

  install -D genericfilename d1/d2/d3/installedfilename

that is, automatically renaming the source file name to a new name
during the process.

  again, in this code base, it's broken over two or more lines.

  anyway, just looking for confirmation that my understanding is
correct, or if anyone has some really neat install-based tricks they
use on a regular basis.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] anyone local qualified to be an agile coach?

2021-07-09 Thread Robert P. J. Day


  one of the companies that reps my courses is looking for an agile
coach for a local (ottawa-area) client. if this is something you do,
drop me a note and i'll connect you.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] thoughts on linux on HP 14-fq1040ca?

2021-07-06 Thread Robert P. J. Day
On Tue, 6 Jul 2021, J C Nash wrote:

> I looked at either this one or the Intel i7 version. There seems to
> be a family of machines using mostly same "bits" and changing
> processor and sizes of SSD.
>
> FWIW Canada Computers Kanata has 1 and Merivale claims 3 in stock.
>
> I liked speed, RAM and 1TB "disk".

  the one i see at CC:

https://www.canadacomputers.com/product_info.php?cPath=710_1925_1912_1911_id=182958

differs from the one i was talking about in that the CC model is the
15.6" screen, rather than the smaller 14" one, and i would prefer the
slightly larger screen, so i'm going to take a closer look at the
model in stock at CC.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] thoughts on linux on HP 14-fq1040ca?

2021-07-06 Thread Robert P. J. Day


  i'm in the market for upgrading my current linux laptop, and would
like to go with something with AMD ryzen core, i have the opportunity
to pick up one of these:

https://store.hp.com/CanadaStore/Merch/Product.aspx?id=2L7Q8UA=ABL=NTB=en-CA

can anyone weigh in on HP's support for linux? i suspect it's pretty
good, just looking for any personal experiences.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] has canada computers simply gone away?

2021-07-04 Thread Robert P. J. Day


  just spent the last while trying to call three of its local stores,
and not an answer from any of them. have they simply closed up? gone
bankrupt?

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] possible race condition in makefile with multiple dependencies?

2021-06-03 Thread Robert P. J. Day
On Thu, 3 Jun 2021, Dianne Skoll wrote:

> On Thu, 3 Jun 2021 10:19:22 -0400
> "Michael P. Soulier"  wrote:
>
> > On 2021-06-03 10:09 a.m., Dianne Skoll wrote:
> > > See the -j option
>
> > Seems like a race condition waiting to happen.
>
> Shouldn't be.  My understanding (which may be wrong) is that make
> calculates the dependency graph first, not in parallel.  Then it
> executes as many parallel tasks as the -j option asks for, or that
> make sense... whichever is smaller.  Since the dependency graph is a
> DAG, make should, in theory, be smart enough to see that two
> dependencies depend on the same node and run only one job to build
> the depended-upon node.
>
> I routinely use "make -j `nproc`" and have never run into any
> issues.

  reason i was asking is that, on current contract, devs were
complaining that a legacy makefile was taking ***forever*** to run, so
i took a look at it and it was a holdover from (i believe) QNX where
their version of make did not support parallelism so that many of the
rules were in the form:

target: dep1 dep2 dep3 dep4
$(MAKE) -C subdir1
$(MAKE) -C subdir2
...
$(MAKE) -C subdirn

and AFAIK, even under gnu make parallelism, the commands in any rule
are still run sequentially, so that the above would have to finish the
first make before going to the second, and so on. so i suggested that
refactoring the makefile to turn all those sub-makes into actual
dependencies would probably speed things up, given that the build
system is a 40-core beast.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] possible race condition in makefile with multiple dependencies?

2021-06-03 Thread Robert P. J. Day
On Thu, 3 Jun 2021, Dianne Skoll wrote:

> On Thu, 3 Jun 2021 10:19:22 -0400
> "Michael P. Soulier"  wrote:
>
> > On 2021-06-03 10:09 a.m., Dianne Skoll wrote:
> > > See the -j option
>
> > Seems like a race condition waiting to happen.
>
> Shouldn't be.  My understanding (which may be wrong) is that make
> calculates the dependency graph first, not in parallel.  Then it
> executes as many parallel tasks as the -j option asks for, or that
> make sense... whichever is smaller.  Since the dependency graph is a
> DAG, make should, in theory, be smart enough to see that two
> dependencies depend on the same node and run only one job to build
> the depended-upon node.
>
> I routinely use "make -j `nproc`" and have never run into any
> issues.

  this was my understanding as well, i just wanted to hear some
confirmation from someone else.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] possible race condition in makefile with multiple dependencies?

2021-06-03 Thread Robert P. J. Day


  i'm probably overthinking this, but is there any problem with
defining a makefile with numerous targets that can be processed in
parallel if they all have the same set of dependencies (which can also
be processed in parallel)?

  sample makefile i'm playing with:

.PHONY: all alldeps t1 t2 d1 d2

/ start

all: t1 t2
alldeps: d1 d2

d1:
@echo "start d1"
sleep 5
@echo "end d1"

d2:
@echo "start d2"
sleep 5
@echo "end d2"

t1: alldeps
@echo "start t1"
sleep 5
@echo "end t1"

t2: alldeps
@echo "start t2"
sleep 5
@echo "end t2"

/ end

  as you can see, if i run this makefile, it should process targets t1
and t2 in parallel, but since those targets both have dependencies of
"alldeps", the goal is that *all* dependencies (d1, d2) should be
processed and updated before *any* of the targets t1 or t2 are
allowed to proceed, but when they do, they can also be processed in
parallel.

  i *vaguely* recall (probably incorrectly) a possible race condition
in that both t1 and t2 will check their dependencies and, if they're
out of date, both try to update them at the same time, possibly
stepping on each other's work. i think that's unlikely, so am i
misremembering?

  in short, i will have a set of "dependencies" for a set of
"targets":

  * dependencies can be processed (updated) in parallel
  * targets can be processed (updated) in parallel
  * all dependencies must be up to date before any targets
can start to be processed

is it this simple? or is there something i'm forgetting?

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] how to have a local directory somewhere under an NFS mount?

2021-03-23 Thread Robert P. J. Day
On Tue, 23 Mar 2021, Christopher Harvey wrote:

> hm interesting question. I tried locally out of curiosity and it seems to 
> work.
>
> /mnt/chris is NFS
>
> # sudo mount --bind /home/chris/test-files/ /mnt/chris/tmp/
>
> # mount | grep chris
> //172.24.1.10/chris on /mnt/chris type cifs
> /dev/nvme0n1p4 on /mnt/chris/tmp type ext4
>
> # cd /mnt/chris/tmp/
> now shows the local files.
>
> Unsure how permissions/gid/uid would work in this case though. Do
> you get the CIFS-enforced ones or the mounted directory ones? Mine
> matched before the mount.

  cool, thanks for checking. i'll mention this to my friend, even
though i'm still going to recommend restructuring his scripts to not
depend on hard-coded paths to data directories below the NFS mount
point.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] anywhere in town to get solar chargers with USB ports

2020-11-13 Thread Robert P. J. Day


  will be off the grid later this month for a few days and want to be
able to charge some small USB devices ... everything at best buy is
"available online" only, is there anywhere in town that actually has
small solar chargers on the shelves?

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] anyone out there looking for full-time embedded telecom work?

2020-04-22 Thread Robert P. J. Day


  was just asked if i was available or, if not, whether i knew someone
who's interested in the following, full-time at ciena in kanata:

You will be responsible for:

* Developing the next generation of Packet Networking software
  solutions supporting Software Defined Networking (SDN), Network
  Function Virtualization (NFV) and embedded applications for Layer
  2/3 data networking on a wide range of host platforms.

* Working on a micro-services software architecture employing docker
  containers and virtualization technologies to offer solutions to
  leading global service providers.

* Design and implement embedded software (written in C and running
  over Linux) to configure HW components and manage HW resources, in
  support of data plane / forwarding plane functionality including
  IP/MPLS, L3VPN, EVPN and L2 Ethernet applications

Desired Skills and Experience

* 5-10 years of experience working in an embedded software development
  role, preferably in a data networking or telecommunications
  environment

* Proficiency in multi-threaded C/C++ programming in a Linux-like
  operating system

* Expert level understanding of control-plane and data plane
  processing

* Familiarity with L2/L3 forwarding plane such as switching/routing,
  QoS (shaping, scheduling, metering), link aggregation, protection
  schemes, Ethernet OAM, IP/MPLS



  if you're interested, drop a note to
thomas.mil...@insightglobal.com. i have no financial interest in this,
just want to make sure local linuxers get the opportunity for work.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] what are people using as opposed to zoom for videoconferencing?

2020-04-02 Thread Robert P. J. Day


  given zoom's recent very, very, very bad press:

https://techbeacon.com/node/3805

what alternatives are people here using? here's one article that
proposes some alternatives:

https://www.theverge.com/2020/4/1/21202945/zoom-alternative-conference-video-free-app-skype-slack-hangouts-jitsi

just curious if anyone has personal experience with any of the
lesser-known alternatives?

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] question about automating download/install of google's "repo" tool

2020-03-31 Thread Robert P. J. Day
On Mon, 30 Mar 2020, Rick Leir wrote:

> Robert

> But wait, your vim .. it's out of date. And your compiler .. it's
> out of date.
>
> How frequently does repo get updated? More than vim no doubt. But
> your dnf update happens frequently, or is it apt-get. And it checks
> for compatibility with other packages. And you are less likely to
> stumble at the bleeding edge ( remember openssl and heartbleed? The
> older version was safe.)
>
> But it is more fun to use the latest of everything, I get you there!
> Excuse me for arguing here. Thanks for mentioning repo, I should be
> using it.

  just to be clear about repo, the issue here is that that command
actually serves two purposes.

  first, if you're using it to *initialize* a new repository, it acts
as the "launcher tool", whose job it is to set up the new repo, then
*fetch* the current version of the "repo" command to be used in all
subsequent operations.

  and second, once that repo is initialized (as i said), it's the
newer version (now embedded in the repository) that will be used.

  the point here is that the launcher tool is really a simple piece of
software, doesn't need to do much more than fetch the newer, more
stable version. so downloading and version controlling the launcher
tool version is kind of way overkill, that's all.

  i think i'm going to write a wiki page on this as others i've
chatted with don't really understand how it works.

rday



To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] question about automating download/install of google's "repo" tool

2020-03-30 Thread Robert P. J. Day


  currently having a discussion with a couple colleagues regarding
automating the use of google's repo tool, and part of that involves
the proposal of downloading and storing (or version controlling)
locally the repo launcher tool itself.

  as people familiar with repo will know, repo effectively comes as
two distinct tools (even if bundled in the same script):

  1) the "launcher tool", which is run when you initialize a new
 repo checkout with "repo init", and

  2) the "main" repo tool, which is installed in every initialized
 repo, and which is the one called to do actual repo operations
 on an existing repo

as explained here:

  https://gerrit.googlesource.com/git-repo

to prepare to use repo, the easiest strategy is to copy the launcher
tool to, say, your personal bin directory (and make sure it's in your
search path, of course):

$ mkdir -p ~/.bin
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
$ chmod a+rx ~/.bin/repo

  IOW, every time you run "repo", it will run your personal launcher
tool, and will either:

  1) create a new repo, and install the main repo command in that
repo, or

  2) will recognize you already have a repo, and will invoke the main
"repo" command that is there

  now, in aid of automating as much of this as possible, one of the
proposals is to, ahead of time, download the launcher tool, store it
locally (possibly version controlled), whereupon the automation script
will, for new repos, check out that stored version and take it from
there.

  personally, i prefer the simpler approach of just running these
commands every single time at the top of the automation script to make
sure every developer has their own copy of the launcher tool:

$ mkdir ~/.bin
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
$ chmod a+rx ~/.bin/repo

my attitude is, so what if it downloads a 1000-line script each time?
doing it this way guarantees that one will always have the latest
version from google. i think trying to avoid this by cleverly storing
a local copy is way overkill, and introduces the possibility of a
local copy getting out of date.

  anyway, thoughts?

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] looking for new linux (fedora)-compatible B/W duplex printer

2020-03-30 Thread Robert P. J. Day
On Mon, 30 Mar 2020, Tim Forbes wrote:

> I've got a DCP-L2540DW which does all those things. I did a lot of scanning
> when I converted most of my paper records to electronic (just PDFs, really).
> It works well with Simple Scan in Ubuntu. Inexpensive toner is available. The
> print quality is as good as I need.

  this is the one i'm leaning towards:

https://www.canadacomputers.com/product_info.php?cPath=34_1799_1569_id=119015

decent price (on sale) ... so what's the difference between a "DCP"
and "MFC" (which i know stands for multi-function)?

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] looking for new linux (fedora)-compatible B/W duplex printer

2020-03-28 Thread Robert P. J. Day
On Sat, 28 Mar 2020, John Brooks wrote:

> On 2020-03-28 6:08 p.m., Robert P. J. Day wrote:
> >
> >current 3-YO brother MFC7460DN printer needs both new toner
> > cartridge and new drum, so might as well dump it and go for a new
> > multi-function printer that's compatible with both winders and linux;
> > i'm *slightly* leaning to HP as they have a history of supporting
> > linux and i want to support vendors who support linux.
> >
> >desired features:
> >
> >* B/W laser printing
> >* scanning in colour
> >* duplex printing
> >
> > in the end, pretty straightforward ... open to suggestions. i don't
> > see much need to spend over $300. thoughts?
> >
> > rday
> >
> > To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
> > To get help send a blank message to linux+h...@linux-ottawa.org
> > To visit the archives: https://lists.linux-ottawa.org
> >
>
> If it's anything like my MFC-7860DW, ­— and it does look similar from a
> cursory look at the specs page[1] — then the one you have checks all of those
> boxes already.

  just noticed this on sale at canada computers:

https://www.canadacomputers.com/product_info.php?cPath=34_1799_1569_id=119015

i think that might be the next purchase, unless i find something that
disqualifies it.

rday

[linux] looking for new linux (fedora)-compatible B/W duplex printer

2020-03-28 Thread Robert P. J. Day


  current 3-YO brother MFC7460DN printer needs both new toner
cartridge and new drum, so might as well dump it and go for a new
multi-function printer that's compatible with both winders and linux;
i'm *slightly* leaning to HP as they have a history of supporting
linux and i want to support vendors who support linux.

  desired features:

  * B/W laser printing
  * scanning in colour
  * duplex printing

in the end, pretty straightforward ... open to suggestions. i don't
see much need to spend over $300. thoughts?

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] what exactly is the process by which kernel include/config/ is populated?

2020-03-18 Thread Robert P. J. Day


  never paid much attention to this until something came up this
morning, but starting with a current "git pull" of the kernel master
branch and, on x86-64, i run "make defconfig", i know that there is a
bunch of stuff installed under the new configuration directory
include/config/ ... pretty much all zero-length header files that act
as some sort of checkmark or timestamp or what have you to show what's
been "configured."

  i'm curious as to the exact algorithm used to populate that
directory and, in particular, how the header file names are chosen,
and here's why.

  a colleague this morning claimed that, in some kernel module code he
was trying to compile, the header file "xtables.h" was not being
found. i thought that was odd as, in the current kernel code base,
there *is* no such header file, but there is one named "x_tables.h",
so i suggested it was just a typo.

  no, he claimed, his kernel code has compiled before including
"xtables.h", and pointed to that file under include/config/netfilter/.
i was a bit confused as i'd never heard of explicitly including a
header file from the *generated* content under include/config/.

  that header file, like all the rest under include/config/, is empty,
so it's clearly a placeholder to mark a particular step in
configuration, but now i'd like to understand precisely what the
protocol is for generating that directory.

  thoughts? like i said, i've never paid much attention to it until
this morning, when someone tried to directly include one of its header
files.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] is there an "include" directive for /etc/sshd_config?

2020-03-01 Thread Robert P. J. Day
On Sun, 1 Mar 2020, Alan McKay wrote:

> I don't think there are any obvious security reasons not to support
> it of course you never know what goes through the mind of the
> OpenBSD team.
>
> I've never used it but yeah it sure would be useful because
> including is way easier than editing in place.  What we've always
> done is deploy from svn/git with a templating system like Maven
> which works really well.
>
> Now all that said I was curious and googled, and it looks like this
> is something new
>
> https://superuser.com/questions/247564/is-there-a-way-for-one-ssh-config-file-to-include-another-one

  interesting, but that entire page seems related to ssh_config, not
sshd_config. i would think that allowing Includes for client
configuration would be safer than for server configuration.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] is there an "include" directive for /etc/sshd_config?

2020-03-01 Thread Robert P. J. Day


  currently, in a number of embedded systems i'm working with, in
setting up the target's sshd, the installed /etc/sshd_config file is
adjusted as needed by manually hacking the file with things like sed,
as in:

  # allow root login
  sed -i 's#.*PermitRootLogin.*#PermitRootLogin yes#' 
${D}${sysconfdir}/ssh/sshd_config
  # disable DNS lookups
  sed -i 's#.*UseDNS.*#UseDNS no#' ${D}${sysconfdir}/ssh/sshd_config

this all works fine, but does sshd_config support any sort of include
directive so i could just "include" or "require" my local tweaks? i've
looked, didn't see it, and suspect that's not supported for obvious
security reasons, but i just thought i'd ask in case i overlooked
something.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] looking for particular "tree"-like recursive directory display

2020-02-23 Thread Robert P. J. Day

  for the sake of some documentation and web pages i'm writing, i'd
like to generate "tree" like output for a directory structure, but
without the standard indentation vertical and horizontal lines,
replacing that with space indentation (ideally selectable).

  so instead of:

bitbake/
├── AUTHORS
├── bin
│   ├── bitbake
│   ├── bitbake-diffsigs

i'd get:

bitbake/
AUTHORS
bin/
bitbake
bitbake-diffsigs

and so on. in a perfect world, i'd have most of the "tree" options,
like adding the "ls -F" filetype character to the end of each name if
i want, but also being able to select the indentation quantum (in
terms of number of spaces).

  i'm poring over the "tree" options but don't see if i can get that
with regular "tree". thoughts? yes, i could hack up a filter, but it
would be just ducky if some standard command already did what i'm
after.

rday

-- 

================
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


[linux] thoughts on secure over-the-air (OTA) updates?

2020-02-17 Thread Robert P. J. Day


  for an upcoming project, one of the longer-term goals is to
establish a secure OTA update system for potentially hundreds or
thousands of remote (internet-connected) devices, which might need to
be updated en masse identically, or updated individually.

  i'm currently collecting examples of available solutions
(https://mender.io/, https://sbabic.github.io/swupdate/swupdate.html,
and so on), and the current custodians of the system have already had
animated discussions as to what they think would work, and what
properties it should have.

  on the one hand, there is the notion of a package-based system,
where one can download and update individual packages (rpm, apt, ipk,
etc...) as necessary. the ostensible downside to this is that, over
time, it's entirely possible that different remote systems will have
different updates applied and slowly get out of sync with one another.

  is that a big deal? well, if you're a linux person, no, since we're
used to updating packages as we see fit. however, embedded developers
who are used to installing a single, monolithic executable would argue
that the downside is that there is no single identifier for the
software currently running. if one asks, "what version of the OS are
you running?", there is no single identifier that means anything --
you would need to examine the entire manifest of installed software.

  on the other hand, if the only supported OTA update is to replace
the entirety of the installed OS, you could theoretically version
every single possibility, but that gets cumbersome.

  i could go on, but has anyone here worked with such a system and be
willing to describe their solution? i'm just collecting possibilities
to be further debated.

rday

-- 

========
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] recommendations for online resources related to embedded security?

2020-02-17 Thread Robert P. J. Day


  i am currently going over the newest openembedded/yocto project
manuals, and the section "Making Images More Secure" in the dev
manual:

https://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#making-images-more-secure

refers to some really, really, *really* old online material, so i want
to update those links. anyone want to recommend more current links
that reflect specifically security issues WRT to embedded systems?

rday

-- 

========
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] did i once give away a zedboard dev kit at an OCLUG meeting?

2020-01-25 Thread Robert P. J. Day


  just trying to categorize all my dev kits, and while i have the
documentation for a zedboard that once inhabited one of these cabinet
drawers:

http://www.nkcelectronics.com/assets/images/zedboard-obl-bg-600.jpg

i don't see the board itself, and it wouldn't be like me to give away
a board without everything that came with it.

  does anyone recall getting such a board from me at a giveaway?

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] anyone out there qualified to teach a BIND/DNS course?

2020-01-24 Thread Robert P. J. Day


  one of my regular course placement agencies just asked if i could
teach a course in BIND/DNS sometime in february for a client in
montreal (either on-site or virtual). i would have to provide the
courseware and i don't have any so it's unlikely i'm going to try to
get that gig, but i thought i'd ask if anyone out there might be
qualified to do that.

  the details are kind of skimpy, and the estimate is that the course
would be 3-5 days, which strikes me as a little over-the-top for a
single topic, even something as complex as DNS. i've asked for more
details, and am willing to share if anyone thinks they might be a
candidate for delivering such a course.

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] Looking for 1 day of rentable training room in Kanata

2020-01-12 Thread Robert P. J. Day


  I may have the occasional need for a rentable training room out in
Kanata for some of my courses. There is no need for computers -- all
students will be required to bring their own laptop. All I'm really
after is a comfortable room that seats up to 16, and has some sort of
projector. Also, easy access to Internet (typically through a guest
network).

  Can anyone recommend something like that?

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] Thinking of giving away some Git courses/seminars to promote my classes

2019-11-01 Thread Robert P. J. Day
On Fri, 1 Nov 2019, Robert P. J. Day wrote:

> On Tue, 29 Oct 2019, Scott Murphy wrote:
>
> > I’m up for adding a git talk to the November meeting. I’m doing what
> > I expect will be a shorter ansible talk about using it to configure
> > your laptop, workstation, or whatever. I doubt it will be a two hour
> > talk. I suspect that the main points will be covered in 30 to 45
> > minutes.
>
>   so can we get a more precise schedule? as i mentioned, i offered to
> present what can be a 30-minute talk on the architecture of the git
> object database. the oclug web page states, "Robert Day and John Nash
> will lead a discussion on using git", but i have no idea what that
> means.
>
>   can someone clarify whether there is any interest in my proposed
> talk and, if so, where it would fit in the evening? thanks.

  as a followup to this, i think the description of upcoming meetings
should always be more precise and scheduled so that interested parties
can better decide if it's something they're interested in.

  currently, the description is somewhat vague:

  * Scott Murphy will talk about provisioning your personal systems
with ansible
  * Robert Day and John Nash will lead a discussion on using git

if someone is interested in ansible, they would still be wondering
exactly what the topic would be. more to the point, if someone had no
idea what ansible is, it would be worth adding a couple sentences to
describe it to get their attention.

  and i'm willing to provide a paragraph of exactly what my proposed
talk would be about so attendees would know just what's coming, and if
they care. :-)

  if there's time for my presentation, i'd advertise it socially, but
it would need more detail on the web page.

  thoughts?

rday

Re: [linux] Thinking of giving away some Git courses/seminars to promote my classes

2019-11-01 Thread Robert P. J. Day
On Tue, 29 Oct 2019, Scott Murphy wrote:

> I’m up for adding a git talk to the November meeting. I’m doing what
> I expect will be a shorter ansible talk about using it to configure
> your laptop, workstation, or whatever. I doubt it will be a two hour
> talk. I suspect that the main points will be covered in 30 to 45
> minutes.

  so can we get a more precise schedule? as i mentioned, i offered to
present what can be a 30-minute talk on the architecture of the git
object database. the oclug web page states, "Robert Day and John Nash
will lead a discussion on using git", but i have no idea what that
means.

  can someone clarify whether there is any interest in my proposed
talk and, if so, where it would fit in the evening? thanks.

rday


Re: [linux] Thinking of giving away some Git courses/seminars to promote my classes

2019-10-31 Thread Robert P. J. Day
On Thu, 31 Oct 2019, Kevin Szabo wrote:

> Newbie here, so I don't know how the group votes on topics so please
> excuse if this is the wrong method.
>
> I would love a Git fundamentals talk.  I've use SCCS RCS CVS
> Subversion PLS Clearcase etc, but never had the foundations course
> on Git.  I think it would be useful for me to help make the mental
> map between the various version control systems

  just to explain the rationale behind my thinking, i was one of the
pre-publication reviewers for both editions of ORA's book "version
control with git" by jon loeliger, the second edition of which can be
found here (check the acknowledgements :-):

http://file.allitebooks.com/20160207/Version%20Control%20with%20Git,%202nd%20Edition.pdf

  when i started to review the first edition lo those many years ago,
the current chapter 4 was not there, the book went straight to what is
now chapter 5. i told the author that i think, at that point in the
book, he *really* needed to explain the underlying architecture
(particularly the object store); otherwise, readers would not
understand the underlying effect of subsequent commands.

  i was fairly pushy about that, and even gave jon a detailed outline
of what i thought the chapter should look like. he went away for a
couple of months, and came back with something fairly close to the
chapter 4 that's in there now, and that chapter is what i cover during
the morning of my 1-day intro git class. my position is that if you
don't understand git objects and their relation, you will never truly
understand git.

  and that's all i have to say about that.

rday

-- 

================
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] How are the oc-linux meetings announced, or is there a master schedule?

2019-10-31 Thread Robert P. J. Day
On Wed, 30 Oct 2019, Kevin Szabo wrote:

> Hi, newbie here,
>
> I've looked through the wiki for an announcement of the November
> meeting or a master schedule but have come up empty.  I'd like to
> start attending some of the meetings.

  i've whined about this a couple of times ... even at the moment,
there is no information about the upcoming meeting at the web page.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] Git courses/seminars

2019-10-30 Thread Robert P. J. Day
On Wed, 30 Oct 2019, J C Nash wrote:

> https://product.hubspot.com/blog/git-and-github-tutorial-for-beginners
>
> has a quite good fit to what I was seeking, but would be enhanced by
> some discussion and possible a small demo.

  this is a page i use in my advanced class to explain typical github
workflow:

https://crashcourse.ca/dokuwiki/doku.php?id=git_github_workflow

it might need some updating, so i'll clean it up on the weekend.

rday

-- 

========
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] Thinking of giving away some Git courses/seminars to promote my classes

2019-10-30 Thread Robert P. J. Day
On Tue, 29 Oct 2019, J C Nash wrote:

> Indeed, I'm mainly interested in pragmatic use. As indicated "cheat
> notes"...

  ironically, when i teach my full intro git class, the very, very
first thing i explain is that, while lots of people just want a git
"cheat sheet", that doesn't really help you unless you understand the
underlying architecture.

  i'm not joking ... i always start off with something like, "i
realize a lot of you just want a cheat sheet, you know, give me the 10
or 20 git commands i need to be productive, and i'm outta here." and i
immediately explain, "it doesn't work that way; unless you truly
understand something called the 'object database' and what git objects
are and how they work together, you have no chance of truly knowing
how to use git."

  so after basic git configuration and cloning a repository, i explain
very carefully about git objects (blob, tree, commit, tag), and how
they are used to represent git history, at which point there is always
a revelation on the part of the class, "oh, wow, now i get it." and
without that understanding of the underlying architecture, you're
never going to feel comfortable with git as you're never going to be
sure what it's really *doing*.

  anyway, just my $0.02. that's what i was offering to present, if
there's time and folks are interested.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] Thinking of giving away some Git courses/seminars to promote my classes

2019-10-29 Thread Robert P. J. Day
On Tue, 29 Oct 2019, J C Nash wrote:

> A discussion of using git (in particular on github) is one of the
> items for next week's meeting. I suggested it after realizing that I
> didn't manage a change properly with an R package I'm developing
> with a colleague I've never met but have been sharing development
> with for the last couple of years.
>
> Your input would be most welcome.

  well, if there's an open speaking slot, i can present what i was
thinking of as a 35-40 minute "brown bag" lunchtime seminar. it's a
little bit techie -- it explains the structure of Git's object store
and how Git actually stores history using a combination of blobs,
trees, commits and tags.

  if people are interested, i can give that one.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] Thinking of giving away some Git courses/seminars to promote my classes

2019-10-29 Thread Robert P. J. Day


  I hope I'm not straying too far from the mandate for this list, but
I'm going to take a chance as it's the opportunity for some folks in
town to get some free seminars or some of my Git training at no
charge.

  As a way to promote my Git classes (and other training courses), I
thought one way to get some attention would be to just offer some
presentations at absolutely no charge, and I'm considering the
following two possibilities.

  First, I'm willing to give free lunchtime presentations to
corporations that can put together enough people who are interested. I
can easily talk on intro Git for 40-50 minutes just to give attendees
at least a basic understanding of Git. Obviously, the end goal would
be to then eventually sell the full courses, but the short
presentation would be no charge, and no real limit on how many people
could attend (short of violating a fire code of some kind, of course.
:-) So, there's that.

  I'm also considering a slightly more ambitious promotion, wherein I
would offer my full 1-day Introductory Git class at absolutely no
charge, but it would be limited to just one person per distinct
company. The idea here would be, naturally, that a company could pick
one engineer to get the instruction, then go back and recommend the
course to the team.

  I'm intersted in list members' feedback on either of these ideas.
The lunchtime seminar thing is basically available right now, the free
full-day course would make more sense, say, early January since it
would take some organizing.

  Thoughts? If you and your company are interested, by all means, drop
me a note. If you know someone at another company who might be
interested, let them know.

Rob Day

P.S. I'm currently designing some Docker/container courses, and am
thinking of doing the same with those.

P.P.S. I'm currently on contract out in Kanata, so interest out here
would be ideal.

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

LinkedIn:   http://ca.linkedin.com/in/rpjday




To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] is there a simpler way to add debugging statements to a bash script?

2019-10-25 Thread Robert P. J. Day
On Thu, 24 Oct 2019, Peter Meyer wrote:

> Hi Robert:
>
> Are you looking for something like:
> $ bash -vx {bash script}

  no, what i was describing was a helper function that would print any
collection of variables passed to it properly, distinguishing between
regular vars, arrays and associative arrays.

  i think i nailed it down, it's here for anyone who wants to play:

https://crashcourse.ca/dokuwiki/doku.php?id=shell_dump_function

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] is there a simpler way to add debugging statements to a bash script?

2019-10-24 Thread Robert P. J. Day


  currently working with an existing set of bash scripts and i want to
add some simple debugging functionality that makes it way easier to
print the value of variables whenever i want.

  rather than adding numerous "echo" lines, i whipped up some
functions that allow one to just ask to "dump" a variable of any type,
and it will do the right thing.

  i wrote it up here:

https://crashcourse.ca/dokuwiki/doku.php?id=shell_dump_function

where you can see how the bash dump() function has to first identify
the type of variable to know how to properly dump it.

  cutting to the chase, is there a simpler way to do this? this seems
to work, but i'm wondering if i'm missing something far simpler.

  thoughts?

rday

-- 

================
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] anyone out there playing with a AES-ULTRA96-V2-G?

2019-10-19 Thread Robert P. J. Day


  that would be this:

https://www.avnet.com/shop/us/products/avnet-engineering-services/aes-ultra96-v2-g-3074457345638646173/?fromPage=autoSuggest=-1

"Ultra96-V2 Zynq UltraScale+ ZU3EG Development Board"

  i want an ultrascale+ dev board to play with, and this seems to be,
by far, the least expensive possibility.

  any thoughts? recommended? not recommended? other affordable
possibilities?

rday

-- 

========
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] possibly dumb question about Dockerfiles

2019-10-08 Thread Robert P. J. Day


  i'm currently designing a new course on docker/podman and stealing
ideas from all over the place, including this piece on dockerfile
"best practices":

https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

but i'm puzzled by that very first example:

  FROM ubuntu:18.04
  COPY . /app
  RUN make /app<--- ???
  CMD python /app/app.py

i know what that example is *trying* to say, but i don't know how to
interpret the RUN directive "make /app". should that instead read
"make -C /app"? and if not, how does one interpret that? am i just
missing something trivially obvious?

rday

-- 

============
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] curious about official behaviour of POSIX "getopts"

2019-09-25 Thread Robert P. J. Day


  i was messing around with "getopts" and wanted to document several
examples of encouraged usage, and one of the examples is here (note
the leading ":" in the getopts string, which overrides normal error
processing):

= start

#!/bin/bash --posix

aflag=
bflag=
cflag=

while getopts :ab:c name
do
case $name in
a)  aflag=1
;;

b)  bflag=1
bval="$OPTARG"
;;

c)  cflag=1
;;

:)  echo "${OPTARG} requires an argument"
;;

\?) echo "Unknown option $OPTARG"
;;
esac
done

if [ ! -z "$aflag" ]; then
printf "Option -a specified\n"
fi

if [ ! -z "$bflag" ]; then
printf 'Option -b "%s" specified\n' "$bval"
fi

if [ ! -z "$cflag" ]; then
printf "Option -c specified\n'"
fi

shift $(($OPTIND - 1))
printf "Remaining arguments are: %s\n" "$*"

= end

  clearly, the above shows that options "-a" and "-c" do not take an
argument, while "-b" does. so i tested it, and was surprised to see:

$ ./1.sh -a -b -c
Option -a specified
Option -b "-c" specified
Remaining arguments are:
$

  in short, rather than being told that "-b" has a missing argument,
it simply used the argument "-c" for that. i did *not* see that
coming. is that normal behaviour? it seems somehow counter-intuitive.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] what is the (sysctl?) command to simply list the files being consulted?

2019-09-15 Thread Robert P. J. Day


  i know from all the docs that you can set sysctl variables in a
variety of places, including /usr/lib/sysctl.d, /etc/sysctl.d and so
on ... what is the command to simply *display* the order of file
consultation without actually processing the files?

  i could *swear* i found a command to do that a couple weeks ago, now
i've simply forgotten it. thoughts?

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] if starting with Go, any reason not to go straight to Go 1.13?

2019-08-20 Thread Robert P. J. Day
On Tue, 20 Aug 2019, Rick Leir wrote:

> In my experience with software businesses, when you have a new
> project you want it finished by yesterday. The programmer in me says
> the first cut at the code will get thrown out or should be. Even if
> you were talking of python 2.7 and 3.0 I would say get started and
> plan for a possible upgrade ( which might never happen, business
> considerations often dictate staying with the existing or previous
> version).

> YMMV -- Rick

  i understand the logic, but recall that the project i'm talking
about won't start for at least another month or two, so there's no
frantic rush to start coding right now. given that scenario, and the
apparently significant improvements coming with Go 1.13, the question
remains.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] if starting with Go, any reason not to go straight to Go 1.13?

2019-08-20 Thread Robert P. J. Day


  friend of mine asks, if one's company is getting ready to start
using Go for a brand new project, and official start is still at least
a couple months away, is there any reason to not wait for Go 1.13
(allegedly due out shortly), and start with that?

  i've been playing with Go 1.12.7 on my fedora system, and have done
enough reading to note some significant differences (particularly
module mode and the deprecation of GOPATH, which is a pretty big
change).

  also, the schedule is that Go 1.13 is supposed to be out officially
in a couple of weeks, so that wouldn't even represent much of a delay
(if any).

  so, Go programmers, thoughts? if the people on this project aren't
Go programmers yet, any reason not to just start with Go 1.13?

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] maximum integer value data type in C++11?

2019-08-13 Thread Robert P. J. Day
On Tue, 13 Aug 2019, masmul...@hush.com wrote:

> http://www.cplusplus.com/reference/limits/numeric_limits/
> std::numeric_limits::max()
>
> hitting gnome-calc, a 64bit integral should be able to hold 20! as
> 2^64 > 20!.  However, this gcc doc might help if my usage of math
> skills are lacking
>
> https://gcc.gnu.org/onlinedocs/gcc/_005f_005fint128.html

  amusing followup ... i chatted with the guy yesterday afternoon who
was looking at the results of the online assessment and, toward the
end of the chat, i asked him what the solution was, since i simply had
no idea.

  he affirmed that my solution was perfectly correct up to the limit
that could be stored in a long long, but he also didn't know how the
program should have been coded to handle values above that.

  so, in the end, i still have no idea.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] maximum integer value data type in C++11?

2019-08-12 Thread Robert P. J. Day


  was doing an online C++ evaluation test this morning and the last
question required calculating some fairly sizable values (permutations
of lengthy strings). didn't need to print any strings, just calculate
the number of possible permutations, where the final value could be
considerably more than 20! (20 factorial).

  even using unsigned long long, some test data exceeded the data
type. wasn't sure if the test wanted me to switch to double float, or
take advantage of a multi-precision library, or what, but am i correct
in that "unsigned long long int" is the best i can get in terms of
maximum value for an integral data type in C++?

rday

-- 

========
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] Computers for schools

2019-07-29 Thread Robert P. J. Day
On Mon, 29 Jul 2019, J C Nash wrote:

> Hmm. It is the first item at linux-ottawa.org and
> wiki.linux-ottawa.org.

  ah, it's confusing because, while the page at
https://www.linux-ottawa.org/posts/agenda-20190801/ states, "Agenda
20190801", right underneath that, the "Meeting Announcement" line is
followed by the text, "Thursday July 4, 2019", which is definitely
misleading.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] Computers for schools

2019-07-29 Thread Robert P. J. Day
On Mon, 29 Jul 2019, Jean-Francois Messier wrote:

> We are cleaning up our computer parts, nd have enough to have a
> working PC. I may even have time to install some Linux. Is this
> something we can bring to the meeting ?

  why is there no mention of the upcoming meeting at the oclug
website?

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] looking for examples of what i'm calling "digital transience"

2019-07-22 Thread Robert P. J. Day
On Mon, 22 Jul 2019, Raj wrote:

> if you don't have backups and can't get the decryption keys for
> whatever reason, the data encrypted by ransomware can be
> irretrievably lost.  Isn't hat what you're looking for? Or did I
> misunderstand the goal here?

  yes ... the topic is the increasing loss of digital data through
incompatible formats and so on; how digital data is at increasing risk
without any malicious intent.

rday

-- 

========
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] looking for examples of what i'm calling "digital transience"

2019-07-22 Thread Robert P. J. Day
On Mon, 22 Jul 2019, Raj wrote:

> you can add ransomware to the list.. 

  i'm not sure how ransomware relates to this. can you expand?

rday

-- 

====
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


[linux] looking for examples of what i'm calling "digital transience"

2019-07-20 Thread Robert P. J. Day


  good friend of mine is starting a research project, looking into
what i will call "digital transience" ... she is using a slightly
different term and would prefer i not use it for the time being.

  the idea is fairly obvious ... the danger of digital content
vanishing for any of a number of reasons: dropping support for
proprietary data formats, physical media (5 1/4" floppy drives, Zip
drives(?)) vanishing, link rot, entire site rot, and so on. so she's
interested in a couple things.

  first, just *general* contributors to the unexpected loss of what
might be important corporate digital data. but also, real-life
examples of things like this -- the one that leaps to mind is the
recent microsoft debacle involving ebooks protected by DRM:

https://www.wired.com/story/microsoft-ebook-apocalypse-drm/

  i think that, of the two topics above, she's more interested in
actual examples of significant loss of digital data, not through any
sort of malice, but by accident or unforeseen developments in hardware
or data formats that suddenly cause a catastrophic loss of
information.

  i've already started a list, but i'm open to as many examples as i
can collect. thoughts?

rday

-- 

============
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] looking to document a decent (fedora) linux development environment

2019-07-14 Thread Robert P. J. Day
On Sun, 14 Jul 2019, J C Nash wrote:

> Is there a particular reason to specify fedora?

  the client wants to standardize on a distro that has solid
development infrastructure, i recommended fedora, and they were fine
with that. most packages will be available across the board, so
restricting it to fedora should not cause any major problems.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] looking to document a decent (fedora) linux development environment

2019-07-14 Thread Robert P. J. Day


  a client of mine has a small number of (mostly C) developers to be
migrated from windows to linux, and wants some guidance as to how to
set up a reasonably complete linux-based development environment that
includes not just the standard compilers and interpreters (C, C++,
perl, python, etc.), but a solid collection of utilities for coding,
debugging, performance analysis and so on, so i decided to create a
doc describing a first pass at a decent linux dev environment, and i'm
open to suggestions.

  first, as i mentioned, there are all the standard
compilers/interpreters, so that needs little elucidation. but after
that ...

  in terms of coding, i guess it's worth mentioning the standard IDEs,
as well as editor plugins for C coding; also static analyzers like
splint, etc.

  for debuggers, obviously, gdb/lldb. for user space tracing, strace
and ltrace. for memory checking, valgrind. all the usual suspects.

  i'm going to put all this on a public wiki page once i get it done,
so i'm curious as to what folks out there think are "must haves" in
terms of linux development tools. (i'm not even going to get into
kernel analysis/tracing tools, which just explodes this
exponentially.)

  thoughts? any recommendations for online articles that address this
sort of thing?

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] git pull vs svn up

2019-07-13 Thread Robert P. J. Day
On Sat, 13 Jul 2019, J C Nash wrote:

> For my own work I mostly use svn since I have it well-established on
> my uottawa VPS. However, I'm using gitlab for a project I share with
> others.
>
> Am I correct that
>
>   git pull
>
> will NOT restore files that have somehow been deleted or renamed?

  i'm not sure how to best clarify this, but git has a very different
model of committing changes in that, when you clone a git repo, you
get the *entire* history of the repo. what this means is that, as part
of a normal git workflow, since you have that entire history, you're
expected to fix any "oopses" *locally* -- perhaps with having made
your changes on a local branch, perhaps checking out a deleted file
from another branch that still contains the file, or perhaps doing a
"git reset --hard" or "git revert" to undo the effect of said
deletion.

  the git push/pull/fetch commands are most emphatically *not*
designed to fix oopses in your local repo -- they are meant for
exchanging new content between repositories. except in very rare
circumstances (total meltdown of local repo, for example), it is not
some other repository's responsibility to help you recover from
simple local mistakes like deleting a file.

rday

-- 

============
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] git pull vs svn up

2019-07-13 Thread Robert P. J. Day
On Sat, 13 Jul 2019, J C Nash wrote:

> For my own work I mostly use svn since I have it well-established on
> my uottawa VPS. However, I'm using gitlab for a project I share with
> others.
>
> Am I correct that
>
>   git pull
>
> will NOT restore files that have somehow been deleted or renamed?

  "git pull" will do two things:

1) fetch new content from the upstream, then
2) *attempt* to merge that new content into your master branch
   (assuming it's your master branch you're working with)

  are you asking about files you've renamed or deleted locally, and
committed locally as well?

rday

-- 

============
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] "_GNU_SOURCE" versus "__USE_GNU"

2019-06-27 Thread Robert P. J. Day
On Thu, 27 Jun 2019, Robert P. J. Day wrote:

>
>   minor curiosity regarding GNU C library and feature test macros;
> perhaps i'm just misreading.
>
> from "man 3 getenv":
>
>   SYNOPSIS
>#include 
>
>char *getenv(const char *name);
>
>char *secure_getenv(const char *name);
>
>FeatureTestMacro   Requirements   for   glibc   (see   fea‐
>ture_test_macros(7)):
>
>secure_getenv(): _GNU_SOURCE
>
> so i would normally read that as that i need to define "_GNU_SOURCE"
> before including stdlib.h to define the external reference to
> secure_getenv(), but that doesn't work as this is what is in
> /usr/include/stdlib.h:
>
>   #ifdef __USE_GNU
>   /* This function is similar to the above but returns NULL if the
>  programs is running with SUID or SGID enabled.  */
>   extern char *secure_getenv (const char *__name)
>__THROW __nonnull ((1)) __wur;
>   #endif
>
> and defining "__USE_GNU" makes it work just fine.
>
>   what is the proper usage of feature test macros in such a case,
> since the man page suggests one thing while the header file clearly
> shows another. thoughts?

  never mind, i realized my mistake ... you have to define the feature
test macro(s) as the very first non-comment in the source file, not
just before the header file you want it to affect. my bad.

rday

[linux] "_GNU_SOURCE" versus "__USE_GNU"

2019-06-27 Thread Robert P. J. Day

  minor curiosity regarding GNU C library and feature test macros;
perhaps i'm just misreading.

from "man 3 getenv":

  SYNOPSIS
   #include 

   char *getenv(const char *name);

   char *secure_getenv(const char *name);

   FeatureTestMacro   Requirements   for   glibc   (see   fea‐
   ture_test_macros(7)):

   secure_getenv(): _GNU_SOURCE

so i would normally read that as that i need to define "_GNU_SOURCE"
before including stdlib.h to define the external reference to
secure_getenv(), but that doesn't work as this is what is in
/usr/include/stdlib.h:

  #ifdef __USE_GNU
  /* This function is similar to the above but returns NULL if the
 programs is running with SUID or SGID enabled.  */
  extern char *secure_getenv (const char *__name)
   __THROW __nonnull ((1)) __wur;
  #endif

and defining "__USE_GNU" makes it work just fine.

  what is the proper usage of feature test macros in such a case,
since the man page suggests one thing while the header file clearly
shows another. thoughts?

rday

-- 

================
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


[linux] anyone out there own a zedboard?

2019-04-19 Thread Robert P. J. Day


  i pulled out a zedboard of mine that was sitting a drawer for a
couple years and wanted to re-populate the SD card and just get it to
boot to u-boot, and i have had no luck getting *any* noticeable
activity from the board.

  i've re-populated a blank SD card from alleged pre-built images,
i've tried to verify the jumper settings, i've followed various online
docs, i've connected to the UART port via both minicom and picocom ...
nothing.

  i'm sure i'm overlooking something trivial, but if anyone out there
has a zedboard and has it booting properly, i'd love to chat.

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] readelf/objdump to dump included symbols and including source files?

2019-04-07 Thread Robert P. J. Day
On Sun, 7 Apr 2019, Stephen M. Webb wrote:

> On 2019-04-07 11:55 AM, Robert P. J. Day wrote:
> >
> >   i'm sure that, once upon a time, using either readelf or objdump, i
> > found a variation with a certain collection of options that displayed
> > no more than each included routine in the final ELF file and the
> > source file it came from. and at the moment, i am completely
> > forgetting how i did it.
>
> A stripped ELF file is not going to have any debug information (eg.
> the source file from which a bunch of binary objects in a particular
> segment was compiled).  If you're creating the boot image you might
> need to tweak things so the debug information doesn't get stripped
> out during the build.
>
> The debug information is stored in DWARF tables inside of the ELF
> file.  Try playing with the --debug-dunmp and the --dwarf-* options
> to readelf.

  except i'm *sure* that i did this once upon a time without tweaking
the compile stage. i'll try to figure out how i did this before,
unless i'm misremembering what i did.

rday

-- 

============
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] readelf/objdump to dump included symbols and including source files?

2019-04-07 Thread Robert P. J. Day


  while i'm asking this in the context of an ARM-based u-boot ELF
executable (for which i have all the corresponding ARM-related
utilities), i suspect it would work equally well on native ELF files.

  in u-boot source, there are many examples of the same function being
defined in multiple places in the code, and the configuration
responsible for selecting one of them to be compiled and built into
the final ELF image.

  the first technique is, of course, that the board configuration will
end up including only the appropriate version of the routine.

  the second technique is that a common implementation might be
declared with the "weak" attribute, while specific boards or
architectures might override that. in any event, the final executable
will, for these routines, have a single included version of that
routine that came from a particular source file, and that's what i
want to print out.

  i'm sure that, once upon a time, using either readelf or objdump, i
found a variation with a certain collection of options that displayed
no more than each included routine in the final ELF file and the
source file it came from. and at the moment, i am completely
forgetting how i did it.

  thoughts? surely this can't be hard, it's just escaping me right
now.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] looking for feedback on whether i'm designing a course the wrong way

2019-03-30 Thread Robert P. J. Day
On Sat, 30 Mar 2019, James Lockie wrote:

> I think my company looked at using a 3rd party docker solution. So
> maybe the demand for docker for some companies is that they are
> outsourcing it to a company that only offers docker. I was not
> involved technically. I think my company ended up doing everything
> in house. :-)

  i'd be interested in what that "3rd party solution" was if you can
remember it.

rday

-- 

============
Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] looking for feedback on whether i'm designing a course the wrong way

2019-03-30 Thread Robert P. J. Day


  i will apologize in advance if this comes across as marketing, since
i legitimately want this group's opinion on whether i'm taking the
wrong approach in designing a course on container technology.

  lately, since i live on fedora linux, i've been messing with their
container management commands "podman" and "buildah" for,
respectively, running and building container images. there is a
powerful equivalence between these two tools and the corresponding
docker commands:

  podman == docker
  buildah == docker build

in fact, the correspondence is so perfect that many people simply
install both and:

  $ alias docker=podman

you can see the equivalence here:

https://github.com/containers/libpod/blob/master/transfer.md
https://developers.redhat.com/blog/2019/02/21/podman-and-buildah-for-docker-users/

and here's my problem.

  i prefer the podman and buildah tools -- they have some features
that docker lacks but, other than that, they are literally drop-in
replacements. so one can teach a container course just as
appropriately using these tools (podman, buildah, skopeo) as using
docker.

  but will people understand that? all of the folks i've talked to
insist that, when clients call up looking for container training, they
almost always ask, "do you teach docker?", not realizing there are
more container solutions than just that. so even if the technology i'm
presenting will work just as well (same underlying container runtime
engines and so on), will potential clients simply say, "sorry, we're
looking for docker training, thanks."

  open to thoughts. from the perspective of marketing, it does no good
to say, "my stuff is just as good if not better" if the client says,
"sorry, we want docker."

rday

p.s. in exchange for opinions, i'm currently writing up all sorts of
container stuff here:

http://crashcourse.ca/dokuwiki/doku.php?id=containers_on_fedora_30

related to containers specifically on (upcoming) fedora 30 if people
want to read it. it's all publicly available, so help yourself.

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



Re: [linux] Is there an OCLUG-related place where I can advertise local training?

2019-03-29 Thread Robert P. J. Day
On Fri, 29 Mar 2019, Scott Murphy wrote:

> Hi Robert;

> There is nothing to stop us from having a list of local tech
> resources on the wiki. I’d be happy to add a page that has other
> groups, training, etc. Maybe a link and a summary of what it is.

  ok, if you want to create such a page, and it's a wiki page, i can
add some brief content there at some point. thanks.

rday

[linux] Is there an OCLUG-related place where I can advertise local training?

2019-03-28 Thread Robert P. J. Day


  In the very near future, I want to start offering some of my regular
Linux and Linux-related courses locally, either single-client, on-site
courses, or general public courses, most likely at a shared co-working
space called CoWorkly (https://www.coworkly.ca/) on Montreal Rd.

  I don't want to use this list to spam members with constant
marketing about what is coming up, but if there was somewhere that one
could list Linux-related technical training (for anyone offering such
classes, not just me), that would be great.

  Lately, I've been doing a lot of Git training (both intro and
advanced), and I'm currently putting together some courseware on
container technology (podman, Buildah, skopeo, all that Docker-related
stuff) and should have an intro course in about a month. And, of
course, there's a pile of other basic Linux courses I can teach if the
demand is there.

  I like to think that the value of this to the local Linux community
is that there would be a local source of *affordable* training, where
local employers wouldn't have to send their folks out of town and pay
outrageous registration, so that's part of my sales pitch, as it were.

  In any event, I'm open to suggestions as to how to promote this idea
to people who'd be interested, without turning it into constant
marketing. Thoughts?

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
  http://crashcourse.ca/dokuwiki

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] ok, what is the most "newbie-friendly" version of linux these days?

2019-02-24 Thread Robert P. J. Day


  it's a question for the ages ... i have the opportunity to migrate
someone from a dying windows pc to a spare laptop i have, and rather
than run around looking for windows installation media, she's willing
to at least entertain the notion of linux, as she needs little more
than surfing/email/MS office functionality.

  last time i thought about it, i would have recommended linux mint
... are there any other serious contenders at this point? i'm perusing
this article at the moment:

https://itsfoss.com/best-linux-beginners/

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
  http://crashcourse.ca/dokuwiki

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] curious about peoples' thoughts on a kernel "exploitation" course

2019-02-14 Thread Robert P. J. Day


  while delivering courses over the years, i am asked on an occasional
basis if i can teach "a course that looks like this one." as in,
sometimes there's a vendor with just the course material desired, but
perhaps the price is out of reach, or it's in a distant city,
whatever. so someone will ask me if i can put together something
moderately equivalent ... sometimes yes, sometimes no.

  very recently, someone asked if i could teach some equivalent of
this:

https://www.immunityinc.com/education/kernel-exploitation.html

and, after looking at the outline (no other information was provided),
i said i would need more information from the client since, frankly,
i'm not quite sure what the theme of that course is.

  my first reaction was, "ok, kernel security, i can probably do
something like that", but looking closer, i can't really seem to
figure out the overall theme or flow of the topics as they're listed.

  also, the fact that it's listed specifically as an "exploitation"
course which vows to teach the student to write exploits and attack
makes me wonder who they're targeting.

  so far, i've just said i need more info as to what the potential
students plan on doing, or what their goals are and am waiting to hear
back. but i'm curious as to what others think of that outline. maybe
i'm misreading it, but it just doesn't seem to make logical sense.

  thoughts, anyone?

rday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] how to filter kernel messages via the kernel command line?

2018-08-21 Thread Robert P. J. Day


  current colleague asked me how to cut down the console generation of
kernel messages on a system that uses the original syslog, not rsyslog
or syslog-ng, and since i'm currently using systemd/journalctl, i
can't really test this so here's what should be a simple question.

  my first suggestion was just configure /etc/sysctl.conf in userspace
to avoid the console display of low-priority (debug, info) kernel
messages -- send them to a file, or /dev/null, or whatever. because if
the current setting in /etc/sysctl.conf is:

  kern.*/dev/console

well, that's kind of where the problem is.

  however, an extra restriction is that i am not allowed to mess with
anything in userspace, so tweaking /etc/sysctl.conf is out. so i
checked out the "loglevel" kernel parameter, which is explained
thusly:

  loglevel=   All Kernel Messages with a loglevel smaller than the
  console loglevel will be printed to the console. It can
  also be changed with klogd or other programs. The
  loglevels are defined as follows:

  0 (KERN_EMERG)  system is unusable
  1 (KERN_ALERT)  action must be taken immediately
  2 (KERN_CRIT)   critical conditions
  3 (KERN_ERR)error conditions
  4 (KERN_WARNING)warning conditions
  5 (KERN_NOTICE) normal but significant condition
  6 (KERN_INFO)   informational
  7 (KERN_DEBUG)  debug-level messages

so it *appears* that if i wanted only(?) emerg and alert messages sent
to the console, i would set "loglevel=2" at the command line.

  but from the explanation, i'm not convinced that's a solution
because the above says only that those two priorities would be sent to
the console -- it says nothing about what would happen to all of the
others. specifically, it's not clear to me how setting loglevel on the
command line interacts with that is *already* in /etc/sysctl.conf.

  what if /etc/sysctl.conf does indeed contain the line:

  kern.*/dev/console

how does loglevel interact with that? does it override it? or does it
complement it? or what if /etc/sysctl.conf contained the line:

  kern.*/dev/null

would the loglevel setting override that?

  in short, is there a way on the kernel command line to reduce the
generation of kernel messages to the system console, regardless of the
settings in /etc/sysctl.conf?

rday

-- 

================
Robert P. J. Day Ottawa, Ontario, CANADA
  http://crashcourse.ca/dokuwiki

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] how to use "ip netns" to tie two net ports to each other for testing?

2018-08-18 Thread Robert P. J. Day


  i want to tie two ethernet ports together for the sake of pinging
out of one and into the other for testing. (in fact, i just grabbed a
couple startech USB/net adapters and plugged them into two spare USB
ports on the laptop, but i figure that should not become an issue in
any of this.)

  as i understand it (as i've never actually done it), i simply need
to use "ip netns" to define at least one (additional?) network
namespace, so that pinging doesn't simply recognize both ports being
on the same system.

  is there anything tricky about this? i found one blog post:

https://blog.scottlowe.org/2013/09/04/introducing-linux-network-namespaces/

which seems pretty straightforward, just wondering if anyone knows
precisely the incantation for this. thanks muchly.

rday

-- 

========
Robert P. J. Day Ottawa, Ontario, CANADA
  http://crashcourse.ca/dokuwiki

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] can generic syslogd distinguish between kernel modules?

2018-08-14 Thread Robert P. J. Day


  colleague today asked how to have the original syslogd be able to
segregate kernel messages based on something like the module name or
subsystem and, as far as i know, there's no way to do that.

  of the original syslog facilities, one of them is "kern", which
handles *all* kernel messages, and from that, you can configure with
syslog.conf based on the eight possible priorities -- debug, info,
notice, warn and so on. so as far as i know, the best you can do is
partition kernel messages into at most eight subsets of messages if
you wanted -- there is nothing i can see in the original syslog that
supports somehow selecting kernel messages based on anything but that.

  now, i realize that you can embed identifiers in the kernel string
being printed, or use the variations dev_notice, dev_warn and so on,
to automatically embed the device name in the message, but that still
means nothing more than you would still need to grep the final output
for the device or module name you were interested in.

  am i missing anything here? short of moving up to syslog-ng, i see
no way that the original syslog can select at the device driver or
module level when redirecting kernel messages.

rday

-- 

========
Robert P. J. Day Ottawa, Ontario, CANADA
  http://crashcourse.ca/dokuwiki

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday



To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] thoughts on meaningful system git settings for /etc/gitconfig?

2018-06-19 Thread Robert P. J. Day


  (i asked about this on the git mailing list, but i figured i'd take
advantage of the collective knowledge here.)

  i'm updating some of my git courseware, and i want to add to the
"git config" section some examples of git configuration that make
practical sense to add to the system-wide /etc/gitconfig file that
would make obvious sense to apply to everyone on the system.

  notwithstanding that users can, of course, override whatever they
want in /etc/gitconfig, what system git config settings have people
used that even novice users in my classes would appreciate make sense
to apply to everyone on the system?

  my initial thoughts are things like:

  * filesystem-related settings (core.protect{HFS,NTFS})
  * whitespace/EOL standardization settings for consistency
  * any proxy/ssh-related settings
  * http.* settings
  * some of the sendemail.* settings

and so on. obviously, as the admin, you can put a *ton* of git
configuration in /etc/gitconfig to inflict on the users, but i'm
curious as to actual, practical examples people have used on their
systems. thoughts?

rday

-- 

========
Robert P. J. Day Ottawa, Ontario, CANADA
  http://crashcourse.ca/dokuwiki

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday



To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] is there a june meeting?

2018-05-30 Thread Robert P. J. Day


  i may have a ton more stuff to give away.

rday

To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org



[linux] [OT?] anyone know about/taken courses from nobleprog.ca?

2018-05-24 Thread Robert P. J. Day
  i hope i'm not pushing the boundaries in terms of what this list is
for, but i was in the process of scheduling some training courses for
ottawa later this year (including some git courses), and i did a quick
online search to see what other orgs are doing the same thing in the
neighbourhood, and i ran across this ostensibly local provider, with
this entry for an upcoming git course in june:

  https://www.nobleprog.ca/node/1937134

i have to admit, i'm kind of baffled by the pricing structure, since
it doesn't seem to resemble anything i've ever seen. if i read this
correctly, a single day (7 hours) "intro to git" course is priced at
$3910 (CAD) for a single delegate?

  am i reading that correctly? i'm curious if anyone on this list has
taken any courses from that provider. i mean, if that's truly the
going rate for introductory git training, i am *way* underpricing. :-)

  just curious as to what others on this list think.

rday

-- 

========
Robert P. J. Day Ottawa, Ontario, CANADA
  http://crashcourse.ca/dokuwiki

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday


To unsubscribe send a blank message to linux+unsubscr...@linux-ottawa.org
To get help send a blank message to linux+h...@linux-ottawa.org
To visit the archives: https://lists.linux-ottawa.org