Discussion:
NetBSD reference card (again!)
Leonardo Taccari
2014-08-10 14:05:08 UTC
Permalink
Hello to the entire NetBSD community!
I'm happy to announce that I've revived the NetBSD reference card
(I wrote it in 2008).

After thinking a bit about it I saw that six years ago I did two big
mistakes:
0. The source code of the NetBSD reference card was not easily
available through a RCS (but only via HTTP)... This discouraged a
lot contribution.
1. I didn't discussed with all interesting users and developers for the
topics that should be part of the NetBSD reference card (IMO it
should be useful for everyone).

I've updated it and now is finally available in this git repository:

https://github.com/iamleot/netbsd-refcard

It uses print/tex-leaflet and also (optionally) print/latex-mk in order
to ease the generation of the PDF.

I've found similar material that I hope to integrate in some way or
another in the reference card:
o https://wiki.netbsd.org/tutorials/netbsd_command-line_cheat-sheet/
[more or less all interesting commands described there are present in
the reference card]
o https://wiki.netbsd.org/users/imil/cheatsheet/
[there are various interesting information that ATM are not in the
reference card, in particular: IPv6, build.sh example, upgrading the
system with binaries (maybe should be used sysutils/sysupgrade or
sysupdate here), and probably also a basic wpa_supplicant.conf
configuration]

If we need more space it can be also splitted in a
``NetBSD reference card'' and in a ``pkgsrc reference card''.


Every kind of critiques and comments are welcomed!
Ciao,
L.
Chris Bannister
2014-08-11 12:32:37 UTC
Permalink
Post by Leonardo Taccari
Hello to the entire NetBSD community!
I'm happy to announce that I've revived the NetBSD reference card
(I wrote it in 2008).
After thinking a bit about it I saw that six years ago I did two big
0. The source code of the NetBSD reference card was not easily
available through a RCS (but only via HTTP)... This discouraged a
lot contribution.
1. I didn't discussed with all interesting users and developers for the
topics that should be part of the NetBSD reference card (IMO it
should be useful for everyone).
https://github.com/iamleot/netbsd-refcard
It uses print/tex-leaflet and also (optionally) print/latex-mk in order
to ease the generation of the PDF.
Oh. Um is there an actual downloadable PDF some where?

Hang on ...

https://github.com/iamleot/netbsd-refcard/blob/master/netbsd-refcard.pdf

Ahh! Thanks. Lucky I didn't ask without looking first. :)
--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X
Chris Bannister
2014-08-13 14:29:17 UTC
Permalink
Post by Chris Bannister
Post by Leonardo Taccari
Hello to the entire NetBSD community!
I'm happy to announce that I've revived the NetBSD reference card
(I wrote it in 2008).
After thinking a bit about it I saw that six years ago I did two big
0. The source code of the NetBSD reference card was not easily
available through a RCS (but only via HTTP)... This discouraged a
lot contribution.
1. I didn't discussed with all interesting users and developers for the
topics that should be part of the NetBSD reference card (IMO it
should be useful for everyone).
https://github.com/iamleot/netbsd-refcard
It uses print/tex-leaflet and also (optionally) print/latex-mk in order
to ease the generation of the PDF.
Oh. Um is there an actual downloadable PDF some where?
Hang on ...
https://github.com/iamleot/netbsd-refcard/blob/master/netbsd-refcard.pdf
Ahh! Thanks. Lucky I didn't ask without looking first. :)
OOps spoke too soon!

% mupdf netbsd-refcard.pdf
error: cannot recognize version marker
warning: trying to repair broken xref
error: cannot find page tree
mupdf: warning: Cannot load page
mupdf: discarded changes to document

So it is not a valid pdf file?

*groan*

tal% file netbsd-refcard.pdf
netbsd-refcard.pdf: HTML document, UTF-8 Unicode text, with very long lines

