-
gh00p
Hiya/ I think I need to install a meta port to make the linuxulator go. Do I want c7 or r19? Or something else?
-
SponiX
gh00p: if you install "linux-discord" it will do the right one for you anyway ;)
-
SponiX
but you want the rl9 one (Rocky Linux 9)
-
gh00p
Hrm. I'm trying to get dependencies for `WinBox`. Are you serious about discord?
-
gh00p
I haven't even heard of Rocky Linux before. :)
-
gh00p
Thanks tho.
-
gh00p
Oh... Is it not available as a pkg? Or perhaps I have something else wrong..
-
gh00p
ah, nevermind me. Just not wearing my glasses.
-
SponiX
pkg install linux_base-rl9
-
SponiX
-
gh00p
Ya, I got it when I copy/pasted instead of retyping what I thought I saw. :)
-
gh00p
But if I need glx/mesa, am I stuck? Or might I have to go with c7?
-
SponiX
gh00p: what exactly are you trying to accomplish?
-
SponiX
you can actually do a Debian 12 install that is probably the most up to date option
-
gh00p
I'm trying to run the Linux version of WinBox, the MikroTik configuration tool. It reports:
-
gh00p
./WinBox: error while loading shared libraries: libxcb-glx.so.0: cannot open shared object file: No such file or directory
-
SponiX
"Linux version of WinBox" is odd for sure ;)
-
gh00p
Better than the Windows version of LinBok, perhaps. ;)
-
gh00p
I'm sure there's some legacy reason for the name that made sense at some point.
-
gh00p
Ah hah, x11/linux-rl9-xcb-util moved me a step forward. Now to seek out each dependency...
-
SponiX
If you need it bad enough, I can get my bookmark for doing a fairly full Debian 12 install. with this one, you can even chroot into it and run "apt install pkgname" and stuff
-
gh00p
That sounds sexy. I had Debian running in a jail a while back, but it fell too far behind.. If it's handy, I'd love to try your install.
-
gh00p
Perhaps WinBox won't be possible without a VM. Stuck on EGL which I think is in mesa.
-
gh00p
Though I'd love to try things with your Debian install.
-
SponiX
I'll google real fast and see if I can find the documentation for the Debian 12 method. Give me a second, if I can't find it -- I'll plug the monitor back into my Linux machine, I know for sure it is bookmarked there
-
gh00p
Thank you!
-
SponiX
gh00p: actually it is further down the page
docs.freebsd.org/en/books/handbook/linuxemu
-
SponiX
but instead of debootstrap focal /compat/ubuntu -- you are gonan run: debootstrap bookworm /compat/debian
-
SponiX
then you chroot into it as it shows
-
SponiX
it has apt inside of it and everything
-
gh00p
Thanks again! I'll give it a try. :)
-
SponiX
after inside the debian chroot, I made edits to the sources.list to include more packages (like non-free) and so on
-
SponiX
I literally just googled "Debian sources.list" and the Debian website gave me working examples of what I needed
-
U2C97
Hi chat
-
U2C97
does anyone know how to use the FreeBSD framebuffers in C?
-
U2C97
Im trying but i can only get a top portion of the screen to be filled with the color
-
U2C97
```#include <sys/ioctl.h>#include <sys/consio.h>#include <sys/fbio.h>#include <sys/mman.h>#include <fcntl.h>#include <unistd.h>#include <stdint.h>
-
U2C97
#include <stdio.h>
-
U2C97
int main(void) { struct fbtype info; int fd, fsize; uint32_t* fbuf;
-
U2C97
if ((fd = open(ttyname(STDOUT_FILENO), O_RDWR | O_NONBLOCK)) < 0) { perror("open"); return -1; }
-
U2C97
if (ioctl(fd, FBIOGTYPE, &info) == -1) { perror("ioctl(FBIOGTYPE)"); return -1; }
-
U2C97
printf("Depth= %d, width= %d, height= %d\n", info.fb_depth, info.fb_width, info.fb_height); fsize = (info.fb_depth / 8) * info.fb_width * info.fb_height; printf("Framebuffer size is 0x%x\n", fsize); unsigned int pixelAmount = info.fb_width * info.fb_height;
-
U2C97
if ((fbuf = mmap(NULL, fsize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { perror("mmap"); return -1; }
-
U2C97
for (int j = 0; j < info.fb_height; j++) { for (int i = 0; i < info.fb_width; i++) { fbuf[i + (j * info.fb_width)] = 0xFFFF7D7D; // 0xAARRGGBB } }}```
-
U2C97
uhhh
-
U2C97
why didn't it insert as code block?
-
ober
yeah ugg
-
ober
irc is hard
-
U2C97
I suppose i can just send the file
-
U2C97
oh wait
-
U2C97
its IRC
-
U2C97
theres /me thing
-
U2C97
lemme try
-
U2C97
ACTION #include <sys/ioctl.h>#include <sys/consio.h>#include <sys/fbio.h>#include <sys/mman.h>#include <fcntl.h>#include <unistd.h>#include <stdint.h> #include <stdio.h> int main(void) { struct fbtype info; int fd, fsize; uint32_t* fbuf; if ((fd = open(ttyname(STDOUT_FILENO), O_RDWR | O_NONBLOCK)) < 0) { perror("open"); return -1; } if (ioctl(fd, FBIOGTYPE, &info) == -1) { perror("ioctl(FBIOGT
-
U2C97
YPE)"); return -1; } printf("Depth= %d, width= %d, height= %d\n", info.fb_depth, info.fb_width, info.fb_height); fsize = (info.fb_depth / 8) * info.fb_width * info.fb_height; printf("Framebuffer size is 0x%x\n", fsize); unsigned int pixelAmount = info.fb_width * info.fb_height; if ((fbuf = mmap(NULL, fsize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { perror("mmap"); return
-
U2C97
-1; } for (int j = 0; j < info.fb_height; j++) { for (int i = 0; i < info.fb_width; i++) { fbuf[i + (j * info.fb_width)] = 0xFFFF7D7D; // 0xAARRGGBB } }}
-
rtprio
use a pastebin for the love of christ
-
U2C97
fr
-
U2C97
the bsd.to stuff in the announcement thing are unresponsive, im using some random one i found btw
-
U2C97
-
rtprio
U2C97: this isn't slack, ``` doesn't work that way
-
U2C97
I got pretty used to it, since its used for code blocks literally everywhere
-
U2C97
and assumed IRC too
-
mfisher
IRC predates markdown :)
-
ek
mfisher: Yeppers. By a *VERY* long time.
-
ober
icb -> irc
-
mjacob
does link(2), when passed a path to a symlink as the first argument, hardlink the symlink or the target of the symlink?