-
darwin
i asked every day for the last three days but all I saw was an obsolete forum link on a slightly different question
-
spork_css
So what, if anything happens if you install gptzfsboot boot blocks on a UFS system?
-
CCFL_Man
i can make a zfs pool with a disk drive on a usb adapter and i can then transfer it to a disk shelf when i get one and keep it in the same pool without losing data?
-
johnjaye
darwin: did you try tput already?
-
darwin
no one mentioned it
-
rwp
darwin, Try "vidcontrol black white" to reverse the colors and "vidcontrol white black" to return.
-
rwp
Using vidcontrol was found in the forum link that meena posted. Works for me.
-
darwin
thanks
-
darwin
how do I enable 12 ttys? I added more lines in /etc/ttys but it didn't work for 11 & 12
-
darwin
and where can I set global command-line aliases (for all standard shells)?
-
johnjaye
i don't think that's a thing? i think each shell has its own config file, but maybe most of them read .profile
-
darwin
is the syntax different for default root & user shells then?
-
Erhard
It looks like MAXCONS is defined as 16. Perhaps you ned to remove others or alter that. But I am purely speculating.
-
Erhard
-
VimDiesel
Title: syscons(4)
-
darwin
i didn't say 16; I said 12
-
johnjaye
darwin: on freebsd the root user gets a tsch by default, regular users get sh. you have to install bash or what not yourself
-
darwin
i don't need bash right now
-
Erhard
The total is 16.
-
Erhard
That likely includes all the other types of consoles in /etc/ttys
-
darwin
i see
-
Erhard
But again, guessing here.
-
Erhard
Check that oage. The kernconf can increase MAXCONS
-
Erhard
check that page even
-
Erhard
Perhaps removing some of the serial consoles is an option, but I have not tried.
-
darwin
i looked at man syscons. Does this mean I'd have to compile my own kernel to increase MAXCONS?
-
Erhard
That was my understanding.
-
Erhard
But perhaps you could comment out some of the other terminals, like ttyu3 or something
-
Erhard
Then add more ttyv9, ...
-
johnjaye
Erhard: do you know much about why vt replaced syscons
-
Erhard
No clue, sorry
-
darwin
i don't even see a serial console
-
darwin
but I don't need ttyu*
-
Erhard
Oh, my /etc/ttys has the ttyu*s
-
Erhard
Your does not?
-
darwin
of course it does. I said I didn't see one described as serial console
-
Erhard
13.2-STABLE here
-
Erhard
I see.. mine has a comment that says #Serial terminals
-
darwin
i see it now
-
darwin
that is solved, but what about global aliases?
-
Erhard
Don't know there... You want alies for the different consoles?
-
darwin
if sh & (t)csh alis differently then surely I can just put in a global file something like if $SHELL=sh, or if $SHELL=csh, etc., then do different sections of aliases
-
darwin
if they alias differently
-
Erhard
What are you trying to alias?
-
Erhard
Make some command have an alias in all shells?
-
darwin
various commands
-
darwin
yes
-
Erhard
I guess you would put the alias into the defaults for each shell
-
Erhard
But perhaps there is a global .login or something
-
darwin
well it has to be global regardless of user
-
Erhard
OWuld have to check the docs for all the shells.
-
darwin
i thought it might be in /etc/profile or something similar in /usr/local
-
Erhard
I would think, yes
-
darwin
actually the console thing isn't solved; apparently it's not only configured in /etc/ttys
-
darwin
i commented out two serial consoles but still didn't get an 11th or 12th tty
-
darwin
even after rebooting
-
Erhard
YOu added the extra ttys ?
-
Erhard
ttyv9 "/usr/libexec/getty Pc" xterm onifexists secure
-
Erhard
Something like that
-
darwin
yes
-
darwin
i just copied a previous line and changed the number
-
Erhard
Not ttyv8, though, right?
-
Erhard
That is for X
-
Erhard
YOur new lines have getty
-
Erhard
?
-
darwin
now it's for 12. They do
-
Erhard
Then I do not know
-
Erhard
Anything in the logs?
-
Erhard
maybe grep for tty or getty (which I guess includes tty)
-
darwin
oops, I forgot the first is ttyv0 not ttyv0. I redid this and maybe it'll work this time
-
darwin
'not "ttyv1"'
-
Erhard
I wonder if you have to create the device files
-
darwin
oh...
-
Erhard
Just thinking out loud
-
darwin
they should be added up to 20 since some newer keyboards have Fn for n=1 to n=20
-
Erhard
Mine has through /dev/ttyvb
-
Erhard
And I don't think I ever created them by hand
-
darwin
oh, they're in hexadecimal?
-
Erhard
yes, it would seem
-
Erhard
According to that page I linked.
-
Erhard
And my /dev/directory
-
Erhard
And to go over F12 you use Shift-Alt-F1, F2...
-
darwin
you don't need shift
-
Erhard
If you define those
-
Erhard
Supposedly Shift-Alt-F1 gets you /dev/ttyva
-
Erhard
Which doesn't make a lot of sense
-
Erhard
Since alt-F12 does too
-
Erhard
According to that page
-
Erhard
But Shift-Alt-F3 gets you ttyvc
-
Erhard
*shrig*
-
Erhard
shrug even, lol
-
Erhard
And use the print screen key to cycle through all terminals
-
darwin
i was able to get ttyva but not ttyvb
-
Erhard
Try Shift-Alt-F2 ?
-
Erhard
Or the print screen trick
-
darwin
is that because it's defined for X?
-
Erhard
Oh, yes, probably
-
Erhard
If you are not running X or have it installed
-
darwin
i have it
-
darwin
something I liked on GNU/Linux is I could remove a password or (for blank) asterisk fro /etc/passwd then login would accept that username and immediately login without prompting for password... is there any similar thing I can do on *BSD?
-
darwin
from
-
rtprio
yes, i believe so
-
darwin
i removed asterisk for blank one but it didn't have this effect
-
Erhard
# pw usermod example_user -w none
-
Erhard
I think you can leave the password blank in the password file
-
Erhard
And then there is none
-
darwin
i forgot I had to use 'pw usermod'; thanks--that worked! :)
-
Erhard
I think you could delete the password form vipw too
-
Erhard
from
-
Erhard
BUt it is more reliable to use pw usermod
-
Erhard
Or at least harder to mess up
-
parv
After "vipw", need to regenerate the database via "pwd_mkdb(8)"
-
parv
Sorry, no, not according to vipw(8); it calls "pwd_mkdb" itself
-
tercaL
-
VimDiesel
Title: FreeBSD: Protect your web servers against PHP shells and malwares – Özgür Konstantin Kazanççı | Blog
-
puddinghead
hi!
-
puddinghead
i actually switched to freebsd yesterday
-
RhodiumToad
welcome, then :-)
-
BraveheartBSD
I just came back after a ubuntu disaster
-
puddinghead
thanks a lot!
-
puddinghead
its been a bit frustrating from time to time since im not that used to building programs out from back othe linux days and such, but after fixing upa few things ive got xfce and librewolf working
-
puddinghead
however, i have a small problem concerning internet access on my pc
-
xtile
They aren't working straight from pkg?
-
puddinghead
they do work straight from pkg, thats what ive done to install all the drivers and big packages such as xfce and browser as well as neovim
-
puddinghead
my issue is that i cannot connect to the internet
-
BraveheartBSD
pkg install <file name> is easy
-
puddinghead
it really is
-
puddinghead
i could connect to the internet yesterday
-
xtile
aha...
-
puddinghead
but now i cant, i first got an error about the ethernet connection having no carrier, i then moved the cable to the other port on my computer and it changed to active, but i still cant go online
-
BraveheartBSD
Have you imported settings into the second nic?
-
puddinghead
not really
-
BraveheartBSD
Just swapping cables over won't make it work, lol. What does ifconfig tell you?
-
puddinghead
im on linux right now so i cant just give out what ifconfig told me but it pretty much said that it was active and also that the ethernet was labeled ig0
-
puddinghead
before swapping the port the cable was in it was saying no carrier instead of active
-
puddinghead
for reference, my motherboard is an asus rog gaming x570-e, which iirc has both intel and realtek ethernet ports
-
BraveheartBSD
No carrier indicates a problem with ethernet cable or modem. Yes, the ig0 is an Intel ......
-
puddinghead
yea
-
puddinghead
and yesterday the same cable was workinng
-
BraveheartBSD
Are you using DHCP or static ip addresses?
-
puddinghead
dhcp
-
puddinghead
its a bit hard for me to set up because all the forum posts i see are for static addresses]
-
puddinghead
but at the same time my address changes like every 2-3 months or so
-
puddinghead
not every time i restart the router
-
BraveheartBSD
That's what DHCP is for ..... Dynamic Host Configuration Protocol. Without your pc running it's a bit difficult to assist. DHCP is pretty foolproof
-
puddinghead
i see
-
puddinghead
i guess ill then try to log into freebsd and log into here (irc) on some laptop then
-
RhodiumToad
how have you configured it in rc.conf ?
-
puddinghead
either that or kiwiirc, wait a bit
-
BraveheartBSD
Both my nics are static, I'm not using DHCP
-
puddinghead
i see
-
BraveheartBSD
Check rc.conf, it probably has the old nic selected, change that to your new one. It's midnight here, hope you get it sorted.
-
puddinghead
okay, just booted up freebsd
-
RhodiumToad
ok, so what's in your rc.conf?
-
BraveheartBSD
RhodiumToad, good luck, I'm out.
-
puddinghead
I’d say if I should just reinstall freebsd all over again but I really don’t want to do so again
-
RhodiumToad
ok, so what's in your rc.conf?
-
RhodiumToad
you should not reinstall
-
puddinghead
I don’t remember exactly
-
puddinghead
And
-
puddinghead
-
RhodiumToad
oh.
-
puddinghead
I partitioned my ssd while freebsd was running and got this error after rebooting to freebsd in order to get rc.conf
-
RhodiumToad
while it was running, or while it was not running?
-
puddinghead
while it was running
-
RhodiumToad
partitioned it how, with what?
-
puddinghead
Used gpart and took away like 128 gigs from the storage partition of the ssd
-
puddinghead
I fixed my mounting issue
-
puddinghead
I have a small question though
-
puddinghead
Do I need a webserver to use poudriere? The whole thing concerning http servers for getting the packages has made me a bit afraid of using poudriere (especially since my router is locked down) and I want to know if there’s an easy way to use poudriere with the packages stored locally
-
RhodiumToad
you don't need a webserver
-
RhodiumToad
storing the packages locally is easy
-
puddinghead
I see
-
puddinghead
How should I configure poudriere then?
-
RhodiumToad
though having a webserver makes it easier to keep an eye on progress
-
puddinghead
Seems about right
-
RhodiumToad
(though even without one, you can get goot progress info from control-T in the terminal)
-
puddinghead
Nice
-
puddinghead
I actually have a vps but I’d rather not use it for poudriere since I already use it to host websites and services
-
puddinghead
Plus it uses debian
-
RhodiumToad
configuring poudriere is just a matter of looking at poudriere.conf and fixing anything that's not right for you
-
puddinghead
Thanks!
-
RhodiumToad
the main thing to watch for with poudriere is how much tmpfs space you let it use
-
puddinghead
How much should be okay for an 1tb ssd and 16gb ram?
-
RhodiumToad
it can be extremely profligate with ram+swap use if you use tmpfs too much
-
puddinghead
(Hopefully expanding to 64gb… after I get my hdds)
-
puddinghead
And seems aborut right
-
puddinghead
I have 4gb of swap
-
RhodiumToad
USE_TMPFS=no will avoid using tmpfs at all. the default of "yes" will use it for wrkdirs, which for some ports can be quite large.
-
RhodiumToad
USE_TMPFS=no will avoid using tmpfs at all. the default of "yes" will use it for wrkdirs, which for some ports can be quite large.
-
puddinghead
So i should not use it for let’s say, firefox
-
puddinghead
Speaking of Firefox, it and a few other really big packages such as xfce break when I try to build them as ports
-
puddinghead
What kind of stuff would you NOT recommend me to build from source, aside from low level stuff like drivers
-
RhodiumToad
I build everything from source, but I don't mind it taking a long time.
-
RhodiumToad
building llvm, gcc, ghc, tex*, and rust is a very long process
-
puddinghead
Yeah I just installed gcc and llvm through pkg as we speak
-
puddinghead
Should I get portmaster alongside poudriere? I know it’s mostly deprecated but heard it could make some stuff faster as well
-
RhodiumToad
(I also build the whole OS from source)
-
RhodiumToad
nah. postmaster isn't really worth using these days.
-
RhodiumToad
*portmaster
-
puddinghead
Damn
-
puddinghead
And yeah that makes sense
-
RhodiumToad
I used to use it a lot, but when I switched to poudriere I abandoned it completely
-
puddinghead
I guess it’s just poudriere and rust then before I start to set up xorg and xfce
-
RhodiumToad
do you have a particular need to compile X?
-
puddinghead
Or arte there any other big packages I should fetch as well if I want to compile xfce succesfully
-
RhodiumToad
isn't there a package for xfce?
-
puddinghead
Yeah ik
-
puddinghead
But its a bit too bloated for me
-
RhodiumToad
ah ok
-
puddinghead
I absolutely don’t need ristretto or parole
-
puddinghead
Or svn on thunar but no git
-
puddinghead
And if I use okg autoremove the xfce extras I do want like the screenshot tool also go áay
-
RhodiumToad
if you want to mix packages with stuff you build in poudriere, I don't know the best wat
-
RhodiumToad
*way
-
puddinghead
Yeah ik
-
RhodiumToad
the thing is that poudriere doesn't use the installed system's packages because it builds everything in clean jails
-
puddinghead
Back on debian/guix I remmever mostly using packages for the very low level stuff
-
puddinghead
I see
-
puddinghead
So I’m better off going full one or the other
-
puddinghead
And uninstalling all compilers on my installed system
-
RhodiumToad
I think the -devel version has support for fetching packages
-
puddinghead
I see
-
RhodiumToad
but I haven't used it myself yet
-
puddinghead
Ooh
-
puddinghead
So this means that unlike portmaster having gcc12 installed in the base system won’t speed up building time
-
RhodiumToad
right. but portmaster has its own ways to waste time
-
puddinghead
Also any root tips?
-
puddinghead
I know root should be used as infrequently as possible, but what’s the best way to handle that? Creating one account for all root things and another user with no access to root whatsoever?
-
puddinghead
(Desktop wise at least)
-
RhodiumToad
just use sudo
-
parv
Adding an otherwise non-root user to "operator" & "wheel" group goes a long way; e.g could reboot, shutdown the machine
-
johnjaye
what's the distinction between operator and wheel?
-
puddinghead
I’ve decided to use this switch to fully switch to doas but yea
-
puddinghead
In my planned case I have two users on wheel
-
RhodiumToad
wheel group membership lets you use 'su' to become root
-
puddinghead
One has all the superadmin powers, the other can only really shut down and reboot the machine as well as load xorg
-
puddinghead
Inb4 I find a way to do rootless xorg
-
RhodiumToad
(and is often used in sudo configuration to control who can become root with sudo)
-
RhodiumToad
you don't need root to run xorg
-
RhodiumToad
depending on what GPU, you may need the user to be in the "video" group
-
puddinghead
Nvidia user here, I’ve added my users to video
-
puddinghead
And should I use sudo/doas passwordless for poudriere when I su into my non root super user?
-
RhodiumToad
up to you
-
puddinghead
Ty
-
RhodiumToad
btw, do you use a light or a dark background for terminal windows?
-
puddinghead
Background image
-
puddinghead
Usually at like 60% opacity with a dark background though
-
RhodiumToad
it's just that poudriere uses bright yellow for some of its output, which is painfully unreadable on a white background
-
RhodiumToad
(I have to fix that using COLOR_SKIP=${COLOR_BROWN} and COLOR_WARN=${COLOR_BROWN} in the conf)
-
puddinghead
I see
-
puddinghead
Setting up doas rn but I get some error at line 11 message
-
parv
Frankly all the colored text from wherever ought to have background color specified too for enough contrast if the source of the output would not find out the existing color & adjust accordingly
-
puddinghead
I see
-
puddinghead
Going to install xorg but I get this error
-
puddinghead
-
RhodiumToad
dns lookup not working?
-
RhodiumToad
does drill pkg.freebsd.org return anything?
-
puddinghead
Nope
-
RhodiumToad
what about other dns lookups?
-
puddinghead
Lol I fixed it
-
puddinghead
Turns out I had not restarted netif yet
-
puddinghead
I also uncommented the dns servers I got on install despite using dhcp, should I comment them again?
-
RhodiumToad
usually you should use the ones from dhcp.
-
RhodiumToad
dhclient will normally replace /etc/resolv.conf accordingly
-
puddinghead
So it should be fine if I keep the name servers I got from dhcp uncommented in /etc/resolv.conf?
-
puddinghead
Or should I comment them again
-
puddinghead
I also noticed that nameserver 127.p
-
puddinghead
127.0.0.1 was noted in red while the dhcp ones were not
-
puddinghead
What should I do to fix that?
-
BillTorvalds
The ".cshrc" file in FreeBSD has a line like "# A righteous umask". What is a "righetous" umask? Is this a joke? It sounds comical somehow.
-
RhodiumToad
just don't use csh
-
RhodiumToad
(root's shell switches to sh by default in fbsd 14)
-
parv
077 is /the/ righteous one
-
RhodiumToad
better to set umask in the login class anyway
-
V_PauAmma_V
parv, I beg to differ. On single-user computers, it doesn't matter, and on multiple-user, it comes down to who has physical access to the computer.
-
RhodiumToad
path, umask, and environment vars should be set in the login class so that they apply regardless of shell and also to cron jobs
-
parv
Ok🤷🏽♂️
-
parv
On a multi-user host 077 makes even more sense
-
parv
umask is only but one, possibly minor, hurdle
-
V_PauAmma_V
"minor" (and effectively nonexistent when others than you have physical access to the computer - or can set the boot device on a VPS) was exactly my point.
-
parv
Right
-
puddinghead
About to locally configure poudriere
-
puddinghead
What should I make URL_BASE if I don’t have a webserver?
-
RhodiumToad
doesn't matter
-
puddinghead
Oh, so just localhost would work then
-
RhodiumToad
it literally does not matter
-
puddinghead
I see
-
puddinghead
So if it literally doesn’t matter I might as well just comment it out right
-
RhodiumToad
I don't have it in my config file at all
-
RhodiumToad
this is mine, if you're curious:
-
RhodiumToad
-
VimDiesel
Title: dpaste/UZGoA (Plain Code)
-
RhodiumToad
NO_ZFS because my builder vm doesn't use zfs, you wouldn't want that setting if you are using zfs
-
RhodiumToad
my FREEBSD_HOST is there to disable fetching of distfiles which I do manually; you'd want to remove that
-
puddinghead
I use zfs
-
puddinghead
And why do you think I would like to remove that, exactly? Simplifying the process?
-
RhodiumToad
I can probably remove PKG_REPO_META_FILE now too
-
puddinghead
Damn
-
RhodiumToad
for my builds, I fetch all the source files manually with make fetch-recursive in the ports tree. That's a pain in several ways, including the fact that there are bugs in the -recursive part
-
puddinghead
I see
-
RhodiumToad
(bugs which I've fixed locally but which are not yet fixed in the main ports tree)
-
puddinghead
I installed the ports tree alongside freebsd so i don’t think it should be much of a provlem
-
RhodiumToad
if you don't want to mess around with that kind of thing, better to let poudriere fetch the stuff itself
-
puddinghead
Yeah
-
puddinghead
RhodiumToad just set up my poudriere.conf
-
puddinghead
Where should my poudriere package lost be
-
puddinghead
like, if I set my basefs to /home/user/poudriere, should my packages to make list be there
-
bolik
Hi all, I'm trying to understand why does the free size on my SSD does not increase after I delete / move files. For example, I moved 19 GB to another computer, but the free size (df -m) did not reflect the move and remained the same. I use ZFS as the file system, FreeBSD 13.2. Anyone familiar with this issue?
-
spork_css
I found an interesting regression somewhere between FreeBSD 12.1 and 12.4. Got a host that takes 5 hours to boot with a random USB drive plugged-in, but if I go back to 12.1, no such issue.
-
rtprio
bolik: do you have any snapshots?
-
bolik
@rtprio: not that I'm aware of (at least not intentionally). How do I see that?
-
rtprio
zfs list -t snapshot
-
bolik
yep, I see 5 lines in the output.
-
bolik
how can i get rid of them?
-
bolik
in a safe manner of course. Additionally I probably need to disable the creation of new snapshots (if that's advisable)?
-
rtprio
bolik: zfs destroy pool/slice@snapshotname
-
bolik
rtprio: thank you. Will try that
-
bolik
rtprio: the amount of free space looks much more reasonable, thank you for your help
-
puddinghead
I was about to compile some packages in poudriere for the first time when I got a dependency loop error thrown in
-
puddinghead
Is there a way for me to quickly resolve these issues? I dont want to spend 40 minutes checking and unchecking what dependencies I want or not want to use
-
puddinghead
How do I reset options I set with poudriere
-
puddinghead
Nvm I found out
-
otis
poudriere options -j ... -C category/port
-
puddinghead
@otis thanks a lot! Im very new to freebsd and poudriere so im still making a lot of mistakes, any best tips to avoid such errors from happening?
-
RhodiumToad
dependency loops in ports should not happen; any such is a bug in the port. I'm guessing you used some non-default port option?
-
puddinghead
Yep, multiple
-
puddinghead
I wanted to configure lightdm alongside its gtk greeter and xfce
-
puddinghead
Both desktop and goodies, and tried to at least disable zsh completions in some build dependencies as well as cups support
-
RhodiumToad
disabling zsh completions isn't really worth it unless you actually use zsh _and_ don't want completions
-
puddinghead
Oh I see, I generally use bash and fish, what should I disable then?
-
puddinghead
Nothing much unless I dont want bash completions?
-
RhodiumToad
generally no need to disable anything. shell completions files do _not_ pull in any dependency on the shell in question (or at least aren't supposed to)
-
puddinghead
I see
-
RhodiumToad
you only need to disable port options if they're bringing in some heavy dependency that you don't want
-
puddinghead
Ive just forced myself to install lightdm from pkg though
-
RhodiumToad
did the message indicate where the loop was?
-
puddinghead
Yeah lemme uninstall lightdm off pkg and try building with my current setting-
-
puddinghead
Oh wait I think I deleted the options file
-
puddinghead
Yeah I removed the directory where all the options were in
-
RhodiumToad
lightdm has options DOCS VAPI, both of which look mostly harmless
-
RhodiumToad
perhaps it was an option on something else?
-
puddinghead
Yeah im sure it was xfce related
-
puddinghead
Involved avif, one python package and I forgot what else
-
puddinghead
Decided to just build lightdm first
-
puddinghead
After that I’ll set up xfce and then librewofl
-
puddinghead
The biggest thing I want to avoid is pulseaudio really
-
RhodiumToad
graphics/libavif ?
-
RhodiumToad
so here's a trick you can use
-
puddinghead
I c
-
puddinghead
Tell me the secrets
-
RhodiumToad
you can put port options in make.conf rather than relying on the options dialogs
-
RhodiumToad
(note that poudriere has its own set of make.conf files in /usr/local/etc/poudriere.d)
-
puddinghead
Nice nice,
-
puddinghead
and where do I store the make.conf files
-
RhodiumToad
if you put OPTIONS_UNSET_FORCE=PULSEAUDIO in there, it applies to all ports you build
-
puddinghead
That same place you mentioned?
-
puddinghead
Cool
-
RhodiumToad
the normal place for make.conf is in /etc, there's where ordinary "make" of a port will look
-
puddinghead
And then I can just force all packages i can use sndioon there instead right
-
puddinghead
So just in /etc
-
RhodiumToad
poudriere ignores the one in /etc and only uses /usr/local/etc/poudriere.d/make.conf (and variations on that name based on jail name and porttree name)
-
RhodiumToad
man poudriere for the full details
-
RhodiumToad
you can configure options for individual ports with catname_portname_SET= and catname_portname_UNSET=
-
puddinghead
Cool!
-
RhodiumToad
read /usr/ports/Mk/bsd.options.mk for all the things you can define in make.conf
-
puddinghead
I guess I’ll start building my ports with poudriere then
-
puddinghead
I should start building the smaller packages i need in order to get used to it, right? Or can I just go config and build xfce immediately after pourdriere is done compiling lightdm?
-
RhodiumToad
up to you
-
spork_css
If anyone's got some input on this, it's welcome over here:
forums.freebsd.org/threads/hang-on-boot-12-4-not-12-1.89239
-
VimDiesel
Title: Hang on boot, 12.4, not 12.1 | The FreeBSD Forums
-
spork_css
I'm fully stumped.
-
puddinghead
RhodiumToad thanks a lot! Also, for reference, how long should some larger packages build on poudriere?
-
puddinghead
Such as Firefox and lobreoffice
-
RhodiumToad
depends on your cpu speed and whether you enable ALLOW_MAKE_JOBS
-
RhodiumToad
let me check my firefox build log, sec
-
RhodiumToad
my last firefox build took an hour
-
RhodiumToad
not sure how many cores that was on (I build in a VM and don't always allow it all cores), but probably 3 or 4
-
RhodiumToad
(of skylake i5-6500 @3.2GHz)
-
RhodiumToad
there may well have been other builds running at the same time though
-
puddinghead
I see… I have a ryzen 5800x and am running on bare metal
-
puddinghead
So it should be around 2-3 hours right?
-
RhodiumToad
also that's without using tmpfs and a little short on RAM, though usually these things are cpu-bound
-
puddinghead
I think it was around that, but on portmaster
-
RhodiumToad
that's just for the firefox port itself, obviously, not all the dependencies which can take a while themselves
-
_xor
I need to fix this crap. I upgraded my router (gateway) from 13.1-STABLE (1301506) to 13.2-STABLE (1302505) and cleaned up configuration files in the process. It has the typical WAN+LAN combo (wan0, lan0). I have an internal DHCP server as well for my LAN. wan0 gets two addresses: one that is DHCP-assigned by my ISP, and another one that I
-
_xor
statically assign. Problem is that at boot the router is works fine for a day, until it renews the DHCP lease on wan0, then it gets an internal address from my LAN DHCP server and stops being able to route properly. I can't remember how I fixed it before (I want to say it was either a rule in /etc/pf.conf or configuration block in
-
_xor
/etc/dhclient.conf, or maybe both), so now I'm trying to figure out a "proper" solution for it.
-
RhodiumToad
spork_css: you're booting from ufs, what partition type (MBR or GPT) are the boot drives?
-
_xor
Here are the approaches I can think of off the top of my head: A) Configure /etc/pf.conf to block broadcasting DHCPDISCOVER on lan0, B) Configure /etc/dhclient.conf to ignore lan0 when broadcasting DHCPDISCOVER, C) Configure my DHCP server to ignore DHCPDISCOVER from lan0 MAC address.
-
RhodiumToad
_xor: weird, the router ought to be trying to renew the lease from the same server before trying any other, I think
-
_xor
Oh yeah, true. That didn't even occur to me.
-
puddinghead
Yeah back when I tried portmaster I directly installed llvm and gcc just to cut down the compile times
-
_xor
Hmm, is that recorded in /var/db/dhclient.leases.whatever?
-
RhodiumToad
it shouldn't be sending DHCPDISCOVER after the initial boot
-
RhodiumToad
it ought to be, I think
-
RhodiumToad
let me check
-
RhodiumToad
puddinghead: rust is the other main time-consuming one, also it's not unusual to need several llvms
-
puddinghead
Yeah seems about right
-
puddinghead
But I guess since im already building lightdm I should just build xfce next isn’t it
-
puddinghead
All I want to do is to disable cups support, mousepad and a decent amount of the goodies
-
puddinghead
…although at that point im prob better off installing the goodies and extensions i want one by one
-
spork_css
RhodiumToad: gpt
-
_xor
RhodiumToad: So one thing I did during the upgrade is that I renamed my interfaces to be by convention, which in this case means em0 became eth0 and em1 became eth1 (I just called them wan0 and lan0 above to be clear). I just noticed there's /var/db/dhclient.leases.em0 and /var/db/leases.eth0.
-
spork_css
RhodiumToad: this is the same server we discussed a month or so ago, btw. :)
-
RhodiumToad
spork_css: what I'd do at this point is boot 12.1 and replace the partcode on the boot drive's freebsd-boot partitions with gptboot rather than gptzfsboot
-
_xor
RhodiumToad: I'm going to remove them and reboot anyway, but do you see that potentially tripping it up? Haven't looked at rc to see when netif manages the rename, but could it be somehow trying to load both?
-
RhodiumToad
spork_css: and see where that gets you
-
_xor
(brb, going to get disconnected, rebooting router)
-
RhodiumToad
spork_css: (it might just defer the hang until loader is running, but...)
-
RhodiumToad
spork_css: oh, it might already be in loader at that point. hmm. maybe replacing it with a non-zfs loader build would help.
-
spork_css
RhodiumToad: I just tested some additional ISOs and 12.1 boots fine, 12.2 boots fine, 12.3 ISO and 12.4 ISO both hang.
-
RhodiumToad
spork_css: how about 13.2 ?
-
spork_css
That's ambitous!
-
spork_css
RhodiumToad: going to boot 12.2 one more time because a message in the boot process looked interesting and I missed capturing a screenshot by a millisecond
-
puddinghead
I also noticed thwt thunar doesnt seem to have the volume manager plugin in xfce4-goodies
-
puddinghead
does this mean it domes with the default way thunar is packaged on freebsd?
-
spork_css
RhodiumToad:
i.imgur.com/FuyIW4X.jpg - this is interesting - the 12.2 loader is a bit more verbose. the zpool it's complaining about does not exist anymore.
-
RhodiumToad
puddinghead: I think thunar's volume manager is not supported on freebsd (depends on some linuxism)
-
puddinghead
I see
-
RhodiumToad
puddinghead: but that's from googling, I have never tried it myself
-
puddinghead
I’ve been struggling with moving my external hard drive’s contents to freebsd myself
-
RhodiumToad
how is it formatted?
-
puddinghead
Ext4
-
RhodiumToad
there's a fuse filesystem for ext* in ports (don't try and use the builtin one)
-
RhodiumToad
I suggest mounting it read-only in any case, for safety
-
puddinghead
Yeah I tried the builtin one
-
puddinghead
Said it needed journaling because of “huge files”
-
puddinghead
And yeah im gonna mount it read only
-
RhodiumToad
the builtin one supports ext2 fairly well I here, ext3 less so, and ext4 only barely (not well enough for usability)
-
RhodiumToad
so go with the fuse one
-
puddinghead
Seems about right
-
puddinghead
Surprised on why I didn’t back it up as ext2 back when I backed up my Linux stuff, and its just a 1tb drive
-
spork_css
RhodiumToad: and in 12.2 a "zpool import" shows me this, and I'm lost on where it's getting that pool info from (specifically "hdpool" which does not exist, the drives that it was on are gone, new, blank hds are in their place)
i.imgur.com/syhNYeP.jpg
-
RhodiumToad
spork_css: zfs's insistence on tasting everything means that it can discover labels for vdevs and zpools that are at different offsets from the real ones due to partitioning
-
RhodiumToad
e.g. da0 vs. da0p1 will have stuff offset by 40 sectors or whatever
-
RhodiumToad
are you sure that no disks from "hdpool" are on the system now?
-
spork_css
RhodiumToad: Guys went to the colo and pulled them yesterday, popped in new ones. I had them double-check, old ones were HGST, new are WD. I can re-re-check that they're WDs...
-
spork_css
RhodiumToad: also 13.2 booted fine. It had some messages during boot, trying to screen record now so I can actually read them
-
RhodiumToad
I'm pretty sure it'd be ok to steal 13.2's /boot/loader and use it
-
_xor
Not sure if it applies here, but I know ZFS keeps multiple copies of disk/partition metadata, so maybe that data is still there in other drives in the pool. I've had that happened to me before with similar results where it sees an old pool that's not there anymore. I think it's mentioned in one of the zfs-* man pages (though I just checked
-
_xor
zpool-labelclear and it doesn't have details) or maybe gpart.
-
RhodiumToad
zfs's assumption that it can discover everything by tasting is one feature that I'm not entirely comfortable with
-
puddinghead
Okay, finished building lightdm with poudriere
-
puddinghead
now how do I install the package
-
RhodiumToad
did poudriere say it was creating a repository?
-
_xor
RhodiumToad: Referring to feature flags or something else?
-
RhodiumToad
_xor: I mean things like device paths, partitioning, etc
-
_xor
oh
-
puddinghead
Yeah iirc
-
spork_css
RhodiumToad: this bit about zfs is on-screen for like 2 frames, but looks like the same error as 12.2
i.imgur.com/jVU3B5H.png
-
puddinghead
Just moved to that repository, what should be done after that?
-
RhodiumToad
puddinghead: whatever dir you configured poudriere to put the repo in is now a repo. You can configure pkg to use it by creating a file in /usr/local/etc/pkg/repos/*
-
RhodiumToad
or, you can use the quick and dirty way, and do pkg add filename.pkg
-
puddinghead
Damn
-
puddinghead
Does it come with any risks
-
RhodiumToad
no
-
RhodiumToad
it doesn't do the dependency graph stuff that pkg install does, but it doesn't clobber anything
-
puddinghead
So I can just use pkg add lightdm and nothing will go wrong right
-
puddinghead
Inside the directory where the pkgs are located in
-
RhodiumToad
the All/ subdir, yes
-
spork_css
RhodiumToad: I was also planning to use my unplanned downtime of this server to convert to zfs on root, it's one of 2 machines that I run that uses UFS. I think I'll try installing 12.2 w/zfs on root, then updating to 12.4 w/o replacing boot blocks and see what happens.
-
RhodiumToad
it will add any dependencies that are not already installed and which exist as packages in that dir
-
RhodiumToad
if anything fails, it won't do anything that can't be undone with pkg delete
-
puddinghead
RhodiumToad all/ subdirectory?
-
RhodiumToad
whatever, the directory with all the *.pkg files in
-
puddinghead
Yeah I found out
-
_xor
spork_css: What's bootfs set to on the zpool?
-
puddinghead
@RhodiumToad what’s the config you use for poudriere package autoinstall conf?
-
puddinghead
I feel like id rather do pkg autoremove than check every dependency manually after pkg add
-
RhodiumToad
when you do pkg add foo.pkg, then foo has its autoremove flag off, but anything that pkg add added as a dependency has the autoremove flag on
-
puddinghead
I see
-
RhodiumToad
pkg query -e '%a==0' '%n-%v %o' will list packages that have autoremove off, change to ==1 to list ones with it on
-
RhodiumToad
I personally do not use autoremove at all because I install using metaports, so almost everything gets %a==1
-
puddinghead
I see
-
spork_css
_xor: not sure because the pool doesn't actually exist. :) I have another pool of SSDs (I boot off UFS) and I'm booted into the 13.2 install DVD right now - is there a way without importing the ssdpool to query the bootfs property?
-
_xor
Not sure actually. I don't think so with zpool, but possibly with zdb (though I don't know how).
-
puddinghead
I am now building xfce
-
puddinghead
But I want to clean up the packages I dont need in order to free up space after installing them, what would y’all recommend me to do for that
-
RhodiumToad
honestly its usually easier to keep them
-
puddinghead
Yeah seems about right
-
puddinghead
And then update them right?
-
RhodiumToad
saves time if you need to rebuild anything
-
puddinghead
I c
-
puddinghead
Should I keep the /usr/ports folder I got when I first installed freebsd or nah?
-
RhodiumToad
poudriere will rebuild as needed, e.g. if you change options or update the ports tree
-
RhodiumToad
if you want to keep up to date, then you'll need to fetch the ports tree regularly
-
RhodiumToad
I don't know what options currently exist to do that, I personally do it with git
-
puddinghead
I see… if its through git, what do you use? Git pull?
-
RhodiumToad
yes
-
puddinghead
So its just git pull then some command to tell poudreire to update everything in bulk
-
RhodiumToad
clone the ports tree (shallowly if you like), checkout the main branch or the latest quarterly branch, and pull as needed
-
RhodiumToad
if you then run poudriere with a list of your desired ports, it'll rebuild anything that changed (and only that)
-
RhodiumToad
(though it'll also rebuild dependents of anything that changed)
-
puddinghead
I see
-
puddinghead
How I could automate the list of desired ports though
-
puddinghead
Im too lazy to check manually
-
RhodiumToad
put a list of the ports you actually want to use in a file and use that :-)
-
puddinghead
I see
-
puddinghead
Thanks
-
puddinghead
Where can I find the oorts tree poudriere uses though? I think ive forgotten it
-
puddinghead
The same main directory the jails are located it
-
RhodiumToad
poudriere uses whatever you specified with poudriere ports
-
puddinghead
I see
-
puddinghead
So its a conf file thing
-
RhodiumToad
poudriere ports -l will list ports trees known to poudriere
-
RhodiumToad
or -lv to see more detail
-
RhodiumToad
poudriere ports actually has an option to get the tree from git
-
RhodiumToad
in which case I assume poudriere ports -u will do the pull for you (haven't checked)
-
meena
yes, it does
-
» RhodiumToad grumbles at the apparent lack of a good API to find the highest fd currently open
-
_xor
Heh, I had a one-liner somewhere that used lsof + miller (or frawk?) to spit that out.
-
meena
caveat: poudriere does a shallow clone. if you force push to your ports repo, it'll unshallow it
-
_xor
There's a switch to change that too.
-
satanist
why want you know the highest fd currently open?
-
RhodiumToad
I'm improving on posix_spawn. part of that is a higher-level wrapper that, amongst other things, defaults to closing all open fds > 2 except as specified by a list of fds to process otherwise
-
RhodiumToad
what I want is a way to put a size bound on that list, without limiting the ability to inherit an fd which is (a) currently open, and (b) above the current fd soft limit
-
RhodiumToad
(just closing the fds is not an issue, we have closefrom and close_range for that)