-
meandrain
guys what window manager do you use on a laptop ?
-
foxiepaws
i3
-
foxiepaws
but like, thats such a personal thing lol.
-
» meena hasn't not used a laptop in thirteen? years
-
nimaje
wait, why would laptop or desktop make a diffrence with that question?
-
penryu
For me, a window manager for a laptop needs to have much better keyboard nav support, because almost all laptops have bad trackpads (and I don't pack a mouse)
-
penryu
i3 is a great example :)
-
nimaje
wait, why would you want to control your wm or anything with a mouse?
-
rwp
i3 FTW! I use it both on the laptop and the desktop. But one must adjust the default keybindings because the original is definitely an unusual choice.
-
» V_PauAmma_V uses Xfce on his laptop-that-seldom-leaves-his-desk.
-
TommyC
personal laptop uses dwm, work laptop uses kde with the same shortcuts to do the same things as the dwm one
-
penryu
nimaje: again, just for me, it sometimes comes in handy when opening remote desktops; I tried using connecting to an i3 remote session from a sway local session, and it got confusing
-
rwp
I almost never use remote graphical connections such as VNC. Almost never. Plain text over ssh is more than sufficient. Coupled with tmux/screen and a good editor and "Bob's Your Uncle" as they say.
-
rwp
But if I do need to do VNC to a remote host then I usually use a different window manager in the VNC session just so the look and feel is different to avoid the problem of which window manager in the nesting I am controlling.
-
rwp
Question: What do I need to know to run X with two graphics cards installed? I tried it and X does not start with a "Fatal server error:"
bsd.to/3WMb/raw
-
VimDiesel
Title: 3WMb
-
rwp
I don't have an Xorg.conf file at all and don't know how I should set it up to "Please specify busIDs" or whatever.
-
penryu
rwp: ordinarily I agree re. ssh/tmux. I use tmux to an absurd degree already. but remoting into VM consoles (if only during configuration) is one edge case I've just given in and used xrdp.
-
penryu
and yeah, same wm in host and remote is a recipe for madness!
-
rwp
The name xrdp makes me think MS Windows. Does it work with more than Windows?
-
penryu
it is the same RDP protocol from windows
-
rwp
A feature of tmux that I have started to appreciate is find-string in whatever window it is in. Appreciate because I have lost track of where I was doing what and can't find it now.
-
penryu
but it can serve an Xorg session to an RDP client on any platform; and RDP is a better, more functional experience than VNC.
-
rwp
I don't doubt that something could be better than VNC, by a lot even, as VNC is only incrementally improved over raw X.
-
penryu
I'm still drunk with power after getting tmux-resurrect running
-
rwp
I did not know that RDP could serve an X Windows session. I want to try it now. What do I need to know?
-
voy4g3r2
tpm is a great addon for tmux too.. if you are a vim fan (not meant to start stuff) vim-tmux-navigator is nice too
-
penryu
Most important is probably that it's my virt server and thus... *cough*kvm*cough*. On top of that, sometimes it got confused if a user has a local session when trying to connect to a remote session.
-
voy4g3r2
-
voy4g3r2
rwp i found that article quite helpful
-
VimDiesel
Title: How to Set Up Remote Desktop in FreeBSD
-
rwp
I was unaware of tmux-resurrect until you mention it now and I go look. But when I reboot things I have a scripted startup to set up tmux and pre-populate panes as I want them.
-
penryu
I got about 1/3 of the way toward implementing my own tmux-resurrect (poorly) when I figured someone else must have done it. and they had.
-
penryu
I'm in awe of how it goes about reconstructing complex neovim sessions, but I'd use it even if all it did was restore panes in specific directories
-
rwp
voy4g3r2, What is tpm? As usual I enter here with one thing and then leave with twenty things I need to go investigate! :-)
-
voy4g3r2
haha
-
penryu
tpm is the tmux plugin mgr
-
voy4g3r2
it is a plugin manager for tmux
-
rwp
I am not using any plugins with tmux. It's fine for me as it is.
-
penryu
it's how you'd install tmux-resurrect... but I think you can do it manually too.
-
voy4g3r2
when i jump from machine to machine, i know everything is in sync an dhelps
-
voy4g3r2
need a theme.. boom tpm
-
voy4g3r2
want to load tmux-autoreload
-
voy4g3r2
tpm
-
rwp
I am browsing the list of plugins now. But so far nothing is reaching out and grabbing me saying I need it.
-
penryu
oh, I haven't used it to keep things in sync... though I do synchronize my tmuxrc across machines
-
voy4g3r2
penryu: i upload the latest tmux to git repo and then download updates
-
voy4g3r2
if i added anything.. i just do ctrl-s + I
-
voy4g3r2
and it just pulls everything
-
penryu
ahhh nice
-
voy4g3r2
i take a similar approach with my neovim and lazy
-
penryu
<3 lazy
-
voy4g3r2
find a great nerdfont and it is quite heavenly
-
voy4g3r2
i am a panes person, in vim, and i am told with buffer and some harpoon
-
voy4g3r2
you can be in heaven, have not quite gotten to there level.. so lazy + git allows me to move things around easily
-
penryu
harpoon?
-
voy4g3r2
-
VimDiesel
Title: GitHub - ThePrimeagen/harpoon at harpoon2
-
voy4g3r2
you want some funny youtube/twitch stuff his personality is great
-
voy4g3r2
found him one day going down my lazyvim rabbithole
-
voy4g3r2
lua > vimscript
-
voy4g3r2
i was quite close to trying the mechnical keyboard he uses.. but he is a dorvak person.. cringed
-
voy4g3r2
then i had to spend all this money on a new file server... so mechnical keyboard goes on backburner
-
voy4g3r2
i guess my corsair k70 will have to do
-
voy4g3r2
it has been quite helpful when trying to edit files from src
-
voy4g3r2
especially freebsd14 tree and finding man page files
-
voy4g3r2
so instead of a huge :vs <location of file somehwere buried in src> i just load up harpoon and search for the file and it finds it for me
-
voy4g3r2
haha the license for fdwrite(1) is pretty funny... the beer-ware license
-
penryu
voy4g3r2: yaaa, that guy is pretty high-energy. will try out harpoon tho thx
-
voy4g3r2
yeah, i am still in the testing it out phase.. telescope does a lot of what i need so far.. just figured, he is funny and might as well give it a try
-
penryu
I really like fuzzy finding for finding a file in a project, but using it to switch _between_ open files is far from ideal. so I'd actually started doing exactly what he was mentioning: just :bnext/:bprev (mapped ofc). I think I almost have what I want with buffergator. so his rant about the mental pathway to harpoon definitely resonated with me
-
yuripv
hmm, wonder where the pkg get the kernel version from,
pastebin.com/3SchTYD1
-
VimDiesel
Title: $ sudo pkg update -fUpdating FreeBSD repository catalogue...Fetching meta.co - Pastebin.com
-
kenrap
phew, I had a bit of a slow migration back to CURRENT.
-
kenrap
another reason to get a build server
-
rwp
yuripv, Did you set pkg to latest?
-
yuripv
the problem is the "running kernel"
-
rwp
The paste seemed to indicate that it needed a running kernel later than the one you were running. It's a symmetrical relationship.
-
yuripv
and at the end of the paste is kern.osreldate output showing that pkg got that wrong
-
rwp
Ah... Gotcha.
-
rwp
Run truss and grep to see where it gets that value from?
-
nmz
I have a /bsdisks.core no idea where it came from
-
nmz
is this a system file or just a crash from bsdisks
-
nmz
can anybody test -x /bsdisks.core so I know if I can erase this
-
bradd
Its not on my fs.
-
rwp
That's a core dump from bsdisks program. Bug!
-
yuripv
wow, it's some black magic that pkg does, reading the version from uname and/or shell binaries (i wonder how it's related to "running kernel")
-
rwp
"freebsd-version -kr" ?? (shrug) Just grasping at straws. I would need to look at the pkg source to really know.
-
yuripv
running current, and building with WITHOUT_CLEAN, so it's sometimes expected, i guess, still i wouldn't call that "running kernel" version :)
-
nmz
scary $#$@ too, bsdisks is a system program, amazing I didn't get a kernel panic
-
miromoto
rsync is not automatically installed with the basic system ... Is rsync the tool of choice in the BSD world?
-
nmz
rsync isn't even the tool of choice in the linux world
-
miromoto
and on freebsd? scp? sftp?
-
tankf33der
Try rsync first.
-
miromoto
task is, download an folder recursive from another ssh-server
-
elirco
sound more like a task for 'scp -r' to me. rsync is only required if you have a 2-way sync inho.
-
tankf33der
Yea
-
miromoto
oki, thank you
-
dh
I use rsync -e ssh if I need to copy directory structure, scp -r has almost never done exacly what I need
-
yuripv
or 'ssh host tar cf - path/ | tar xf -' if you have lots of files, scp can be QUITE slow
-
penryu
I like `rsync -a` for mirroring nontrivial directory structure, since it handles symlinks better than scp
-
penryu
you could probably find a comparable tar invocation, that might even be faster, but I haven't found anything to beat `rsync -a` for memorability
-
elirco
yuripv: cool I did not even know "tarcp" works over ssh
-
nimaje
nmz: wait, bsddisks not only crashed for you but later caused a kernel panic too?
-
voy4g3r2
-
VimDiesel
Title: GitHub - jeetsukumaran/vim-buffergator: Vim plugin to list, select and switch between buffers.
-
penryu
voy4g3r2: yes, though I have now swapped it out for lspsaga's outline
-
penryu
er... no. I swapped buffergator out for fzf's :Buffers; I swapped symbols-outline out for lspsaga's outline
-
penryu
(in both cases the plugins were already there, I just had duplicate functionality)
-
bug2000
If I understand the current status, then Raspi (1) should be supported as Tier 2 for the next 4.5 years while FreeBSD 14 is still in-use. Afterwards, it will no longer be supported. Am I correct?
-
Demosthenex
so if i want to add hw.bge.allow_asf=0 and dev.bge.0.msi=0 to loader.conf, can i also just sysctl those without rebooting? what is needed to make them work?
-
paulf
rpi 1 is armv6 which means it is Tier 3 on FreeBSD 14
-
nimaje
the man page says they are only settable by the loader, maybe it works if you can unload and reload the module, but I would expect it to be compiled into the kernel
-
VVD
bge compiled in kernel
-
mage
is the rc.d script of wireguard-tools packages compatible with 13.2+ BASE if_wg?
-
mage
I'm wondering why there is no rc.d script to setup wireguard
-
bug2000
paulf, Oh. Thanks.
-
nimaje
mage: it should be
-
lw
mage: there probably should be an rc.d script in base, but i just use /etc/start_if.wg0, which is executed automatically by rc when the interface comes up
-
lw
(it only has a single line, 'wg setconf wg0 /etc/wg/wg0.conf', and i do address config with ifconfig_wg0 in rc.conf)
-
lw
at the least, it would be nice if you could setconf_wg0="/etc/wg/wg0.conf" in rc.conf
-
nimaje
-
VimDiesel
Title: The missing WireGuard integration into rc.d for FreeBSD 13.2 — blog.rlwinm.de
-
nimaje
hm, where is that /etc/start_if documented?
-
lw
oh, that uses devd which is an interesting approach
-
lw
nimaje: rc.conf(5)
-
nimaje
yeah, I want to build something based on that blog, so that I can bring the tunnel up and down via ifconfig and have them configured in rc.conf
-
lw
i'm always a bit suspicious of devd because it seems somewhat magic, but having the config loaded automatically would be easier than having to specify it manually. it might be confusing if users don't understand why that's happening though
-
lw
do you know if the author of those posts submitted a PR?
-
nimaje
afaik no, and as I read those posts it seemed a bit unfinished, no idea where he works on that, maybe only in private
-
rockyh
Hello! How to specify multiple groups when using `pw groupmod newgroup -m user'?
-
rockyh
I tried with `group1,group2,group3' and it generates an error `pw: unknown group'
-
rockyh
and if I try with `group1 group2 group3', actually user only gets added to group3 and the first 2 are ignored
-
rwp
rockyh, I don't think you can do multiple groups, maybe you can, but you can loop over multiple groups and add them one at a time. for grp in group1 group2 group3; do echo pw groupmod $grp -m user; done
-
rwp
I didn't double check the syntax, I just modified the pw command you posted. Maybe it's correct. That's why the echo is there. Look first and remove the echo only when you think it is correct.
-
rwp
Thouh I know a lot of people just pipe the output to the shell when they think it is good. | sh
-
rwp
Probably "| sh -x" is better. I should have put a -x on the end. I usually remove the echo when I fire something like that for effect.
-
lw
rockyh: you can use pw usermod user -G group1,group2,group3, but this requires you to specify the entire group list
-
lw
otherwise, like rwp says just call groupmod 3 times
-
rwp
I admit that when I saw the object-verb-object combination that I did not realize why it confused me but now I do. The original example modified the group adding a user. But actually it needed to be modifying a user adding multiple groups instead.
-
rwp
The original form (groupmod) would have probably been suitable for adding multiple users to the group.
-
rwp
Always fun when I learn something new about how to think about the commands. :-)
-
lw
well, technically modifying a user to add them to groups is really modifying the groups to add the user. but you don't always think of it that way in practice... probably depends on whether you just added a new user or a new group
-
lw
"pw groupmod g1,g2,g3 -m user" wouldn't be a bad thing to support
-
rwp
Using pw really abstracts things and distances the command line from what's actually happening. Personally I would rather just edit the /etc/group file manually.
-
CrtxReavr
^^^
-
rwp
How are newcomers going to be learning how user accounts actually work when we put up such barriers? It makes it harder not easier.
-
lw
rwp: do you really want to go back to using sed (or whatever) to edit /etc/group in a newuser script? :)
-
voy4g3r2
this is going to be an odd question, is it common for the freebsd handbook to reference older releases? such as the jails section.. it is referencing 13.2 stuff but not 14.0
-
lw
voy4g3r2: if it says "this feature was added in 13.2" that would seem normal, if it says "you can only use this in 13.2" (when it also works in 14.0) that should probably be rephrased
-
lw
handbooks updates are not really synced with releases, they happen whenever someone decides to do them
-
rwp
lw, I am certainly okay with using system tools for automation when provisioning a system or when rolling out a change to an entire network. But if I am just adding myself to another group then I just tend to use emacs and edit the file in that case for one-off things.
-
lw
(this someone can be you! i know you're already working on manpages...)
-
rwp
And of course most large collections will use something networky to handle user accounts. NIS/yp, NIS, SQL, something. It's only small SOHO networks that don't.
-
rwp
s/NIS/LDAP/2
-
voy4g3r2
lw: it is referencing 13.2 images
-
rwp
I just totally blanked on LDAP there for a moment.
-
voy4g3r2
-
lw
rwp: fairly commonly puppet, which i'm fairly sure uses pw(8). i mean, i don't disagree, i also prefer to use vipw because i can never remember the syntax for pw anyway. but i mean, i wouldn't support removing it to teach users to use vipw instead :-)
-
VimDiesel
Title: Chapter 17. Jails and Containers | FreeBSD Documentation Portal
-
lw
voy4g3r2: i think that should have a note added to tell the user to use their action release (which should be fairly obvious, but just to avoid confusion). i doubt someone will remember to update that example on every release, and even if it used 14.0, some people still use 13.2
-
lw
s/action/actual
-
rwp
lw, s/vipw/vigr/ I don't know. It is useful to know how the machinery works under the hood.
-
lw
voy4g3r2: it could perhaps replace '13.2-RELEASE' with $(uname -r), except i don't think patch releases get new distribution sets on the mirror
-
rwp
Puppet, Chef, Salt, Ansible, and so on. I am one of those people who wrote their own configuration infrastructure system from before those existed so I still use my own for obvious reasons.
-
rwp
voy4g3r2, The steady state of disks is full and documentation in slight need of an update. It always takes a while for docs to catch up.
-
nmz
nimaje: it didn't, that's why I was surprised
-
rwp
The best person to correct and improve documentation is the newcomer reading it for the very first time.
-
rwp
voy4g3r2, I looked at the example and in this case I think it is fine as it is. Because it works on either 13 or 14. If the example were updated to use 14.0-RELEASE then that would likely fail on a still supported 13.2-RELEASE host system. Jails should not be newer than the host due to likely potential use of newer system calls than the running kernel supports.
-
voy4g3r2
fair enough
-
rwp
Alternatively it could do as you say and use uname -r or some such to dynamically produce the same download as the running system. But that would make things more messy and possibly confusing for the new user reading it.
-
voy4g3r2
i am just walking through it and was expecting one thing and saw someone different
-
rwp
The docs could definitely be improved and expanded to explain the kernel version requirement. That would be a win-win all around. It just needs someone to do it.
-
voy4g3r2
hehe yes
-
voy4g3r2
i wonder if i just downloaded the src or also the docs area
-
voy4g3r2
first step, see if i can even get a jail to be operational
-
rwp
Also since you are able to read the current documentation and be able to interpret what it is conveying you can always adapt the command to match your uname -r and match your current system if you have upgraded.
-
rwp
The skill to read docs, examples, blogs, tutorials, and adapt them on the fly to a different OS, a different OS version, a different architecture, is a useful skill to learn and master.
-
voy4g3r2
-
VimDiesel
Title: sanoid and syncoid you say? easier than zfs send | zfs recv you say?.. lets find out. – FreeBSD Bug Hunting
-
voy4g3r2
for example
-
voy4g3r2
rwp: yes, suprisingly this is what i do for work all day.. take something someone told me, then translation for multiple stakeholders..
-
voy4g3r2
the art of meeting minutes, something i never thought would be useful.. they are quite useful
-
rwp
More useful as the brain ages. I miss my 20yo brain!
-
rwp
Fun! Lunch time here. BBIAB
-
voy4g3r2
yeah, i should head down tot he gym myself.. while this jails does a freebsd-update
-
scoobybejesus
i can't figure this out. in what must be connected, i previously had an entry in dhclient.conf that specified another host IP. the system was using a static IP, but i wanted another host IP for a jail to use (shared IP), and i thought this would work. It didn't. I abandoned the idea, but i accidently left the entry there until recently. anyway, now i have unrelated loopback jails whose requests are being given that IP on
-
scoobybejesus
their way out. my pfsense is blocking this unused address. the fbsd box is at 192.168.7.50. the jail is 10.0.0.50. when I tell the jail to pkg update, pfsense (192.168.7.1) is blocking those requests which it sees coming from 192.168.50.69 (the address that sat in dhclient.conf for a while).
-
scoobybejesus
it seems I need to just delete the route that stuck around, but I can't:
bsd.to/qOgQ
-
VimDiesel
Title: dpaste/qOgQ (Plain Text)
-
scoobybejesus
how..
bsd.to/qOgQ/raw looks much nice
-
VimDiesel
Title: qOgQ
-
scoobybejesus
if i helps, i originally set up this box with a static IP (on that 192.168.50.0 network), but now i switched it to DHCP.
-
scoobybejesus
i can see in /etc/pf.conf that i am natting on ext_if, but that's set to 192.168.7.50, so i'm not sure why pf (is pf doing this?) would see 192.168.50.69 as the ext_if
-
scoobybejesus
i was thinking i could solve this by deleting the erroneous route in the routing table, but as the paste shows, it won't let me delete it because "gateway uses the same route"
-
rwp
scoobybejesus, Can you paste the ifconfig output? I think flags=UH means that is a host route. Which usually occurs because the IP is still assigned. (And yes I always only ever use the paste /raw URL.)
-
scoobybejesus
hi rwp, here you go:
bsd.to/nhVy/raw .. yeah, you can see it there.. maybe i need to delete it using ifconfig...
-
VimDiesel
Title: nhVy
-
scoobybejesus
which i did, but it didn't go away, and i figured that was caused by it sitting as an entry in dhclient.conf. but maybe i haven't deleted it from ifconfig since removing it from dhclient.conf
-
rwp
Right. You will need to remove the IP using ifconfig and that should remove it from the route table. It's an IP address in the route table which is effectively a /32 address IIUC.
-
rwp
Sitting in dhclient.conf just sitting there won't do anything. That's just a file. But dhclient reading the file dhclient might do something. But ifconfig and netstat list the kernel networking state as it is now and ifconfig and route can take actions to change the current state. (though dhclient might put it back again)
-
rwp
Be sure to look at the /var/log/messages system log to see if there are clues logged there from dhclient or other logging actions there.
-
rwp
So far while experimenting I have gotten my FreeBSD system into some pretty crazy networking states but have always been able to pop the stock and unwind the crazy and reversed things back to undo the crazy and have not yet needed to resort to rebooting to get to a clean state. So far.
-
scoobybejesus
pkg update working once again!
-
scoobybejesus
thanks for your help rwp!
-
rwp
Glad to have helped! Good luck!
-
antranigv
anyone knows if hex0 or any other bootstrap process is available for FreeBSD?
-
jbo
unixman, are you the witch?
-
lw
jbo: i am the witch
-
jbo
ack
-
jbo
lw, are you going to fix that other PR as we discussed?
-
lw
jbo: uh... i think i forgot what we discussed, sorry :-( which PR was it? i can go look now
-
jbo
lw, 275947
-
lw
oh, i did the other two, i must have forgotten that one. let me testport it
-
jbo
it's missing the category makefile entry, DISTVERSION vs PORTVERSION and ensuring that poudriere testport succeeds
-
jbo
I can't do the other(s) without this one first :)
-
lw
jbo: new patch on the PR
-
jbo
ack
-
rockyh
lw: thanks for all your suggestions. I find troublesome to specify the whole list of groups
-
rockyh
rwp: thanks! Probably editing /etc/group is the best and more straightforward solution sometimes
-
rockyh
it would be great if developers considered adding support for multiple groups in `pw groupmod'
-
rockyh
I am very surprised that such support does not exist up to now
-
meena
rockyh: can you explain your use case?
-
rockyh
meena: I create a user `testuser', and its default primary group `testuser'; I also add `wheel' as secondary group. In another moment I would like to add some more secondary groups to that user: for example, `operator', `video' or similar. I would like to use a single command to add all the secondary groups, not to replace the list of secondary groups, but to append the new groups to that list. In
-
rockyh
the example, I would like to keep `wheel' as secondary group, adding `operator` and `video'
-
rockyh
it seems that this is not possible through `pw groupmod <group list> -m testuser', because there is no way to give a "group list". Only a single group can be provided. It would be useful if this functionality were added