Re: LDAP/nss_ldap adduser script
On Tue, Aug 02, 2005 at 02:24:26PM +0200, Joerg Pulz wrote: user_base=`awk '/nss_base_passwd/ {print $2}' /etc/ldap.conf | cut -f1 -d?` get_next_uid() { lastuid=`ldapsearch -LLL -b $user_base objectclass=posixAccount |\ awk '/uidNumber/ {print $2}' | sort | tail -n1` if [ -z $lastuid ]; then uid=$startuid else uid=`expr $lastuid + 1` fi } #!/bin/sh uid_min=1000 uid_max=2000 get_uid() { uid=${uid_min} sort -g list-uid | while read uid_used; do if [ ${uid} -eq ${uid_used} ]; then uid=`expr ${uid} + 1` if [ ${uid} -eq ${uid_max} ]; then echo Out of UID numbers; exit 1 fi else echo ${uid} break; fi done } uid=`get_uid` if [ $? -ne 0 ]; then echo ${uid} exit 1 fi echo Lowest unused UID: ${uid} so, why all this scripting?? you could simply use the following line to get the next free uid (as long as the system is configured to use LDAP accounts) Because everyone has own environment and not enough details about his/her environment give many solutions, sometimes not optimal for another environment. Yours idea is good (if LDAP accounts work on the system), especially that pw uses bitmap to find first unused UID (if reuseuids is 'yes'). the 'cut' is necessary as 'pw usernext' reports the next free uid:gid in combination (is this a bug??) This is documented in pw(8) manual page. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PAM debug
On Tue, 26 Jul 2005 09:19:42 +0200 in lucky.freebsd.questions, Valerio daelli wrote: Hello we are having problems with PAM authenticating users on LDAP. We have FreeBSD 5.3. We would like to switch debugging. If we put this line in /etc/pam.d/login authsufficient pam_ldap.sodebug try_first_pass nothing happens. According to pam_ldap/nss manual page debug does not work with pam_ldap/nss. When I debugged my pam_ldap/nss installation I used log file from OpenLDAP server and tcpdump. For the first time my connections were not TLS encrypted, so it was easy to read content of packets. In my environment I don't use bindpw and OpenLDAP sever does not send passwords in any form to clients. Instead everyone is able to read all fields from user dn, except his/her password, when a user tries to login pam_ldap sends password over TLS encrypted channel to OpenLDAP server. Does commands like id bill works on a system with ldap_nss? Have you tried to use ldapsearch to query your LDAP server from a client machine? Create syslog-log file for LDAP server (slapd in case of OpenLDAP) and check it. By the way how are you going to share user home directories? One way is to use NFS with quota on a server (on several servers). I'm not very happy with this solution, because NFS will export all fs to clients, if somebody break root, then he/she can gain access to any user home directory. There is pam_mount, with some modifications it can be build on FreeBSD 5.x. Has somebody tried it with Samba? What are alternatives for NFS + quota for systems which use pam_ldap? ps: sorry, for possible double posting. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Electrical circuits simulator
On Thu, Jul 07, 2005 at 09:04:20PM +0530, ??? (Shantanoo) wrote: On 7/7/05, Andrey Simonenko [EMAIL PROTECTED] wrote: Hello all, What do you recommend to use for electrical circuits simulating? I need such software for educational purposes. I found Oregano in ports/cad, but may be I missed something and there is alternative with the same or better level of features as Oregano. I haven't check Oregano. But for electrical circuit simulation 'spice' is nice :) I need (not really I, but peoples I'm trying to help) a GUI application, which can: build circuits (with operational amplifiers, transistors), setup test clamps and view plots. Oregano uses ngSpice and GNU Cap as simulation backends. I quickly check documentation for Splice tools and didn't find anything about GUI. Did I miss something? BTW check Oregano screenshots: http://arrakis.gforge.lug.fi.uba.ar/shots.php I need something like this. Thanks for you help! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Electrical circuits simulator
Hello all, What do you recommend to use for electrical circuits simulating? I need such software for educational purposes. I found Oregano in ports/cad, but may be I missed something and there is alternative with the same or better level of features as Oregano. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compiling PF and IPFW in the same kernel
On Tue, 26 Oct 2004 22:46:53 +0100 in lucky.freebsd.questions, Alexandre Vieira wrote: Anyone knows if there is any problem in compiling ipfw and pf in the same kernel? Which one will be turned of by default? Or will they both be turned on? Will the default rule for PF be allow all ? They both will work. Just test it: let ipfw rules and pf rules to log information about packets they catch and check which of them get a packet first. According to netinet/ip_input.c:ip_input function ip_output.c:ip_output function in 5.2.1 first are called PFIL_HOOKed firewalls, then ipfw is called, in CURRENT it seems that all firewalls will use PFIL_HOOK. In 5.x, see net/pfil.c:pfil_list_add function, last several lines which add firewall hook to the incoming or the outgoing list will explain which of PFIL_HOOKed firewalls will be called first for incoming and outgoing directions. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Linux emulators
On Thu, 2 Sep 2004 23:57:26 -0300 (ART) in lucky.freebsd.questions, E. J. Cerejo wrote: Hello I'm running fbsd 4.10 and i would like to run linux emulator but I see 3 versions in ports, does it matter which one I install and do I have to add anything to make.conf if I choose to use one other than the one that is default? As I understand you are asking about emulators/linux_base* ports. They are different, just compare list of distfiles in their Makefiles and which one you need to install depends on applications you are going to run under Linux compatibility mode (shared libraries dependencies for example). Handbook has a good explanation about Linux compatibility mode and information about installation of additional shared libraries. There isn't any sense to duplicate it here. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
sys/i386/i386/exception.s RELENG_4 help to understand several lines
Hi, Help me to understand several lines from RELENG_4 src/sys/i386/i386/exception.s,v 1.65.2.3 file: 214 calltrap: 215 FAKE_MCOUNT(_btrap) /* init from _btrap - calltrap */ 216 MPLOCKED incl _cnt+V_TRAP 217 MP_LOCK 218 movl_cpl,%ebx /* keep orig. cpl here during trap() */ 219 call_trap 220 /* 221 * Return via _doreti to handle ASTs. Have to change trap frame 222 * to interrupt frame. 223 */ 224 pushl %ebx/* cpl to restore */ 225 subl$4,%esp /* dummy unit to finish intr frame */ 226 incb_intr_nesting_level 227 MEXITCOUNT 228 jmp _doreti Is everything correct with 218, 219 and 224 lines (or comments are wrong)? I checked several places in exception.s and vm86bios.s in sys/i386/i386/ and in all places _cpl is saved in the stack, trap() need frame{} in the stack, so here we can't put _cpl into stack, but it is unclear for me how above listed lines works. How can %ebx contain saved _cpl after trap()? TIA ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: decompressing source
On Fri, 19 Sep 2003 04:37:46 + (UTC) in lucky.freebsd.questions, Alain Dazzi wrote: Just a basic question, what unix command should I use to decompress (expand) the various data files after downloading the sources via ftp. For instance ssys.aa - ssys.ak should get expanded into sys. You should use a pipe of cat and tar commands. There are install.sh scripts, which know how to install files from the distribution. From the src/install.sh script: if [ $1 = all ]; then dists=base bin contrib etc games gnu include lib libexec release sbin share sys tools ubin usbin else dists=$* fi echo Extracting sources into ${DESTDIR}/usr/src... for i in $dists; do echo Extracting source component: $i cat s${i}.?? | tar --unlink -xpzf - -C ${DESTDIR}/usr/src done ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make.conf question
On Tue, 26 Aug 2003 10:41:34 + (UTC) in lucky.freebsd.questions, Peter Ulrich Kruppa [EMAIL PROTECTED] wrote: Hi! 1) Can I put any make option into make.conf that can be applied to ports (like inmake WITH_CALENDAR=yes install clean) or is this restricted to system ressources? 2) If yes - would this be advisable? - Or is there a big chance to produce some sort of mess? I use following in /etc/make.conf: .if ${.CURDIR:N*/ports/news/tin} == WITH_TIN_NNTP_ONLY=yes #WITH_TIN_METAMAIL=yes WITH_TIN_ISPELL=yes .endif ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How an arbitrary user can install ports in own home dir?
On Wed, 16 Jul 2003 13:46:34 + (UTC) in lucky.freebsd.questions, Daniel Bye wrote: First of all thank you for your help, all what you said is correct. Next see below. On Wed, Jul 16, 2003 at 03:03:04PM +0300, Andrey Simonenko wrote: Hello all, How an arbitrary user (without root credentials) can install ports in own home dir? How I tried to do this: I created ~/local/ports, place Mk, Tools, Templates there. This step isn't necessary. Well, it might be, but only if you don't have r-x access on /usr/ports and descendents. I have to maintain own ports collection, because /usr/ports on target server is very outdated. But when I install any ports I'm asked to enter root password. This is from the bsd.port.mk: .if ${UID} != 0 defined(_${target:U}_SUSEQ) [skip] @echo === Switching to root credentials for '${target}' target @cd ${.CURDIR} \ ${SU} root -c ${MAKE} ${__softMAKEFLAGS} ${_${target:U}_SUSEQ} @echo === Returning to user credentials If I give correct root's password, then a port is installed to ~/local and a package is registered in ~/local/var/db. Hmm, don't know what this means. With the correct set of variables defined, I have not yet been asked to provide the root password... I think that something is broken in bsd.port.mk, because on another machine with old /usr/ports I _can_ install ports under in my home directory (using the method I described in my original message and additionally defining NO_MTREE=yes in environment). But with current ports collection that error about ``Switching to root...'' always appeared. On my system bsd.port.mk has 1.456 version. I suppose that this error was introduced in bsd.port.mk version 1.455. Which version of bsd.port.mk is installed on your system? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Bandwidth Monitoring
On Tue, 15 Jul 2003 13:32:26 + (UTC) in lucky.freebsd.questions, David Loszewski wrote: Say I have a 20GB Data Transfer limit per month, is there a way to monitor how much of that limit I've used up? MRTG doesn't seem to do the job. sysutils/ipa from the Ports Collection can do it. I even can try to write ipa.conf (but didn't test it), let 100, 200, 300 be IP Firewall rules which counts ingoing traffic from ISP: rule isp-ingoing { ipfw = 100 200 300 info = Ingoing traffic from ISP maxchunk = 1G # This allows to monitor traffic before limit 20G. #limit 10G { #byte_limit = 10G # zero_time = +M # reach { # exec = /bin/echo 10G reached | /usr/bin/mail admin # } # expire { # expire_time = 0s # } #} # # This is 20G/month limit. limit 20G { byte_limit = 20G zero_time = +M reach { exec = /sbin/ipfw add 10 deny all from me to my-isp exec = /bin/echo 20G reached | /usr/bin/mail admin } expire { expire_time = +M exec = /sbin/ipfw del 10 exec = /bin/echo 20G reached limit expired | /usr/bin/mail admin } startup { if_limit_is_reached { exec = /sbin/ipfw add 10 deny all from me to my-isp } } } } I didn't test this config and it can contain errors! More information in IPA manual pages (also available on http://ipa-system.sourceforge.net/). ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How an arbitrary user can install ports in own home dir?
Hello all, How an arbitrary user (without root credentials) can install ports in own home dir? How I tried to do this: I created ~/local/ports, place Mk, Tools, Templates there. I defined in .cshrc: setenv PORTSDIR~/local/ports setenv PREFIX ~/local setenv PKG_DBDIR ~/local/var/db But when I install any ports I'm asked to enter root password. This is from the bsd.port.mk: .if ${UID} != 0 defined(_${target:U}_SUSEQ) [skip] @echo === Switching to root credentials for '${target}' target @cd ${.CURDIR} \ ${SU} root -c ${MAKE} ${__softMAKEFLAGS} ${_${target:U}_SUSEQ} @echo === Returning to user credentials If I give correct root's password, then a port is installed to ~/local and a package is registered in ~/local/var/db. Questions: 1. Is there any way to tell ports system not to ask me root's password? I guess that there should be a way to do it, whithout patching Mk/* files. 2. How to tell make(1) to use ~/local/etc/make.conf file (use another file, than /etc/make.conf)? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: parameters to a kld
On Mon, 14 Jul 2003 09:01:46 + (UTC) in lucky.freebsd.questions, Anurag Chaudhary wrote: How can I pass load time parameters to a kld. Not sure that it is possible, at least kldload(2) doesn't accept any arguments, except kld file path. Probably sysctl variables can help. Also my /proc directory is empty.Why is it so? Is procfs(5) mounted to /proc directory? Checkout output of the mount command and content of the /etc/fstab file. If I have to see the address of a pci port or say parallel port, how can I do so? dmesg(8) usually helps (also see /var/log/messages). ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: parameters to a kld
On Mon, 14 Jul 2003 10:49:29 + (UTC) in lucky.freebsd.questions, Anurag Chaudhary wrote: thanx for that procfs stuff. I have mounted procfs now. I dont think you can create your own sysctl variable. If its possible, please tell me how. It allows you to only set or get values of existing variables I meaned sysctl variables inside a kld module. As I understand sysctl variables in kld modules are created as any other sysctl variables in the kernel. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Trafic Counter
On Fri, 13 Jun 2003 12:24:35 + (UTC) in lucky.freebsd.questions, Ian Barnes wrote: Hi, I am running FreeBSD 4.8 with squid v 2.5_2. It is only active for one ethernet card (I have 3). I am using IPF, with IPNAT to do the NAT What i would like to know, is how could i count the trafic through that ethernet card, and that one only. And can i possibly set a limit as to the amount of trafic they are allowed to use. Like say 200meg a month or something? Port sysuils/ipa solves both tasks. But if you use IP Filter on FreeBSD, then read information about IP Filter on FreeBSD on IPA home page http://ipa-system.sourceforge.net/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make buildworld failed
On Wed, 11 Jun 2003 08:32:59 + (UTC) in lucky.freebsd.questions, çÎÉÔÉ£× ÷ÉËÔÏÒ wrote: [-- text/plain, encoding 7bit, charset: koi8-r, 28 lines --] Hi, All. I have a problem with make buildworld on various FreeBSD systems (4.1, 4.4, 4.7). On all systems I used CVSUP with next parameters: *default host=cvsup4.ru.FreeBSD.org *default base=/usr *default prefix=/usr *default release=cvs tag=RELENG_4 *default delete use-rel-suffix #*default compress src-all Then, I run make buildworld from /usr/src/, and it failed on various steps (depending OS-version). It is always better to include error messages in such problem reports. Use script(1) for this. Is your system overclocked or does it have some hardware related problems? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: making expect without X11
On Sun, 30 Mar 2003 16:34:44 + (UTC) in lucky.freebsd.questions, Jim Arnold wrote: How do I compile expect without having X windows installed? If I use: make WITHOUT_X11=yes if bombs out with the message below: I'm sorry, I made mistake in previous my answer, your command is correct as well. ct.o shared/exp_event.o shared/exp_chan.o shared/Dbg.o -Wl,-rpath,/usr/local/lib -L/usr/local/lib -ltcl83 -lm -lc /usr/libexec/elf/ld: unrecognized option '-Wl,-rpath,/usr/local/lib' /usr/libexec/elf/ld: use the --help option for usage information *** Error code 1 Stop in /usr/ports/lang/expect/work/expect-5.38. *** Error code 1 Stop in /usr/ports/lang/expect. Please CC any responses to me as I cannot subscribe to the list. On my ports collection I also can't build expect. It seems that ld(1) doesn't understand -Wl option, actually this is a option of gcc(1) for the linker. Check output of ld --help and man page for gcc. When make WITHOUT_X11=yes build reaches that error message on my system, I modified expect's Makefile (in the work directory) and successfully build expect from ports collection. Modification: change -Wl,-rpath,/usr/local/lib to -rpath /usr/local/lib in expect's Makefile. Right now I can run expect, but more tests should be done if above mentioned modification is correct. I suppose that this a bug and appropriate PR should be sent to FreeBSD. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: making expect without X11
On Sun, 30 Mar 2003 16:34:44 + (UTC) in lucky.freebsd.questions, Jim Arnold wrote: How do I compile expect without having X windows installed? If I use: make WITHOUT_X11=yes if bombs out with the message below: # make -DWITHOUT_X11 Please CC any responses to me as I cannot subscribe to the list. Use http://groups.google.com/ to read freebsd-questions mailing list. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem
On Fri, 28 Mar 2003 18:27:31 + (UTC) in lucky.freebsd.questions, Aleksey V. Dolya wrote: Hello. I have problem in configuring XFree86 in FreeBSD 4.7 I try to configure it after installation. I used graphical tool and textmode utility too. Do you use XFree86-4? Try to run xf86cfg with option -nomodules, on two my machines this helped to configure hardware devices (cheap S3 and ATI video cards). ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: System abused by spammer?
On Fri, 28 Mar 2003 09:06:21 + (UTC) in lucky.freebsd.questions, Martin Moeller wrote: I thought, sendmail rejects relaying per default. What can I do? (HELP!!! (!!!) ) There is relay_based_on_MX feature in Sendmail. Check if your Sendmail has this feature off, also check if that spammer specified your system as MX for his/her domain. Hope this will help. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem whith command chsh !!!
On Thu, 27 Mar 2003 08:22:29 + (UTC) in lucky.freebsd.questions, Taras Panchyshyn wrote: [skip] In the user's database appear two records about this user :old record and record whitch changes that i made by chsh: [skip] In the older version of FreeBSD (4.3 - 4.7) command chsh work properly. Please help me to resolve this problem. Submit a PR (send-pr(1)). ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to set aplication web in FreeBSD
On Wed, 19 Mar 2003 08:10:41 + (UTC) in lucky.freebsd.questions, Andhy wrote: Heloo sir.. My name andhy my office use aplication FreeBSD and use NT4 to LAN in all PC Please help for asked to u about freeBSD and make my aplication web working in FreeBSD My application web server use ColdFusion Studio 4.5.1, n use server PWS or IIS, How can windows aplicaton can working in FreeBSD There are emulators for such tasks: $ cd /usr/ports/emulators $ make search key=windows I'm not sure that you will get any benefits from such emulation (no speedups, no stability, etc.). Why to use an application under emulation if you've got the native operating system for this application. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Problem with apache
On Wed, 19 Mar 2003 06:35:12 + (UTC) in lucky.freebsd.questions, Ian Larsen wrote: I've got two FreeBSD boxes on my home network. They are both assigned local IP addresses through DHCP. I've just installed Apache on both of them tonight, and I can access one machine just fine using its local IP address. (192.168) The other, I can telnet to port 80 on it using: $ telnet localhost 80 Trying ::1.. Connected to localhost. Escape character is '^]' But if I try using its IP address, even the loopback, the connection is refused: $ telnet 127.0.0.1 80 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: unable to connect to remote host Following checks should help: 1. Check on which interfaces your Apache server works: sockstat -l. 2. Check NICs IP addresses: ifconfig -a 3. Check routing table: netstat -rn 4. Check IPFW ipfw l (and/or IPF ipfstat -io) tables. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: boot0cfg?
On Tue, 18 Mar 2003 08:55:24 + (UTC) in lucky.freebsd.questions, Henrik Hudson wrote: I read the man page for boot0cfg and although that seems to be able to install boot0 into various places, it doesn't seem to let one modify what boot0 displays??? You should modify source file. Look at /sys/boot/i386/boot0/boot0.s (for i386). I'm not sure that there is free space in boot0, check this. If there is free space in boot0, then you can modify it. If boot0 doesn't have free space, then you can remove some file system names from boot0.s and add names you need. You should make modification of boot0 code very _carefully_ and test boot0 with the _floppy_. And double check that boot0 actually can't understand your file system, check if boot0.s doesn't have partition id in tables: (look at the end of boot0.s). To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Intelligent Bandwidth Limiter?
On Sun, 16 Mar 2003 18:38:59 + (UTC) in lucky.freebsd.questions, Tino Didriksen wrote: (trying this again, since it didn't appear last time I sent it...) I have a dedicated server with 500GB monthly transfer limit, and I don't want to cross that limit. So, I want to impose an artificial maximum bandwidth, yet not until a certain threshold has been reached. Example: I have 500GB total max monthly transfer. I want a 400GB threshold before the limiter kicks in, which will impose a byte/second limit for the remaining 100GB, so that it never goes over 500GB for the month. But, from when the limiter has started till the end of the month, it should recalculate remaining GB every half hour and adjust the byte/second limit accordingly, since peak/idle hours are so varied. I think that port sysutils/ipa (1.3.1 latest version) will help you, check limit section in ipa, also check two examples in /usr/local/share/examples/ipa. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: searching for documentation in english for mysql on freebsd 4.4
On Mon, 17 Mar 2003 08:49:41 + (UTC) in lucky.freebsd.questions, frank amo wrote: Hello, I am looking for some documentation in english that can help me get mysql working on my freeBSD box. I am using FreeBSD 4.4 and I downloaded this file for FreeBSD, I am aware that it is written for 4.7, that may be the problem that I am having. http://www.mysql.de/downloads/mysql-3.23.html Here is their documentation, this is why Im emailing you guys.: http://www.mysql.de/documentation/mysql/bychapter/index.html Its the best Ihave found so far, but its not in english. Is there a site you know of that can help me with MySQL on FreeBSD? Why not to start with www.mysql.com, and find English version of MySQL documentation there? MySQL Reference Manual has information about building MySQL on FreeBSD. By the way, there is a port for MySQL in FreeBSD ports collection, may be this helps you more. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Network adapter
On Thu, 13 Mar 2003 02:05:37 + (UTC) in lucky.freebsd.questions, R S wrote: Does it matter that my network adapter is ed1? Should it be ed0? During boot, I keep getting the ed0 device not configured.why? It looks like that ed0 is specified in your kernel configuration file as not PnP NIC, and you've got PNP. Check how ed0 is specified in the kernel configuration file (also check /boo/kernel.conf if you have it). To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: ipfw count Q
On Sun, 22 Dec 2002 11:10:01 + (UTC) in lucky.freebsd.questions, Alexander Yeremenko wrote: I have a box, running as router. Network A.B.C/Z is connected via ppp0 router:/rc.firewall : ipfw add 10 connt all from any to any via ppp0 ipfw add 15 connt all from any to A.B.C/Z ipfw add 15 connt all from A.B.C/Z to any Rules 10 and 15 gives absolutely different results. What's wrong ? Nothing is wrong, because #10 and #15 describe completely different firewall rules. For example, #10 checks only packets via ppp0, but #15 checks packets via any interface. And so on. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Arp and Route Commands
On Sun, 17 Nov 2002 20:56:55 + (UTC) in lucky.freebsd.questions, Karl Timmermann wrote: Hello, I'm new to the list and was hoping maybe someone could help me. These commands work in Linux (and in this order), but not in FreeBSD/Mac OS X as the arp and route commands are different: arp -s 10.10.10.0 00:00:ca:13:4b:54 -i eth1 arp -s 10.10.10.0 00:00:ca:13:4b:54 -i eth1 arp -s 10.10.10.0 00:00:ca:13:4b:54 arp -s 10.10.10.0 00:00:ca:13:4b:54 route add -net 10.10.10.0 netmask 255.255.255.0 dev eth1 route add -net 10.10.10.0 -netmask 255.255.255.0 -interface eth1 route add default gw 10.10.10.0 dev eth1 route add default 10.10.10.0 -interface eth1 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: ipv6 conf
On Wed, 6 Nov 2002 13:32:51 + (UTC) in lucky.freebsd.questions, Tiago Andre wrote: Hello there... iam trying to configure my little net ipv6, by ifconfig xl0 inet6 ::::1 and it work fine (using ping6), but the problem is when i restar my machine, i have to do all again (ifconfig), i already try to change my rc.conf but it doesnt work. Does anyone known what is appening? I don't use IPv6, but I managed to configure some IPv6 aliases on lo0 wuth the help of /etc/rc.conf without any problems, I think you should give configuration you wrote in rc.conf and version of the system you use. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: No route to host
On Mon, 28 Oct 2002 12:33:31 + (UTC) in lucky.freebsd.questions, Christian M?nk wrote: Hello FreeBSD Team. My name is Christian and I have a problem. I looked through the FAQ and the docs about the prob. when you get the No route to host reply when trying to ping. But my nic is intact. I made some Kernel configurations cause I want this one PC act as a router. So I thought something with all the stuff I changed is wrong. So I # everything out in the rc.conf that might cause the problem. Even though, what I as a beginner don?t like is that there are so many examples out there about how to config your system to act as a router. Is there no main script that includes it all? Well so much for that one. Hopefully you guys can help me, since I?m totally down cause I?m working on that prob. 4 days now. Thanks in advance. Follow this steps: 1. Configure your kernel to see your NICs in dmesg(8) output. 2. Add ifconfig_fxp0=inet 10.10.10.10 netmask 255.255.255.0 like strings to /etc/rc.conf file and check if your NICs have correct IP addresses. Use ifconfig(8) command for this. 3. Add default route for your computer with the defaultrouter parameter in /etc/rc.conf. If you use, for example, pppd(8), then read documentation for pppd(8) how to set default route. 4. Then try to send packets to some hosts no in your LAN. 5. Say your computer to be a router with the gateway_enable variable in /etc/rc.conf. 6. ... try to do above steps first. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: help with socket programming
On Wed, 23 Oct 2002 22:45:06 + (UTC) in lucky.freebsd.questions, Vinod wrote: i need a socket descriptor handle to process all my clients which fork out.but the handle i was using new_fd(see below) turned out to be the same for all. listen(..,..) for(;;) { int new_fd=accept(sockfd,,...); ... } Shouldnt the new_fd be distinct everytime a new client connects? I don't clearly understand your question, especially if you read Stevens books, but I'll try to answer. new_fd variable is just overwritten each time accept() returns a new socket descriptor for a new connection. If you need to keep connections with all clients at the same time in a single server, so, you need to save each new_fd descriptor in an array, for example. If you fork() a new process for handling a new connection, then you need to close() new_fd descriptor in the server and use new_fd descriptor in the forked process. In any way, it is better to ask such questions in comp.unix.programmer news group. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Help me with building JDK1.3.1 (strange error with BOOTDIR variable)
Hello all, Can somebody explaine me what I do wrong when building jdk1.3.1 port on FreeBSD 4.6-STABLE? [root@lion jdk13]# make -DNATIVE_BOOTSTRAP -DNODEBUG build === Building for jdk-nodebug-1.3.1p7 i386 Build started: 1.3.1-p7-root-021016-17:10 ERROR: BOOTDIR does not point to a valid Java 2 SDK Check that you have access to /usr/local/jdk1.3.1/bin/java and/or check your value of ALT_BOOTDIR. Exiting because of the above error(s). gmake: *** [sanity] Error 1 *** Error code 2 Stop in /usr/ports/java/jdk13. ps: I downloaded JDK sources from Sun and patches as it is said in jdk13 port. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Help me with building JDK1.3.1 (strange error with BOOTDIRvariable)
Thanks, I'll try this (I've just started to download linux-sun-jdk13 from Sun). Actually I want to install Java plugin for Mozilla (compiled for FreeBSD), as I understand I try to install correct port for this, isn't it? What are the better arguments for make utility for jdk13 port if I want to build Java plugin for Mizlla? On Wed, 16 Oct 2002, Matthew Seaman wrote: On Wed, Oct 16, 2002 at 05:16:25PM +0300, Andrey Simonenko wrote: Hello all, Can somebody explaine me what I do wrong when building jdk1.3.1 port on FreeBSD 4.6-STABLE? [root@lion jdk13]# make -DNATIVE_BOOTSTRAP -DNODEBUG build === Building for jdk-nodebug-1.3.1p7 i386 Build started: 1.3.1-p7-root-021016-17:10 ERROR: BOOTDIR does not point to a valid Java 2 SDK Check that you have access to /usr/local/jdk1.3.1/bin/java and/or check your value of ALT_BOOTDIR. Exiting because of the above error(s). gmake: *** [sanity] Error 1 *** Error code 2 Stop in /usr/ports/java/jdk13. ps: I downloaded JDK sources from Sun and patches as it is said in jdk13 port. Catch 22: you need an installed and working JDK before you can bottstrap a JDK. I this case, just install one of the linux JDK's --- I think linux-sun-jdk13 is quite popular for this job. Then you can build and install the native JDK, and once that's working OK, you can get rid of the linux JDK. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message