Re: X and tohiba Satelitte 4000CDT
Thursday, October 17, 2002, 6:03:54 PM, you wrote: MGB> f000:8083: 01 ILLIGAL EXTENDED X86 OPCODE MGB> I suspect this to be a problem with the packages from the error MGB> messages? I dont think the error is in the X conf file since it starts MGB> up. Hope someone can help? maybe its a toshiba problem? MGB> oh, and I have agp module loaded. MGB> Morten. Dear Morten, My guess is that this package just wasn't build for you CPU. (A higher type than your own. Say you got a 4x86 and they build it for a Pentium pro) -- Best regards, Alex The FreeBSD handbook http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html How to get the best results from FreeBSD-Questions http://www.lemis.com/questions.html To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Connect two machines via plip0
Never mind. I misspell 192 as 129 on one machine. It works now. On Fri, 18 Oct 2002, Zhihui Zhang wrote: > > I tried to connect two machines with a parallel cable. Some > configuration files are as follows: > > In file /etc/rc.conf, add following lines: > > inetd_enable="YES" > hostname="pc1.myhome.org" > ifconfig_lp0="inet 192.168.1.1 192.168.1.2 netmask 255.255.255.0" > > In file /etc/hosts, add the following line: > > 192.168.1.1 pc1.myhome.org pc1 > 192.168.1.2 pc2.myhome.org pc2 > > Of course, I do this on both machines (with necessary changes). > But ping won't work. I have done this with the same machines and cable > many times before. Only this time, I am using 4.6-release. Anything > changes in 4.6-release or am i missing something? Do I have to explicitly > enable ICMP or what? > > Thanks for any suggestions. > > -Zhihui > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
How to use java, shockwave, etc..?
Hello all, I hope I'm asking a basic question. What should I do to set up my FreeBSD desktop with a browser that supports all (or at least most) linux plugins? I've had no luck with linux_base + linux-sun-jdk13, for example, with linux-opera or linux-mozilla ports. Using 4.7. Should I be using native browsers? If so, that means I can't download Linux plugins from the net, right? I'm beginning to think I'm the only one on the planet trying to use FreeBSD as a desktop machine. If this is true, I'd appreciate some honest advice to switch to a Linux distro, for example. I'm sticking with FreeBSD just because I use it on servers and I love it, but I'll switch if I have to. Any response appreciated, even if it's "whoa, i wouldn't do what you're trying to do." Thanks! Elvis __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Questions about dialup
> Hi. Got a quick question. I'm unsure of the answer or where to > look. I'm setting up one of our old machines as a freebsd dialup station > for work to test local pops for linux compatibility for a local ISP. I > also want to use it as a way for me to learn how to dialup to the internet > using Freebsd. Considering I've only ever used it on a network, this will > be new to me. Can anyone recommend a good linux/freebsd dialer software I > could use? I'm using freebsd 4.6 on the machine and would like to install > a dialer (and modem drivers if possible) so I can use it as a test dialer > station. Just use the built-in dialer - it's called ppp. See the manpage for it, or the handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html you shouldn't need to download any drivers, unless it's a Lucent Winmodem, in which case the ltmdm port might prove helpful. -- Dan Pelleg To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
supported USB-compact flash readers ?
Maybe this should go to -usb, but we don't have such a mailing list, so i am asking here. What are the options for USB compact flash card readers under FreeBSD ? I know that the Sandisk SDDR-31 works (just tried one), unfortunately it has been discontinued and several online stores list it as out of stock, so it is not a viable alternative, and i would really like to see if we can expand the list of supported devices so one does not have to shop blindly. I have a Sandisk SDDR-75 which is listed as 'working with linux' if you do a google search. Unfer FreeBSD 4.6.2, it is recognised by umass, but when you try to do anything on it you get BBB timeouts and all sorts of misbehaviours. Any better experience ? cheers luigi --+- Luigi RIZZO, [EMAIL PROTECTED] . ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2988 --+- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: /dev/* permissions
Sunday, October 20, 2002, 12:22:44 AM, you wrote: HR> Hello, HR> it seems to me that after the last upgrade the permission of the HR> devices /dev/* have become more restrictive. /dev/*random and HR> /dev/tty were not accessible by ordinary users. HR> How can I restore the permissions on the devices to `reasonable' HR> values (as they were before the upgrade)? HR> -Hanspeter HR> To Unsubscribe: send mail to [EMAIL PROTECTED] HR> with "unsubscribe freebsd-questions" in the body of the message Dear Hanspeter, This is how it looks for me. crw--w 1 alex tty 5, 0 Oct 20 00:31 /dev/ttyp0 crw--w 1 root tty 5, 1 Oct 20 00:31 /dev/ttyp1 crw--w 1 root tty 5, 2 Oct 20 00:02 /dev/ttyp2 crw--w 1 root tty 5, 3 Oct 19 23:48 /dev/ttyp3 crw--w 1 root tty 5, 4 Oct 19 23:49 /dev/ttyp4 crw--w 1 root tty 5, 5 Oct 20 00:31 /dev/ttyp5 crw-rw-rw- 1 root wheel 5, 6 Oct 19 03:40 /dev/ttyp6 crw-rw-rw- 1 root wheel 5, 7 Oct 19 03:38 /dev/ttyp7 ... snip ... You could as root do: cd /dev MAKEDEV * And all should be fine. If you insist on changing permissions by hand check out: chmod -- Best regards, Alex The FreeBSD handbook http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
authentication server with group permissions?
Could someone point me in the right direction to find information on creating an authentication server in such a way that if some user logs in on a particular machine, as long as he is in a certain group he will have read access to all/or certain files as well on other servers depending on the group and rules set for that group? Dave To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
/dev/* permissions
Hello, it seems to me that after the last upgrade the permission of the devices /dev/* have become more restrictive. /dev/*random and /dev/tty were not accessible by ordinary users. How can I restore the permissions on the devices to `reasonable' values (as they were before the upgrade)? -Hanspeter To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ATI Radeon 7000 VE and XFree86
"E. J. Cerejo" <[EMAIL PROTECTED]> writes: > Anybody using this card? Which XFree86 server should > I use for this card? When running xf86config I don't > see anything for radeons! I've used it under XFree86-4.2.0* in 16- and 24-bit modes, at several resolutions from 800 to 1600. I haven't bothered to try its 3D or dual-monitor features. I did find that 1600x1200 only worked well up to 70 Hz, but I'm happy with that. >From /var/log/XFree86.0.log: (--) PCI:*(1:0:0) ATI Radeon VE QY rev 0, Mem @ 0xd000/27, 0xd900/16, I/O @ 0xd000/8 ... (II) Loading sub module "radeon" (II) LoadModule: "radeon" (II) Reloading /usr/X11R6/lib/modules/drivers/radeon_drv.o Your question sounds like you're still using XFree86 3.x and I don't know whether that supports the 7000. Try www.xfree86.org or groups.google.com . I don't remember how I configured X but if "xf86config" fails you, try "xf86cfg" or "XFree86 -configure". And don't forget "xvidtune". To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: FreeBSD version of Linux's "passwd -l"
That's from the lock(1) man page, not the pw(8) man page. the relevant section from the pw man page is as follows: USER LOCKING Pw supports a simple password locking mechanism for users; it works by prepending the string `*LOCKED*' to the beginning of the password field in master.passwd to prevent successful authentication. The lock and unlock commands take a user name or uid of the account to lock or unlock, respectively. The -V, -C, and -q options as described above are accepted by these commands. On Sat, 2002-10-19 at 21:01, Bsd Neophyte wrote: > > this is what i pulled from the 'pw' man page about the 'lock' option. > > to me, it doesn't seem as if they do the same thing. > > - > DESCRIPTION > The lock utility requests a password from the user, reads it again for > verification and then will normally not relinquish the terminal until the > password is repeated. There are two other conditions under which it will > terminate: it will timeout after some interval of time and it may be > killed by someone with the appropriate permission. > -- > > whereas the linux version states that it makes the account available for > root only. > > -- > -l > This option is used to lock the specified account and it is available to > root only. The locking is performed by rendering the encrypted password > into an invalid string (by prefixing the encrypted string with an !). > -- > > > --- Ceri Davies <[EMAIL PROTECTED]> wrote: > > On Sat, Oct 19, 2002 at 08:17:53AM -0700, Bsd Neophyte wrote: > > > > > > i'm following a pretty decent IBM tutorial on how to setup a samba > > PDC. > > > in the tutorial the following command is mentioned: > > > > > > passwd -l > > > > pw lock [user] > > > > Check the pw manpage. > > > > Ceri > > > > -- > > you can't see when light's so strong > > you can't see when light is gone > > > __ > Do You Yahoo!? > Yahoo! Autos - Get free new car price quotes > http://autos.yahoo.com > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > signature.asc Description: This is a digitally signed message part
RE: C programming help ?
On 19-Oct-2002 Angelin Lazarov Lalev wrote: > I need to convert some bytes, which are not an internet address, from > machine to network byte order (described in RFC1700). I could do it > mannualy, assuming a I386 (or some other) architecture, but then my code > will be a lot less portable. Is there any function in libc or somewhere > else which will do that conversion for me (and will be updated when new > architecture is added)? > > http://www.faqs.org/rfcs/rfc1014.html>RFC 1014 man xdr Regards, -- Don Read [EMAIL PROTECTED] -- "Beer is proof that God loves us and wants us to be happy." To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ATI Radeon 7000 VE and XFree86
I've got it running, actually i hadn't realized (when going through the xf86config) that all the ATI cards used the same driver "ATI" and because I didn't see an option for the radeon I thought wasn't available. I'm running the latest XFree86 4.2. I have this monitor: http://www.samsungusa.com/cgi-bin/nabc/product/b2c_product_detail.jsp?employeeLogin=&prod_id=753DF-Ivory and the highest resolution supported is 1280x1024 / 65 Hz is there a way to find out exactly what refresh rate is my monitor using and how to increase it? I have it setup at 1024x1024 using 24bit and I notice on my eyes that it uses a low refresh rate and I would like to increase it a little if possible! I also notice a few errors when I exit from XFree86: II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE) (EE) Mouse1: Write to mouse failed (WW) fcntl(6, F_SETOWN): Inappropriate ioctl for device Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list! I have no idea why the Mouse1 error! I thought I didn't have the Speedo fonts but they are there so I don't know why this error also! Here's my complet XFree86.0.log file: XFree86 Version 4.2.1 / X Window System (protocol Version 11, revision 0, vendor release 6600) Release Date: 3 September 2002 If the server is older than 6-12 months, or if your card is newer than the above date, look for a newer version before reporting problems. (See http://www.XFree86.Org/) Build Operating System: FreeBSD 4.6.2-RELEASE i386 [ELF] Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/XFree86.0.log", Time: Sat Oct 19 13:30:38 2002 (==) Using config file: "/etc/X11/XF86Config" (==) ServerLayout "Simple Layout" (**) |-->Screen "Screen 1" (0) (**) | |-->Monitor "SyncMaster 753DF" (**) | |-->Device "ATI Radeon 7000 (VE)" (**) |-->Input Device "Mouse1" (**) |-->Input Device "Keyboard1" (**) Option "AutoRepeat" "500 30" (**) Option "XkbRules" "xfree86" (**) XKB: rules: "xfree86" (**) Option "XkbModel" "microsoft" (**) XKB: model: "microsoft" (**) Option "XkbLayout" "en_US" (**) XKB: layout: "en_US" (==) Keyboard: CustomKeycode disabled (**) FontPath set to "/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/" (**) RgbPath set to "/usr/X11R6/lib/X11/rgb" (==) ModulePath set to "/usr/X11R6/lib/modules" (--) Using syscons driver with X support (version 2.0) (--) using VT number 9 (II) Module ABI versions: XFree86 ANSI C Emulation: 0.1 XFree86 Video Driver: 0.5 XFree86 XInput driver : 0.3 XFree86 Server Extension : 0.1 XFree86 Font Renderer : 0.3 (II) Loader running on freebsd (II) LoadModule: "bitmap" (II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a (II) Module bitmap: vendor="The XFree86 Project" compiled for 4.2.1, module version = 1.0.0 Module class: XFree86 Font Renderer ABI class: XFree86 Font Renderer, version 0.3 (II) Loading font Bitmap (II) LoadModule: "pcidata" (II) Loading /usr/X11R6/lib/modules/libpcidata.a (II) Module pcidata: vendor="The XFree86 Project" compiled for 4.2.1, module version = 0.1.0 ABI class: XFree86 Video Driver, version 0.5 (II) PCI: Probing config type using method 1 (II) PCI: Config type is 1 (II) PCI: stages = 0x03, oldVal1 = 0x, mode1Res1 = 0x8000 (II) PCI: PCI scan (all values are in hex) (II) PCI: 00:00:0: chip 8086,1a30 card 8086,1a30 rev 04 class 06,00,00 hdr 00 (II) PCI: 00:01:0: chip 8086,1a31 card , rev 04 class 06,04,00 hdr 01 (II) PCI: 00:1e:0: chip 8086,244e card , rev 05 class 06,04,00 hdr 01 (II) PCI: 00:1f:0: chip 8086,2440 card , rev 05 class 06,01,00 hdr 80 (II) PCI: 00:1f:1: chip 8086,244b card 8086,2442 rev 05 class 01,01,80 hdr 00 (II) PCI: 00:1f:2: chip 8086,2442 card 8086,2442 rev 05 class 0c,03,00 hdr 00 (II) PCI: 00:1f:3: chip 8086,2443 card 8086,2442 rev 05 class 0c,05,00 hdr 00 (II) PCI: 00:1f:4: chip 8086,2444 card 8086,2442 rev 05 class 0c,03,00 hdr 00 (II) PCI: 01:00:0: chip 1002,5159 card 174b,7112 rev 00 class 03,00,00 hdr 00 (II) PCI: 02:04:0: chip 12b9,1008 card 12b9,00d3 rev 01 class 07,00,02 hdr 00 (II) PCI: 02:07:0: chip 1033,0035 card 1033,0035 rev 41 class 0c,03,10 hdr 80 (II) PCI: 02:07:1: chip 1033,0035 card 1033,0035 rev 41 class 0c,03,10 hdr 00 (II) PCI: 02:07:2: chip 1033,00e0 card 1458,5004 rev 02 class 0c,03,20 hdr 00 (II) PCI: 02:08:0: chip 8086,2449 card 8086,3013 rev 03 class 02,00,00 hdr 00 (II) PCI: 02:0a:0: chip 1274,5880 card 1458,a000 rev 04 class 04,01,00 hdr 00 (II) PCI: End of PCI scan (II) LoadModule: "scanpci"
Re: FreeBSD version of Linux's "passwd -l"
this is what i pulled from the 'pw' man page about the 'lock' option. to me, it doesn't seem as if they do the same thing. - DESCRIPTION The lock utility requests a password from the user, reads it again for verification and then will normally not relinquish the terminal until the password is repeated. There are two other conditions under which it will terminate: it will timeout after some interval of time and it may be killed by someone with the appropriate permission. -- whereas the linux version states that it makes the account available for root only. -- -l This option is used to lock the specified account and it is available to root only. The locking is performed by rendering the encrypted password into an invalid string (by prefixing the encrypted string with an !). -- --- Ceri Davies <[EMAIL PROTECTED]> wrote: > On Sat, Oct 19, 2002 at 08:17:53AM -0700, Bsd Neophyte wrote: > > > > i'm following a pretty decent IBM tutorial on how to setup a samba > PDC. > > in the tutorial the following command is mentioned: > > > > passwd -l > > pw lock [user] > > Check the pw manpage. > > Ceri > > -- > you can't see when light's so strong > you can't see when light is gone __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
external tape case
I am looking for any recommendation on an external tape drive case. I am running 4.7 and while my scsi card is supported, I dont have any space within the machine to put this 5-1/4 tape drive (SCSI-2). Any advice? I would need a 2-4 bay unit with its own power... TIA :) -- J.D. Bronson Aurora Health Care // Information Systems // Milwaukee, WI USA Office: 414.978.8282 // Fax: 414.328.8282 // Pager: 414.603.8282 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Regarding JDK ports
Hi, I was wondering how would i go about configuring the jdk1.3 port to work under freebsd so i can use java applications ie... chess on yahoo... i know there is xboard which i use but i enjoy playing on yahoo more. I download the jdk1.3 ports collection and made a clean installation of it however i think there are some other steps that are required in order for it to work? cause when i tried playing chess on yahoo the applet wouldn't load. Any help would be greatly apperciated. __ Post your free ad now! http://personals.yahoo.ca To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Can't 'make depend' when trying to build kernel source
Kent Stewart wrote: Shawn Lussier wrote: Hello all, I've recently cvsupped my source tree to 4.7-R in anticipation of upgrades to these systems. On one, in particular, I cannot rebuild the kernel -- when I run 'make depend', I get the following message: cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/ipfilter -D_KERNEL -include opt_global.h -elf -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding ../../i386/i386/genassym.c cc1: Invalid option `no-align-long-strings' The system currently stands at version 4.3-R-p22, and the compiler is 'gcc version 2.95.4 20020320 [FreeBSD]'. I have also tried building with gcc 3.2 to no avail (same message). Can anyone provide some insight as to probable causes? I have never run into this problem before. Any assistance is greatly appreciated. No buildworld first. What I really intended to add was not doing a buildkernel after the buildworld. Make depend is not really a choice on upgrades like this. You will also have a number of users to add to master.passwd before the installworld will work. This is all covered in /usr/src/UPDATING. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Can't 'make depend' when trying to build kernel source
Shawn Lussier wrote: Hello all, I've recently cvsupped my source tree to 4.7-R in anticipation of upgrades to these systems. On one, in particular, I cannot rebuild the kernel -- when I run 'make depend', I get the following message: cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/ipfilter -D_KERNEL -include opt_global.h -elf -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding ../../i386/i386/genassym.c cc1: Invalid option `no-align-long-strings' The system currently stands at version 4.3-R-p22, and the compiler is 'gcc version 2.95.4 20020320 [FreeBSD]'. I have also tried building with gcc 3.2 to no avail (same message). Can anyone provide some insight as to probable causes? I have never run into this problem before. Any assistance is greatly appreciated. No buildworld first. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
problem with login.access
my login.access was working perfectly with 4.6-stable (not allowing users to login via telnet/ssh but allowing them only on ftp) but after upgrading to 4.7-stable -- somehow, users can now login thru telnet/ssh with the same login.access settings that i have before . did i miss something on the upgrade that i should edit in /etc files ? == sample setting on my login.access tab == -:1stUser:ALL -:2ndUser:ALL == end sample == the above setting blocks all login attempts on my box using telnet/ssh but allows ftp access. but after the upgrade i noticed users could login thru telnet/ssh. any help will be greatly apprciated. __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Can't 'make depend' when trying to build kernel source
Hello all, I've recently cvsupped my source tree to 4.7-R in anticipation of upgrades to these systems. On one, in particular, I cannot rebuild the kernel -- when I run 'make depend', I get the following message: cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/ipfilter -D_KERNEL -include opt_global.h -elf -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding ../../i386/i386/genassym.c cc1: Invalid option `no-align-long-strings' The system currently stands at version 4.3-R-p22, and the compiler is 'gcc version 2.95.4 20020320 [FreeBSD]'. I have also tried building with gcc 3.2 to no avail (same message). Can anyone provide some insight as to probable causes? I have never run into this problem before. Any assistance is greatly appreciated. -Shawn To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Questions about dialup
Hi. Got a quick question. I'm unsure of the answer or where to look. I'm setting up one of our old machines as a freebsd dialup station for work to test local pops for linux compatibility for a local ISP. I also want to use it as a way for me to learn how to dialup to the internet using Freebsd. Considering I've only ever used it on a network, this will be new to me. Can anyone recommend a good linux/freebsd dialer software I could use? I'm using freebsd 4.6 on the machine and would like to install a dialer (and modem drivers if possible) so I can use it as a test dialer station. Any pointers, software suggestions, tutorials you can point me to or send my way would be great. Thank you. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Running ipfw from a webpage/using php.
* Patrick Holahan <[EMAIL PROTECTED]> [20021014 16:35]: > I need to run a root command (ipfw) from apache through php. (Yes, this is > not very secure and I'm aware of this and if anyone has any better > suggestions, please feel free to make them.) What do you want to do? (No, you *don't* want to run a command as root from php) > Would anyone know how to do this? If you really want to do it, you can try Apache's SUEXEC feature. Read about it at http://httpd.apache.org/docs/suexec.html qvb -- pica To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
xinetd FTP trouble
Last week I upgraded to xinetd-2.3.8 to bring us up to the lastest and most secure version. Since the upgrade, all services but FTP have been working fine. FTP will work for a few days, and then all of the sudden, no longer accept connections. Sending xinetd a HUP results in the following message: ct 19 10:54:39 mercury xinetd[71519]: file descriptor of service ftp has been closed Oct 19 10:54:39 mercury xinetd[71519]: select reported EBADF but no bad file descriptors were found But, if I completely kill xinetd and then restart it, the service will work properly again for a few days, until the same problem re-occurs. I'm using the ftpd included in the base, and have the following entry for ftp in my xinetd.conf file: service ftp { socket_type = stream protocol= tcp wait= no user= root server = /usr/libexec/ftpd server_args = -l -l -S } Has anyone else seen anything like this before? Everything was working great until the upgrade. TIA! -Steve - Stephen Bader JORSM Internet, Regional Internet Services Systems Administrator 7 Area Codes in Chicagoland and NW Indiana [EMAIL PROTECTED] 100Mbps+ Connectivity, 56K-DS3, V.90, ISDN (219) 322-2180 Quality Service, Affordable Prices http://www.jorsm.com Serving Gov, Biz, Indivds Since 1995 - To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Can't get to Internet - Tinker with /etc/hosts?
And the answer is: NO, at least in my case. Problem solved. I am sending this for the benefit of any other newbee like me having the same problem. Problem description: * have two machines connected to the Internet through a cable/DSL router. * One of them is running a freshly installed, not yet custom configured, FreeBSD 4.7, with the network configured to try DHCP. * the other runs another OS. * The boxes are assigned the 192.168.1.100 and 192.168.1.101 addresses by the router. * They can ping each other. * The FBSD machine cannot get to the Internet, but the other machine can. Solution that worked for me: * Find out the internal IP address of your router. In my case it is 192.168.1.1 * Then add to /etc/rc.conf a line similar to this: defaultrouter="192.168.1.1" using the correct address. * Also, make sure that something like the following is present: ifconfig_xxx="DHCP" where xxx is the name of your network interface (dc0 in my case, use ifconfig to find out) (Kevin: Thank you for your messages) Question: What is the standard way to re-start the network interface to make sure that config files like rc.conf are read anew after being modified? Would ifconfig dc0 down ifconfig dc0 up do that? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: problem with network cards in server, plz help
I got it working with the netgear buy just turinging off the plug n' play. I will try your other suggestions to try to get the AMD nic working. thx, Dave > The problem you describe is becoming common in the 4.x versions of FBSD. > I have seen these solutions voiced previously in this list. > > 1. Check the PC's bios, look for a toggle to disable plug-n-play function. > > 2. Check that your PCI Nic card is not in the first or last PCI expansion > slot on the motherboard. > > 3. There is a problem with autonegotiation of the media settings between > your NIC and your switch. The default setting of auto means the Nic card > should sense the Lan for the switch or hub and set it's media type to match. > There have been reports of the Nic Card media type changing on the fly > between > 10/100 and halfduplex and fullduplex causing the network to freeze up. > To stop this use the "ifconfig" command in the rc.conf file to force the > media type. Like this > ifconfig_xl0="inet 10.0.10.2 media 100baseTX mediaopt full-duplex" > > 4 add option PCI_ENABLE_IO_MODES > to your kernel source and recompile. See LINT > > 5. add device puc > option PUC_FASTINTR > to your kernel source and recompile. See LINT > > 6. Follow bug fix using this url > http://www.freebsd.org/cgi/query-pr.cgi?pr=40636 > > > Try one of the above one at a time until your problem goes away. > > I have two different cards on my Netfinity 5000 server, a pci Netgear > FA311 (showing up as a NatSemi (sis0), and the onboard network card > which seems to have an AMD chipset (pcn0). If I have the onboard > ethernet card enabled at all and have an active cable connected to it > and restart the computer it comes up on ukphy0, turns the pci error > light on and I get no internet access which it later makes the computer > reboot automatically without any warning. If I disable that card and > put in a PCI Netgear card, have also tried other cards such as Intel or > IBM cards, once in a while it will boot normally but every once in a > while it will get hung up on the ukphy0 as well, giving me the same > problem as the onboard network and reboot itself. At first I thought it > was an IRQ problem but all of my devices now have individual IRQ's set > in the bios and I'm still having this problem. I'm afraid to reboot > this thing because I'm afraid it won't be coming back up. Below are > from my dmesg, the first is when I have my onboard ethernet enabled and > the second is when I have the netgear installed. Any help would be much > appreciated on what to do with this problem. By the wayI'm running > on FreeBSD 4.6.2 but also have this problem running 4.7, I it also > usually hangs on the driver initialization during installation of the os. > > Dave > > Oct 4 21:11:36 hermes /kernel: pcn0: port > 0x2180-0 > x219f mem 0xfebfdc00-0xfebfdc1f irq 10 at device 9.0 on pci0 > Oct 4 21:11:36 hermes /kernel: pcn0: Ethernet address: 00:06:29:39:bf:a9 > Oct 4 21:11:36 hermes /kernel: miibus0: on pcn0 > Oct 4 21:11:36 hermes /kernel: ukphy0: interface> on > miibus0 > Oct 4 21:11:36 hermes /kernel: ukphy0: 10baseT, 10baseT-FDX, > 100baseTX, 100bas > eTX-FDX, auto > > > pcib1: on motherboard > pci1: on pcib1 > sis0: port 0x4b00-0x4bff mem > 0xc0fdf000-0xc0fd irq 5 at device 4.0 on pci1 > sis0: Ethernet address: 00:a0:cc:76:d9:f1 > miibus0: on sis0 > ukphy0: on miibus0 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > > > > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: prc-tools-2.2 on FreeBSD-4.7 build errors
"Chris Ptacek" <[EMAIL PROTECTED]> writes: > This appears to be an issue with not having libintl available on FreeBSD. I > havn't tried these suggestions yet, but I thought I would pass them along. > Is the libintl stuff available through a port? gettext To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Buildworld fails
Riley wrote: From: Kris Kennaway Sent: Saturday, October 19, 2002 2:44 AM 1 error *** Error code 2 The fact that there's no actual error message shown indicates that you're doing make installworld with a -j option. This is not supported and as you have found is likely to fail. Kris The lack of an error message did seem odd. Thanks for the heads up. Is the Handbook out of date? According the Build World section: It is now possible to specify a -j option to make which will cause it to spawn several simultaneous processes. This is most useful on multi-CPU machines. However, since much of the compiling process is IO bound rather than CPU bound it is also useful on single CPU machines. On a typical single-CPU machine you would run: # make -j4 buildworld make(1) will then have up to 4 processes running at any one time. Empirical evidence posted to the mailing lists shows this generally gives the best performance benefit. Let me give it a try without `-j'. Time it when you do the buildworld such as "time make". There are a lot of us with newer HDs and cpus that have found that no "-j" produces a wall clock time that is 10-20% faster than -j4. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Port Upgrade
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> (10.19.2002 @ 0839 PST): [EMAIL PROTECTED] said, in 0.6K: << > My box is freebsd 4.5-release > > When trying to do a Port Upgrade I run into this error. This used to work > but not any more. Is 4.5 no longer supported? Please also reply to me. > > desert# pkg_add -r portupgrade > Error: FTP Unable to get > >ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.5-release/Latest/portupgrade.tgz: > File unavailable (e.g., file not found, no access) > pkg_add: unable to fetch > >`ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.5-release/Latest/portupgrade.tgz' > by URL > > Thanks >> end of "Port Upgrade" from [EMAIL PROTECTED] << you are correct: 4.5 packages are not sitting around on the server. your options are as follows: * upgrade to 4.7 and use packages * update your ports tree (cvsup) and build from ports * download the newer packages and just pkg_add them - -Adam - -- Adam Weinberger [EMAIL PROTECTED] [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE9sZD6o8KM2ULHQ/0RAoW8AJ0XYQvSysjOIsNyOCpx3feATbjr1ACffmZ9 IukXoQlqJusWQAqBdiIbMSE= =K19F -END PGP SIGNATURE- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
combining shared libraries into 1 library?
Is it possible to combine 2 shared libraries into a single library? I've read the ld(1) man page, but it isn't clear whether this is possible. I would like to do ld -Bsharable -o libX.so libY.so libZ.so where libY.so are libZ.so are combined into libX.so. -- Steve To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Buildworld fails
> From: Kris Kennaway > Sent: Saturday, October 19, 2002 2:44 AM > > 1 error > > *** Error code 2 > > The fact that there's no actual error message shown indicates that > you're doing make installworld with a -j option. This is not > supported and as you have found is likely to fail. > > Kris The lack of an error message did seem odd. Thanks for the heads up. Is the Handbook out of date? According the Build World section: It is now possible to specify a -j option to make which will cause it to spawn several simultaneous processes. This is most useful on multi-CPU machines. However, since much of the compiling process is IO bound rather than CPU bound it is also useful on single CPU machines. On a typical single-CPU machine you would run: # make -j4 buildworld make(1) will then have up to 4 processes running at any one time. Empirical evidence posted to the mailing lists shows this generally gives the best performance benefit. Let me give it a try without `-j'. Thanks again, Riley To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Can't build databases/portgresql7
I know this is my fault, because I've checked the error logs on bento and it's building fine there, but I keep getting the following error trying to build the postgresql7 port: ## error log starts gmake[5]: Entering directory `/usr/ports/databases/postgresql7/work/postgresql-7.2.3/src/backend/access/heap' cc -O -pipe -march=pentiumpro -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -I/usr/local/include -c -o heapam.o heapam.c cc -O -pipe -march=pentiumpro -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -I/usr/local/include -c -o hio.o hio.c cc -O -pipe -march=pentiumpro -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -I/usr/local/include -c -o tuptoaster.o tuptoaster.c tuptoaster.c: In function `toast_delete_datum': tuptoaster.c:914: `F_OIDEQ' undeclared (first use in this function) tuptoaster.c:914: (Each undeclared identifier is reported only once tuptoaster.c:914: for each function it appears in.) tuptoaster.c: In function `toast_fetch_datum': tuptoaster.c:997: `F_OIDEQ' undeclared (first use in this function) gmake[5]: *** [tuptoaster.o] Error 1 gmake[5]: Leaving directory `/usr/ports/databases/postgresql7/work/postgresql-7.2.3/src/backend/access/heap' gmake[4]: *** [heap-recursive] Error 2 gmake[4]: Leaving directory `/usr/ports/databases/postgresql7/work/postgresql-7.2.3/src/backend/access' gmake[3]: *** [access-recursive] Error 2 gmake[3]: Leaving directory `/usr/ports/databases/postgresql7/work/postgresql-7.2.3/src/backend' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr/ports/databases/postgresql7/work/postgresql-7.2.3/src' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/usr/ports/databases/postgresql7/work/postgresql-7.2.3' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/databases/postgresql7. *** Error code 1 Stop in /usr/ports/databases/postgresql7 ## error log ends Indications on the postgresql lists seem to indicate that this may be a problem with awk, but I can't see why this would be failing. Any suggestions ? Thanks, Ceri -- you can't see when light's so strong you can't see when light is gone To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
IPNAT/NATD issues-questions..
Dear, I have a couple of issues regarding the IPNAT or NATD of freebsd. In case that you dont have enough time, skip the next paragraph [description] and go to questions section. -=Description of problem=- I was using NATD for more than 3 years with no problem. By debbuging a problem in my IRC Fserve I noticed that connections originating from my router [that run NATD] were using very high port ranges, even though I had specifically configured the IRC fserve to be in a different lower range. When I stop using NATD and changed to IPNAT the problem dissaper and every client on my router allocated a port in his specified range. This was also solved my problem with DCC+RESUME. Because the NATD was changing the originating ports, the dcc transfer resume was not able to happen. With IPNAT the resume of DCC transfers had no problems, because the client was using what port he had requested. I am using statefull IPFW and for this reason, I wanted an exact port range. natd config file has only the use_same_ports and use sockets options. In IPFW rules I had the first line 50 divert natd all from any to any via ed0 -=END OF DESCRIPTION of problem=- Questions - a) Why did NATD changed my originating ports on my router. IPNAT didn't do anything like this, and the functionality is the same [my lan can connect with no problems to net] b) when NATD was used, I could see that the process of NATD consumed a high cpu time [almost 10-20% on a P166]. Where is the cpu time of the IPNAT? c) I believe that IPNAT doesnt have the overhead of NATD. So is IPNAT suggested for slower cpu machines (??). Am I wrong in this assumption? d) In my IPFW there was the rule '50 divert natd all from any to any'. Is this correct? I mean with this rule ALL packets were forced to pass through this and then re-injected to the chain. I try to put it after some rules of the firewall but the NATD didnt worked [I tryied many places...] e) Is IPFW + IPNAT a good combination? I know that the pairs are (IPFW + NATD) and (IPF + IPNAT). What I am doing is good or not suggested [and why?] f) I have understand that the 'official' firewall for freebsd is IPFW, and ipf is just a 'contributed' software. But a lot of people suggest the use of IPF and name it as supperior firewall. Is there a comparison page/site that states the overhead of these two firewalls, or pros/cons of them? g) Why some people say that IPFW is a 'userland' application even though it has not process vissible running? Thank you very much in advance, and I really hope that my questions will be answered To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: problem with network cards in server, plz help
The problem you describe is becoming common in the 4.x versions of FBSD. I have seen these solutions voiced previously in this list. 1. Check the PC's bios, look for a toggle to disable plug-n-play function. 2. Check that your PCI Nic card is not in the first or last PCI expansion slot on the motherboard. 3. There is a problem with autonegotiation of the media settings between your NIC and your switch. The default setting of auto means the Nic card should sense the Lan for the switch or hub and set it's media type to match. There have been reports of the Nic Card media type changing on the fly between 10/100 and halfduplex and fullduplex causing the network to freeze up. To stop this use the "ifconfig" command in the rc.conf file to force the media type. Like this ifconfig_xl0="inet 10.0.10.2 media 100baseTX mediaopt full-duplex" 4 add option PCI_ENABLE_IO_MODES to your kernel source and recompile. See LINT 5. add device puc option PUC_FASTINTR to your kernel source and recompile. See LINT 6. Follow bug fix using this url http://www.freebsd.org/cgi/query-pr.cgi?pr=40636 Try one of the above one at a time until your problem goes away. I have two different cards on my Netfinity 5000 server, a pci Netgear FA311 (showing up as a NatSemi (sis0), and the onboard network card which seems to have an AMD chipset (pcn0). If I have the onboard ethernet card enabled at all and have an active cable connected to it and restart the computer it comes up on ukphy0, turns the pci error light on and I get no internet access which it later makes the computer reboot automatically without any warning. If I disable that card and put in a PCI Netgear card, have also tried other cards such as Intel or IBM cards, once in a while it will boot normally but every once in a while it will get hung up on the ukphy0 as well, giving me the same problem as the onboard network and reboot itself. At first I thought it was an IRQ problem but all of my devices now have individual IRQ's set in the bios and I'm still having this problem. I'm afraid to reboot this thing because I'm afraid it won't be coming back up. Below are from my dmesg, the first is when I have my onboard ethernet enabled and the second is when I have the netgear installed. Any help would be much appreciated on what to do with this problem. By the wayI'm running on FreeBSD 4.6.2 but also have this problem running 4.7, I it also usually hangs on the driver initialization during installation of the os. Dave Oct 4 21:11:36 hermes /kernel: pcn0: port 0x2180-0 x219f mem 0xfebfdc00-0xfebfdc1f irq 10 at device 9.0 on pci0 Oct 4 21:11:36 hermes /kernel: pcn0: Ethernet address: 00:06:29:39:bf:a9 Oct 4 21:11:36 hermes /kernel: miibus0: on pcn0 Oct 4 21:11:36 hermes /kernel: ukphy0: on miibus0 Oct 4 21:11:36 hermes /kernel: ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100bas eTX-FDX, auto pcib1: on motherboard pci1: on pcib1 sis0: port 0x4b00-0x4bff mem 0xc0fdf000-0xc0fd irq 5 at device 4.0 on pci1 sis0: Ethernet address: 00:a0:cc:76:d9:f1 miibus0: on sis0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Mac can't connect to Internet
On Friday, October 18, 2002, at 01:21 PM, Mark Thomas wrote: At 11:31 AM 10/18/02 -0500, you wrote: I have FreeBSD, 4.7 Stable running as a gateway box, with a Debian box also on the network. The gateway is connected to a Comcast cable modem, and is running ipfw as a firewall. Both boxes can see/connect each other and the Internet. I added a Powerbook, OS X, to the local network, configured /etc/hosts and /etc/resolv.conf. PB can ping the other boxes ok, but can't see the Internet. The other boxes can ping the PB ok. Looks like a firewall problem. If I connect the PB to the cable modem directly, the PB connects ok. It appears that the PB is trying to send UDP packets out on port 67, so I tried to open up the firewall for UDP traffic (not a good idea?) but still can't see outside the local network. Attached is my rc.firewall. In /etc/rc.conf I have firewall_type="open" and added some rules to the "open" section in rc.firewall. What am I doing wrong? Thanks. Is the powerbook set to use the gateway as a gateway? Mark Thomas --- [EMAIL PROTECTED] > http://www.pbegames.com/~thomas Play by Electron Games -> http://www.pbegames.com Free Trial Games This was exactly the problem. It occurred to me while I was at work. I needed to provide the ip to the gateway. Easy fix, sorry for the noise, thanks for the reply. Also sorry for the formatting of this if it's screwed up. Michael Heyes To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Sendmail Upgrade Problems (dirrm)
I am trying to install the sendmail 8.12.6 port on a 4.4-stable system. I think I did this before with 8.12.3 successfully but on this one I get an error: "dirrm share/sendmail: not found:. Can someone tell me what's going on? Also, I seem to remember that the port installed everything but you could run a script which I can't find to change between the base sendmail and the port sendmail and back. Is this still available and what is it called? Thanks. -- Jim Flowers<[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Port Upgrade
At 10:39 AM 10.19.2002 -0500, [EMAIL PROTECTED] wrote: >Hello, > >My box is freebsd 4.5-release > >When trying to do a Port Upgrade I run into this error. This used to work >but not any more. Is 4.5 no longer supported? Please also reply to me. > >desert# pkg_add -r portupgrade >Error: FTP Unable to get >ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.5-release/Latest/po rtupgrade.tgz: >File unavailable (e.g., file not found, no access) >pkg_add: unable to fetch >`ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.5-release/Latest/p ortupgrade.tgz' >by URL > >Thanks > Gather you don't use ports & cvsup? Easy to get and would include/install the portupgrade. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Port Upgrade
Hello, My box is freebsd 4.5-release When trying to do a Port Upgrade I run into this error. This used to work but not any more. Is 4.5 no longer supported? Please also reply to me. desert# pkg_add -r portupgrade Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.5-release/Latest/portupgrade.tgz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch `ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.5-release/Latest/portupgrade.tgz' by URL Thanks To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: FreeBSD version of Linux's "passwd -l"
On Sat, Oct 19, 2002 at 08:17:53AM -0700, Bsd Neophyte wrote: > > i'm following a pretty decent IBM tutorial on how to setup a samba PDC. > in the tutorial the following command is mentioned: > > passwd -l pw lock [user] Check the pw manpage. Ceri -- you can't see when light's so strong you can't see when light is gone To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
FreeBSD version of Linux's "passwd -l"
i'm following a pretty decent IBM tutorial on how to setup a samba PDC. in the tutorial the following command is mentioned: passwd -l this is what someone pulled from the RedHat man page for the '-l' option in RedHat: -l This option is used to lock the specified account and it is available to root only. The locking is performed by rendering the encrypted password into an invalid string (by prefixing the encrypted string with an !). in FreeBSD the option seems to be different. i've looked through the man page for a similar option, but i haven't been able to find anything. can anyone tell me how i do what the Linux '-l' does? __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: C programming help ?
On Sat, Oct 19, 2002 at 02:17:49PM +0300, Angelin Lazarov Lalev wrote: > I need to convert some bytes, which are not an internet address, from > machine to network byte order (described in RFC1700). I could do it > mannualy, assuming a I386 (or some other) architecture, but then my code > will be a lot less portable. Is there any function in libc or somewhere > else which will do that conversion for me (and will be updated when new > architecture is added)? htonl(3), ntohl(3), htons(3) and ntohs(3) seems to be exactly what you need. -- Erik Trulsson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: C programming help ?
On Sat, Oct 19, 2002 at 02:17:49PM +0300, Angelin Lazarov Lalev wrote: > I need to convert some bytes, which are not an internet address, from > machine to network byte order (described in RFC1700). I could do it > mannualy, assuming a I386 (or some other) architecture, but then my code > will be a lot less portable. Is there any function in libc or somewhere > else which will do that conversion for me (and will be updated when new > architecture is added)? inet_ntoa(3), inet_aton(3) will do that conversion for you[*]. Cheers, Matthew [*] Although the man page suggests that nowadays addr2ascii(3) and ascii2addr(3) should be preferred, but the current implementation of those functions is based on inet_ntoa(3), inet_aton(3). -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re[2]: softupdates on /?
-BEGIN PGP SIGNED MESSAGE- Hello Matthew, Saturday, October 19, 2002, 1:29:47 PM, you wrote: > For general use, softupdates on the root partition is not a problem. > If your root partition is big enough to let you do whatever you need > to by way of updating your system despite enabling softupdates, then > you can turn it on with impunity. Of course, the size of the contents > of the root partition tends to grow over time, so you may have to > revisit that decision later on. That's exactly why I have root Partitions of about 300MB right now. Vastly over what's ever going to be needed but in the time of sub 100$ 80GB drives, this isn't of much concern to me anymore. Thanks for the explanations! Best regards, Gabriel -BEGIN PGP SIGNATURE- Version: PGP 6.0.2i iQEVAwUBPbE08cZa2WpymlDxAQHp4Af/SnyRiG6sKNZ6Bu9V6usaOkSTmTwGBOWn oqUh1TrUzJ2fzXn2CCDMEU+hV4swRroEOhnMannpQuN9hJlaEg71ABpNL8X+GSBT kcnVeC39jYCo3nBNO737huNAJ8pDKK/WB8odksQTizmzLgWQG0qUMLDqXihd2OeE U/P8CVHsYOsQBLqVcqnXQl4ykA9OjNriHkV9vZwlQIB4gkfZh5w+cnZ/wPqwJj+d 7eNcmNwLhr5kEl7i5LgiCnDsu+cDHg7G3O/bhQWDseZL2keq8mdxB51uGp8tzW3I 6c6pxz2ViAFNLK55dJOkUsDpnNyjiTB0mKXjMXOSoiuh8LXAKIdfZQ== =U4Zs -END PGP SIGNATURE- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: softupdates on /?
On Sat, Oct 19, 2002 at 11:40:34AM +0200, Gabriel Ambuehl wrote: > during the process of setting up some new servers I noticed that > sysinstall will enable softupdates by default for everything BUT /. > Is there any risk if I set / to use softupdates as well? The problem with softupdates is that a modification to the contents of a file system would result in a transient use of sufficient space to contain both the old and new versions of all affected files. Normally this is not a problem, but in certain cases it can lead to file modifications failing because of a full filesystem even though there is ultimately sufficient space available. One common instance of this is doing a 'make installworld' or 'make installkernel' where typical small root partitions generated by sysinstall can be overflowed. Now, arguments about how large a root partition should be or whether it should be amalgamated into /usr are neither here not there, but the contents of a standard root partition are generally static between major upgrades so there's no advantage to be gained by turning softupdates on. (Nb. This assumes that /var and /tmp are (sensibly) on different partitions to the root). > It works, but I'm not sure about the possible implications of this... For general use, softupdates on the root partition is not a problem. If your root partition is big enough to let you do whatever you need to by way of updating your system despite enabling softupdates, then you can turn it on with impunity. Of course, the size of the contents of the root partition tends to grow over time, so you may have to revisit that decision later on. It's also the case that modifications have been made to softupdates that ameliorate this effect, certainly in 5-CURRENT, not sure if they've been MFC'd to -STABLE though. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: UNIX operating system
> > Are there any limitations to this system? How much does it usually cost an > individual? > It is really free - except you have to buy your own computer. You can buy distribution sets which is nice and convenient, especially if you don't have a CD burner, but you don't have to. For starters, go to the FreeBSD web page at: HTTP://www.freebsd.org/ and click on the 'For Newbies' item in the menu on the left of the page. It will point you to lots of useful/helpful information. As for limitations, it still does not unbox our new machines and install itself on them without my intervention. The initial learning curve is rather steep if you do not have UNIX, especially BSD system management experience. But, that settles down to SOP after a bit. Have fun, jerry To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
C programming help ?
I need to convert some bytes, which are not an internet address, from machine to network byte order (described in RFC1700). I could do it mannualy, assuming a I386 (or some other) architecture, but then my code will be a lot less portable. Is there any function in libc or somewhere else which will do that conversion for me (and will be updated when new architecture is added)? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Buildworld fails
On Fri, Oct 18, 2002 at 07:03:35PM -0700, Riley wrote: > /usr/src/gnu/lib/libobjc/../../../contrib/libobjc/objc/Protocol.h > /usr/obj/usr/src/i386/usr/include/objc > ===> gnu/lib/libg2c > sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 libg2c.a > /usr/obj/usr/src/i386/usr/lib > sh /usr/src/tools/install.sh -s -o root -g wheel -m 444 libg2c.so.1 > /usr/obj/usr/src/i386/usr/lib > ln -fs libg2c.so.1 /usr/obj/usr/src/i386/usr/lib/libg2c.so > sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 > /usr/src/gnu/lib/libg2c/g2c.h /usr/obj/usr/src/i386/usr/include > 1 error > *** Error code 2 The fact that there's no actual error message shown indicates that you're doing make installworld with a -j option. This is not supported and as you have found is likely to fail. Kris msg05712/pgp0.pgp Description: PGP signature
softupdates on /?
Hi, during the process of setting up some new servers I noticed that sysinstall will enable softupdates by default for everything BUT /. Is there any risk if I set / to use softupdates as well? It works, but I'm not sure about the possible implications of this... I'd greatly appreciate all comments. regards, Gabriel To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: New hard drive - Do I have to rebot?
terry wrote: > > Do I have to reboot or kill a process for my new hard drive to be activated > once I've done the fstab, disk labeler and modified my /etc/fstab? I was > able to move and copy onto disk two but it wasn't listed when I did a ls at > root. I had to reboot. I also included 300 Meg's of new Swap. I added it for > back up purpose. > > I successfully tested out the dump/restore procedure but I would like to > find a script that does this. If someone knows of a blue print that would be > great. I really need a start. I plan on using cron to do this every week. Usually you don't have to reboot. You can activate new swap space using swapon(8), but you have to tell all processes which shall write to the "new" disk to reload there configuration and re-initialize the output. Maybe a `kill -HUP` is enough, maybe you have to restart some of them. If you have added the corresponding label to /etc/fstab, you mount(8) to activate it or check which labels/disks are mounted. Cheers, Jens > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: <[EMAIL PROTECTED]> Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
New hard drive - Do I have to rebot?
Do I have to reboot or kill a process for my new hard drive to be activated once I've done the fstab, disk labeler and modified my /etc/fstab? I was able to move and copy onto disk two but it wasn't listed when I did a ls at root. I had to reboot. I also included 300 Meg's of new Swap. I added it for back up purpose. I successfully tested out the dump/restore procedure but I would like to find a script that does this. If someone knows of a blue print that would be great. I really need a start. I plan on using cron to do this every week. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: CPU Temperature
On Sat, Oct 19, 2002 at 11:48:31AM +0930, Brian Astill wrote: > The port for fvcool seems to be broken - the only source of the tar.gz file > produces a 154byte file with a bad checksum. > Any advice you can offer? Try again --- it worked for me when I tried downloading it again just now. happy-idiot-talk:...ports/sysutils/fvcool:# make fetch >> FVCool102.tar.gz doesn't seem to exist in /usr/ports/distfiles/. >> Attempting to fetch from ftp://ftp.uk.freebsd.org/pub/FreeBSD/ports/distfiles/. fetch: FVCool102.tar.gz: File unavailable (e.g., file not found, no access) >> Attempting to fetch from http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/. Receiving FVCool102.tar.gz (9289 bytes): 100% 9289 bytes transferred in 0.9 seconds (9.75 kBps) Remember to remove the broken remnant of FVCool102.tar.gz from /usr/ports/distfiles, or the new download attempt will fail miserably. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
ATI Radeon 7000 VE and XFree86
Anybody using this card? Which XFree86 server should I use for this card? When running xf86config I don't see anything for radeons! __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Multiple FreeBSD SCSI Hosts
Dan Nelson wrote: > > In the last episode (Oct 18), Mike Thompson said: > > I'm interested in setting up two FreeBSD systems in a very simple > > clustering type configuration around centralized external SCSI > > storage devices for hardware redundancy. The specific configuration > > I'm thinking about is shown in the simple diagram below: > > > > +---+ +--+ +---+ > > | FreeBSD | | | | FreeBSD | > > | Host 1 | | External | | Host 2 | > > | (primary) | | SCSI | |(secondary)| > > | | |RAID/DRIVE| | | > > | SCSI r/w | | | | SCSI r/o | > > +-+-+ +---+--+---+ +-+-+ > >| | | | > >+---+ +---+ > > Whoa. Deja vu here. > > >http://groups.google.com/groups?threadm=Pine.LNX.4.44.0210101808560.3631-10@;scribble.fsn.hu > > Your primary problem is that the disk cache on Host2 does not know > about changes made to the filesystem by Host1. > > > 1. Do the FreeBSD SCSI drivers support such a configuration by > > implementing the SCSI RESERVE/RELEASE commands to lock access to the > > SCSI bus? If so, which drivers for which specific SCSI adapters? > > Reserve/release looks like it is implemented for tape devices on > open(), but not for disks (since it's legal to mount slice 1 on machine > A but slice 2 on machine B, for example). Reserve/release is probably > not useful in this situation anyway, as I don't know how easy it is to > break a reservation (when host1 goes down, host2 has to break the > reservation before it can acces the disk). > > > 2. Many external raid controllers describe themselves as host dual > > capability. Is the type of configuration they are describing? > > Possibly. Most of the time it's to allow multiple hosts to access > their own private storage, but you can usually force a volume to be > visible on multiple ports. > > > 3. Will the secondary server still experience a corrupted file system > > because of write caching by the primary server? If so, would it be > > possible to configure the primary server to write through the cache? > > Big time. The problem is not so much write caching on the primary, > it's read caching on the secondary. Without a shared-storage > filesystem, you're pretty much limited to NFS mounts (which are not all > that bad). > > As for failover detection, one good way is to dedicate a small > partition (da0s1a, for example) as a heartbeat partition. Host 1 > writes a timestamp to /dev/da0s1a block 1 every second, Host 2 does the > same thing on block 2. Each host then reads the other host's block, > and if there are no updates for (say) 10 seconds, you can assume that > the other host is dead, do a fsck, and mount the volume. Using the raw > disk device bypasses any caches on the systems. Hi folks, I thought about a similar configuration, too. I found a manufactor for host controller (SCSI, Fibre Channel), who can deliver: ICP Vortex: http://www.icp-vortex.com/ - they have cluster ready host controller, but they always mirror, so you need 2 disk stacks. Maybe there is required additional software for take over, but by the way, it would even in your situation ... Bye, Jens > -- > Dan Nelson > [EMAIL PROTECTED] > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: <[EMAIL PROTECTED]> Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Unable to input French characters
I have unable to configure my FreeBSD 4.4-RELEASE machine so that I can enter French characters; for example to be able to use pine to write a French email (with the necessary French accents). I install the french port and followed the instruction at http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/using-localization.html; however, I am still not able to. I am using KDE 3.3. When I switch to French keyboard setup in KDE and try to enter a French character, the system just beeps and nothing is displayed. On my Linux box, things work find: I get all the French characters but I just can't seems to make it happen on my FreeBSD box. Any idea as to what I can do to resolve this issue? Thanks much in advance. -Carlton To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
XVideo problem
Hello, When trying to run 'xine -V Xv', I get this error message: Xv extension is present but I couldn't find a usable yuv12 port xvinfo reports 'no adapter present' but it should be there, right? I'm using Nvidia TNT2 and XFree86-4.2.0_1,1. Xine works using XShm. Need help. Thanks. David To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: favorite security software
in message <[EMAIL PROTECTED]>, wrote Alex thusly... > > I beleave it [ipfilter] also has a bit more options for a normal > firewall but no extra's like ipfw does. The later reason is way i > also run ipfw. I use it for the traffic shaping and traffic policy > only. i have been faithful to ipfilter for about last 2-4 years, mainly due to its stateful inspection. now ipfw does have it too. one thing that's most lustful going for ipfw is the new/improved syntax for specifying ports & such. -- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Missing vendor info for generic Realtek clone (FBSD4.6)
In message: <004601c276df$12e75410$[EMAIL PROTECTED]> "Kutulu" <[EMAIL PROTECTED]> writes: : What steps can I take to locate the correct pccard configuration to use this : card? The rl driver is a cardbus driver, which is only supported in -current. 5.0 will be released soon, and that will solve your problems. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
FreeBSD 4.7 on Dell Latitude - interesitng problems
Hi all, I'm running FreeBSD 4.7-STABLE on my Dell Latitude C600. I've run into a couple of interesting problems that I'm wondering if anyone else has had experience with, and may be able to help me: 1) I compiled a custom kernel, and like clockwork, every OTHER time I boot the machine, it hangs after detecting the parallel port. It hangs up between: ppi0: on ppbus0 and ata1-slave: ATA identify retries exceeded ad0: 19077MB [38760/16/63] at ata0-master UDMA33 The rest coming from a good boot, obviously. (The above is interesting, too -- I did not compile support for ata1 into my kernel, only ata0.) Kernel config file available upon request. As far as I've been able to tell, this did not happen with the Generic kernel. 2) Along with my C600, I have a C/Port II port replicator. When the laptop is docked, when I fire up X, it turns on the laptop's LCD display (even thought he lid is closed) and turns off my external monitor. When I shut down X (which I have to do using Ctrl-Alt-Backspace, because I can't see the screen), the display returns to the external monitor. Any ideas on either of the above? Thanks in advance! * *Bryce Newall*Email: [EMAIL PROTECTED]* * www.dreamhaven.org/~data* * "Computers make very fast, very accurate mistakes." * * To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Can't get to Internet - Tinker with /etc/hosts?
From: "Daniel A. Inzirillo" <[EMAIL PROTECTED]> To: "DaleCo, S.P.---'the solutions people'" <[EMAIL PROTECTED]>; "Freebsd-Questions" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, October 18, 2002 11:50 PM Subject: Re: Can't get to Internet - Tinker with /etc/hosts? > On Friday 18 October 2002 11:46 pm, DaleCo, S.P.---'the solutions people' > wrote: > > ... What happens when you attempt > > to ping the router from the FBSD box? > > No problem, pinged it gets. It can also ping beyond the router, like > 209.98.98.98 (as was suggested by Josh). Also, ifconfig shows that the IP > address is the correct one (as from the router's table) > > > > > What was Gnome message, exactly? > > (The machine is named Pantagruel) > "Could not look up internet address for Pantagruel. > This will prevent GNOME from operating correctly. > It may be possible to correct the problem by adding > Pantagruel to the file /etc/conf" > Well that would look something like this: $more /etc/hosts # In case you want to be able to connect to the Internet, you need # real official assigned numbers. Do not try to invent your own network # numbers but instead get one from your network provider (if any). # 192.168.11.1 gateway 192.168.11.3 pantagruel.domain.tld pantagruel > > FBSD needs to have an interface > > with an configured IP, a gateway route, and name service to access > > the > > Internet. > > > > Here's a bit from one of my boxes: > > > > contents of /etc/resolv.conf: > > I do not have an /etc/resolv.conf file. Should I? My router is serving DHCP > (and of course, doing NAT) > > > > > domain daleco.biz > > nameserver 192.168.11.1 <-that's the IP of the router, > > which queries > > nameservers and > > gives the DNS info to the box > > Yeah, I think it'd fix the issue. FBSD needs to know whom to query for names. Stick your router addy in there as above, if it will do DNS, if not, use your ISP's DNS server's IP. G'luck, KDK To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: learning about ./configure and pkg-config
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> (10.18.2002 @ 1924 PST): Peter Leftwich said, in 1.7K: << > I downloaded the following from gnome.org "bonobo-activation-1.0.3.tgz" and > gunzipped then untarred it and changed to the resulting directory. > > When I ran `./configure` it got through most checks fine, except for the > pkg-config ones near the end. Here is the output: > > I couldn't find my /lib/pkgconfig directory or locate sample > PKG_CONFIG_PATH statements on the web. Can someone clue me in please? >> end of "learning about ./configure and pkg-config" from Peter Leftwich << Peter, unless you feel comfortable editing configure scripts (which is where your PKG_CONFIG_PATH will be decided), you really ought to just use the ports tree. /usr/ports/devel/bonobo-activation - -Adam - -- Adam Weinberger [EMAIL PROTECTED] [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE9sQpEo8KM2ULHQ/0RAt3WAJ9tE3K+z7g/JusKRGqsZ3ns1CwK9ACfQhZm y7nJGTqnfofWRctTcWGqD2U= =EDXn -END PGP SIGNATURE- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message