Which Device for LCD on Serial Port
G'Day! I am trying to set up LCDd on my 1U server, and it requires a device=[device name] line. In my dmesg, I get a listing of sio0 and sio1 (and the manual for the motherboard states that it's the second serial connector). dmesg output reveals : sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A In the /dev/ directory, there is no sio1 special file. However, the cuaa1, cuala1 and tty stuff is there. I am working with : FreeBSD azurite 5.2-RELEASE FreeBSD 5.2-RELEASE #1: Mon Feb 2 00:38:21 MST 2004 LCDd 0.4.3, LCDproc Protocol 0.3 (from the ports) So, what line do I need to use? device=/dev/sio1 obviously won't work, and I think I should be using the device=/dev/cuaa1 line because I am looking for sending data to the LCD rather than recieving from it. (though, I would like to use the built in menus to handle configuration stuff, but will settle for just a nice display). Joe ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
mtxorbd and LCDd mess up server
Ladies Gents; I've got an issue that has me stumped. I'm working with an old 1U server (Tyan Thunder LE [s2510] and ServerWorks III), and in order to keep the machine from resetting on me, we entered a line : acpi_dsdt_load=YES in the loader.conf file. However, when I write to the Matrix Orbital LK162 with seemingly any process (tried both mtxorbd and LCDd), the machine exhibits the same characteristics as if I never did add the line for acpi_dsdt. So, here's the question. Is there a way to get the machine to stablize while using the LCD? Should I just not even use the LCD? Or should I find some method to get around the stupid 3rd party interface for the LCD module? [rant] I hate it when a company goes out of business and I can't get any information on hardware. The unit is an Edge Server (Storigen is the main manufacturer), if anyone has any kind of information that might be useful. On that note, I'm refering to example controller code, manuals, instructions, or even people that used to work for the company. [/rant] Joe ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
MySQL Port... [not]missing functions?
Hey, all. I have written an apache module, and it worked fine with MySQL 3.23 compiled from source but not in the 4.x ports (tried 4.1 and 4.0). I have found the problem when I shifted it to a new box. The old one ran 5.1, and this new one runs 5.2. I doubt the OS is the concern, but one can't be too careful. The installed packages are : mysql-client-4.0.16 Multithreaded SQL database (client) mysql-server-4.0.16 Multithreaded SQL database (server) apache-2.0.48_1 Version 2 of the extremely popular Apache http server mod_php4-4.3.4_2,1 PHP Apache Module Now, since I've used the port, all I get when trying to start apache with the recompiled module is : Cannot load /usr/local/libexec/apache2/mod_vmysql.so into server: /usr/local/libexec/apache2/mod_vmysql.so: Undefined symbol mysql_real_escape_string Can someone tell me what I am doing wrong? I KNOW that function is supposed to be in the MySQL library, but it just isn't being found. Is there some trick that was used in the port that is not part of the standard install for MySQL? Joe ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
SOLVED: Storigen ES Reboots and LCD types
Found the problem with booting the Storigen 1U servers : They are based on the Tyan Thunder S2510 (Serverworks III) motherboards, and they have DSDT tables that are not initialized properly. Adding the following line to the /boot/loader.conf file fixed it : acpi_dsdt_load=YES There is also a way to reset this in the hints file (a dsdt variable), but I have not done this. And, with the LCD questions, one of the servers had a refurbished LCD, that still had the original manufacturer's name and model number (Phew!). It is a Matrix Orbital LK162 (R200). Does anyone know how to identify and control the stupid card in between the LCD and the motherboard? I want to display data to that LCD, but the controller is not allowing me to do so. Joe ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Locating LCD Information
I recently bought a couple of network storage apps. I think I've gotten a good feel for the LCDd from the LCDProc port. I think I need to find out what kind or LCD it is before proceeding. Do you guys know of any way to locate specs for the LCD devices on network servers? It comes from a storigen device, and the LCD circuit boards all have storigen ID numbers (and storigen is out of business - go figure). Any ideas on where to look next? Joe ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Server connectivity problem (firewall?)
[EMAIL PROTECTED] wrote: [SNIP] From /etc/rc.conf: firewall_enable=YES # Set to YES to enable firewall functionality firewall_script=/etc/rc.firewall # Which script to run to set up the firewall firewall_type=OPEN# Firewall type (see /etc/rc.firewall) firewall_quiet=NO # Set to YES to suppress rule display firewall_logging=YES # Set to YES to enable events logging firewall_flags= # Flags passed to ipfw when type is a file ipfilter_enable=YES # Set to YES to enable ipfilter functionality ipfilter_program=/sbin/ipf# where the ipfilter program lives ipfilter_rules=/etc/ipf.rules # rules definition file for ipfilter, see # /usr/src/contrib/ipfilter/rules for examples ipfilter_flags= # additional flags for ipfilter [SNIP] 00050 298 29652 divert 8668 ip from any to any via rl0 Me thinks this is a NAT issue. Do you have natd_enable=YES in the rc.conf? If it tries to divert to NAT and NAT isn't running, ANYTHING on rl0 will fail (or at least should fail - I could be wrong on that, but it should give you a pointer to check on). IPF is also running (I can't recall why) with the following rules: pass in all pass out all If I remove it from rc.conf I lose the ability to contect via dc0 as well. That is because it will deny by default. Make sure it's not enabled in the sysctl configuration, and then you should be able to remove the ipf rules. Joe ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
programming help - dlopen() segmentation fault
G'Day, ladies and gents; I've got a program that I am trying to play around with. Once I've added dlopen() using --export-dynamic, every time I try to run the program, I get a segmentation fault. It always occurs on the same line of code : modules = new_module_pointer; I can comment that line out, and suddenly the thing runs without a hitch. However, I kinda need that line. When I run gdb on the core dump, I get : GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-unknown-freebsd... (no debugging symbols found)... Core was generated by `server'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libc.so.4...(no debugging symbols found)...done. Reading symbols from /home/j/joe/code/mail/source/modules/mail_mod_sample.so... (no debugging symbols found)...done. Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)... done. #0 0x280da8ba in __sfvwrite () from /usr/lib/libc.so.4 (gdb) Does anyone have any ideas? Joe ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ipfw rules help.
Marwan Sultan wrote: a) lets say I want to deny everything except a range of IPs starting from 192.168.1.1 to 192.168.1.50. what rule set should be? how to set range of IPs? to pass and deny rest of the C class. FreeBSD Doc's doesnot cover this? or i didnot see.! I would set a default to deny, then poke holes through it for the stuff you need, such as add allow ip from 192.168.1.1/5 to any add allow ip from any to 192.168.1.1/5 (which sets up to use 1.1 to 1.32). That netmask is your best friend. b) If i want to deny everything except ip 192.168.1.5 as follow 00400 allow all from 192.168.1.5 to any 01000 deny all from any to any. when ipfw reads the rules and pass by 00400 then comes to 01000 then it denies even the 192.168.1.5, althou i put this rule before the deny ? what im missing? how should i pass 1 ip and deny all? It means something didn't even check it with rule 400. This can be due to an IPDIVERT thing changing the address so it doesn't match, or something similar. c) If I want rule 00400 to expire in 9PM and be active in 8AM.(EXAMPLE) how do we do that? is it by set a cron job to delete and add the ipfw rule? or there is something to do from the ipfw it self? cron job. ipfw doesn't have the capability of doing time-based rulesets. Temporary ones are okay, but time based, it can't really handle. D) Last Q: IF I restart the box all the rules will be reset, and comes to default. which is reasonable. How to keep it everytime I restart? do i create a file somewhere, and i tell my rc.conf for it? what the rc.conf line should be? and file format? Create or edit the '/etc/rc.firewall'. I would only make the changes to allow a firewall type of 'file', and then make rc.conf reference a file that contains the rules. Or, you can add a startup script in /usr/local/etc/rc.d/ that adds the rules. Joe ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
C program exporting symbols to dlopen() modules
I've not found anything about exporting symbols from the main program to a dlopen()'d module, and in fact, have found information that it can't be done. How can I export functions to a dlopen()'d file? Joe ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
dlopen() and parent symbols
I've read that I can't export symbols from the parent executable to modules opened with dlopen(). So, I have a (hopefully) quick question. How can I export function(s) to those modules? Joe Lewis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Vhost... use Apache
Exactly. Learning Faster is a no go. It never happens. The secret is : It's in the ports, and apache2 is the best (in my opinion) In other words, build the port, then read the documentation. (from the http://httpd.apache.org/ website). Joe Charlie Schluting wrote: Mr Kitt wrote: To whom it may concern, pls provide me the cmds as well... u may give me an example so that i can learn faster n understand better... Nobody is going to give you commands for basic things. It would just take too long. Read the manual. It sounds like you're wanting to set up apache. It wasn't clear from your request. Ok, read the Apache documentation. Don't ask the same question more than once. Please wrap your lines at 72 chars. -Charlie ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dhclient: send_packet: Permission denied
Do you have the firewall turned on with a default of deny? It sounds like a firewall problem. Joe Edward Carmody wrote: I'm seeing the following over and over in /var/log/messages Feb 1 13:54:17 Oberon dhclient: send_packet: Permission denied Any idea what this is? Thanks! Ed C. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Grub problem
Errors on the root will still occur. Grub does that. With BSD, you can set the menu option such as : root (hd0,2) chainloader +1 And it will load the MBR from the BSD partition, which will load the loader, which will load the kernel (the best way, really). Joe Robert Storey wrote: Use the chainloader command to start FBSD, like this: root (hd0,2,a) chainloader +1 boot best regards, Robert On Mon, 02 Feb 2004 01:42:02 -0300 Roy Fokker [EMAIL PROTECTED] wrote: Hi, i have installed in my computer FBSD 5.1, and RH9. The thing is, when i try to get GRUB to boot FBSD, i get the following error message: root (hd0,2,a) Filesystem type unknown, partition type 0xa5 Then, in the GRUB-shell, i get this from auto-completion. Partition num: 2, [BSD sub-partitions immediately follow] BSD Partition num:'a', Filesystem type unknown, partition type 0xa5 BSD Partition num:'b', Filesystem type unknown, partition type 0xa5 BSD Partition num:'d', Filesystem type unknown, partition type 0xa5 BSD Partition num:'e', Filesystem type unknown, partition type 0xa5 BSD Partition num:'f', Filesystem type unknown, partition type 0xa5 And i'm guessing that it is because of this, it then grub kernel /boot/loader ro root=/dev/hda3 Error 17: Cannot mount selected partition This is an extract of my grub.conf. I looked for info about this, and found no other reference. title FreeBSD 5.1 Release root (hd0,2,a) kernel/boot/loader ro root=/dev/hda3 I will appreciate any input. Thanks. Alejandro, from BA, Argentina. _ Nuevo MSN Messenger [1]Una forma rápida y divertida de enviar mensajes References 1. http://g.msn.com/8HMBESAR/2728??PS= ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
BSD Used on a Storigen ES device
I have a question for you experts and guru's. Have you ever used BSD on a Storigen device? I find when I try to boot the device into 5.1-RELEASE, after about 4 minutes, the device powers off and then restarts. I am getting no log messages, which means no APM interrupt is occuring. The device just shuts off. The motherboard is a Tyan Thunder LE S2510, with Serverworks III. If an older, more production-secure OS would be better, I can do that, but would rather stand on the bleeding edge. Now, the entire time, the LCD on the front is saying Storigen \n booting That leads me to believe that this device, if it does not get a specific interface call to tell it that we've booted, will reset in another attempt to boot successfuly. Anybody used on of these with BSD? Also, I'd also like to know if I can change that text, or even log to that LCD panel. A curious mind I have. Any ideas? Joe Lewis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: BIND
Saint Aardvark the Carpeted wrote: Evan Sayer disturbed my sleep to write: Wondering if there is a way to configure BIND to automatically update a dynamic ip within your own dns? If not, can anyone recommend a good simple client? Depends...are you talking about a DNS server that you're running? Google turns up this page as the first hit: http://dag.wieers.com/howto/bits/bind-ddns.php It's based on RedHat Linux, but the principle is the same and it looks like it should be easy to FreeBSD-ize. It is easily done with FreeBSD. I had it set up on a home network, doing DHCP to update the DNS with the hostname of the client when activated. That way, it was easier to network test certain devices. Do a man bind (I think that's the man page, can't recall for sure, but it is there somewhere). This is assuming that you're talking about updating a BIND server that you control; if you're talking about updating something like myplace.dyndns.org, or some other similar service, you'll want to check with them to see what they recommend. That is true. If you control BIND, the world is your playground. You might also want to take a look at SQLBIND, as it is BIND after being patched to run off of a database. That could open up more options if you wish. Also my isp is roadrunner, and they say that they don't allow web services to be run on dynamic ips. Do they mean that they block the ports literally or does it just mean they frown upon it? It means they aren't going to allow dynamic DNS updates to their DNS servers. I work for an ISP, and the last thing I want to do is open up the DNS for dynamic updates. That becomes a security nightmare. Joe Lewis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Anyone using Linux-PAM on 5.x?
Hello, all; I would like to take a moment of your time. I was having some heavy frustrations on preparing a FreeBSD 5.1 server for handling centrally located accounts using OpenPAM, particularly due to my inability to locate good documentation on it. I found that the problems : Oct 5 13:04:15 sharktooth login: in openpam_load_module(): no pam_mysql.so found Oct 5 13:04:15 sharktooth login: pam_start(): failed to load module Were NOT due to the misplacement of the module. Proper permissions were in place. The concerns I had were resolved when the following individuals (many, many, many thanks to these guru's) : Kris Kennaway Mikko Työläjärvi Nick Rogness Gave me pointers, advice, and properly illustrated what the problem was. For the archives sake, I am posting the results of that hassle here. The first of the problems were based on the fact that I was trying to port pam_mysql. This was failing because the mysqlclient library wasn't being located when the pam libraries were loaded. There had to be an -R/usr/local/lib/mysql added to the compilation/linker commands. Then I ran into the errors : Oct 6 19:22:09 sharktooth login: in openpam_dispatch(): pam_mysql.c: no pam_sm_authenticate() Oct 6 19:22:09 sharktooth login: in openpam_dispatch(): pam_mysql.c: no pam_sm_setcred() The functions were defined properly, and I used a number of different methods. That's when I was pointed to the Makefile as the problem. The end result switched from using ld as the linker to libtool. There are still bugs to work out, but the module is beginning to function. Again, I offer a sincere thanks to those individuals listed above for their responses. Joe Lewis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Anyone using Linux-PAM on 5.x?
Having had some experience writing pam modules on a number of platforms, I whipped out my suite of pam test modules to have a look at this incredbible breakage you speak of. I mean, there is a specification for pam after all. I know of the specification. However, I have a customized version of the pam-mysql module that I have tried to install. In a previous post to this list about a week or two ago, I wrote about getting only the following entrys in the log file (an example of one from today) : Oct 5 13:04:15 sharktooth login: in opempam_load_module(): no pam_mysql.so found Oct 5 13:04:15 sharktooth login: pam_start(): failed to load module Now, it is there in the /usr/lib/ directory, it has the correct permissions, correct owner, etc. In the /etc/pam.d/login file, I've even put in absolute paths, and non-aboslute paths. I've copied existing module entries, changing only the module name (such as pam_unix to pam_mysql). Hmmm... odd; the modules all build and work just fine, modulo some minor tweaks mostly related to gcc 3.x, even though I have never built them on FreeBSD 5 before. Definitely no worse than when porting to certain commercial platforms. Can you at least point me to some documentation? I don't mind porting the module. I've copied the pam_unix.c module that comes with the openpam source code (dogwood release, the one in 5.x), changed references from pam_unix to pam_mysql, leaving the actual implementations in place so I make sure that I'm not messing something up, and STILL get the same log file entries, so it can't be the code in the module. What's the deal? Whatever difficulties you are experiencing, I'd say the reason is not specifically related to openpam or FreeBSD 5. Maybe if you post some details, such as source and error messages, someone will be able to help you. Regards, /Mikko Mikko [EMAIL PROTECTED] RSA Security If you want the source, give me a day or two to remove proprietary code, and I can get that back to you - however, it will look extremely similar to the existing pam_mysql module, because that was the basis for my work. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Anyone using Linux-PAM on 5.x?
Question for you guru's; I've been trying to install a PAM module on my FreeBSD 5.1 system. Unfortunately, someone thought they were bright and included OpenPAM, which would be fine and dandy except for it is installed by default as static. This means I PAM is now AM, because nothing is pluggable. And the documentation on getting a 3rd party module to work is like slitting your wrists and doing pushups in salt water. My request is this... I'd like to know if someone has ported Linux-PAM (the same code from the old 4.x BSD) to the new 5.x OS. If so, do you have a copy of the ported code? If not, where do I post a copy of the stuff I am going to have to port so others can use it? Please respond privately, as I am not a member of the list. Joe ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fBSD5.1 and pam-mysql troubles
I apologize - I forgot to request an off-list answer - I'm not on the list. Can anyone reply - again - directly to me this time? In addition - I hunted around quite a bit - I can't find the pam source code, there's not a pam package installed (except for pam-mysql), and there is a library in /usr/lib called libpam.a - which contains all of the pam_*.o files, and there is no pam documentation in section 8 (got plenty of section 3, though, which is worthless in the circumstances). I am starting to get the impression that who ever set up the pam interface did it with a static mentality - I feel like I'm going to have to call it Static Pluggable Authentication Modules, and I'm sick of sPAM :). Sorry for the wry humor so early in the week. Joe Joe Lewis wrote: Ladies and Gents; I've got the following problem. I installed PAM on my 5.1R version of FreeBSD. The modules are all stored in /usr/lib as /usr/lib/pam_*.so.2, with a /usr/lib/pam_*.so as a symlink to the original (from default port). I've also installed the pam_mysql.so from the port with pam_mysql-0.5 as the source. I installed the config file for login only to prevent messing something up. When I try to login, I get an error in the /var/log/messages syslog that reads, pardon my lack of memory, that it cannot find the pam module. It is in the same place as the other modules, with the exact permissions, symlinks, and everything (the install put it in the wrong place). But I still get the error messages about not finding the module. My question (may lead to a solution) : is the pam port linked to statically? Dynamically? (Statically would mean I now have to recompile it with some modifications, right?) Joe ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]