-
polarian
if you want to run multiple ifconfig commands in rc.conf say configure IP address then add members for a bridge
-
polarian
can you do ifconfig_bridge0 twice?
-
polarian
bridge0 being the interface you want to configure
-
polarian
or do you chain it
-
polarian
"inet 192.168.56.32 netmask 255.255.255.0 addm fxp0 addm fxp1"
-
polarian
would that be valid?
-
polarian
also according to the man pages... bridge and tap are both created through interface cloning... so if I do cloned_interface="bridge0 tap0"
-
polarian
both a bridge and tap device will be created, correct?
-
sixpiece
ok so I have node modules taking around 5 gb apache is around 15gb
-
sixpiece
python, and other node modules 5 gb , usr/ports taking another 5 gb
-
sixpiece
but the breakdown is /usr is 25 gb /var 12.7 gb /jails 3gb /root 2.6gb
-
sixpiece
hello anyone here?
-
sixpiece
how do I check if firewall is on?
-
sixpiece
ok ipfw is enabled
-
sfox_
pfctl
-
sixpiece
like what would be the command?
-
vkarlsen
sixpiece: No, if you have ipfw enabled, ipfw list will show you your current rules
-
sixpiece
both are enabled now
-
sixpiece
but I don't know how to block someone
-
vkarlsen
Don't enable both
-
vkarlsen
The handbook explains how to use the firewalls:
docs.freebsd.org/en/books/handbook/firewalls
-
sixpiece
i deleted some log files that were really huge to free up space and will it recreate those files or I need to remember their names?
-
rennj
termbin.com/cvk8 fbsd 5.x days was easier
-
rennj
# Stop RFC1918 nets on the outside interface
-
rennj
haha
-
rennj
not current
-
rennj
haha
-
rennj
# Stop RFC1918 nets on the outside interface
-
rennj
probably should use pf at this point.
-
rennj
-
rennj
PF is a complete, full-featured firewall that has optional support for ALTQ (Alternate Queuing), which provides Quality of Service (QoS).
-
rennj
Dummynet & ipfw = QoS perhaps
-
rennj
dummynet is a flexible tool originally designed for testing networking protocols, and since then (mis)used for bandwidth management.
-
rennj
termbin.com/4n3t generic vmware.vmx file w00t.. xhci vs echi. finally got. now i just need to lsi scsi to it. Saturday night one more beer.
-
rennj
thats a good .vmx file
-
angry_vincent
when /usr/obj is on tmpfs, it looks that META_MODE does not work?
-
vkarlsen
sixpiece: I'm missing some context. Are you the person who was here the other day with a VPS that was fuller than it should?
-
sixpiece
vkarlsen yes that's me
-
vkarlsen
sixpiece: Thoser are some large numbers for a small server without much content, especially /var and /root. Are you storing a bunch of things in /root? Did you find out why /var/db takes up so much space?
-
sixpiece
I cleared it up quite a bit
-
sixpiece
now I have 20gb but they had a ssl error log and some people obviously trying to hack and I just deleted the file that was over many gb
-
sixpiece
so I am hoping these deleted files will recreate themselves when they attempt to write to the file
-
sixpiece
but I agree there's probably still quite a bit more that needs to be deleted
-
polarian
Anyone can answer my questions in the backlog? (casually bumping my query) :P
-
nimaje
polarian: you shouldn't write commands in rc.conf, as how often it get read (sourced) is unspecified, you should only have assignments there and later assignments to a variable override previous assignments to that variable
-
polarian
nimaje: not commands
-
polarian
but when doing ifconfig configurations... do you duplicate the variable or do you chain them
-
polarian
for example, I need to set an IP for bridge0 and also assign interfaces to it
-
polarian
can I mix the inet with addm?
-
polarian
that was the question, sorry if I was not clear.
-
polarian
anyone know the answer/
-
ridcully
cloned_interface is correct. i have added the ip here via alias - no clue, why i did that back then. so maybe you can not mix it (assuming, you are asking, because you have tried and did not work)
-
nimaje
[…] and later assignments to a variable override previous assignments to that variable
-
dvl
tsoome: That loader.conf.local issue - it is NOT a problem with the Azure templates - the file originated in the VM I was migrating from DigitalOcean to Azure. Looking at the original droplet, the file is dated 2017
-
Soni
how hard would it be to replace the entire address space on a signal
-
Soni
(or, at least the object code)
-
Soni
see, we have this cursed proposal, let's call it "sigaltexec", which, given appropriate compiler support, lets you replace the object code with a signal-safe version when handling signals
-
Soni
and by "signal safe" we mean the code would be compiled twice: once with access to everything normally, and once without access to things like malloc
-
Soni
(then it's just a matter of replacing the object code when handling signals and even function pointers can be safely passed around between the two "worlds")
-
polarian
nimaje: so how do you assign and add interfaces
-
polarian
do you just compress it into a single ifconfig_bridge0 line
-
polarian
addm and set inet/netmask on the same line
-
nimaje
probably, I didn't need to look to deeply into configuring network stuff yet
-
ridcully
i have `ifconfig_bridge0` just for the `addm ...` and then `ifconfig_bridge0_alias0` for an `inet ...` ipv4 on it
-
mzar
that's sad story kwiat
-
mzar
that's sad story ketas
-
ketas
mzar: i can't recall any recent sad stories, only older ones
-
mzar
your laptop BrindledCat
-
mzar
your laptop broke
-
ketas
oh
-
mzar
I am sorry for tab abuse BrindledCat
-
ketas
well
-
ketas
it was n.o.s. t60 that worked over 10 years?
-
mzar
you can install FreeBSD on more recent hardware
-
mzar
ig4 touchpad works, touchscreen too
-
ketas
ig4 is what?
-
ketas
and yes i could
-
polarian
nimaje: I will try this then, and if not I will do what ridcully has done... thanks for all the help <3
-
rwp
polarian, In /etc/rc.conf you cannot have duplicate variables. Later assignments overwrite earlier assignments. Your previous cloned_interface="bridge0 tap0" is normal. Add ifconfig_bridge0="addm eth1 up" ifconfig_tap0="up" with whatever names your system needs.
-
polarian
rwp: I am aware... that wasn't my question... my question was can you mix arguments kaa... ifconfig_bridge="inet 192.168.43.21 netmask 255.255.255.0 addm eth0 addm eth1"
-
polarian
would that be valid or invalid
-
polarian
I am unsure how freebsd would interpret it... as an ifconfig command it would be invalid, but what about in rc.conf?
-
rwp
Any valid ifconfig command is valid there. If you can run the command from the command line as an ifconfig command then it can be used in an ifconfig_bridge0 setting.
-
rwp
ifconfig processes option arguments left to right across the argument list.
-
rwp
The only thing you are missing is that ifconfig_bridge does not match the pattern ifconfig_${name} and name is bridge0 or bridge1 or tap0 some such. So it needs to be ifconfig_bridge0 there.
-
rwp
Or ifconfig_bridge1 or ifconfig_tap0 or whatever named interface you are configuring.
-
rwp
Saying a different way for clarity, if you can successfully run "ifconfig bridge0 inet 192.168.43.21 netmask 255.255.255.0 addm eth0 addm up" from the command line and it works then the same is a valid setting in the ifconfig_bridge0= variable setting, without the "ifconfig bridge0" part because that's in the name.
-
rwp
You probably want to add "up" as well to make sure the interface is marked up so it can pass packets. Not bringing interfaces up is a typical snag I hit myself often.
-
rwp
There is a sysctl setting for automatically marking tap interfaces up on open to avoid snags for tap devices too. net.link.tap.up_on_open=1
-
polarian
rwp: oh...
-
polarian
it does work from ifconfig
-
polarian
in the man pages and handbook it always is ran separately
-
polarian
I assumed it didn't work... so ifconfig can do all configuration in a single line... if so then that solves ALL my issues :P
-
rwp
I can't remember if the rc script parses the argument list itself and then runs the commands separately or not. It might. But the effect will be the same in either case. So actually it doesn't matter to us. We can put the list of commands all in that one variable for it and it is okay.
-
rwp
Also, instead of the old-style 192.168.43.21 netmask 255.255.255.0 which is still and always will be okay it's more compact to use the CIDR style 192.168.43.21/24 and so I definitely prefer seeing the more compact style now. Just less to read. Lines are shorter.
-
ketas
yeah use cidr
-
ketas
while there, set IFCONFIG_FORMAT=inet:cidr,inet6:cidr
-
rwp
Let me say again just for clarity that the rc scripts actually call the ifconfig command. I always test out what I want to do on the command line first. Then I put those settings in the rc.conf. Then I clear everything out (ifconfig bridge0 destroy, and destroy everything else back to nothing) and test the settings by running the rc scripts.
-
ketas
and uptime to env LC_TIME=de_DE.ISO8859-15 uptime or so
-
ketas
oh well
-
rwp
I always work on a system with console access. Usually I do this from the console. So I don't have fear that I will lock myself out of the system.
-
ketas
why ifconfig can't do ether ... inet in one go?
-
ketas
however if you run it twice...
-
ketas
internally it can do whatever it wants in meaning of order
-
rwp
ketas, Please say more? I don't understand the point you are making.
-
polarian
rwp: funny enough, I CIDR when it comes to IPv6
-
polarian
but for some reason I like sticking netmask :32
-
ketas
i mean i can't set mac and ip to if in one command
-
ketas
just doesn't work
-
polarian
then
-
polarian
how would you do that
-
polarian
in rc.conf
-
ketas
supposedly families conflict
-
polarian
on OpenBSD hostname.if(4) uses newlines to separate commands
-
rwp
ketas, Can you give an example? Because I mean ifconfig can process a very long list of things. Like the example I posted above.
-
polarian
but rc.conf(5) doesn't seem to support multiple commands
-
polarian
so either it allows the entire interface config in a single line... or theres a limitation on what you can do on rc.conf
-
rwp
Hmm... Looking at "man rc.conf" I see at least one example of multiple commands ifconfig_wlan0="DHCP WPA mode 11b" but that's it. It would be nice if it gave a more complicated example for em0 or something.
-
rwp
But we only run into this usually with jails and bhyve and so I guess those examples get explained in more detail in that side of the documentation. Maybe.
-
polarian
rwp: agreed...
-
polarian
the handbook separates them into commands, but does not talk about what to do in rc.conf either...
-
rwp
polarian, I am not familiar with OpenBSD's details. I have run it sparingly. Mostly for a reference and not in actual use where I get a lot of experience with it. So I don't know about hostname.if and am reading the man page for it now.
-
ketas
rwp: go and literally run: ifconfig bridge30000 create ether aa:aa:aa:aa:aa:aa inet 1.1.1.1/32
-
ketas
that doesn't work!
-
rwp
So far if I want to do more than what can be done all at once then I do those other things in the jail.conf file where one can run multiple lines using exec.prestart and exec.poststop.
-
ketas
when it didn't work in init, i went and look why
-
ketas
and i was surprised
-
ketas
without create it won't, either
-
polarian
rwp: ketas what the fuck? why would you have 30,001 bridges!!!
-
ketas
as namespace reasons
-
rwp
polarian, That command doesn't work because it doesn't work though not because it is all on one line.
-
ketas
but this was example
-
polarian
rwp: I know but still
-
polarian
why would you have 30,001 bridges
-
rwp
Oops. s/polarian/ketas/ there.
-
ketas
no it should
-
ketas
but it can't do l2 and l3 at same time
-
ketas
funnily
-
ketas
kernel happily accepts it all in both ways sequenced
-
ketas
ifconfig is just nooope fu
-
ketas
then you need to put one as _alias0=
-
ketas
took for a while to realize
-
rwp
ketas, That looks like either a bug in ifconfig or a limitation in ifconfig. Something that could be improved in ifconfig.
-
ketas
yeah
-
rwp
Using alias0 is a nice hack for it.
-
ketas
but yes i do have epair10000
-
ketas
and 20000
-
ketas
not 10000 of epairs
-
ketas
unsure how much memory one took
-
ketas
> ifconfig -l
-
ketas
em0 lo0 bridge1 bridge3 bridge10000 bridge10001 bridge10002 bridge10003 tap4 tap5 tap6 tap10000 tap10001 tap10002 tun20 lagg0 epair3a epair3b epair10000a epair10001a epair10002a epair10003a epair10004a epair10005a epair10006a epair20007a vlan1 vlan3 vlan4 vlan7 vlan9 vlan40 vlan60 vlan61 vlan62 vlan63 vlan64 vlan65 pflog0
-
tsoome
dvl :)
-
ketas
in the end i have this
-
ketas
not thousands
-
ketas
epair is total legit reason for ether x inet y
-
ketas
i didn't want to rename them either altho i could
-
polarian
rwp: but this limitation is then a issue
-
polarian
if rc.conf only accepts a single command
-
polarian
either 1. rc.conf supports multiple ifconfig commands per interface or 2. ifconfig can configure an entire interface in a single command
-
polarian
otherwise you run into limitations
-
rwp
It's definitely a limitation with regards to ketas' ifconfig limitation of setting both the ethernet link address and the IP address. That feels like a bug in ifconfig to me.
-
rwp
So far I personally have not needed to control the MAC address of a bridge. So I haven't run into that case yet myself. Though I could see a VPS providing having MAC filtering and therefore it being a requirement in some environments.
-
polarian
ketas: maybe report this as a bug then?
-
ketas
it's known
-
rwp
And as far as managing epairs I always do those things in jail.conf in exec.prestart and such and so for me it hasn't been a limitation.
-
polarian
well according to if_bridge(4) the bridge mac address is assigned randomly within the local range, it should never conflict
-
polarian
so the need for changing mac is low
-
ketas
maybe i could move it to jail.conf but still
-
polarian
which, if it is a bug, is likely why its unpatched then if its known
-
rwp
I vaguely recall there is a setting that causes bridge ethernet link addresses to inherit from the first associated member but can't find the docs on it now.
-
polarian
ketas: you could run it as a script
-
polarian
-
polarian
this will run on startup then
-
ketas
rc.conf was simpler for now
-
rwp
That's what I would do too. If I need something really custom then I put it in a script.
-
polarian
hey its a good patch for someone who wanted to get into freebsd contributions
-
» polarian is too stupid
-
ketas
-
ketas
probably could improve
-
ketas
i can't really figure out how to patch ifconfig for that, properly
-
ketas
i also wish uptime could do 24h clock, maybe on option, and uptime in secs with option too
-
ketas
had to use separate util for that which i badly wrote in c
-
ketas
some patches i could even submit
-
ketas
like one which configures whatever wifi if is there, automatically on init
-
ketas
iirc it's still not there
-
ketas
there are no fallbacks like ifconfig_DEFAULT
-
ketas
-
ketas
i currently haven't place to test it anymore
-
ketas
it allowed me to not known what driver the random usb wifi used
-
ketas
likely noone else will submit it than me?
-
ketas
however with ifconfig i'm unsure if i can do it
-
ketas
init one is already a hack
-
ketas
rwp: i wanted my macs to stay put, instead of changing every boot, as ll's come from them and therefore v6 ips, and if you dhcp it like my jails are, then v4 ones too, now you need fixes macs on host or jail
-
ketas
on bridge and on epairs
-
ketas
also less of a confusio where the hell is mac actually located at
-
ketas
i also stole mac prefix from phys nic
-
ketas
naughty
-
ketas
so i know whatever participates in network comes from single machine
-
archer72
Quick question. I found a Pi with some sort of BSD on it. Is there a command to tell which Pi version and which BSD it is?
-
vkarlsen
archer72: If it is running, uname -a should tell you some things about the OS
-
archer72
Ahh TY vkarlsen I forgot about that one
-
archer72
FreeBSD PiBSD 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC arm
-
archer72
I tried `pinout` but that didn't exist on my system to show the Pi version. I suspect it is a version 2
-
rwp
ketas, For my use I am always doing static IP assignment so they are not ever going to change regardless of dynamic ethernet address.
-
rwp
archer72, On most systems of the various types BSD & other these days this will yield useful information: cat /etc/os-release
-
archer72
I found my Pi 1. Does FreeBSD run on this?
-
archer72
-
nimaje
freebsd is removimg support for armv6 as it is an old legacy architecture
-
ketas
nbsd works iirc
-
rwp
archer72, Yep!
-
rwp
I don't know the history but /etc/os-release is where all of the current operating systems that I interact with place information about the running release.
-
rwp
Probably can't be counted upon in an absolute sense. But across my collective that's the one place where every system puts interesting descriptive information about their release.
-
hc
So how's the FreeBSD project doing these days? I love FreeBSD, I use it on almost all of my servers
-
hc
Hope for the project to continue to exist for a long time :) It's the best OS out there right now imho
-
hc
(Just a random thought)
-
sfox_
it kernel panics constantly
-
sfox_
from several year old kernel page fault bugs
-
sfox_
still open due to lack of manapower
-
hc
Hmm, is FreeBSD getting new hackers from the younger generations?
-
hc
(while I use it daily I don't really keep track of the mailing lists, etc.)
-
sfox_
idk
-
hc
sfox_: Just curious, have you got a link to the bug you mentinoed?
-
sfox_
-
hc
Thanks
-
sfox_
it's got several bug numbers from multiple people reporting it over the years, but this is one of the older ones
-
hc
Fun fact: A long time ago I tried to do a freebsd project under the GSoC. I was in brief contact with a maintainer but they stopped responding altogether after a few emails, I found that a bit rude
-
hc
Haven't tried to get active within the project since, but still like it very much as a user:)
-
hc
I think that was around 2008 or so
-
sfox_
i tried adding the workaround of exec.poststop = "sleep 2";
-
sfox_
but unfortunately that no longer prevents crashing anymore in 14.1-R
-
hc
That bug sounds to me like people are unsure as to the root cause?
-
sfox_
it's related to VNET's networking code
-
sfox_
it's been reproduced in both virtual machines and bare metal
-
sfox_
i'm not sure how the root cause could still be unknown. I can provide core dumps to developers if need be
-
bbrtj
I'm having a problem with acpi_video after upgrading to 14.1 from 14.0. All sysctl variables for brightness are there, but changing them don't do anything. hw.acpi.video.lcd0.active is 0 and cannot be changed to 1. acpi_video kernel module is loaded after drm. What am I missing?
-
mzar
4
-
mzar
err
-
bbrtj
Ah I see there's now a backlight program and it works. Neat, not sure if it existed before
-
ant-x
Hello, all. The networkmgr utilty must be auto-started via sudo, but won't. .xsession-errors tells me I must use an askpass helper. What is the FreeBSD way to let a sudo command succeed during the X login, wihtout user interaction?
-
ant-x
The solution to my problem here says I should add the user to the `wheel' group: <
forums.freebsd.org/threads/networkm…ring-after-login.92383/#post-645155>. Are there any alternatives?
-
ant-x
(seems a bit dangerous just to let a GUI network manager autostart)
-
skered
ant-x: You could set the sudo entry to run the command be password free.
-
ant-x
skered, OK: via what mechanism?
-
skered
Look at /usr/local/etc/sudoers for a NOPASSWD example. The man page for sudoers as well.
-
skered
er well that might not work if this is an X application?
-
skered
If the user can run sudo `sudo ...` where ... is the path to the application run/appear in X?
-
ant-x
Thanks, waity-minty.
-
ant-x
Yeah, I am a sudoer in the `sudoers' file: <mylogin> ALL=(ALL:ALL) ALL
-
ant-x
I can use sudo commands in the X terminal, but the first time I have to enter the root password.
-
ant-x
Will look into NOPASSWD
-
skered
Ok then maybe it will work. Running X application as a different user than who is logged in can sometimes be a pain due to DISPLAY/XAUTHORITY unset/mismatch
-
skered
There's also doas (sudo like) that can help here too.
-
ant-x
I see: I can make the user a NOPASSED sudoer: too much for a single application.
-
ant-x
Is there a way to enable a passwordless sudo invocation of /that one/ program for /that one/ user?
-
skered
Yes. You might want to also look at doas. Its config is a bit simpler but less fearure rich as sudo.
-
ant-x
skered, ... and shall I then replace `sudo` with the corresponding `duas` in my autostart .desktop file?
-
skered
doas but yes.
-
ant-x
That was a typo. Thanks. So, there are three optons: 1) make the user a NOPASSED sudoer; 2) same thing with `doas`, and 3) add the user to the wheel group.
-
skered
I wouldn't be surprised if you still need to be in wheel for other things.
-
skered
I would have maybe expected xfce to use polkit to allow this type of access.
-
ant-x
skered, polkit is starge: it requires JavaScript programming!
-
ant-x
* strange
-
skered
Once you get it you get it.
-
skered
and that's after all the security issues it has had.
-
rwp
ant-x, BSD has this extra security layer that if you are not in the wheel group then you are blocked from root access.
-
rwp
Use of the name "wheel" is a joke name because if you are in the wheel group then you are a "big wheel"
idioms.thefreedictionary.com/a+big+wheel
-
rwp
Without being in the wheel group so that one can su or sudo to root then one can only login as root from the console.
-
ant-x
"I wanna roll like big wheel, across a Georgeia cottonfield!" -- I love Joe Turner.
-
ant-x
How I have inserted a USB stick. How do I find out which device it is?
-
rwp
The default sshd_config is PermitRootLogin=no so one can't ssh in as root either unless that is changed.
-
ant-x
rwp, Thanks, there is a lot of mechanisms. I am not on SSH, though.
-
rwp
ant-x, I "tail /var/log/messages" and see what device it just created. Probably /dev/da0
-
ant-x
rwp, Ouch! "logfile turned over due to size > 1000K (-:
-
ant-x
(tail won't show anything)
-
rwp
Then look at the previous file.
-
rwp
zless /var/log/messages.0.bz2 would be my choice and then G to get to the end of the file.
-
ant-x
You guessed right: it was /dev/da0. Hmmm! there should a transparent way of examing the last log records that took care of the log rotation.
-
rwp
On SATA based systems the disks will be /dev/ada0 ada1 ada2... but on SAS/SCSI based systems they will be /dev/da0 da1 da2... so on SAS systems one must be super careful not to get the wrong device!
-
rwp
But on SATA systems it is safer because only USB will be using the da0 type naming.
-
rwp
On my SATA desktop I add this following /etc/devfs.rules files entries.
paste.debian.net/plain/1322626
-
rwp
That changes the permissions on USB devices to be 0660 writable by group wheel.
-
rwp
And then I can write to inserted USB devices as me without needing su or sudo. Seems a lot safer. I can't wipe out my disk when working as me.
-
rwp
Don't do that on a SAS system though as that would be too risky there as it would also affect the system disk drives on those systems.
-
ant-x
Thanks for the tip. I have not yet tried to write to USB stick as normal user.
-
ant-x
rwp, then one could intercept an automount event and set the permissions there. Ingternal HDDs do not automount.
-
rwp
Cool! If you write it up please send me the instructions for it!
-
ant-x
Indeed, I can't write to USB sticks as normal user.
-
ant-x
rwp, This time, I am preparing this laptop for a colleague, so not sure... I have written up a script for exponential brightness control, which was non-trivial!
-
ketas
hmm why exp?
-
ketas
transparent way to look rotated logs?
-
ant-x
ketas, because the starndard ACPI interface, at each Fn keypress changed the brightness level by 1 point of 100, so that it took ages to adjust it.
-
ant-x
ketas, Yes: to access the last n entries even if part of them are in in rotated an archived log file.
-
ketas
like zfgrep boo /var/log/messages* ?
-
ketas
oh
-
ant-x
Yes, I think so.
-
rwp
zfgrep boo /var/log/messages* will list them in an inopportune order for my taste. Reversing the file order would grep entries in time order.
-
ketas
( zcat /var/log/messages.?.* ; cat /var/log/messages ) | tail
-
ketas
assuming they aren't large
-
ketas
that's still wrong
-
rwp
zgrep foo $(ls -t1 /var/log/messages*)
-
rwp
Sorry, reverse that. zgrep foo $(ls -rt /var/log/messages*)
-
ant-x
Guys -- I am trying those now, have to learn some basic shell scripting first.
-
rwp
That will list entries in a more intuitive time order. But I don't like using the output of ls -t there as it feels icky since it isn't really an explicit command and might be wrong.
-
ant-x
Perhaps a decidcated script/program?
-
rwp
I would like to use "tac" (which prints lines in reverse) but it is not in base.
-
la_mettrie
tail -r works like tac
-
ant-x
...Has anybody got Wine working on their FreeBSD machine? A freshly insalled Wine on mine complains that i386-wine-pkg/user/local/bin/wine does not exists and asks me to install 32-bit Wine with: /usr/local/share/wine/pkg32.sh . This is not right for my amd64 laptop...
-
ketas
find /var/log -depth 1 -name 'messages*' | sort -r | xargs fgrep dhcp
-
ketas
from shell to ls isn'y ideal indeed
-
ketas
shell expands *, then ls sorts it
-
ketas
it works
-
ketas
(z)
-
rwp
The find case is fun. Though I would do it this way: find /var/log/messages* -name 'messages*'
-
rwp
I hadn't thought about sort -r. With that I might do: echo /var/log/messages* | tr ' ' '\n' | sort -r
-
ketas
shell expands * again
-
ketas
here
-
ketas
it's fine
-
ketas
yeah echo * is fine too
-
rwp
What's wrong with having the shell expand the *?
-
ketas
echo /var/log/messages* | xargs -n 1 | sort -r | xargs zfgrep boo
-
ketas
nothing
-
ketas
but ls * is like double task
-
ketas
fine for oneliner you do once
-
ketas
tr eh
-
ketas
works
-
rwp
I think "tr ' ' '\n'" is lighter weight than "xargs -n 1".
-
ketas
yes
-
rwp
I would prefer not "ls /var/log | grep messages" as that might produce significant character I/O that is not needed.
-
ketas
i have xargsy habits
-
ketas
oh text manip tools are fub
-
rwp
I do often do things like this when searching through crontabs and not knowing where something was located: find /etc/cron* /usr/local/etc/cron* -type f -exec grep foo {} +
-
ketas
fun
-
ketas
like tr ' ' + | xargs bc
-
ketas
for number adding
-
» rwp must run off, TTFN!
-
jbo
cracauer
-
polarian
bsdconfig(8) seems interesting
-
polarian
not my cup of tea using a tui but its still cool
-
cracauer
?
-
jbo
we're having so much fun, aren't we?
-
cracauer
Well, it is a legitimate regression on 14.1 (probably) and I don't want to deal with Windows, so there I go. I just wish he would start running `make world`s already instead of fiddling with the commit list.
-
jbo
many (and I really mean many) of us have tried to help that guy over the years. It's tedious.
-
cracauer
Well, it better be today. I have work-work tomorrow :-)
-
jbo
heh :p
-
jbo
better don't F5 then
-
archer72
I had help on the Raspberry pi front. `sysctl hw` gave me what I was looking for.
-
archer72
hw.fdt.model: Raspberry Pi 2 Model B Rev 1.1
-
archer72
ATM, I'm git cloning NanoBSD for Pi 1.
-
jbo
use --depth 1 if you git clone and don't need the full history
-
jbo
greatly improves perf