Greetings all,
It's been a while since I last used UNIX, especially on a tilde, and realised that I needed a primer to refresh myself on a load of basic stuff that I'd forgotten how to do.
I know you could probably just use a standard UNIX user manual, but there's a lot of minutiae that you can't do on a pubnix that most people do on reflex on a personal machine, and some parts of the system is just generally poorly documented online. (not on our part)
So, getting to my actual point: do we have a centralised tilde/pubnix primer for newbies and the like? Or can we point users to a similar document elsewhere? Just a thought!
Thanks,
~rebello
rebello@tilde.institute wrote:
.. So, getting to my actual point: do we have a centralised tilde/pubnix primer for newbies and the like? Or can we point users to a similar document elsewhere? Just a thought!
Not completely what you're looking for but anyway..
motd => basic summary of the tilde.institute system intro(1) => overview of OpenBSD system help(1) => User intro to commands on OpenBSD institute(7) => tilde-inst's very own system manpage
Some introductory user-oiented info is on the OpenBSD site: https://www.openbsd.org/faq/index.html
And since you're already on this list you can of course post queries here as well!
Cheers, M
On Mon, 2022-02-28 at 18:01 -0500, rebello@tilde.institute wrote:
Thanks for the reply!
institute(7) => tilde-inst's very own system manpage
$ apropos man # o;-)
Can we please get `w3m` installed? The included `w3mman` is the best man page browser that comes without an `emacs` attached...
On Tue, Mar 01, 2022 at 06:25:40AM +0000, yeti wrote:
On Mon, 2022-02-28 at 18:01 -0500, rebello@tilde.institute wrote:
Thanks for the reply!
institute(7) => tilde-inst's very own system manpage
$ apropos man # o;-)
Can we please get `w3m` installed? The included `w3mman` is the best man page browser that comes without an `emacs` attached...
-- yeti@tilde.institute yeti@anetphabw4n7gheupc7d2gla4m4yuec622f6qadfypd6lgnhipodbyqd.onion
sure thing, I just installed it for ya.
sorry I missed this earlier.
~gbmor
On Thu, 2022-03-10 at 23:26 -0500, gbmor wrote:
$ apropos man # o;-)
Can we please get `w3m` installed? The included `w3mman` is the best man page browser that comes without an `emacs` attached...
sure thing, I just installed it for ya.
\o/
I hope some neighbours will enjoy it too! Jumping between man pages really is nicer with it. The conversion from man format to HTML is done via a CGI (which W3M can use locally (not needing a web server)).
sorry I missed this earlier.
No problem.
***...bssss...rewind...***
Re: Tilde UNIX Primer?
Let's start collecting questions (here?) and add them to the local wiki when an answer was found?
Will its pages be rebuilt automagically after commits thru CGIT?
On Fri, Mar 11, 2022 at 11:33:58AM +0000, yeti wrote:
***...bssss...rewind...***
Re: Tilde UNIX Primer?
Let's start collecting questions (here?) and add them to the local wiki when an answer was found?
Will its pages be rebuilt automagically after commits thru CGIT?
Not automatically, but I'll just pull the new commits onto the box serving the wiki (which is not inst itself)
~gbmor
On Fri, Mar 11, 2022 at 11:33:58AM +0000, yeti wrote:
On Thu, 2022-03-10 at 23:26 -0500, gbmor wrote:
$ apropos man # o;-)
Can we please get `w3m` installed??? The included `w3mman` is the best man page browser that comes without an `emacs` attached...
sure thing, I just installed it for ya.
\o/
I hope some neighbours will enjoy it too! Jumping between man pages really is nicer with it. The conversion from man format to HTML is done via a CGI (which W3M can use locally (not needing a web server)).
Hi yeti,
Those who prefer viewing manual pages in a web browser need not seek further than mandoc(1), i.e.:
$ MANPAGER="lynx -force_html" man -T html institute
One can create an alias or a function in one's $SHELL for ease of use.
Regards,
rjc
On Tue, Mar 15, 2022 at 03:41:20PM +0000, yeti wrote:
On Tue, 2022-03-15 at 08:27 -0400, rjc@tilde.institute wrote:
Those who prefer viewing manual pages in a web browser need not seek further than mandoc(1), i.e.:
????????????????$ MANPAGER="lynx -force_html" man -T html institute
`w3mman` turns more stuff into links.
Actually, w3mman(1) seems to only support the Xr macro.
Either way, as-is, the above is only good for viewing a single manual as an HTML page in a web browser, should one prefer it - nothing more, nothing less.
It also has the benefit of not being tied to any particular web browser - it may as well be Firefox if used locally.
Given that the end result looks like this:
$ lynx -force_html /tmp/man.XXXXXXXXXX
it isn't immediately obvious whether it is at all possible to make lynx(1) or any other "stock" web browser for that matter (BTW, no, uzbl doesn't count), effectively, run an arbitrary command when following an anchor of the Xr class and using said anchor as the command's argument.
Either way, the hyperlinks *are* there and can be used and in order to benefit from all, both external and internal anchors, one can simply run the below:
$ lynx man.openbsd.org/OpenBSD-$(uname -r)/ifconfig.8
Last but not least, the above isn't limited to HTML - the same thing can be done if one prefers to view manual pages as PS, PDF, etc. - again, best done locally:
$ MANPAGER=mupdf man -Tpdf ifconfig
Again, an alias or a function recommended.
Cheers,
rjc
On Tue, 2022-03-15 at 15:41 -0400, rjc@tilde.institute wrote:
On Tue, Mar 15, 2022 at 03:41:20PM +0000, yeti wrote:
On Tue, 2022-03-15 at 08:27 -0400, rjc@tilde.institute wrote:
Those who prefer viewing manual pages in a web browser need not seek further than mandoc(1), i.e.:
????????????????$ MANPAGER="lynx -force_html" man -T html institute
`w3mman` turns more stuff into links.
Actually, w3mman(1) seems to only support the Xr macro.
Patch it.
It also has the benefit of not being tied to any particular web browser
As does `/usr/local/libexec/w3m/cgi-bin/w3mman2html.cgi`, which does the conversion.
Ulf Bartelt ulf.bartelt@gmx.net wrote:
On Tue, 2022-03-15 at 15:41 -0400, rjc@tilde.institute wrote:
On Tue, Mar 15, 2022 at 03:41:20PM +0000, yeti wrote:
On Tue, 2022-03-15 at 08:27 -0400, rjc@tilde.institute wrote:
Those who prefer viewing manual pages in a web browser need not seek further than mandoc(1), i.e.:
????????????????$ MANPAGER="lynx -force_html" man -T html institute
`w3mman` turns more stuff into links.
Actually, w3mman(1) seems to only support the Xr macro.
Patch it.
It also has the benefit of not being tied to any particular web browser
As does `/usr/local/libexec/w3m/cgi-bin/w3mman2html.cgi`, which does the conversion.
It looks like it should be possible to use the scheme outlined in man.cgi(8) to serve up the local manpages via a webby interface:
https://man.openbsd.org/man.cgi.8
For some reason that manpage isn't installed locally but anyways, maybe something worth looking into? Of course one could just point lynx at https://man.openbsd.org/ too. Wish they had a ToC listing all the sections on one page.
On Wed, Mar 16, 2022 at 12:41:10PM +0000, Ulf Bartelt wrote:
On Tue, 2022-03-15 at 15:41 -0400, rjc@tilde.institute wrote:
On Tue, Mar 15, 2022 at 03:41:20PM +0000, yeti wrote:
On Tue, 2022-03-15 at 08:27 -0400, rjc@tilde.institute??wrote:
Those who prefer viewing manual pages in a web browser need not seek further than mandoc(1), i.e.:
????????????????$ MANPAGER="lynx -force_html" man -T html institute
`w3mman` turns more stuff into links.
Actually, w3mman(1) seems to only support the Xr macro.
Patch it.
I don't have any interest in w3mman(1).
It also has the benefit of not being tied to any particular web browser
As does `/usr/local/libexec/w3m/cgi-bin/w3mman2html.cgi`, which does the conversion.
All I was trying to convey is that, currently, a similar goal can be achieved with base tools and _any_ web browser.
Cheers,
rjc
``` ~$ echo 1 2 | awk '$0=$2' ``` It ™should™ chisel `2` into the screen.
Or: Check your (N)AWK.
-> https://github.com/onetrueawk/awk/issues/147#issuecomment-1140389664
Will NetBSD and OpenBSD (and Plan9?) automagically adopt updates from NAWK's home repo? Should they be informed separately?
On Mon, Feb 28, 2022 at 01:16:42PM -0500, rebello@tilde.institute wrote:
So, getting to my actual point: do we have a centralised tilde/pubnix primer for newbies and the like? Or can we point users to a similar document elsewhere? Just a thought!
Well, half a year later, I'd like to drop in and add some more for you. What's already been posted is great, and definitely should be read, but you may be thinking, ``Okay, that's /how/ I use a pubnix, but /what/ is there to do?'' And aside from the usual answers of lurking in IRC, writing small programs, and http/gopher/gemini, I'd like to point out some social things you can do!
First, use w(1) to see who is currently logged in, and get some idea of what they're up to. You can use write(1) to send them a message, but this can easily be overlooked, so don't be offended if you don't get an answer! You can also use finger(1) to get a sort of MotD from any user who has set a .plan and .profile file.
That's all I have off the top of my head, but if anyone else thinks of some interesting or weird things that can be done when multiple users are logged into the same computer, please share them!
B.E.t.E.O,
~rdh
On Thu, 2022-06-30 at 22:02 +0000, rdh@tilde.institute wrote:
First, use w(1) to see who is currently logged in, and get some idea of what they're up to.
w(1) doesn't list all users.
You can use write(1) to send them a message, but this can easily be overlooked, so don't be offended if you don't get an answer!
But if it keeps others from screwing up my screen with direct write(1) to it, I'm starting to like that w(1) glitch that keeps (not only) my presence secret.
`man 1 mesg` helps to disallow write(1).
You can also use finger(1) to get a sort of MotD from any user who has set a .plan and .profile file.
`.project`.
That's all I have off the top of my head, but if anyone else thinks of some interesting or weird things that can be done when multiple users are logged into the same computer, please share them!
Look thru `ps`, `ps aux` and `top` for getting an idea what's happening on the system.
If you want to get in touch with others please try less invasive methods than write(1) first. Maybe mail, irc, ...
yeti yeti@tilde.institute wrote:
On Thu, 2022-06-30 at 22:02 +0000, rdh@tilde.institute wrote:
First, use w(1) to see who is currently logged in, and get some idea of what they're up to.
w(1) doesn't list all users.
Same with the users(1) command. Seems to depend on user's home directory permissions:
$ users deejoe gamliel kneezle meta4
$ ls -l /home |egrep 'deejoe|meta4|yeti|ariel' drwxr-xr-x 13 deejoe tilde 1024 Jul 5 20:59 deejoe drwx--x--x 18 meta4 tilde 1024 Mar 18 17:34 meta4 drwx-----x 18 yeti tilde 1024 Jul 9 02:01 yeti drwx------ 13 ariel tilde 1024 Jul 5 23:02 ariel
This seems to grap all active users: $ ps -a -o ruser |sort -u |egrep -v '^RUSER|^root' |fmt altalada andinus ang anshupat ariel asp balou barwar deejoe fro games gamliel gbmor grizzly kneezle meta4 meuk nix optimant pcaetano phoebos r1k rdh rjc sarmonsi yeti
On Sat, 2022-07-09 at 02:17 +0000, Meta4 wrote:
This seems to grap all active users: $ ps -a -o ruser |sort -u |egrep -v '^RUSER|^root' |fmt altalada andinus ang anshupat ariel asp balou barwar deejoe fro games gamliel gbmor grizzly kneezle meta4 meuk nix optimant pcaetano phoebos r1k rdh rjc sarmonsi yeti
That depents on the definition of 'active'.
Because of 'mosh', this will not only list the users really being active in person at that moment. 'mosh' keeps connections alive and ready for a reconnect. I basically never logout, just my not-eBook gets suspended and on wake-up, I have all my shells back.
Additionally some users might have ircbots/games/cronjobs running, so may appear in the 'ps' output while not being logged in at all.
Looking at 'ps' output to see which activities on a tilde you might have overlooked so far sure is an idea, but seeing a user's name in 'ps' output is no reliable way to find out who really is active at that moment.
institute@lists.tildeverse.org