:(
--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X
Leonardo Taccari
2014-08-13 15:17:42 UTC
Permalink
Hello Chris,
Post by Chris Bannister
OOps spoke too soon!
% mupdf netbsd-refcard.pdf
error: cannot recognize version marker
warning: trying to repair broken xref
error: cannot find page tree
mupdf: warning: Cannot load page
mupdf: discarded changes to document
So it is not a valid pdf file?
*groan*
tal% file netbsd-refcard.pdf
netbsd-refcard.pdf: HTML document, UTF-8 Unicode text, with very long lines
Please try to do that:

$ curl -O 'https://raw.githubusercontent.com/iamleot/netbsd-refcard/master/netbsd-refcard.pdf'
$ file netbsd-refcard.pdf
netbsd-refcard.pdf: PDF document, version 1.5
$ mupdf netbsd-refcard.pdf

...maybe you need to add "-k" to www/curl if you do not have cacert.pem
and/or you do not have set SSL_CERT_FILE or CURL_CA_BUNDLE variable.

I'm sorry that I didn't provided the PDF link before.


HTH,
Ciao,
L.
Chris Bannister
2014-08-13 15:32:38 UTC
Permalink
Post by Leonardo Taccari
$ curl -O 'https://raw.githubusercontent.com/iamleot/netbsd-refcard/master/netbsd-refcard.pdf'
$ file netbsd-refcard.pdf
netbsd-refcard.pdf: PDF document, version 1.5
$ mupdf netbsd-refcard.pdf
...maybe you need to add "-k" to www/curl if you do not have cacert.pem
and/or you do not have set SSL_CERT_FILE or CURL_CA_BUNDLE variable.
Thanks! Used wget, with no probs.
--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X
Ilia Zykov
2014-08-12 06:53:59 UTC
Permalink
Hello!
Maybe anybody knows how to remove an user from a secondary(additional)
group without
manual edits the /etc/group. For instance:
FreeBSD 'pw groupmod group -d user'

Thank you.
Ilia.
Jeremy C. Reed
2014-08-12 13:40:58 UTC
Permalink
Post by Ilia Zykov
Maybe anybody knows how to remove an user from a secondary(additional)
group without
FreeBSD 'pw groupmod group -d user'
The user(8) tool doesn't offer it, but its code does have
rm_user_from_groups function for removing from all groups. Maybe you can
reuse or extend that code to have routine to only remove from defined
group(s).

By the way, the usermod/groupmod tool(s) on Linux (I looked at Ubuntu
passwd 1:4.1.4.2+svn3283-3ubuntu5.1 package) also doesn't have this
feature, but the usermod -G does remove the user from any groups not
listed with the -G.
Chris Bannister
2014-08-13 14:30:35 UTC
Permalink
Post by Ilia Zykov
Hello!
Maybe anybody knows how to remove an user from a secondary(additional)
group without
FreeBSD 'pw groupmod group -d user'
Thank you.
Please, don't hijack threads!
Thank you.
--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X
Chris H.
2014-08-13 22:40:35 UTC
Permalink
Thank you!!! Look forward in using netbsd again. :D

ciao,
SFC Hammond US Army
Post by Leonardo Taccari
Hello to the entire NetBSD community!
I'm happy to announce that I've revived the NetBSD reference card
(I wrote it in 2008).
After thinking a bit about it I saw that six years ago I did two big
0. The source code of the NetBSD reference card was not easily
available through a RCS (but only via HTTP)... This discouraged a
lot contribution.
1. I didn't discussed with all interesting users and developers for the
topics that should be part of the NetBSD reference card (IMO it
should be useful for everyone).
https://github.com/iamleot/netbsd-refcard
It uses print/tex-leaflet and also (optionally) print/latex-mk in order
to ease the generation of the PDF.
I've found similar material that I hope to integrate in some way or
o https://wiki.netbsd.org/tutorials/netbsd_command-line_cheat-sheet/
[more or less all interesting commands described there are present in
the reference card]
o https://wiki.netbsd.org/users/imil/cheatsheet/
[there are various interesting information that ATM are not in the
reference card, in particular: IPv6, build.sh example, upgrading the
system with binaries (maybe should be used sysutils/sysupgrade or
sysupdate here), and probably also a basic wpa_supplicant.conf
configuration]
If we need more space it can be also splitted in a
``NetBSD reference card'' and in a ``pkgsrc reference card''.
Every kind of critiques and comments are welcomed!
Ciao,
L.
--
Chris Hammond
449 Frick Ave
Waynesboro, PA 17268

(c) (305) 720-8407
Continue reading on narkive:
Loading...