|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
i want to install a voice chat server on openbsd
i have openbsd 4.7 as my home all in one server.
it's working as internet gateway using PF, webserver and fileserver usign samba. i want to setup a voice chat server for my brother net games. for now i installed on his windows machine mumble and it work fine but i want to make use of the openBSD server instead my brother machine. i tried to run mumble server using the fedora_base linux emulation but it didnt work. is there anothe server that built for openbsd? maybe there is a way to convert the ports for freebsd for openbsd? or maybe to run the freebsd version on openbsd? if so then i would like to get help with that. thanks Hack |
|
|||
i now that i can compile it on other system and then copy it to the openbsd and run it on the fedora base linux emulation.
but what is better? do it using linux emulation or freebsd emulation? also i have VM of opensuse 11.3 and clearos 5.2 and i was wondering on which one of them i should compile the software? |
|
|||
Quote:
As for FreeBSD emulation, the story is pretty much the same. It isn't as critical now that OpenBSD has many native ports available. Nevertheless, you should begin by studying the compat_freebsd(8) manpage. I'm sorry if you were hoping for black-&-white answers. What you will need to do is experiment & see if any of the current emulation vectors are sufficient for the needs of your application. |
|
|||
I don't know anything about mumble or the needs of your brother's games, but the following are options:
Quote:
In general, we at this site don't provide detailed porting support because it is far too involved. The libraries available on one platform are not guaranteed to exist on another, or be at the same version level. Shims may have to be written to get around some of the translation problems. Filesystem differences between any two platforms are also likely to exist, so you need to study the hier(7) manpage first. Quote:
|
|
|||
There is no port of "mumble" to OpenBSD, but the project is open source, assuming you had the ability, you could try building it yourself and contribute a port.
This program does have a fair amount of dependencies, it won't be an easy task. http://mumble.sourceforge.net/ |
|
|||
wow thanks for the quick repley.
i was in the middle of reading the compat freebsd and linux to verify if it's good for me. as for asterisk i have tried just for challenge to install freepbx on openbsd and i had to parse the whole install script and i was using old parsing for script that work for version 2.6 and i made the freepbx to work on the server (apache unjailed and runing as _asterisk) i had some bugs and i didnt have time to debug it so that's the main reason i was looking into other options. |
|
|||
generaly im not that good with programing and stuff cause that's me.
so what i did was that: got the source and installed the some dependencies. i just need the server so i made this Quote:
im gettings some errors: Quote:
i also going in other direction of compiling the server it from source for linux or freebsd and run it on my openbsd server. if i run the "make" then im getting Quote:
help will be nice. |
|
|||
One of the primary problems with porting is that it is extremely time intensive, & it requires understanding what the previous developers had in their minds & understanding what issues they were facing. In order to comment intelligently on the questions posed, anyone here would have to retrace the steps you have already taken & critically look at the bigger picture at that point. As for me, this would require more time than I have to spend on this particular problem.
My suggestion to you is to study the FreeBSD port first since a port already exists. Perhaps what you learn there can be translated to OpenBSD, or perhaps not, but starting from a known working point may be more effective than simply grabbing the source & finding that it doesn't build cleanly on a different platform. Another alternative would be to simply run the FreeBSD port on FreeBSD. This is why in my original response to this thread I stated that we don't typically provide detailed porting support here. The investment required can be very high, & you probably have the highest motivation to see to its conclusion. I wish you the best in your quest. You can learn a lot from the process, but you may also want to re-evaluate whether you have the skills needed or whether a different platform will suffice. |
|
|||
thanks again.
i was just trying it for the excitement cause i have a great working server for now so .. just for the fun and to break my head a bit. i was looking at the freebsd port before i wrote my older reply. the thing is that it has to be compiled in order to run on freebsd and the dependencies are the QT4 (for qmake) and it has so many depencies that i suck to even look on it. for now im leaving it for a week or more. but i got a great idea about the fedora emulation. the main problem is that the compiling way means to use the mumble to make the murmur server, so i will get the murmur binaries with the dependencies and i will see whether it works or fails. thanks Hack. |
|
|||
FreeBSD emulation languishes more than Linux emulation
Although the OP states that he was going to focus on the Linux emulation choice, here is a pertinent observation made by a project developer today on misc@:
http://marc.info/?l=openbsd-misc&m=128178989916588&w=2 Regulars here may also be interested; Stuart frequently gives candid opinions which are grounded from familiarity of OpenBSD's source code. |
|
|||
well i left the murmur stuff cause of so many to do for it to work on openbsd.
it was very simple to install ubuntu server with all my needs and more in it then i need. i had a problem downloading from the openbsd samba server (getting 3MBps download) so after so much time spending on it i found out the culprit!! no other then: virtuabox!! the host network interface is throttling the whole system. after uninstalling the adapter and rebooting the windows system i got download speed of 50-60 MBps. |
|
||||
Quote:
uMurmur is a lightweight alternative to murmur that is compatible with Mumble 1.2.x. You can get it here. You need some patches to get it to build on OpenBSD, but I've done the work for you =) (posted earlier today to my blog on LQ.org. This isn't tested yet other than building on amd64 and sparc64. I'll post a followup once I've tested it out.). I may attempt porting murmur to OpenBSD later if I get the time. Any comments and suggestions for improvements from BSD gurus is more than welcome... Patches: Makefile Code:
--- Makefile.orig Mon Dec 20 08:54:23 2010 +++ Makefile Mon Dec 20 09:27:37 2010 @@ -24,10 +24,10 @@ # OpenSSL - usually installed at a standard place # EXTRA_CFLAGS:= -# EXTRA_LDFLAGS:=-lcrypto -lssl +EXTRA_LDFLAGS:=-lcrypto -lssl -CFLAGS:=$(CFLAGS) -I. -Wall $(EXTRA_CFLAGS) -LDFLAGS:=$(EXTRA_LDFLAGS) $(LDFLAGS) -lconfig +CFLAGS:=$(CFLAGS) -I. -I/usr/include/openssl -I/usr/local/include -Wall $(EXTRA_CFLAGS) +LDFLAGS:=$(EXTRA_LDFLAGS) $(LDFLAGS) -L/usr/local/lib -lconfig umurmurd:google/protobuf-c/libprotobuf_c.a $(OBJS) $(CC) $(LDFLAGS) $(OBJS) $(SSL_LIB) google/protobuf-c/libprotobuf_c.a -o umurmurd Code:
--- client.c.orig Mon Dec 20 08:52:10 2010 +++ client.c Mon Dec 20 08:52:29 2010 @@ -29,6 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include <sys/poll.h> +#include <sys/types.h> #include <sys/socket.h> #include <fcntl.h> #include <errno.h> Code:
--- main.c.orig Mon Dec 20 09:21:01 2010 +++ main.c Mon Dec 20 09:22:24 2010 @@ -111,18 +111,7 @@ } -void setscheduler() -{ - int rc; - struct sched_param sp; - sp.sched_priority = sched_get_priority_min(SCHED_RR); /* Should suffice */ - Log_info("Setting SCHED_RR prio %d", sp.sched_priority); - rc = sched_setscheduler(0, SCHED_RR, &sp); - if (rc < 0) - Log_warn("Failed to set scheduler: %s", strerror(errno)); -} - void printhelp() { printf("uMurmur version %s. Mumble protocol %d.%d.%d\n", UMURMUR_VERSION, PROTVER_MAJOR, PROTVER_MINOR, PROTVER_PATCH); @@ -130,7 +119,6 @@ printf(" -d - Do not deamonize\n"); printf(" -p <pidfile> - Write PID to this file\n"); printf(" -c <conf file> - Specify configuration file\n"); - printf(" -r - Run with realtime priority\n"); printf(" -a <address> - Bind to IP address\n"); printf(" -b <port> - Bind to port\n"); printf(" -h - Print this help\n"); @@ -140,13 +128,12 @@ int main(int argc, char **argv) { bool_t nodaemon = false; - bool_t realtime = false; char *conffile = NULL, *pidfile = NULL; int c; struct utsname utsbuf; /* Arguments */ - while ((c = getopt(argc, argv, "drp:c:a:b:h")) != EOF) { + while ((c = getopt(argc, argv, "dp:c:a:b:h")) != EOF) { switch(c) { case 'c': conffile = optarg; @@ -166,9 +153,6 @@ case 'h': printhelp(); break; - case 'r': - realtime = true; - break; default: fprintf(stderr, "Unrecognized option\n"); printhelp(); @@ -213,9 +197,6 @@ Chan_init(); Client_init(); - if (realtime) - setscheduler(); - Server_run(); SSLi_deinit(); |
|
|||
I'd wrap non-portable code in preprocessor foo instead of just removing it.. especially if you want to send a patch upstream.
A lot of projects include OpenSSL headers like <openssl/crypto.h> so that an absolute path is not required. Someone is bound to appreciate this though, maybe you could create a port and send it to ports@? |
|
|||
Nah, several ports use google code for distfiles now.
|
|
||||
Quick update: my umurmur port was committed to OpenBSD ports a few days ago. You can find it under audio/umurmur.
david@ sent me a port of Mumble (the client) to test this morning, so work on that side is progressing nicely. It tentatively is located in ports at audio/mumble. (Admins: just wanted to update this thread in case anyone searches it out in the future...sorry for raising this thread from the dead =) Edit - I took your advice, BSDfan666, and used preprocessor directives to conditionally compile the Linux-specific stuff, and the upstream author accepted that and a few other fixes I sent in. Thanks for the advice. |
|
|||
Excellent, nice to see some porting news on the forum, the official ports list can be a bit dense :-)
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How - To install GNOME vile I install OpenBSD ? | looop | OpenBSD Installation and Upgrading | 6 | 24th April 2010 08:58 PM |
OpenBSD IRC channel chat about DMZ and vlan | J65nko | General software and network | 3 | 25th December 2009 11:15 PM |
move install to new server larger hard drive (raid system) | carpman | FreeBSD General | 16 | 24th November 2009 10:57 AM |
Cam Chat Software for Solaris | whispersGhost | Solaris | 5 | 6th May 2009 04:45 PM |
Audio Chat for Solaris? | whispersGhost | Solaris | 9 | 19th June 2008 12:09 AM |