01:24:39 Hiya/ I think I need to install a meta port to make the linuxulator go. Do I want c7 or r19? Or something else? 01:28:31 gh00p: if you install "linux-discord" it will do the right one for you anyway ;) 01:28:42 but you want the rl9 one (Rocky Linux 9) 01:29:40 Hrm. I'm trying to get dependencies for `WinBox`. Are you serious about discord? 01:30:14 I haven't even heard of Rocky Linux before. :) 01:30:46 Thanks tho. 01:33:07 Oh... Is it not available as a pkg? Or perhaps I have something else wrong.. 01:36:49 ah, nevermind me. Just not wearing my glasses. 01:37:32 pkg install linux_base-rl9 01:37:43 https://docs.freebsd.org/en/books/handbook/linuxemu/ 01:44:08 Ya, I got it when I copy/pasted instead of retyping what I thought I saw. :) 01:48:20 But if I need glx/mesa, am I stuck? Or might I have to go with c7? 01:51:10 gh00p: what exactly are you trying to accomplish? 01:51:42 you can actually do a Debian 12 install that is probably the most up to date option 01:52:59 I'm trying to run the Linux version of WinBox, the MikroTik configuration tool. It reports: 01:53:43 ./WinBox: error while loading shared libraries: libxcb-glx.so.0: cannot open shared object file: No such file or directory 01:54:18 "Linux version of WinBox" is odd for sure ;) 01:54:59 Better than the Windows version of LinBok, perhaps. ;) 01:57:27 I'm sure there's some legacy reason for the name that made sense at some point. 02:03:42 Ah hah, x11/linux-rl9-xcb-util moved me a step forward. Now to seek out each dependency... 02:04:52 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 02:07:08 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. 02:16:27 Perhaps WinBox won't be possible without a VM. Stuck on EGL which I think is in mesa. 02:17:32 Though I'd love to try things with your Debian install. 02:17:37 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 02:18:04 Thank you! 02:20:50 gh00p: actually it is further down the page https://docs.freebsd.org/en/books/handbook/linuxemu/ 02:21:52 but instead of debootstrap focal /compat/ubuntu -- you are gonan run: debootstrap bookworm /compat/debian 02:21:59 then you chroot into it as it shows 02:22:06 it has apt inside of it and everything 02:25:14 Thanks again! I'll give it a try. :) 02:30:14 after inside the debian chroot, I made edits to the sources.list to include more packages (like non-free) and so on 02:30:34 I literally just googled "Debian sources.list" and the Debian website gave me working examples of what I needed 19:22:42 Hi chat 19:22:54 does anyone know how to use the FreeBSD framebuffers in C? 19:23:12 Im trying but i can only get a top portion of the screen to be filled with the color 19:24:07 ```#include #include #include #include #include #include #include 19:24:07 #include 19:24:07 int main(void) { struct fbtype info; int fd, fsize; uint32_t* fbuf; 19:24:09 if ((fd = open(ttyname(STDOUT_FILENO), O_RDWR | O_NONBLOCK)) < 0) { perror("open"); return -1; } 19:24:11 if (ioctl(fd, FBIOGTYPE, &info) == -1) { perror("ioctl(FBIOGTYPE)"); return -1; } 19:24:13 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; 19:24:15 if ((fbuf = mmap(NULL, fsize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { perror("mmap"); return -1; } 19:24:17 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 } }}``` 19:24:19 uhhh 19:24:21 why didn't it insert as code block? 19:24:23 yeah ugg 19:24:29 irc is hard 19:25:09 I suppose i can just send the file 19:25:14 oh wait 19:25:16 its IRC 19:26:25 theres /me thing 19:26:27 lemme try 19:26:34 ACTION #include #include #include #include #include #include #include #include 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 19:26:34 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 19:26:34 -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 } }} 19:26:39 use a pastebin for the love of christ 19:26:43 fr 19:28:30 the bsd.to stuff in the announcement thing are unresponsive, im using some random one i found btw 19:29:20 https://appdevtools.com/pastebin/VtkSs0 19:34:03 U2C97: this isn't slack, ``` doesn't work that way 19:34:57 I got pretty used to it, since its used for code blocks literally everywhere 19:35:01 and assumed IRC too 20:34:54 IRC predates markdown :) 20:47:26 mfisher: Yeppers. By a *VERY* long time. 20:51:06 icb -> irc 23:58:41 does link(2), when passed a path to a symlink as the first argument, hardlink the symlink or the target of the symlink?