-
kdehl
I want to enable a swap file after intsalling FreeBSD 14 on AWS. I have dd'ed a 2 GB file from /dev/zero and run `swapon /swap.img`, but it complains that it needs a block device.
-
kdehl
I have added swapfile="/swap.img" in /etc/rc.conf
-
kdehl
Huh. That swapfile statement in rc.conf seems to have disappeared between ver 13 and 14.
-
kdehl
Um. No. After FreeBSD 9.
-
kdehl
Okay, I'm a bit behind, it seems.
-
kdehl
Okay, a magic md99 line in fstab made it work.
-
kdehl
What is that?
-
kdehl
Sorry, found the information in the fstab manual.
-
kdehl
Thank you guys!
-
deacon426
greetings and salutations fine people of Libera Chat \o
-
rwp
dvl, Change is always disruptive. I am rather used to using zgrep because every system requires it. Fortunately I can continue to use zgrep even if not encrypted.
-
rwp
dvl, Why type in bzgrep? That's one extra letter that is not needed. And using it limits the file type needlessly to bz2 files only. zgrep is the same script by the way.
-
rwp
-
VimDiesel
Title: philipp schmid - FreeBSD 10: does SWAP work on a ZVOL?
-
rwp
Remilia, UEFI has been such a road of thorns that this just feels like yet another thorn in our tires.
-
opr
Will mv command rollback is destination doesnot have enough space? I moved 62 gigs of tar file but running out of space, the file is back to where is was, is it safe to assume the file is still valid? Too big to extract and verify so better to confirm a little bit...
-
opr
I mean if the destination doesn't have enough space...
-
richard_
that sucks not having the space
-
opr
yeah... after about 20 minutes it errored with not enough space... forgot to check first, just want to make sure the file is still valid cause it's backup file, kinda crucial..
-
budlight
for sure
-
opr
budlight: Thanks for confirming... I'm relived...
-
budlight
budlight is the same person as richard_
-
budlight
richard_ is on freebsd
-
budlight
in vm
-
opr
hahah
-
budlight
my main os is debian
-
budlight
reading the bsd handbook
-
budlight
how do i fix sddm and dbus from scrolling down my boot screen i take it out of rc.conf but something keeps putting it back
-
budlight
first time i reboot i forgot to put sysrc infront
-
opr
cannot help, startx here...
-
richard_
i have that too but i like it to go to the login screen
-
opr
have you tried others like slim?
-
richard_
no
-
richard_
kde is the only desktop i use
-
rwp
KDE is a Desktop Environment. SDDM, lightdm, slim, xdm are X Display Managers. Meaning that they are separate components from each other.
-
deacon426
xdm is rad
-
rwp
xdm is the grandfather of all of the graphical login managers.
-
» deacon426 smiles
-
richard_
i have try others
-
opr
I think slim + KDE is also viable... so could give it a try see if it fix the problem
-
rwp
It's pretty plain by today's design standards and so lightdm and slim are the two most popular ones now.
-
opr
I mma go back and copy that 62 gigs again...
-
opr
Kinda scared, next time I'll stick with cp instead of mv...
-
rwp
I don't use sddm, KDE's replacement for kdm, but I debbugged through setting the locale with it recently to help someone and discovered that it was not simple. Made me unhappy because it propagates the idea that free software operating system desktops are trouble.
-
rwp
opr, Reading about your mv issue... If the source and destination are on the same dataset/partition/slice then the move will simply move the file and no data copy will happen.
-
rwp
If the move is across datasets/partitions then it will need to copy the file first and then remove the file from the source afterward. If the internal copy reports an error, such as out of space, then it will abort the copy and not do the second part.
-
rwp
But if it is across datasets then I suggest using rsync -a or rsync -t to copy the file first. Especially with 62GB. Then if that works then you can remove the source yourself. Since you know it is a copy then.
-
richard_
what ever got move be mv is lost ant it
-
richard_
by
-
rwp
For that size of a file I would use rsync -aP to include --partial --progress too. So that interruptions will preserve the partial file and be able to resume from where it left off.
-
rwp
Also having --progress there will give some feedback about how long it is going to take. For a lot of files I sometimes like --info=progress2 better. It all depends.
-
opr
rwp: OH, thanks for the detail, learned a lesson today. It's a system wide backup with rsnapshot, I tarred the whole backup folder than transfer it to my NAS, but selected the wrong disk with not enough space.
-
opr
I should've automated the whole process with rsync...
-
rwp
Hmm... I probably would have copied the files individually rather than tar'ing them up first.
-
opr
-
VimDiesel
Title: Full System Backup and Restore
-
rwp
The old school way before rsync was «tar cf - | ssh remote tar xf -» type of thing. But that's not restartable in the case of a network glitch. It would need to do it all again. That's where rsync is better.
-
opr
VimDiesel: haha You are on it.
-
opr
rwp: I'll transfer to rsync methodology soon.
-
rwp
I haven't used rsnapshot myself before. There are a lot of backup programs out there. People keep creating new ones! These days I recommend "restic". It's a new kid rising star backup.
-
rwp
opr, Yes the bot VimDiesel is pretty useful to print out titles. But it does get confused if there are multiple URLs on a line and for some combinations of patterns. The failures of the bot are more fun than the successes, honestly.
-
» rwp is relocating
-
opr
:D
-
zwr
rwp: a tarpipe can be faster than rsync which is nice for an initial upload. You can resume after network failure with rsync
-
AumShivaya
oh dang, my home is on /
-
AumShivaya
I thought FreeBSD put home in /usr/home?
-
AumShivaya
which O/S am I confused with
-
» AumShivaya wonders
-
AumShivaya
I guess I haven't used FreeBSD properly since 6 or 7
-
AumShivaya
I *thought* /home was a symlink to /usr/home
-
AumShivaya
so now I'm out of space on home
-
AumShivaya
I guess I could always .....
-
AumShivaya
Make it so
-
unixwitch
-
VimDiesel
Title: src - FreeBSD source tree
-
polyex
if i make a port can i turn it into a pkg somehow then keep it local and private and pkg install it by passing a path?
-
mason
polyex: Poudriere docs show how to overlay local packageas.
-
mason
packages*
-
mns
polyex: If I am not mistaken, you can setup a pkg repository that is local for you, and as long as you put pkgs in there, you should be able to use pkg to install whatever is in there
-
polyex
anyone make their own tools and maintain a library of private packages?
-
mason
-
VimDiesel
Title: Custom Poudriere Packages in Your Own Repository – FreeBSD Foundation
-
rwp
zwr, Agreed that opening and closing a godzillian individual files can be a bottle neck for rsync'ing files. Or any kind of file copying. But rsync must stat(2) both files first and that can slow things down.
-
rwp
zwr, With one huge file the one single network stream can be a bottleneck. It can be faster to fracture the file into 100 parts and then transmit each part all in parallel. In a bandwidth sharing situation it will have more shares than a single stream.
-
rwp
People have done all kinds of things over the years to tweak and tune in order to get more speed.
-
polyex
does p;oudriere need root to run?
-
polyex
i can use a bhyve vm for a dedicated poud build machine for my network right?
-
mason
polyex: sure
-
mason
polyex: Also, there are not a lot of hits for it, but look at build_as_non_root in the config.
-
mason
polyex: Also, note that there is #poudriere both on this network and on EFnet.
-
polyex
so poud can run without root?
-
mason
-
VimDiesel
Title: Code search results · GitHub
-
mason
Yeah, it's sort of obscure, but there it is.
-
polyex
really cool ty
-
mason
Hm, it's the default even.
-
mason
according to that poudriere.conf.sample
-
polyex
what's cleanvar for? i see it in a rc REQUIRES
-
polyex
i read the script and i see it like cleans var shit but how do i decide if i want my rc to also REQUIRES it?
-
zzo38
I have some question, such as: Can libnv be used on other non-BSD systems without Capsicum, and is there a documentation of the pack format of libnv? Also, can BSD be used with non-Unicode text, such as TRON character code? And, can a program work with some GNU functions (such as fopencookie)?
-
zzo38
Also, where is the documentation of libuserangel? I could not find it?
-
zwr
the best way to work with non-Unicode text is to convert it to Unicode. And all the BSDs have plenty of GNU functions, yes. Sometimes you can use a library or implement them yourself if they're missing
-
zzo38
I disagree. I want to support other encodings without needing to convert them, and supporting the possibility of character sets that may be larger than Unicode or have characters not present in Unicode, etc. I also want to be able to display text without converting it to Unicode (even if it is Unicode text; for security purposes sometimes it is better to display it as ASCII even if it isn't), etc
-
zzo38
(Converting to/from Unicode always would be inefficient anyways, as well as inaccurate (although sometimes it is approximately good enough (as a fallback)).)
-
nimaje
mason, polyex: no poudriere can't run as non-root itself, as it has to create jails, but it can and does build packages as non-root
-
bbrtj
Hey, I have problem with ethernet on 14.0-RELEASE, the status is active, I can get an IP with dhclient but still I cannot connect to anything
-
bbrtj
pinging an IP says that network is down, but em0 is UP and status: active
-
nimaje
can you ping your router?
-
bbrtj
Yeah, I just noticed it is on 192.168.1.1 and not 192.168.0.1, so I was trying wrong IP to access it. However, another device connected through ethernet can access the web no problem
-
bbrtj
so I have access to the network but no access to the web, weird
-
Remilia
bbrtj: netstat -4rn
-
Remilia
also check /etc/resolv.conf
-
Remilia
verify you have a default gateway
-
Remilia
try `traceroute -n 8.8.8.8` or something
-
bbrtj
Remilia: thank you! I still had 192.168.0.1 in /etc/resolv.conf. Ran `sysrc defaultrouter="192.168.1.1"` and `service routing restart`, and now it works :)
-
nimaje
hm, don't you use dhcp? pretty sure you get the default router from dhcp if you don't set defaultrouter in rc.conf
-
bbrtj
Seems like I'm not, will have to configure it
-
bbrtj
at least not automatically, as I got IP from dhclient
-
nimaje
so you manually used dhclient to get an ip adress?
-
bbrtj
yeah
-
nimaje
not sure if the rc script does additional stuf, but my guess would be that dhclient configures everything correctly if you remove that defaultrouter line and do a service netif restart to just restart everything (no idea what defaultrouter affects), but you can add DHCP into the ifconfig_* line so that the rc script automatically set everything up via dhcp
-
bbrtj
yes, I will try to set that dhcp in rc.conf later. I will also have to fix network access in jails, as it seems it stopped working. Stuff just broke with my new router
-
polyex
there any way to restrict a user to only running a specific 'service ...' command with sudo?
-
polyex
or is it only per binary?
-
last1
I have some guy from alibaba trying to connect to my server 1000/sec, I am blocking his IP but pf keeps him in the state table
-
last1
47.76.35.19:43321 CLOSED:SYN_SENT
-
last1
I block him with block drop so there's no return
-
last1
can I even block him from getting registered in the state table ? Eventually he grows to like 50 000 entries
-
polyex
hmm why does something that's drop even build up any state? seems like a drop should be stateless on the server
-
nimaje
polyex: you can restict on a matching command string with sudo, which kinda works but is bad design, as you can easily match more than you wanted to allow, so you probably only want to allow exact commands there
-
polyex
hm you mean i can do what i'm asking but it doesn't work great because ppl can like rearrange cli args and get around it?
-
polyex
what would a sudo rule look like to allow not all of service, but only '/usr/sbin/service pf reload'?
-
polyex
looks like doas supports it
-
polyex
permit nopass bobthebuilder as root cmd apt args update
-
nimaje
something like hacker10 ALL= (root) /usr/sbin/service pf reload
-
nimaje
but that command section also allows wildcards, which for some reason match the command arguments as one string instead of list of strings and * matches space too, so just don't use wildcards in that command part
-
polyex
why ALL=(root) isn't ALL=(ALL) enough?
-
nimaje
I just copied some example using the command part and replaced the used command with your command, look the exact syntax up and change it to your needs or change to doas if you want
-
remiliascarlet
"I block him with block drop so there's no return" And then he'll return after changing his IP.
-
mason
nimaje: Thanks for the clarification. Building as non-root is the critical bit.
-
_xor
RhodiumToad: I remember you mentioning a while back that SIGABRT is often the result of X reason. Do you remember what X was? (or am I mistaken? There was a coredumped signal that I ran into a while back that I remember you saying is pretty uncommon, and I want to say it was SIGABRT.
-
jgh
assert() ?
-
_xor
Oh, that would make sense.
-
» _xor was just trying to get a terminal image previewer working and it coredumped with SIGABRT
-
_xor
Checked the dump with lldb and it looks like it's calling a c++ stdlib method with invalid args.
-
» _xor needs to rebuild his FreeBSD repo with debug symbols :/
-
unixwitch
_xor: uncaught C++ exceptions also caused SIGABRT
-
unixwitch
most confusing networking problem i've had for a while: pf by default doesn't pass packets with option headers, which includes most IGMP packets, unless you use 'pass ... allow-opts'
-
meena
unixwitch: iiinteresting…
-
pertho
anyone know if Xorg in FreeBSD 14.0 works with intel iRIS Xe chipsets? When I add: kld_list="i915kms", freebsd locks up solid.. I have to remove that from rc.conf
-
pertho
I have drm-515-kmod-5.15.118_1 which should technically work with that chipset
-
unixwitch
meena: ask me how many hours i spent debugging why IGMP wasn't working because of this... :-/
-
meena
unixwitch: how many hours have you spent debugging why IGMP wasn't working because of this?
-
unixwitch
that was a rhetorical imperative
-
meena
I'm not in great form today and struggling more with these kind of things than usual
-
pertho
vgapci0@pci0:0:2:0: class=0x030000 rev=0x0c hdr=0x00 vendor=0x8086 device=0x4628 subvendor=0x1558 subdevice=0x4150
-
pertho
Alder Lake-UP3 GT2 [UHD Graphics] <- any way to make Xorg work with this? kldload i915kms locks up my machine :(
-
CorvetteZR1
hello. since i updated my bhyve vm to fedora 39, -s 30,xhci,tablet no longer works. the mouse doesn't work at all in the vm anymore
-
CorvetteZR1
i need to remove -s 30,xhci,tablet from the bhyve command...then mouse works, but without tablet mode, it's not in sync (so it keeps going of screen when i move it around)
-
michaeldexter
Interesting.
-
CorvetteZR1
has anyone else ran into this and is there any work around?
-
michaeldexter
CorvetteZR1: What host OS version?
-
CorvetteZR1
seems like someone has/had a similar issue on the forums, but there is no solution posted here:
forums.freebsd.org/threads/problem-…mouse-pointer-inside-bhyve-vm.80798
-
VimDiesel
Title: bhyve - Problem with mouse pointer inside bhyve vm | The FreeBSD Forums
-
CorvetteZR1
michaeldexter, freebsd 14-Release
-
michaeldexter
Thank you.
-
CorvetteZR1
i updated from fedora 36 to 39; i didn't really test it in between. all i know is it was working in 36 but when i started using 39 is when i noticed it
-
michaeldexter
CorvetteZR1: Do try it with several VNC clients.
-
CorvetteZR1
yes, tigervnc and novnc
-
michaeldexter
Noted.
-
pertho
-
VimDiesel
Title: Loading firmware on alder lake freezes system · Issue #252 · freebsd/drm-kmod · GitHub
-
VimDiesel
-
pertho
Check back on 14.1 or 15.0 :D
-
nimaje
as drm-kmod is a port whatever change is needed (likely) don't need to wait for a new freebsd release, but it seems like nobody knows what is needed to be done currently (well, maybe it needs changes to the kernel, but even that most likely works as a -p release and doesn't need to wait for 14.1 or 15.0)