-
polyex
trying to get some command working. find . -type f -exec cat {} ; except it shouldn't cat bin type files. anyone know how?
-
ober
best wifi card by far is an android phone usb tethered
-
hjf
hi all. i got this old text terminal. crt, serial port. im trying to use it to log in to my freebsd server
-
hjf
getty works and i found one compatible termcap, but linux has a more compatible one (allows for inverse video and underlining and so on)
-
hjf
is there a way to import linux's terminal entry for this machine into freebsd's termcap?
-
hjf
it's an ADDS 1010 model. it suppors 3A+ mode. freebsd's version doesnt display reverse video etc. it's noticeable in nano's bottom bar for example
-
ivy
hjf: i don't remember the default but there's an ncurses command to print a termcap entry that you could addto /etc/termcap
-
ivy
s/default/details/
-
hjf
what i did was install terminfo. it comes with some tool, infocmp, which i used to generate the termcap profile
-
hjf
ivy: is that what youre talking about?
-
ivy
yes, except i think infocmp prints terminfo definitions, not termcap
-
hjf
i think it was -C to make it termcap
-
ivy
so, did you try that in termcap?
-
hjf
ok i have a different problem now. i changed it to this new definition and getty just seems to crash
-
hjf
i get the login prompt and then i get an error in auth.log that getty is repeating to quick
-
hjf
sigh.
-
hjf
the problem is the USB extender
-
hjf
it works fine with the usb-serial adapter connecetd directly
-
rwp
I wonder how polyex decides if a file is a "bin" file or not? If that criteria were known then a test could be developed for it.
-
nimaje
-
rwp
What is it related to? The first thing I see is a 1.44MB 3 1/2 inch floppy drive.
-
rwp
The ASCII artwork of a printer is quite nice.
-
nimaje
well, it is a c compiler, so you probably don't want to print files created by it, when filtering "bin" files, but as it only uses bytes that are printable ascii chars so you probaly need some heuristic that excludes files with "unreasonable" amounts of special chars
-
kevans
bah, `file --mime-type $foo` -> yeet that sucker to stdout if it's text/*
-
rwp
Using that as criteria then this find will do what polyex asked, using "ls -ld" in place of "cat" for purposes of development, illustration, and safe demonstration.
-
rwp
find . -type f -exec sh -c 'file --mime-type "$1" | grep -q text/' sh {} \; -exec ls -ld {} +
-
rwp
I feel compelled to mention that in a security conscious situation it is possible for a malicious agent on the system with write access to these directories to potentially game the directory trees in a fast directory switching around attack. This situation is one where it is possible to directly substitute -execdir for -exec and everything works exactly the same. If it is all my files then I don't think it is of concern.
-
sfox
would there be any problem using bsd as a router, and connecting it to the switch via usb ethernet instead of pci ethernet?
-
nimaje
with switch you mean some network card that has multiple interfaces?
-
daemon
hey all I have a gateway/router with mpd5 that has re0: local lan 172.31.5.0/24 em0: backup 4G network, igb0/fib1: PPPoE connection, igb1/fib2: PPPoE connection, is anyone able to provide me with a link to a basic nat setup for just dealing with twe two pppoe links fib1/2 for packet filter?
-
daemon
they both have the same gateway ip hence the different fibs
-
sfox
> with switch you mean some network card that has multiple interfaces?
-
sfox
no
-
sfox
i mean a network switch
-
sfox
i'm worried about the usb ethernet interfaces being somehow inferior to real ethernet
-
tehpeh
sfox: USB ethernet adapters are inferior, however they still work (just slower). First check that drivers exist for the adapter.
-
sfox
slower?
-
sfox
it's gige
-
tehpeh
USB3?
-
ek
Using a USB-to-ethernet adapter on a FBSD router/firewall (provided it's supported and working) is perfectly fine.
-
sfox
yes
-
tehpeh
you should get close to 1Gb then. There is more overhead over USB which can lower the effective bandwidth a little
-
daemon
usually they do about 85% of 1Gb
-
LapsangS
how many people here are using freebsd as their daily desktop driver?
-
tehpeh
I do
-
daemon
I run freebsd everyday but as a support os, routing jails etc not primary desktop
-
sfox
is that a cpu limitation? I want to use it to route between some vlans and gateway route
-
sfox
LapsangS, i'm running it on my laptop right now
-
ek
USB-to-ethernet adapters definitely have overhead, but one would think that someone using something like that isn't really shooting for max Tx/Rx speeds. Just usability.
-
la_mettrie
I do
-
ek
I also use FBSD as a desktop.
-
LapsangS
yeah i have a very old celeron laptop in which everything, including sleep actually works
-
LapsangS
i cant run any modern windows in that junk computer but freebsd runs fine
-
sfox
i have a better thinkpad t420 and sleep doesn't work
-
LapsangS
yeah i think most things work but the sleep is the main issue
-
LapsangS
in many systems
-
uskerine
thanks for the explanation nimaje
-
LapsangS
how to dual boot windows 11 and freebsd
-
LapsangS
of couse via the bios
-
uskerine
Hi, if I would like to be able to work with FreeBSD 14 for the next 10 years, that means, being able to install the distribution and use any package using pkg install, is that actually possible? Can you manually install binary packages for no longer supported releases? thanks
-
kfv
uskerine: "manually installing packages for no longer supported releases" depends if the package meets the ABI and lotsa other things.
-
kfv
But of course you can always port stuff, but sometimes you must modify the code and make tremendously large changes.
-
uskerine
maybe I am missing something, but my understanding is that pkg install downloads a package from a repo and installs it via a script. Of course that package is prepared for release x.y
-
uskerine
is it possible to download that package for release x.y in the future?
-
uskerine
I am not talking about porting the current package to older versions
-
pkubaj_
uskerine: you can just set up your own repo
-
pkubaj_
i wouldn't expect package mirrors to keep packages for branches 5 years after eol
-
pkubaj_
just build the packages you need with poudriere
-
Bushmaster
hello friend, my FreeBSD journey started well, i noticed there is no terminal emulator so is there a way to fire up a terminal so that I can scroll up and down with my commands, in current state I cant scroll
-
kfv
uskerine: pkubaj_ is right, and you can indeed always set up a personal repo (if you don't want to build the software over and over on new setups.)
-
kfv
Bushmaster: you mean, in a desktop-like env? Or in console??
-
kfv
In console you don't need a separate terminal emulator, but to scroll you could use a binding I don't remember ATM.
-
kfv
Lemme check.
-
Bushmaster
kfv its console yes no desktop in freebsd
-
kfv
Well, I remember it was FN + something... Scroll Lock, maybe... I don't know. But you can, I just don't remember the binding.
-
kfv
But if you couldn't, just use a tmux session and do Ctrl+b+] and do page down / page up as a workaround.
-
Bushmaster
i can always use fgreebsd by ssh from my debian server that way I see and scroll
-
kfv
Right
-
kfv
It was scroll lock.
-
kfv
And on machines with no scroll lock, I guess it was shift + page up / page down.
-
Bushmaster
i got tmux running, excellent, kfv so that is CTR+b
-
kfv
Yeah, but it's just a workaround I said ;-)
-
kfv
Scrolling is absolutely possible in console.
-
kfv
But anyways.
-
Bushmaster
tumux is good i see page up and page down working
-
kfv
Do you have page up page down buttons?
-
kfv
If so, you could use them with shift button in console as well, I guess.
-
kfv
IIRC
-
Bushmaster
page up and page down working in tmux yes
-
Bushmaster
but CTR+B dont do anything
-
Bushmaster
what is IIRC
-
Bushmaster
another package?
-
Bushmaster
CTR +B allow you to Page Up and Page Down, problem is I cant get back to typing in Command Prompt now hehehe
-
Bushmaster
pkay got it, CTR + b is for scrolling with page up and page down with tmux and then CTR+[ to start typing command again
-
kfv
Bushmaster: IIRC -> If I Recall Correctly
-
Bushmaster
okay thanks kfv
-
kfv
Anytime.
-
Bushmaster
tmux is good, its CTR+B for Page UP and DOwn and then CTR+[ to retirn to command prompt, good enough
-
Bushmaster
hostname -I command in Linux put out the local IP but that command does not work in UNIX, any similar command there other than ifconfig
-
Bushmaster
hello again, just wondering is there any information available to put out a desktop environment in my FreeBSD?
-
jbo
Bushmaster, check the handbook
-
Bushmaster
thanks yes I got it jbo its hard work, it has two chapters, one of X window and then Wayland, I guess X window need to be done before moving to Wayland
-
jbo
no, you pick one or the other.
-
Bushmaster
okay thanks
-
jbo
if you are new to all of this. have a look at installing something that is mostly complete such as XFCE or KDE
-
Bushmaster
could be good learning curve, i will go with X window
-
jbo
you'll still need either X or wayland tho. so yeah. set that up first
-
Bushmaster
could not find any BSD with DE though
-
jbo
once you got X working, you can install a desktop environment like KDE or XFCE or whatever you like
-
jbo
Bushmaster, if you look for an out-of-the-box experience, check out GhostBSD, NomadBSD and HelloSystem
-
Bushmaster
the handbook did not mention much how to install xfce
-
Bushmaster
or kde
-
jbo
I disagree
-
jbo
-
Bushmaster
excellent, GhostBSD i tried and it cant detect mouse pointer in my Proxmox
-
Bushmaster
thanks
-
jbo
you'll run into the same issue with just stock FreeBSD. AFAIK, GhostBSD is "just" FreeBSD with a lot of things setup for you.
-
jbo
so if GhostBSD is otherwise suitable for you, might be worth figuring out how to get the mouse working :)
-
Bushmaster
GhostBSD unfortunately does not work in my Proxmox
-
Bushmaster
May be try NomadBSD
-
jbo
GhostBSD is "just" FreeBSD+MATE with stuff pre-configured. if your mouse cursor does not work in the proxmox VM, you'll likely find the same issue on FreeBSD. It's usually trivial to fix.
-
Bushmaster
like the name for sure, like Nomadic tribes of Tibet hanging dead body in Tibet Hill and let eagle eat it
-
jbo
Yeah just have a good look first. Nomad is primarly designed to move between systems (hence the name). most people install it on a USB drive or whatever. GhostBSD might be more suitable if you just want a FreeBSD desktop without setting it up yourself.
-
Bushmaster
FreeBSD works fine and Proxmox with Debian Cinnamon DE works as well fine, Windows 10 works fine with mice as well, hence may be try NomadBSD
-
Bushmaster
GhostBSD mice does not work, I have OpenIndiana working with mice nicely
-
jbo
I'll not repeat myself again. Good luck :)
-
Bushmaster
thanks
-
Bushmaster
overall I like BSD
-
jbo
welcome to the gang
-
Bushmaster
I wanna run a Apache server in BSD for media, I do it in Debian at the moment but I wanna run dedicated Media Server by utilizing Apache in BSD
-
pinPoint
GhostBSD is that much nicer UI-wise?
-
pinPoint
Out of the box.
-
jbo
it's "just" FreeBSD+MATE+config
-
mzar
Bushmaster: what's behind this decision ? any issues with Debian ?
-
pinPoint
jbo but it's setup out of the box yes?
-
jbo
pinPoint, yes
-
pinPoint
Good. I dislike setting up UI on freebsd... it takes a bit of work for a noobie like me.
-
jbo
that's okay. but the 2nd and 3rd time around it will feel easy & natural.
-
jbo
these days it takes me less than 20 minutes to go from "here's a new machine" to "Here's a fully configured FreeBSD with GUI"
-
pinPoint
I could keep at it I supposed. I'm running it on a VM so I can scrub and start over quite easily.
-
pinPoint
s/supposed/suppose*
-
jbo
indeed
-
jbo
but there's also nothing wrong with using something like GhostBSD
-
jbo
after all, stuff like pfSense is what got me into "just use FreeBSD" all these years ago.
-
jbo
eventually you'll realize that you can just run stock FreeBSD and configure it for whatever you need/want yourself, essentially getting rid of half your overhead :)
-
pinPoint
jbo I use opnsense in my house and have for more than 2yrs I think. I am influenced by BSD a bit.
-
jbo
just use whatever is the right tool for the job. and if it's a DIY/hobby environment, then the right tool for the job is often just what you like at that moment.
-
jbo
don't listen to regligious evangelists who tell you that you should do things differently
-
jbo
as long as it's not a commercial/industrial/whatever environment where consequences are real.
-
pinPoint
It is a DIY/hobby that I do enjoy actually.
-
CrtxReavr
8.013819444444444
-
CrtxReavr
How many hours it took my VPS to buildworld.
-
jbo
hah
-
pinPoint
CrtxReavr ?? buildworld?
-
jbo
I got an upgrade recently (half a year ago) replacing my 6 years old machine at work. it does buildworld in 404 seconds
-
pinPoint
Dang! Xeon Processors?
-
jbo
threadripper
-
jbo
7960X
-
pinPoint
Firebreather!
-
LapsangS
yäh
-
Bushmaster
just steep learning curve ... mzar part of my home lab practice
-
LapsangS
mul on joo dual xeon
-
jbo
thank you reddit for making everybody with more than one computing device at home refer to it as their "homelab"
-
pinPoint
hehehe
-
jbo
then just install random linux stuff with admin web panel
-
jbo
"yeah my hobby is homelab"
-
jbo
-__-
-
jbo
"clicks snapshot button"
-
pinPoint
You guys have something like a C2960-s POE+ cisco switch?
-
jbo
why would it matter? just ask your questions. It's a switch.
-
pinPoint
How much power does this thing really drink per hour/day?
-
Bushmaster
I feel sad Dennis Ritchie passed away without leaving any off spring ...
-
pinPoint
And it sounds like a jet engine
-
CrtxReavr
UNIX nerds are destined to die alone.
-
Bushmaster
its sad though, he was genius, because of him, computer science came this far ... and no girls most likely enjoyed his company ...
-
CrtxReavr
Maybe he was happy.
-
CrtxReavr
You don't know.
-
Bushmaster
yes I think he was happy
-
Bushmaster
developing a C language is not joke, and he developed the language and re-write UNIX in C
-
jgh
pinPoint: there's many different sizes, ranging from 100W to a kW or so. Why not measure it?
-
CrtxReavr
Wasn't UNIX always written in C?
-
pinPoint
Bushmaster Maybe he didn't want children? Was he married?
-
CrtxReavr
If only there was some technology that would tell us.
-
pinPoint
CrtxReavr Just thinking about how hardcore BSD is I'd say it's a hard YES.
-
CrtxReavr
he died in 2011.
-
jgh
CrtxReavr: no, it was not
-
CrtxReavr
-
Bushmaster
pinPoint, dont think he was married ... he died at his home on his own just a week after Steve Jobs died, media di dnto pay him too much attention cos they were busy with Job's death
-
pinPoint
Bushmaster It's ironic. Apple's core is running BSD which has largely C all over it. Too bad.
-
CrtxReavr
STarting with OSX v10.3 it switched from a BSD kernel to a Mach kernel, derived from NeXTstep, which is the OS Jobs worked one between tenures with Apple.
-
Bushmaster
pinPoint, lot of things in life is Ironic and sad I guess. These days we have gay Senior Citizen, Trans Gender leading the mainstream life, yet Mr. Ritchie passed away alone with no children ...
-
CrtxReavr
Doing a mergemaster here. . .
-
aquamo4k
anyone else having trouble hitting the freebsd website right now? Looks like I am getting re-directed to an instance in chicago area (173.228.147.99) but it's not responding via my primary ISP
-
CrtxReavr
Have we dispensed with the ``# $FreeBSD$`` top line in the files?
-
aquamo4k
i tried a second connection and it's up. so my local ISP (usi) cannot reach, but centurylink can reach the web site. fascinating.
-
skered
CrtxReavr: I think a while ago.
-
rtprio
but no one has removed them
-
shbrngdo
traceroute may reveal peoblem
-
michel
Hi, I'm quiet new here, joining from openbsd. ;-) how do I upgrade 14.1 to 15-current ?
-
shbrngdo
there's a very good section in the handbook that describes exactly how to do that -
docs.freebsd.org/en/books/handbook/cutting-edge
-
rwp
Most of the $FreeBSD$ tags have been removed in 14 but a few still persist. In 13 and earlier they were still everywhere.
-
michel
I know, I tried that, I end up here
-
michel
root@X1:~ # freebsd-update -r 15-current upgrade
-
michel
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
-
rwp
The earlier Unix was written in assembly language not C. If you want to learn about the early days read
en.wikipedia.org/wiki/A_Commentary_on_the_UNIX_Operating_System which is an excellent coverage of the earliest implementation.
-
michel
Fetching metadata signature for 14.1-RELEASE from update1.freebsd.org... done.
-
michel
Fetching metadata index... done.
-
michel
Inspecting system... done.
-
michel
The following components of FreeBSD seem to be installed:
-
michel
kernel/generic kernel/generic-dbg src/src world/base world/lib32
-
michel
The following components of FreeBSD do not seem to be installed:
-
michel
world/base-dbg world/lib32-dbg
-
michel
Does this look reasonable (y/n)? y
-
michel
Fetching metadata signature for 15-current from update1.freebsd.org... failed.
-
michel
Fetching metadata signature for 15-current from update2.freebsd.org... failed.
-
michel
Fetching metadata signature for 15-current from dualstack.aws.update.freebsd.org... failed.
-
michel
No mirrors remaining, giving up.
-
mzar
CrtxReavr: apparently these headers became useless and only adding some burden on FreeBSD devs
-
CrtxReavr
Yeah, prolly old cvs stuff.
-
LapsangS
runkkaaat
-
LapsangS
pojan runkkaus
-
ober
Houkutteletko meitä?
-
uskerine
pkubaj_ kfv can you point me in the right direction? Maybe I am oversimplifiying but would downloading everything from
pkg.freebsd.org/FreeBSD:14:amd64 suffice? Is that even possible?
-
uskerine
and as related question, so if I want to install FreeBSD 8 for historical reasons that software is forever lost?
-
uskerine
I see this for example:
ftp-archive.freebsd.org/pub/FreeBSD-Archive where there are packages for FreeBSD 9, so above that the way that software was installed changed I presume?
-
rwp
Those version control headers started with RCS (I don't recall SCCS or CSSC having them) and then persisted for a long time. But they always create merge conflicts when branching and merging. When git arrived and became preferred and branching and merging became typical then the version tags became a burden because they always produce a conflict.
-
rwp
Which changes a simple patch application from something that can happen totally automatically into something where for every file patched one must edit and fix the patch conflict. PITA!
-
rwp
uskerine, AFAIK the older versions existed at a time before pkgs were as popular and if one wants to install a historical system then one would AFAIK need to build it from source. However all of the source for those versions exist in the version control and any older version can be rebuilt and run even today.
-
rwp
I could imagine that trying to reconstruct a much older version might require walking backwards through the releases in order to avoid compiler changes which have become more strict in recent years but were quite lax in older years.
-
rwp
I would probably use a jail to build the previous release and use it to make a previous release as a jail and then repeat that process walking backwards through time.
-
uskerine
-
rwp
uskerine, Saying would be knowing, not knowing I cannot say. I say try it and then you will know.
-
rwp
For example I look down the packages-9.2-release directory and it looks like it includes all of the source. I see many .tbz files there. Those would need to be compiled.
-
rwp
Certainly the 9.2-RELEASE directory appears complete however. Everything I expect is there for 9.
-
uskerine
rwp there is also an ISO folder around that
-
rwp
An older ISO?
-
rwp
As I look there I see everything that is needed to install the base FreeBSD for 9 and then one could use it to compile the archived sources for the ports from that same release. Looks good! :-)
-
uskerine
-
uskerine
-
uskerine
and by doing that you would avoid compiling anything?
-
rwp
You should be able to boot that on a bare metal system or virtual machine. I don't see any reason why not.
-
rwp
Wait... Are the pkgs on the ISO?
-
uskerine
no, they are in a different folder
-
uskerine
see the last two links, first are ISOs , second seems packages
-
uskerine
which I understand are binary packages like the ones you use when you do pkg install mystuff
-
rwp
It looks like it would take an hour or so to download the DVD ISO in order to inspect what is in it. I need to do other things though so I won't do it now.
-
uskerine
I was just asking out of curiosity to understand how this works
-
rwp
When I browse down that second link I only see source files. The .tbz files are tar.bz2 files of the source of the ports. But perhaps I am not looking in the same directory you are looking in.
-
uskerine
I asked a LLM about storing a local copy of all the packages for say FreeBSD 14 lcoally, and it says it is possible and appears to be even a simple command and changing the config file, but maybe it is hallucinating, wondering if that is possible
-
rwp
With the source to the ports though it means simply compiling them up using the associated system base compiler.
-
uskerine
rwp: no, I am looking into the .tbz files, so those are sources and require to be compiled, right?
-
rwp
Correct. Sources which need compilation.
-
uskerine
understood, I thought they were binaries
-
rwp
If you fetch one down and then look at the contents I expect to see a source snapshot there.
-
uskerine
I understand now
-
rwp
And then in my thinking the 9.2-RELEASE archive with the base.txz and other files there is much easier to use to set up a jail container than using the ISO-IMAGES/9.2/ ISO files in a boot up and install situation.
-
uskerine
this is what a popular LLM says about having a local repo (I read that I shall use poudriere but the LLM seems not to require that):
bpa.st/57Q56 I would be happy to hear anyone more knowleadge's opinion on how feasible is this
-
rwp
Both are basically equivalent. But I have a running FreeBSD 14-Release system which I can then use to unpack the base.txz upon in order to create the legacy jail container almost trivially. With the ISO I can of course mount it and extract that same file. Or I can create a virtual machine and boot it up. Or I could use it to boot a bare metal system. Not my preference for convenience.
-
uskerine
rwp I see what you mean with being easier to deploy in a jail
-
rwp
I skimmed the LLM answer and it seems plausible for creating a local mirror of the *current* pkgs mirror. But AFAIK the older pkgs are not retained anywhere. (I don't think they are but maybe someone will point to an archive and I will learn about it at the same time that you do! :-)
-
uskerine
I know that, those were two questions/thoughts in parallel. I just want to understand what does really mean to do pkg install. I am also pretty concerned of not being able to install packages for say 14 in 5 or 6 years easily with pkg install
-
uskerine
the reason is that some of the stuff I do works on a controlled environment not exposed to internet and it is intended to last for years, you want something static
-
uskerine
the older version are out of historical curiosity and also to understand better how this works
-
rwp
There is a partial answer to the problem. The /var/cache/pkg/ directory contains all of the previously installed binary pkg files. Keep that and you can always install those again. You would be your own archive for any pkg that you install.
-
uskerine
rwp by current you mean recent, right?
-
rwp
Oops. Yes. I meant recent when I said current. Sorry for confusing it with CURRENT. My bad.
-
uskerine
got it
-
rwp
I say it is a partial answer because that only helps for things you have installed. If you find later that you need something you have not installed then it won't be there and by then will be gone from the repositories too.
-
uskerine
yes but the point of storing just /var/cache/pkg is that there is the day where you need a small side package and it is not there, hence the idea of doing a snapshot of the entire repo
-
uskerine
exactly
-
rwp
So you would need to do a routine mirror of the recent repositories in order to get everything that was available in the event that you needed something new in the future.
-
uskerine
well I might give it a try to that LLM solution
-
uskerine
my doubt is, how big can that be!
-
uskerine
?
-
uskerine
would it be like massive as do not even think about it or big as in just a few GBs?
-
rwp
I do not know how large it might be. I do know that most things will not be that large but a few things will be very large. It's not linearly distributed.
-
uskerine
I see
-
rwp
-
uskerine
it seems 76Gb for FreeBSD11, right
-
uskerine
?
-
rwp
The general problem is one of the reasons people who go down this path most often use poudriere to build the package set locally and keep a local archive of all of the source. Then they are completely self-contained and self-hosted able to operate completely air-gapped. And then they can build what they need and avoid building large things that they do not need. Plus in the future if they need to patch something they are able to do
-
rwp
that too.
-
uskerine
but that has the expense of having to go with poudriere and compile, vs the comfort of just doing pkg install.
-
uskerine
s/has/is at/
-
rwp
When I look today it says 131GB of binary packages. "Number of packages to be fetched: 34437" "The process will require 131 GiB more space." Try: pkg fetch -a
-
rtprio
why?
-
rwp
In order to create a local long-term-support system beyond the lifetime supported by FreeBSD. For an air-gapped offline system.
-
uskerine
130Gb is a lot of space but definitively doable
-
uskerine
thanks for the explanations rwp, it helped me to better understand how this works
-
rwp
It's been a good discussion. Glad I could help! :-)
-
pinPoint
What desktop environments do you guys use most? I've looked at XFCE but it's just meh.
-
jauntyd
I use Enlightenment
-
innegatives
desktop environments are waste of time, use wm
-
hjf
hi all. i have a problem thats driving me mad. i have this old serial text terminal, connected as console to freebsd. on bash, backspace works but not on irssi. in bash i have mappings for the keys to map to ^H but this doesnt seem to apply to irssi? or gnu nano for the matter
-
V_PauAmma_V
Does irssi rely on stty settings? I would start by looking at those.
-
Demosthenex
jauntyd: E?! i haven't used that in a while
-
jauntyd
Demosthenex: it is quite artistic! but not overly imo
-
jauntyd
terminology goes well with it i might add
-
Demosthenex
jauntyd: i used to use e ages ago... like early 2000's
-
Demosthenex
and i used scripts to open terminal in a tiling layout to simulate tiling. it was great that it allowed keyboard focus and keys to change desktops
-
Demosthenex
that's stayed with me... i'm now on StumpWM and i use virtual screens and desktops like crazy
-
Demosthenex
but i have a soft spot for E ;]
-
pinPoint
Ok, what's a decent looking WM out there?
-
rwp
hjf, bash hard codes that it will use either ^H or DEL for a backspace key but that's a special. Other programs look at the stty erase setting. Some know about the erase2 setting too. Determine if the terminal uses ^H or DEL then set "stty erase" and erase2 appropriately. My experience is that DEL is a better key than ^H but the terminal vendor already decided this for you.
-
oprs
pinPoint: this is highly subjective, i.e. some people favor functionality over aesthetics
-
oprs
broadly speaking they come in two types: tiling or stacking (aka floating), some can be pretty minimalistic, yet quite powerful
-
hjf
rwp: i'm looking at the termcap entry for this. it says: :kb=^H:kd=\n:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:mb=\E0B\E):me=\E(:\
-
hjf
kb (key backspace?) ^H, but also, kl (key left?) ^H
-
hjf
but i don't understand how that part works. does that mean it's the terminal that sends these codes? or i can change those codes?
-
hjf
because why would the terminal send the same code for two keys?
-
pinPoint
oprs ok.
-
oprs
sorry I can't really be more specific :-) It quickly becomes a matter of personal preference. It's probably best to try out a few for yourself tbh
-
johnjaye
can i learn more about terminals and terminfo by looking at the c code?
-
johnjaye
or are there man pages about it
-
hjf
-
hjf
the terminal in question
-
rwp
hjf, What TERM type is that ADDS terminal? I am not familiar. (I used a lot of HP terminals and DEC and Wyse and Hazeltine but never an ADDS)
-
hjf
so, the menu settings mention a mode called "3A+"
-
hjf
i found a termcap entry called viewpoint3a+
-
hjf
and another called adm3a+
-
hjf
both work, but viewpoint3a+ looks better. it supports reverse video and dim text
-
hjf
and i think this line of terminals was called "viewpoint". so it's either this, or it's a compatible one
-
hjf
i used to use a Wyse one back in the day. at the same company that was throwing this one away
-
V_PauAmma_V
johnjaye, terminfo(5)
-
rwp
What a classic! I would be interested in seeing a photo of your keyboard too. I am curious if it has the arrows on hjkl and if it has Home and ~ like on the ADM-3A too.
-
hjf
it doesnt.
-
hjf
-
hjf
some photos of the keyboard
-
hjf
it doesn't have an alt key either, or [ and ]
-
hjf
one problem with this terminal is that it doesn't seem to do partial scrolling
-
hjf
so if you have a status bar at the bottom, it redraws the whole screen for each line scrolled
-
rwp
There were a lot of features of "modern" terminals which the early hardware did not support. I vaguely recall that some terminals could scroll lock lines of a terminal such as the bottom mode line allowing for efficient status lines but others could not.
-
rwp
You have distracted me with a little bit of fun reading and refreshing my memory on these when I should be doing other things. But this is fun and life is short so I am going to enjoy being distracted for a moment longer. :-)
-
rwp
You said no [ and ] but the photo you posted shows them on the keyboard. They don't produce those characters?
-
rwp
You might be interested in running "toe -s | grep -i adds" to get a list of TERM settings available to use. But I think your TERM=viewpoint3a+ setting is probably the best match.
-
hjf
rwp: not in my keyboard, it has the spanish layout with Ñ . but it's set to english anyways so it does produce [ and ]
-
hjf
there was a command to print the raw key codes but i can't find it. Ctrl-V - backspace produces ^H
-
rwp
I will say unfortunately here that the terminal uses ^H (HP terminals I used when working for HP are also the same) and therefore you just have to use ^H for the erase character.
-
rwp
Since the 1990s the use of DEL for erase has become almost universal due to that being the default for GNU/Linux distributions with xterm. It's so pervasive that many things will hard code it thinking that's just the way everything is and that's going to cause some problems at times.
-
rwp
IBM terminals also used ^H too. As an emacs user myself it's annoying to have to swap the keys and remember it. But vim users will probably not run into any problems.
-
johnjaye
originally DEL meant all holes on a punchcard punched. and NULL meant all clear.
-
johnjaye
not sure exactly how that changed over time
-
rwp
With papertape and punchcards you can't actually unpunch the holes. So 0x7F punches all of the holes in the papertape. Upon read back any DEL characters were ignored in the stream.
-
hjf
rwp: but why does left arrow also produce ^H ?
-
rwp
So actually one had to use both BS BackSpace and DEL both with paper paper tape. If a mistake was made one needed to BS until back to the character to delete then DEL to punch them out then type in the corrected characters moving forward.
-
rwp
hjf, Your terminal produces ^H with left arrow? There may or may not be a DIP switch setting to make some configuration changes for it. But it would be inconvenient now to have both the left arrow and the Backspace key both produce ^H now. But at the time I am sure that was simply back space moving the cursor to the left.
-
rwp
hjf, I am not familiar with your ADDS terminal really at all. But talking about BS and DEL on the VT100 (I actually own two DEC VT102 terminals and a Wyse VT100 compatible terminal) there are both BS and DEL right next to each other within easy reach of either. DEC basically didn't choose and left it to the user to configure things as they needed. Because HP and IBM both forced ^H upon us. But DEC had both and one could choose.
-
rwp
The main escape sequence that always caught me the worst though was in vi typing something then, then wanting to tap ESC and then h, h, h, to move left. On HP terminals ESC-h is the escape sequence for Home which would then zing me to the first character of the file! So annoying. Fortunately `` would return back to where I accidentally zing'd from.
-
hjf
yeah the manuals for this thing are unobtanium
-
hjf
it doesn't have any dip switches either
-
hjf
-
hjf
it has this menu
-
rwp
The VT100 escape sequences are always ESC-[-otherstuff and one never accidentally hits ESC-[ quickly in succession and so that's one thing that makes the VT100 escape sequences the better choice.
-
hjf
well actually the other day, with another termcap, i was getting ESC[ sequences
-
hjf
well terminfo because it was on linux
-
rwp
Looking at the config screen I wonder what is down the "3A Mode CTRL-Z" and "Spc Adv" menus but ya otherwise I don't see any configuration for it either. No ideas.
-
rwp
Pretty fun though! At some time we might have to play "mtrek" on the classic terminals. Good times!
-
hjf
the termcap entry also states it's 80x24 but this one can be 25 lines
-
hjf
i wanna shuffle things around the shop/lab and have this terminal as a dedicated irssi machine hehe
-
uskerine
-
rwp
You should be able to set TERMCAP in your environment with an updated capabilities string and then customize it for your own use.
-
uskerine
johnjaye: there is an old 1991 booklet about termcap and terminfo. I found a good way to understand a bit better how that worked, but it is pretty complex though
-
rwp
uskerine, I think most people using CDE are using it because they had previously used CDE. XFCE has a very similar workflow usage but is a recent (I avoid saying current) Desktop Environment. I think anyone happy with CDE would also like XFCE and be happier because XFCE is more polished up now.
-
uskerine
rwp I like the simplicity of MWM, but need several desktops, so I still use CDE. It is a very niche thing now but I know I am not the only one using it
-
uskerine
rwp: I have used XFCE in the past, did not like it. Another lightweight I like is FVWM, that can be customised to whatever look and feel you want and it is lightweight
-
uskerine
WMs and desktops are very subjective things anyway
-
rwp
I used fvwm for years and years. Love fvwm! It's such a nice window manager. (I am using i3 tiling these days. But tiling is not for everyone.)
-
uskerine
I like tiling but never really used on everyday
-
uskerine
-
scoobybejesus
funny to see all this character encoding stuff. i am just dealing with tmux swallowing control+tab and getting into those weeds
-
johnjaye
uskerine: ah do you have it by chance? or the name
-
uskerine
-
uskerine
it is not lightweight stuff
-
johnjaye
thanks
-
rwp
I enjoy those historic videos capturing the way computers were treated back at the dawn of the computer age. Some things they got perfect! Some things they missed on and things worked out differently.
-
uskerine
this one is pretty rare, as far as I know the source code of that WM was lost
-
uskerine
there is also another interesting short video about when they introduced motif:
youtube.com/watch?v=neSdF_JVVB4
-
rwp
I am queueing those up for watching on the big screen with some popcorn later during the time when I can watch videos. (I love the big PC board poster framed on the wall behind that last one.)
-
topcat001
fvwm3 is quite usable
-
rwp
For me the most endearing feature is the active thumbnail of the fvwm window pager.
-
topcat001
I also love the 3D look
-
markmcb
which gpu brands are best supported on freebsd? i recall intel pulling driver support last year that breaks plex hardware transcoding. any particular brand stand out in the "just works" category?
-
markmcb
(or conversely, any to avoid due to known issues?)
-
HER
markmcb: nvidia has an official freebsd driver
-
HER
new amd i think are supported via open source drivers
-
markmcb
HER: thanks
-
HER
intel is supported, 12th generation works.. but im not sure about newer ones
-
HER
markmcb: if its a laptop, i would go with intel gpu or amd. nvidia on laptops are really noisy
-
HER
and heavy =p
-
markmcb
it's a server. i'm currently passing through the igpu on a Xeon E-2388G to Ubuntu on bhyve to get driver support for transcoding video. would far prefer to have everything in FreeBSD.
-
markmcb
(though this setup isn't bad, i'm just being a purist, lol)
-
duskmoss
I don't think there was a change to intels support (which AFAIK is mostly nonexistent, FBSD just gets their foss drivers from Linux), just a change on plex's side where they were not willing to keep holding back features from their ffmpeg fork to wait for FreeBSD to update it's intel drivers
-
duskmoss
I'm not sure if plex freebsd would work with nvidia or not. tbh! I thought their website said only intel a couple years ago, but currently it doesn't really have any information
-
markmcb
duskmoss: thanks for the clarification. yeah, i don't think it's officially supported, but i've seen lots of people saying it works fine for them.
-
duskmoss
nice!
-
markmcb
it'd be nice to stay on an igpu. the power consumption is so small.
-
markmcb
anyone have any experience with AMD igpus? like the Radeon 780M that's on their Ryzen 7 cpu?
-
Dereckson
Hi
-
Dereckson
Any idea when ports switched from /usr/local/man to /usr/local/share/man as default location?
-
duskmoss
my ecperience is they're terrible at transcoding. But also plex doesn't officially support amd gpus either
-
duskmoss
on any platform
-
duskmoss
since amd gpus are also done with the linux DRM system, their drivers may be similarly behind where plex would need them.
-
rwp
Dereckson, Has there been an actual official switch? What I see is that both locations are in use by ports. And man 7 hier still documents the /usr/local/man/ location.
-
Dereckson
-
Dereckson
Yup for hier
-
Dereckson
even in FreeBSD 14.1
-
Dereckson
But on a new FreeBSD 14.1 installation with 739 ports, /usr/local/man doesn't exist
-
Dereckson
everything is in /usr/local/share/man
-
Dereckson
That's how I actually spotted the thing, I've run a configuration as code who wanted to provision man pages to /usr/local/man/man1
-
rwp
I have 44 files in /usr/local/man/* on my 14.1R desktop. Most of them related to pkg* but at least one gpt.1.gz file.
-
Dereckson
Yeah mine is a devserver
-
Dereckson
so the only desktop-oriented packages would be CLI
-
Dereckson
Can you give me one or two names of packages installing things there?
-
Dereckson
Curious to see if they override MANPATH or if they just run install commands there
-
rwp
My desktop has been upgraded. You are correct. If I look on a system installed only as 14 fresh then /usr/local/man does not exist. All of the files on my desktop must be lint left behind.
-
rwp
-
Dereckson
thanks
-
rwp
"manpath" still reports "/usr/local/share/man:/usr/local/man:..."
-
rwp
I think I need to do some lint cleaning of /usr/local/man as none of those files are in the pkg database. And there is that core dump file from 2023 too.
-
kevans
Dereckson: only within the last couple of years did the switch get serious
-
kevans
hmm, maybe I'm misrememberin
-
rwp
I ran this and pkg didn't know about any of the files there and spot checking said they were all duplicated in share/man so I rm -rf'd the directory: find /usr/local/man/ -type f -exec pkg which {} \;
-
Dereckson
On a 13.2-RELEASE machine, I've a mix of those two directories, so you're perhaps right it needed time to get in traction.
-
hjf
rwp: i figured it out! this terminal support macros for these keys. i just need to map ANSI escape sequences for these macros!
-
kevans
-
kevans
so I must not be completely crazy, it only finalized at the beginning of the year
-
rwp
hjf, I don't know what feature you just described but I am very happy you have a way to make it work better for you.
-
hjf
rwp: literal macros. Ctrl-F2-somekey, then you can program in a string to be sent when you hit that key
-
hjf
i just need to map it to Esc[D or something
-
hjf
but i can't figure out how to map esc here hehe
-
rwp
I am so used to xterm using ESC-O-D for keypad left-arrow that ESC-[-D looks odd but I assume that matches the termcap for that terminal.
-
hjf
esc[D is ansi iirc
-
hjf
but i can map it to anything i want and redo the termcap
-
rwp
ansi is based on xterm which is based on vt100/vt220 so I feel certain left-arrow would be ESC-O-D on all of them. But I don't have time to look at the moment.
-
uskerine
rwp hjk I recently used .xmodmap and .xbindkeysrc to unify copy/paste and assign them to F11 and F12
-
uskerine
I think you can bind any key combination to any action by doing that, but will only work in X11
-
rwp
uskerine, Your comment caused me to chuckle. Please take a peak at the terminal hjf's is working with here.
imgur.com/eZqPwuw
-
ober
.oO(X terminal station)
-
topcat001
I actually worked on an actual xterm (with a 21" monitor) in uni, running CDE off a HP-UX server.
-
topcat001
beautiful thing
-
topcat001
hjf's terminal is very cool
-
topcat001
hjk rather :)