-
rwp
I also have had problems with the gtk toolkit and used the lucid widgets with emacs.
-
rwp
Until I switched back to the emacs-nox version full time. I did that and no longer have widget toolkit problems. :-)
-
rwp
meena, I think I understand the snags I hit if I am not a member of wheel.
-
rwp
I see that the wheel group restriction applies to su as described here.
freebsdwiki.net/index.php/Wheel
-
VimDiesel
Title: Wheel - FreeBSDwiki
-
rwp
When I install a fresh installation I have the base /usr/bin/su installed. If I log in as rwp and am not a member of wheel then I cannot su to root.
-
rwp
And if I cannot su to root then I cannot pkg install anything. Cannot install sudo for example.
-
rwp
Can log into a vt console as root and then as the root logged in user install pkg ports and sudo and such.
-
rwp
But I prefer to log in as me, rwp, and then use "su -" to become root as needed. And for that I must be in the wheel group.
-
rwp
But I think your point was that sudo does not have that same wheel restriction that su has.
-
rwp
True. But I can't get sudo installed yet without it (or logging in on a vt console as root) and so it feels very limiting without it.
-
rwp
Also I like to be able to read the /var/log/* files without needing to become root. Those are mostly group wheel.
-
rwp
So again being in the wheel group removes a limitation that otherwise is limiting by design, but feels frustrating.
-
jld
rwp: you're right about wheel and su(1).
-
jld
The su(1) man page says: "In particular, by default only users in the 'wheel' group can switch to UID 0 ('root')."
-
jld
This may feel frustrating in some sense, I guess, but on a multi-user system, you probably want some way to restrict which users can become root.
-
jld
One simple way to do that is to require membership in a particular group, in this case "wheel."
-
jld
The man page further says: "This group requirement may be changed by modifying the “pam_group” section of /etc/pam.d/su. See pam_group(8) for details on how to modify this setting."
-
jld
So if you'd like it to work some other way, you can probably arrange that.
-
rwp
jld, The wheel group is a designed in restriction that is debatable if it is needed or not.
-
rwp
I mean, we are debating it right here and now! So clearly it is debatable. :-)
-
jld
I am not debating it ;-) I am just describing it.
-
rwp
The System V "I grew up on" didn't have a wheel group policy. And so I don't have this baked in feeling that it is needed.
-
jld
I no longer remember how things worked on unixes I used before freebsd
-
rwp
Mostly I was describing it too. Because earlier in the scroll-back we were discussing if being a member of wheel when installing a new system is needed or not.
-
jld
well, I remember how some things worked, just not whether, or if so, how, the ability to become was or wasn't restricted
-
rwp
I will say that when installing FreeBSD and at install time creating a user "rwp" that for me it is needed to add rwp to wheel or I won't be happy after I log in and try to "su -" to become root to "pkg install $bunchofstuff"
-
jld
that's true
-
jld
long-time habit for me is to add my account to wheel during installation
-
jld
anyway, you seem clear on how it works so I'll leave it there
-
rwp
jld, Thanks for jumping in! Relatively speaking I am a newcomer to modern FreeBSD. But have used BSD in the past many years before.
-
jld
rwp, happy to chat. maybe we'll cross paths here again sometime
-
nekobit
daemon: i deliberately wanted to set options with my package
-
nekobit
a binary wont suffice
-
nekobit
so i installed gcc for something, but it didn't include header files to compile something. now i deleted it, but the port i was building (emacs) still sees a shared object file
-
nekobit
i used pkg delete gcc
-
nekobit
but.. it didn't apparently completely delete
-
nekobit
i noticed /usr/local/lib/ had a gcc directory, no clue if that was there before
-
concrete_houses
trying to mount windows disk on freebsd 13.1
-
concrete_houses
ntfs-3g not working
-
nekobit
is this safe to remove? is it a "bug" that i could fix maybe?
-
concrete_houses
fuse: failed to open fuse device: No such file or directory
-
parv
nekobit, Do you have another gcc installed? Check via: pkg info -x gcc
-
nekobit
gcc11-11.3.0_5
-
nekobit
hmm, i see
-
nekobit
oh, is that an old version?
-
rtprio
concrete_houses: what full command line did you use?
-
nekobit
concrete_houses: kldload fuse
-
nekobit
add
-
nekobit
fusefs_enable="YES"
-
nekobit
to /etc/rc.conf
-
rtprio
nekobit: one of the ports you build probably required it
-
parv
nekobit, Could have been installed for some package/port
-
rtprio
nekobit: one of the ports you built probably required it; probably safe to remove.
-
nekobit
hmm, so
-
nekobit
`pkg install gcc' reports that i can install it (11_4)
-
parv
... until (that version) is required again
-
nekobit
`pkg install gcc11` reports that it's already installed
-
nekobit
sudo pkg upgrade doesn't report gcc being upgraded
-
nekobit
im on FreeBSD 14 fyi
-
rtprio
nekobit: are you trying to figure out why it was installed?
-
nekobit
yeah
-
nekobit
but im also wondering what the difference is
-
nekobit
`pkg info gcc` reports nothing, so i assume it's an alias or something
-
nekobit
(it is)
-
nekobit
what is going on here?
-
rtprio
the package name is gcc11; the one named gcc could be a diffrent version
-
nekobit
gcc doesn't exist according to pkg info
-
rtprio
grep pkg /var/log/message and look at the order that the packages were installed
-
rtprio
something picked gcc11 as a dependancy
-
nekobit
Dec 3 20:46:18 toomuchram pkg[36027]: gcc11-11.3.0_5 installed
-
nekobit
Dec 3 20:46:18 toomuchram pkg[36027]: gcc-11_4 installed
-
nekobit
Dec 3 20:50:35 toomuchram pkg[42932]: gcc-11_4 deinstalled
-
nekobit
so i did lol, idk whats up here
-
rtprio
or go to the port you just built and run make build-depends-list
-
rtprio
or just delete gcc11 and get it out of your mind
-
nekobit
/usr/ports/lang/gcc11
-
nekobit
oh yeah, well i was compiling gcc11, never finished it. i scratched it
-
» rtprio shrugs.
-
nekobit
ok, deleted it
-
nekobit
rtprio: okay... its gone
-
nekobit
i assume that the gcc11 installed multiple little packages?
-
nekobit
it was still compiling stuff for gcc11
-
nekobit
it considered gcc11 installed
-
rtprio
i don't think so
-
nekobit
weird, i guess i can't provide a full answer now
-
rtprio
i have it too; i wonder why it was installed
-
nekobit
why was gcc and gcc11 a thing?
-
nekobit
oh, now it's not
-
nekobit
the port is called gcc11, the pkg is called gcc
-
nekobit
is there a reason for that ambiguity?
-
rtprio
if you look in /usr/ports/lang you'll note there are many gcc versions
-
nekobit
ok well, motif was buggy for emacs too
-
nekobit
trying Xaw3d
-
nekobit
speaking of, does `make config' usually force a recompile whenever i do `make' again?
-
nekobit
this is my first port ive compiled so far...
-
rtprio
it does not; you'll need to uninstall, make clean and make again
-
nekobit
alright, thanks
-
nekobit
i didnt do the uninstall part, hope that's fine. thanks for answering my questions mate
-
nekobit
are u a dev?
-
rtprio
well, it won't you install the new one until you remove the old one
-
rtprio
no, i've just used freebsd since 1998
-
nekobit
fair lol
-
rtprio
or 1999
-
nekobit
you mean it wont uninstall, say, the motif toolkit? makes sense to me.
-
concrete_houses
I have 2 drives pulgged into usb 3 and transfer running about 25MB
-
concrete_houses
seems slow both drive rated 400M
-
rtprio
nekobit: also, yes, it won't uninstall the motif toolkit. but it also won't uninstall the emacs built for motif until you tell it to
-
nekobit
i just ran `pkg uninstall open-motif' for now
-
nekobit
probably didn't cleanup the open-motif build stuff, but its fine
-
nekobit
seems Xaw3d as exactly what i wanted :-)
-
concrete_houses
da1: 400.000MB/s transfers
-
concrete_houses
da0: 400.000MB/s transfers
-
concrete_houses
why am i only getting 25MB
-
concrete_houses
using rsync?
-
nekobit
with fuse. right?
-
concrete_houses
yeah
-
nekobit
fuse is just slow on fbsd
-
concrete_houses
fooookkk
-
rtprio
usb drives are just not great
-
concrete_houses
I want the speed!!!
-
nekobit
enjoy the wait
-
concrete_houses
:(
-
concrete_houses
I torrented 24 season 1-8
-
concrete_houses
aw yeah
-
concrete_houses
I want same show but with swirds or lightsabers
-
mictty
you write driver
-
concrete_houses
or naginatas
-
rtprio
concrete_houses: cool. welcome to 2001.
-
concrete_houses
I should convince room mate to get rid windows
-
concrete_houses
and watch movies in sitting room all bsd
-
rtprio
nekobit: the emacs port selects gcc11 as a compiler, fyi
-
concrete_houses
I wana go abck to 2001BC
-
nekobit
rtprio: yeah i saw that
-
nekobit
when i switched away from gentoo to freebsd recently, i used ext2 on a drive for backups thinking "oh well it should support my drive, ext2 might be common", the native ext2 module didn't work at all, had to use fuse, took 2 days
-
concrete_houses
so if I have another usb drive with UFS
-
concrete_houses
I will get great speed?
-
nekobit
you should yeah
-
concrete_houses
sweet
-
concrete_houses
I am comign from archlinux
-
concrete_houses
wich is freebsd biggest rival I thnk
-
rtprio
congrats
-
concrete_houses
slightly more up to date binaries
-
rtprio
i don't know about that
-
nekobit
?
-
concrete_houses
bsd needs let fookery with audio adn xorg screen size i notice
-
concrete_houses
less
-
concrete_houses
archlinux has very up to date binaries in is pcakcger
-
rtprio
xorg screen size works fine, i don't know what you're on about
-
concrete_houses
and supports smalltlk liek pharo.org
-
concrete_houses
now i think freebsd did beat it on a latest postgresql binary one time so i looked bad sayign that one time
-
concrete_houses
bsd is better than arch with x and audio
-
concrete_houses
way better
-
concrete_houses
archlinux is pain in nads
-
concrete_houses
but once its confige
-
nekobit
bsd != freebsd fyi
-
concrete_houses
rolling release adn little more upt to date software
-
concrete_houses
good point
-
concrete_houses
fbsd
-
mictty
only survived non-feature-emphasized bsd?
-
mictty
sufficiently freebsd is the bsd
-
concrete_houses
have you ninjas run freebsd on live sites with heavy transactions?
-
nekobit
yeah yeah, history n stuff, i can't keep up with that
-
concrete_houses
I heard some of the busiest sites run fbsd
-
nekobit
but nowadays it seems applicable to separate them since it can be several things is what im saying
-
nekobit
uhh, with the babble: I hopped over to FreeBSD for development purposes since I like UNIX-y and POSIX-y stuff, i've always used BSD-like distros. I've used FreeBSD around 3-4 years ago when i was younger, so glad to be back again
-
nekobit
would also be cool to contribute to FreeBSD once i get more experienced
-
mictty
concrete_houses: iv never had heavy traffic
-
mictty
concrete_houses: i was asked once by intel junior engineer in the interview. I told him I would then look around aws pre-designs for stuffs like load-balancing
-
mictty
concrete_houses: I think he said something like I am wrong
-
mictty
concrete_houses: I smelled weird so I asked about LAMP
-
mictty
concrete_houses: He said he does not know what LAMP is
-
mictty
concrete_houses: I got rejected. old memory
-
nekobit
intel interview?
-
mictty
yes this year
-
nekobit
>old memory
-
mictty
yes because I think I applied hundreds after that
-
nekobit
makes sense
-
mictty
it does not make sense. I think it is recent memory you're correct
-
nekobit
i mean it make sense why you said old memory lol
-
nekobit
such are the cases for job interviews
-
mictty
in terms of bsd, maybe it is more difficult for initial interviews
-
mictty
I was never asked any single thing about bsd even if I put it in my resume in the past
-
mictty
I think they really don't know what to ask. this is what i guess
-
Fudge
what is the package for hald called?
-
mictty
Fudge: hal for embedded?
-
mictty
Fudge: what is that
-
Fudge
hald is needed for xorg
-
Fudge
as in /etc/rc.conf hald-enable="yes"
-
Fudge
is that right? dbus, hald are needed to start xorg?
-
parv
I do have not "hald" for Xorg
-
parv
perhaps something else needs that🤷♂️
-
Fudge
oh right
-
parv
Firefox cannot work without dbus
-
mictty
-
VimDiesel
Title: FreshPorts -- sysutils/hal: Hardware Abstraction Layer for simplifying device access
-
mictty
nekobit: actually I didn't get rejected right away. I was asked to make a presentation slides for all my projects in my resume and send it to them. I did it and sent them. Then, I got rejected.
-
mictty
parv: hello
-
parv
mictty, Hi there
-
concrete_houses
I am sick of being a janitor for retard MBA
-
concrete_houses
MBA really are scum of the earth my grandpa is right
-
concrete_houses
may he rest in peace
-
concrete_houses
its so insulting when a tard who doesnt know how to do stuff is put in contorl of a proejct doesnt plan it well then calls you in to work some magic is the huge crap plastered mess they have crated
-
parv
concrete_houses, Could you go to #freebsd-social for your ranting needs?
-
concrete_houses
i am convinced more than ever that usury is the culprit and sql database is just a thing to anchor you to a product even postgres its hell to update later I think files and whatever alnguage win
-
concrete_houses
oh ok
-
concrete_houses
is there any way to speed up chrome?
-
concrete_houses
like is there any kind of cacheing i can turn on?
-
concrete_houses
I remember running squid one time.... like html file cache
-
concrete_houses
bsd has a better one wahts it called again
-
concrete_houses
varnish?
-
mictty
concrete_houses: if you do similar things over and over it goes fast due to jit's nature
-
mictty
concrete_houses: if you do similar things over and over it goes fast due to jit's nature
-
mictty
concrete_houses: I think I leared today
-
mictty
concrete_houses: I don't have MBA person near me but it sounds no good.
-
nekobit
is it fine to use a system i installed as a jail with chroot?
-
nekobit
considering i deleted the jail
-
nekobit
jail was overkill and i was having issues configuring it, i just need it to run a project for development
-
nekobit
i installed with `bsdinstall jail /to/path'
-
nekobit
what does the `jail' bit actually do here? man page just says "suitable for use"
-
nekobit
hmm, according to /usr/libexec/bsdinstall/jail, looks like it does a full on installation
-
nekobit
would've thought it was more of a regular install to a directory, with some `jail' commands slapped on
-
nekobit
umm, there isn't actually a mention of the jail command here at all...
-
nekobit
(or any words that say "jail", fact of the matter)
-
nekobit
isn't this just a "install to directory" step? why is it called a "jail" script? is this just a bad design choice?
-
nekobit
bare in mind im a new user, so idk if there is a reason or not truly
-
RhodiumToad
the 'jail' option just has it not do disk partitioning or install a kernel
-
RhodiumToad
otherwise it's a normal install
-
nekobit
i get that, i'm mostly peeved at the naming here
-
nekobit
this is perfect for chroots
-
RhodiumToad
in most cases you should use jail rather than chroot
-
nekobit
in most cases indeed, im leaving out i want a regular chroot
-
RhodiumToad
don't forget that you need to mount a devfs inside the jail/chroot tree
-
nekobit
i used a jail initially, but i found it was overkill when i had troubles configuring it for networking. i really just need a chroot. im doing local development
-
RhodiumToad
and you should in general make it a very limited devfs, using the provided set of rules for jails
-
nekobit
i agree for other use cases, but im really not itching security at all here
-
nekobit
this is to locally deploy a package i regularly develop for without installing postgres and all that shtuff
-
nekobit
onto my main system
-
RhodiumToad
well, the devfs isn't optional either way, and adding -o ruleset=4 is very easy
-
nekobit
oh.. yeah that makes sense
-
nekobit
whats the -o ruleset=4 for?
-
RhodiumToad
see /etc/defaults/devfs.rules
-
nekobit
didnt know about all this
-
RhodiumToad
basically mount -o ruleset=4 devfs /path/to/chroot/dev
-
nekobit
yeah yeah
-
nekobit
silly question but
-
nekobit
add path stdin unhide...
-
nekobit
how did i manage to mount the chroot while this is still set?
-
RhodiumToad
that exposes /dev/stdin
-
nekobit
yeah i get that
-
RhodiumToad
while what is still set?
-
nekobit
i mounted the chroot, stdin exists no if im running tcsh in the chroot?
-
RhodiumToad
the rule refers to the specific name /dev/stdin
-
RhodiumToad
most stuff runs most of the time when devices are missing, but the failures from things like missing /dev/null can be very weird
-
nekobit
does... say `printf()' not use /dev/stdin?
-
nekobit
am i getting that right?
-
RhodiumToad
(it's not like a certain OS I could mention when missing /dev/zero would stop you running any dynamic binary)
-
RhodiumToad
printf uses the already open stdin, it doesn't need to look up the name
-
nekobit
(i mean stdout)
-
nekobit
that's hurting my brain a bit...
-
RhodiumToad
having a /dev/stdout just allows programs to create a duplicate of their existing stdout descriptor by doing open("/dev/stdout"...)
-
RhodiumToad
don't worry about them, just note that some programs rely on things like /dev/fd/* or /dev/null
-
nekobit
i know, its just a curiousity thing while im here
-
nekobit
i would assume, say i create a virtual terminal with a terminal emulator (obviously?), that would have to poke /dev/stdout?
-
nekobit
right?
-
RhodiumToad
not usually
-
RhodiumToad
in fact, the most common use of it is probably interactively, where you want to pass stdin/stdout to a program that expects a filename
-
nekobit
ah that makes sense
-
nekobit
thx for answering unrelated questions mate
-
RhodiumToad
I think bash wants to use /dev/fd/* for command redirects like <(somecommand) but it needs fdescfs mounted for that, just the default /dev/fd/{0,1,2} isn't enough
-
nekobit
i think that will require extra reading for me
-
nekobit
anyway. maybe though, a good first contribution to freebsd would be to make the "jails" command for bsdinstall an alias...? that really bothers me for some reason
-
nekobit
and change the "jails" to something like "install-path" (or remove it entirely, and add a special case if it detects a path i.e. bsdinstall /my/path)
-
» RhodiumToad not really the person to talk to about that
-
nekobit
haha
-
nekobit
i do appreciate the mounting devfs bit, almost would've forgot and had some troubles
-
nekobit
off to sleeps
-
» RhodiumToad forgets that so many times
-
nekobit
im glad i hopped over to the bsd's, feels nice getting assistance on the tighter things and not just "how 2 install a package?"
-
nekobit
er, well i assume thats more of a supporting-role issue, so nevermind
-
» nekobit is still the noob though
-
RhodiumToad
we were all once noobs
-
RhodiumToad
though admittedly in my case that was back in the days of floppy disks
-
RhodiumToad
the availability of online help has improved massively since then :-)
-
nekobit
yep yep
-
nekobit
it was seemingly a gateway drug for me, i _only_ used all the bsd-like distributions on Linux
-
concrete_houses
chrom esp youube is sloooowww
-
concrete_houses
facbook and twitter also slooooowww
-
RhodiumToad
you might look at the memory usage
-
meena
00:52 <jld> This may feel frustrating in some sense, I guess, but on a multi-user system, you probably want some way to restrict which users can become root. ⬅️ even a single human user system will have multiple users, daemons, who do jobs for you, run services for you, and hopefully don't have any big bugs so that when they run rogue, they
-
meena
can exploit your system
-
melty
Isnt that what wheel and sudo is used for?
-
melty
I am not too familiar with Freebsd
-
melty
Its how it works in Arch
-
yo9fah
hi all
-
yo9fah
Can I install previous versions of FreeBSD? FreeBSD 12.1 for example.
-
parv
Get the right image or use the source
-
yo9fah
ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/ISO-IMAGES/12.1/FreeBSD-12.1-RELEASE-amd64-bootonly.iso
-
yo9fah
is ok?
-
yo9fah
I want to Compile the DRM Module.
-
yo9fah
at last I executed the #startx. But failed.
-
yo9fah
(EE) open /dev/dri/card0: No such file or directory
-
yo9fah
(WW) Falling back to old probe method for modesetting
-
yo9fah
parv: thanks
-
parv
Seems like the correct 12.1 image from here
-
parv
What king of GPU do you have?
-
parv
s/king/kind/
-
yo9fah
Lenovo B50-80
-
yo9fah
Mobile DualCore Intel Core i5-5200U, 2700 MHz (27 x 100)
-
parv
In other are you saying that you have a Intel (integrated) GPU?
-
yo9fah
M =8G
-
yo9fah
yes
-
yo9fah
intel
-
yo9fah
-
VimDiesel
Title: Solved - FreeBSD 12.2 startx failed '(EE) open /dev/dri/card0: No such file or directory' | The FreeBSD Forums
-
yo9fah
lol
-
parv
yo9fah, Is a drm-kmod package not available your OS version?
-
parv
Damn! Reverted to previous version
-
yo9fah
Is a drm-kmod package not available your OS version?
-
yo9fah
pff
-
yo9fah
sorry
-
yo9fah
I ran #startx but failed. after installation.
-
yo9fah
I installed freebsd 13, 14... and I get the same result
-
parv
I remember seeing a mention of needing to add a small Xorg configuration file
-
yo9fah
So, I try the method from the forum. Thanks again for help
-
yo9fah
I will come back later
-
parv
You may be better off with 13 or 14 in terms of support from kernel modules for GPU from drm-kmod port
-
parv
Is (START)TLS now the default in 14 for sendmail to send out mail (on to relay host)?
-
parv
I ask for I had to set "Try_TLS:<relay host> NO" in 14 in mail/access but none has been needed in 13.
-
parv
-
VimDiesel
Title: sendmail - How to turn off STARTTLS for internal relaying of emails? - Unix & Linux Stack Exchange
-
yo9fah
parv: I installed freebsd 12.1, but towards the end it doesn't download my packages. It says it can't access the mirror.
-
yo9fah
Then I installed freebsd 12.4. The installation went well until I started to compile drm-fbsd12.0-kmod.
-
yo9fah
It stopped the compilation because it could not find the kernel source
-
yo9fah
So, I give up. I haven't found anything to solve it...
-
debdrup
That version of FreeBSD in unsupported.
-
debdrup
12.1 I mean.
-
parv
Have you collected FreeBSD source, stored by default in /usr/src: If not use "git" (or "gitup") to fetch it
-
yo9fah
Ahhh, I have one more try. I found something like this on the forum: drm-fbsd13-kmod is gone (in favor of drm-510-kmod)
-
debdrup
And yes, drm-kmod will require source headers in /usr/src/
-
parv
s/:/?/
-
debdrup
Don't use drm-fbsd13-kmod or drm-510-kmod, just use graphics/drm-kmod.
-
debdrup
It's a meta-port that can detect which version of FreeBSD you're using and install the right one.
-
yo9fah
i installed pkg drm-fbsd12.0-kmod , but it did not work
-
yo9fah
debdrup, thanks.
-
yo9fah
I will try this too
-
parv
See "git" use at
docs.freebsd.org/en/books/handbook/mirrors/index.html#git ; use it so : pkg install git && mkdir -p /usr/src && git clone
git.FreeBSD.org/src.git /usr/src
-
VimDiesel
Title: Appendix A. Obtaining FreeBSD | FreeBSD Documentation Portal
-
yo9fah
Thank you for your kindness.
-
parv
After that make sure you have right branch for your setup: cd /usr/src && git checkout releng/12.4 (or "stable/12.4", etc)
-
parv
s/stable/stable/ # yikes
-
parv
... wait that was correct but seemed wrong🥴 time to go it seems
-
yo9fah
Doooh, at the end it stops and asks for linux:
pasteboard.co/HgcbJujJlhsn.jpg
-
VimDiesel
Title: Pasteboard - Uploaded Image
-
yo9fah
I think I have to change the laptop. :D
-
rwp
Babaj, (meena) > "You can specify specific user names in the sudo configuration file." Yes, but, you can't use su to install sudo or to edit files until you are in the wheel group. It's a "Catch-22" circular dependency.
-
rwp
Setting the wheel group at install time allows the user to log in and then use "su -" to become root in order to "pkg install sudo" and then to modify files.
-
rwp
After that point one can modify sudoers in any way they wish and the wheel group is not needed for sudo.
-
Babaj
rwp: This is possible. I'm not sure. It seems that the "su" used to work without adding a user to the wheel group.
-
rwp
Without being part of the wheel group the only option I can see is to log into the vt console as root.
-
rwp
-
VimDiesel
Title: Wheel - FreeBSDwiki
-
rtprio
Babaj: i think you're thinking of linux; you don't need to be in group 0 to su on linux
-
rtprio
it has always been this way
-
rwp
It's humorous but I keep remembering a talk by rms given back in 1986 that I read more recently where the wheel group is mentioned as part of his motivation.
-
rwp
Search this for "wheel" and you will see the part I am talking about
gnu.org/philosophy/stallman-kth.en.html
-
VimDiesel
Title: RMS lecture at KTH (Sweden), 1986 - GNU Project - Free Software Foundation
-
Babaj
rtprio: No, I was talking about FreeBSD. Perhaps you are right. You've convinced me.
-
rwp
In say Debian the gid 0 group is "root" not "wheel" as in BSD and in Debian et al has no special significance.
-
rwp
In Debian et al /var/log/* files are group "adm" so adding one self to "adm" allows reading /var/log/* without root similar to being in wheel does for FreeBSD.
-
rwp
In Debian et al the default sudoers file uses a "sudo" group is used more similarly to wheel for sudoers as a default to give sudo access.
-
rtprio
but that's just something the sudo debian package maintainer thought would be a good idea
-
rwp
Agreed.
-
rwp
It's called "negative transference of learning" when things are similar but different among different systems and one applies something learned on one to another but it is different on the other.
-
jgh
the group name "wheel" goes back to at least TOPS-10 (DEC, 1970's)
-
rwp
Those people were big wheels then.
-
rwp
But it isn't just the util-linux package su as Unix su and System V su did not use wheel, and so commercial systems like HP-UX did not use wheel either.
-
rwp
jgh, It was probably someone at DEC then that originated the concept of a big wheel group. Probably.
-
rwp
Bringing that back to today it means that installing FreeBSD and setting up the user account it is good to add that account to wheel in the installer.
-
rwp
In order to gain access to "su -" in order to be able to do further things.
-
CCFL_Man
if i creat a single drive zfs pool and replace the drive's interface (say from a usb sata interface to a sata sas interface, can i simply use the same physical drive like i was doing?
-
mason
CCFL_Man: I can imagine you might need to re-import it after a scan.
-
mason
CCFL_Man: The only real obstacle I can envision is if the new interface presents it as a 4K drive where the old presented 512K or vice versa.
-
CCFL_Man
i suspect that, but say if i expend my pool from a single drive vua usb to multiple via sas
-
CCFL_Man
oh, this is abn old 3GB sas controller
-
mason
CCFL_Man: You might be able to just do the swap and see if it presents any challenges in particular.
-
rwp
I believe you can always plug a SATA disk into a SAS/SATA controller. The reverse is blocked by the keyed socket.
-
mason
I think I had something like that happen once when moving from USB to non-USB or vice versa.
-
mason
Yeah, SATA into SAS is fine.
-
rwp
USB interfaces are mostly awful and there is much buggy USB hardware. It's often the source of weird problems.
-
mason
I moved to a SAS shelf largely owing to the inadequacies of USB. And then the system moved from Debian to FreeBSD thanks to
bugzilla.kernel.org/show_bug.cgi?id=209177
-
VimDiesel
Title: 209177 – mpt2sas_cm0: failure at drivers/scsi/mpt3sas/mpt3sas_scsih.c:10791/_scsih_probe()!
-
rwp
I should say for USB Storage. USB Storage is awful. Strangely but USB Network devices have been very solid and reliable for me.
-
CCFL_Man
but in the end, the drive should be seen the same whether on a usb or sas interface?
-
mason
CCFL_Man: It could present with a different native block size.
-
CCFL_Man
because i wanted to move some data to a new drive that would be part of a single device zpool
-
CCFL_Man
ahh
-
rwp
It will have a different /dev path to the new device.
-
CCFL_Man
yes, and a different /dev path
-
rwp
If things were set to use a 4K sector size then it will work for either. That's why we universally set things up with 4K sector sizes now for everything.
-
mason
Good call.
-
CCFL_Man
so it should be set up to 4k sector size and i can move from usb to sas and still keep my data?
-
rwp
Yes. And you can ask zfs what sector size is configured. (If I or someone can remember the command for it.)
-
mason
rwp: ashift, isn't it?
-
rwp
The current system's default can be queried: sysctl vfs.zfs.min_auto_ashift
-
rwp
And set: sysctl vfs.zfs.min_auto_ashift=12
-
» CCFL_Man writes this down
-
mason
CCFL_Man: You can look at the current ashift on a pool with zdb.
-
CCFL_Man
i don't have the pool defined yet
-
rwp
If you have not created the pool yet then best is to create the pool on the SAS/SATA controller and then you won't have to worry about exporting/importing it.
-
rwp
If you are running a recent FreeBSD 12 or later system I think the default is now ashift=12 4K sectors. (Since FreeBSD 10.1 my archeology says.)
-
rwp
Meaning that now we are compelled to check that it is 12 out of paranoia that we don't accidentally create a pool on a 512-byte sector disk.
-
rwp
But that it only needs to be set once before creating one or more pools and all will be 4K sectors then.
-
rwp
CCFL_Man, Hint: List attached disk names: sysctl -n kern.disks
-
rwp
CCFL_Man, Hint: List disk information: diskinfo -v /dev/ada0
-
rwp
That /dev/ada0 is likely /dev/da0 for your SAS/SATA controller.
-
rwp
CCFL_Man, Hint: I prefer smartctl information though: smartctl -I /dev/ada0
-
rwp
Drat my "i" -> "I" macro got me. Should have been: smartctl -i /dev/ada0
-
rwp
CCFL_Man, Hint: FreeBSD also supports this which is useful: camcontrol devlist
-
rwp
The smartctl command is in the "pkg install smartmontools" package.
-
CCFL_Man
rwp: i don't have the sas disk shelf yet, that's why i was asking. i have a drive that is failing and i want to copy the data to a new drive but it'll have to be a usb sata adapter for now until i get the disk shelf
-
concrete_houses
Filesystem Size Used Avail Capacity Mounted on
-
concrete_houses
/dev/da0p2 5.3T 787G 4.1T 16% /
-
concrete_houses
6t disk
-
concrete_houses
says size 5.3T
-
concrete_houses
using 787g but avail 4.1T?
-
concrete_houses
wtf
-
concrete_houses
where is my 5.3 - (4.1+.787)
-
concrete_houses
ufs
-
nacelle
welcome to basic computer filesystem operations :-) everything has overhead!
-
BarnabasDK
concrete_houses, more detailed, your 787g of data needs an index in order for the filesystem to keep track of the different files and the blocks, that they contain. Also you are probably running journaling etc. All of which takes up space outside whats directly allocated by the files you store
-
rwp
concrete_houses, If that is a fresh install then the installer will have set up swap as well. Hint: swapinfo -g
-
rwp
Also: gpart show da0
-
rwp
Oh, "swapinfo -h" prints nice human readable sizes.
-
rwp
concrete_houses, Also I think you are seeing the file system "minfree" settings.
-
rwp
File systems have a minimum amount of free space required to operate. Non-root processes can't consume that minimum free space. So df is not reporting it.
-
rwp
The disk becomes reported as 100% when the non-root consumable space is consumed.
-
rwp
The root user is allowed to consume even the minfree space. But this causes the file system performance to become awful.
-
meena
do we have something like GNU's free, for showing RAM? i find top's memory output awfully hard to read
-
rwp
See "man newfs" and "man tunefs".
-
rwp
meena, I like "htop" very much for the bar graphs it presents.
-
rwp
concrete_houses, Also note that computers use powers of 2 sizes (2^10 = 1024 = 1K) but disk vendors report in powers of 10 sizes.
-
rwp
Which for small quantities is little difference. But for large 6,001,175,126,016 bytes for a vendors 6T disk will be only 5.5 in 1024 powers of 2.
-
meena
rwp: I find htop bad on not-linux systems
-
meena
it relies on `/proc` or did so until very recently
-
rwp
I do not have /proc mounted.
-
rwp
Try this: sysctl hw | grep -e ^hw.physmem -e ^hw.usermem -e ^hw.realmem
-
rwp
I also see it reported in the boot log: grep memory /var/run/dmesg.boot
-
rwp
FreeBSD top shows ZFS ARC and other data but htop does not.
-
meena
yeah, I just find that hard to read while everything is hopping around
-
meena
I find reading hard on general, but if everything is moving too, it's not why easier
-
meena
maybe vmstat(8) might be easiest
-
rwp
vmstat! That's an option I had forgotten about. I always use it for rates of paging (such as when swapping).
-
rwp
meena, If the htop colors are annoying (I don't know) then try it with TERM=vt100 or with htop --no-color.
-
rwp
Example of how I read the bar graph though: Mem[|||||||||||||||###############******************************* 753M/3.82G]
-
rwp
The "|" chars represent pages used for userland processes, "#" for I/O buffers, "*" for file system cache, and " " for unused memory.
-
rwp
And of course the color version has them in different colors. I find the htop memory bar graph very useful to quickly see what a system is doing.
-
rwp
That's actually from a Debian system because my FreeBSD system looks extremely boring with everything as file system buffer cache.
-
rwp
But I guess that means I don't know if it is really functioning on FreeBSD.
-
rwp
meena, Is the "sysctl hw | grep '^hw.*mem:'" data useful? Or still much too much of a raw data dump?
-
yuripv
it would be nice to have regex support in sysctl output
-
rwp
I rather like using grep on things even if they have built in regex. Because *grep works with everything*.
-
rwp
I almost never use "pkg search -x '^foo.*bar'" and almost always pipe that to grep.
-
nacelle
i've become addicted to ripgrep lately