-
DrKK`
just spent a bunch of time trying to get mate installed for a graphical desktop in a VMWare FBSD host.
-
DrKK`
that did not go well.
-
DrKK`
I am sure there's a trick to it
-
DrKK`
was using this for inspiration
-
DrKK`
-
VimDiesel
Title: FreeBSD as a Desktop? Here's How! - YouTube
-
rwp
I use desktops as such a simple commodity that the difference between Mate and other desktops for me is insignificant.
-
rwp
Therefore if Mate is difficult I would just install one that installs easy like XFCE and use it instead.
-
rwp
Full disclosure though is that I am not running a Desktop Environment at all but just a plain window manager. Running i3. So I am probably already not understanding the attraction of the heavy DEs.
-
ghoti
DrKK`: I have never used Mate. Spent most of my time in gnome2 and xfce, though I also tried to use enlightenment and compiz a while back. I would say .. go with a "known" first, then switch when everything is working.
-
CrtxReavr
ghoti, isn't Mate the continued development of gnome2?
-
CrtxReavr
"The MATE Desktop Environment is the continuation of GNOME 2."
-
CrtxReavr
Why yes it is!
-
CrtxReavr
-
VimDiesel
Title: MATE Desktop Environment | MATE
-
Schokotraum
MATE is well done DE.
-
CrtxReavr
I figured out today it lacks the ability to reverse the directon of two finger touch pad scrolling.
-
CrtxReavr
It defaults to backwards.
-
r0ni
is there a easy/auto way to get portmaster to build php80 pkgs from my installed php74 ones?
-
parv
"vfs.zfs.arc_free_target" takes number of pages. So how do I find how many bytes are in a page? I am amd64 system
-
V_PauAmma_V
"sysctl hw.pagesizes" (not sure which size that is, of the 3 this returns.)
-
V_PauAmma_V
Oh, they left. Never mind.
-
paulf
it only returns 2 on i386
-
paulf
1Gbyte pages in a 4Gbyte memory space would be quite a challenge
-
» V_PauAmma_V nods at paulf. (Spinning up an i386 VM is too much work, so I'll take your word for it.)
-
Demosthenex
so new server, i want to jail each service i run to keep configs and disk space separate. that's 1 IP on my network per jail for the easy config.
-
chromebittin
Catching up with BSD Now, also nice to see some FreeBSD people at FOSDEM :)
-
meena
maybe i should listen to BSD Now while doing dishes…
-
paulf
I'm a few episondes behind
-
chromebittin
i am 2 episodes behind atm /me is catching up
-
CrtxReavr
BSD Now?
-
Kobaz
bsd now and laters
-
CrtxReavr
Oh, not the same thing I was remembering.
-
CrtxReavr
There was a BSD podcast years ago.
-
CrtxReavr
-
VimDiesel
Title: bsdtalk
-
CrtxReavr
I was actually a guest on there once.
-
mns
Is there a way to prevent a script from running other interpreters when being run under sudo ?
-
Kobaz
sudo is basically a passthrough, it elevates your permission to run what you allow it to run
-
Kobaz
if you're allowing it to run, it can run however it wants
-
» zykotick9 doesn't think most scripts are sentient, thus they run as they are written. Isn't this what the hash/bang is for?
-
mns
yeah its a pass through, but was curious if anyone is aware of a way to prevent this particular pass through.
-
meena
mns: what's your rules look like right now?
-
Kobaz
the best way... allow a specific script only
-
mns
meena: the rules are controled, only a particular service account can execute a particular script as sudo. the thing is if I have a script and put something like "bash -i" or "tcsh -i" or even "ksh" it would drop into a shell with root access.
-
meena
mns: but that's always an issue. it seems easier with scripts cuz they are text that someone can trivially edit, but that's literally what a root shell exploit is
-
nerozero
hi, is du command broken on bsd ?
-
nerozero
dh -B 512 file
-
nerozero
sorry, the output of "du -B 512 file" and "du -B 128 file" is the same
-
nerozero
and both is wrong
-
mns
meena: that's what I figured, that this would be an issue from day 1 of sudo's existence. I was getting pushed back from some folks at work that this is new.
-
zykotick9
nerozero: the man page does say "Unless in -A mode, blocksize is rounded up to the next multiple of 512." which might explain why the value is the same for both...
-
nerozero
zykotick9, value is still wrong
-
zykotick9
nerozero: sorry, I have no further suggestions. Best of luck.
-
ghoti
CrtxReavr: well I'll be darned, you're right, Mate IS the continuation of gnome2. You can tell that it's been a while since I've used gnome2. ;-)
-
woland
hi fellas, any suggestions for connecting to v2ray, shadowsocks, vmess VPNs on FreeBSD 13.1?
-
woland
none of the clients I know work on FreeBSD nor are ported
-
V_PauAmma_V
"pkg search v2ray" and "pkg search shadowsocks" both return something. Have you look at those?
-
woland
the v2ray pkg that pkg search returns is for creating v2ray proxies
-
woland
I need a client like qv2ray or nekoray that supports the aforementioned protocols
-
V_PauAmma_V
I don't know, then. What OS do the clients you know about run under?
-
woland
they run under all GNU distributions and windows.
-
V_PauAmma_V
Then I'd try one with the Linuxulator.
-
woland
somehow I completely forgot about that :[ thanks friend
-
Onepamopa
nginx: [alert] failed to load the 'resty.core' module (
github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from
openresty.org/en/download.html (reason: /usr/local/share/lua/5.1/resty/core/base.lua:23: ngx_http_lua_module 0.10.22 required) in /usr/local/etc/nginx/nginx.conf:499 -- 13.1-stable, nginx 1.23.3
-
VimDiesel
Title: OpenResty - Download
-
nimaje
mns: you can put checksums in the sudoers file too, so that only the exact version of the executable you aprove to be executed is allowed
-
rtprio
that's a new one to me
-
bhechinger
I've used iocage to create a plex jail. I mounted the media via NFS on the host into the jail's path. Once I start the jail I can see the media just fine. Plex, however, cannot. Am I missing something? I don't feel like I'm missing anything.
-
mns
nimaje: that's interesting with teh checksums, any pointers would be helpful.
-
rtprio
mns: so you're saying you'v got a script, #!/bin/sh something and you're worried that someone who runs it under sudo might change the script and get a shell?
-
mns
rtprio: yes, if someone adds somethign like "bash -i" or "ksh" or "/usr/bin/python" they end up at a prompt with root access.
-
rtprio
mns: why do they have read or write access to the script?
-
rtprio
it should be chmod 711
-
spork_css
Can anyone confirm NFS server and client is an absolute no-go inside a jail?
-
spork_css
Trying to avoid mounting from the host as the jails have to sometimes move between hosts and I'd prefer the jail remain "self contained".
-
spork_css
Not tied to NFS as the only option, but also not aware of any other simple file sharing protocols that would fit the bill.
-
rtprio
spork_css: it doesn't use raw sockets, i don't see why it wouldn't work; are you running into problems?
-
spork_css
rpcbind and mountd start OK, but nfsd just dies on startup:
-
spork_css
root@test1:~ # /usr/sbin/nfsd --debug -t -h 10.3.2.188
-
spork_css
nfsd 78156 - - Can't read stable storage file: Operation not permitted
-
spork_css
"stable storage file" is this stuff in /var/db:
-
spork_css
root@test1:~ # ls -l /var/db/nfs-stablerestart*
-
spork_css
-rw------- 1 root wheel 0 Feb 10 05:48 /var/db/nfs-stablerestart
-
spork_css
-rw------- 1 root wheel 0 Feb 10 05:48 /var/db/nfs-stablerestart.bak
-
spork_css
And the nfsd startup script bails because the sysctls it tries to set are not settable inside a jail.
-
spork_css
Googling suggests nfs just isn't jail-friendly, but never found anything definitive because so many of the answers are from like 10 years ago.
-
mns
rtprio: apparently no one bothered with that sort of stuff in this legacy setup. should be chown root; chmod 711
-
mns
nimaje: I found the documentation for checksums. thanks! that will be another layer of precaution on top of what is there.
-
nimaje
mns: a sudoers(5) calls it digest check, but comes with the race conditions warning of course "Warning, if the user has write access to the command itself (directly or via a sudo command), it may be possible for the user to replace the command after the digest check has been performed but before the command is executed."
-
mns
nimaje: yes I see that.
-
dvl
Very odd situation on my host. I'm getting IPv6 addresses which I'm not assigning, not getting the ones I am assigning, and I'm not using dhcp.
dan.langille.org/?p=7187&preview=1&_ppp=9ea4108244
-
VimDiesel
Title: Not all aliases are added after reboot – Dan Langille's Other Diary
-
yuripv
dvl: it says autoconf, so it's accept_rtadv in your ifconfig line
-
yuripv
(a bit different from dhcp :)
-
dvl
yuripv: this line: ifconfig_igb0_ipv6="inet6 2610:1c0:2000:11:c94e:eea5:e1da:c49b prefixlen 64 accept_rtadv"
-
yuripv
accept_rtadv says "do the SLAAC", also known as autoconf
-
CrtxReavr
dvl, that's conflicting syntax.
-
CrtxReavr
In multiple ways.
-
dvl
CrtxReavr: so I am learning. I've removed the accept_rtadv and waiting on the reboot.
-
CrtxReavr
with _ipv6, inet6 is inferred. . . so drop it.
-
CrtxReavr
Also, you either set a static IP, or you accept_rtadv, not both.
-
meena
dvl: FreeBSD dhclient doesn't support DHCP6 :(
-
dvl
meena: yeah, on AWS, I was using something named dual_client?
-
CrtxReavr
And if you're setting a static IP, then I would set something that's a lot less typing than 2610:1c0:2000:11:c94e:eea5:e1da:c49b, like 2610:1c0:2000:11::2, for instance.
-
dvl
CrtxReavr: I don't need to type it more than once though. ;)
-
dvl
And even then, it's copy/paste. half from my docs, the other half from a random generator
-
CrtxReavr
Honestly, I would use SLAAC. . . the IPs are predictable, based on your MAC address.
-
CrtxReavr
So long as the infrastructure is there to provide it.
-
dvl
CrtxReavr: I'm in a datacenter. I wasn't told about SLAAAC when they gave the address block and the gateway.
-
CrtxReavr
Fair 'nuff.
-
dvl
OK, I removed accept_rtadv from my config. That IP gets assigned, none of the others do.
-
CrtxReavr
dvl, this for the pkg cluster, by chance?
-
meena
dvl: it's awful. it's cperciva's hack to install a current ISC-dhclient, and use that for v6, while using the one in base for v4
-
dvl
CrtxReavr: No, a host acting as a FreshPorts node.
-
CrtxReavr
Ahh
-
meena
i don't understand why we don't burn the one in base and replace it with something from this century (literally. it was forked in 1997)
-
dvl
All my IP4 address have been assigned. But none of the IPv6 aliases
-
dvl
I have this theory about the gateway_enable on this host.. Let me follow that rabbit hole for a bit.
-
dvl
CrtxReavr: I don't have time to contribute to pkg cluster. :)
-
yuripv
dvl: any errors on boot? I guess it would/should whine if it can't set the v6 aliases
-
dvl
yuripv: I've been looking in /var/log/console.log
-
dvl
yuripv: Not seeing anything in /var/log/messages either.
-
yuripv
I'd try listing v4 aliases first and v6 ones after that
-
dvl
I see I have rtsold_enable="YES"
-
dvl
yuripv: OK, just did that. RIght now, my hopes are on rtsold
-
V_PauAmma_V
Recollection check: packages are only available for -RELEASE (and mayyyybe -STABLE), but never -CURRENT, correct?
-
CrtxReavr
rtsold sounds a bit silly.
-
CrtxReavr
CAn you ping6 ff02::2%igb0
-
CrtxReavr
dvl?
-
dvl
CrtxReavr: Yes, I can ping that, and I've just rebooted without rtsold enabled.
-
CrtxReavr
And what IP responded?
-
dvl
fe80::d272:dcff:fec9:75bf%igb0,
-
CrtxReavr
so you set ipv6_defaultrouter="fe80::d272:dcff:fec9:75bf%igb0" in rc.conf?
-
dvl
no, it's ipv6_defaultrouter="2610:1c0:2000:11::1"
-
daemon
route -6 add default fe80::d272:dcff:fec9:75bf%igb0 - I THINK to test it without the rc.conf entry
-
daemon
or whatever gateway it is
-
daemon
ping ipv6.google.com ; is the test I use to check it works
-
daemon
ping^
-
daemon
ping68
-
CrtxReavr
Well something's working, 'cause I can ping 2610:1c0:2000:11:c94e:eea5:e1da:c49b, so I guess you're good.
-
dvl
I can ping6 stuff out there.
-
dvl
I just can't assign IPv6 addresses via /etc/rc.conf.
-
daemon
-
VimDiesel
Title: Solved - IPV6 aliases in rc.conf | The FreeBSD Forums
-
dvl
boot_verbose="YES" for starters...
-
yuripv
dvl: if you have IPMI on that box (in case everything goes down), i'd also try service netif restart igb0 and see if there are any issues
-
dvl
yuripv: I have IPMI but I was having trouble last night getting there.
-
daemon
if not you could always schedule a reboot in an hour; and then do a netif restart &© /var/log/messages to ~/mylog
-
yuripv
there's also an rc_debug variable, not sure if it would help to see the commands executed though
-
dvl
I got the ipmi prompt, let's see
-
daemon
dvl, I sometimes find it useful when dealing with likely ancient IPMI interface to use virtualbox to emulate something from the same era to connect to it ... ie6l thank you 3com
-
dvl
I. Got. Root. via IPMI.
-
dvl
daemon: this IPMI is a Dell iDRAC7.
-
daemon
no idea what year that is, but I just find IPMI especially ones based on java or java webstart do better with as VM client to deal with the old :P
-
yuripv
java ones usually come (came) from supermicro, idracs are (should be) html5 now, which is a good thing
-
daemon
until we are on html5; it just seems IPMI should be a standard even if its insecure that is locked down from the outer gateways
-
daemon
html6* - my typing is terrible tonight -_-
-
dvl
CrtxReavr: got a warning, inet6 is needed on ipv6 alias.
-
daemon
dvl, yes via rc.conf every line for an alias relating to ipv6 requires its family designation
-
daemon
ifconfig_lo1_alias1="inet 10.0.0.2 netmask 255.255.255.255"
-
daemon
ifconfig_lo1_alias2="inet6 fdxx:xxxx:xxxx::1 prefixlen 64"
-
daemon
aliases do not care what family
-
daemon
but the stack does care
-
dvl
after 'service netif restart igb0', the network didn't come back... now I figure it might been sshd which needed a restart, but a reboot is underway.
-
daemon
I like to put a kicker to a perl script in /etc/rc.local that basically equates to if you cant ping 8.8.8.8 or 1.1.1.1 then dhclient INTERFACE
-
daemon
not really very clean, but its helpful at times
-
yuripv
ipmi access > any script hacks :D
-
daemon
same as kvm/ip :D but meh
-
dvl
To recap, IPv6 stack seems fine. The problem is getting rc.d to assign aliases via IPv6. I tried boot_verbose="YES" but that belongs in /boot/loader.conf, not /etc/rc.conf :p
-
yuripv
dvl: rc_debug="YES" in rc.conf
-
debdrup
-
VimDiesel
Title: src - FreeBSD source tree
-
dvl
debdrup: long options for daemon? should be good.
-
debdrup
dvl: yep, it's gonna be useful for scripting
-
» yuripv feels sorry for daemon
-
daemon
yuripv, I really need to patch my irc client to not highlight on m/\Q$nickname\E/ :P
-
debdrup
-
VimDiesel
Title: NYC*BUG dmesgd
-
V_PauAmma_V
daemon, if that's irssi, no need to patch. Just /set hilight_nick_matches OFF
-
daemon
V_PauAmma_V, hexchat :P
-
la_mettrie
maybe change your nick to daemon666
-
la_mettrie
...or something
-
daemon
la_mettrie, nah if anything I would change to my actual real name
-
V_PauAmma_V
daemon, if you mean hexchat doesn't have an equivalent option, I'm sorry to hear that.
-
daemon
V_PauAmma_V, it really does not somehow -_-
-
V_PauAmma_V
:-(
-
daemon
you would think the default for every irc client would be m/^\Q$me\E[:, ]/ ; but apparently not somehow
-
dvl
yuripv: added that.
-
dvl
I'm not seeing anything, but confirmation that nginx fails to start [because the IP addresses it will listen on are not there]: Feb 10 23:03:52 r720-02 root[4757]: /etc/rc: WARNING: failed to start nginx
-
daemon
dvl, the general best practise is tell it to listen on everything 0.0.0.0 got ipv4 or .... I forget what it is for ipv6 perhaps just the port
-
daemon
then use firewalls to lock down access
-
dvl
daemon: Well, in this case, nginx not starting alerts me to the ip address issue...