Error installing MySQL server from ports
Dear list I have upgraded the ports tree on our FreeBSD 4.5 box this morning in preparation to install MySQL. Running "make fetch" in the databases/mysql5-server directory gives the following error and then stops. "Makefile", line 156: Malformed conditional (exists(${DB_DIR}) && defined(OVERWRITE_DB) && ${OVERWRITE_DB:L} != "no") "Makefile", line 159: Malformed conditional (!exists(${DB_DIR}) || (defined(OVERWRITE_DB) && ${OVERWRITE_DB:L} != "no")) "Makefile", line 167: if-less endif "Makefile", line 167: Need an operator "Makefile", line 181: if-less else "Makefile", line 181: Need an operator "Makefile", line 201: if-less endif "Makefile", line 201: Need an operator make: fatal errors encountered -- cannot continue I have tried each of the MySQL server versions 4, 4.1 and 5 with each giving similar errors (just different line numbers in the Makefile.) Any ideas? Martyn Hill Network Administrator St James Independent School London ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How do I install latest Samba (3.0.1) from ports?
Dear all Is it just a matter of time before the samba 3.0.1 port is made available from the ports tree (/net/samba-devel) or is there another way to coherently patch the 3.0.0 install without screwing-up the ports install? TIA. Martyn Hill Network Administrator St James Independent School London ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How do I add a third ATA controller to 4.8?
Paul I notice that the kernel config file you present is using the "old" device ata lines - is the ATA controller a particularly old model? If not, then the LINT kernel config file shows an alternative, viz deviceata# just one entry for all ata controllers, no need to reference IRQs etc... deviceatadisk# for your IDE disks deviceatapicd# for your CD-ROM like devices You should comment out the ata0/ata1 lines before adding the above (and additionally, remove any "device wd*" lines in that section.) Then rebuild your kernel. Hope that helps. Martyn Hill Network Administrator St James Independent School London - Original Message - From: "Paul Hoffman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 12, 2004 5:13 AM Subject: How do I add a third ATA controller to 4.8? > Greetings again. I have a Dell 600SC that has three ATA controllers > on the motherboard, and I'm running 4.8 quite happily on it. The > GENERIC kernel has the following: > > device ata0at isa? port IO_WD1 irq 14 > device ata1at isa? port IO_WD2 irq 15 > > Since I didn't know the irq used by the third controller (it's not > listed in their documentation, of course!), I blithely tried adding: > > device ata2at isa? port IO_WD3 > > However, when rebuilding this kernel, I get the following error: > > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. > -I../../../include -I../../contrib/ipfilter -D_KERNEL -include > opt_global.h -mpreferred-stack-boundary=2 ioconf.c > ioconf.c:48: `IO_WD3' undeclared here (not in a function) > ioconf.c:48: initializer element is not constant > ioconf.c:48: (near initialization for `ata2_resources[1].u.longval') > *** Error code 1 > > So, what am I supposed to add to the kernel to add this third controller? > > --Paul Hoffman > ___ > [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]"
What support for USB2/Firewire External HDD in 4.8
Hi I have been trying to evaluate the support offered under 4.8 for external USB2/Firewire drives. I've browsed the firewire mailing list archive but am still left unsure. In particular, has anyone had experience or knowledge on the Adaptec "DuoConnect" AUA3020 PCI card (dual USB2 and Firewire) and an Amacom 40GB EZ2Disk (again, USB2 and Firewire) with FreeBSD? I wouldn't expect to be unmounting regularly - its really as part of a backup solution. Apologies if this has been answered before, I have scanned the questions list but didn't find quite the thing... TIA Martyn Hill Network Administrator St James Independent School London ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Ecrix VXA-1 IDE and FreeBSD
Dustin > Did you get the VXA-1 working under FreeBSD? I was looking at the Exabyte > VXA-1 (http://www.cdw.com/shop/products/default.asp?EDC=437332) for FreeBSD > 4.4-RELEASE. Not yet - haven't had a single response from the mailing-list... > Do you know if this is the Ecrix is the same as the Exabyte? I believe they come from the same source - the "VXA" bit would tend to confirm this. However, can't be sure. Wish I could be of more help! Martyn Hill Network Administrator St James Independent School London ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Ecrix VXA-1 tape drive and FreeBSD 4.5
Hi I've never yet managed to get a solution to the following problem, but thought I'd try one last time before ditching the Ecrix tape we bought last year... We run FreeBSD 4.5 RELENG on our fileserver (sjserver) and I have installed an Ecrix VXA-1 tape drive (IDE) on the secondary on-board IDE controller. The system has an additional E-IDE controller. The following message snip appears in /var/log/messages: Nov 25 20:53:01 sjserver /kernel: ad0: 19623MB [39870/16/63] at ata0-master UDMA33 Nov 25 20:53:01 sjserver /kernel: ad4: 39266MB [79780/16/63] at ata2-master UDMA100 Nov 25 20:53:01 sjserver /kernel: ad6: 39266MB [79780/16/63] at ata3-master UDMA100 Nov 25 20:53:01 sjserver /kernel: (null): MODE_SENSE - UNIT ATTENTION asc=29 ascq=00 error=04 Nov 25 20:53:01 sjserver /kernel: (null): MODE_SENSE - ILLEGAL REQUEST asc=24 ascq=00 sks=40 00 02 error=04 Nov 25 20:53:01 sjserver last message repeated 3 times Nov 25 20:53:01 sjserver /kernel: ata1-master: tape device - NO DRIVER! Nov 25 20:53:01 sjserver /kernel: acd0: CDROM at ata1-slave using PIO4 N The kernel has been compiled with a config file that has what I believe to be the appropriate drivers: # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atapist # ATAPI tape drives options ATA_STATIC_ID # Static device numbering Q1: With reference to the line above that end "NO DRIVER!" - what exactly does this signify? I wasn't aware that a particular driver was required for an IDE drive. Q2: Has any one used this IDE device successfully and could forward their solution? Q3: What dev number would be required/used for this device (ad2, ata1-master) Q4: Is it the combination of Tape-drive and CD-ROM on the same controller likely to be the cause difficulty? As always - any assistance would be very welcome! Martyn Hill Network Administrator St James Independent School London ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Ifconfig - no aliases?
Steve Having just implemented IP aliasing on a NIC in our FreeBSD 4.5 server and goten it to work, my first thought is that the netmask for the alias should be 255.255.255.255 if, as in this case, both IPs should sit on the same subnet. Don't ask me why, but it does work. I believe I read it in the handbook or the man pages somewhere. Good luck. Martyn Hill Network Administrator St James Independent School London - Original Message - From: "Steve Warwick" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 11:15 AM Subject: Ifconfig - no aliases? > Hey All, > > Can some bright spark spot a mistake in this? > > For some reason I cannot get my NIC aliases to come up. Everything looks > fine but no go. > > > Here are the entries in rc.conf for the card (the first two digits are xx'd > for this email): > > hostname="not-sharing-that-rightnow" > defaultrouter xx.100.110.1" > ifconfig_rl0="inet xx.100.110.160 netmask 255.255.255.0 broadcast > xx.100.110.255" > > # virtual IP ports > ifconfig_rl0_alias0="inet xx.100.110.161 netmask 255.255.255.0 broadcast > xx.100 .110.255" > more entries > > > > And here is the ifconfig output - everything is happy on the main IP - just > no one else wants come and play > > ns1# ifconfig > rl0: flags=8843 mtu 1500 > inet xx.100.110.160 netmask 0xff00 broadcast xx.100.110.255 > inet6 fe80::205:5dff:fe36:b97%rl0 prefixlen 64 scopeid 0x1 > ether 00:05:5d:36:0b:97 > media: Ethernet autoselect (100baseTX ) > status: active > lo0: flags=8049 mtu 16384 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > inet 127.0.0.1 netmask 0xff00 > faith0: flags=8002 mtu 1500 > > > > > suggestions? > > > > Steve > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
IP Aliasing in rc.conf
Hi all Can someone confirm that the following is the correct way to implement one IP alias (same subnet) on a single fxp NIC in rc.conf (for the purposes of running a "dual samba/samba-tng" installation): ipconfig_fxp0="inet 10.0.0.201 netmask 255.0.0.0" ipconfig_fxp0_alias0="inet 10.0.0.211 netmask 255.255.255.255" Regards Martyn Hill Network Administrator St James Independent School London To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Subnetting or Bridging to secure different dapartments on our School LAN?
> > Martyn Hill wrote: > > Do I use ifconfig to alias the one internal NIC in the present gateway to > > create virtual sub-nets? > > Bill Moran wrote: > That would be the method I would suggest, however without more details of > your network it's kind of hard to be sure it's the best method. What you > could do is: > > ADSL router > | > FreeBSD BOX > | > switch > / | \ >/ | \ > /|\ > hub1 hub2 hub3 > / | \ > subnet1 subnet2 subnet3 > > The switch will keep traffic from subnet1 off subnet2 & subnet3 (and vise > versa) The freeBSD box has 2 nics, one to the ADSL, the other to the switch. > The NIC to the switch has an IP for each subnet and IPFW rules for each IP. > If the IPFW rules are identical for each subnet, you'll be able to consolidate > them a good bit. > Thank you very much for your ideas and time, Bill. You mention the use of hub1, 2 etc. Can I assume that some small switches (we use a few netgear 5 and 8 port switches around the building already) would do the job, given that the other departments amount to a handful of workstations each? > > Which one is really best depends a lot on details that you haven't > yet provided. Like, what traffic _exactly_ do you want to prevent from > crossing subnets? SMB browse announcements won't cross subnets, for example > (they'll get stopped at the switch) but cross-network browsing is still > possible by IP address (or if you use WINS). What this means (from a Windows > perspective) is that Windows machines on subnet1 won't see Windows machines > on subnet2 in their network neighborhood, but they will be able to access > them if the user knows the IP address of the machine he wants to connect > to. So it depends on whether you want to offer _real_ security or just > obscurity. (this is dependent on using the method I diagramed above, other > methods offer different levels of security/obscurity) > We do use WINS (via Samba-TNG) for our own curriculum/admin network, but the other departments are supposed to contain themselves to their own workgroups. Obscurity would provide sufficient protection for (from?) most, if not all, of our user base - I'm not aware of any potential hackers amoungst the school population, (if I found one, I'll be proud, as I'm the one who teaches the pupils IT!) My concerns over security are three fold: Access to SMB fileshares and printers (especially from some newly introduced Windows XP clients, which seem intent on discovering everything on the network and adding it to their own browse lists...) The ability of a virus outbreak to spread rampantly throughout the whole site. The limiting of adverse network 'noise' from one department affecting the bandwidth for others, (not really a security issue.) I appreciate the vaugeness of the information, I guess I'm not sure what traffic I _should_ be filtering out. Any ideas? Where should I turn next to penetrate the topic of aliasing using ifconfig? Best regards Martyn Hill ICT Teacher and IT Coordinator St James Independent School London To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Subnetting or Bridging to secure different dapartments on our School LAN?
Dear all I'd be very grateful for any insights you could share... Our school network continues to grow. Different departments within the school wish to piggy-back their windows machines on to our broadband internet connection, via our 100Mbps wired LAN within the building. Before I can allow anymore machines on, I need to put a measure of security in place - principally between the school Admin and Curriculum 'networks' and also between the other 3 departments who share the site with us. I was thinking along the lines of subnetting our existing network and applying a firewall between each sub-net. Currently, our setup comprises of two FreeBSD (4.5RELENG) boxes - one acting as a gateway/firewall between our private network (10.x.x.x/8) and the ADSL router, the other as a fileserver/web proxy/redirector and email server to our 40 or so Windows clients. DHCP and DNS is provided by the gateway. The gateway currently runs with two NICs - one to a switch, the other to the ADSL router. All other machines, including the fileserver hang off the switch. The ADSL router has another 3 10Mbps ports available for direct connection. The Admin and Curriculum users need to share the fileserver (for now, at least.) The other new users simply need the broadband connectivity (with or without the web-proxy facility that currently sits on the fileserver.) Questions: Do I consider placing more NICs into the gateway in order to create (along with a few switches) the new sub-nets, placing a firewall (ipfw) between each interface? Is it even possible to run >1 ipfw on the same box? Do I build a couple of cheap boxes (like the P90 I'm using for the current gateway) with FreeBSD and set them up for bridging along with ipfw? Do I buy a few hardware routers with firewall facility and build my sub-nets that way? Do I use ifconfig to alias the one internal NIC in the present gateway to create virtual sub-nets? Is a firewall really what I need to restrict particular traffic (like SMB browsing) across the sub-nets? Or, am I barking up the wrong tree (spanning, or otherwise...)? Thanks in advance. Martyn Hill ICT Teacher and IT Coordinator St James Independent School London To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: How do I use the -h option in PW to set passwords fo rnew users
Matthew Thanks very much for your reply. It seems to work OK. I'm still not sure what requirements Samba places on the Unix users' password when a Samba user is first created. It could be that the -h - option in PW (set password to *) will work - I can then script Samba password changes from within Samba itself (slightly off topic, sorry.) Cheers. Martyn Hill ICT Teacher and IT Co-ordinator St James Independent School London - Original Message - From: "Matthew Seaman" <[EMAIL PROTECTED]> To: "Martyn Hill" <[EMAIL PROTECTED]> Cc: "Questions FreeBSD" <[EMAIL PROTECTED]> Sent: Saturday, September 14, 2002 4:04 PM Subject: Re: How do I use the -h option in PW to set passwords fo rnew users > On Sat, Sep 14, 2002 at 02:46:50PM +0100, Martyn Hill wrote: > > I need to set-up about 200 user accounts under FreeBSD 4.5-RELEASE for the > > school pupil and staff population. We run Samba-TNG to share files, but need > > to create the UNIX users first. I intend to run a simple script to create > > the users with a pre-prepared password. > > > > I've looked at PW but can't understand how the -h option is supposed to work > > for setting initial passwords for new users. How do I specify the "file > > descriptor" as described in the man page? > > > > I've tried creating a file containing the password and specifying: > > > > pw adduser ... -h /path_to_file_containing_users_password > > > > You can use bourne shell to do that very easily: > > % echo "foobar" > /tmp/pass > % su root -c sh > Password: > # pw useradd -n test -c "Test User" -m -h 3 3< /tmp/pass > # grep test /etc/master.passwd > test:$1$T2tu0BET$UGPrNB1FavzjlzhTwUWRN.:1002:1002::0:0:Test User:/home/test:/bin/sh > # exit > % su test > Password: [typed "foobar" here...] > $ exit > > The crucial bit is the '3<' construct: see the section on > "Redirections" in the sh(1) man page for details --- bash(1), ksh(1), > zsh(1) etc all support a similar mechanism, but csh(1) and tcsh(1) > don't. > > You should probably use a file descriptor greater than 2 for this, as > fd's 0, 1, 2 usually correspond to stdin, stdout and stderr > respectively. > > 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
Re: config
David Thank you very much - makes sense really. I did wonder how the ADSL username and password were dealt with, but it seems that the router itself stores these as part of its configuration. Now to try it! Martyn. - Original Message - From: "dnu" <[EMAIL PROTECTED]> To: "Martyn Hill" <[EMAIL PROTECTED]> Sent: Tuesday, July 23, 2002 9:12 AM Subject: config Hello, Ooops! Forgot to mention the configuration stuff. Of course, first disable ppp in rc.conf and add the following lines: defaultrouter="x.x.x.x" # your isp's router IP ifconfig_fxp1="inet x.x.x.x netmask y.y.y.y" # your NIC IP & mask Well, the NAT stuff, you already know: natd_enable="YES" # to enable sharing natd_interface="fxp1" # obviously :) natd_flags="(your flags)" # man natd for info and reboot. David To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
PPP and ADSL question
We've been running our ADSL line successfully since it's installation last September. The ADSL router is configured as the default route on a second NIC (fxp1) in our FreeBSD 4.5-RELENG box that acts as the school router. UserPPP is enabled, but NAT is handled by the kernel alongside IPFW. UserPPP is configured in "ddial" mode. Ever since ADSL was installed, the ppp.log file continually fills with the error message as follows (repeated about every 30 seconds): Jul 22 14:45:54 sjrouter ppp[56]: tun0: Phase: deflink: Disconnected! Jul 22 14:45:54 sjrouter ppp[56]: tun0: Phase: deflink: carrier -> hangup Jul 22 14:45:54 sjrouter ppp[56]: tun0: Phase: deflink: Connect time: 6 secs: 0 octets in, 0 octets out Jul 22 14:45:54 sjrouter ppp[56]: tun0: Phase: deflink: : 0 packets in, 0 packets out Jul 22 14:45:54 sjrouter ppp[56]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Mon Jul 22 14:45:54 2002 Jul 22 14:45:54 sjrouter ppp[56]: tun0: Phase: deflink: hangup -> opening Jul 22 14:45:54 sjrouter ppp[56]: tun0: Phase: deflink: Enter pause (30) for redialing. Here's our ppp.conf (hidden passwords, obviously...) default: ident user-ppp VERSION (built COMPILATIONDATE) set server nnn *** set log Phase Chat LCP IPCP CCP tun command set timeout 0 adsl: set device PPPoE:fxp1 set authname *** set authkey *** set dial set login set speed sync set mru 1492 set mtu 1492 set ctsrts off disable pred1 deflate lqr deny pred1 deflate lqr add default HISADDR # Add a (sticky) default route disable iface-alias set ifaddr *this NIC IP* #the static ADSL router IP# 255.255.255.255 0.0.0.0 Our rc.conf looks like this (partial...) # # UserPPP enabled, MJH 210801 # ppp_enable="Yes" ppp_profile="adsl" ppp_mode="ddial" #ppp_auto="Yes" ppp_nat="No" Question 1: Do I need to worry about the erroneous log entries? Question 2: What role does PPP play when an an ADSL router is installed? Question 3: How should UserPPP be configured in this instance? Any help would be appreciated. Martyn Hill ICT Teacher and IT Co-ordinator St James Independent School London To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message