-
thegman
is using a freebsd desktop as a router as well as a desktop an option
-
thegman
or does the router have to be in a vm
-
debdrup
If you use vimage to give a jail its own network interface, you can probably do routing there just fine.
-
debdrup
I've often had the thought of combining router+switch+HTPC+network storage+workstation into one machine, but it's not really doable as the sort of machine that can do all of those things without one or more of them bogging down things would be the sort of machine that'd end up using quite a bit of power.
-
thegman
i tried putting opnsense in a vm but i couldnt get it working for the life of me
-
thegman
i hit a wall when i got to setting up a virtualized software wireless access point
-
rwp
thegman, Almost any general purpose computer can do a variety of general things. And depending upon what you are routing for that might be okay to combine for you for you desktop. But if you are routing for a house of twenty people then I would use a dedicated router and then not hack on it so that it remains running reliably.
-
thegman
its just a few computers and a phone
-
rwp
It's always up to you. But when it is a desktop people tend to like to reboot it when they want. And then someone else gets their ssh login dropped or their game disconnected and pops up and goes, "Hey! I was using the network!"
-
thegman
fortunately i dont reboot very often and im the only one within 100 feet that knows how to use ssh
-
tm512
I would want that separation of concerns, personally. the actual computer for a fairly low-traffic router presumably doesn't have to be very powerful
-
thegman
is there any information on software wireless access points in virtual machines
-
tm512
kevans: so I'm trying to investigate your hypothesis about gzdoom's fs_findfile.cpp implicitly including sys/time.h outside of the FileSys namespace, but I'm not finding any suspects
-
tm512
fs_findfile.h includes stdint.h along with C++ string and vector, which seem all clear, then the cpp file itself includes string.h which seems clear, along with vector.h again
-
tm512
er, wait, I guess I have to check all of the includes within those files, ugh
-
tm512
I wish I knew how to properly follow along with the output of clang's preprocessor, because like, I do see _timeval.h in the processed output, I just don't know how to trace back to where that's initially included
-
tm512
I can see that timeval is defined outside of the FileSys namespace though
-
tm512
kevans: lmao, just adding #undef _SYS__TIMEVAL_H_ inside of the FileSys namespace fixed the compilation errors. that's kinda disgusting, though
-
crb_
I see that a new version of GNU Make (4.4.1) went into the ports tree but there isn't yet a package, is that expected?
-
mason
crb_: It takes a while for things to build, and longer if you're on quarterly.
-
crb_
I could see that but 2 weeks seem pretty long
-
mason
crb_: Are you on quarterly?
-
crb_
mason: I'm not sure I'm trying to read on repos now
-
mason
freshports.org/devel/gmake notes that 4.4.1 isn't in the current quarterly
-
VimDiesel
Title: FreshPorts -- devel/gmake: GNU version of 'make' utility
-
_xor
Hmm, is there a cmake module or something in ports that will allow a cmake project to build that specifies `dependency('pam')`?
-
_xor
I'm trying to figure out if there's a pam.pc file for it or if I can/should manually specify the headers + lib(s).
-
andreas303
In FreeBSD, is it possible to have multiple versions of a package/software installed at the same time as in Gentoo?
-
johnjaye
not that i'm familiar with through ports, but jails might do something like that. how does gentoo do it?
-
andreas303
johnjaye: Gentoo lets me specify which version I want to use when I start a service or execute a command. There is also a tool to specify the default version. As I've understood, Gentoo's package management system is influenced by FreeBSD's ports system, so I supposed that it would work in a similar way.
-
johnjaye
in freebsd ports don't typically work that way unless a port is setup for each version
-
johnjaye
i think in freebsd you're supposed to use jails to do what you're saying:
freebsd.org/doc/en/books/handbook/jails.html
-
VimDiesel
Title: Chapter 17. Jails and Containers | FreeBSD Documentation Portal
-
andreas303
My problem is that I need to upgrade Nextcloud from version 15 to 18 without skipping any major versions, so I need to install netxcloud15, nextcloud16, nextcloud17, nextcloud18. I guess I have to install them in serial instead of in parallel then. However, when I look at
freshports.org/www/nextcloud, it seems that only nextcloud18 is available from the ports tree. I'm running FreeBSD
-
andreas303
14. Is there any way to install older packages?
-
andreas303
Also, it seems that nextcloud15 requires php80, so I need to install php80 as a dependency, if though php80 is not supported on FreeBSD 14.
-
nimaje
why do you need to do those steps?
-
andreas303
If that's not possible, a last resort could be to move the nextcloud database and config files to Gentoo and upgrade nextcloud there and then move it back to FreeBSD. :-/
-
andreas303
nimaje: The nextcloud doc says that one should not skip major versions while upgrading, so I need to upgrade one step for each version from 15 to 18.
-
andreas303
Any ideas how I can accomplish it? I'm thankful for all suggestions. :-]
-
warsoul
how do i format a sandisk usb to then save mp3?
-
ketas
newfs_msdos
-
ketas
maybe :)
-
warsoul
ketas just did it i think lol
-
warsoul
to writte mp3 to usb just move it there?
-
ketas
depends why and what
-
ketas
how
-
warsoul
is to play it in my car
-
ketas
yeah you could just move files, or perhaps copy
-
ketas
oh
-
ketas
fine then?
-
warsoul
ok
-
warsoul
thanks
-
warsoul
ketas it says invalid file name
-
warsoul
when i try to paste it
-
warsoul
or moved it into usb stick
-
ketas
managed to make non-32 fat?
-
ketas
no idea
-
warsoul
can you help me format since the beggining
-
warsoul
to make sure
-
warsoul
please
-
warsoul
i used gpart destroy
-
ketas
oh well
-
ketas
might as well do dd now to see if it's ok :p
-
warsoul
how i do that?
-
ketas
i usually do that once just in case
-
ketas
but it had fat before or...?
-
warsoul
it was brand new
-
warsoul
it had sandisk files
-
warsoul
gpart add -t fat32 da0
-
warsoul
newfs_msdos -F32 /dev/da0s1
-
warsoul
i used this
-
ketas
so why errors?
-
ketas
-
VimDiesel
Title: Formatting USB drive with FAT32 using FreeBSD | codenicer.com
-
ketas
same tho
-
warsoul
gpart show da0
-
warsoul
=> 63 60125121 da0 MBR (29G)
-
warsoul
63 60125121 1 fat32 (29G)
-
nimaje
so it was already formated? why did you think you have to format it?
-
warsoul
nimaje i wante to remove sandisk files that comes with the usb
-
nimaje
wouldn't deleting the files have been enought?
-
warsoul
nimaje when i try it said it cant be removed
-
warsoul
or that does files dont exist
-
warsoul
something weird is going on
-
warsoul
try that again
-
warsoul
now when i move files it says invalid name
-
warsoul
skip skipall etc
-
warsoul
but when i try again it shows like the file is all ready in usb if i want to remove it
-
warsoul
or replace it
-
warsoul
but when i open usb in file manager is empty cant see nothing there
-
ketas
how is that thing mounted
-
mzar
hello
-
mzar
is it main #freebsd or vestibule ?
-
cybercrypto
/part
-
alepzi
just to confirm, there's no option in pw useradd to give the password by hash right?
-
alepzi
$6$...
-
dch
alepzi: `man pw` should at least do it via `-H -` iirc
-
dch
and there's probably an easier way
-
alepzi
ya but that's with usermod no?
-
alepzi
oh, both
-
dch
echo '$6$...' | pw usermod $USER -H 0
-
dch
works here
-
alepzi
ya i wanted something for useradd tho but looks like that'll work. gonna test now
-
dch
I think its deliberately intended *not* to allow setting it on the command line, so even hashed passwords and salts don't get logged
-
dch
ok, openvpn routing, what am I doing wrong?
-
dch
I want local traffic not to go via vpn
-
alepzi
oh ya true. if i do pass the pw hash by command line to pw useradd, where will that line be logged? /var/log/messages or?
-
dch
aaaaah im on teh wifi, gotta use a different gw
-
dch
alepzi: my example above should not have something logged via e.g. sudo or whatever
-
alepzi
worked for me except i had to change | pw to | sudo pw
-
alepzi
still didn't see any logging to /var/log/messages
-
dch
alepzi: i guess sudo/doas logs turn up in /var/log/auth.log ?
-
dch
Mar 16 16:44:21 akai doas[75741]: dch ran command pw usermod testy -H 0 as root from /projects
-
dch
thats what i see
-
dch
no passwd :-)
-
alepzi
niiice
-
alepzi
if i lock an account, is there any security benefit to also disabling pass auth with usermod -w no?
-
voy4g3r2
has anyone experience making a mistake and upgrading to -CURRENT (or some other release) and then try to get back to a release like 14.0?
-
cracauer
I do that by smearing a release tarfile over root (excluding etc) and then do a new `make world`.
-
voy4g3r2
cracauer: that is what iw as thinking.. pulling the source for releng/14.0 and just going to install over it :)
-
voy4g3r2
hopefully that fixes it..
-
cracauer
I mean a binary release tarball extract first.
-
cracauer
In case `make world` doesn't like to go backwards.
-
voy4g3r2
i am pulling from git.freebsd.org the kernel and building
-
voy4g3r2
but maybe your option is "smarter" than my screw up..
-
cracauer
Only required if `make world` falls flat on its face.
-
voy4g3r2
right now doing a make -j8 buildworld kernel
-
voy4g3r2
it is chugging along
-
voy4g3r2
i need to update my tmux configuration to make the different hosts stand out more.. freaking crap
-
voy4g3r2
and i should NOT have had CURRENT in /usr/src but somewhere else
-
dmr104
when i type lpq it says no daemon present. i am running lpd alright. what could be the problem?
-
signalblue
check to see where it is running
-
signalblue
like the exact path to where it is
-
voy4g3r2
it is interesting to see how much LESS cpu a 14.0 source build is verus a 15.0 current build
-
dmr104
signalblue: ps -aux shows that root is running /usr/sbin/lpd
-
johnjaye
voy4g3r2: if you figure out a good way to do that let me know
-
johnjaye
so far my idea was something like have a different color for different OS. like red for linux and blue for freebsd
-
voy4g3r2
will do
-
voy4g3r2
well the buildworld kernel finished
-
voy4g3r2
time to see if a reboot works..
-
voy4g3r2
then installworld
-
voy4g3r2
johnjaye: i have tried to put hostnames in my header/footer but that was clearly not looked at
-
johnjaye
voy4g3r2: i saw a neat trick on time. use the shading contrast so like you can write 112233 and you can see the contrast. only works with 256 colors though
-
voy4g3r2
i mainly use xterm256-color option
-
voy4g3r2
and it looks like we have harley down for the ocunt
-
voy4g3r2
reboot.. and network did not come back up
-
voy4g3r2
son of a gun.. time to move this thing again and diagnose
-
voy4g3r2
cracauer: your try on the tarball thing, is that basically "sucking" out the base from an iso image and overlaying in system?
-
voy4g3r2
intersting this mikrotik "shutdown" my network connection because of ping floods
-
voy4g3r2
pretty cool but annoying feature
-
voy4g3r2
oh yeah!!! no pam_xdg.so error
-
voy4g3r2
well that is odd.. i can login through ssh but not directly into the machine
-
alepzi
anything wrong with locking root if noone needs to login as it?
-
alepzi
my main user account's in wheel so i can do everything from it with sudo
-
sfox
voy4g3r2: no that's not
-
sfox
that's effectively a dos
-
sfox
your network is down
-
jaredj
boo urns. i built OccamBSD and just tried to remake my rtorrent jail on top of it, but rtorrent uses crypto libraries in base, which i didn't build. so it won't run
-
sfox
someone's DOSing my network, better shut it down.... is the stupidest possible way to handle a dos attack
-
sfox
just implement icmp rate limiting
-
sfox
it's standard practice
-
jaredj
"You can't DoS me, I won't serve anybody! I quit!"
-
voy4g3r2
sfox: yes there is a firewall rule that does thazt
-
voy4g3r2
i was not clear.
-
voy4g3r2
and why the heck is pam_xdg.so gone..
-
jaredj
voy4g3r2: it seems like that is provided by the pam_xdg package, not base
-
voy4g3r2
jaredj: what is odd.. if i try to login as any user direclty into machine.. it says can't find
-
voy4g3r2
but if i login through ssh no error
-
jaredj
ah - yes - in /etc/pam.d there are separate PAM configs for different services
-
sfox
I have seen ''security appliances'' that brick the entire lan if somebody runs nmap
-
jaredj
if you edit /etc/pam.d/login you should be able to comment out the line about pam_xdg, and then be able to log in
-
sfox
so nobody on it can even access the internet
-
jaredj
voy4g3r2: or follow the "include" statements - it might be in /etc/pam.d/system
-
voy4g3r2
yeah it is.. in #session section
-
voy4g3r2
weird, i never touched this or even had pam_xdg installed till now
-
jaredj
?? yeah that's odd
-
voy4g3r2
i really need to get a serial / usb cable
-
jaredj
:D
-
voy4g3r2
jaredj: well i DID by mistake upgrade to CURRENT and juust downgraded
-
jaredj
yeaaahh, i read a little bit of the scrollback
-
voy4g3r2
so i was expecting some things to hiccup
-
voy4g3r2
that was the only thing, that i saw.. which is not bad.. maybe got in there some how
-
voy4g3r2
oh well.. fixed now, thank you!
-
jaredj
hurrah! :)
-
voy4g3r2
time to hunt on amazon for a calbe
-
voy4g3r2
moving this beast of a machine around house is annoying
-
jaredj
word
-
voy4g3r2
will be here tomorrow andf now amazon is doing this thing.. by being a prime member i just save 9.99 on shipping
-
voy4g3r2
they better NOT increase my membership price again
-
crb_
can you mount a filesystem in multiple places?
-
crb_
I have a zfs filesystem that I'd like to mount inside and outside of a chroot area
-
johnjaye
there is a way to do that in ufs but not sure about zfs
-
crb_
johnjaye, ok how do you do that using ifs
-
johnjaye
not sure. googling isn't showing a lot.
-
johnjaye
what happens if you just issue the mount command a second time?
-
voy4g3r2
-
VimDiesel
Title: Mount your ZFS datasets anywhere you want – Dan Langille's Other Diary
-
voy4g3r2
looks like there is some information on this you can set the canmount=on
-
jmnbtslsQE
crb_: you can use nullfs
-
crb_
thank you
-
jmnbtslsQE
mount the filesystem in one location, then nullfs mount from that location to a new one
-
crb_
my /compat/llinux doesn't have a password file, is that intentional? do I have to create that myself?
-
alepzi
anything wrong with locking root if noone needs to login as it? my main user account's in wheel so i can do everything from it with sudo
-
V_PauAmma_V
alepzi, do you have physical access to that machine? I'm not sure what locking the root account would do to single-user login for repairs.
-
alepzi
ya i do
-
» V_PauAmma_V nods.
-
alepzi
so i guess single user mode won't let login to root if it's locked?
-
alepzi
btw if i lock root, why can daemons, like sshd, still start running as root? when i tried to run caddy's rc.d with a user i made then locked, it said it couldn't start
-
petrj
if the freeports is showing "Package not present on quarterly" does it mean there are prebuilt binaries which we can somehow install (by adding repository)? building from source is taking hours..