Re: ipfw or pf
On Tue, 1 Mar 2005, Albert Shih wrote: > Hi all, > > >From FreeBSD 4.5 I use ipfw on freebsd-box with 3 NIC card. > > Now I'm in FreeBSD 5.1. I've see in FreeBSD 5.3 there are pf and ipfw, why > there two versions ? The ipfw is always maintened ? Or I need to switch to > pf ? > > Why can I do with PF that I can't do with ipfw ? > > I've ask this because I «known» ipfw and the syntax of pf is strange to me, > and I want known if it's good idea to learn pf. > > Regards. > > > -- > Albert SHIH > Universite de Paris 7 (Denis DIDEROT) > U.F.R. de Mathematiques. > Heure local/Local time: > Tue Mar 1 23:39:06 CET 2005 > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > The both packef filters are maintained! pf is "ported" from OpenBSD and ipfw is from FreeBSD. Whenever two programs two syntaxes... With regards Stevan Tiefert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: hd timeouts.
> If the hardware hasn't been touched since the last time it worked, > then a failing disk would be a pretty safe guess. If not, or > especially if this is a new configuration, there are a few things to > try first. One is to make sure that there is a master on the ATA bus > containing ad5; the ATA specs say that you're not supposed to have a > slave unless there's a master (the quickest way to fix it would be to > move the disk from slave to master). I think this is not hd problem because it's new disk. Been use under two months. But actually there's no master on ad5. I'm recently moved to freebsd so I'd like to know if there is anything I need to conf (on fstab etc) if I move that drive from slave to master? Like would /dev/ad5s1d then be like ad5s1a or something? > And of course, cable problems are a *very* frequent issue. I think I'll try other cable too when I change it to be master. -- kpn @ IRCnet ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sshd
> [...] I can not close myself out with a firewall. I need the > access to my system over the internet. Am I right that in this case, only > a good password is protecting me? If you have a way of transporting a private key file to wherever you need to log in from (removable media, one last password login, whatever is secure enough for your satisfaction), you can use public-key cryptography and disable password based logins altogether. Take a look at the man pages of ssh-agent, ssh-add, ssh-keygen, and google around a bit - it is not too hard to set up. Cheers, -Jan Christian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: smbus and freebsd 5.3
Andrea Riela wrote: I've tryed with: # System Management Bus device smbus device smb device iicsmb device bktr device iicbus device iicbb device iic device ic device viapm but nothing. mbmon says: mbmon -d SMBus[VT8233/A/8235/8237(KT266/333/400/600/880)] found, but No HWM available on it!! Using ISA-IO access method!! * Int.Tec.Exp. Chip IT8705F/IT8712F or SIS950 found. Hm... that makes me fill curious... Try other *pm devices, they can be compiled in kernel together. There are alpm, intpm, viapm and nfpm. PS: Also you don't need bktr, iic* and ic stuff. And you shouldn't remove ichsmb - it's not intel-specific. -- [WBR], Arcade. [SAT Astronomy/Think to survive!] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ATA controller buggy chip: can I install 5.3 ?
Hi, I have a very old Pentium (58.18-MHz 586-class CPU), which is now running 4.10-Release happily. I'm considering to replace 4.10 by the more recent 5.3 or 5.4. However, I now have following in the dmesg output, which complains about ATA controller, but seems to use a workaround: --- FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004 CPU: Pentium/P5 (58.18-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x517 Stepping = 7 Features=0x1bf real memory = 25165824 (24576K bytes) avail memory = 19197952 (18748K bytes) Preloaded elf kernel "kernel" at 0xc0551000. Intel Pentium detected, installing workaround for F00F bug atapci0: at device 1.0 on pci0 atapci0: ATA channel disabled by BIOS [...] ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata1 at port 0x170-0x177,0x376 irq 15 on isa0 [...] ad0: 520MB [1057/16/63] at ata0-master BIOSPIO --- I plan is to install FreeBSD 5.X on a bigger harddisk (2 GB) on another, somewhat newer PC with more Ram, and then put the harddisk in the old PC. I ask this question, because the two PCs are at opposite ends of the world, and I must send the harddisk with 5.X by regular mail. So I like to know in advance whether 5.X is really going to work, given that it can run 4.10 right now. Thanks, Rob. __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sshd
On Wed, 2 Mar 2005, Jan Christian Meyer wrote: > > [...] I can not close myself out with a firewall. I need the > > access to my system over the internet. Am I right that in this case, only > > a good password is protecting me? > > If you have a way of transporting a private key file to wherever you need > to log in from (removable media, one last password login, whatever is > secure enough for your satisfaction), you can use public-key cryptography > and disable password based logins altogether. > > Take a look at the man pages of ssh-agent, ssh-add, ssh-keygen, and > google around a bit - it is not too hard to set up. > > Cheers, > -Jan Christian > Dear Jan :-) Thanks for this hint!!! That is what I need!!! With regards Stevan Tiefert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: smbus and freebsd 5.3
Andrea Riela wrote: Thank you Volodymyr, I've tryed with: # System Management Bus device smbus device smb device iicsmb device bktr device iicbus device iicbb device iic device ic device viapm but nothing. mbmon says: mbmon -d SMBus[VT8233/A/8235/8237(KT266/333/400/600/880)] found, but No HWM available on it!! Using ISA-IO access method!! * Int.Tec.Exp. Chip IT8705F/IT8712F or SIS950 found. As far as I can tell (from http://www.giga-byte.com/MotherBoard/Products/Products_GA-7VT880-L.htm), your MB uses VT8237 as south bridge. Quoting from `man viapm`: This driver provides access to the VIA chipset Power Management Unit fam- ily. They are VT82C586B, VT82C596A, VT82C596B, VT82C686A and VT8233. So I guess you are out of luck. As further investigation, you may want to look in /usr/src/sys/pci/viapm.c. You'll find: #define VIA_586B_PMU_ID 0x30401106 #define VIA_596A_PMU_ID 0x30501106 #define VIA_596B_PMU_ID 0x30511106 #define VIA_686A_PMU_ID 0x30571106 #define VIA_8233_PMU_ID 0x30741106 #define VIA_8233A_PMU_ID0x31471106 If you do "pciconf -l", you should get a list like the following: [EMAIL PROTECTED]:0:0: class=0x06 card=0x chip=0x03051106 rev=0x02 hdr=0x00 [EMAIL PROTECTED]:1:0: class=0x060400 card=0x0080 chip=0x83051106 rev=0x00 hdr=0x01 [EMAIL PROTECTED]:7:0: class=0x060100 card=0x1106 chip=0x06861106 rev=0x40 hdr=0x00 [EMAIL PROTECTED]:7:4: class=0x068000 card=0x30571106 chip=0x30571106 rev=0x40 hdr=0x00 ^ [EMAIL PROTECTED]:9:0: class=0x01 card=0x00429005 chip=0x80129005 rev=0x03 hdr=0x00 [EMAIL PROTECTED]:9:1: class=0x01 card=0x00429005 chip=0x80129005 rev=0x03 hdr=0x00 [EMAIL PROTECTED]:11:0: class=0x02 card=0x00408086 chip=0x12298086 rev=0x0c hdr=0x00 [EMAIL PROTECTED]:0:0: class=0x03 card=0x chip=0x002c10de rev=0x15 hdr=0x00 As you can see, I have a chip=0x30571106, which corresponds to VIA_686A_PMU_ID, so my chipset is supported by viapm. If you see a different value, not listed in the above defines, the driver won't pick that chip up. bye av. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: What am I doing wrong with MOUNT?
Nathan Kinkade said... > Here is quick rundown on how you could achieve your goal: > > 1) Mount the new disk at at /mnt with something like: > # mount /dev/ad1s1a /mnt > 2) Copy everything from your original /var partition to the new one: > # cd /var && tar cf - ./ | (cd /mnt && tar xvpf -) > 3) Edit /etc/fstab from something like: > /dev/ad0s1e /varufs defaults 1 2 > to: > /dev/ad1s1a /varufs defaults 1 2 > 4) Unmount old partition from /var and mount new one at /var: > # umount /var && mount /var > > Also, you may want to reallocate the partition formerly mounted at /var for something else? Your advice was right on thank you very much. Actually step #4 was automatically handled by step #3. Regarding reallocation of space formerly occupied by /var on /dev/ad0s2d, is there a way to reallocate it back to one of the other existing partitions or do you mean only to use it as is for something else? Gerald ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: referencing in files
First, thanks. What I just wanted to try out is to have my /etc/motd updated automatically from a changing value in another text file. So that way I wouldn't have to update both every time. No way for that? Thanks. Jarrod Meyer | Technical | C Y B E R T E K Tel: 031-2075287 Fax: 031-2082210 E-mail: [EMAIL PROTECTED] Website: www.cybertek.co.za > -Original Message- > From: [EMAIL PROTECTED] [mailto:owner-freebsd- > [EMAIL PROTECTED] On Behalf Of Kris Kennaway > Sent: Wednesday, March 02, 2005 9:58 AM > To: Jarrod Meyer > Cc: freebsd-questions@freebsd.org > Subject: Re: referencing in files > > On Wed, Mar 02, 2005 at 09:23:35AM +0200, Jarrod Meyer wrote: > > What I meant was, kinda like if you have a changing value in one file, > > right? And you want it to automatically update in another file without > > having to always manually do it yourself and without writing a script, > can > > you just link/reference the changing value in the first file to a point in > > the second so that it becomes automated? > > As I said, no, but if you tell us what you're specifically trying to > achieve there might be another way. > > Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: /dev/io , /dev/mem : only used by Xorg?
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Loren M. Lang > Sent: Tuesday, March 01, 2005 9:12 PM > To: Ted Mittelstaedt > Cc: FreeBSD questions; Loren M. Lang; Rob; Kris Kennaway > Subject: Re: /dev/io , /dev/mem : only used by Xorg? > > > I don't seem to have rndcontrol on 5.3, is that an old command? > I think you missed the back and forth on this between me and Kris? answer, no - the random device in 5.3 was rewritten to probe for ethernet and other random irq's > > > > Another strange thing is that /dev/random should block when it > > runs out of entropy - it doesen't seem to do so, however. And the > > device doesen't seem to gain entropy that quickly. > > Then how is /dev/random differ from /dev/urandom? > The current philosophy in random devices is to make both of these be the same, and use a better random number generator that generates random numbers faster, thus removing the need for separate devices. Here is a section of the readme from the Solaris patch 112439-02 which adds a random device to Solaris 2.6, it illustrates the typical older behavior of the two devices: Applications retrieve random bytes by reading /dev/random or /dev/urandom. The /dev/random interface returns random bytes only when sufficient amount of entropy has been collected. If there is no entropy to produce the requested number of bytes, /dev/random blocks until more entropy can be obtained. Non-blocking I/O mode can be used to disable the blocking behavior. The /dev/random interface also supports poll(2). Note that using poll(2) will not increase the speed at which random numbers can be read. Bytes retrieved from /dev/random provide the highest quality random numbers produced by the generator, and can be used to generate long term keys and other high value keying material. The /dev/urandom interface returns bytes regardless of the amount of entropy available. It does not block on a read request due to lack of entropy. While bytes produced by the /dev/urandom interface are of lower quality than bytes pro- duced by /dev/random, they are nonetheless suitable for less demanding and shorter term cryptographic uses such as short term session keys, paddings, and challenge strings. You see, the problem with this from an application developers perspective is that if you are designing an app that MUST only use high quality random numbers, then you have to read /dev/random not /dev/urandom - but if /dev/random's prng runs out of randomness, it will block, thus your application hangs until it unblocks. If you try to get around that by reading in nonblocking mode then your app won't hang, but you will get an error when the device runs out of numbers and you try to keep reading it. Thus your app will still have to set waiting around for more numbers. /dev/urandom allowed app developers to ignore all that because then the /dev/urandom device runs out of random numbers it just gives non-random numbers - while this of course makes your app insecure, most app developers don't give a shit since their customers don't know any better. FreeBSD did away with the blocking in /dev/random because a number of app developers didn't understand I/O and the FreeBSD core group got tired of hearing the complaints - reasoning (correctly) that if the app developer didn't bother to understand anything about random number generators then it didn't make any difference if the device fed them non-random numbers on occasion. > > > > The FreeBSD random device is a port of the same Linux code. > > I'm pretty sure that the linux code is GPLed, and I'd expect that > FreeBSD uses a BSD version. Are they actually from the same code? > Yes they are. However the author of the code, Theodore Ts'o, was well aware of the problems of GPL when he wrote it, and released the code with effectively 2 licenses, one BSD the other GPL. Of course Linux people subsequently applied the GPL to their version but that doesen't affect us, see the file /usr/src/sys/kern/kern_random.c in FreeBSD 4. There is at least one other random device that was written for Solaris that uses this code also. (andi's SUNrand) I also strongly suspect that Sun used this code in their patch 112439 since my testing of the Sun device and the FreeBSD device showed they fell down almost the same way. The 5.X random generator is a different animal, it is based on the Yarrow prng as well as more sensible hardware detection and use. Keep in mind that until 1995 when everyone started using UNIX servers for running SSL webservers on the Internet, almost nobody gave a damn about needing a random device under UNIX or any other operating system. > > Every doc I've heard of using prng on linux always suggests that the > native entropy source is better? Is this because the linux version has > better hooks in the ker
Re: Does 802.11b use a lot of resources?
On Wed, Mar 02, 2005 at 01:26:45AM -0500, Bob Johnson wrote: > On Friday 25 February 2005 12:06 am, Christopher Kelley wrote: > > Have I tried too hard to squeeze usability out of an old computer? > > > > I have a Pentium-166 that has been a faithful router & firewall (FreeBSD > > 5.3 and pf) for a couple years now. It has no trouble with the 3 to 4 > > Mbps I get from my broadband connection, at least not with ethernet. > > > > I wanted wireless, so I could use my laptop around the house. I > > dutifully read the section in the manual about setting up FreeBSD as an > > access point. I'm using a Netgear MA311 802.11b card (Prism 2.5 > > chipset). And it does work, except it's very slow. Now I know that I > > can only expect about 50% of the rated speed with wireless, but I > > figured even if I got only 4Mbps, I'd be fine. But I get less than > > 1Mbps. I've updated the firmware, added a signal booster and hi-gain > > antenna, and I have "excellent" signal strength throughout my house. > > > > So my question is, is there more overhead with wireless than with > > ethernet? TOP doesn't seem to show that I'm taxing it too hard, idle > > never goes below about 70% with polling enabled (Hz=1000), and never > > below about 80% with polling disabled. Am I expecting too much out of > > an old Pentium-166? > > > > My experience is that: > > 1) 50% throughput is probably the best you should expect. I generally plan > on > 3-4 Mbps for an 11 Mbps 802.11b card. > > 2) Using 128-bit encryption (WEP) will significantly slow down some (many?) > cards. The WEP processing is done on the card (I think), and they simply > don't have hefty processors. If you use 128-bit WEP, try 64-bit WEP and see > if that speeds things up. 64 bit WEP is adequate to keep out casual > snoopers, and 128 bit is not adequate to keep out a serious attacker, so the > difference in security may not be as important as some believe. 64-bit WEP > is also known as 40-bit, and similarly for 128-bit WEP. Actually, what I recommend for home you, if you have the time, is IPSEC. Much more secure than WEP and it's all done on the main cpu so it should slow the wifi down as much. There's a good article on freebsddiary.org I believe. > > 3) Turning on power management seriously slows things down for me, to well > below 1 Mbps. Do a "wicontrol" and make sure Power Mgmt is "0". > > - Bob > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Received mail timestamp is off by 7 hours
On Tue, Mar 01, 2005 at 02:22:40AM +1100, Ian Smith wrote: > On Mon, 28 Feb 2005 03:36:41 -0800 Loren M. Lang wrote: > > On Mon, Feb 28, 2005 at 12:58:17AM +1100, Ian Smith wrote: > > > On Sun, 27 Feb 2005 03:10:12 -0700 Pat Maddox <[EMAIL PROTECTED]> wrote: > > > > > > > Alright, I got it all working now. Not sure how to change the time > > > > zone with config files, so I just used sysinstall to change it to MST > > > > (time zone is arbitrary, but since this is the zone I live in, it's > > > > convenient for me). Then I used ntpdate to sync it, and it's working > > > > well now. > > > > > > > > Thanks for pointing that out to me. I just thought that CET was > central time :) > > > > > > Yes sysinstall's as good a way as any, it'll set your timezone and also > > > let you choose between running with a UTC or local time CMOS clock. Or > > > you can manually tun tzsetup(8) and create (or not) /etc/wall_cmos_clock > > > .. see adjkerntz(8) > > > > > > Take little notice of people opining that you must or even should run > > > CMOS UTC time; that's entirely up to you. I've always preferred local > > > time CMOS clocks personally; sysinstall creates /etc/wall_cmos_clock and > > > cron runs 'adjkerntz -a' halfhourly at times when daylight savings time > > > might come or go in your zone, and that's always worked fine here. > > > > The reason using UTC for the cmos clock is that it never changes like US > > daylight savings does. Now if your timezone doesn't ever need to be > > pushed forward or backwards then it won't be a problem, but otherwise > > evertime the system boots up, it has to determine if the cmos time is > > correct or needs to be adjusted. A UTC time will always be correct and > > can be turned exactly into the correct time at the moment. I think that > > if FreeBSD crashed just after it booted up and adjusted the hour forward, > > then on the next reboot, it would adjust it another hour forward. In > > general, it is just harder to manage. Even worse would be my Quad boot > > system with Gentoo Linux, FreeBSD, OpenBSD, NetBSD. If I used local > > time for my cmos clock then every daylight savings change, each os would > > adjust the clock independently and I'd be 3 hours off. > > I don't believe that's correct Loren, at least, not for FreeBSD anyway. Well, I haven't looked into all the details of how FreeBSD does this, but I gaurentee that there is a point where FreeBSD can crash and the clock could be knocked off an hour which wouldn't happen if it's running UTC. Though this window could just be a matter of seconds, I'm not sure. Also multi-booting multiple OS's with it set to local time will always be a problem unless you set only one os to update the clock, and even then, while running the other oses, the update will never happen until you boot into the os which does it. But, in general, it is just a little bit less reliable using local to UTC unless you are not affected by any daylight savings changes like Arizona in the US or, I'm sure, many other places around the world. -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: referencing in files
On Wed, Mar 02, 2005 at 11:43:13AM +0200, Jarrod - Cybertek wrote: > First, thanks. What I just wanted to try out is to have my /etc/motd updated > automatically from a changing value in another text file. So that way I > wouldn't have to update both every time. No way for that? Thanks. You keep going around in circles saying the same thing. Be specific. What, *precisely* do you want your motd to do? Kris pgpsKMUNbXipZ.pgp Description: PGP signature
Re: referencing in files
Hi Jarrod, what I think you could do is to make a script to automatize the whole procedure. This script would update both the "text file" and the /etc/motd. Since /etc/motd is a plain text file and not a shell script or something like that, you cannot do what you will with a command directly in it. On Wed, 2 Mar 2005 02:29:21 -0800, Kris Kennaway <[EMAIL PROTECTED]> wrote: > On Wed, Mar 02, 2005 at 11:43:13AM +0200, Jarrod - Cybertek wrote: > > First, thanks. What I just wanted to try out is to have my /etc/motd updated > > automatically from a changing value in another text file. So that way I > > wouldn't have to update both every time. No way for that? Thanks. > > You keep going around in circles saying the same thing. Be specific. > What, *precisely* do you want your motd to do? > > Kris > > -- Pietro "Piter" Cerutti <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Beansidhe - SwiSS Death / Thrash Metal Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming or what?" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PR 67260
On Tue, Mar 01, 2005 at 05:50:21PM -0800, Vadym Chepkov wrote: > All, > > The problem i386/67260 still does exist in FreeBSD 5.3. Did anybody find a > workaround or possibly > a fix? As most people don't seem to have this bug, it would be helpful if you provided us with some more information like type of system, hardware used, amount of ram, etc. Maybe you should even try adding that to the online bug report. > > Thank you. > Vadym Chepkov > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgpsMd02UhmzQ.pgp Description: PGP signature
RE: PR 67260
It is common for these errors to happen if there was a problem in how the CDROM was burned. Do a floppy install of FreeBSD on the system and copy the files over the Internet, then once the system is up and running, try mounting commercially mastered CDs in it and see if they don't work either. Ted > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Loren M. Lang > Sent: Wednesday, March 02, 2005 2:50 AM > To: Vadym Chepkov > Cc: freebsd-questions@freebsd.org > Subject: Re: PR 67260 > > > On Tue, Mar 01, 2005 at 05:50:21PM -0800, Vadym Chepkov wrote: > > All, > > > > The problem i386/67260 still does exist in FreeBSD 5.3. Did > anybody find a workaround or possibly > > a fix? > > As most people don't seem to have this bug, it would be helpful if you > provided us with some more information like type of system, hardware > used, amount of ram, etc. Maybe you should even try adding that to the > online bug report. > > > > > Thank you. > > Vadym Chepkov > > ___ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > > -- > I sense much NT in you. > NT leads to Bluescreen. > Bluescreen leads to downtime. > Downtime leads to suffering. > NT is the path to the darkside. > Powerful Unix is. > > Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc > Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 > > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: referencing in files
Ok sorry. Precisely. I have a file (actually a script, sorry) that has a lot of the settings for a client in, eg IP addresses, interface they connect on etc. and I use the motd to keep all this together, just to make things easier when I log into my server. Now I want the motd to update (if at all possible) to the settings in this file when I change it. Maybe a script IS the only way to go. Here is an example: Say i have a file /root/setup.client.sh, and it has this line: IFACE=ng10 Now I want to have the motd, when it is displayed after login, to go fetch the current value of that IFACE, and display that value. Is it a bit clearer? Jarrod Meyer | Technical | C Y B E R T E K Tel: 031-2075287 Fax: 031-2082210 E-mail: [EMAIL PROTECTED] Website: www.cybertek.co.za > -Original Message- > From: [EMAIL PROTECTED] [mailto:owner-freebsd- > [EMAIL PROTECTED] On Behalf Of Kris Kennaway > Sent: Wednesday, March 02, 2005 12:29 PM > To: Jarrod - Cybertek > Cc: [EMAIL PROTECTED]; 'Kris Kennaway' > Subject: Re: referencing in files > > On Wed, Mar 02, 2005 at 11:43:13AM +0200, Jarrod - Cybertek wrote: > > First, thanks. What I just wanted to try out is to have my /etc/motd > updated > > automatically from a changing value in another text file. So that way I > > wouldn't have to update both every time. No way for that? Thanks. > > You keep going around in circles saying the same thing. Be specific. > What, *precisely* do you want your motd to do? > > Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: PR 67260
Also one other thing I forgot, please don't submit a PR until after reading the following: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/problem-reports/ Note particularly the line in those docs that says: "you might try posting a message about it (in the mailing lists) and waiting a few days to see if someone can spot something you have overlooked." Ted > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Ted > Mittelstaedt > Sent: Wednesday, March 02, 2005 3:01 AM > To: Loren M. Lang; Vadym Chepkov > Cc: freebsd-questions@freebsd.org > Subject: RE: PR 67260 > > > > It is common for these errors to happen if there was a problem > in how the CDROM was burned. > > Do a floppy install of FreeBSD on the system and copy the files > over the Internet, then once the system is up and running, try > mounting commercially mastered CDs in it and see if they don't > work either. > > Ted > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of > Loren M. Lang > > Sent: Wednesday, March 02, 2005 2:50 AM > > To: Vadym Chepkov > > Cc: freebsd-questions@freebsd.org > > Subject: Re: PR 67260 > > > > > > On Tue, Mar 01, 2005 at 05:50:21PM -0800, Vadym Chepkov wrote: > > > All, > > > > > > The problem i386/67260 still does exist in FreeBSD 5.3. Did > > anybody find a workaround or possibly > > > a fix? > > > > As most people don't seem to have this bug, it would be > helpful if you > > provided us with some more information like type of system, hardware > > used, amount of ram, etc. Maybe you should even try adding > that to the > > online bug report. > > > > > > > > Thank you. > > > Vadym Chepkov > > > ___ > > > freebsd-questions@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > > To unsubscribe, send any mail to > > "[EMAIL PROTECTED]" > > > > -- > > I sense much NT in you. > > NT leads to Bluescreen. > > Bluescreen leads to downtime. > > Downtime leads to suffering. > > NT is the path to the darkside. > > Powerful Unix is. > > > > Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc > > Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 > > > > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Received mail timestamp is off by 7 hours
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Loren M. Lang > Sent: Wednesday, March 02, 2005 2:29 AM > To: Ian Smith > Cc: Loren M. Lang; Pat Maddox; freebsd-questions@freebsd.org > Subject: Re: Received mail timestamp is off by 7 hours > > little bit less reliable using local to UTC unless you are not affected > by any daylight savings changes like Arizona in the US or, I'm > sure, many > other places around the world. > There's no excuse for a mailserver to not be synced to a NTP source. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: ATA controller buggy chip: can I install 5.3 ?
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Rob > Sent: Wednesday, March 02, 2005 12:40 AM > To: FreeBSD questions > Subject: ATA controller buggy chip: can I install 5.3 ? > > > I ask this question, because the two PCs are at > opposite ends of the world, and I must send the > harddisk with 5.X by regular mail. > So I like to know in advance whether 5.X is really > going to work, given that it can run 4.10 right now. > Send 2 hard disks, one with 5.X and one with 4.11 and have the person at the other end install the 5.X one first, then switch to the 4.11 one if the 5.X one doesen't work. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Installation instructions for Firefox somewhere?
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Anthony > Atkielski > Sent: Tuesday, March 01, 2005 9:09 PM > To: freebsd-questions@freebsd.org > Subject: Re: Installation instructions for Firefox somewhere? > > > Ted Mittelstaedt writes: > > > The AIC7880 stuff is in the "good" category of stuff from Adaptec, > > not the "junk" category. > > Well, that's nice to hear. I guess my $9000 wasn't entirely wasted. > > > The people that can answer questions don't always respond. > > Remember what I said about problems with FreeBSD support for > mission-critical and large-scale deployments? > You get what you pay for. If you want a response immediately then pay money to one of the many FreeBSD consultants/contractors. I'll make you a deal, even - if you guarentee to pay me the same rate that Microsoft charges for tech support on their products ($35 an incident) I will personally provide you with an answer to any question you want to ask - at the $35 per question rate, of course, and with the exact same disclaimers that Microsoft gives you for their $35 incidents. Oh and I almost forgot - since it's the same terms as the Microsoft support, that means you have to buy the copy of FreeBSD from me - and I think my going rate on that is the same as Windows Server, which is something like $800 a copy. ;-) (you have after all said FreeBSD isn't a desktop OS) ;-) > > Also, I don't generally answer questions that I have to do a lot of > > digging on because the questioner didn't put in enough data. Such as > > your SCSI question. You posted the dmesg but you still haven't > > posted the model of HP server. > > I thought I had. HP Vectra XU 6/200 D4352N/ABF. > > > This is assuming you are mixing interfaces, which is still to be > > determined. > > I'm not. > > > Also one other thing that is important - if you don't get an answer > > within a week or so, ask again, politely. > > How do I ask after the second post with no reply? On bended knee? Just keep asking periodically. Or, you could e-mail the developer of the SCSI device driver directly, it's not hard to read the source and see who it is, and their e-mail addresses are on the FreeBSD website. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Installation instructions for Firefox somewhere?
On Wed, 2005-03-02 at 06:08 +0100, Anthony Atkielski wrote: > Ted Mittelstaedt writes: > > > The AIC7880 stuff is in the "good" category of stuff from Adaptec, > > not the "junk" category. > > Well, that's nice to hear. I guess my $9000 wasn't entirely wasted. > > > The people that can answer questions don't always respond. > > Remember what I said about problems with FreeBSD support for > mission-critical and large-scale deployments? This is a voluntary mailing list. If you want FreeBSD support, pay for it - a number of companies provide it. There's no difference here between operating systems: there are volunteer forums for BSD, Linux, Mac, Windows. And then there's paid support. Businesses that want support for their operating systems (who don't support their IT deployments internally), buy that support. That's how a lot of the contributors here make a living. But this list is NOT paid support. > [...] > > > Also one other thing that is important - if you don't get an answer > > within a week or so, ask again, politely. > > How do I ask after the second post with no reply? On bended knee? > Nobody here has any obligation to give you the time of day, let alone help. Taking the line that other subscribers here somehow owe you a living will alienate some of the people who might otherwise help you. Of course, you're can do that if you want. Peter. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ipfw or pf
Le 02/03/2005 à 09:03:23+0100, Stevan Tiefert a écrit > > > On Tue, 1 Mar 2005, Albert Shih wrote: > > > > > The both packef filters are maintained! pf is "ported" from OpenBSD and > ipfw is from FreeBSD. GreatI can continu to use ipfw;-)) > > Whenever two programs two syntaxes... Well it's not de syntaxes, I always use packet filter system (sometime on hardware like Foundry/Cisco) where the rule is : First match first use. And the pf use entire rules is very strange for me (I known I can use «quick» butwell it's not the philosophy I think). Lots of thanks for your answer. Regards. -- Albert SHIH Universite de Paris 7 (Denis DIDEROT) U.F.R. de Mathematiques. 7 ième étage, plateau D, bureau 10 Heure local/Local time: Wed Mar 2 12:54:22 CET 2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
conexant winmodem
hi all... none is working to HCF winmodem porting?? someone was able to adapt the LT port to work with HCF object?? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help!Help!Help!
On Tue, 01 Mar 2005 18:50:53 -0800, Replies <[EMAIL PROTECTED]> wrote: > Hi, > > I have just spent over the last two years developing a unique classified ads > service which was online and had Free BSD as the security on it. We ended up > with a very aggressive and belligerent programmer who left us but left us > some nasty little bugs behind to really screw us up.. who we now can't find. > > I need to know how to change or eliminate a root password. > > As I still have our "test server" in my possession is there any way to > actually remove the folder that the passwords are held in.the reason I > ask this is that when we actually changed the password on our "production > server" it released some sort of worm that totally crashed and eliminated our > online site, and all our data we have spent two years developing. It also > started trying to access other sites which we only found out about this when > our site crashed and we got compalints our from our ISP that our server was > trying to agressively access other servers out there on the net. > > The Only saving grace is that we had it all backed up on our test server but > it has the same problem...I expect...I believe that he has probably left us > the same worm in our test serverthe unfortunate thing is that because we > do not know the root password we are worried that if we try to crack or > eliminate it the same thing may happen...and then we are automatically out of > business. > > Is there any way around thisI can prove I am the owner of the site...the > URL and the server and any other information you may need if necessary > > I really need help as this is 2/12 years work as it stands gone. > > Thanks > God Bless > Freddy You may also consider ghosting/copying your test server drive to your now ruined production server drive (or any other available drive), incase during your tinkering this "worm" is once again launched and trashes your only working copy. Changing a root password physically is quite easy as well, and as Chris said, it is located on the FreeBSD site in the handbook. -Tomas Quintero www.orcagamecenters.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ip6fw loggingcount reset
Does anybody know how to reset the logging count in ip6fw ? In ipfw you can use the "reset" command, but is doesnot seem to work in ip6fw. The filter rule I use is: ip6fw allow log tcp from any to 2001:888:108e:0:250:bfff:fea1:7d0 The log stops logging after: kernel: ip6fw: limit reached on entry 6000 sysctl variables for ip6fw: net.inet6.ip6.fw.enable: 1 net.inet6.ip6.fw.debug: 1 net.inet6.ip6.fw.verbose: 1 net.inet6.ip6.fw.verbose_limit: 500 kernels options: options IPV6FIREWALL options IPV6FIREWALL_VERBOSE options IPV6FIREWALL_DEFAULT_TO_ACCEPT ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Installation instructions for Firefox somewhere?
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Anthony > Atkielski > Sent: Tuesday, March 01, 2005 8:53 PM > To: freebsd-questions@freebsd.org > Subject: Re: Installation instructions for Firefox somewhere? > > > Ted Mittelstaedt writes: > > > It appears you have a narrow-SCSI max 10MB sync disk drive and a > > ultra -3 20MB sync disk drive on the same adapter card. > > Such a combination is iffy at best. > > The configuration was the one recommended by HP. I bought the second > drive from HP directly. They both have the same type of SCSI > interface, > approved by HP. > HP didn't manufacture either of the drives nor the SCSI controller so why would you think that they know what they are talking about? HP does the same thing Compaq does (now really the same since they are the same company) they buy off-the-shelf parts from other manufacturers and bundle them together into systems that they sell. Dell, Gateway and all the rest of them do the same thing. A very few of their products (like the Vectra XU 6/200 that you have) they do design the motherboards, but that's it. And of course they design the sheetmetal. But for the motherboards in most of their stuff they get OEMs to make them for them. And despite all the testing on occasion they screw up and release patches that patch around hardware problems. > I'm tired of hearing why it's not FreeBSD's fault. When you > can tell me > exactly what theses messages mean, instead of guessing, let me know. Ok here goes: Feb 26 20:09:23 contactdish kernel: (da0:ahc0:0:0:0): Retrying Command Feb 26 20:09:23 contactdish kernel: (da0:ahc0:0:0:0): Request Requeued Feb 26 20:09:23 contactdish kernel: (da0:ahc0:0:0:0): Retrying Command This happens when the SCSI target disk0 stop answering commands from the SCSI adapter. Feb 26 20:09:26 contactdish kernel: (da1:ahc0:0:2:0): Retrying Command Feb 26 20:09:26 contactdish kernel: (da1:ahc0:0:2:0): Queue Full Feb 26 20:09:26 contactdish kernel: (da1:ahc0:0:2:0): Retrying Command Same thing as above just with the second disk. The usual problem is bad termination that causes this, because what happens with bad termination is that electrical noise causes one or more targets on the bus to receive a command that is garbage, that target shuts down and goes out of sync with the other initiators and targets on the bus, as soon as that happens all targets shut down. But it can also be caused by a device that isn't totally compliant with the standard interfering with another device on the bus (although this is rare) And it can also be caused by the adapter card driver sending a command to a target that the target doesen't understand or does not process properly, this can happen when during the probe on boot, a target responds saying it supports something, then really doesen't. IDE devices are infamous for this, claiming to support UDMA, PIO mode 4, and such when they really don't support them properly. Sometimes if the bus is left quiet, the devices can resync and things go on. Mostly though it almost always leads to the next thing that you have, here: eb 25 20:09:29 contactdish kernel: ahc0: Recovery Initiated Feb 25 20:09:29 contactdish kernel: >> Dump Card State Begins The driver for the SCSI adapter has finally given up trying to send commands to the adapter card your disks are tied to and has decided to just reset the card entirely, which resets the bus and all devices on it, which reestablishes sync. All the rest of the data that follows is a dump of the state of the card and the commands sent, and what queue entries are trashed so the operating system can pick up where it left off if the card comes back online. Feb 25 20:09:29 contactdish kernel: (da1:ahc0:0:2:0): SCB 0x49 - timed out Feb 25 20:09:29 contactdish kernel: sg[0] - Addr 0x1309b000 : Length 2048 Feb 25 20:09:29 contactdish kernel: (da1:ahc0:0:2:0): Queuing a BDR SCB Feb 25 20:09:29 contactdish kernel: ahc0: Timedout SCBs already complete. Interrupts may not be functioning. This is a bit significant, after the bus reset, the second disk (the Quantum) isn't answering. But it looks like it later on started responding since otherwise your system would probably have paniced. None of this though is any help here. You know what the problem is you just don't know what is causing it. The idea that a SCSI command sent to a disk by the adapter card causing this is unlikely, unless either the Seagate or Quantum models that you have are known rogues (and I didn't find that they are) it is much more likely a conflict on the SCSI bus. > I'm not going to plug and unplug hardware all day based on your > speculations, particularly since I know this hardware configuration > works, and has worked for eight years. > Well first of all I already told you to run your BIOS config and set the adapter to limit sync negotiation on the Quantum to 10Mb and see if that fixed it. That would not involve you
Re: referencing in files
# Jarrod - Cybertek: > > Say i have a file /root/setup.client.sh, and it has this line: > IFACE=ng10 > Now I want to have the motd, when it is displayed after login, to go fetch > the current value of that IFACE, and display that value. This probably won't get any points for style, but instead of using /etc/motd, you could just as well do this with a small script in your .zlogin/.login/whatever file. E.g. if [ ! -e .hushlogin ]; then IF=`awk '/IFACE *=/ { gsub(/IFACE *= */,""); print; }' setup.client.sh` echo "My interface: $IF" fi HTH Mario ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ip6fw loggingcount reset
Found it already. Use the "zero" command: ip6fw zero 6000 On Wednesday 02 March 2005 13:46, Kees Plonsz wrote: > Does anybody know how to reset the logging count in ip6fw ? > In ipfw you can use the "reset" command, but is doesnot seem > to work in ip6fw. > > The filter rule I use is: > ip6fw allow log tcp from any to 2001:888:108e:0:250:bfff:fea1:7d0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Is Yahoo! moving from FreeBSD?
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Anthony > Atkielski > Sent: Tuesday, March 01, 2005 9:05 PM > To: freebsd-questions@freebsd.org > Subject: Re: Is Yahoo! moving from FreeBSD? > > > Ted Mittelstaedt writes: > > > You can't be that confident that the other operating systems > will work > > on the new hardware, either. > > Mainstream hardware is usually well supported. Bleeding-edge > technologies and obsolete hardware may not be. Mainstream commercial > operating systems are probably a slightly better bet for obsolete > hardware, since they are more likely to have encountered it previously > and it's unusual for support to be explicitly removed. > Now let's see, your last post was jus advocating buying everything new, you said you bought your house, car, etc. all new... and here your advocating obsolete hardware? Is this a flip-flop? Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sshd
On Mar 2, 2005, at 1:53 AM, Stevan Tiefert wrote: Thanks Eugene, but I can not close myself out with a firewall. I need the access to my system over the internet. Am I right that in this case, only a good password is protecting me? With regards Stevan Tiefert Steven, Change the port sshd runs on in /etc/ssh/sshd_config. Once I changed the port, I stopped seeing all those log in attempts. HTH ___ Eric F Crist "I am so smart, S.M.R.T!" Secure Computing Networks -Homer J Simpson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
starting webmin
We just setup 4 new servers. All are running 4.11 stable from Feb 25. I've cvsupped my ports and installed webmin on all of the machines. I have added webmin_enable="YES" to my rc.conf. Webmin won't start. king10:/usr/local/etc/rc.d# /usr/local/etc/rc.d/webmin.sh rcvar # webmin $webmin_enable=YES Even if I hardcode webmin_enable="YES" in the webmin.sh script webmin doesn't start. I don't get an error message I am just dropped back at my prompt. This is happening on all 4 machines.I have apache and mysql installed as well and they start just fine. I have webmin running on 12 other older machines without problem. Any ideas? Thanks -- Clint Gilders <[EMAIL PROTECTED]> Director of Technology Services OnlineHobbyist.com, Inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: starting webmin
On Wed, 02 Mar 2005 08:24:37 -0500 Clint Gilders <[EMAIL PROTECTED]> wrote: > Webmin won't start. > > king10:/usr/local/etc/rc.d# /usr/local/etc/rc.d/webmin.sh rcvar > # webmin > $webmin_enable=YES > > Even if I hardcode webmin_enable="YES" in the webmin.sh script webmin > doesn't start. I don't get an error message I am just dropped back > at my prompt. did you compile or used pkg_add -r ? in both cases you need to run the webmin-setup script before it will start properly ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sshd
On Wed, 2 Mar 2005, Eric F Crist wrote: > On Mar 2, 2005, at 1:53 AM, Stevan Tiefert wrote: > > Thanks Eugene, but I can not close myself out with a firewall. I need > > the > > access to my system over the internet. Am I right that in this case, > > only > > a good password is protecting me? > > > > With regards > > Stevan Tiefert > > Steven, > > Change the port sshd runs on in /etc/ssh/sshd_config. Once I changed > the port, I stopped seeing all those log in attempts. > > HTH > ___ > Eric F Crist "I am so smart, S.M.R.T!" > Secure Computing Networks -Homer J Simpson > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > Hello Eric, that meens also to change the port at the ssh-client with "ssh -p ??", isn't it? With regards Stevan Tiefert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sshd
> > Hello Eric, > > that meens also to change the port at the ssh-client with "ssh -p ??", > isn't it? > > With regards > Stevan Tiefert Yes, you'd need to use ssh -p in order to connect to the new port, instead of the default port (22). -Tomas Quintero ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Is Yahoo! moving from FreeBSD?
# Ted Mittelstaedt: [ Anthony bemoans the lack of support for obsolete hardware ] > Now let's see, your last post was jus advocating buying everything > new, you said you bought your house, car, etc. all new... > > and here your advocating obsolete hardware? > > Is this a flip-flop? You kidding? If that was a flip-flop, you'd actually know what to insert to get the output you wanted. No, this is actually a Schroedinger troll and lacking proper support for RSP[1], you can't get it in a stable situation. Cheers. Mario [1]: Remote Strangulation Protocol. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sshd
On Wed, Mar 02, 2005 at 02:31:16PM +0100, Stevan Tiefert wrote: > Hello Eric, > > that meens also to change the port at the ssh-client with "ssh -p ??", > isn't it? Alternatively, you can set up a Host section in your ~/.ssh/config file: Host myhost Hostname FQDN.for.myhost Port 1221 Obviously, you would need to set this up on each client host you connect from. You can then just invoke ssh in the normal manner - it will pick up your settings each time for you. Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgpK0gRlBK4q3.pgp Description: PGP signature
Re: starting webmin
[EMAIL PROTECTED] wrote: On Wed, 02 Mar 2005 08:24:37 -0500 Clint Gilders <[EMAIL PROTECTED]> wrote: Webmin won't start. king10:/usr/local/etc/rc.d# /usr/local/etc/rc.d/webmin.sh rcvar # webmin $webmin_enable=YES Even if I hardcode webmin_enable="YES" in the webmin.sh script webmin doesn't start. I don't get an error message I am just dropped back at my prompt. did you compile or used pkg_add -r ? in both cases you need to run the webmin-setup script before it will start properly You're right. I'ts been years since I've done a fresh install of webmin. I didn't recall having to run the setup script after previous port installs of webmin. Thanks for the nudge in the right direction. -- Clint Gilders <[EMAIL PROTECTED]> Director of Technology Services OnlineHobbyist.com, Inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: hd timeouts.
Perttu Laine <[EMAIL PROTECTED]> writes: > > If the hardware hasn't been touched since the last time it worked, > > then a failing disk would be a pretty safe guess. If not, or > > especially if this is a new configuration, there are a few things to > > try first. One is to make sure that there is a master on the ATA bus > > containing ad5; the ATA specs say that you're not supposed to have a > > slave unless there's a master (the quickest way to fix it would be to > > move the disk from slave to master). > > I think this is not hd problem because it's new disk. Been use under > two months. But actually there's no master on ad5. I'm recently moved > to freebsd so I'd like to know if there is anything I need to conf (on > fstab etc) if I move that drive from slave to master? Like would > /dev/ad5s1d then be like ad5s1a or something? It might become ad4s1d, depending on whether your kernel is configured to"wire down" the devices. The slice and partitioning will be the same no matter what. > > And of course, cable problems are a *very* frequent issue. > > I think I'll try other cable too when I change it to be master. If you can spare an extra few minutes, try *just* changing the cable first. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Perl out of memory [sbrk()]
Dan Nelson wrote: The following error occurs when a message has an attachment of more that approx 35MB in size: "Out of memory during "large" request for 67112960 bytes, total sbrk() is 487512064 bytes at /usr/local/bin/imapsync line 790." According to that output, perl was already using 464MB, and a malloc request for 64MB failed, which is reasonable since the default hard datasize limit on FreeBSD is 512MB. To raise it, put this in /boot/loader.conf and reboot: kern.maxdsiz="1024M" That would be the cause yes, although I have to wait until the right moment to restart this box. Thank you for pointing this out. Per olof ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: make, etc, whereis, commands broken
Warren <[EMAIL PROTECTED]> writes: > > That depends on what you did. If they're completely gone, you'll need > > to get them back; backups are the traditional way of fixing this. In > > the worst case, a complete base system reinstall (possibly updating > > from source, if you have enough of your system left to do that) will > > fix it up. > > /usr/obj/usr/src/usr.bin/make/make and all the other commands that dont work > exist like the make command, but when something like a make install or > portupgrade etc is issued it fails ... so i've obviously stuffed the main > commands. Well, since we still have no idea what you actually did to your system, there's no way we can give exact directions for repairing it. Is /usr/bin/make present at all? If not, you'll have to reinstall it *somehow*, and the same for other missing executables. > Most other things work its mainly the make, whereis, vi, clear, fetch, ftp > and > other things that rely on make > > If i re-do the base system will that then cause the various ports i have > running to need re-configuring.. e.g. dhcp, named httpd etc Not necessarily. Particularly if you "re-do" the base system from the exact same release you were running. > This sort of thing is really beyong my present knowledge lvl of BSD at > present, so exscuse the dumb questions. If you asked more *precise* questions, we would have a much easier time providing specific answers. It would also be useful if you provided more information on your system, as well as its problems. See "How to get the best results from FreeBSD questions" http://www.lemis.com/questions.html -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: arplookup 192.168.1.254 failed: host is not on local network
Mark Edwards <[EMAIL PROTECTED]> writes: > On Mar 1, 2005, at 12:53 PM, Lowell Gilbert wrote: > > Looking on the net, I found the following suggestion, which does > cure > the errors: > > /sbin/route add -net 192.168.1.254 -netmask 255.255.255.0 > -interface 1 > > My question is, is that the proper way to deal with this? > >>> > >>> It's not bad. I would use -host instead of -net and -netmask, and it > >>> will fail if the DHCP server ever changes its address, but what you > >>> are doing is is working and fairly likely to stay that way. > >> > >> How would you phrase the command? I just tried -host and couldn't get > >> it to work. > > > > e.g., > > route add -host 172.10.212.2 -interface bge0 > > I tried that syntax and I get errors like this: > > Mar 1 13:12:37 lilbuddy /kernel: arp: 00:0d:72:d7:d9:a1 attempts to > modify permanent entry for 192.168.1.254 on ep1 > > If I use the -net -netmask syntax I don't get the errors. "permanent entry"? Did you put in a static ARP? At any rate, I'd try a /32 mask instead of /24. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
SCSI problem on a IBM xSeries x206
Hello, I've a problem with a IBM xSeries x206 server. This server is equipped with an Adaptec AIC7901 Ultra320 SCSI RAID card, and the two SCSI disks are configured as RAID1 in the bios card. I've installed FreeBSD 5.3, but the system go on to see the two SCSI disks (sd0 and sd1); not the logical RAID1 unit. If I launch the command "pciconf -lv" the output is the following: [EMAIL PROTECTED]:4:0: class=0x010400 card=0x005f9005 chip=0x808f9005 rev=0x10 hdr=0x00 vendor = 'Adaptec Inc' device = 'AIC-7901 Ultra320 HostRAID Controller' class= mass storage subclass = RAID And, from the dmesg: ahd0: port 0x3000-0x30ff,0x3400-0x34ff mem 0xd020-0xd0201fff irq 2 7 at device 4.0 on pci3 Thanks, -- Marco pizzi. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: make, etc, whereis, commands broken
> Well, since we still have no idea what you actually did to your > system, there's no way we can give exact directions for repairing it. > Is /usr/bin/make present at all? If not, you'll have to reinstall it > *somehow*, and the same for other missing executables. i was in /usr an accidentally typed rm -rf *>core This is whats in /usr/bin chfnlogin passwd ypchfn chpass makerlogin ypchpass chshopieinforsh ypchsh crontab opiepasswd su yppasswd > If you asked more *precise* questions, we would have a much easier > time providing specific answers. It would also be useful if you > provided more information on your system, as well as its problems. The main problem is that if i try to use make without using /usr/bin/make it fails .. when using it for e.g. to do an installworld i get.. enterprise# /usr/bin/make installworld /usr/bin/env: not found "/usr/src/Makefile", line 91: warning: "/usr/bin/env -i PATH=/sbin:/bin:/usr/sbin:/usr/bin /usr/bin/make-f /dev/null -V MAKEOBJDIRPREFIX dummy" returned non-zero status awk: not found "/usr/src/Makefile.inc1", line 97: warning: "awk '/^#define[[:space:]]*__FreeBSD_version/ { print $3 }' /usr/include/osreldate.h" returned non-zero status /usr/bin/mktemp: not found "/usr/src/Makefile.inc1", line 138: warning: "/usr/bin/mktemp -d -u -t install" returned non-zero status id: not found ERROR: Required smmsp user is missing, see /usr/src/UPDATING. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. == This when doing a portupgrade.. enterprise# /usr/bin/make installworld /usr/bin/env: not found "/usr/src/Makefile", line 91: warning: "/usr/bin/env -i PATH=/sbin:/bin:/usr/sbin:/usr/bin /usr/bin/make-f /dev/null -V MAKEOBJDIRPREFIX dummy" returned non-zero status awk: not found "/usr/src/Makefile.inc1", line 97: warning: "awk '/^#define[[:space:]]*__FreeBSD_version/ { print $3 }' /usr/include/osreldate.h" returned non-zero status /usr/bin/mktemp: not found "/usr/src/Makefile.inc1", line 138: warning: "/usr/bin/mktemp -d -u -t install" returned non-zero status id: not found ERROR: Required smmsp user is missing, see /usr/src/UPDATING. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. -- Yours Sincerely Shinjii http://www.shinji.nq.nu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
security advisories and the creating time of my system
Hello list, in the handbook is described how to handle security advisories. I still have a question. :-) The security advisory give me the possibility to patch my system or to download the "patched" FreeBSD via ftp. How can I recognize which creation time the running system has? With regards Stevan Tiefert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
global vimrc file
I have the following ~/.vimrc syn on set incsearch set ignorecase set smartcase set scrolloff=2 set wildmode=longest,list I want to set this up as the default settings for my system. under linux i think there was a way to set global vimrc settings by writing to /etc/vimrc or /etc/vim/vimrc depending on the system. is there an equivalent file for FreeBSD? TIA, Tomoki Taniguchi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: global vimrc file
Hi FreeBSD, Wednesday, March 2, 2005, 4:31:56 PM, you wrote these comments: > I have the following ~/.vimrc > syn on > set incsearch > set ignorecase > set smartcase > set scrolloff=2 > set wildmode=longest,list > I want to set this up as the default settings for my system. > under linux i think there was a way to set global vimrc settings by writing to > /etc/vimrc > or > /etc/vim/vimrc > depending on the system. > is there an equivalent file for FreeBSD? /usr/local/share/vim/vimrc -- Best Regards, +--==/\/\==--+ (__) FreeBSD | DanGer <[EMAIL PROTECTED]> |\\\'',) The | [EMAIL PROTECTED] ICQ261701668 | \/ \ ^Power | http://danger.homeunix.org | .\._/_)To +--==\/\/==--+ Serve [ Law of Institutional Food: Everything, including corn flakes, is greasy. ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: What am I doing wrong with MOUNT?
On Wed, Mar 02, 2005 at 01:42:40AM -0800, Gerald Lightsey wrote: > Nathan Kinkade said... > > Here is quick rundown on how you could achieve your goal: > > > > 1) Mount the new disk at at /mnt with something like: > > # mount /dev/ad1s1a /mnt > > 2) Copy everything from your original /var partition to the new one: > > # cd /var && tar cf - ./ | (cd /mnt && tar xvpf -) > > 3) Edit /etc/fstab from something like: > > /dev/ad0s1e /varufs defaults > 1 2 > > to: > > /dev/ad1s1a /varufs defaults > 1 2 > > 4) Unmount old partition from /var and mount new one at /var: > > # umount /var && mount /var > > > > Also, you may want to reallocate the partition formerly mounted at /var > for something else? > > Your advice was right on thank you very much. Actually step #4 was > automatically handled by step #3. > > Regarding reallocation of space formerly occupied by /var on /dev/ad0s2d, is > there a way to reallocate it back to one of the other existing partitions or > do you mean only to use it as is for something else? > > Gerald I was actually suggesting that you could just mount the old partition at another mount point, but I suppose there is the possibility to have the old partition swallowed up by the one directly proceeding it on the physical disk. I have never done it and I don't know anything about it, but there is a utility called growfs(8) that might be of use. Nathan pgphiNyXMaNhM.pgp Description: PGP signature
Re: security advisories and the creating time of my system
On Wed, Mar 02, 2005 at 04:29:31PM +0100, Stevan Tiefert wrote: > Hello list, > > in the handbook is described how to handle security advisories. I still > have a question. :-) > > The security advisory give me the possibility to patch my system or to > download the "patched" FreeBSD via ftp. How can I recognize which creation > time the running system has? Try the command `uname -v`. Nathan pgpLtKB0VwYDE.pgp Description: PGP signature
Re: global vimrc file
On Wed, Mar 02, 2005 at 11:31:56PM +0800, FreeBSD MailingLists wrote: > I have the following ~/.vimrc > > syn on > set incsearch > set ignorecase > set smartcase > set scrolloff=2 > set wildmode=longest,list > > I want to set this up as the default settings for my system. > under linux i think there was a way to set global vimrc settings by writing to > /etc/vimrc > or > /etc/vim/vimrc > depending on the system. > is there an equivalent file for FreeBSD? > > TIA, > Tomoki Taniguchi /usr/local/share/vim/vimrc Nathan pgptyX7Q4KTNm.pgp Description: PGP signature
Re: security advisories and the creating time of my system
Nathan Kinkade wrote: The security advisory give me the possibility to patch my system or to download the "patched" FreeBSD via ftp. How can I recognize which creation time the running system has? Try the command `uname -v`. AFAIK this command tells you the build time, but now how fresh the source was. Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: global vimrc file
that worked thanks On Wed, 2 Mar 2005 16:37:20 +0100, Daniel Gerzo <[EMAIL PROTECTED]> wrote: > Hi FreeBSD, > > Wednesday, March 2, 2005, 4:31:56 PM, you wrote these comments: > > > I have the following ~/.vimrc > > > syn on > > set incsearch > > set ignorecase > > set smartcase > > set scrolloff=2 > > set wildmode=longest,list > > > I want to set this up as the default settings for my system. > > under linux i think there was a way to set global vimrc settings by writing > > to > > /etc/vimrc > > or > > /etc/vim/vimrc > > depending on the system. > > is there an equivalent file for FreeBSD? > > /usr/local/share/vim/vimrc > > -- > Best Regards, > > +--==/\/\==--+ (__) FreeBSD > | DanGer <[EMAIL PROTECTED]> |\\\'',) The > | [EMAIL PROTECTED] ICQ261701668 | \/ \ ^Power > | http://danger.homeunix.org | .\._/_)To > +--==\/\/==--+ Serve > > [ Law of Institutional Food: Everything, including corn flakes, is > greasy. ] > > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Using META and DEL keys in console
On Tue, 01 Mar 2005 20:00:08 -0500 Chuck Swiger <[EMAIL PROTECTED]> wrote: > Greg 'groggy' Lehey wrote: > [ ... ] > > Interestingly, I've just discovered that the DELETE key on my cursor > > keypad is bound to c-d. So maybe that's what he was expecting. > > I think so, yes. > > If you map the Backspace key to DEL and the Delete key to C-d on a > standard PC 101/104/whatever-key keyboard, you'll end up with > something that does not break Emacs' usage of C-h for help and retains > compatibility with the behavior that many people expect the Backspace > and Delete keys to have. > > -- > -Chuck > Thank you for your replies. That is exactly what I want. Where and how can I specify that mapping for console and xterm? Best Regards, Ale ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
c standard
Following is possible with gcc and g++: #include double sin(double) { return 1; } int main() { sin(1); return 1; } Why I don't get any warnings like: sin prevously defined in math.h ... when I compile with -Wall -pedantic -ansi. Why is it possible to overwrite the definition of sin, is this part of the standard? Secondly the definition (not declaration) of double sin(double) misses a variable! Is this ok, when the variable is not referenced in the code? Thanks in advance, Florian -- Linux/BSD: The daemons are not longer just in my head! -- Florian Hengstberger [EMAIL PROTECTED] http://stud3.tuwien.ac.at/~e0025265 -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: building KLDs in RELENG_4
In message: <[EMAIL PROTECTED]> "Peter C. Lai" <[EMAIL PROTECTED]> writes: : Is there a way to build kernel modules by themselves without having to : build the entire kernel? I am adding umass support to a 4.x machine but : I don't want to build the entire kernel. I already have scbus, but I need : da and of course, umass. cd src/sys/modules/umass ; make all install clean This assumes that the sources match what's on the system. Warner ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: security advisories and the creating time of my system
On Wed, Mar 02, 2005 at 05:03:35PM +0100, Erik Norgaard wrote: > Nathan Kinkade wrote: > >>The security advisory give me the possibility to patch my system or to > >>download the "patched" FreeBSD via ftp. How can I recognize which creation > >>time the running system has? > > > >Try the command `uname -v`. > > AFAIK this command tells you the build time, but now how fresh the > source was. > > Erik Yes, you are correct, but he mentions that he wants to know the "creation" (build?) time of the "running system," so I figured that the date/time provided by uname was what he was looking for. Maybe you are right, though. Perhaps more important is whether his sources are newer than the fix date. Nathan pgppwaSTRqwOr.pgp Description: PGP signature
Re: c standard
Florian Hengstberger wrote: Following is possible with gcc and g++: #include double sin(double) { return 1; } int main() { sin(1); return 1; } Why I don't get any warnings like: sin prevously defined in math.h ... when I compile with -Wall -pedantic -ansi. Why is it possible to overwrite the definition of sin, is this part of the standard? Secondly the definition (not declaration) of double sin(double) misses a variable! Is this ok, when the variable is not referenced in the code? Thanks in advance, Florian -- Linux/BSD: The daemons are not longer just in my head! -- Florian Hengstberger [EMAIL PROTECTED] http://stud3.tuwien.ac.at/~e0025265 -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" I would address your question to the comp.lang.c newsgroup. They are very knowledgable about such things. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: building KLDs in RELENG_4
In message: <[EMAIL PROTECTED]> "Peter C. Lai" <[EMAIL PROTECTED]> writes: : On Thu, Feb 24, 2005 at 09:59:01AM -0600, Scot Hetzel wrote: : > On Thu, 24 Feb 2005 09:56:22 -0500, Peter C. Lai <[EMAIL PROTECTED]> wrote: : > > Is there a way to build kernel modules by themselves without having to : > > build the entire kernel? I am adding umass support to a 4.x machine but : > > I don't want to build the entire kernel. I already have scbus, but I need : > > da and of course, umass. : > > : > : > Yes you can build modules seperately from a kernel build : > : > cd /usr/src/sys/modules/umass : > make obj : > make : > make install : > : > Scot : : ok. what about da? i don't have that in my kernel, even though i have scbus. : I think i'm just going to recompile the entire kernel anyway; I was just : trying to not have to back-cvs /usr/src to patch the current one I have : installed. (the more basic problem is i really should be keeping multiple : versions of /usr/src around for different versions on different machines, : but that is a separate problem). modules/cam is what you want. Hmmm, looks like you have part of it in your kernel already, so you'll not be able to do what you want. Warner ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
kernfs
Hi all, I'm trying to mount the kernel directory /kern. I've added the folloing entry in my /etc/fstab: kern/kern kernfs rw 0 0 but when I run mount -a it displays the following error message: mount: exec mount_kernfs not found in /sbin:/usr/sbin: No such file or directory How can I solve this problem? Thanks for now! -- João Salvatti ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Xlib: connection to ":0.0" refused by server
Hi all, I've installed NVU (from ports). Everything worked fine while installing it, but when I run the program it displayed the following message: Xlib: connection to ":0.0" refused by server Xlib: XDM authorization key matches an existing client! (nvu-bin:45268): Gtk-WARNING **: cannot open display: I've started the program by the console logged as a ordinary user. It also happens when I try to run Firefox: Xlib: connection to ":0.0" refused by server Xlib: XDM authorization key matches an existing client! (firefox-bin:45297): Gtk-WARNING **: cannot open display: How can I solve this problem? Thanks for now! -- João Salvatti ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Does 802.11b use a lot of resources?
Loren M. Lang wrote: On Wed, Mar 02, 2005 at 01:26:45AM -0500, Bob Johnson wrote: On Friday 25 February 2005 12:06 am, Christopher Kelley wrote: Have I tried too hard to squeeze usability out of an old computer? I have a Pentium-166 that has been a faithful router & firewall (FreeBSD 5.3 and pf) for a couple years now. It has no trouble with the 3 to 4 Mbps I get from my broadband connection, at least not with ethernet. I wanted wireless, so I could use my laptop around the house. I dutifully read the section in the manual about setting up FreeBSD as an access point. I'm using a Netgear MA311 802.11b card (Prism 2.5 chipset). And it does work, except it's very slow. Now I know that I can only expect about 50% of the rated speed with wireless, but I figured even if I got only 4Mbps, I'd be fine. But I get less than 1Mbps. I've updated the firmware, added a signal booster and hi-gain antenna, and I have "excellent" signal strength throughout my house. So my question is, is there more overhead with wireless than with ethernet? TOP doesn't seem to show that I'm taxing it too hard, idle never goes below about 70% with polling enabled (Hz=1000), and never below about 80% with polling disabled. Am I expecting too much out of an old Pentium-166? My experience is that: 1) 50% throughput is probably the best you should expect. I generally plan on 3-4 Mbps for an 11 Mbps 802.11b card. 2) Using 128-bit encryption (WEP) will significantly slow down some (many?) cards. The WEP processing is done on the card (I think), and they simply don't have hefty processors. If you use 128-bit WEP, try 64-bit WEP and see if that speeds things up. 64 bit WEP is adequate to keep out casual snoopers, and 128 bit is not adequate to keep out a serious attacker, so the difference in security may not be as important as some believe. 64-bit WEP is also known as 40-bit, and similarly for 128-bit WEP. Actually, what I recommend for home you, if you have the time, is IPSEC. Much more secure than WEP and it's all done on the main cpu so it should slow the wifi down as much. There's a good article on freebsddiary.org I believe. I found the article on freebsddiary, and I admit I only skimmed it, but I have a mix of FreeBSD and Windows (XP) on my wireless network, and for now I'd like to keep it as simple as possible. Christopher ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: c standard
Florian Hengstberger wrote: We are OT, anyway... Following is possible with gcc and g++: These are two quite different cases: gcc is normally for C, g++ for C++. Contrary to what many people believe, they are two very different languages. #include If you are using C++ you should not #include , but #include double sin(double) { return 1; } Why I don't get any warnings like: sin prevously defined in math.h ... Mainly because it isn't. In math.h (or cmath) sin is only declared, not defined. There might possibly be other reasons: like the fact that in C++, provided you correctly included and not , the standard sin will be in namespace std, not in the global one. Why is it possible to overwrite the definition of sin, is this part of the standard? Again, you are providing *a* definition; there is no previous one at this point to override. Secondly the definition (not declaration) of double sin(double) misses a variable! You are not missing any variable; you are merely not assigning it any name. > Is this ok, when the variable is not referenced in the code? Exactly. bye av. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
NFS Write performance
Hi all, ok, I've searched far and wide, but I have to ask the FreeBSD gurus about it... I'm using a Netapp NFS server to serve up content to FreeBSD clients, and I am seeing terrible write performances. I've turned on these in the rc.conf file : nfs_client_enable="YES" nfs_client_flags="-n 4" nfs_server_enable="YES" rpc_lockd_enable="YES" rpc_statd_enable="YES" nfs_bufpackets=8 and I've got these in the sysctl.cnf file : kern.maxfiles=32768 net.inet.tcp.keepidle=3600 net.inet.tcp.sendspace=65536 net.inet.tcp.recvspace=65536 net.inet.tcp.slowstart_flightsize=2 kern.ipc.somaxconn=16384 kern.ipc.shmall=65536 kern.ipc.shmmax=268435456 kern.ipc.nmbclusters=32768 I'm using 5.3-RELEASE on a dual AMD Opteron machine. I guess my question is, how do I make NFS writes fly ??? The reads seem to be pretty good. I know that the settings on the netapp are per their settings... Thanks, Tim. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kernfs
kernfs was removed some time ago (about 4.8 I think). It certainly exists on a 4.7 machine I have. Frem. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Default security: other users can ACCESS MY HOMEDIR?!
How would you restrict regular users from accessing any part of the file system accept there home dirs? Is this even possible? On Tue, 01 Mar 2005 14:26:10 +0100, David Landgren <[EMAIL PROTECTED]> wrote: > Fafa Diliha Romanova wrote: > > hey > > > > i didn't realize all my users had full access to my homedir! > > that kinda sucks, me who thought i had everything private and locked down > > > > what chmod should i set my homedir to then? > > chmod 700 $HOME > > > and how do i set my system to chmod all new homedirs to that chmod? > > umask 0077 > > > > > thanks! > > You're welcome. > > David > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: NFS Write performance
On Wed, 02 Mar 2005 08:52:16 -0800, Tim Traver <[EMAIL PROTECTED]> wrote: > Hi all, > > ok, I've searched far and wide, but I have to ask the FreeBSD gurus > about it... > > I'm using a Netapp NFS server to serve up content to FreeBSD clients, > and I am seeing terrible write performances. I don't call myself a guru, but we have a similar setup with 4 NetApps with about 20 FreeBSD (dual Xeon) clients. > I've turned on these in the rc.conf file : > > nfs_client_enable="YES" > nfs_client_flags="-n 4" > nfs_bufpackets=8 You don't need these for the client: > nfs_server_enable="YES" > rpc_lockd_enable="YES" > rpc_statd_enable="YES" > and I've got these in the sysctl.cnf file : > > kern.maxfiles=32768 > net.inet.tcp.keepidle=3600 > net.inet.tcp.sendspace=65536 > net.inet.tcp.recvspace=65536 > net.inet.tcp.slowstart_flightsize=2 > kern.ipc.somaxconn=16384 > kern.ipc.shmall=65536 > kern.ipc.shmmax=268435456 > kern.ipc.nmbclusters=32768 > > I'm using 5.3-RELEASE on a dual AMD Opteron machine. > I guess my question is, how do I make NFS writes fly ??? > > The reads seem to be pretty good. I know that the settings on the netapp > are per their settings... What sort of performance are you getting? On one of our already busy mail servers, using just normal mounting on fast ethernet, I get: bash-2.05b# time dd if=/dev/zero of=/mail/A-D/100M bs=1024k count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 9.284085 secs (11294339 bytes/sec) Not bad! We also get extremely good I/O on email, i.e. small files. > Thanks, > > Tim. Frem. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: c standard
On 2005-03-02 17:13, Florian Hengstberger <[EMAIL PROTECTED]> wrote: > Following is possible with gcc and g++: > > #include > > double sin(double) > { > return 1; > } > > int main() > { > sin(1); > return 1; > } > > Why I don't get any warnings like: > > sin prevously defined in math.h ... > > when I compile with -Wall -pedantic -ansi. Are you sure? It fails to compile here: $ cc -std=c89 -pedantic sin.c sin.c: In function `sin': sin.c:3: error: parameter name omitted $ cc -std=c99 -pedantic sin.c sin.c: In function `sin': sin.c:3: error: parameter name omitted > Why is it possible to overwrite the definition of sin, is this part of > the standard? There is no definition of sin() at that point. Only a declaration (i.e. a prototype of the function). Your definition happens to match the visible prototype, so it accepts your custom definition of sin(). > Secondly the definition (not declaration) of double sin(double) misses > a variable! Is this ok, when the variable is not referenced in the > code? This is not ok, as far as I can tell from the warnings above. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: security advisories and the creating time of my system
On Wed, 2 Mar 2005, Nathan Kinkade wrote: > On Wed, Mar 02, 2005 at 05:03:35PM +0100, Erik Norgaard wrote: > > Nathan Kinkade wrote: > > >>The security advisory give me the possibility to patch my system or to > > >>download the "patched" FreeBSD via ftp. How can I recognize which creation > > >>time the running system has? > > > > > >Try the command `uname -v`. > > > > AFAIK this command tells you the build time, but now how fresh the > > source was. > > > > Erik > > Yes, you are correct, but he mentions that he wants to know the > "creation" (build?) time of the "running system," so I figured that the > date/time provided by uname was what he was looking for. Maybe you are > right, though. Perhaps more important is whether his sources are newer > than the fix date. > > Nathan > Hello Nathan, I need the date/time to decide if I need to download a version from the ftp-server in belief I would not need to patch my system anymore. But you are writing there is a better method to decide when a download is necessary or not? Which one? With regards Stevan Tiefert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FreeBSD 4.5 and 5.2.1
I have both of the above mentioned versions. For some reason or other, neither one will get past the part of the installation where they probe for hardware. I've let both versions get after it for over 2 hours, and they're still probing for hardware. Any suggestions as to what I should be doing to not have this happen? The machine I'm trying this on has an AMD Duron CPU running at just over 1 Gig. Any info would be appreciated. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Default security: other users can ACCESS MY HOMEDIR?!
On Wed, 2 Mar 2005, Nick Pavlica wrote: > How would you restrict regular users from accessing any part of the > file system accept there home dirs? Is this even possible? > Hello Nick, it is possible but why? The user must be able to access their shells, configurations and so on! With regards Stevan Tiefert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: security advisories and the creating time of my system
On Wed, Mar 02, 2005 at 06:25:48PM +0100, Stevan Tiefert wrote: > On Wed, 2 Mar 2005, Nathan Kinkade wrote: > > > On Wed, Mar 02, 2005 at 05:03:35PM +0100, Erik Norgaard wrote: > > > Nathan Kinkade wrote: > > > >>The security advisory give me the possibility to patch my system or to > > > >>download the "patched" FreeBSD via ftp. How can I recognize which > > > >>creation > > > >>time the running system has? > > > > > > > >Try the command `uname -v`. > > > > > > AFAIK this command tells you the build time, but now how fresh the > > > source was. > > > > > > Erik > > > > Yes, you are correct, but he mentions that he wants to know the > > "creation" (build?) time of the "running system," so I figured that the > > date/time provided by uname was what he was looking for. Maybe you are > > right, though. Perhaps more important is whether his sources are newer > > than the fix date. > > > > Nathan > > Hello Nathan, > > I need the date/time to decide if I need to download a version from the > ftp-server in belief I would not need to patch my system anymore. But you > are writing there is a better method to decide when a download is > necessary or not? Which one? No, I don't mean to imply that there is a better method. It just depends on what you are trying to determine. If you regularly use cvsup to update your sources and you have cvsup'd since the correction date of the security warning then you don't need to download the patch, as you would already have merged the corrections into the source tree on your local machine. In that case, you could just recompile the utility, or the kernel, as they case may be. If you have no idea whether you have sync'd your sources since the correction date of the security date, then you can alway look at the CVS version string in the file in question. It will look something like: $FreeBSD: src/sbin/ifconfig/ifconfig.c,v 1.92 2003/10/26 04:36:47 peter Exp $ Basically, if your sources, or the particular source file in question, are not newer than correction date listed in the security alert then you need to follow the directions to fix or workaround the problem. Nathan pgpBD9lS21HaL.pgp Description: PGP signature
RE: NFS Write performance
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Tim Traver > Sent: Wednesday, March 02, 2005 8:52 AM > To: freebsd-questions@freebsd.org > Subject: NFS Write performance > > > > I'm using 5.3-RELEASE on a dual AMD Opteron machine. > > I guess my question is, how do I make NFS writes fly ??? > > The reads seem to be pretty good. I know that the settings on > the netapp > are per their settings... > What network adapter cards are your 5.3 clients using? Is this NFS 2 or NFS 3 protocol that the Netapp is serving files with? Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Received mail timestamp is off by 7 hours
On Wed, 2 Mar 2005 03:11:19 -0800, Ted Mittelstaedt wrote: Loren wrote: > > little bit less reliable using local to UTC unless you are not affected > > by any daylight savings changes like Arizona in the US or, I'm > > sure, many > > other places around the world. For a desktop or test machine, booting multiple OS at various times like you said, I'd as likely run UTC CMOS too. Enough to confuse already .. I've just some fun browsing again through bits of code from /usr/src like sbin/adjkerntz/adjkerntz.c, sys/i386/isa/clock.c, sys/isa/rtc.h, sys/i386/include/clock.h, just to scratch the surface. Great stuff. I'm yet to be convinced there's an even potential technical problem in running local time RTC on a server that runs FreeBSD all the time. I won't labour personal preferences further, but don't feel vulnerable. Yes, we do DST changes; I'd guess well under a millisecond twice a year. Hey, you can lose your bootsector if the sky falls at the wrong instant! Ted writes: > There's no excuse for a mailserver to not be synced to a NTP source. Absolutely, or indeed most anyserver. Or even a multiboot workstation! Ian out. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: security advisories and the creating time of my system
On Wed, 2 Mar 2005, Nathan Kinkade wrote: > On Wed, Mar 02, 2005 at 06:25:48PM +0100, Stevan Tiefert wrote: > > On Wed, 2 Mar 2005, Nathan Kinkade wrote: > > > > > On Wed, Mar 02, 2005 at 05:03:35PM +0100, Erik Norgaard wrote: > > > > Nathan Kinkade wrote: > > > > >>The security advisory give me the possibility to patch my system or to > > > > >>download the "patched" FreeBSD via ftp. How can I recognize which > > > > >>creation > > > > >>time the running system has? > > > > > > > > > >Try the command `uname -v`. > > > > > > > > AFAIK this command tells you the build time, but now how fresh the > > > > source was. > > > > > > > > Erik > > > > > > Yes, you are correct, but he mentions that he wants to know the > > > "creation" (build?) time of the "running system," so I figured that the > > > date/time provided by uname was what he was looking for. Maybe you are > > > right, though. Perhaps more important is whether his sources are newer > > > than the fix date. > > > > > > Nathan > > > > Hello Nathan, > > > > I need the date/time to decide if I need to download a version from the > > ftp-server in belief I would not need to patch my system anymore. But you > > are writing there is a better method to decide when a download is > > necessary or not? Which one? > > No, I don't mean to imply that there is a better method. It just > depends on what you are trying to determine. If you regularly use cvsup > to update your sources and you have cvsup'd since the correction date of > the security warning then you don't need to download the patch, as you > would already have merged the corrections into the source tree on your > local machine. In that case, you could just recompile the utility, or > the kernel, as they case may be. If you have no idea whether you have > sync'd your sources since the correction date of the security date, then > you can alway look at the CVS version string in the file in question. > It will look something like: > > $FreeBSD: src/sbin/ifconfig/ifconfig.c,v 1.92 2003/10/26 04:36:47 peter Exp $ > > Basically, if your sources, or the particular source file in question, > are not newer than correction date listed in the security alert then you > need to follow the directions to fix or workaround the problem. > > Nathan > Hello Nathan, in a security advisory in part V. is written: V. Solution Perform one of the following: 1) Upgrade your vulnerable system to 4-STABLE or 5-STABLE, or to the RELENG_5_3, RELENG_5_2, RELENG_4_10, or RELENG_4_8 security branch dated after the correction date. Can you say me how to get of a running system the date? Because if the system is after the correction date I do not have to download via ftp. If not I have to... With regards Stevan Tiefert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: security advisories and the creating time of my system
Gruss On Mar 2, 2005, at 10:53 AM, Stevan Tiefert wrote: $FreeBSD: src/sbin/ifconfig/ifconfig.c,v 1.92 2003/10/26 04:36:47 peter Exp $ Basically, if your sources, or the particular source file in question, are not newer than correction date listed in the security alert then you need to follow the directions to fix or workaround the problem. Nathan Hello Nathan, in a security advisory in part V. is written: V. Solution Perform one of the following: 1) Upgrade your vulnerable system to 4-STABLE or 5-STABLE, or to the RELENG_5_3, RELENG_5_2, RELENG_4_10, or RELENG_4_8 security branch dated after the correction date. Can you say me how to get of a running system the date? Because if the system is after the correction date I do not have to download via ftp. If not I have to... Do you have sources (/usr/src tree) on your system? Then do what nathan said -- look at the date in the source file for the thing the security advisory was about. There are also various patch levels, though I am not sure where they are documented. That would show in the "uname -a" as for example "5.3-RELEASE-p5" Chad ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: restore
On Tuesday 01 March 2005 06:02 pm, Jerry McAllister wrote: OK, for the record: > > On Tuesday 01 March 2005 04:36 pm, Jerry McAllister wrote: > > > > The production machine is working just fine. > > > > All the FreeBSD stuff is on ad0s1, a 40 GB hard drive. > > > > I have been using a 120 GB drive on ad0s1 for > > > > backup, and have (apparently successfully) done > > > > a dump of production / and /usr. > > > > > > > > So, I fire up the development machine with > > > > the 120 GB drive as the slave of controller 1, > > > > what I would like to be the main drive of the > > > > development system (a 40GB hard drive) as > > > > the master of controller 0, and disk 2 of the > > > > Free BSD CD-ROMs in the CD-ROM drive. > > > > > > > > Up comes beastie and I boot. > > > > I select "fixit" from the menu, followed by alt-F4. > > > > > > > > Then: > > > > mount /dev/ad0s1a /mnt (to make the new root accessible to > > > > the system). > > > > mkdir backup (make a mount point for the 120GB > > > > drive) mount /dev/ad3s1a /backup (mount the 120 GB drive) > > > > newfs /dev/ad0s1a (start the new root with a clean sheet > > > > prior to doing a retore) > > > > > > > > BUT instead I get a diagnostic as follows: > > > > fstab: /etc/fstab:0: No such file or directory > > > > newfs: /dev/ad0s1a: failed to open disk for writing > > > > > > > > Could anybody tell me what I *should* be doing (bonus > > > > extra points for expalining why :-) )?" > > > > > > Well, I got a little confused as to which machine has which drive[s] > > > Especially when you say early on that everything on the production > > > machine is on ad0s1 - a 40 GB drive and then say you are doing > > > backups to ad0s1 - a 120 GB drive. > > > > Typo -sorry about that; the 120G is ad1s1a when it is on > > the production machine. > > Figured that was probable. > > > > That sounds like you have > > > two ad0 drives on the machine at the same time. I suspect something > > > is missing of twisted in the description. > > > > > > But, farther down seems to be your real problem. > > > The first question is did you look at the boot messages when you > > > came up in fixit and are sure that ad0 and ad3 are the devices you > > > need to be dealing with? > > > > df verifies that ad0 is the 40G and ad3 is the 120G on the > > development machine. > > > > As I understand it, ad3 is the slave of the second IDE controller (1). > > It gets to be slave because the drive jumpers are set > > that way, so the 120 can be slave on the first controller on the > > production machine (ad1). That way I can swap without redoing > > the jumper. > > Could be. My only IDE machine I have never had more than one disk on. > SCSI is more orderly. I would just check the messages as it boots or > look at dmesg(8) and verify the device names. > > > > I kind of would have expected ad0 and ad1 > > > or maybe ad0 and ad2, but I am not used to mucking with IDE > > > controllers. > > > > > > Next, why did you try and mount /dev/ad0s1a and then newfs /dev/ad0s1a > > > That should not work at all. You don't newfs a mounted partition. > > > > Gee, I didn't know that. It wasn't clear when I read the handbook > > or man pages. May give me something new to try-- > > That is probably your main problem. > Doing the newfs on the unmounted partition worked the way I expected it to. Once more, thanks to all. -LenZ- > > > Second, that would wipe what is on there - maybe you want that. > > > > I do indeed want that. > > > > > I don't know why it complains about fstab at that point. The fixit > > > does not create one, but I don't see where it is needed for what you > > > are trying. > > > > Makes two of us. > > I've been fooled before. Most days. > > jerry > > > > Maybe, just doing the wrong thing with newfs got it > > > to trying to check stuff. > > > > > > Anyway, There are some thoughts of things to work out. Maybe > > > they will give you a clue of what to try next. > > > > > > jerry > > > > Thanks. > > > > > > -LenZ- > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Where do the linker look for shared libraries?
Hi! I've tried to compile and link a small game written with the Allegro API. For some odd reason the linker just don't understand how to resolve the symbols in the library. It just can't accept that the library is in a ".so" file and not an ".a" archive, and even when I point it out explicitly it still don't get it. This is my commandline: gcc main.o rotoAction.o rotoCog.o -o RotoCube.exe -lstdc++ -L/usr/local/lib/ -lalleg and the errors I get looks like this: /usr/local/lib//liballeg.so: undefined reference to `_poly_zbuf_atex_trans8' /usr/local/lib//liballeg.so: undefined reference to `_poly_scanline_atex_mask_lit32' Which is kind of odd since before I added the -L flag it complained about the .a file being missing. Now it's not being used. How do ld decide where to look for libraries? Is there a way to teach it systemwide not to search for ar archived, and in fact use the .so files? And why on earth is the linker complaining about undefined references now that it is actually looking at the right shared library file? /Andreas -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Received mail timestamp is off by 7 hours
Loren M. Lang writes: > Well, I haven't looked into all the details of how FreeBSD does this, > but I gaurentee that there is a point where FreeBSD can crash and the > clock could be knocked off an hour which wouldn't happen if it's running > UTC. Traditionally, UNIX sets the real-time clock to UTC. There's no good reason to set it to anything else, unless you are running multiple boots with other operating systems that don't expect UTC in the RTC. Even then, you have to be careful. -- Anthony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Received mail timestamp is off by 7 hours
Ted Mittelstaedt writes: > There's no excuse for a mailserver to not be synced to a NTP source. I'd extend that to apply to any server. Practically all the things a server does are dependent in some way on the correct time. This is also increasingly true of desktops. Gone are the days when you could just set the clock forward or back temporarily for some specific purpose. Today if you do that on a lot of desktops, you'll mess things up terribly (imagine having every birthday for the next five years trigger simultaneously when you open Outlook, or having half your file system marked for immediate deletion--not a pretty picture). -- Anthony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Installation instructions for Firefox somewhere?
Ted Mittelstaedt writes: > HP didn't manufacture either of the drives nor the SCSI controller so > why would you think that they know what they are talking about? They rebranded the drives and took the top 10% or so of production batches (according to someone I knew on the inside). They also charged more for them. > This happens when the SCSI target disk0 stop answering > commands from the SCSI adapter. > >> Feb 26 20:09:26 contactdish kernel: (da1:ahc0:0:2:0): Retrying Command >> Feb 26 20:09:26 contactdish kernel: (da1:ahc0:0:2:0): Queue Full >> Feb 26 20:09:26 contactdish kernel: (da1:ahc0:0:2:0): Retrying Command > > Same thing as above just with the second disk. So perhaps FreeBSD is issuing commands that the disk drives don't like. Incidentally, I've discovered that I can instantly generate similar messages by issuing "smartctl -a /dev/da0" (or da1). > The usual problem is bad termination that causes this, because what > happens with bad termination is that electrical noise causes one or > more targets on the bus to receive a command that is garbage, that > target shuts down and goes out of sync with the other initiators and > targets on the bus, as soon as that happens all targets shut down. I would have seen the same problem with Windows if that were the case. The hardware was the same, and the long delay (20-30 seconds) produced each time this happens would have been impossible to ignore. > But it can also be caused by a device that isn't totally compliant > with the standard interfering with another device on the bus (although > this is rare) And it can also be caused by the adapter card driver > sending a command to a target that the target doesen't understand or > does not process properly, this can happen when during the probe on > boot, a target responds saying it supports something, then really > doesen't. IDE devices are infamous for this, claiming to support UDMA, > PIO mode 4, and such when they really don't support them properly. Or perhaps FreeBSD doesn't understand that this particular (old) SCSI hardware can't understand every command it issues. > The driver for the SCSI adapter has finally given up trying to send > commands to the adapter card your disks are tied to and has decided to > just reset the card entirely, which resets the bus and all devices on > it, which reestablishes sync. That explains the long delay. > This is a bit significant, after the bus reset, the second disk (the > Quantum) isn't answering. But it looks like it later on started > responding since otherwise your system would probably have paniced. I've experienced one or two panics, but most of the time it's just a long delay. I've seen no evidence of data corruption, although it's hard to be sure, of course. > The idea that a SCSI command sent to a disk by the adapter card > causing this is unlikely, unless either the Seagate or Quantum models > that you have are known rogues (and I didn't find that they are) it is > much more likely a conflict on the SCSI bus. Why now, after eight years? > Well first of all I already told you to run your BIOS config and set > the adapter to limit sync negotiation on the Quantum to 10Mb and > see if that fixed it. I'll check that the next time I boot. But it seems to happen on both drives, not just the Quantum. > Secondly, you don't know how NT setup the disks and such on your > system. It is quite possible that the NT driver saw the mismatch > and simply reprogrammed the SCSI adapter card to limit both disks > to 10Mbt transfers. Or possibly the NT driver decided not to send > writes to both disks at the same time. So, comparisons like "it > worked with NT so the hardware must be good" are almost useless. So how do I configure FreeBSD to do the same thing? If NT can do it in software, so can FreeBSD. > But the most important thing, and I think why your having so much > trouble here, is that you are trying to approach this problem > as though you paid $9,000 for this server, yesterday. I don't believe in throwing computers away just because they are a few years old. > If your Vectra was a brand new prototype in an HP test lab, or > even if it was 10 days old from HP and you ran into this problem, > you might have engineers with SCSI analyzers from HP's server > build department all over you. If it were a problem with hardware, I would have had exactly that eight years ago. But I didn't, so it's not. > But it's not - this is a server that has a production life that > is OVER. I know you don't like Ebay and you probably think that > everything on it is junk, but people are selling HP servers on > it right now that are more powerful than yours and younger than > it for under a hundred bucks - see: Why should I pay anything for another machine, when I have a perfectly good one here on my desk? All I need is software that can drive it. > The fact of the matter is that ANY life you can get out of this > server today is found money - it's a freebie.
Re: Is Yahoo! moving from FreeBSD?
Ted Mittelstaedt writes: > Now let's see, your last post was jus advocating buying everything > new, you said you bought your house, car, etc. all new... > > and here your advocating obsolete hardware? > > Is this a flip-flop? No. It means don't buy the latest hardware; it doesn't mean buy used hardware. Find something less than the very latest thing, and buy that new. It'll be cheaper than the bleeding edge and it is more likely to be supported. And it will still be brand-new. -- Anthony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Where do the linker look for shared libraries?
In the last episode (Mar 02), Andreas Davour said: > I've tried to compile and link a small game written with the Allegro > API. For some odd reason the linker just don't understand how to > resolve the symbols in the library. It just can't accept that the > library is in a ".so" file and not an ".a" archive, and even when I > point it out explicitly it still don't get it. > > This is my commandline: > > gcc main.o rotoAction.o rotoCog.o -o RotoCube.exe -lstdc++ -L/usr/local/lib/ > -lalleg > > and the errors I get looks like this: > > /usr/local/lib//liballeg.so: undefined reference to `_poly_zbuf_atex_trans8' > /usr/local/lib//liballeg.so: undefined reference to > `_poly_scanline_atex_mask_lit32' This is the linker saying "there are symbols in liballeg.so that I cannot find anywhere". Maybe you need to specify another library along with liballeg? Are you using the allegro port? -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
External modem issues with 5.3 - serial interface there, butaccessing it locks tip/cu up.
Hi all, I'm trying to get an external modem working under 5.3, without success. FBSD is detecting the serial port, and the device is in /dev (as cuaa0). When I try to access the modem using cu or tip, as per the Handbook, both lock up. I have not made any changes to /etc/ttys because I do not intend to have dial-in access (am I correct there?, and /etc/remote looks fine. Any suggestions? -- Stephen. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Installation instructions for Firefox somewhere?
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Anthony > Atkielski > Sent: Wednesday, March 02, 2005 10:52 AM > To: freebsd-questions@freebsd.org > Subject: Re: Installation instructions for Firefox somewhere? > > > So perhaps FreeBSD is issuing commands that the disk drives don't like. > > Incidentally, I've discovered that I can instantly generate similar > messages by issuing "smartctl -a /dev/da0" (or da1). > That is 1000% better as far as troubleshooting goes, you need to file a PR on this. > > Secondly, you don't know how NT setup the disks and such on your > > system. It is quite possible that the NT driver saw the mismatch > > and simply reprogrammed the SCSI adapter card to limit both disks > > to 10Mbt transfers. Or possibly the NT driver decided not to send > > writes to both disks at the same time. So, comparisons like "it > > worked with NT so the hardware must be good" are almost useless. > > So how do I configure FreeBSD to do the same thing? If NT can do it in > software, so can FreeBSD. > The Adaptec driver gets the setting out of the SCS adapters setting that are written into it's eeprom. You know the Press f6 message you get on boot, that lets you into the Adaptec BIOS? Change it there and the driver will pick up the change. > > But the most important thing, and I think why your having so much > > trouble here, is that you are trying to approach this problem > > as though you paid $9,000 for this server, yesterday. > > I don't believe in throwing computers away just because they are a few > years old. > I don't either but the world does and it is difficult to interest people in support of gear that is 8 years old. Hardware manufacturers in particular have a vested interest in helping you to write drivers for their brand new gear so they can sell it, and a vested interest in not helpiing you resurrect old gear that might steal sales away from new gear. > > So what is the difference between yours and mine? > FreeBSD 4.11 instead of 5.3 is a big one. Also I am using a card, my controller isn't on the motherboard. Also I only have 1 disk drive - although as you will note I have a SCSI cd and burner on the same bus. And my disk drive is a Micrapolis not a Seagate or Quantum. > > But this is a stable system. The hardware _does_ work. I didn't put > this together out of scrap parts. It has run perfectly for > eight years; > I think I can safely say that it's pretty well broken in by now. So > when I switch from Windows to FreeBSD and it stops working, I know it's > not hardware. > As long as you don't accept the fact that Windows drivers can and do write around hardware kludges, and FreeBSD drivers may not have all the same written-around kludges as the Windows ones do, your going to get nowhere. > > I'll consider it. The waste of time has been mutual. > If you don't take our advice here on the forum, it is a waste. Try limiting the sync negotiation to 10MB on the Quantum and see what happens. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
CPI autoload failed on boot of 5.3-R
I'm having trouble booting a box I just upgraded from 5.1->5.3-R. When booting it complains "CPI autoload failed" and panics about half way through the kernel boot procedure. If stop the autoboot and manually load acpi it boots just fine. Any ideas what's wrong here? Also, it'd would be great if the UPGRADING doc could mention something about the possible need to switch from vinum to geom_vinum - took me a couple of hours to track that one down. Anyone else bit by that? -- Kelsey Cummings - [EMAIL PROTECTED] sonic.net, inc. System Administrator 2260 Apollo Way 707.522.1000 (Voice) Santa Rosa, CA 95407 707.547.2199 (Fax)http://www.sonic.net/ Fingerprint = D5F9 667F 5D32 7347 0B79 8DB7 2B42 86B6 4E2C 3896 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Where do the linker look for shared libraries?
On Wed, 2 Mar 2005, Dan Nelson wrote: In the last episode (Mar 02), Andreas Davour said: I've tried to compile and link a small game written with the Allegro API. For some odd reason the linker just don't understand how to resolve the symbols in the library. It just can't accept that the library is in a ".so" file and not an ".a" archive, and even when I point it out explicitly it still don't get it. This is my commandline: gcc main.o rotoAction.o rotoCog.o -o RotoCube.exe -lstdc++ -L/usr/local/lib/ -lalleg and the errors I get looks like this: /usr/local/lib//liballeg.so: undefined reference to `_poly_zbuf_atex_trans8' /usr/local/lib//liballeg.so: undefined reference to `_poly_scanline_atex_mask_lit32' This is the linker saying "there are symbols in liballeg.so that I cannot find anywhere". Maybe you need to specify another library along with liballeg? Are you using the allegro port? I have grep'ed for those symbols and they come from liballeg.so, no place else. That's one of the very confusing things with those errors. I'm using the allegro port. BTW, there is a linux-allegro port as well. Why is this needed if Allegro is a platform independant API? /Andreas -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: security advisories and the creating time of my system
On Wed, Mar 02, 2005 at 06:53:21PM +0100, Stevan Tiefert wrote: > > > Hello Nathan, > > > > > > I need the date/time to decide if I need to download a version from the > > > ftp-server in belief I would not need to patch my system anymore. But you > > > are writing there is a better method to decide when a download is > > > necessary or not? Which one? > > > > No, I don't mean to imply that there is a better method. It just > > depends on what you are trying to determine. If you regularly use cvsup > > to update your sources and you have cvsup'd since the correction date of > > the security warning then you don't need to download the patch, as you > > would already have merged the corrections into the source tree on your > > local machine. In that case, you could just recompile the utility, or > > the kernel, as they case may be. If you have no idea whether you have > > sync'd your sources since the correction date of the security date, then > > you can alway look at the CVS version string in the file in question. > > It will look something like: > > > > $FreeBSD: src/sbin/ifconfig/ifconfig.c,v 1.92 2003/10/26 04:36:47 peter Exp > > $ > > > > Basically, if your sources, or the particular source file in question, > > are not newer than correction date listed in the security alert then you > > need to follow the directions to fix or workaround the problem. > > > > Nathan > > Hello Nathan, > > in a security advisory in part V. is written: > > V. Solution > > Perform one of the following: > > 1) Upgrade your vulnerable system to 4-STABLE or 5-STABLE, or to the > RELENG_5_3, RELENG_5_2, RELENG_4_10, or RELENG_4_8 security branch dated > after the correction date. > > Can you say me how to get of a running system the date? Because if the > system is after the correction date I do not have to download via ftp. If > not I have to... It sounds like you might want to take a look at the FreeBSD handbook regarding keeping your system up to date. You might start here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html In short, if the date that `uname -v` reveals is older than the corrections date listed in the security alert, AND you haven't already specifically taken any measures to fix the problem yourself, then your system probably is still affected by the problem detailed in the security alert. In this case you may want to do one of the two following things (depending on whether the alert even applies to you): 1) Follow the directions in the alert for patching your system, or 2) Syncronize your source tree and rebuild the kernel and/or system. Nathan pgpXd5IpKnWBS.pgp Description: PGP signature
Re: Perl 5.8.5 port errors out on install
Kris Kennaway wrote: On Tue, Mar 01, 2005 at 08:17:35PM -0500, Bob Ababurko wrote: Hello all- I have just installed 5.3 on my new setup that is sporting two amd 2800+ MP on a tyan k7 board. Pretty much, the first port I am installing, I am getting errors. I need perl 5.8 installed and this is the end of the output. Making DynaLoader (static_pic) Makefile out-of-date with respect to ../../config.h Cleaning current config before rebuilding Makefile... make -f Makefile.old clean > /dev/null 2>&1 || /bin/sh -c true ../../miniperl "-I../../lib" "-I../../lib" Makefile.PL "INSTALLDIRS=perl" "PERL_CORE=1" "LIBPERL_A=libperl.so" Writing Makefile for DynaLoader ==> Your Makefile has been rebuilt. <== ==> Please rerun the make command. <== false *** Error code 1 Usually means you have clock problems. Kris What do you mean, clock problems? Is this something that is fixable or does it mean that I am SOL? Actually, I did a little searching and I found that I am having ACPI issues. I have all these ACPI errors upon boot. Here is my dmesg, I hope it isn't overkill: flip# dmesg Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) MP 2800+ (2123.87-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x6a0 Stepping = 0 Features=0x383fbff AMD Features=0xc048 real memory = 536805376 (511 MB) avail memory = 515629056 (491 MB) ACPI APIC Table: MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4c80 StartNode 0xc19b4c80 ReturnNode 0 ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.SIO_.COM1._STA] (Node 0xc19b4c80), AE_NOT_FOUND ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4b00 StartNode 0xc19b4b00 ReturnNode 0 ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.SIO_.COM2._STA] (Node 0xc19b4b00), AE_NOT_FOUND ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4900 StartNode 0xc19b4900 ReturnNode 0 ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.SIO_.LPT_._STA] (Node 0xc19b4900), AE_NOT_FOUND acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4c80 StartNode 0xc19b4c80 ReturnNode 0 ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.SIO_.COM1._STA] (Node 0xc19b4c80), AE_NOT_FOUND ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4c80 StartNode 0xc19b4c80 ReturnNode 0 ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.SIO_.COM1._STA] (Node 0xc19b4c80), AE_NOT_FOUND ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4c80 StartNode 0xc19b4c80 ReturnNode 0 ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.SIO_.COM1._STA] (Node 0xc19b4c80), AE_NOT_FOUND ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4c80 StartNode 0xc19b4c80 ReturnNode 0 ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.SIO_.COM1._STA] (Node 0xc19b4c80), AE_NOT_FOUND ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4b00 StartNode 0xc19b4b00 ReturnNode 0 ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.SIO_.COM2._STA] (Node 0xc19b4b00), AE_NOT_FOUND ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4b00 StartNode 0xc19b4b00 ReturnNode 0 ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.SIO_.COM2._STA] (Node 0xc19b4b00), AE_NOT_FOUND ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4b00 StartNode 0xc19b4b00 ReturnNode 0 ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.SIO_.COM2._STA] (Node 0xc19b4b00), AE_NOT_FOUND ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4b00 StartNode 0xc19b4b00 ReturnNode 0 ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.SIO_.COM2._STA] (Node 0xc19b4b00), AE_NOT_FOUND ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4900 StartNode 0xc19b4900 ReturnNode 0 ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.SIO_.LPT_._STA] (Node 0xc19b4900), AE_NOT_FOUND ACPI-0438: *** Error: Looking up [Z00Q] in namespace, AE_NOT_FOUND SearchNode 0xc19b4900 StartNode 0xc19b4900 ReturnNode 0 ACPI-1303: *** Error
Re: Where do the linker look for shared libraries?
In the last episode (Mar 02), Andreas Davour said: > On Wed, 2 Mar 2005, Dan Nelson wrote: > >In the last episode (Mar 02), Andreas Davour said: > >>I've tried to compile and link a small game written with the > >>Allegro API. For some odd reason the linker just don't understand > >>how to resolve the symbols in the library. It just can't accept > >>that the library is in a ".so" file and not an ".a" archive, and > >>even when I point it out explicitly it still don't get it. > >> > >>This is my commandline: > >> > >>gcc main.o rotoAction.o rotoCog.o -o RotoCube.exe -lstdc++ > >>-L/usr/local/lib/ -lalleg > >> > >>and the errors I get looks like this: > >> > >>/usr/local/lib//liballeg.so: undefined reference to `_poly_zbuf_atex_trans8' > >>/usr/local/lib//liballeg.so: undefined reference to > >>`_poly_scanline_atex_mask_lit32' > > > >This is the linker saying "there are symbols in liballeg.so that I > >cannot find anywhere". Maybe you need to specify another library > >along with liballeg? Are you using the allegro port? > > I have grep'ed for those symbols and they come from liballeg.so, no > place else. That's one of the very confusing things with those errors. A web search on "undefined reference _poly_zbuf_atex_trans8" comes up with a couple hits, including a post that says you need to use the allegro-config command to determine the correct flags and libraries to link allegro. What does "allegro-config --libs" print? The demo programs built by the allegro port must work, so you could always build the port again and determine what flags it used. > I'm using the allegro port. BTW, there is a linux-allegro port as well. > Why is this needed if Allegro is a platform independant API? For linux programs that might need the library (same API, different ABI). I assume there's at least one in the ports tree somewhere. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Received mail timestamp is off by 7 hours
There's no excuse for a mailserver to not be synced to a NTP source. I'd extend that to apply to any server. Practically all the things a server does are dependent in some way on the correct time. I have three excuses: 1) NTP is difficult to configure. I've done it, but it wasn't trivial. 2) Finding an NTP server willing to accept traffic from the public isn't easy either. For me it involved a scavenger hunt through out-of-date websites and a lot of failed attempts. 3) If your clock tends to run noticably fast or slow, constant NTP corrections tend to do more harm than good, at least in my experience. It got to where I couldn't even run a buildworld because NTP kept tinkering with the clock in the middle of the process. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Received mail timestamp is off by 7 hours
Luke wrote: 1) NTP is difficult to configure. I've done it, but it wasn't trivial. It's always seemed rather straightforward to me, what in particular gave you trouble, perhaps we could help? 2) Finding an NTP server willing to accept traffic from the public isn't easy either. For me it involved a scavenger hunt through out-of-date websites and a lot of failed attempts. time.nist.gov is public, and has it's own atomic clock. A google search for "public ntp servers" also found this: http://www.pool.ntp.org/ 3) If your clock tends to run noticably fast or slow, constant NTP corrections tend to do more harm than good, at least in my experience. It got to where I couldn't even run a buildworld because NTP kept tinkering with the clock in the middle of the process. That suggests larger problems on your system, to me, but I dunno. Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Received mail timestamp is off by 7 hours
Luke writes: > 2) Finding an NTP server willing to accept traffic from the > public isn't easy either. For me it involved a scavenger hunt > through out-of-date websites and a lot of failed attempts. The overwhelming majority of ISPs I have used or inquired about had (at least) one customers-accessible NTP server. It is my understanding many universities will also ignore "off campus" requests that do not affect their own operations. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Received mail timestamp is off by 7 hours
In the last episode (Mar 02), Luke said: > >>There's no excuse for a mailserver to not be synced to a NTP source. > >I'd extend that to apply to any server. Practically all the things a > >server does are dependent in some way on the correct time. > > I have three excuses: > 1) NTP is difficult to configure. I've done it, but it wasn't trivial. > 2) Finding an NTP server willing to accept traffic from the public isn't > easy either. For me it involved a scavenger hunt through out-of-date > websites and a lot of failed attempts. You may not know about pool.ntp.org, then. As of Sep 2004, there were 200 public servers in the pool. See http://www.pool.ntp.org/ for instructions, including a nice 4-line ntp.conf file. > 3) If your clock tends to run noticably fast or slow, constant NTP > corrections tend to do more harm than good, at least in my > experience. It got to where I couldn't even run a buildworld because > NTP kept tinkering with the clock in the middle of the process. Two options: You can tell ntp to never step the clock by adding the -x flag, or you can increase the slew rate by fiddling with /sys/kern/kern_ntptime.c . You may need to do both. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FreeBSD NFS client and Netware 6.5 NFS server
Message below is about a FreeBSD server I maintain. The FreeBSD server is our web server. We use NFS to talk to a Netware file server where most of our users' web pages are stored. FreeBSD is 5.3, and was working ok with Netware 5.1 (and still is with other Netware servers). One of the servers was recently upgraded to Netware 6.5 and NFS is no longer playing nice between the two. When something on the Netware side updates a file by copying it into place (e.g. using FTP [don't complain] to upload a file), the FreeBSD client doesn't find out that the file contents have changed until it does something to the file (e.g. touch or chmod). Thus, when one of our users updates their web page with something like Dreamweaver, the web server doesn't find out about it (perhaps it eventually finds out, but it takes more than the several minutes we waited). As explained in the message below, a trace of the NFS server activity shows that the FreeBSD client implements ls -l as a series of operations (whatever that is) followed by an , while a Solaris client does a series of operations (those are the Netware abbreviations for the operations). The Solaris client does not exhibit any of these problems. I don't know if that is meaningful with regard to this problem, but clearly the Solaris client is doing things very differently than the FreeBSD client. Any (useful) suggestions about how to fix this? We've tried turning nfs_lockd and nfs_statd on and off on the client, we've tried both NFSv2 and NFSv3 (only v2 worked with the older Netware server), and a few other things that I don't remember. One of our other servers running FreeBSD 4.7 exhibits the same problem with Netware 6.5 NFS. Netware says they've tested their NFS server against FreeBSD 4.7 and that it works ok, so perhaps this should be treated as a Netware bug, but if anyone can suggest a quick way to make them play together it will be very much appreciated. Thanks, - Bob Original Message Subject: netware 6.5 nfs Date: Wed, 02 Mar 2005 15:51:31 -0500 From: Shawn To: Bob I've posted the following to a netware 6.5 support forum. -- POST #1 -- I just upgraded a netware 5.1 server to netware 6.5 overlay CD2 and am having problems with NFAU to a FreeBSD workstation. On a Windows workstation connected to the netware server with a drive mapping, if you edit files through the drive mapping (and subsequently save them directly to the volume) you immediately see the file changes at the FreeBSD mount point. However, if you edit and save the file on your local workstation and then copy the file over to the volume (the mapped drive), the FreeBSD system does not see the change in the file (I guess its NFS cache is not updating). If, on the FreeBSD system you touch (or chmod/chown) the file the cache gets updated and you see that the file has been updated. This was not a problem with NFAU under netware 5.1. Has anyone else seen this problem and/or have any possible things to look at tuning (I'm hoping someone has a cache setting to switch). (Am I even explaining this so it's understandable what's happening?) Before you ask, this is FreeBSD 5.3 (and I see that NFAU wasn't tested with this version)... I'm just holding out that there is something that can be done. -- POST #2 -- Here's some more information. Turns out it works just dandy if the volume gets mounted on a Solaris 8 workstation. I've done an NFS trace to see what is happening differently. The results of an 'ls' command on the Solaris workstation are: 13.3.01 [TCP ] RStatus 0 Accept 0 NFS 0 And on the FreeBSD workstation the results are: 13.3.04 [TCP ] RStatus 0 Accept 0 NFS 0 13.3.18 [TCP ] RStatus 0 Accept 0 NFS 0 It has one 13.3.01 or 13.3.04 line for each file/dir in the directory where the 'ls' command happens... only one 13.3.18 line per 'ls' command however. So the two NFS servers are doing something differently... just what and how to correct? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ghost imaging CD
Hello. I should say first that I've tried searching for an answer to my problem, with no success. I am attempting to create a bootable CD with a live FreeBSD system on it, for the purposes of installing a ghost image on a local hard drive, retreived from a remote share (I'm using samba, if it matters), and make that image bootable. I have succesfully created the CD, partitioned the hard drive using the process described in the bsdlabel manpage, and I have succesfully installed a label on ad0s1, to get ad0s1a-f the size I wish them to be. I have also succesfully performed newfs on each of them, and extracted the images (in the form of a tgz) to each slice. My problem is this: when the machine boots, it gets to the stage: Mounting root from "ufs:ad0s1a" and it freezes. Can anyone offer some insight as to why this might be happening? If more information is needed, I can certainly provide it, though I have included everything I see as relevant. Thanks! William ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: referencing in files
On Wed, Mar 02, 2005 at 01:02:05PM +0200, Jarrod - Cybertek wrote: > Ok sorry. > > Precisely. I have a file (actually a script, sorry) that has a lot of the > settings for a client in, eg IP addresses, interface they connect on etc. > and I use the motd to keep all this together, just to make things easier > when I log into my server. Now I want the motd to update (if at all > possible) to the settings in this file when I change it. Maybe a script IS > the only way to go. > > Here is an example: > > Say i have a file /root/setup.client.sh, and it has this line: > IFACE=ng10 > Now I want to have the motd, when it is displayed after login, to go fetch > the current value of that IFACE, and display that value. > > Is it a bit clearer? Yes. The way to go is to just make the script also update the motd when you run it. Kris pgplBClJCSwyf.pgp Description: PGP signature
ICMP in Java
I'm writing an app that needs to send out ICMP packets. ICMP isn't supported in Java until 1.5, and it looks like 1.5 is alpha and shouldn't be used for production. Is that correct? >From what I've read, I'll need to use a JNI implementation. Does anybody know of any preexisting ones for FreeBSD 5.3? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Where do the linker look for shared libraries?
On Wed, 2 Mar 2005, Dan Nelson wrote: and the errors I get looks like this: /usr/local/lib//liballeg.so: undefined reference to `_poly_zbuf_atex_trans8' /usr/local/lib//liballeg.so: undefined reference to `_poly_scanline_atex_mask_lit32' This is the linker saying "there are symbols in liballeg.so that I cannot find anywhere". Maybe you need to specify another library along with liballeg? Are you using the allegro port? I have grep'ed for those symbols and they come from liballeg.so, no place else. That's one of the very confusing things with those errors. A web search on "undefined reference _poly_zbuf_atex_trans8" comes up with a couple hits, including a post that says you need to use the allegro-config command to determine the correct flags and libraries to link allegro. What does "allegro-config --libs" print? The demo programs built by the allegro port must work, so you could always build the port again and determine what flags it used. Allegro have indeed changed since I looked at it last. I think it's time to check the pkg-plist. I didn't even think about Google! That did indeed fix the problems. I wasn't far off, but it had to link with a file with the unfriendly name "unsharable". I'm using the allegro port. BTW, there is a linux-allegro port as well. Why is this needed if Allegro is a platform independant API? For linux programs that might need the library (same API, different ABI). I assume there's at least one in the ports tree somewhere. OK. Sounds strange, but I guess it makes sense. I still wonder if there's a way to have ld not go looking for ar archives by deafault... /Andreas -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 4.5 and 5.2.1
On Wed, Mar 02, 2005 at 10:36:39AM -0700, Walter wrote: > I have both of the above mentioned versions. For some reason or other, > neither one will get past the part of the installation where they probe > for hardware. I've let both versions get after it for over 2 hours, and > they're still probing for hardware. Any suggestions as to what I should > be doing to not have this happen? The machine I'm trying this on has an > AMD Duron CPU running at just over 1 Gig. > > Any info would be appreciated. Thanks. Try a later version of FreeBSD (you just need to download the boot floppy and see if it boots); both 4.5 and 5.2.1 are very old now, and are missing many important bug fixes. Look for a BIOS update. It's common for older systems (and newer) to have buggy BIOSes. Reset your BIOS to default settings. Non-default settings can often prevent the computer from working. Kris pgppE2GHglWZc.pgp Description: PGP signature
Re: Perl 5.8.5 port errors out on install
On Wed, Mar 02, 2005 at 03:41:42PM -0500, Bob Ababurko wrote: > Kris Kennaway wrote: > >On Tue, Mar 01, 2005 at 08:17:35PM -0500, Bob Ababurko wrote: > > > >>Hello all- > >> > >>I have just installed 5.3 on my new setup that is sporting two amd 2800+ > >>MP on a tyan k7 board. Pretty much, the first port I am installing, I > >>am getting errors. I need perl 5.8 installed and this is the end of the > >>output. > >> > >> > >> Making DynaLoader (static_pic) > >>Makefile out-of-date with respect to ../../config.h > >>Cleaning current config before rebuilding Makefile... > >>make -f Makefile.old clean > /dev/null 2>&1 || /bin/sh -c true > >>../../miniperl "-I../../lib" "-I../../lib" Makefile.PL > >>"INSTALLDIRS=perl" "PERL_CORE=1" "LIBPERL_A=libperl.so" > >>Writing Makefile for DynaLoader > >>==> Your Makefile has been rebuilt. <== > >>==> Please rerun the make command. <== > >>false > >>*** Error code 1 > > > > > >Usually means you have clock problems. > > > >Kris > > What do you mean, clock problems? Is this something that is fixable or > does it mean that I am SOL? I mean make sure your clock is returning the correct time, and that it's updating correctly. If the date is wrong or it does not update correctly then you'll see these errors. > Is this bad situation.meaning one without a workaround? If it is > then I am through buying hardware on ebay. That will be a shame. Any > insight will be helpful. Yes, that could certainly cause it. Try disabling ACPI. Try looking for a BIOS update. Kris pgpQkur1gajxo.pgp Description: PGP signature