Re: How to turn off keyboard bell
On Wed, 09 Jun 2004 07:14:50 -0700 Bob [EMAIL PROTECTED] wrote: Hi there, I'm having a difficult time turning off the keyboard bell. I have tried kbdcontrol -b off and setting keybell=NO in rc.conf, but this only shortens it down to a chirp. If I set kbdcontrol -b visual, then the audible bell goes away completely and I get a flashing screen instead. What am I missing here? How can I turn the bell off completely? This is on a fresh install of 4.9. -Bob Hi Bob, I think this bug has been fixed since 4.9 RELEASE. You might want to try updating your sources with cvsup, or simply applying the patch that fixes the bug (below), and rebuilding your kernel. http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/syscons/syscons.c.diff?r1=1.336.2.15r2=1.336.2.16 -Chris P.S. please CC me in any replies as I am no longer subscribed to this list. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: do not read if OT annoys you group coding standards
On Mon, 7 Jun 2004 13:10:06 -0700 Goodleaf, John [EMAIL PROTECTED] wrote: Hello, I'm abusing the mailing list because many of you are sickeningly clever and have long experience in IT. I'm working to establish a document (yep) providing guidance for our company's small-but-growing IT group with regard to coding standards and practices. It seems rife with potential problems and there is already the potential for one of those variable-naming holy wars (e.g. intVariableName, varname, VarName, varName). Only one suggestion here: avoid 'varname'. It makes it more difficult for non-native-English speakers to parse, as they don't usually have an innate grasp of where one word should stop and the next word should begin. In fact, the problem is not restricted to those who learned English as a second language; how would *you* parse opportunityisnowhere? :) So my question: is there a good document out there on the net somewhere, maybe hiding at a University site from which I can draw for general consideration? Any experiences? Recommendations? style(9) has already been mentioned... personally, I like http://www.erlang.se/doc/programming_rules.shtml However, a lot of those rules are specific to Erlang and/or functional programming and/or distributed programming. It's a hard problem. How do you provide conventions that don't annoy the hell out of programmers, but which ensure that legibile, maintainable code is left? Accept that you're going to annoy some of them no matter what you do, and don't worry about it further, I guess. Any suggestions welcome. Please cc me directly, as I'm not currently on this list. John -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sharing Linux swap space on FreeBSD 4.9
On Thu, 13 May 2004 04:19:56 + Richard Liang [EMAIL PROTECTED] wrote: Hello everyone, I am trying to enable the linux swap space I have under Red Hat on FreeBSD 4.9. [...] So I've tried swapon /dev/ad0s4 from FreeBSD and it always says: swapon: /dev/ad0s4: Device not configured I poked around my kernel config file, and changed the NSWAPDEVS variable to 2; still no luck. Does `ad0s4' exist in your /dev directory? If not, you probably want to cd /dev ./MAKEDEV ad0s4 -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bell through sound card
On 25 Apr 2004 00:07:40 -0700 [EMAIL PROTECTED] wrote: I have a Shuttle box that (to my surprise) doesn't have a standard PC feeper. Has anyone done any work on making the standard bell go through a sound card? Has anyone given any thought to what would be the right way to do it? Would adding code to syscons be the right way? I've tried various X things, but they all seem to be lacking in some way. It would be nice to have a 'real' solution that listens to kbdcontrol, doesn't try to be overly fancy, etc. Steve Hi, I wrote the following for DragonFly. It probably works on FreeBSD 4.x too, if that's what you're running. No idea about 5.x. http://catseye.webhop.net/projects/belld/ -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cd-rom drive on parallel port
On Mon, 12 Apr 2004 17:02:03 +0200 Marc UBM Bocklet [EMAIL PROTECTED] wrote: Ok, I'm posting this one last time in the hope that somebody can at least tell me: No, it does not work :-) -- Hiho! :-) I've an old 8x cdrom that gets connected to a parallel port. It's working under DOS 6.2 with a special driver but there is no sign of it in the dmesg or anywhere else under FreeBSD 5.2.1. Is this kind of device supported under FreeBSD? I've checked the man pages and google, but found nothing on the subject. It's not really important to get it to work, I'm mainly curious ;-) Thanks in advance. Bye Marc I can't say this with 100% certainty of course, but the unfortunate truth is: no. AFAIK FreeBSD doesn't support anything over the parallel port except printers and PLIP. There's almost no chance of you getting it to work short of writing your own driver for it. Sorry. (Although I suppose there might be a slim chance of being able to access it from some other OS running under FreeBSD in, say, VMWare or Bochs...) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pseudo-device vn
On Thu, 8 Apr 2004 09:32:01 +0200 (MET DST) Mipam [EMAIL PROTECTED] wrote: On Wed, 7 Apr 2004, Jerry McAllister wrote: Should i just put pseudo-device vn in the kernel config file to make this work? In 5.x, `vn' was replaced by `md'. (Sorry, that's about all I know about it.) Do you know whether it's being enable by default in the kernel or not? Presumably not, inferring from: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-virtual.html To use mdconfig(8), you have to load md(4) module or to add the support in your kernel configuration file But I don't run 5.x so I don't know for sure. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pseudo-device vn
On Wed, 7 Apr 2004 15:12:21 +0200 (MET DST) Mipam [EMAIL PROTECTED] wrote: On Wed, 7 Apr 2004, Jerry McAllister wrote: Should i just put pseudo-device vn in the kernel config file to make this work? You didn't say which version of FreeBSD you were using. In versions 4.xxx and earlier I think this will work. It is what I have done. You should be able to find it in the LINT file. But, starting with 5.0 I think it may have been changed. I am using 5.2.1-p4, i also didnt see this in LINT. Any hints? In 5.x, `vn' was replaced by `md'. (Sorry, that's about all I know about it.) Bye, Mipam. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: swap
On Fri, 26 Mar 2004 08:38:07 +0200 Olegs Sorokins [EMAIL PROTECTED] wrote: Dear all, Sure, anyone knows, except me. How can the additional swap space be added to the working FreeBSD system without reinstalling the whole system. Thanks in advance, Oleg Hi Oleg, Have a look at these web pages: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html http://www.freebsddiary.org/swap.php HTH, -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Error During Make Installworld
On Fri, 26 Mar 2004 01:13:06 -0600 Kevin Greenidge [EMAIL PROTECTED] wrote: I am using FreeBSD 4.9. Does anyone know what can be causing this? Here is the error below: install: rename: /sbin/init to /sbin/init.bak: Operation not permitted *** Error code 71 Stop in /usr/src/sbin/init. Hi Kevin, Does your /sbin/init have the immutable flag set? Try ls -lo /sbin/init to find out. If it does, and you want to remove it, try chflags noschg /sbin/init -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wraparound value for time
On Tue, 23 Mar 2004 17:38:02 + Matthew Seaman [EMAIL PROTECTED] wrote: On Mon, Mar 22, 2004 at 03:40:58PM -0800, Chris Landauer wrote: i tried to figure out where the actual code for time is, but i can't quite tell - it appears to be buried inside csh somewhere (it also appears that there are several different possibilities for the data type used, depending on some compile time parameters for the csh compilation) There's also a standalone time(1) command which does much the same as the shell built-in 'time' but has completely different internals. [...] With any luck the internal representation will be different and so the supported range of values may be larger. Yep, I just checked the source, and time(1) does use struct timeval's internally. Should be sufficient to time something running for several decades. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: disconnecting keyboard: big trouble !?!
On Tue, 23 Mar 2004 10:44:11 -0600 Nathan Kinkade [EMAIL PROTECTED] wrote: Can anyone on the list point me to a manufacturers site or documentation that unequivocally states in clear terms the real dangers of hotplugging a PS/2 device? How about http://www.heurtley.com/richard/maintenance.html ? It's basic electronics - plugging or unplugging anything from a powered device has a greater-than-zero chance of frying it. The difference between hot-pluggable USB and risky PS/2 can be summed up like so: re USB: A USB transceiver is required to withstand a continuous short circuit of D+ and/or D- to VBUS, GND, other data line, or the cable shield at the connector, for a minimum of 24 hours without degradation. It is recommended that transceivers be designed so as to withstand such short circuits indefinitely. The device must not be damaged under this short circuit condition when transmitting 50% of the time and receiving 50% of the time (in all supported speeds). -- http://www.usb.org/developers/docs/usb_20.zip (a standards document - note required and must not be damaged) re PS/2: Vcc/Ground provide power to the keyboard/mouse. The keyboard or mouse should not draw more than 100 mA from the host and care must be taken to avoid transient surges. Such surges can be caused by hot-plugging a keyboard/mouse (ie, connect/disconnect the device while the computer's power is on.) Older motherboards had a surface-mounted fuse protecting the keyboard and mouse ports. When this fuse blew, the motherboard was useless to the consumer, and non-fixable to the average technician. Most newer motherboards use auto-reset Poly fuses that go a long way to remedy this problem. However, this is not a standard and there's still plenty of older motherboards in use. Therefore, I recommend against hot-plugging a PS/2 mouse or keyboard. -- http://panda.cs.ndsu.nodak.edu/~achapwes/PICmicro/PS2/ps2.htm (note not a standard) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kernel module
On Wed, 24 Mar 2004 11:34:47 +1030 Greg 'groggy' Lehey [EMAIL PROTECTED] wrote: On Tuesday, 23 March 2004 at 13:26:32 -0600, Brian Henning wrote: Greetings: Could someone explain howto move something that is part of the kernel and make it a kernel module? for example the pcm, /modules/pcm.ko This is probably something for the -hackers list, though you're likely to get an answer like read the code of an existing module and figure it out for yourself. Unfortunately, I don't know of any documentation, though there could be some. Although I can't answer the question (as it's fairly general and I'm sure it varies depending on exactly what part of the kernel you want to move into a kernel module), these docs may help: http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/ http://ezine.daemonnews.org/200010/blueprints.html http://www.itsx.com/hal2001/fbsdfun.html -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Virtual terminal buffer?
On Mon, 22 Mar 2004 16:57:26 -0600 (CST) Eric F Crist [EMAIL PROTECTED] wrote: Hello list, Is there a way to clear the buffer after you've logged out of a virtual terminal? TIA Eric Well, you could call 'echo' a hundred times in your .logout script :) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Top posting
On Mon, 22 Mar 2004 01:50:14 -0500 Denny Jodeit [EMAIL PROTECTED] wrote: It boils down to a 'When in Rome, do as Romans do' situation. The charter states no top posting. I made sure to re-read the list charter when this thread started. I couldn't find a single mention of top posting. The closest thing I could find is that gross breaches of Netiquette are frowned upon but not specifically enforced. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: KLD and UID
On Tue, 16 Mar 2004 23:09:36 -0700 Simon Timms [EMAIL PROTECTED] wrote: Hi there, I am playing around with kernel modules trying to learn something and hopefully not destroy my computer too badly. Right now my goal is to print out the user id from an open() call. I am basing my work around that found at http://www.nux-acid.org/src/open.c. To that basic code I added (in the new_open method) printf(uid %u\n, p-p_ucred-cr_uid); However this completely doesn't work and I end up crashing the kernel. I notice in other places people do things like uid_t uid = p-p_cred-p_svuid; however I don't see a p_cred member in the proc structure. Is there something obvious I am missing here? Complete code listing at http://simon.ma.cx/module.c. Any additional comments/criticisms always appreciated. Thanks, Simon What version of FreeBSD are you trying this on? You might want to look at this thread on hackers@, it's very similar to what you're trying to do, I think: http://docs.freebsd.org/cgi/mid.cgi?20040316163956.GD638 -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Server automatically Shuts down.
On Tue, 16 Mar 2004 06:33:33 -0800 (PST) samy lancher [EMAIL PROTECTED] wrote: My system does not auto reboot. It just crashes as if some one has pressed the power off button. I think it is surely some thing to do with power supply. I will open the case and leave for a day. I will also remove one of the CDROM and see what happens. One simple and obvious thing comes to mind, only because no one has mentioned it yet: Does the BIOS on the machine have an auto power off at time option? And is it active? -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Want complete list of freebsd commands in freebsd 5.2
On Tue, 16 Mar 2004 13:59:24 + Matthew Seaman [EMAIL PROTECTED] wrote: On Tue, Mar 16, 2004 at 09:39:07AM +0500, Asghar Ali wrote: Anyone have the complete list of freebsd 5.2 commands. I need it so please send to me on my mail address [EMAIL PROTECTED] What you ask for is not feasible to provide in an e-mail. While this is not exactly a complete list of FreeBSD 5.2 commands, not even exhaustive, it is remarkably comprehensive: http://www.freebsd.org/cgi/man.cgi Then click on 1, 2, etc. (I had no idea that man.cgi also had manpages for ports until I embarrased myself on ports@ just now for not noticing. Perhaps this would be something nice to mention in the Handbook, for those who want to read docs on ports/packages they are considering, before they install them?) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Need bash help
On Tue, 16 Mar 2004 01:40:51 +0200 hugle [EMAIL PROTECTED] wrote: Hello all. I'm writing here, cause i think just here people can help me. (p.s. didn't find bash mailing lists) [...] So what I wanna do is smth like: for i in `seq 1 254`; do ./dc 192.168.1.$i and if it returns 'Dropping to system shell' then add these IP to vulderable_users done You could pipe the output of dc to grep and check the exit code. Something like: if ./dc 192.168.1.$i | grep 'Dropping to system shell'; then echo 192.168.1.$i vulnerable_users fi YMMV, I haven't used bash; the above is sh, should work about the same. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [Fwd: Re: deleting directories with ??? in name]
On 15 Mar 2004 20:26:12 -0500 Lowell Gilbert [EMAIL PROTECTED] wrote: Walter [EMAIL PROTECTED] writes: I managed to delete the files by recreating the directory. Not to seem ungrateful, but isn't it a Bad Thing that it is not straightforeward to delete any file on the system (as root, and thwarted merely because of the characters in the name of the file/directory)? I'm not in a position to mangle lynx, but oughtn't it to be able to zap ANY file regardless of its name? (emacs is obtuse to me.) Is this worthy of a PR? Or are there other ways to kill a malconforming file? Why should an annonomous FTP user be able to create a directory tree that the root account of the machine can't traverse and delete normally? (Sigh.) It sounds like you're just unfamiliar with shell quoting rules. That wouldn't explain why 'rm -i *' returned 'no match', though. I think it's more likely that (for whatever reason) the FTP server is allowing files to be created with extremely funky filenames - possibly embedded NULs? I wouldn't have thought this was possible with open(2) or fopen(3) - and I wouldn't think that an FTP server would use some other method of creating a file... Walter, out of curiousity, what FTP server were you running, and (if you remember) what was the exact output of ls -aB ? -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: issue with simple script
On Mon, 15 Mar 2004 15:27:20 -0700 David Bear [EMAIL PROTECTED] wrote: I thought I had a tape issue.. Now its clear I have a script issue. Below is a script I use to perform level 0 dumps on all mounted file systems. The problem seems to be that when the script runs, it does not run as root -- even though I am root when I run it. The goal is to cron it, but as I was testing it I ran into some problems. First, I can't set the MT variable as its listed below. I get an permission denial on /dev/nrsa0. This makes no sense, since as root I can issue the command fine. Moreover, the dump command itself fails even thought it seems to be rendered syntactically correct. I echo'ed all the generated commands just to make certain they are correct. For future reference, you can achieve the same effect with the -x switch. i.e. add -x to the first line of the script, or run the script with sh -x l0dump.sh Here's the output of the script: = ppsrvx# ./l0dump.sh ./l0dump.sh: /dev/nrsa0: permission denied comp off /sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/ad0s1a /sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/da1s1d /sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/da0s1e /sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/da1s1e /sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/ad0s1d /sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/da0s1d /sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/ad0s1e /dev/sa0 offline == notice the permission denied.. not also 'comp off' which SHOULD be rendered as /usr/bin/mt -f /dev/nrsa0 comp off but isn't. I'm really stumped here. Is there some reason why running these commands in a script would fail, yet running them by hand works? #!/bin/sh AWK=/usr/bin/awk DF=/bin/df DMP=/sbin/dump DEST=/dev/nrsa0 MT=/usr/bin/mt -f ${DEST} ^^ I think this line is your problem. It's trying to set the variable MT to /usr/bin/mt -f , then run the command ${DEST}. Of course, ${DEST} isn't a command, it's a device, which isn't executable, which is why you get permission denied. I think that if you rewrite the line as the following, it'll do what you want: MT=/usr/bin/mt -f ${DEST} -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pc speaker to sound card
On Wed, 28 Jan 2004 11:31:17 GMT [EMAIL PROTECTED] wrote: FBSD 4.9R is there anyway to route PC speaker sounds to my sound card? specifically, my PC speaker is fried, and i would like to hear ytalk beeps thru my sound card ... thanks (please copy any replies off-list). Hi, (sorry for the late reply) I wrote this for DragonFly, it should work for FreeBSD 4.9 too. http://catseye.webhop.net/projects/belld/ -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: one simple question
On Wed, 3 Mar 2004 18:13:43 + chungwei Hsiung [EMAIL PROTECTED] wrote: Hello.. I have a simple question, but I am not sure what the answer is. If anyone can possibly help me, it is really appreciated. I compile a test C file. I notice there are a few lines at the beginning of the assembly code. I want to know what it means, but can't figure out one of them. Can anyone tell me what the following line does please? and$0xfff0,%esp best regards Chungwei Hi Chungwei, I believe that instruction is used to align the stack pointer to a 16-byte boundary, for efficiency. However, this is just a guess, based on some discussions I've seen. I don't know for certain. You may have better luck asking on [EMAIL PROTECTED] -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to remove a non-empty directory
On Tue, 2 Mar 2004 22:21:24 +0800 Stephen Liu [EMAIL PROTECTED] wrote: Hi all folks, Kindly advise where can I find the small program 'midnight commander' for FreeBSD. /usr/ports/misc/mc OR what command line shall be applied on FBSD to remove a non-empty directory together with its content rm -rf dirname -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SoundBlaster 16 PnP ISA Card on 5.1
On Fri, 27 Feb 2004 13:25:20 -0500 Philippe Vachon [EMAIL PROTECTED] wrote: As I said before, the sound is compressed -- not in the data sense, but rather in the analogue sense where the wavelength of a waveform decreases, as does the period. I appologize if I had confused you, but I'm not a Software Engineer -- merely a lowly Electrical Engineering Student. :) Off topic, but in hopes of clearing up the terminology at least, this is what compressed means for audio engineers: http://www.flashbacksales.co.uk/articles/compression.htm I doubt you're experiencing this... I think you mean your audio is simply sped up? I'm not quite sure what you mean by outdated - does FreeBSD go with the Linux Kernel release numbers - odd for development, even for stable - or am I missing something, because uname-a tells me I'm running 5.1-RELEASE. 5.x are technology preview releases. The latest in the 5.x branch is 5.2.1. Odd/even means nothing to FreeBSD release engineering. See http://www.freebsd.org/releases/index.html for more information. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SoundBlaster 16 PnP ISA Card on 5.1
On Fri, 27 Feb 2004 14:33:50 -0500 Philippe Vachon [EMAIL PROTECTED] wrote: Still, nobody has any clues as to what the problem could be? I've loaded just snd_sbc and just snd_oss and even the compressed sound thing doesn't occur. Sorry. The only thing I can think to suggest is to try to reproduce it on 5.2.1 (or 4.9) if possible. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: stable version of technology release
On Thu, 26 Feb 2004 11:31:07 +0200 siraj kutlusan [EMAIL PROTECTED] wrote: when will a stable version of the technology release of freebsd be coming out? http://www.freebsd.org/doc/en_US.ISO8859-1/articles/5-roadmap/schedule.html -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Shell scripting woes
On Tue, 24 Feb 2004 17:56:49 +0100 (CET) [EMAIL PROTECTED] wrote: Hello guys! I have two questions about shellscripts: Your second question seems to have been addressed, so here's something for your first question... 1) I have a backup job that 'tar's a lot of files and currently I redirect all output of the job to a log. Tar unfortunately lists all directories that it goes through, even if nothing is 'tar'ed in those directories. So my logfile contains all my directories. I want to filter out all lines in my tar-log that ends with slash (/) since those are directories. I want to sort of do an inverse grep on the last character when tarring. Like: tar -cvf myback.tar |grep -v all lines that end with slash log.txt. All files that are backed up contain the whole directory path (that's how I want it) - so I can't simply do a reverse grep for the slash-char. Maybe you could do something with awk? I'm a total rookie with awk, so I'm lost there... Try tar -cvf myback.tar | grep -v '/$' The $ in the grep pattern indicates end of line. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is inetd a proxy server?
On Sun, 22 Feb 2004 17:19:05 -0500 Marty Landman [EMAIL PROTECTED] wrote: My issue is one of UI, especially for top. It would be nicer imo if those 1/2 doz getty processes were to display on one line somehow... maybe indicating the number running and a way for me to expand them if needed [which is essentially never which is my point]. So something like getty, necessary and there for the appropriate reason, i.e. it displays on top because it should, nonetheless is a light weight, in my case rarely used process that ends up consuming 1/3 or so of the screen real estate. It shouldn't be too hard to modify top to collapse processes with the same name into a single line. Possibly more effort than it's worth for what you want, though. Have you tried pressing the 'i' key when top is running? It toggles the display of idle processes. (getty is generally idle.) This can save a lot of screen real estate. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Installing 5.2 Trouble on 486 with 16Mb of memory
On Thu, 5 Feb 2004 12:40:06 +0200 igor [EMAIL PROTECTED] wrote: System hangs when starting sysinstall :( On system with 8Mb of memory, when starting /stand/sysinstall happens restart. There is piece of install.txt: 1.2 Hardware Requirements FreeBSD for the i386 requires a 386 or better processor to run (sorry, there is no support for 286 processors) and at least 5 megs of RAM to install and 4 megs of RAM to run. So, it must work on system with 16Mb of memory! I don't remember where I read this (I checked the handbook but I couldn't find it): FreeBSD will run with 4M of memory, but sysinstall requires more - I thought it was more than 5M, but still less than 16M... maybe install.txt is out of date? Anyway, you could try this: - take the HDD out of the 16M machine - put it in a machine with more memory - install FreeBSD on it with that machine - put it back in the 16M machine When doing this, be careful about which device the HDD it thinks it is - e.g, if it's the primary master in the machine with 16M of memory, make it the primary master in the other machine too. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dlopen() and parent symbols
On Wed, 4 Feb 2004 19:48:31 -0700 (MST) Joe Lewis [EMAIL PROTECTED] wrote: I've read that I can't export symbols from the parent executable to modules opened with dlopen(). So, I have a (hopefully) quick question. How can I export function(s) to those modules? Can you pass them a function pointer (callback)? Don't know, never tried it with a dlopen()'ed object, but I can't immediately see why it wouldn't work... -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: sed problem
On Sun, 1 Feb 2004 15:33:58 + Daniela [EMAIL PROTECTED] wrote: On Sunday 01 February 2004 01:34, Jez Hancock wrote: On Sun, Feb 01, 2004 at 01:38:44AM +, Daniela wrote: I was wondering how I can do the following with sed (or another program): 1. Output only the text from the start of the line to the first pipe character 2. Output only the text between the last and the previous pipe character Or, split the line at the pipe characters and assign the parts to different shell variables. #!/bin/sh test=one|two|three set `echo $test | sed -e 's/\|/ /g'` # $1=one, $2=two, $3=three: echo $@ This doesn't work when the parts between the pipe characters contain spaces themselves. Nor does the awk approach I posted, incidentally - the problem being that sh likes to split up its input into variables, by spaces. You can work around it by translating the spaces into some unused character first, then translating pipes to spaces, then finally translating the unused characters back into spaces in each of the variables. There may be a simpler way, but if so, I don't know what it is. Or you could avoid sh variables and do whatever processing you have to do entirely in awk (or perl.) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: What hostname should I set?
On Sat, 31 Jan 2004 20:02:01 -0500 JJB [EMAIL PROTECTED] wrote: Assigning an Host name to your FBSD system Your FBSD operating system has internal software applications (like sendmail for one) that needs to know the fully qualified domain name of the PC it's running on. You do this by adding this option statement hostname=to /etc/rc.conf. This is the format to use. thisPCname.fakeDOMAINname.tld Where thisPCname came be any name you want to identify this particular pc on your LAN. Since the goal of this Installation Guide is to build an FBSD gateway server, the name of this PC should be gateway. Where .fakeDOMAINname can be any name you want as long as it's not an registered domain name on the public internet, unless of course it's registered to you. Using FBSDyourlastname is an safe fake domain name to use here. So if my name is Tom Jones, I would use fbsdjones. Where .tld can be any of the standard TLD's currently in use. Such as .com or .usa or .info or .cc, but since .com is the most commonly used TLD, I recommend using .com I think it's a better idea to use a fake TLD, too: tomorrow someone could go and register fbsdjones.com, resulting in much confusion. On the other hand, fbsdjones.lan should be safe to use until such time as .lan becomes an official TLD (i.e., probably forever.) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: sed problem
On Sun, 1 Feb 2004 01:38:44 + Daniela [EMAIL PROTECTED] wrote: I was wondering how I can do the following with sed (or another program): 1. Output only the text from the start of the line to the first pipe character 2. Output only the text between the last and the previous pipe character Or, split the line at the pipe characters and assign the parts to different shell variables. It sounds like awk might be better suited to what you want to do than sed. You should be able to do something like this with sh and awk: cat test.txt | awk -F'|' '{ print $1,$2,$3 }' | \ while read VAR1 VAR2 VAR3; do # do something with $VAR1, $VAR2, and $VAR3 done So if test.txt contains a|b|c d|e|f On the first iteration of the while loop, VAR1=a, VAR2=b, and VAR3=c, and on the second iteration... well, you get the idea :) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Booting with 80 Gig hard drive
On Thu, 29 Jan 2004 14:37:39 +0200 rk47 [EMAIL PROTECTED] wrote: Hi FreeBSD'ers I have a problem with booting from FreeBSD 4.8/4.9 and 5.2, they all gave the same error. I have an 80Gig Seagate HD with a Pentium 4, Epox motherboard and Phoenix version 2.2 BIOS. [...] I use Boot Manager with Windows XP on the first part of the HD and FreeBSD on the second part of the partition. If your Windows XP partition is bigger than 500 megabytes, you should probably take the following into account: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/install.html#DISK-DIVIDE-RESTRICTIONS btw, there is an option to boot0cfg ('packet') which can work around this limitation, but I don't know how well it works. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: showing total/free memory
On Thu, 29 Jan 2004 21:29:07 + Jez Hancock [EMAIL PROTECTED] wrote: On Fri, Jan 30, 2004 at 08:11:26AM +1100, Rowdy wrote: Chris Pressey wrote: Well, I'm not sure if it works on 5.x, but you could try /usr/ports/sysutils/muse Should be easier to parse than the other options. -Chris You could always output the results of dmesg at boot-time to a file - adding something like this: dmesg /var/log/dmesg.boot to /usr/local/etc/rc.local. This already happens, to /var/run/dmesg.boot Not sure how to account for the discrepancy - presumably it's not counting memory that can't be used under FreeBSD (possibly the 'wired' memory, for the kernel, and some other stuff.) If you really need the real total memory on the machine (as opposed to what's available to the operating system,) you should probably parse /var/run/dmesg.boot (which isn't difficult - just grep for 'real memory' and take the fourth field with e.g. awk '{ print $4 }'.) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: showing total/free memory
On Thu, 29 Jan 2004 08:26:00 +1100 Rowdy [EMAIL PROTECTED] wrote: Matthew Hunt wrote: On Thu, Jan 29, 2004 at 08:03:46AM +1100, Rowdy wrote: I am setting up MRTG and at the moment I am parsing /var/run/dmesg.boot and the output from `top -b -d 1` to get total and free memory respectively, but I hope there is an easier way. Try vmstat instead. Thought of that. According to the man page, vmstat shows, for memory: avm active virtual pages fre size of the free list Does the size of the free list correspond to actual free memory? I wasn't sure whether that was the case or not. Also, it's a case of parsing the output from top or parsing the output from vmstat - I had hoped there would be a simple command that would show memory state :) Dave Well, I'm not sure if it works on 5.x, but you could try /usr/ports/sysutils/muse Should be easier to parse than the other options. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MBR
On Tue, 27 Jan 2004 17:10:35 +0100 Ruben de Groot [EMAIL PROTECTED] wrote: On Tue, Jan 27, 2004 at 04:49:02PM +0100, Namik Dala typed: On Tue, Jan 27, 2004 at 09:10:51AM -0600, Brian H wrote: Currently I have the BSD boot loader running in my MBR, but since I only have BSD on my system I would like to replace it with the standard MBR. Is there a way with unix to safely reset the MBR? This dev=/dev/ad0 # change this dd if=$dev of=/boot/mbr.backup bs=512 count=1 dd if=/boot/mbr of=$dev bs=512 count=1 Don't do this. It'll overwrite your partition table. Use: fdisk -B [-b /boot/mbr] /dev/ad0 instead. Ruben Can't you accomplish the same thing (more modestly) with boot0cfg -b /boot/mbr /dev/ad0 ? -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Intel 815 + Floppy
On Sun, 25 Jan 2004 21:45:59 -0600 (CST) David Short [EMAIL PROTECTED] wrote: One of my machines has a motherboard with and Intel 815 chipset. Well, after installing the 5.x series (5.1, 5.2), you cannot mount a floppy. It gives you Input/Output errors. However, in the 4.x series (4.8, 4.9), I don't seem to have this problem. Is there any way to make this work in the 5.x series? Or better yet... will this be fixed before 5.x becomes STABLE? Disclaimer: the following is a wild guess; I don't run 5.x. Do you have ACPI enabled? If so, try disabling it. On my 4.9 system, if I have APM enabled, I can't use the floppy drive. IIRC ACPI is what 5.x has instead of APM, and it might have the same issues. Or not. I really don't know. As I said, wild guess. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CVSup newbies question
On Mon, 26 Jan 2004 14:11:41 +0800 meimi [EMAIL PROTECTED] wrote: Hello everyone, I have following the instruction on http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html to install cvsup on my computer. I think CVSup is installed correctly and running smoothly. I am using CVSup to update my port trees. Does that mean I will get all the latest ports in /usr/ports/ after I run cvsup? Yes. Remember, though, that the word port, in this sense, just means port skeleton - a set of files which tell your system how to obtain the source code (the distfiles) for a particular program, and how to compile and install it. cvsup will not put the distfiles themselves into /usr/ports. That will only happen when you cd into one of the directories under /usr/ports and issue a 'make' command. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: open office install fails after two days of installing
On Sun, 25 Jan 2004 22:32:27 -0800 chip [EMAIL PROTECTED] wrote: Okay, I downloaded and installed the .tbz file, moved it to /usr/local and ran pkg_add. It finished, and the instructions on the screen say to just run openoffice on the command line and answer a few questions. When I run the command I get command not found, as user and as root. What did I do wrong? You may have to type 'rehash' first. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adaptec 2400A Performance
On Sat, 24 Jan 2004 19:48:15 -0800 Rishi Chopra [EMAIL PROTECTED] wrote: One other (slightly lamer) question: if my device configures as da0, is that scsi or ide? SCSI. IDE would be ad0. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Spam Assassin?
On Sat, 24 Jan 2004 22:51:05 -0600 Eric F Crist [EMAIL PROTECTED] wrote: Where is the Spam Assassin port? The only thing I can find is spamass-milter which just USES Spam Assassin. echo /usr/ports/*/*Spam* /usr/ports/mail/p5-Mail-SpamAssassin /usr/ports/mail/p5-Mail-SpamAssassin-snapshot /usr/ports/www/p5-Apache-AntiSpam I think you probably want the first one? -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: System Startup Messages
On Fri, 23 Jan 2004 21:54:37 -0800 Rishi Chopra [EMAIL PROTECTED] wrote: I'm running a FreeBSD machine with no head (e.g. no monitor installed to the machine). Is there a way to view the statup messages from the system once the machine is up and running via SSH? What is the name of the file that would have the messages (specifically any output sent to the terminal with regards to detecting and installing devices)? man 8 dmesg HTH -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FDisk won't detect or accept correct disk geometry from BIOS
On Thu, 22 Jan 2004 14:24:19 -0800 Keith Kelly [EMAIL PROTECTED] wrote: Thanks for your thoughtful and helpful reply. I should have given more technical details. I already tried (with both 4.9 and 5.1) letting the FreeBSD install proceed with fdisk's geometry value assumptions, and what I always get is a non-bootable hard drive that gives the Missing operating system error at boot. Hi Keith, Just to be sure - did you elect to install BootMgr (or a regular boot record) on the drive when sysinstall asks? -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Dependencies of installed ports
On Fri, 23 Jan 2004 17:00:05 +1300 Tom Munro Glass [EMAIL PROTECTED] wrote: 1) How can I display the dependencies between the ports I have installed on my 4.9-RELEASE machine? There seem to be some ports in /var/db/pkg that I haven't intentionally installed and I would like to get rid of some of them, but I don't know if they are used by other ports. Try: pkg_info -r name of package as it appears in /var/db/pkg 2) I use portinstall to install ports, but if I want to delete a port, is the only way to use make deinstall? It would be nice if there was something like portdeinstall that would remove the specified port and any ports it depends on (providing they are not used elsewhere). pkg_delete can remove the packages created by ports (better than make deinstall, which can fail after you've updating your ports tree and the port has been upgraded.) pkg_delete -r will remove the package and any packages that depend on it. But for what you want (remove the package and all packages that it depends on (that no other package depends on,)) I'm not sure how to do it with the standard tools. I find the sysutils/pkg_cutleaves port is handy for this purpose though, and definately worth a look in your situation. HTH -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: grepping distinct lines from many text files ?
On Tue, 20 Jan 2004 20:56:21 +0200 Ion-Mihai Tetcu [EMAIL PROTECTED] wrote: Hi, I know I have done this before, but I don't remember how ;) I have a collection of text files in one directory, and each file can contain one or more lines of text, of which any of them could also be in another file and what I want is to do something like: CUCU=`cat /path/do/dir/* | some_filer_program` and have in $CUCU the distinct lines from all the files. Something like SQL's SELECT DISTINCT FROM Any pointers ? man 1 uniq ? -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: Another perl question
On Sun, 18 Jan 2004 15:55:42 -0800 Gary Kline [EMAIL PROTECTED] wrote: Is there an easy way of determining file - determine file type in perl? at least as certain as magic(5) can ascertain? E.g: if (($ftype = file ($ARV[i])) eq script){ ## do abc; } else if ($ftype eq Mail){ ## do def; } else if ($type eq C program){ ## do xyz; } . . . I've been poking around perl tutorial sites; so far, nada. Thought I'd ask the wizards. thanks for any clues, gary How about /usr/ports/devel/p5-File-MMagic ? This module is to guess file type from its contents like file(1) command. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: install 5.2 on Thinkpad T40 fxp problem
On Sun, 18 Jan 2004 02:22:32 +0800 Zhang Weiwu [EMAIL PROTECTED] wrote: Hello. I read some FreeBSD on Thinkpad T40 storis (prior to 5.2), these guys have luckly have almost everything working! Now I just brought a new T40. The first problem is fxp0 autodetected and always timeout: fxp0: device timeout fxp0 timeout on whatever network operation (ping, dhclient etc). I'm sure the cable, the network and the connector is okay, only it is a 10BaseT ethernet. #dmesg | grep fxp fxp0: Intel 82801DB (ICH4) Pro/100 VE Ethernet port 0x8000-0x803f mem 0xc0201000-0xc0201fff irq 11 at device 8.0 on pci2 fxp0: Ethernet address 00:0d:60:12:c3:61 miibus0: MII bus on fxp0 #ifconfig fxp0 fxp0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500 ether 00:0d:60:12:c3:61 media: Ethernet autoselect (10baseT/UTP) status: active I noticed lots of other devices are using irq 11 too, don't know if it can be a problem: uhci1: irq 11 uhci2: irq 11 cbb0: irq 11 cbb1: irq 11 Please give me a hint how to go on! Thank you. Maybe this page will help provide some insight? resolving IRQ conflicts in FreeBSD on a ThinkPad A20m http://www.paulbeard.org/movabletype/archives/000415.html -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: General UNIX puzzle
On Sat, 17 Jan 2004 14:50:18 -0700 Brett Glass [EMAIL PROTECTED] wrote: For example, while I received answers involving languages, such as sed and awk, the simplest answer to at least one of them seems to use grep. How so? My first thought for #3 was 'fgrep -v string', but on re-reading the problem, I realized that wouldn't quite cut it. Unless grep has a 'change behaviour after first match' type switch that I've somehow failed to see in its man page... -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problems creating a bootable image using burncd
On Tue, 13 Jan 2004 13:07:20 -0600 Vulpes Velox [EMAIL PROTECTED] wrote: I've been trying to create a a bootable CD using freesbie. I ran into problems getting that to work. It failed to boot and the same thing happened upon reburn. I then went to download a the 4.9 install iso to see if it was a possible problem with the image that was created. The iso passed the check sum, but after burning it, it would not boot too. I've managed to verify that it is possible of booting from that drive using a old win98 install disc I have laying around. The install for that comes up fine. I've also tried it at different speeds and have gotten the same results. Any ideas? What method are you using to burn the CD? If it's a method that's worked for you in the past, it sounds like you might have some flaky CD-R's. (Also note: there's a problem with the current FreeSBIE scripts for creating working 4.x FreeSBIEs. They fail to copy a required file onto the CD - and when they do, it still won't detect your hard drives without another minor change. I've posted patches to the freesbie mailing list that fix these problems, you might want to apply them before trying to make another FreeSBIE.) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DNS resources or toaster
On Mon, 5 Jan 2004 16:30:41 -0500 Marius Kirschner [EMAIL PROTECTED] wrote: I have the task to set up a two DNS servers for my company, and while I have administered their DNS servers using BIND for a number of years I have never set them up from scratch. I have 2 boxes where FreeBSD 5.1 will be installed, and, to be honest, I'm not sure whether to use BIND or DJBDNS of which I've heard much good. Obviously either one will do the job.I guess it's just a matter of preferences..but I'm very tempted to go with DJBDNS this time. Anyway, anybody know of a good web page/site with some how-to for FreeBSD and DJBDNS? Thanks, ---Marius This one was helpful for my (admittedly modest) DNS needs, it might be a good place to start: http://ezine.daemonnews.org/200210/ezdjbdns.html -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mount /cdrom as non-root user - does this actually work for anyone?
On Sun, 4 Jan 2004 11:59:29 +1100 Gautam Gopalakrishnan [EMAIL PROTECTED] wrote: On Sun, Jan 04, 2004 at 12:53:52AM +, Stacey Roberts wrote: Hello, As root I can mount and read the CD fine.., checking for non-root user: exit ~ $ mount /cdrom cd9660: /dev/acd0c: Operation not permitted ~ $ mount -t cd9660 /dev/acd0c ~/cdrom cd9660: /dev/acd0c: Operation not permitted ~ $ Attempting to mount to mount-point in user home dir: ~ $ cd ~ ~ $ pwd /home/stacey ~ $ ls -ltra cdrom total 6 drwxr-xr-x 2 stacey stacey 512 Jan 3 23:50 ./ drwxr-xr-x 31 stacey stacey 2560 Jan 3 23:50 ../ ~ $ mount -t cd9660 /dev/acd0c ~/cdrom cd9660: /dev/acd0c: Operation not permitted ~ $ chmod +s /sbin/umount /sbin/mount works fine for me (without any other changes necessary). Don't know if it's the recommended procedure though. Gautam I worked around this a different way: I chown'd /dev/acd0c to the uid of the user. Probably *not* the recommended procedure :) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Where Live CD ISO image?
On Tue, 30 Dec 2003 15:21:53 + (GMT) Francisco Reyes [EMAIL PROTECTED] wrote: Where can I download a Live CD ISO? The only place I was able to find was http://www.freesbie.org, but that's basically some scripts on how to do an ISO from one's system. Was hopping to find something already made. Why not the images on this page?: http://www.freesbie.org/?section=ISO-en -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Where Live CD ISO image?
On Tue, 30 Dec 2003 12:35:54 -0800 Chris Pressey [EMAIL PROTECTED] wrote: On Tue, 30 Dec 2003 15:21:53 + (GMT) Francisco Reyes [EMAIL PROTECTED] wrote: Where can I download a Live CD ISO? The only place I was able to find was http://www.freesbie.org, but that's basically some scripts on how to do an ISO from one's system. Was hopping to find something already made. Why not the images on this page?: http://www.freesbie.org/?section=ISO-en Sorry, scratch that - apparently those links are broken. CC'ing this to the FreeSBIE mailing list in the hopes that they can be fixed :) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Does FreeBSD allow one to use the Floppy Drive on a SunBlade 100 ?
-Original Message- I am looking for a replacement OS that I can put on my SunBlade 100. Currently I am using Solaris 9. I have looked at Debian and OpenBSD and both OS's cannot use the floppy drive. I have Googled and I know that FreeBSD 4.9 cannot utilize the floppy drive as well as (I think) 5.0. Does 5.1 change this ? TIA Greg On Mon, 29 Dec 2003 18:05:40 -0500 fbsd_user [EMAIL PROTECTED] wrote: I have Googled and I know that FreeBSD 4.9 cannot utilize the floppy drive as well. You are complete wrong. I have been using FBSD since 4.2 and the floppy has been working for me. According to http://www.freebsd.org/releases/5.0R/hardware-sparc64.html, 1.44 Mbyte floppy drives are not supported. http://www.freebsd.org/releases/5.1R/hardware-sparc64.html doesn't say anything about floppy drives that I could find, but it says that Sun Blade 100 is Fully Supported. I suppose can infer from that that floppy drive support on the Sun Blade 100 made it in between 5.0 and 5.1. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: grep, netstat, and bridging
On Tue, 23 Dec 2003 08:19:53 -0800 (PST) Dave McCammon [EMAIL PROTECTED] wrote: I this a feature, bug, or just some logical thing that grep does( or perhaps netstat)? Scenario: IP addresses comp1=xx.xx.xx.1 comp2=xx.xx.xx.6 comp3=xx.xx.xx.12 comp1 and comp3 run FBSD 4.9 stable comp2 runs FBSD 5.1-RELEASE comp1 is a bridging firewall using ipfw A: comp2# netstat -n |grep xx.xx.xx.1 tcp4 0 0 xx.xx.xx.6.54953 xx.xx.xx.12.3551 TIME_WAIT tcp4 0 0 xx.xx.xx.6.54952 xx.xx.xx.12.3551 TIME_WAIT tcp4 0 0 xx.xx.xx.6.22xx.xx.xx.1.1233 ESTABLISHED B: comp2# netstat -n |grep xx.xx.xx.1. tcp4 0 0 xx.xx.xx.6.54954 xx.xx.xx.12.3551 TIME_WAIT tcp4 0 0 xx.xx.xx.6.54953 xx.xx.xx.12.3551 TIME_WAIT tcp4 0 0 xx.xx.xx.6.22xx.xx.xx.1.1233 ESTABLISHED C: comp2# netstat -n |grep xx.xx.xx.12 tcp4 0 0 xx.xx.xx.6.54957 xx.xx.xx.12.3551 TIME_WAIT tcp4 0 0 xx.xx.xx.6.54956 xx.xx.xx.12.3551 TIME_WAIT Actually..I see the same output on a cygwin machine behind the comp1 firewall. From the grep(1) man page: The period . matches any single character. Try fgrep(1) (or grep -F) instead and see if that helps? -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: why do I need sendmail
On Sat, 20 Dec 2003 12:15:49 -0800 Cybertime Hostmaster [EMAIL PROTECTED] wrote: One thing to note in Matthew's reply: that. However, automatic e-mails from your system -- usually from the periodic(8) scripts -- do require sendmail(8) or equivalent. Two words at the end, or equivalent. You can run Courier, Exim, Mini Sendmail, Nullmailer, Postfix, Qmail, ZMailer, so on and so forth. All have advantages and disadvantages. Personally, I use Postfix, but that is because for my needs it is better. If you have trouble reducing sendmail down to your needs, look at the documentation on the others. One of them might suit you better. Your mileage may vary, so on and so forth. FWIW, you can also cause periodic(8) to log to a file instead of sending mail, by adding lines like the following to /etc/periodic.conf: daily_output=/var/log/dialy.log weekly_output=/var/log/weekly.log monthly_output=/var/log/monthly.log Not sure if this eliminates the need for a local mailer, but it's sure to be the first step down that road. I can't think of anything else that sends automated e-mails, offhand, but whatever does can probably be configured to write its output to a file instead, in a similar way. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cvsup
On Sat, 20 Dec 2003 00:06:55 -0500 fbsd_user [EMAIL PROTECTED] wrote: ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz This points to the compressed file which contains the complete ports tree. you mis-understood my question, I do not say I was trying to find the single compressed file of the complete ports tree. Here is my question again When I use cvsup to download the ports config files (by category), it does not display the directory path it's using on the server. How can I find the directory path cvsup defaults to using? The implied meaning here is what is the cvsup program using for an directory path? How can I find out what it is? fbsd_user, I don't think you can discover that information in the general case, just like you can't discover what directory a web server is serving its files from. However, in FreeBSD's case, the configuration files for cvsupd, as it is run on FreeBSD servers, is available via cvsup, according to: http://www.cvsup.org/faq.html#serversample You might be able to grab the FreeBSD project's config files for cvsupd using that, and extract from those files the information you're interested in. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: comparison of files
On Tue, 16 Dec 2003 16:31:22 -0500 (EST) Brent Bailey [EMAIL PROTECTED] wrote: hello, I have been trying to write a shell script that will compare 2 files and generate a 3rd. i have a list of abusive IP's generated by our router. I want to compare it against a list of known abuse IPs ..and have it create a file of repeat offenders. ive tired to use comm to compare file1 against file2 doing something like comm -12i file1 file2 file3 however it doesnt seem to workany suggestions ? Are file1 and file2 sorted? -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: comparison of files
On Tue, 16 Dec 2003 16:38:15 -0500 (EST) Brent Bailey [EMAIL PROTECTED] wrote: yes sorted in numerical order by IP -- Brent Bailey CCNA Bmyster LLC Computer Networking and Webhosting Network Engineer, Webmaster, President http://www.bmyster.com [EMAIL PROTECTED] 207-247-8330 On Tue, 16 Dec 2003 16:31:22 -0500 (EST) Brent Bailey [EMAIL PROTECTED] wrote: hello, I have been trying to write a shell script that will compare 2 files and generate a 3rd. i have a list of abusive IP's generated by our router. I want to compare it against a list of known abuse IPs ..and have it create a file of repeat offenders. ive tired to use comm to compare file1 against file2 doing something like comm -12i file1 file2 file3 however it doesnt seem to workany suggestions ? Are file1 and file2 sorted? -Chris Sorry, it doesnt seem to work isn't a lot to go on. What output did you expect, and what output did you actually get? Have you tried different options to 'comm'? If the list contains only numeric IP addresses, the '-i' option isn't going to do you much good, for example. Have you tried 'diff file1 file2'? Do you get the output that seems reasonable from that? -Chris P.S. please keep [EMAIL PROTECTED] CC'ed, and please don't top-post. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Secure Deletion (Like shred for Linux)??
On Mon, 15 Dec 2003 13:31:52 -0600 Pratt, Benjamin E. [EMAIL PROTECTED] wrote: Hello - I'm fairly new to FreeBSD and was wondering if there are any other programs out there for secure deletion. I know that you can use the -P flag with rm to overwrite files but you can't specify the iterations of overwriting. What I'm looking for is something similar to (or exactly like) shred for Linux. Is it out there?? Thanks, Ben Hi, The only programs I've seen like what you describe are 'obliterate' and 'srm'. /usr/ports/sysutils/obliterate /usr/ports/security/srm I'm not sure either of them does exactly what you want (specifying how many times to overwrite the file,) but they may be worth checking out. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Secure Deletion (Like shred for Linux)??
On Mon, 15 Dec 2003 13:55:07 -0600 Pratt, Benjamin E. [EMAIL PROTECTED] wrote: Chris - It doesn't look like they do quite what I'd like. Here's the man page for shred (http://unixhelp.ed.ac.uk/CGI/man-cgi?shred+1). Shred is used in a shell script called Autoclave (http://staff.washington.edu/jdlarios/autoclave/) to securely wipe a hard drive before getting rid of it. I've attached the autoclave.sh script (as long as attachments are allowed, ask me for it if you don't get the attachment). Ben Ben, My bad! Shred *does* indeed exist on FreeBSD; it's part of /usr/ports/sysutils/fileutils and it's installed as 'gshred' (because all the fileutils are prefixed with a 'g' to avoid collisions with BSD versions of the same tools.) You should be able to install the fileutils port, create a symbolic link from 'shred' to 'gshred', and run the autoclave script. HTH, -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Secure Deletion (Like shred for Linux)??
On Mon, 15 Dec 2003 12:17:02 -0800 Chris Pressey [EMAIL PROTECTED] wrote: [...] You should be able to install the fileutils port, create a symbolic link from 'shred' to 'gshred', and run the autoclave script. OK, looking more closely at the script, that might not be possible either, since it looks like it rebuilds shred from its source (?) But you might be able to get around this by replacing all occurances of 'shred' with 'gshred' in the script, or modifying the fileutils port so that 'shred' is installed as 'shred', not 'gshred', or something... -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to list all packages in a given category?
Hi all, Apologies in advance if this is a stupid question, but I couldn't find anything relevant in the man pages or with Google: How can I list all the packages I have installed in a certain category? I'm thinking it should be something like 'pkg_info -C games', but AFAICT pkg_info doesn't have any such option like that. TIA, -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CVSUPIT pkg_add 90% good/10% strange
On Fri, 12 Dec 2003 12:49:34 +1300 Richard Shea [EMAIL PROTECTED] wrote: Hi Chris - Thanks for the advice and sorry for the delay. I've taken a look in /usr/ports/net/cvsupit but pkg-plist does not exist That's quite possibly why it failed to install in the first place :) so given all the other factors I think I will conclude that things are probably OK. Yes. I suppose one day I will crack this updating of FreeBSD machines. To date I have been using FreeBSD for three years and I have two different experiences (A) a machine I installed 3.x on three years ago have never touched since and it runs beautifully (still I worry about security holes), everything I could ask for. (B) two other machines I have installed 4.x on in the last 6 months (both, to some degree 'play' machines). On both have attempted to update sources etc via CVSUP and have never had anything but grief/pain/boredom. I'm sure there are people out there who do this all the time and it all works but I'm not one of them ! Maybe one day ! Maybe I got lucky, but I never had many great problems doing it... last time I did it, it went something like: - install cvsup-without-gui from package on CD using /stand/sysinstall - copy /usr/share/examples/cvsup/src-supfile to /etc/cvsup/src-supfile - edit /etc/cvsup/src-supfile so that it reads like: *default host=cvsup5.FreeBSD.org *default base=/usr *default prefix=/usr *default release=cvs *default tag=RELENG_4 *default delete use-rel-suffix *default compress src-all - do similarly for ports-supfile and doc-supfile - edit /etc/make.conf like: SUP_UPDATE= yes SUP=/usr/local/bin/cvsup SUPFLAGS= -g -L 2 SUPFILE=/etc/cvsup/src-supfile PORTSSUPFILE= /etc/cvsup/ports-supfile DOCSUPFILE= /etc/cvsup/doc-supfile - cd into /usr/src - run 'make update' - and that's all! thanks again for your advice. regards richard. No problem. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CVSUPIT pkg_add 90% good/10% strange
On Tue, 09 Dec 2003 15:14:38 +1300 Richard Shea [EMAIL PROTECTED] wrote: On Mon, 8 Dec 2003 15:40:39 -0800, Chris Pressey [EMAIL PROTECTED] said: On Tue, 09 Dec 2003 12:00:15 +1300 Richard Shea [EMAIL PROTECTED] wrote: [...] === Generating temporary packing list ** Missing package files for cvsupit-3.1. *** Error code 1 ... mean the machine is in a good state or a bad state (.. ah, the eternal question :-) Hm, I would say a bad state, but not *very* bad. Looks like cvsupit is partially installed? You might be able to fix it up by running pkg_delete cvsupit-3.1 which should delete any files that were installed by the cvsupit package (and possibly give you some warnings when trying to delete ones that weren't.) That's a good idea, I hadn't thought of it. However strange stuff persists because when I tried that I got ... trinidad# pkg_delete cvsupit-3.1 pkg_delete: no such package 'cvsupit-3.1' installed ... - that's even though it just ran ! I then started looking in to the relevant ports directory and this is what I saw ... trinidad# pwd /usr/ports/net/cvsupit trinidad# ls work trinidad# cd work trinidad# ls -l total 0 -rw-r--r-- 1 root wheel 0 Dec 7 22:59 .build_done.cvsupit-3.1 -rw-r--r-- 1 root wheel 0 Dec 7 22:59 .configure_done.cvsupit-3.1 -rw-r--r-- 1 root wheel 0 Dec 7 22:59 .extract_done.cvsupit-3.1 -rw-r--r-- 1 root wheel 0 Dec 7 22:59 .patch_done.cvsupit-3.1 trinidad# ... I take it those files are used as a form of logging ? Sort of. They're little 'cookies' that help indicate which phases have been completed thus far, to the ports 'make' scripts. So on the one hand it's 'build_done' but on the other hand pkg_delete doesn't know about the package ! Not too surprising; if the install had completed sucessfully, there'd be a '.install_done.cvsupit-3.1' file there too. Just did a ... trinidad# find / -name *vsupi* -print ... and didn't find anything elsewhere in the system either ... All in all a bit of a mystery - anyone else fancy having a go at explaining what might have happened or what it all means ;-) Most likely, it built cvsupit sucessfully, then went to install it, but found something it didn't like, so it stopped there. Chances are it stopped before it installed anything - especially in light of your find command. In which case, your system isn't in a bad state after all. But if you want to be *really* certain, have a look at /usr/ports/net/cvsupit/pkg-plist. It should contain a list of all the files the port wanted to install. You can search for each of them in your system, and delete them if you find them. Note that the files listed in pkg-plist are missing the installation prefix, usually /usr/local/, so you have to tack that on yourself mentally before looking for them. Also, there might be filenames with variables like %%THIS%% in it, in which case you'll have to look in the Makefile to see what those variables would have been replaced with. regards richard. HTH, -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CVSUPIT pkg_add 90% good/10% strange
On Tue, 09 Dec 2003 11:39:13 +1300 Richard Shea [EMAIL PROTECTED] wrote: Hi - I've just installed 4.8 from scatch. The next thing I wanted to do was to CVSUP so I ... cd /usr/ports/net/cvsupit make install distclean ... that was a bit strange because cvsupit seemed to start automatically as part of the 'make'. I wasn't watching it happen but I flicked back to the screen and I found I was being prompted for which CVSUP server I wanted to use. Anyway I went along with that and allowed the CVSUP session to start and and all seemed to go well, I ended up with a All finished! ... blah, blah dialog box (not a real dialog I was running this from the command line). However when I then pressed Enter on that dialog box (to go back to the prompt) I get ... === Generating temporary packing list ** Missing package files for cvsupit-3.1. *** Error code 1 Stop in /usr/ports/net/cvsupit. ... that doesn't look too good and yet the CVSUP session appears to have all gone fine - can anyone explain what's happening ? regards richard shea. No clue as to what's going wrong, sorry. But you should probably be using cvsup (or cvsup-without-gui), as IIRC cvsupit is obsolete. (It's not in my ports tree, anyway.) Probably the simplest way to install cvsup-without-gui on a fresh system is to use /stand/sysinstall - Configure - Packages. (You can also use the pkg_add command in the command line but I don't remember the invokation offhand.) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CVSUPIT pkg_add 90% good/10% strange
On Tue, 09 Dec 2003 12:00:15 +1300 Richard Shea [EMAIL PROTECTED] wrote: On Mon, 8 Dec 2003 14:53:33 -0800, Chris Pressey [EMAIL PROTECTED] said: On Tue, 09 Dec 2003 11:39:13 +1300 Richard Shea [EMAIL PROTECTED] wrote: [of cvsupit weirdness] No clue as to what's going wrong, sorry. But you should probably be using cvsup (or cvsup-without-gui), as IIRC cvsupit is obsolete. (It's not in my ports tree, anyway.) Hmmm, OK ... I was working off ... http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html ... and re-reading that has answered part of my question ... QUOTE If you do not know anything about CVSup at all and want a single package which will install it, set up the configuration file and start the transfer via a pointy-clicky type of interface, then get the net/cvsupit package. Just hand it to pkg_add(1) and it will lead you through the configuration process in a menu-oriented fashion. /QUOTE ... don't know if the doco is out of date ? Looks like it. According to the CVS logs, cvsupit was removed on May 6 of this year: http://www.freebsd.org/cgi/cvsweb.cgi/ports/net/cvsupit/Attic/ I may use something else in the future as you suggest but what I'm interested in initially is does this message ... === Generating temporary packing list ** Missing package files for cvsupit-3.1. *** Error code 1 ... mean the machine is in a good state or a bad state (.. ah, the eternal question :-) Hm, I would say a bad state, but not *very* bad. Looks like cvsupit is partially installed? You might be able to fix it up by running pkg_delete cvsupit-3.1 which should delete any files that were installed by the cvsupit package (and possibly give you some warnings when trying to delete ones that weren't.) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: which tool for a screenshot?
On Sun, 7 Dec 2003 00:27:40 + (GMT) Bill Schoolcraft [EMAIL PROTECTED] wrote: At Sat, 6 Dec 2003 it looks like Kevin D. Kinsey, DaleCo, S.P. composed: Looks like: 1. Click File menu 2. Click Acquire 3. Select screen shot and follow prompts. In another Unix OS I used to use the following command from a xterm window and it would shoot the whole desktop and save it to the file I named in the command line. import -window root image.jpg I don't seem to have the import command on FreeBSD. I believe it's part of the ImageMagick port: # grep import /usr/ports/graphics/ImageMagick/pkg-plist %%X11%%bin/import %%PORTDOCS%%share/doc/ImageMagick/www/import.html -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: md5 newbie question
On Sat, 06 Dec 2003 09:59:07 -0500 Marty Landman [EMAIL PROTECTED] wrote: Trying to verify a d/l before compiling: Swami: md5 -s 466c63bb71b710d20a5c353df8c1a19c /tmp/httpd-2.0.48.tar.gz MD5 (466c63bb71b710d20a5c353df8c1a19c) = 017b97dd023763b82a219bdfedd5cc29 MD5 (/tmp/httpd-2.0.48.tar.gz) = 466c63bb71b710d20a5c353df8c1a19c Swami: The -s 466c63bb71b710d20a5c353df8c1a19c part of your command is requesting an md5 hash of the literal string of characters 466c63bb71b710d20a5c353df8c1a19c. That's almost certainly not what you want, and will only serve to confuse. Try running just this instead: md5 /tmp/httpd-2.0.48.tar.gz and see man md5 for more info. By eyeballing the first part of line1 against the second part of line 2 they appear equal so I guess my d/l's integrity is intact. What is the more automated way to do this though, so that I get a line at the end saying ok or ah, phooey. Or am I supposed to extract and diff these myself? Essentially, yes; many source tarballs come with an .md5 file which you can diff against the output of the md5 command. But FreeBSD's ports system will check md5's for you automatically. The ports tree is very, very convenient, and I'd recommend using it whenever possible. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: md5 newbie question
On Sat, 06 Dec 2003 16:52:42 -0500 Marty Landman [EMAIL PROTECTED] wrote: [...] Seems the problem here is that the md5 cmd's output is not simply the result string but a description of the cmd together with the result. If I need to do much of this guess a little pgm's called for. From man md5: -q Quiet mode - only the MD5 sum is printed out. So, try: md5 -q /tmp/httpd-2.0.48.tar.gz -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Monitoring folder activity
On Tue, 2 Dec 2003 15:42:27 -0600 Chad Albert [EMAIL PROTECTED] wrote: I am in need of a way to trigger an action when a file is written to user's home directories. I am sure there is a way to do this, but I don't know where to look. What I want to do is allow users to sftp a file into their home directory, then once the file is written, I want a server side process to email or otherwise transfer the file to another location so that it can be processed with some third party tools by a Windows user. Can anyone help me out? Have a look at /usr/ports/sysutils/wait_on The wait_on command allows shell scripts to access the facilities provided by kqueue(3). This allows scripts to detect files being added to directories, data appended to files and many other things - all without polling. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 4.9 install CD won't boot on Toshiba Tecra 8000
On Tue, 2 Dec 2003 07:21:56 -0800 (PST) Anon Nimus [EMAIL PROTECTED] wrote: I've burned a 4.9 ISO onto a CD-R and it won't boot on my Tecra 8000! This CD will boot on another PC but just not on this one. Also, the Toshiba CAN and DOES boot other CDs. For example, I was able to boot from CD and install Mandrake 9.2 on the Tecra. So I'm not sure why this particular CD won't boot on the Tecra. Any ideas? This is a guess, but it's possible that your Tecra doesn't support Emulated El Torito CD booting, which is what 4.x uses. You might want to browse through this thread for more info: http://www.mail-archive.com/[EMAIL PROTECTED]/msg58745.html I don't have a floppy drive so I'm not sure how else to install FreeBSD. Can I install FreeBSD from Linux (Mandrake 9.2)? Are there any other options I should consider? If it's not a production server, you could try 5.1 (or 5.2 BETA,) whose ISO images apparently use Non-Emulated El Torito booting. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: apache has fallen [and it won't get up]
On Sun, 30 Nov 2003 14:56:19 -0500 Marty Landman [EMAIL PROTECTED] wrote: Interesting. /etc/resolv.conf has last been changed like 10 minutes ago [not knowingly by me though]. All it says is search mshome.net nameserver 192.168.0.1 Since my workstation is delliver.mshome.net and also shares its internet connection on my lan via ics from and its ip addr on the lan is as shown, what's up do you think? Are you running a DHCP client on that machine? In my experience, the DHCP client that comes with FreeBSD will write a new /etc/resolv.conf file whenever it obtains a new lease. [...] If it's really just apache that's having the trouble I wonder if it could be a race condition? I notice that apache starts from a shell cmd when fbsd reboots. Swami: ls -l /usr/local/etc/rc.d/*.sh -r-xr-xr-- 1 root pgsql 875 Nov 11 17:24 /usr/local/etc/rc.d/010.pgsql.sh-rwxr-x--x 1 root wheel 407 Nov 12 19:33 /usr/local/etc/rc.d/apache2.sh-rwxr-xr-- 1 root wheel 144 Nov 12 16:18 /usr/local/etc/rc.d/landns.root.sh Swami: What determines the sequence in which these three scripts run? Alphabetical (actually ASCII) sort order. So 010.pgsql.sh will run first, then apache2.sh, then landns.root.sh. If you want, say, landns.root.sh to run first, rename it 005.landns.root.sh, or something to that effect. HTH, -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: daemon monitoring
On Tue, 25 Nov 2003 11:51:20 -0800 Will Prater [EMAIL PROTECTED] wrote: Also does one only need to create a log directory if the application itself does not log? Or is this to log other information, I cant seem to find an answer to this on DJB site. Thanks --will I'm pretty sure that if the application manages log files for itself, you don't need a log subdir. That's only useful for when you want to log (or otherwise intercept) the application's stdout/stderr/etc output. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: startx and numlocks
On Fri, 21 Nov 2003 08:38:24 -0500 (EST) Dru [EMAIL PROTECTED] wrote: Does anyone know how to keep numlocks on when using startx? I have numlocks on in all of my terminals, but when I start X, it goes off. Is there a line I can add to .xinitrc? TIA, Dru Hi Dru, Have you looked at /usr/ports/x11/numlockx ? -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie: The C / C++ Issue
On Thu, 13 Nov 2003 11:01:54 -0800 abowhill [EMAIL PROTECTED] wrote: Am I missing something here? When does C have OO capability? Structs don't count. What about inheritance and polymorphism? That's in the implementation AND application. Just because you CAN access part of a lowly struct, doesn't mean you have to. It's objectoriented if you OBSERVE the restricted accesses defined by OO. Whether or not they're there is completely irrelevant. Of course C has OO capability, it just doesn't have its restrictions :) The idea that C can be used to do object-oriented programming is a myth. The C language is not object-oriented or even object-based. The big reason C++ is object-oriented is due to dynamic binding. I don't think I buy that. With that reasoning, couldn't you say that any program in any language that does any sort of dynamic binding (for example, opening a .so file) is object-oriented? The way I see it is that object-orientation is a methodology, and languages aren't methodologies, so it's absurd to say that some language is or isn't object-oriented. (I mean, we all know that the Bourne shell is object-oriented,[1] right? :) The best you can do is to describe the degree to which some language supports or enforces object-oriented programming. Incidental to that, C++ provides many abstractions which support object-oriented programming, while not enforcing them in any way. But this is getting far off topic for this list; the bare facts remain: - much of FreeBSD (kernel, userland) is written in C - many FreeBSD ports are written in C++ So, as stated several times now, it really depends on what you want to work on. -Chris [1] http://www.usenix.org/publications/library/proceedings/bos94/haemer.html ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: quick question about turning the annoying beep off in X
On Thu, 13 Nov 2003 13:44:43 -0800 (PST) twig les [EMAIL PROTECTED] wrote: Hey all, in my /etc/csh.cshrc I have xset b off which does what I want, which is to tell X to shut up without me having to type the command in every X session. But it seems clumsy as it puts up an error xset: unable to open display when I ssh in. I fully understand that this *should* be an error because csh.cshrc is a shell init file, I just tried this in .xinitrc and it didn't work. Putting it in /usr/X11R6/bin/startx had predictably bad results. So anyone know the correct file for this command? You could try ~/.xsession, although I think that might only work when you run xdm. If all else fails, you could just call it like xset b off /dev/null although that, too, is a bit of an ugly hack (if it ever generates output that you *do* care about, you won't see it.) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install X windows in Free BSD 4.8 - Help required.
On Fri, 14 Nov 2003 10:53:44 +1100 Verghese George [EMAIL PROTECTED] wrote: Hello, Thanks for the help. I still have a problem starting up the X windows. First of all the login screen for X windows still does not allow me to get into the system. When I type my login name and password , the screen goes blank and the login screen reappears after some time. I remember having this problem when starting out with XWindows too. IIRC, it was because I had no ~/.xsession file. (If the system was supposed to automatically create one, it didn't, but maybe it just doesn't do that...) If this is the situation for you, you can log in on a text console and create a sensible ~/.xsession file, e.g. # echo 'exec xterm' ~/.xsession Then try logging in through xdm. If you already have a window manager installed, you can specify it instead of 'xterm' there. e.g. the last line in my ~/.xsession is exec blackbox btw, a pretty good tutorial for ~/.xsession can be found at: http://www-ugrad.cs.colorado.edu/X/xsession.html -Chris (randomly answering ~/.xsession! regardless of the question, today :) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie: The C / C++ Issue
On Tue, 11 Nov 2003 21:06:51 -0500 Alex Kelly [EMAIL PROTECTED] wrote: Thanks for all of the great suggestions to my previous question! Yet, the responses have led me to another question. If C++ is newer and more advanced than C, will it replace C? Unlikely. Old languages die hard - it's a bit scary to think of all the systems out there that are still running programs written in FORTRAN, COBOL, Business BASIC, and MUMPS (and incidentally will continue to run those programs until it becomes cost-ineffective to do so - which is to say, probably indefinately.) If so, should I learn C++ and forget C? If you want an appreciation of how computers actually work, learn the language that many call portable(ish) assembly code - C. If you don't really care how computers actually work, and you just want an elegant way to specify algorithms, learn Haskell. If you want something in-between, learn Erlang. And if you want a job in a cubicle, learn C++ or Java. Just MHO, -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ER schema design
On Wed, 12 Nov 2003 22:17:42 +0100 R.T.G. TAN [EMAIL PROTECTED] wrote: Hi, Anyone know of a good program to create an ER diagram? Tnx, -- robert tan I don't know if there is one specifically for ER diagrams, but Dia (/usr/ports/graphics/dia) has an ER sheet, if that's all you need. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: recovering data
On 11 Nov 2003 11:41:15 -0500 Lowell Gilbert [EMAIL PROTECTED] wrote: carmoda [EMAIL PROTECTED] writes: I would like to know if there is a proceedure i might be able to follow to recover a file that was deleted on a FreeBSD fileserver with SAMBA from a Windows 2000 workstation.. i know the file's name and i have powered down the server. The usual approach is to get it from your backups. The inode would help more than the filename, but you still might be able to retrieve it if you are thoroughly knowledgeable in filesystem internals. Since you're asking the question, I assume you're not. You might look around for a tool that (if I recall correctly) is called the Coroner's Toolkit. One trick I'm aware of, if you know some of the contents of the file, is to: - unmount the file system the file was on - grep through the raw device the file system was mounted on, looking for the known contents - copy those contents to a new file on another file system Some problems with this method are that the data isn't always stored contiguously (thus you may only be able to recover part of the file near the contents you know,) that the same contents might well occur in other files (possibly older versions of the same file that were deleted in the past), and that you're not likely to be aware of the contents of a binary file. However, I have used this method successfully to recover bits of program source code that I accidentally wiped out. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how do you get dump to assume yes to its questions
On Fri, 7 Nov 2003 23:35:29 +1030 Malcolm Kay [EMAIL PROTECTED] wrote: On Fri, 7 Nov 2003 23:33, Scott Renna wrote: Hello all, I've managed to start utilizing dump and the flags to exclude certain directories. The problem i've run into is when i try to back up/usrit's so big and dump breaks it up into tinier pieces(i'm dumping to a file). it asks me if the new volume is mounted and ready to go. Obviously it is...is there a way for dump to just run through all this without bothering me? Not certain I understand what you want, but I think you want the '-a' option with dump so that it writes all to one file without stopping. Try the man page. Not certain I understand either, but if all you want is a way to answer 'y' to every prompt a program gives you, one way is to use the 'yes' command. e.g. yes | rm -rf /tmp/* -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[OT?] Tying a socket to stdin/stdout w/dup2() ?
Hi all, Sorry if this question is a little off topic since it's not strongly FreeBSD-specific. I've got a C program that opens a TCP/IP socket and makes a client connection. What I'd like to do is to 'tie' the socket to this program's standard I/O, so that anything that is fed into this program's stdin, is immediately sent to the socket, and anything that appears on the socket, is immediately sent out this program's stdout. (The end effect being a sort of pathologically simple version of what telnet, (or inetd or ucspi-tcp) does.) Trying to figure this out using Google, the best lead I got was to try something like this: fclose(stdin); fclose(stdout); dup2(sd, 0); dup2(sd, 1); But it doesn't seem to do much good. (At best, I think this means the program can communicate with the socket as if it were stdio - but from the program user's point of view, stdio disappears completely.) I'd rather not resort to getting my hands dirty with select(2), but I guess if there's really no other way, I'll have to. TIA, -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [OT?] Tying a socket to stdin/stdout w/dup2() ?
On Fri, 7 Nov 2003 12:35:55 -0500 Charles Swiger [EMAIL PROTECTED] wrote: On Nov 7, 2003, at 12:19 PM, Chris Pressey wrote: I've got a C program that opens a TCP/IP socket and makes a client connection. What I'd like to do is to 'tie' the socket to this program's standard I/O, so that anything that is fed into this program's stdin, is immediately sent to the socket, and anything that appears on the socket, is immediately sent out this program's stdout. (The end effect being a sort of pathologically simple version of what telnet,(or inetd or ucspi-tcp) does.) Take a look at netcat, from /usr/ports/net/netcat. Ahh great, now I'm blind! :) Seriously - it seems to confirm that I was confused. Looks like you can either: a) dup the socket to stdin/out, then exec a program (a la inetd); or b) keep stdin/out and the socket, and multiplex between them (telnet). Since I want my program to act as a pipe source/sink, rather than exec-ing something else, I'll have to go with b), which means I'll have to face the select(2) music. Anyway, thanks for the pointer... -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PLS answer my question!
On Thu, 6 Nov 2003 11:51:48 -0800 (PST) Valerian Galeru [EMAIL PROTECTED] wrote: I installed x windows with sysinstall, then i installed blackbox (a window manager). Then if x server is not started and i execute blackbox command i get a error like this: x server not started something like this. If i start xserver and then run the blackbox command, i get another error (something like this one: another windows manager started, but i didnt install any window manager). And then, i can configure ~/.xinitrc but i cant find it in my home directory (in /home/val (val is my username) and in root the same). Ok. In man xstart it is said that this file can miss, and then i must go to /usr/.. after i configure that file and run startx nothing happens. What is the problem? How can i deinstall x windows and start it again? Or what can i DO??? 10x for help I run blackbox, and I have the following in the file ~/.xsession : rxvt -sl 3000 -fn 8x16 exec blackbox HTH, -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Trouble using the man subsystem
On Thu, 06 Nov 2003 13:52:10 -0500 Forrest Aldrich [EMAIL PROTECTED] wrote: I posted about this a while ago. For some time, I've had a broken manpage system on my FreeBSB box. Currently, it's at FreeBSD-4.9. The symptoms are: sometimes I get an error about not being able to locate tmac for tty-char. Though I can find that in /usr/local/share/groff, etc. Most times, I will do man command and the prompt just returns. Nothing, nada. I'm absolutely puzzled, because a reinstall (makeworld/buildworld) does NOT resolve the problem.I cannot see there to be any odd environment variables, however this suggests there may be a configuration issue somewhere.I'm out of ideas, and wonder if anyone out there has suggestions about where to look, how to fix this. Well, you can take a look at $MANPATH, to start. Then see if the command is anywhere in there, e.g. if you are looking for foo in section 2 of the manual, it's likely stored as /usr/share/man/man2/foo.2.gz , or /usr/local/man/man2/foo.2.gz , etc. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Best Way to Fix a links Browser Compilation Problem
On Wed, 05 Nov 2003 13:48:31 -0600 Martin McCormick [EMAIL PROTECTED] wrote: I am attempting to install a newer version of the links text browser. The Makefile tells you to define WITHOUT_X11 if you are not using X so I modified the Makefile to define that parameter as follows: CONFIGURE_ARGS+= --enable-javascript --with-ssl --without-svgalib --WITHOUT_X11 Actually, that line may wrap when you read this message, but all those defines are on one line and the WITHOUT_X11 is simply tacked on to the end. Anyway, if I do a make build, the make abends with: mv -f .libs/fcdir.lo fcdir.lo /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/c rm -f .libs/fcfreetype.lo cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/freetype2 -I/usr/local/inco fcfreetype.c: In function `FcFreeTypeQuery': fcfreetype.c:279: syntax error before `psfontinfo' fcfreetype.c:738: `psfontinfo' undeclared (first use in this function) fcfreetype.c:738: (Each undeclared identifier is reported only once fcfreetype.c:738: for each function it appears in.) gmake[2]: *** [fcfreetype.lo] Error 1 gmake[2]: Leaving directory `/usr/ports/x11-fonts/fontconfig/work/fontconfig-2.' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/x11-fonts/fontconfig/work/fontconfig-2.' gmake: *** [all-recursive-am] Error 2 *** Error code 2 Stop in /usr/ports/x11-fonts/fontconfig. *** Error code 1 Stop in /usr/ports/x11/XFree86-4-libraries. *** Error code 1 Stop in /usr/ports/www/links. The problem seems to be buried in all those X libraries links uses. Either that or I defined that WITHOUT_X11 variable in the wrong way. Possibly. In my experience, ports generally accept knobs like this: make WITHOUT_X11=yes -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Overheating attributed to Freebsd --sysctl variablesnotavailable--
On Tue, 4 Nov 2003 00:07:14 -0500 nw1 [EMAIL PROTECTED] wrote: This does make absolute sense, but this isn't a publicly accessable machine, so it would rarely reach that max_load to cause it to overheat as its doing now, provided, I can find someone to answer the second outstanding question; Where are those sysctl variables that i was previously able to set? They are no longer available You know, it's a good question - just for kicks, I tried this on my two FreeBSD machines: FreeBSD 4.9-RC #1: Wed Oct 15 08:12:11 PDT 2003: # apm apm: can't open /dev/apm: Device not configured # sysctl machdep.apm_standby_delay machdep.apm_standby_delay: 1 FreeBSD 4.9-STABLE #1: Sat Nov 1 09:16:30 PST 2003: # apm APM version: 1.2 APM Management: disabled AC Line status: unknown (... etc ...) # sysctl machdep.apm_standby_delay sysctl: unknown oid 'machdep.apm_standby_delay' ...which is a bit odd, to say the least. If anything, I would've expected the machine that doesn't have APM support compiled in to the kernel, to be the one with no understanding of APM-related sysctls. But, it's the other way around. Maybe something changed in the last two weeks? But you're running 4.8-RELEASE-p13 - I'd expect that to be (essentially) older than either of my installations... Anyway, those two oids don't seem to be documented under sysctl(8). And googling on them doesn't yield a lot. I really have no idea, I just thought I'd throw this out there as another data point. (This issue seems to be generating more heat than light, if you'll pardon the pun :) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Log every access to a file
On Wed, 29 Oct 2003 10:00:15 + Matthew Seaman [EMAIL PROTECTED] wrote: On Wed, Oct 29, 2003 at 01:07:26AM -0800, andi payn wrote: The second is to use fam. I should mention that I've only used fam under linux, and, after a brief glance, it looks like the FreeBSD port (/usr/ports/devel/fam) is not as powerful--in particular, FreeBSD apparently doesn't provide imon support (a way for the filesystem to make a callback to a usermode app like fam--no dnotify or anything similar, either, apparently). Which implies that it's probably just a heavier-weight way of doing the exact same thing--periodically stat'ing a list of files--and that there is no better solution available. Check the kevent(2) man page. It's a generic mechanism for having the kernel message your process when some condition occurs, such as modification of a file. Unfortunately other than knowing something happened, it doesn't tell you a great deal else, like who it was that made the alteration. And for a way to easily use this facility from shell scripts, check out sysutils/wait_on, in the ports tree. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Website up, then down, then up, etc.
On Sat, 25 Oct 2003 17:07:31 -0500 Charles Howse [EMAIL PROTECTED] wrote: Yes, the router has a web interface for configuration. It had been set to forward requests on port 80 to the webserver on port 80. That was working perfectly for over a year. I've now set it to port 8080, in and out, which is, of course, working. I have also enabled the DMZ, which, AFAIK, places the server outside the firewall, thereby eliminating it...? Now I've told apache to listen on port 80, no joy. Change back to 8080, perfect! Sorry if this is a shot in the dark, but are you sure the firmware in your router is up-to-date? Encountered a similar case once where this was the problem, so it might be worth checking out. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: isc-dhcp dyndns
On 15 Oct 2003 11:39:49 -0400 J. Seth Henry [EMAIL PROTECTED] wrote: Hello, I (finally) have my FBSD 4.8-REL internet gateway running, and have replaced my old Netgear router with the new machine. Everything works except for dynamic DNS updates. In fact, my Cisco ATA actually works BETTER through the new router :) I have found several dynDNS updater programs, but they all seem to get the new IP info from a hardware router's web interface (which I no longer have). Given that the router is now a *nix box, it would seem reasonable that this could be simplified. However, I noted on the dynDNS.org website that they discourage users from simply running scripts from the dhcp exit script. How is everyone else updating their dynamic DNS entries from a FreeBSD based gateway router? Hi Seth, I use ipcheck.py. It checks the output of 'ifconfig' to see if the public IP address has changed. I run it periodically from a cron script. It was a little painful to set up (entirely my own fault), but now that it's working it's essentially hassle-free. It handles both Dynamic DNS and Static DNS. Last I checked it was listed on www.dyndns.org and had a fairly high user-satisfaction score. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to get best results from FreeBSD-questions
On Fri, 3 Oct 2003 17:02:00 -0700 (PDT) [EMAIL PROTECTED] (Greg Lehey) wrote: How to get the best results from FreeBSD questions. === Last update $Date: 2003/03/09 22:09:31 $ [...] II: How to unsubscribe from FreeBSD-questions == When you subscribed to FreeBSD-questions, you got a welcome message from [EMAIL PROTECTED] [...] I don't mean to nitpick, but shouldn't this be [EMAIL PROTECTED] or [EMAIL PROTECTED] or something along those lines, nowadays? -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [OT] C question (typedef structs)
On Thu, 02 Oct 2003 11:54:39 -0400 Bill Moran [EMAIL PROTECTED] wrote: Hey gang, Hi Bill, Actually, 2 questions: 1) What's the difference between: struct customStruct { int RecID; char *Name; }; and typedef struct customStruct { int RecID; char *Name; }; The latter is incomplete. Try typedef struct customStruct { int RecID; char *Name; } MyCustomStruct; See also http://www.phim.unibe.ch/comp_doc/c_manual/C/SYNTAX/typedef.html -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: is there a freebsd live cd or boot floppy?
On Thu, 2 Oct 2003 09:55:02 -0700 (PDT) Daniel Elliott [EMAIL PROTECTED] wrote: is there a freebsd live cd or boot floppy? the reason i want a bootable freebsd cd/floppy is i dont want to reformat my hard drive or anything if you know what i mean. thx Check out http://www.freesbie.org/ -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing from POP3 server to IMAP server
On Tue, 30 Sep 2003 10:20:41 -0500 Gary [EMAIL PROTECTED] wrote: Hi Naveen, --On Tuesday, September 30, 2003 08:08:17 AM -0700 Naveen Glore [EMAIL PROTECTED] wrote: Hello, I understand that qmail is very secured than sendmail. Since these two are completly different from each other, is it difficult to change from sendmail to qmail? i would really appreciate if you could tell me where i can find proper documentation for it. I need documentation which explains how to change sendmail MTA to qmail. All the info you will ever need is at www.lifewithqmail.org ...except for some FreeBSD-specific info :) Here are some tips: 1) FreeBSD uses a MTA wrapper which makes your mailer *look* like sendmail, regardless of what your mailer actually is. This wrapper is located at /etc/mail/mailer.conf. Mine looks like: sendmail/var/qmail/bin/sendmail send-mail /var/qmail/bin/sendmail mailq /var/qmail/bin/qmail-qread newaliases /var/qmail/bin/newaliases This makes setting up non-sendmail mailers quite a bit easier. IIRC the PORT_NOTES file in the qmail port has more information about this. 2) Use sendmail_enable=NONE in your rc.conf file to completely disable sendmail, once you have qmail up and running. 3) Don't worry about ucspi-tcp and daemontools to start out with - qmail will work with inetd, it will just run nicer with ucspi-tcp and daemontools. So you can migrate to those tools after you become comfortable with qmail - you don't have to do it all at once. HTH, and good luck. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing from POP3 server to IMAP server
On Tue, 30 Sep 2003 09:31:38 -0700 (PDT) Naveen Glore [EMAIL PROTECTED] wrote: Hello, Hi, I have FreeBSD 4.5 version in my server. Now if i install qmail from the ports, i guess it will install the latest version and do you think i will have some kind of problem with it. Do i need to upgrade my freeeBSD first before migrating to qmail?. No, qmail is very good at working with any kind of system, even older ones - it doesn't rely on new features - so I don't see why it wouldn't work with 4.5. But you might want to upgrade to RELENG_4_8 anyway, just to make sure the rest of your system is up to date with the latest FreeBSD bugfixes. Thanks, Naveen No problem. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing from POP3 server to IMAP server
On Tue, 30 Sep 2003 11:29:32 -0500 Gary [EMAIL PROTECTED] wrote: On Tue, Sep 30, 2003 at 09:02:22AM -0700 or thereabouts, Chris Pressey wrote: ...except for some FreeBSD-specific info :) Here are some tips: 1) FreeBSD uses a MTA wrapper which makes your mailer *look* like sendmail, regardless of what your mailer actually is. This wrapper is located at /etc/mail/mailer.conf. Mine looks like: sendmail/var/qmail/bin/sendmail send-mail /var/qmail/bin/sendmail mailq /var/qmail/bin/qmail-qread newaliases /var/qmail/bin/newaliases Since qmail has a sendmail wrapper to begin with, as noted above, and it is put in as a replacement (marking the original to sendmail.old), in/usr/lib/sendmail, and /usr/sbin/sendmail why would you need the above in mailer.conf? You don't strictly need it, of course, but I find that FreeBSD's MTA wrapper is easier to use - it wasn't written just for qmail, and it doesn't involve directly messing with the sendmail executable. This makes setting up non-sendmail mailers quite a bit easier. IIRC the PORT_NOTES file in the qmail port has more information about this. Any non-sendmail mailer, I am assuming you mean those which require the input of an actual SMTP source, can of course be set for SMTP as localhost, 127.0.0.1, or the actual LAN IP address. Er - you mean running two different MTA's on different interfaces on the same machine? Sure, I guess you could do that, if you wanted... but I'm just referring to how FreeBSD's MTA wrapper lets you switch between sendmail, qmail, and any other sendmail-compatible MTA (say, Postfix) without too much effort. BTW, the actual example script given on lifewithqmail.org for creating groups and users for qmail, is for FreeBSD. Good to know. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install Trouble
On Tue, 30 Sep 2003 14:53:22 -0400 Tim Hawes [EMAIL PROTECTED] wrote: OK, I disabled the serial ports and the install went fine. I did not need to disable plug and play. I am now having difficulty getting the ethernet card working It seems to detect that I have a RealTek 8139 card (which is correct). Here is what dmesg returns: rl0: RealTek 8139 10/100BaseTX port 0xec00-0xecff mem 0xd3001000-0xd30010ff irq 11 at device 15.0 on pci0 rl0: Realtek 8139B detected. Warning, this may be unstable in autoselect mode rl0: couldn't map interrupt device_probe_and_attach: rl0 attach returned 6 I also noticed this just before the ethernet card: pci0: multimedia, audio at device 2.7 (no driver attached) sio0: SmartLink 5634PCV SurfRider port 0xe800-0xe807 irq 11 at device 7.0 on pci0 sio0: moving to sio4 sio4: type 16550A So, I guess FreeBSD does not do plug and play, and what I have is an irq conflict? Looks like that, yes. It seems odd that it would detect sio0 when the serial ports are disabled in the BIOS. Did you re-enable them after install? Beyond that - I'm kind of out of my league. If your BIOS lets you change the IRQ for the serial port, you could try that. But someone more experienced with this could probably give you a better solution. -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install Trouble
On Mon, 29 Sep 2003 13:10:14 -0400 Tim Hawes [EMAIL PROTECTED] wrote: Booting in verbose mode did not seem to be telling. Just that it stops after setting up the /dev/cua devices. I have tried to disable loading drivers for different hardware, including the serial devices, the nic card, etc (no SCSI). Have you tried disabling the serial ports from the BIOS? Not the best solution, but if you don't need them, well, FreeBSD can't choke on something it can't see :) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]