Re: and the winner is...
Mario Carugno wrote: I there, i was trying freebsd for a while, and comparing it against debian/linux. The winner was Debian by far... Freebsd could be stable, but it is not faster... and Debian is far much more 'usable'. Freebsd package installation is very laborious compared with Debian's apt system. I have to search in each CD, know dependences,... X configuration is hard too when the autodetected configuration doesn't works... I think fbsd is good, but needs some user facilities. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Lame. Care to actually _back up_ your statement with something substantial? cvsup and ports is the best package management system I've seen yet in it generally 'just works right.' That statement is made with 12 years of Linux experience, as well as Solaris and other *nixes. For a server system, FreeBSD is really hard to beat. The closest might be Gentoo, but their portage (based on BSD ports) system isn't as consistently stable as BSD ports (meaning things break more often). As it's not a _great_ idea IMO to even have build tools (gcc and toolchain) on a production server, it's not a bad idea to have a seperate build host somewhere, but that applies equally to any system, and you also have the option to go with binary packages. Let me know how the following goes for you with Deb or other Linux distro besides gentoo- install PHP or apache with _only_ the options that you want/need. Oh rightyou can't, without compiling from source, at which point you've lost your 'package management.' Oops? Read the Handbook, try to get enough of a clue to understand it, use it for a month, and then come back with a statement you can back up. Otherwisepiss off. The only 'real' gripes I've got with FreeBSD are: a. thread performance - from what I've seen, still lags behind Linux (mysql benchmarks show this to be true at leat for 5-STABLE). b. desktop BSD 'out of box experience'- mixed, as BSD is primarily a server OS, but with 'roll your own' capabilities...oh, and there are now two 'desktop BSD' type projects. So not really a gripe, but can see someone complaining about it a bit, if they don't find the Dekstop BSD project. c. security patch notification system (may exist now?). Yes, you can get emails from the security ML, but now quite the same as for example, 'smpatch analyze' on Solaris 9/10. This could be argued that's _exactly_ what rel-STABLE is, however, so again, not a real issue, although a user friendly (for people using as a desktop OS) tool would be of benefit. Geeze, compared to my gripes against Linux and *nix distros. these are really pretty damned trivial. If thread performance comes up to par with Linux, FreeBSD has a very good chance of becoming my choice for 'personal *nix' (ie, my primary workstation, laptops, etc) over Gentoo. Scott ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sun box
Hexren wrote: KC Hi there KC Two very simple questions, can I run FreeBSD on a Sun box and is it possible to run BSD on VMware KC Kim KC ___ KC [EMAIL PROTECTED] mailing list KC http://lists.freebsd.org/mailman/listinfo/freebsd-questions KC To unsubscribe, send any mail to [EMAIL PROTECTED] - I dunno about the SunBox but VMware is possible. Currently I run FreeBSD 4.10 in a VMware Workstation Version 4.0.5. The machine hosting the Virtual Machine is running Windows XP. Though I must admit I wasn't able to bring a FreeBSD Version greater than 4.10 to work in the VM.(I only tried 5.2.1) Hexren I've had 5-CURRENT (around 5.1.X at the time) running without issues under VMWare. There are one or two configuration gotchas which can be found on the VMWare support forum site or googledadding back in a 'FreeBSD' token basically for the OS type...which is virtually the same as the existing Linux OS config... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Rxvt replacement?
Peter Schuller wrote: Is there any other xterm replacement which is small like rxvt? Or at least smaller than xterm. Grepping around the ports tree i found 'wterm' which is supposedly a fork/branch of rxvt (haven't tried it yet). There's also aterm (also forked off rxvt apparantly). aterm is great- half the footprint or better of XTerm, with working transparency/shading if that's your thing. I _think_ wterm is also an rxvt derivative, so either one should be close in footprint... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compiling Packages
Kevin D. Kinsey, DaleCo, S.P. wrote: Kris Kennaway wrote: On Wed, Mar 10, 2004 at 05:44:14AM -0500, Gerard Seibert wrote: A few days ago, I posted that packages are not as current as ports are on FreeBSD. When I made that statement, someone, I forget whom, claimed that they need more machines to compile the code and wanted to know if I wanted to donate, or words to that affect. In any case, would that refer to donating an actual computer, or simply donating computer time? I have three computers, only one running FreeBSD at this time. I certainly am not going to give away any of my computers, but I would be willing to share time on one of them if that would help. What would be useful is multiple (e.g. at least half a dozen) fast machines with good network connectivity. Individual machines aren't much help, I'm afraid. Thanks for the offer though. kris Sorry to jump in both uninvited, and late...and, to boot, with just so much theoretical hogwash; I thought it might be of interest to the discussion at hand. I've been getting more interested in clustering. With all the hoopla (as it were) about BSD clusters, would one fast cluster do this task? (i.e., could you build packages over MPI?) Not that I have 'em, but my server farm is growing faster than my hosting business... and I'm hoping to get situated with a faster connection soon. Heh, if it can work that way, maybe we should beg from Matt or Brooks? :-D Kevin Kinsey DaleCo, S.P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Unless something _huge_ has changed fundamentally in the way MPI is implemented- nope, it wouldn't help, without huge amounts of work. Did a development project years ago that looked like a cluster would be useful, but it was for an existing app- which would have been quite a bit of work to segregate tasks into easily distributed 'chunks.' Something along the lines of 'distcc' would likely be of more immediate use for a compile farm... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: calling xterm under KDE
Ed Budd wrote: On Sat, 6 Mar 2004 19:14:13 +0800 Stephen Liu [EMAIL PROTECTED] wrote: - snip - You can add the fontsize as a parameter when you invoke it, like this: xterm -fn fontsize I use 'xterm -fn 9x15' on a high res monitor and set it (along with some other params) in my window manager (blackbox) menu config. Hi Ed, Where can I find window manager? From 'Control Center' ok KDE? # menu config menu: Command not found. # menuconfig menuconfig: Command not found Kindly advise. TIA B.R. Stephen Liu You probably can't. As I am using the term, window manager is not an applet but a reference to whatever you happen to be using to control graphical window behavior on your desktop. It looks like your window manager is KDE (which also happens to provide other services so is called a desktop environment to denote these additional features). My window manager is called blackbox which has a simple menu configuration file where I can input a line for xterm and conveniently call it through an item on a neat little pull-up menu. For you I would suggest that you create a shortcut on your desktop. You'll need to check with the KDE documentation since I don't actually use it but it's probably as simple as right-clicking the desktop with your mouse and choosing new or something like that and then through properties type in the full command you want your new shortcut icon to invoke. EB ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] You can do this pretty easily in KDE- right click on the Panel, go to Add/Special Button/Non-KDE Application, which will open a file browser. navigate to the xterm binary, and then pass the options to it, in this case for fonts. You can also create a resource file to set the defaults for font sizes and others, then source it via xrdb resource file. Most of the *term programs are all considered XTerm derivatives, so will honor their resource hints. I missed the start of this thread, but running a seriously 'heavy-weight' Window Manager/Desktop Environment like KDE and then a less resource intensive console seems a bit odd...but I'd suggest taking a look at aterm- it's a derivative of rxvt, less than half the footprint of xterm (which is less than half the size of 'konsole' already), supports transparency if that's your thing... A sample .Xresources (can be named anything, but needs to be sourced via .xinitrc or other X startup means), could look like: Xterm*loginShell: true XTerm*scrollBar: true XTerm*saveLines:1500 XTerm*background: black XTerm*foreground: white aterm*transparent: true aterm*transpscrollbar: true #aterm*tinting: light blue aterm*foreground: white aterm*shading: 40 They could actually be changed to: *term*loginShell: true *term*scrollBar: true etc etc and thus affect both XTerm and aterm both explicitly, but aterm in this case will still honor the XTerm* settings unless overridden via an equal aterm* setting. You can also set the default fonts and or sizes as well... Blackbox is pretty slick as a minimal WM, although I've got to say I never got Rox-Filer working as expected, one of the few things I begrudgingly miss from the KDE apps (konqueror, even if it is sort of a pig on resources). Blackbox does however, fix one of the only other issues of the 'desktop environments' (GNOME, KDE) that I've come to like- tabbed consoles. If Rox-Filer or another app could replace close to konqueror functionality, and perhaps offer a decent panel app (the slit is nice, but I don't like their pager/panel much), I'd likely be able to remove the KDE libs from all my systems happily ;-) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 1 processor vs. 2
Stefan Cars wrote: Ok. In this case the costs isn't really a problem, so both read and write will be faster with two disks in a RAID1 vs. three disks in a RAID 5 ? I've read that RAID5 would be faster in read ? Short answer- it depends. Bear in mind that there are some controllers that will do RAID-0(striping) or RAID-1(mirroring)- these generally come without cache on the controller, which is a huge hit for most cases, especially if you enable write-back cache, which will return from the write operation(s) once it's commited to _cache_ and not nescessarily to disk. If you're talking similar number of disks versus previous example of simple 2 disk mirror versus 10-disk RAID-5, reads will become signficantly faster due to the increased number of spindles in the array. I've done a fair amount of testing here- stripe size and cache size can be important, but disk I/O is ultimately limited by a large factor to the number of drive spindles in use. In theory, and for a low amount of writes, the overhead for RAID-1/mirroring is relatively low, but may increase under high load with a large amount of data being written. For the same number of _useable_ disks, RAID-5 is slower due to having to calculate parity (read useable disks as using the same hard drives, same capacity and specs, to wind up at the same amount of useable storage). Scott / Stefan On Wed, 3 Mar 2004, Matthew Seaman wrote: On Wed, Mar 03, 2004 at 10:26:43PM +0100, Stefan Cars wrote: Okey, but if you would compare RAID-1 on two disks compared to RAID-5 on three disks then ? What would be the faster ? RAID1 is going to be faster, both reading and writing, but it will take a lot more raw disk space to provide the required usable space. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK -- Stefan Cars Snowfall Communications Tel: +46 (0)18 430 80 50 - Direct: +46 (0)18 430 80 51 Mobile: +46 (0)708 44 36 00 - Fax: +46 (0)708 44 36 04 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 1 processor vs. 2
Stefan Cars wrote: Hi! Following up on this I'm also looking into buying some servers and have the almost the same scenario, a MySQL DB together with apache with mod_perl and embperl, (alot of SQL and dynamic content). Would we be better off with: Dual Xeon, 2.4 GHZ with 2GB of RAM or Xeon 3.0 GHZ with 2GB of RAM and RAID-1 on three disks or RAID-5 on three disks. Will the difference between 2.4 and 3.0 really do that much ? Isn't the SMP system better. Kind Regards, Stefan Cars With that small a difference in CPU speed for the purpose you state, I'd definitely go with the dual 2.4 Xeon setup. Unless the FreeHSD SMP implemetation is _really_ bad, which I haven't seen any indication of at all, the SMP system will perform better when you're going to have multiple relatively heavy duty processes and threads running at once, as in the case of a web server with dynamic content hitting a database. Someone commented on RAID-5 with 3 disks being useless- it isn't, but most setups have at least a hot spare designated, and some vendors (IBM, unsure of others offhand) also 'extend' RAID-5 to include the hot spare in different methods (ie RAID-5E, RAID-5EE). Some relatively experienced comments on your config- Add more disk if possible. A striped (2x disk) OS dedicated disk will improve performance a bit, but you'd probably do better using seperate physical disks (or logical RAID volumes but comprised of different physical disks) between the database and the web content, resulting in less I/O contention between the two (web server and DB). RAID-1 across 3 disks is a bit of overkill IMHO, as you're still limited to a bit less than the throughput for a single disk. Use a single disk (or striped pair) for the OS (seperate disk for swap if you anticipate heavy swapping), a RAID-1 mirror for the Database data/files, and another disk for web content. If the content is reasonably unchanging, (the HTML), or you have the content in a source control or content management system, then the DB data is arguably more important so should get the RAID redundancy...then just back up the HTML and web content regularly, or perhaps snapshot it to spare space on the RAID volume nightly. That woould be something along the lines of: Vol 1 (non-RAID or RAID-0 striped of $ allows, so single or dual disks)- FreeBSD Vol 2 - web content. Single disk or RAID-1 mirror, again depending on $ Vol 3 - DB content. RAID-1 mirror, only for DB use. If heavy swapping is expected, then allocate swap space on one of the other disks, but it will obviously affect performance. Do NOT use a single RAID-5 for both web and DB, unless performance is secondary- you _will_ see high amounts of I/O wait states as the server becomes more loaded. If $ allowed, making each RAID-5 or RAID-1 but using seperate physical disks for each volume would be ideal..some RAID hardware and/or software allow you to span different types of RAID configurations across the same disks, which is great for the budget (ie 3 physical disks, but having a RAID-1 volume across _parts_ of two physical disks, and the rest being a RAID-5 volume), but again, you'll eventually run into disk seek and I/O issues... Scott On Tue, 2 Mar 2004, Scott W wrote: Joseph Koenig wrote: I'm putting together a system that will host a relatively small database (around 20,000 records), as well as run Apache / PHP to search that database. I have the option in front of me to use a P III dual 1GHz machine with a SCSI Raid 5, or to use a single P4 2.8 GHz with a SCSI Raid 1. Both have 1GB RAM. I'm looking to use MySQL as the DB. The site that this machine will host gets about 2 million hits per months (yes, hits, not pageviews or visitors) from about 21,000 unique visitors. Does anyone have an opinion as to which machine will perform best under this scenario? Obviously, both would run FreeBSD. Thanks, Joe Koenig Production Manager jWeb New Media Design [EMAIL PROTECTED] http://www.jwebmedia.com/ 636.928.3162 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Someone else already mentioned this, but RAID-1 will be faster than the RAID-5 at the storage level, if the RAID-5 array is a relatively small # of drives. If you're talking about 2 disk RAID-1 versus 10 disks RAID-5, those numbers may change. If the drives are integrated into the systems, it's also possible the RAID-1 disks are faster drives than the RAID-5 drives... If you're going to run the DB and web server on the same system with a high percentage of static pages, the SMP system may help out. If you have almost all dynamic content is full of complex DB queries, the P4 would do better based solely on CPU speed. How about RAID-1 on the dual PIII and keep the P4 as a workstation? :-) The PIII is likely up to the task, but it really depends on the type of content
Re: Can one compile khello.cc ?
Charles McManis wrote: Ok, so this is now officially weird. I decided to try to compile khello.cc from the KDE tutorial on my 4.8 system that has never had me attempt to upgrade KDE on it. When I compile khello.cc, it compiles fine, when I link it I get this: -snip ddp% make g++ -o khello -R/usr/X11R6/lib -L/usr/local/lib/kde3/ -L/usr/local/lib -L/usr/X11R6/lib -lqt-mt -pthread -lkdeui -lkdecore -lXft khello.o /usr/local/gnu/lib/gcc-lib/i386-unknown-freebsd4.8/3.2.3/../../../../i386-unknown-freebsd4.8/bin/ld: warning: libstdc++.so.3, needed by /usr/X11R6/lib/libqt-mt.so, may conflict with libstdc++.so.5 /usr/lib/libc.so.4: WARNING! setkey(3) not present in the system! /usr/lib/libc.so.4: warning: this program uses gets(), which is unsafe. /usr/lib/libc.so.4: warning: mktemp() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so.4: WARNING! des_setkey(3) not present in the system! /usr/lib/libc.so.4: WARNING! encrypt(3) not present in the system! /usr/lib/libc.so.4: warning: tmpnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so.4: warning: this program uses f_prealloc(), which is not recommended. /usr/lib/libc.so.4: WARNING! des_cipher(3) not present in the system! /usr/lib/libc.so.4: warning: tempnam() possibly used unsafely; consider using mkstemp() khello.o(.text+0x2b): In function `main': : undefined reference to `QCString::QCString[in-charge](char const*)' khello.o(.text+0x48): In function `main': : undefined reference to `KApplication::KApplication[in-charge](int, char**, QCString const, bool, bool)' khello.o(.text+0x68): In function `main': : undefined reference to `QCString::~QCString [in-charge]()' khello.o(.text+0x8e): In function `main': : undefined reference to `QCString::~QCString [in-charge]()' khello.o(.text+0xc2): In function `main': : undefined reference to `KMainWindow::KMainWindow[in-charge](QWidget*, char const*, unsigned)' khello.o(.text+0x16e): In function `main': : undefined reference to `QApplication::setMainWidget(QWidget*)' khello.o(.text+0x19d): In function `main': : undefined reference to `QApplication::exec()' khello.o(.text+0x1b1): In function `main': : undefined reference to `KApplication::~KApplication [in-charge]()' khello.o(.text+0x1d7): In function `main': : undefined reference to `KApplication::~KApplication [in-charge]()' collect2: ld returned 1 exit status make: *** [khello] Error 1 ddp% - So what am I missing? --Chuck ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] If you have a pointer to the KDE tutorial/code you're using, may be of more help, but here's a quick 'khello' program, step by step: [EMAIL PROTECTED] KDETutorial]$ cat main.cc #include qapplication.h #include qpushbutton.h int main(int argc, char **argv) { QApplication app( argc, argv ); QPushButton *hello=new QPushButton( Hello world!, 0 ); hello-resize(200, 30 ); QObject::connect(hello, SIGNAL(clicked()), app, SLOT(quit()) ); app.setMainWidget(hello); hello-show(); return app.exec(); } [EMAIL PROTECTED] KDETutorial]$ g++ main.cc main.cc:1:26: qapplication.h: No such file or directory main.cc:2:25: qpushbutton.h: No such file or directory main.cc: In function `int main(int, char**)': main.cc:7: `QApplication' undeclared (first use this function) main.cc:7: (Each undeclared identifier is reported only once for each function it appears in.) main.cc:7: syntax error before `(' token main.cc:9: `QPushButton' undeclared (first use this function) main.cc:9: `hello' undeclared (first use this function) main.cc:9: syntax error before `(' token main.cc:12: `QObject' undeclared (first use this function) main.cc:12: syntax error before `::' token main.cc:17: `app' undeclared (first use this function) We're missing the header location in our include path (because we didn't specify one), so let's find it: [EMAIL PROTECTED] KDETutorial]$ locate qapplication.h /usr/share/doc/qt-devel-3.1.2/html/qapplication.html /usr/lib/qt-3.1/include/qapplication.h The latter is the one we need, so feed the path as an include path to g++ via the -I switch: [EMAIL PROTECTED] KDETutorial]$ g++ main.cc -I /usr/lib/qt-3.1/include /tmp/ccC2zAn3.o(.text+0x23): In function `main': : undefined reference to `QApplication::QApplication[in-charge](int, char**)' /tmp/ccC2zAn3.o(.text+0x52): In function `main': : undefined reference to `QString::QString[in-charge](char const*)' /tmp/ccC2zAn3.o(.text+0x61): In function `main': : undefined reference to `QPushButton::QPushButton[in-charge](QString const, QWidget*, char const*)' /tmp/ccC2zAn3.o(.text+0x12c): In
Re: 1 processor vs. 2
Joseph Koenig wrote: I'm putting together a system that will host a relatively small database (around 20,000 records), as well as run Apache / PHP to search that database. I have the option in front of me to use a P III dual 1GHz machine with a SCSI Raid 5, or to use a single P4 2.8 GHz with a SCSI Raid 1. Both have 1GB RAM. I'm looking to use MySQL as the DB. The site that this machine will host gets about 2 million hits per months (yes, hits, not pageviews or visitors) from about 21,000 unique visitors. Does anyone have an opinion as to which machine will perform best under this scenario? Obviously, both would run FreeBSD. Thanks, Joe Koenig Production Manager jWeb New Media Design [EMAIL PROTECTED] http://www.jwebmedia.com/ 636.928.3162 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Someone else already mentioned this, but RAID-1 will be faster than the RAID-5 at the storage level, if the RAID-5 array is a relatively small # of drives. If you're talking about 2 disk RAID-1 versus 10 disks RAID-5, those numbers may change. If the drives are integrated into the systems, it's also possible the RAID-1 disks are faster drives than the RAID-5 drives... If you're going to run the DB and web server on the same system with a high percentage of static pages, the SMP system may help out. If you have almost all dynamic content is full of complex DB queries, the P4 would do better based solely on CPU speed. How about RAID-1 on the dual PIII and keep the P4 as a workstation? :-) The PIII is likely up to the task, but it really depends on the type of content (is _everything_ PHP generating dynamic content, every page hitting the DB etc?) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: BSD on machines with RAID
Jagadish N Vajha wrote: Hi, I would like to know if its possible to run Free BSD on IBM machines with a RAID controller (SCSI hard drives are used). I have tried installing it but the system keeps on freezing continuously during setup, the same system works perfectly with other OS's. Please let me know if anyone has a solution for this. Regards, Jagadish _ Skin is in! Bollywood is sizzling. [1]Check out these hot pics! References 1. http://g.msn.com/8HMAENIN/2749??PS= ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Works fine, although it appears that the ips driver seems to want the 5.11 firmware on the ServeRAID card, instead of the newer 6.X series. I did some trivial digging into the ips source but didn't see any specific comments or macros defining a desired firmware level, but 5.11 firmware works fine for me, whereas I know a few people have seemed to have problems, possibly due to firmware and drive incompatibility (I currently work at IBM and can say definitively 5.11 and 6.X firmware and drivers do not want to play together...) Scott IBM 4500R ServeRAID 3L 5.11 firmware 2x striped system drives FreeBSD current, working fine since 5.1-BETA ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Search Path in bash2
Peter Risdon wrote: Martin McCormick wrote: I am trying to modify the execution path on a FreeBSD system for all the bash2 users on that system. The man page says that default path is system-dependent, and is set by the administrator who installs bash.A common value is ``/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin:.''. How do I set, or in this case, reset it? The man page also says: When bash is invoked as an interactive login shell, or as a non-inter- active shell with the --login option, it first reads and executes com- mands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior. But so far as I have seen, at least on FreeBSD, /etc/profile does not generally contain path info. This is normally set in ~/.profile and the default contains something like this: # remove /usr/games and /usr/X11R6/bin if you want PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/ bin:$HOME/bin; export PATH So my guess is that to conform closely to this way of doing things, add the path to each user's ~/.profile and also to /usr/share/skel/dot.profile so it is there immediately for new users. Alternatively, unless someone contradicts this, the man page seems to suggest you could add a path to /etc/profile and it would then be system-wide. I have never done this myself, though, so can't vouch for it whereas I have edited ~/.profile frequently. HTH. PWR. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] You can add any environment vars you'd like to /etc/profile- this is still the preferred method for some cases...for example, if you're the sysadmin for a project group that all needs additional software that may have been installed in the /usr/local/somewhere/bin tree, instead of binaries in /usr/local/bin. So if it's assumed that all users will need a given PATH, add it to /etc/profile. If it's a per user addition, add it in ~/.bash_profile.. There are a mixture of other ways to do this, with the 'new thing' being application dependent env vars (LD_LIBRARY_PATH, PATH, etc)- in Linux, this is generally done via /etc/profile.d/appname.sh, but is not generally used for correcting user-owned variables. So in other words, /etc/profile is fine ;-) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NFS server usage
Charles Swiger wrote: On Feb 26, 2004, at 4:57 PM, Michael Conlen wrote: [ ... ] The production system will use dual channel U320 RAID controllers with 12 disks per channel, so disk shouldn't be an issue, and it will connect with GigE, so network is plenty fine, now I'm on to CPU. Sounds like you've gotten nice hardware. Four or so years ago, I built out a roughly comparible fileserver [modulo the progess in technology since then] on a Sun E450, which housed 10 SCA-form-factor disks over 5 UW SCSI channels (using 64-bit PCI and backplane, though), and could have held a total of 20 disks if I'd filled it. I mention this because... Low volume tests with live data indicate low CPU usage however when I best fit the graph it's dificult to tell how linear (or non linear) the data is. [ ... ] Does that kind of curve look accurate to you (anyone)? ...even under stress testing on the faster four-disk RAID-10 volume using SEAGATE-ST336752LC drives (15K RPM, 8MB cache), each on a seperate channel, with ~35 client machines bashing away, the fileserver would bottleneck on disk I/O without more than maybe 10% or 15% CPU load, and that was using a 400MHz CPU. The notion that an NFS fileserver is going to end up CPU-bound simply doesn't match my experience or my expectations. If you have single-threaded sequential I/O patterns (like running dd, or maybe a database), you'll bottleneck on the interface or maximum disk throughput, otherwise even with ~3.5 ms seek times, multi-threaded I/O from a buncha clients will require the disk heads to move around so much that you bottleneck at a certain number of I/O operations per second per disk, rather than a given bandwidth per disk. Just to add a few .02 cents. Experience has shown pretty much the same as mentioned. I've done some fileserving performance benchmarks (more than I want to count) a while back for a company that was working on a new fileserver 'appliance' system like a lower end to midrange NetApp. Once your network bandwidth was taken care of (meaning enough bandwidth to handle incoming requests), the bottlenecks inevitably were disk I/O- note that this was not always nescessarily indicating adding more disks- if you have a few dozen disks hanging off a dual channel SCSI or RAID card, the actual bottleneck could be the bus the card is plugged into, or the bus speed/bandwidth, so splitting the load across multiple cards (and buses if possible) can be the culprit instead of adding more disk. Other things worth looking at are buffer sizes, both for system and TCP/IP, as well as mount options for NFS shares- if your NFS server is using battery batcked up cache, and is also on a UPS, you definately want to use async in your mount options from clients to speed things up significantly. read and write buffer sizes seem to do best nowadays (huge generalization, but seems to be true for different systems and *NIX OSes I have currently) is somewhere in the 32k-64k range (rsize/wsize client options). One thing that may be worth something as well is the disk throughput itself- on an U320 interface, if you're loaded with 15 disks per channel, it _may_ be bottlenecking the U320 bus at that point. I don't have currently valid numbers on what realistic sustained output is for U320, but I'm sure it can be googled easily enough- I'd expect sustained transfer to be on the order of ~160MB/sec, which is fairly likely to be saturated with 10 or fewer disks. Lastly, you're almost always better, if you can afford the hardware, to handle different types of access via different controllers- in other words, if you are going to be handling mail, web, user home, and a database over NFS or SMB, break them up into individual filesystems, preferably on their own channel and disks, opposed to combining. (This is ignoring the fact that mail, apache, and DBs should really be served by local disk, but as an obvious example.) This is actually just a re-statement of the previous posters comment about disk I/O from many clients moving the heads around, but is certainly true.. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: seeking shell scripting resources
Marty Landman wrote: I'm new to running my own unix systems and would like to start learning the ropes on shell scripting. I've looked at the handbook and a few other sources... maybe haven't looked closely enough. Any recommendations on more involved manuals/explanations/examples of how shell scripts should be developed and used? Marty Landman Face 2 Interface Inc 845-679-9387 This Month's New Quiz --- Past Superbowl Winners Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hi Marty. There are a few tutorials out there, but I haven't seen any really good or 'complete' ones online. (There may be some, but from memory I don't remember finding any). If you're going to use Bash, give the O'Reilly 'Learning the Bash Shell' book a shot. Another one that does cover other shells is called either 'Unix Shells' or 'Unix Scripting' (don't recall which and it's at work..), which was published 2003 IIRC. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 5.2.1-RC1 and RC2
ian j hart wrote: On Monday 16 February 2004 3:16 am, Kent Stewart wrote: On Sunday 15 February 2004 07:04 pm, Chris wrote: On Sunday 15 February 2004 09:00 pm, Thomas T. Veldhouse wrote: Chris wrote: Is is me? Or has something changed in 5.2 that tends to make systems freeze up during portupgrade? Mainly - KDE-3.2.0 That being said, I seem to be seeing this more often on other upgrades. Strange thing is, I considered it to be my PC however, I never seem to run into the total freeze when doing a buildworld. No trouble here upgrading 5.2 to current on my desktop and no trouble upgrading my 5.2p1 to 5.2RC2 on my server. I suspect your problem is hardware or driver related. Tom Veldhouse Tom, My upgrades (5.2.1 - 5.2.1-RC1 - 5.2.1-RC2) went flawless. The issues I'm having is during portupgrade. Kent, Interesting - I did as you advised. I am typically running between 113 and 125 degrees (F) My AMD did come with a fan. Perchance I ought to look into alternative cooling? Mine ran like that for 53 weeks. The warranty was for 52. When it died, it litterally blew one of the voltage regulator ICs on the motherboard. All I saw was a flash of light at the same time as a loud bang and the top right corner of the IC disappeared. Out was towards me but I didn't feel it hit nor could I find it. Much as I love AMD, I would have to agree about the fans. I bought boxed CPUs with fans as I expected that this would provide the right level of cooling (and reliability). IIRC the warranty was 2 years. When the first one went wobbly I replaced the lot. It's just not worth taking the chance. To the OP, re temperatures. I wouldn't rely too much on what other peoples systems report. The actual temperature of the CPU is going to depend on the speed and CPU core architecture (and maybe the BIOS) vs the ambient temp/cooling. This is as opposed to the temperature reported. The accuracy is going vary with method (chip) which means, which M/B. I somehow doubt the sensors are individually calibrated against a lab standard. If you can find somone with the same CPU/Motherboard, those numbers would be slightly more useful. As a counter example my 2100+/Gigabyte GA-VTXE+ (BIOS F6a) sits at 54C idle and around 60C when busy. It's perfectly stable (on stable, not current). [With fvcool idle temp = 30C] If I forget to clean the filters, the temperature will rise, and the system becomes increasingly unstable. A few degrees increase is enough. My advice is to clean any filters, fans and heatsinks and check the fans spin correctly. If the box runs cooler, note the temperature for future reference. The current fans look like the Antec fans you can see in a Circuit City or Best Buy. You can mail order them but I think I would buy one sooner than that :). You have been having problems for quite a while now and that may be what is going on. Kent Just another 'me too' on the lousy ^$#(# AMD supplied Athlon fans. Had a dual AMD 1800+ setup with OE/Retail AMD fans, system less than a year old, actually purchased from a company that went under, so the system sat idle for a good part of that year. Ran it for about a month, CPU fan failure, one _very_ cooked Athlon MP 1800+ CPU later...was cheaper to buy a pair of MP 2000+ off eBay than a new (or used) 1800+ CPU, but went ahead and spent the $ on ThermalTake Silent Boost fans- I don't overclock server systems, but they _are_ quiet by comparison, and are basically 80mm case fans with copper heat sink. Both (replacement) CPUs I think I paid $140 for, and ~$50 for the fans, so it's a fair amount of $ by comparison, but have used TT fans in the past and haven't had one die on me yet. Probably overkill, but lose a few CPUs (PIII CPUs seem to be able to survive a CPU fan failure, P4 and Xeons generally survive, but AMD chips will cook themselves in a heartbeat!) and it'll seem worth the few extra $$.. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 5.2.1-RC1 and RC2
ian j hart wrote: On Monday 16 February 2004 3:16 am, Kent Stewart wrote: On Sunday 15 February 2004 07:04 pm, Chris wrote: On Sunday 15 February 2004 09:00 pm, Thomas T. Veldhouse wrote: Chris wrote: Is is me? Or has something changed in 5.2 that tends to make systems freeze up during portupgrade? Mainly - KDE-3.2.0 That being said, I seem to be seeing this more often on other upgrades. Strange thing is, I considered it to be my PC however, I never seem to run into the total freeze when doing a buildworld. No trouble here upgrading 5.2 to current on my desktop and no trouble upgrading my 5.2p1 to 5.2RC2 on my server. I suspect your problem is hardware or driver related. Tom Veldhouse Tom, My upgrades (5.2.1 - 5.2.1-RC1 - 5.2.1-RC2) went flawless. The issues I'm having is during portupgrade. Kent, Interesting - I did as you advised. I am typically running between 113 and 125 degrees (F) My AMD did come with a fan. Perchance I ought to look into alternative cooling? Mine ran like that for 53 weeks. The warranty was for 52. When it died, it litterally blew one of the voltage regulator ICs on the motherboard. All I saw was a flash of light at the same time as a loud bang and the top right corner of the IC disappeared. Out was towards me but I didn't feel it hit nor could I find it. Much as I love AMD, I would have to agree about the fans. I bought boxed CPUs with fans as I expected that this would provide the right level of cooling (and reliability). IIRC the warranty was 2 years. When the first one went wobbly I replaced the lot. It's just not worth taking the chance. To the OP, re temperatures. I wouldn't rely too much on what other peoples systems report. The actual temperature of the CPU is going to depend on the speed and CPU core architecture (and maybe the BIOS) vs the ambient temp/cooling. This is as opposed to the temperature reported. The accuracy is going vary with method (chip) which means, which M/B. I somehow doubt the sensors are individually calibrated against a lab standard. If you can find somone with the same CPU/Motherboard, those numbers would be slightly more useful. As a counter example my 2100+/Gigabyte GA-VTXE+ (BIOS F6a) sits at 54C idle and around 60C when busy. It's perfectly stable (on stable, not current). [With fvcool idle temp = 30C] If I forget to clean the filters, the temperature will rise, and the system becomes increasingly unstable. A few degrees increase is enough. My advice is to clean any filters, fans and heatsinks and check the fans spin correctly. If the box runs cooler, note the temperature for future reference. The current fans look like the Antec fans you can see in a Circuit City or Best Buy. You can mail order them but I think I would buy one sooner than that :). You have been having problems for quite a while now and that may be what is going on. Kent Oops, forgot to add on last post...in case anyone is looking for CPU temps..I've monitored a _lot_ of CPU temps on different systems, and the previous poster is right- different systems definitely run at different CPU temps, even with the same CPU and CPU fans, and I'd also question the CPU and MB temps themselves within ~5* as far as being 'accurate' against a standardbut FWIW, on a Tyan S2466-N MB, dual Althon MP 2000+ with the ThermalTake Silent Boost fans (PITA to get on this MB BTW ;-( ), claimed CPU Temps via BIOS after a week+ uptime and some large compiles putting load on the system, CPU Temp rarely goes above 55*C (reported), after compiling for several hours (KDE in this case). Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Win200 gateway blocking FBSD html?
Robert Storey wrote: I'm trying to set up a FreeBSD client machine for a school. They have never used FBSD or even Linux, they are 100% Windows. They are interested in letting their students gain experience with non-Windows software. So I need to prove to them that FBSD can work, but I've run into a major obstacle. The client machines are connected to a switch, which is connected to a Windows 2000 gateway machine to access the Internet. I set up a FBSD client, and using dhcp it can find the network. I can ping the gateway machine, and even ping the local ISP. I can also use gftp to access some anonymous ftp sites (such as FreeBSD.org) though performance seems slow. The problem - I cannot access any web sites with http. Doesn't matter if I use Konqueror, Mozilla or Lynx. Yet, all the Windows machines on this network can browse the web (using Internet Explorer) without difficulty. I find this very peculiar. Just to be sure that I don't have a misconfigured firewall on the FBSD box, I installed FBSD on my laptop, plugged it into a different network - works fine, I can surf the web. Then I plug it into the school's network, and http doesn't work, but ping and ftp can reach the outside world (though again, it's slow). Is it somehow possible that the Windows gateway only allows Internet Explorer to work? Doesn't seem possible, but what do I know? All suggestions welcome. best regards, Robert ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Sounds like they may be using a proxy server. IIRC, most fairly recent versions of IE can locate a proxy without configuration (assuming it's a Windows/MS proxy server)- not sure if that's the default configuration for IE or not, but sounds like it's worth looking into- check out the existing IE configuration and ensure No Proxy is selected, close IE and relaunch- is it still able to reach outside the LAN? Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: verify md5 for /sbin/init (v1.7.2.3 2002/08/12 11:17:37 ) on FreeBSD Stable 4.9
Edmund Craske wrote: 1.2 is not greater than 1.7. Check your logic. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergey 'DoubleF' Zaharchenko Sent: 04 February 2004 13:17 To: treeml Cc: [EMAIL PROTECTED] Subject: Re: verify md5 for /sbin/init (v1.7.2.3 2002/08/12 11:17:37 ) on FreeBSD Stable 4.9 On Wed, 4 Feb 2004 07:21:39 -0500 treeml [EMAIL PROTECTED] probably wrote: ident /mnt/sbin/init Gave out a long list of results, but at the end of the list, which is also the most recent is the following. $FreeBSD: src/lib/libc/locale//ldpart.c,v1.7.2.3 2002/08/12 11:17:37 ache Exp $ I can't believe it's the most recent entry! I'm on 4.8-REL and my most recent entry is $FreeBSD: src/lib/libc/string/strerror.c,v 1.2.14.3 2003/01/17 13:39:32 mike Exp $ (I mean, more recent than yours). Try running # ident /mnt/sbin/init | sort -k 4 and look at the bottommost entry instead of vgrepping through the whole list. Then maybe that string will serve some purpose. HTH, -- DoubleF I didn't know it was impossible when I did it. Note the file names, which make the file revisions completely irrelevant in comparison to each other, even if they come from the same source (opposed to BSD specific/built from scratch). Assuming they DO come from the same source, you'd have to check each file listed by ident Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adding Packages and Ports
Krikket wrote: On Sun, 1 Feb 2004, Roop Nanuwa wrote: Krikket wrote: I've done a brand-new install of FreeBSD (4.9), and am a fresh user to this flavor of *nix. Welcome, we hope you enjoy your stay :). Thank you! The install went more or less without a hitch. For some reason ldap (part of the default package selection) didn't want to install. Could you be a bit more specific? What happened during the install? Did it give you any error messages? A generic compile error message, nothing specific. And unfortunately, I didn't take notes. (No, I wasn't expecting help with troubleshooting that point, it was said more in the way of a commentary than anything else. I figured that when I got to the point of needing it, I could always install it at a later time, and if needed ask questions then.) To test things out, I tried installing mozilla. It failed due to a dependancy, so I checked out the website to see what was available, found a version that was there, adn installed it. How are you installing mozilla? There shouldn't be any dependency problems in either of the two main ways to install packages on FreeBSD. Whether you install via the ports tree or through the package system all the dependencies should be handled for you. I think the reason that you're having dependency issues is because you're attempting to install binaries that you've downloaded that aren't packaged for FreeBSD specifically. I attempted to do a pkg_add -r mozilla. After checking the on-line database of software at freebsd.org, I know I tried some versons of the command lile ... -r linux-mozilla and sometimes with version numbers. I forget the exact one that did work. But when I type mozilla to start the program, it's not found. (Nor was it added to the KDE Menu.) I was able to do a pkg_add -r cvsup on the first try. But I ended up with the same problem -- not being able to find the package once it was installed. Needless to say, I can't add any ports as a result. Which shell are you running? You might have to run 'rehash' to refresh your shell's cache of available programs. Logging in/out would do the same but running 'rehash' is simpler/quicker. bash. I'll give that a shot. I'm not at home at the moment, and for some reason ssh doesn't want to allow me to login. For bash, you'll want to do a 'hash -r' instead of rehash Scott (I get a login prompt, but it's not accepting the correct password for either myself or the root accounts. Even after I called home and had the roommate reboot the system, just in case something flakey got into memory. I'm thinking it may be time to pull out the rubber chicken.) Krikket ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Text parsing?
Eric F Crist wrote: Hello group, For what purposes will I find I need to use all these tools you write about? I'm talking about awk, ed, ex, etc. I haven't found the need to do so, yet, but I'd like to possibly learn this stuff before I really do need it. Depends on what your system is used for- I've used the previously mentioned tools almost daily when working as a sysadmin- for monitoring disk qusage, process CPU usage, parsing output (log and standalone application one-time logs), install logsyou name it. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using Vi through a Serial Console
Mario Antonio wrote: Dear List, When I make a serial connection to a FreeBSD server that has its serial port configured as a console, how can I make the vi editor work? Mario --- [This e-mail was scanned for viruses by Webjogger's AntiVirus Protection System] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] export the TERM environment variable from the shell to the correct value, try: TERM=vt100 export TERM as a first shot... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ACPI errors at bit on Abit BP-6 mb (since 5.1) on 5.2RC
Chad Leigh -- Shire.Net LLC wrote: Hi. I have been getting these errors at boot time on a dual CPU Abit BP-6. This has been happening since I converted this old system into a test system a while back with 5.1R. It still happens with 5.2RC. I have not updated to 5.2R yet. It still seems to run fine and stably even with the errors. What do these mean? Here is a dmesg Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.2-RC #1: Thu Jan 8 09:59:56 MST 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/NABIKI-SMP [dmesg snipped] Mounting root from ufs:/dev/ad0s1a ACPI-0438: *** Error: Looking up [\\_PR_.CPU0] in namespace, AE_NOT_FOUND SearchNode 0xc54fd260 StartNode 0xc54fd260 ReturnNode 0 ACPI-1287: *** Error: , AE_NOT_FOUND ACPI-0438: *** Error: Looking up [\\_PR_.CPU0] in namespace, AE_NOT_FOUND SearchNode 0xc54fd260 StartNode 0xc54fd260 ReturnNode 0 ACPI-1287: *** Error: , AE_NOT_FOUND I installed and ran fbsd 5.1 and current for a bit on a BP6, dual Cel-366. Only problems I came across were: 1. Flash the board to the lastest/BIOS. This had cured a few issues when it was running Linux SMP previously. 2. Enable the Intel MP spec in BIOS, 1.4 if available (no longer have the system so can't verify, but I believe it's a BIOS option even on the BP-6) 3. If you're overclocking it, go back to the normal speed at least for the install. I hadn't reloaded that system in so long I forgot they were 366MHz CPUs (they were overclocked to somewhere ~450MHz), and ran into all kinds of problems until I checked and then reset it back to the default...which was interesting, as the system had been successfully running Oracle on RH7.3 for some time previously in the same configuration... Definitely never saw any similar messages as yours, but there's also a BP-6 motherboard issue some have come across- try googling for BP-6 problem if all else fails, something about a (filtering?) cap being the wrong size... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Any comparison chart for FreeBSD and other OS about performans
Vahric MUHTARYAN wrote: Hi I found old chart about some comparison between some OS FreeBSD , Linux and like this . Does any body know any new report or chart about performans between Oss which included FreeBSD of course . Thanks Vahric ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This is pretty ambiguous/unclear- performance for WHAT? File server, playing DVDs, database server, web server? There was a recent link pointed to from this list perhaps amonth back that was comparing FreeBSD 5.X, NetBSD, OpenBSD, and Linux, but I don't have the link handy...it should be in the archives however... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Good BSD/Linux Article (somewhat off-topic)
Hey all, just wanted to share a link to an interesting article comparing/contrasting *BSD (primarily FreeBSD) and Linux, at http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php No affiliation, came across it on one of the bsd news sites...as a long time Linux user/admin/developer(pre-1.0 kernel), but dealing with Solaris and other *nixes pre-Linux, it's interesting to see someone else put to words some comments along the line of some of my 'close, but not quite completely thought out' thoughts, when I've tried to explain to co-workers and friends some of the reasons I've come to be less than thrilled with RedHat, yet really like Gentoo and FreeBSD. Anyways, happy reading... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to Select Compiler Version when Installing Port
Daniel J Cain Jr. wrote: I am trying to get vmailmgr-0.96.9 to build from the ports collection of FreeBSD 5.1-RELEASE. I 'think' it will work if I can have the port use a different compiler version during the build. I have been unable to figure/find out how (if?) this is possible. By default it seems to use gcc 3.2.2, and I have the port install of gcc 2.9.5 available I just don't know how to make 'make' use the older version. I am pretty spoiled with the ports collection in that I almost never have to compile anything without using a port. But I have managed to alter the source in work/ to get past a couple of the errors (missing/incorrect includes). Still getting stumped by lots of errors along the lines of this: - ../lib/libvmailmgr.a(cdb_get.o): In function `cdb_reader::get(mystring const)': cdb_get.o(.text+0x355): undefined reference to `operator new(unsigned)' - I don't know how to work through those errors, and from what I've found on the net it doesn't compile with gcc 3+. So now I would like to try and using gcc 2.9.5 and see if that doesn't clear up the final (hopefully) issue. Any insight you can provide would be greatly appreciated. Thanks in advance for your time. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] you should be able to set the value of CC in the environment, or pass it through as a Make environment variable to use your choice of compiler... normally you can execute: CC=/usr/local/gcc-N.NN/bin/gcc make target although with the BSD ports system, you may need to do it differently, either in the top level Makefile or via: make -E CC=/usr/local/gcc-N.NN/bin/gcc Scott Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Information
Quintin Riis wrote: Berkeley Software Distribution Advanced Micro Devices Scalable Processor ARChitecture Quintin Kevin R. Lee wrote: Hello, I was wondering what BSD stands for? Also what does AMD and Ultra SPARC stand for? Any information would be very helpful.. Umm, and what does Google stand for? Anyone? It _surely_ isn't a search engine, right? Sorry, really couldn't help it. People often enough (including myself) ask on lists for info that could be dug up in the Handbook or some list searching, but asking after obviously not even bothering to even attempt to do any 'homework' on Google (or other search engine) can quickly take a very useful mailing list and turn it into a waste of spaceeven moreso when 'abused' (IMHO of course) by several more followups, any one of which could have been found in less time than it took to get a response from the (overly gracious) list Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: (Yet Another) Home Networking Question
Rishi Chopra wrote: Perhaps someone can help me with this small part of rc.firewall: [Ss][Ii][Mm][Pp][Ll][Ee]) # This is a prototype setup for a simple firewall. Configure this # machine as a named server and ntp server, and point all the machines # on the inside at this machine for those services. # set these to your outside interface network and netmask and ip oif=ed0 onet=192.0.2.0 omask=255.255.255.0 oip=192.0.2.1 # set these to your inside interface network and netmask and ip iif=ed1 inet=192.0.2.1 imask=255.255.255.0 iip=192.0.2.17 I'm curious about the difference between 'inet' and 'iip', what each one stands for, and how to configure 'onet/oip' if the outside interface network is configured via DHCP. I'm also curious about this little snippet (under the 'simple' profile): # Everything else is denied by default, unless the # IPFIREWALL_DEFAULT_TO_ACCEPT option is set in your kernel # config file. What happens if this option is set in my kernel config file? Can I safely comment out this line and use the 'simple' profile without affecting natd? [original questions responses snipped] inet = network, which is in part defined by your netmask- eg a netmask of 255.255.255.0 says that the first 3 octets are defining your network, and the last 3 define the individual host, thus a netmask of 255.255.255.0 allows for 256 hosts in theory, although .255 is the broadcast address, 0 is the network oip = actual IP address, which is a combination of the network you're on (192.0.2.0 in this case) and your host identifier (.1 in this case), so 192.0.2.1 I'm sure there are a million TCP/IP tutorials available on google, but doing a search on 'netmask' should explain anything I didn't do so well on ;-) Presumaby, IPFIREWALL_DEFAULT_TO_ACCEPT allows all packets throug the firewall as the default ruleset, which means the majority of your rules would become 'deny rules' to reject specific ports/packets etc..otherwise it's reversed, rejecting any/all packets unless you explictly allow them. Similar behavior to the functionality of the hosts.allow and hosts.deny files Obviously, denying everything explicitly not allowed by your ruleset is more securehowever, where you're unsure what ports (and protocols) specific applications or services use, expect to wind up spending a fair amount of time in refining your ruleset until all services you want allowed are in fact passed by the firewall. Accepting everything other than what you explicitly reject is better than no firewall, and isn't a bad starting point, combined with the output of netstat to monitor connections on a server, figuring out what traffic you absolutely must allow, and then eventually converting the system to a 'reject all' setup (after creating the 'allow ruleset' of course) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Alternatives to zcat ?
rob.c wrote: Hello All, I used to peruse my logs (when prompted by events in the periodic script output emails) using zcat, however i've just tried again for the first time recently and appears the logfile compression format has changed. This is in turn means that i can no longer use a command like zcat yesterdayscompressedlogfile | grep searchstringfromoutputemail as it just renders a not in gzip format message. So my question really is ... is there an alternative to zcat that can read .bz2 compression or do i have to go back to unziping to a directory first and deleting it afterwards ? regards, rob (aka peas) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] bzcat would seem to be part of the base system... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Commercial Distribution?
Shantanoo wrote: +++ Scott W [freebsd] [06-01-04 22:39 -0500]: | I know this one may be seen as sacrilege to some, but think about this: | | 1. *BSD uses a fairly significant amount of GNU and GPL licensed | (opposed to the BSD license) code in it. gcc, Perl, XFree86, Apache, | GNU Make, autoconf, mysql, PostgreSQL, etc etc. While it can be argued | many/most of these are not part of the core OS, what about: gcc, | objective c, libreadline, cvs, diff, tar, sort, patch and friends? | (from /usr/src/gnu and /usr/src/usr.bin ) I think PostgreSQL is released under BSD license. I can't find a line in tar's man page that it is GNU's tar. Apache's testing platform is FreeBSD. So probably it is release under BSD license. Will have to check it out though. Shantanoo ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] tar builds under /usr/src/gnu/usr.src.tar and AUTHORS credits it as GNU tar. I did note that about the man page, which is odd (although not a big deal). You're correct about Apache, or at least more correct than I was in listing it- Apache uses to use it's own license, and Postgres is in fact a BSD license. That's what I get for relying on memory ;-) That still doesn't remove (IMHO of course) the validity of my statement about calling FreeBSD and OS but Linux not based on licensing- FreeBSD wouldn't exist in it's current incarnation without the use of GPL and GNU software. Nor would Linux. Postgres has existed for almost as long as Linux, but it and Apache both have certainly had a huge amount of effort concentrated on them, not an insignificant amount of which was generated by the fact of more and more Linux (and yes, certainly *BSD, but arguably to a lesser extent) servers, as well as end-users discovering bugs, asking for features etc etc...if I'm not mistaken, IBM has been involved with Apache regardless of licensing, which is certainly a direct result of their 'embracing' of Linux. Note that isn't a slam by far in any ways- I certainly use both on my own servers, and would likely choose *BSD over Linux for client's web and mail/external accessible sites due to the default security being significantly better (which is still checked and changed as needed before someone may make the comment about installing an 'out of box' install to the world ;-), as well as the core install being significantly smaller than the current gen of Linux distros. I just don't like to see fallacy's propgated about either OS... (or any other than Windblows actually ;-) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to use lseek() system call with over 2G files?
Lowell Gilbert wrote: Dan Nelson [EMAIL PROTECTED] writes: In the last episode (Jan 06), Alex said: Hi everybody! Some time ago there wasn't any possibility to create disk file larger than 2G and there was no problem with lseek(). Some time ago meaning around 1997? FreeBSD has had 64-bit file access since at least 2.2.0. I don't remember if earlier versions had support for it or not. off_t has *never* been anything but 64-bit in FreeBSD. This is interesting, having had to deal with the LARGEFILE_64_SOURCE and _LP64 'hacks' (llseek(), creat64(), etc etc...back in Solaris from 2.6 on, which seem to still be in place in Solaris 9. Are all file operations and mmap() 64 bit capable then in FreeBSD (or presumably Open/Net/FreeBSD?) I don't see any LARGEFILE constants in FreeBSD Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RCS
Shawn Guillemette wrote: Once apon a time I worked for a company that had used somthing called RCS to protect files from being writen to by more then one user at the same time. Im now in a situation where that would become helpful. I have read the man pages on RCS and looked for documantation on the web including the FreeBSD diary site and wanted to post to you all to see if anyone had any links to some good documentation on this. Even how-to's would be great. Thanks Shawn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] It's old, it's not up to date, but neither is RCS ;-) http://www.bookpool.com/.x/rxmsgjmgri/sm/1565921178 RCS is fine for dealing with 1-2 people accessing files, but if you're thinking of using it for a larger project with network support, you may really want to look at something like CVS (free) or Perforce (current favorite commercial SCM) There really isn't a significant amount involved in RCS. man ci, co, rcs and understand branching. Add a few more people and then wait until you wind up wrapping all of the rcs commands in shell scripts Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Commercial Distribution?
Tillman Hodgson wrote: On Tue, Jan 06, 2004 at 09:14:41PM -0500, David D.W. Downey wrote: And how is that different from Linux? FreeBSD is an Operating System, so is Red Hat, Debian, Stampede, SLS, Slackware, and on and on. FreeBSD does the same thing. FreeBSD didn't develop OpenSSL but it includes it, nor did it develop SSH or swat, but it includes them. Just as linux distributions do. That's somewhat incorrect in my view. See http://www.freebsd.org/doc/en_US.ISO8859-1/articles/explaining-bsd/index.html for details. My attempt at a summary: RedHat et al may /distribute/ an operating system, but they did not write it. An analogy in the motorcycle world are the custom bike shops (some of which make extremely nice motorcycles!) versus Harley-Davidson. The custom bike shops carefully (one hopes) select components from the open market and put the polish on the resulting product. H-D may also use open market products (electrics *cough*, carbs *cough*) but are considered a /manufacturer/. Both sell motorcycles (operating systems). There is a distinction, however. -T I know this one may be seen as sacrilege to some, but think about this: 1. *BSD uses a fairly significant amount of GNU and GPL licensed (opposed to the BSD license) code in it. gcc, Perl, XFree86, Apache, GNU Make, autoconf, mysql, PostgreSQL, etc etc. While it can be argued many/most of these are not part of the core OS, what about: gcc, objective c, libreadline, cvs, diff, tar, sort, patch and friends? (from /usr/src/gnu and /usr/src/usr.bin ) 2. It can be argued that the 'core OS' (kernel and _required_ system tools) in *BSD are mostly BSD licensed versus GPL (Linux), but I'd wager a significant number of driver developments, kernel code (or perhaps design), as well as many programs required by most systems running either OS(insert distro here if you're offended), at least share bug fixes and new developments to some respect. If I'm not entirely wrong (which is certainly possible) I thought Alan Cox of Linux kernel fame has also done some work on the BSD kernel(s?)? Note that I don't entirely disagree with the response- IMHO, RedHat and SuSe are in fact merely distributions, but Linux as a collection of kernel + core programs is certainly an OS, in the same manner as *BSD is. Even RH AS/ES 2.1 is little more than a RH tweaked kernel + a few 'commercial' apps (stronghold, not sure of others offhand, haven't ever needed them!), on top of RH 7.3, which is really a Linux kernel + tools snapshot (many of which programs are at least heavily driven by Linux development in the first place), + RedHat or SuSe 'themes' and defaults, some customized rc/init scripts, and an installer. Anyways, I realized I may now be totally missing the point here so am going to now shut my mouth/keyboard...my comments still apply, but I'm not sure whom I'm disagreeing/agreeing with right now.. ;-) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Commercial Distribution?
Scott W wrote: Tillman Hodgson wrote: On Tue, Jan 06, 2004 at 09:14:41PM -0500, David D.W. Downey wrote: And how is that different from Linux? FreeBSD is an Operating System, so is Red Hat, Debian, Stampede, SLS, Slackware, and on and on. FreeBSD does the same thing. FreeBSD didn't develop OpenSSL but it includes it, nor did it develop SSH or swat, but it includes them. Just as linux distributions do. That's somewhat incorrect in my view. See http://www.freebsd.org/doc/en_US.ISO8859-1/articles/explaining-bsd/index.html for details. My attempt at a summary: RedHat et al may /distribute/ an operating system, but they did not write it. An analogy in the motorcycle world are the custom bike shops (some of which make extremely nice motorcycles!) versus Harley-Davidson. The custom bike shops carefully (one hopes) select components from the open market and put the polish on the resulting product. H-D may also use open market products (electrics *cough*, carbs *cough*) but are considered a /manufacturer/. Both sell motorcycles (operating systems). There is a distinction, however. -T I know this one may be seen as sacrilege to some, but think about this: 1. *BSD uses a fairly significant amount of GNU and GPL licensed (opposed to the BSD license) code in it. gcc, Perl, XFree86, Apache, GNU Make, autoconf, mysql, PostgreSQL, etc etc. While it can be argued many/most of these are not part of the core OS, what about: gcc, objective c, libreadline, cvs, diff, tar, sort, patch and friends? (from /usr/src/gnu and /usr/src/usr.bin ) 2. It can be argued that the 'core OS' (kernel and _required_ system tools) in *BSD are mostly BSD licensed versus GPL (Linux), but I'd wager a significant number of driver developments, kernel code (or perhaps design), as well as many programs required by most systems running either OS(insert distro here if you're offended), at least share bug fixes and new developments to some respect. If I'm not entirely wrong (which is certainly possible) I thought Alan Cox of Linux kernel fame has also done some work on the BSD kernel(s?)? Note that I don't entirely disagree with the response- IMHO, RedHat and SuSe are in fact merely distributions, but Linux as a collection of kernel + core programs is certainly an OS, in the same manner as *BSD is. Even RH AS/ES 2.1 is little more than a RH tweaked kernel + a few 'commercial' apps (stronghold, not sure of others offhand, haven't ever needed them!), on top of RH 7.3, which is really a Linux kernel + tools snapshot (many of which programs are at least heavily driven by Linux development in the first place), + RedHat or SuSe 'themes' and defaults, some customized rc/init scripts, and an installer. Anyways, I realized I may now be totally missing the point here so am going to now shut my mouth/keyboard...my comments still apply, but I'm not sure whom I'm disagreeing/agreeing with right now.. ;-) Scott Ok, sorry for following up to myself- below is in fact what my above comments are directed at: ls, while certainly useful, and part of the core OS (as are many others), could not in fact be built without the use of gcc, and GNU/GPL'ed compiler (and associated friends, ld, nm, gas, etc), so I really believe the below to be basically propogated and repeated without much thought, but incorrectly...not in that FreeBSD (and Net/OpenBSD) have a higher content of 'pure' (meaning written explicity for the specific OS) code in the core OS, but in that the distinction/differences in reality qualify FreeBSD to be an 'OS' while Linux (not RH, SuSe, other distros) is not... Scott David D.W. Downey wrote: You're touching on a big difference between Linux and FreeBSD; FreeBSD is an operating system, whereas Linux is a kernel which can be packaged with different programs. You can make do anything you want with FreeBSD, modify it all you want, release it (or not) along with the source code (or not), but you can't claim it''s FreeBSD any more... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: starting daemons at server start
Micke P wrote: Right! Ok, it's definitely not inetd that I need. I'm thinking primarily of starting apache and a dynamic ip updater automatically at startup. Micke --- fbsd_user [EMAIL PROTECTED] wrote: Maybe you just don't understand what you are seeing. Inetd is the Super server. Every thing you uncomment in the inetd.conf file is an server of it own right. But instead of an daemon running for telnet or FTP all the time. Inetd runs and listens on the ports where those services would be listings and when inetd sees an request on the specified port it automatically launches the server for that service. With inetd running , ps ax only shows inetd running, but start an telnet session to your box and you will see that inetd has spawned an telnet server session. When your telnet users leaves the session, the telnet server terminates. Inetd is used to conserve resources. If you installed apache from ports, there should already be a apache-dist.sh script in /usr/local/etc/rc.d . Copy it to apache.sh, chmod 600 (or at least make it executable), and apache should start at system reboot. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: starting daemons at server start
Micke P wrote: If there is something that is done automatically, I swear my karma is that it won't be done! I did do a port apache install. And right, I don't remember that being asked. I'm assuming there's an easier way to get this set up besides redoing the install. Examples of this script(working :-))? Micke [EMAIL PROTECTED] /usr/local/etc/rc.d [0] $ cat apache.sh #!/bin/sh case $1 in start) [ -x /usr/local/sbin/apachectl ] /usr/local/sbin/apachectl start /dev/null echo -n ' apache' ;; stop) [ -r /var/run/httpd.pid ] /usr/local/sbin/apachectl stop /dev/null echo -n ' apache' ;; *) echo Usage: `basename $0` {start|stop} 2 ;; esac exit 0 You'll have to check your locations of course, but the sample script should arealy exist on your system. Run /etc/periodic/weekly/310.locate cron and then: locate apache.sh-dist Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fortune
Lowell Gilbert wrote: Matthew Seaman [EMAIL PROTECTED] writes: On Thu, Jan 01, 2004 at 09:29:44AM -0500, Chuck PUP Payne wrote: Strange question, I have notice that in 5.1 there is no more fortune. Can you tell me where I can get it. Thanks. Install the games/freebsd-games port. No, fortune isn't in there. It's still in the main tree. Is it maybe being installed to somewhere different? [Doesn't look like it from a quick Makefile check, but I may well have missed something...] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Is installed on my (5.1 through 5.2-CURRENT) system, in: /usr/games/fortune - ELF binary /usr/share/games/fortune/ - directory for furtune data files Is /usr/games in your PATH? (Unsure if this is the normal location for it or not under FreeBSD, although IMHO it still belongs in a bin directory...) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: What do you use?
Scott Mitchell wrote: On Thu, Jan 01, 2004 at 01:09:23PM +, Francisco Reyes wrote: On Thu, 1 Jan 2004, Scott Mitchell wrote: As for RAID, we use Vinum, but only because I inherited a bunch of machines with hot-swap SCSI bays and no hardware RAID. It works well, once you have it set up, and I've even managed to swap out failed drives without a reboot :-) I'll definitely investigate the 3ware cards when I need to build a new RAID server, though. But wouldn't a 3ware RAID be slower than an SCSI setup? Unless your current setup is using old SCSI disks. Also how is the load? Lots of simultaneous use or just many quick/small access (ie people using documents/spreadsheets). There no particular reason for an ATA RAID to be slower than SCSI, assuming similar disks in each. 10krpm 'server class' ATA disks are available these days, although I don't know that anyone has done a 15krpm one yet. Does SATA have tagged queing? (I don't know offhand if it does...?) I can guarantee modern SCSI throughput is superior to any of the SATA drives I've seen to date. Several of the 'hardware sites' (I think Tomshardware did a writeup on this or anadtech among others) agree with this statement as well. ATA specs tend to exaggerate their capabilities even worse than SCSI specs do- burst speeds are all fine and dandy, but not realistic at all in the real world. Meaning basically in short I wouldn't choose SATA over SCSI for a production server of any kind where speed was an issue. ATA has gotten better by far than it was speed-wise, and I'd be OK with it on a personal workstation for any purpose, but it's still playing catchup. In any case, performance is only one reason to use RAID. My arrays are RAID-5's, serving developer home directories over NFS, and a CVS server (ie. lots of small file accesses). The main requirements were to have some fault tolerance and to get the most out the of disks I could buy with the available budget - hence the RAID-5. Read performance is no worse than with a single disk, and degrades more gracefully with multiple simultaneous access. Write performance is pretty awful, but that's the nature of RAID-5. No doubt if I had an unlimited budget I would do things differently, but those days are long gone :-( Write performance is awful locally, or over NFS? NFS isn't exactly a speed demon. No comment on the unlimited budget as everyone at work just got (another) 'mandatory pay reduction'...but I do rememeber and miss those, $^#*( ;-) Scott I'd also expect/hope that a hardware solution (ATA or SCSI) would be easier to manage. Vinum is great, but swapping out a dead drive is still a scary, multi-step procedure, that I do infrequently enough that it always requires half an hour with the manual and my notes from last time to make sure I get it right. With our Windows servers (Compaq Proliants with hardware RAID), you just yank the old drive, plug in the new one, and it's done. I'd love to be able to do that with the FreeBSD servers as well. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: File system full?
Gautam Gopalakrishnan wrote: On Thu, Jan 01, 2004 at 06:00:23PM -0600, Eric F Crist wrote: How big is necessary for a /usr partition? Mine keeps filling up and I've deleted /usr/obj and /usr/ports/distfiles regularly. Here's my df -h readout: $ df -h FilesystemSize Used Avail Capacity Mounted on /dev/ad0s3a 1008M92M 835M10%/ /dev/ad0s2 1020M19M 1001M 2%/dos /dev/ad0s3g 4.8G69M 4.3G 2%/home /dev/ad0s3e 3.9G 3.9G -260.5M 107%/usr /dev/ad0s3f 1008M27M 900M 3%/var /dev/ad0s1 24G22G 2.9G88%/nt procfs4.0K 4.0K 0B 100%/proc /dev/da0s1 61M61M 632K99%/umass I don't think you need such big / and /var partitions... And you could merge /home and /usr and make home dirs on /usr/home Gautam ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Advice- leave /var and / the size they are, they're fine if the box stays up as a server and runs any public services- apache logs and even messages log files can fill up /var relatively quickly, and if you add a database or any other service that can potentially log verbosely if it encounters any problems (or if you enable debug logging), /var can grow quickly. If you routinely delete rotated log files, and grow /usr to be 'big enough' (meaning don't merge it into / ), you can probably get away with half of what you're using for / and /var, but I wouldn't go smaller. You can migrate /home if need be as suggested into /usr/home and update your home dirs in /etc/passwd, or you can also move the entire ports tree into your /home partition via symlink, which may sound funny but it a bit more 'traditional' on other *nixes- keeping generally static programs only in the /usr partition, and normally growing/changing contents in seperate disks (/var, /home). The ports collection and size is changing by nature, and sometimes significantly (building X, KDE, OpenOffice, Mozilla and others from source). You can do the following if you'd like: mkdir /home/ports cd /usr/ports tar cpf - . | (cd /home/ports ; tar xvf - ) to copy the ports tree over to it's new 'home' (bad pun), then: diff -R /usr/ports /home/ports for your sanity, but unnescessary unless someone is doing a cvsup or build while you're copying files.. Then go ahead and blow away the original ports tree: rm -fr /usr/ports and symlink to it's new home ln -s /home/ports /usr/ports My ports tree is currently taking up ~715M: (Ignore the df output, home/mail/ports are currently on a single RAID volume via NFS), with the /usr filesystem at 2.8G with a fair number of packages installed, but no KDE, GNOME, etc, so it can grow by a fair amount yet... [0] # du -hs /usr/ports 717M/usr/ports [EMAIL PROTECTED] /var/log/ [0] # df -h Filesystem Size Used Avail Capacity Mounted on /dev/ipsd0s1a 1.4G 157M 1.1G12%/ devfs 1.0K 1.0K 0B 100%/dev /dev/ipsd0s1e 965M22K 888M 0%/tmp /dev/ipsd0s2d 4.0G 2.8G 900M76%/usr /dev/ipsd0s1d 965M31M 857M 4%/var procfs 4.0K 4.0K 0B 100%/proc sol:/export/home 182G63G 117G35%/usr/home sol:/export/mail 182G63G 117G35%/var/spool/mail sol:/export/ports 182G63G 117G35%/usr/ports Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: File system full?
Malcolm Kay wrote: On Fri, 2 Jan 2004 15:44, Brian Astill wrote: On Fri, 2 Jan 2004 10:30 am, Eric F Crist wrote: How big is necessary for a /usr partition? Mine keeps filling up and I've deleted /usr/obj and /usr/ports/distfiles regularly. Here's my df -h readout: $ df -h FilesystemSize Used Avail Capacity Mounted on /dev/ad0s3a 1008M92M 835M10%/ /dev/ad0s2 1020M19M 1001M 2%/dos /dev/ad0s3g 4.8G69M 4.3G 2%/home /dev/ad0s3e 3.9G 3.9G -260.5M 107%/usr /dev/ad0s3f 1008M27M 900M 3%/var /dev/ad0s1 24G22G 2.9G88%/nt procfs4.0K 4.0K 0B 100%/proc /dev/da0s1 61M61M 632K99%/umass $ My /home is a link to /usr/home. Isn't yours? If it IS (notwithstanding your creation of a /home partition), that would explain why you have only 69M in /home but 3.9G in /usr. One of the suggested setups is to provide home with its own partition. And even though you don't use it it is not so uncommon. The two partitions appear to be adjacent. If they are, Partition Magic (or similar) could merge those two partitions non-destructively, and your problem would be solved. This sounds like a disaster --- partition magic works with MS partitions or in FBSD terms slices -- to the best I my knowledge it does not know about BSD style partitions. I'd also be very surprised if it is able to merge BSD file systems non-destructively. I'm almost positive it doesn't. Partition Magic also needs to understand the underlying filesystem, not just the partition table, as almost any operation aside from expanding a single partition on a disk with only one partition plus unused space would result in actually moving data around.. PM 8.0 (should be the latest I believe) can't touch Linux ReiserFS, so I'd be highly surprised if it understood UFS2. Scott Malcolm Kay ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: What logs etc do I need to checkfrequently?
Chuck Swiger wrote: Joachim Dagerot wrote: As you with good memories know, I lost 3000 pictures of my first sons first year this month. I did have a RAID-5 system with fresh disks, however, shit happens and I have a feeling that this could have been avoided if I read my log files better. I'm sorry that you lost data. While you may have been able to notice the problem with the RAID-5 array in time to do something, what you ought to do to avoid losing more data sometime in the future involves making good backups-- not poring over the system log files, not configuring RAID. So basically, a) I get a mail each time my a cron-event fires, this happens every 30 min so the mailbox are quite loaded, not very funny going through. If you can, change the cron task to not generate output unless there is a problem that you should know about. Failing that, append /dev/null 21 to the line in your crontab, which will discard the output, meaning you won't get mail from cron. a1) Is it possible to only get a mail with critical information, where and what do I need to do to achieve this? My comments above should help you reduce the amount of junk mail you get from cron. b1) Where will information about ongoing disk-problems appear? How can I see that there is a flaky disk in a non-rebooted system? /var/log/messages. The system will complain quite noticably in the face of hardware errors, and should log one or more lines for every bad sector it runs into. On the other hand, depending on the hard drive to fail gradually is risky: hard drives can fail catestrophically without giving significant warning. Some failure modes-- stiction in particular-- can sometimes be worked around on a temporary basis long enough to recover data without heroic measures (ie, paying a data recovery company a few grand). It's important to realize that while RAID modes which provide fault-tolerance do improve availability (ie, they can save your data if a drive goes), RAID is not a substitute for backups. In particular, RAID-5 or RAID-1 doesn't help a bit if someone deletes or overwrites a file In addition to the questions above, is there something else I need to tune/install/setup/configurare to get a very reliable system that report critical data to me but where non-critical data is filtered out? /etc/syslog.conf defines the configuration of system logging, and it is worth reviewing that to understand what is being logged and where. Just to add my .02c here- all of the above is excellent advise, and I think someone else already mentioned logcheck, which can be useful for other thins as well (port scanning, Nimda attacks (which are STILL out there), and others)I guess my only disagreement here is about RAID or disk vs tape backups. At this point, it's generally more inexpensive to buy a secondary disk, or even a RAID setup. than to go with tape. Tape itself isn't a guaranteed medium by any means...meaning there have been times I've gone to backup from tape to then find out it was a less than full backup or data was corrupted on the tape. I won't even get into tape drive issues where you write data on one unit and a different tape drive won't read the same tapes, other than to say it happens. If you've got data that doesn't change often (ie like your pictures), and only grows, you've got a few options: 1. Set up a RAID-5 array. IMPORTANT- designate at least one hot spare! If your main use is for backup, you can go with an older SCSI solution, but if so, I _highly_ recommend using a RAID enclosure (with backplane, not a 'homemade' cabled setup- older SCSI (scsi2, UW, etc) is pretty picky about cable length, and using an external cabled enclosure can cause read or write errors and other issues (dropping a drive offline). Fiber channel or older scsi hardware RAID solutions can be had on eBay for pennies on the dollar right now.. Note that I'm talking about hardware RAID here...software RAID is slower (generally), and IMHO just not as reliable...yet. You can use the setup as a 'live data logical drive,' and if you're overly paranoid, do a scheduled tar archive (or other means of backup, but with tar you can add the incrementals to your archive) to the drives, or to an alternate drive, as well. 2. Buy a secondary IDE disk, sized at least 2x the size of your data to allow for growth. Do NOT use this drive for anything other than backup, eg mount the drive as /backup and only use it for (cronned) data dumps. You'll only be writing and reading to the drive occasionally, and as such, you should have a reasonably decent length of time the drive will work for, meaning it's likely to get replaced during upgrades years from now before the drive itself fails. Large IDE disks are getting insanely inexpensive... DLT drives in the 15gb(uncompressed) range are $100, but as usual, become progressively more expensive as you go larger in size, woth a 40gb running
Re: Dynamic DNS Updates
Jud wrote: On Sun, 28 Dec 2003 02:02:53 +0100 (CET), Cordula's Web [EMAIL PROTECTED] wrote: If you decide to use a provider like dyndns.org, you can use the ipcheck port (http://ipcheck.sf.net) to keep your IP address and hostname in sync. Or use ddclient: /usr/ports/dns/ddclient Works perfectly for me (with dyndns.org). That makes two votes on both counts (ddclient and www.dyndns.org). Jud ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] DynDNS has changed their pricing- if you're registering more than one domain it becomes over-priced for their service. I'd wanted to use DynDNS as I've used them in the past, but needed to provide service for 5+ domains...didn't see any 'bulk' discounts, so emailed them to find out you have to pay the price 'per domain.' So I found an alternate, .changeip.com . Not the most active website out there, but no problems as of yet Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Log Rotation
Gerard Samuel wrote: On Sunday 28 December 2003 12:36 pm, Lowell Gilbert wrote: Gerard Samuel [EMAIL PROTECTED] writes: In particular, Im looking to see if there is a FreeBSD way in rotating PostgreSQL logs. Any advise would be appreciated. newsyslog(8) is part of the base system... Yes, Im familiar with newsyslog, but Im not sure how it will play with rotating PostgreSQL's log file, as PostgreSQL seems to need some extra TLC when rotating the log while PostgreSQL is running. http://www.postgresql.org/docs/7.3/interactive/logfile-maintenance.html Ill have to let that sink in the brain, before I try messing with it. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Just a guess here, but what the problem likely is is that Postgres keeps a file descriptor open to it's logfile, which means that 'simple' log rotation, eg just moving the original logfile to a backup name or gzipped file will break the logging as pg won't have a valid file descriptor any more. This one's bit a project I worked on forever ago (on a production system! :-( ) running Solaris and Sybase... The easy solution is to see if any of the log rotation scripts have the 'right' behavior...if not, you can write your own script to do it, test it by rotating the logs and then intentionally doing something to produce log output (depending on your log level)...if you get the log output, everything's happy. What it should be doing is this (and a side effect is you shouldn't run into log problems on other apps either): 1. Copy the log file locally, using whatever naming convention you want, eg logname.(massaged date/time stamp like $(date | cut -f' ')) 2. Truncate the existing log via cat /dev/null original logfile . This allows the logging progam to continue to log without an invalid fd.. 3. gzip or move the copied logfile to wherever, gzip it etc.. This is a simple solution, and has the potential to lose a few log entries due to the time from the completion of the original log copy until the original log file truncation is completed, but should be fine for home, non critical or low usage (meaning not logging 1000 messages/minute) log filesthere's probably a better way to do this, probably logging via a pipe, but I don't know the specifics offhand... HTH, Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Any (easy)way to copy contents of a file into X clipboard?
Pat Lashley wrote: --On Sunday, December 21, 2003 20:50:22 -0500 Scott W [EMAIL PROTECTED] wrote: Hey all..was wondering if anyone knew of a utlity to copy the contents of a text file into an X clipboard buffer? It's possible via the use of xmessage or any other X editor that allows you to select all text, but something command line only would be useful... I'm sure something exists somewhere, but I'm not having any luck as of yet...anyone? Have you tried /usr/ports/x11/xclip ? -Pat ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Actually, no...it hadn't been installed, so I did so. I just tried it, but it appears to have a buffer size limitation, or I may be using it wrong: xclip -i /home/wegster/bsd/freeBSDInstall.txt completes, but then doesn't seem to have filled the X clipboard buffer, as pasting into an open text file produces no output. xclip -i Makefile (using xclips Makefile) does work as advertised, while cat /home/wegster/bsd/freeBSDInstall.txt | xclip doesn't produce any output, but cat Makefile | xclip worksso looks like a non-dynamic buffer being used. If anyone has any ideas (cmd params I'm missing) I'd appreciate it, otherwise I'll dig into the source and see what it's doing with respect to buffer allocation. Thanks, (definately closer than I was ) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: missing /usr/libexec/ld-elf.so.1 ... not found
Lowell Gilbert wrote: Peter Leftwich [EMAIL PROTECTED] writes: But no. I looked at /mnt/cdrom1/bin/* and tried a `tar -tzf binary-filename-here` to list the contents but it didn't work. Is there a ++CONTENTS or ls-laR.tgz file somewhere of the contents? In the tarfile, of course. ;-) Try something like # cat /mnt/cdrom1/bin/* | tar -tzf - for the contents. Change the 'f' to an 'x' and give the filename to extract a particular file. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Minor correction- change the 't' to an 'x' t= test (will give index/list of files but not extract x= eXtract files Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Re: Question on PS/2 Wheelmouse through KVM
User wrote: On Wednesday 24 December 2003 02:22, Scott W wrote: Via PS2 and through the KVM, it appears there's nothing I've found yet that will enable the wheel, although the wheel 'button' itself works. Are you sure that this part is located in your /etc/X11/XF86config file?: Section InputDevice Identifier Mouse0 Driver mouse Option Protocol auto Option Device /dev/sysmouse Option ZAxisMapping 4 5 # This part is for your mouse wheel EndSection Any ideas on what to try next? Opera in X without a scroll mouse is like Windows claiming it's secure- it's just wrong :-( haha, I like this quote. :-) Cheers, Jorn User wrote: On Wednesday 24 December 2003 02:22, Scott W wrote: Via PS2 and through the KVM, it appears there's nothing I've found yet that will enable the wheel, although the wheel 'button' itself works. Are you sure that this part is located in your /etc/X11/XF86config file?: Section InputDevice Identifier Mouse0 Driver mouse Option Protocol auto Option Device /dev/sysmouse Option ZAxisMapping 4 5 # This part is for your mouse wheel EndSection Any ideas on what to try next? Opera in X without a scroll mouse is like Windows claiming it's secure- it's just wrong :-( haha, I like this quote. :-) Cheers, Jorn Hi Jorn- yeah, I've played with the X Device section, as well as the flags to moused extensively, as well as not running moused, changing the button and then z-axis mappings, just in case this particular mouse wasn't actually seeing the scroll wheel as 'button 4'...all to no avail. Through the KVM emulation, it IDs the mouse as a MouseMan+, which works fine with the wheel under various RH and Linux variants on another system...I may wind up having to recompile the Linux kernel and/or modularize the mouse/PS2 driver and add some debugging to try to see if I can't figure this outbut of course most problems encountered have already been encountered by someone else, so was definitely hoping ;-) Thanks, Scott PS- Jorn, your mailserver is misconfigured, if intentionally then no worries, but your mailer isn't filling out the From/Reply-to headers at all... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Question on PS/2 Wheelmouse through KVM
Hey all. Strange but not totally surprising behavior, anyone have any ideas? System: IBM Netfinity 4500R 1G RAM 2x 667MHz PIII CPUs Logitech Trackman Wheel PS/2 Mouse and KB through Belkin 8 port rackmount KVM Running recent 5.X current SMP kernel When I was running the mouse via USB/not through the KVM, the middle (wheel) button worked fine, as did the wheel after a bit of tweaking on moused and the X config file. Via PS2 and through the KVM, it appears there's nothing I've found yet that will enable the wheel, although the wheel 'button' itself works. Running moused in debug mode in a terminal using -z4 shows buttons numbered 'normally' 1-3 from left to right and gives corresponding output for each button being depressed...however, scrolling the wheel gives no output, which I'm assuming it should be doing for a positive or negative movement value. The same setup works fine, mouse wheel included, through the same KVM to another SMP Linux system, which has run RHAS2.1, 3.0, and now WhiteBox Linux (free 'clone' of RH3ES), without any issues, so it doesn't appear to be the KVM, although I've seen historically that BSD seems to have more than it's share of KVM input issues Any ideas on what to try next? Opera in X without a scroll mouse is like Windows claiming it's secure- it's just wrong :-( Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Postscript printer, serial or parallel cable?
Doug Poland wrote: Hi, I recently got my hands on a free (woowho!) HP 4050 printer. I'm going to hook it up to a FreeBSD 4.9-STABLE server. The printer has two serial (one male/one female) connectors, a Centronix port, and some odd looking port that looks like you plug a mouse into it. The handbook states that I can use serial or parallel cabling to a postscript capable printer but there may be some advantage to a serial cable as it is bi-directional. I've got several newer IEEE something-or-another parallel cables lying around unused. They were rather expensive and, IIRC, proported to be bi-directional. Question: Is a serial hookup preferable to parallel? As a future possiblity, this modest FBSD box may become a dedicated print server with a color laser and ink jet also hanging off it. I'll probably install CUPS and share it with windows users via Samba. Thanks for your input If I'm not totally mistaken (been a while since I've used a serial printer for anything), the parallel should be a fair amount quicker- the only thing I remember about the serials is it was easier/cheaper to find long serial cables, which was important when a server in the server room or on another floor was doing print server duties for a printer in a publicly accessible area Any reasonably modern parallel cable and parallel port is also bi-directional, so the only advantage I see with serial is if you're cabling it like above... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Question on Web/Content Management packages
Hey all- while this isn't a FreeBSD specific question, I'm hoping someone may have an answere or two for me, for a system that's capable of running on FreeBSD. I've done a fair amount of searching (Google, FreshMeat, lists) and I seem to be unable to find exactly what I'm looking for- I'd like to find a Web Content Management system that does the following: 1. Runs on FreeBSD with Apache. PHP is fine, as would be Perl. Backend DB can be PostgreSQL or mysql. 2. Creates a consistent site feel (CSS templates?) but allows customization, preferably without an insane amount of 'by hand' work on the pages. 3. Has a clean interface to enter a new story/news item/content- accepting an input text file and using the equivalent of the preformatted tag woould be fine. My main issue is I want to worry about the content, not formatting or integrating into the site by hand. 4. Allows user logins to be turned off if so equipped. What it doesn't need: 1. Forums 2. User Registration 3. News/RSS feeds What I'd like to use it for is this, which hopefully won't sound too convoluted: 1. Design a base feel for the site. Main page with Nav bar with defined sections, (for example, different Technologies) 2. Add content by supplying a title and the content itself. Select which section (from Nav Bar) it belongs under. System should then generate the new static content, add the title under the appropriate Nav bar, and if so designed, add a link to it in the 'New' section (although doesn't have to have a New section). Content should be able to be in HTML, but most importantly should also be able to be entered into system via text entry or by reading in a text file, at which point it would apply the appropriate 'magic' to generate a new static page using the site's style. In other words, I really want to do the site layout once and then not touch it until I need to archive older 'articles.' I don't want nor need it to be a 'portal' site linking all over creation, nor do I need it to have a user forum or registrations, although allowing anonymous (or possibly registered) comments per story wouldn't be horrible. This may sound odd, but I've built sites using vi, and I really just want to focus on content only and let the software handle the formatting, allowing me to concentrate most of my time on actual content. I've looked at ezPublish...wasn't crazy about the licensing, as while any/all content is free, if I were ever to offer anything for sale, it then becomes commercial with their licensing. Their help was also somewhat lacking and out of date from what I saw. Drupal seemed to be a decent choice, but it appears that all content has to either be done in PHP or HTML, which bypasses the text document requirements. It's a possbility I can write articles in a WYSIWYG HTML editor, if only for basic formatting (paragraphs, pre-formatting, lists) and then copy/paste into Drupals Submission form, but from what I've seen, there don't seem to be many canned themes available (default site is simply black text/white background) that I've seen. Any suggestions, or feedback on what people out there are using for something similar? Failing finding anything else, the prime candidate I'm seeing aside from Drupal would be PHPNuke, but again it seems like overkill considering the number of features it has that I simply don't need, although I wouldn't mind hearing of people's experiences with it. Offlist is fine as this is a bit off-topic.. Thanks, Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Any (easy)way to copy contents of a file into X clipboard?
Hey all..was wondering if anyone knew of a utlity to copy the contents of a text file into an X clipboard buffer? It's possible via the use of xmessage or any other X editor that allows you to select all text, but something command line only would be useful...I'm sure something exists somewhere, but I'm not having any luck as of yet...anyone? Thanks, Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Different versions of ports...
John Wilson wrote: Hi folks, I've recently started playing around with X and various desktop managers. There is one point that seems a little troublesome however... after recently browsing about the installed ports/packages on my system, it appears that different programs require different versions of one particular package. Here is one such instance: glib-1.2.10_10 = up-to-date with port glib-2.2.3 = up-to-date with port Is this going to cause any trouble at some later point? If so, what would be the best way to remove the earlier version and be sure that only the newest version remains? Thank you for your help, John W. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Have the same on my system- glib looks to be a C library of utilities, I'm not familar enough with freebsds various package tools to generate a list of forward/backward dependencies on it, but perusing /var/db/pkg/glib-version/+CONTENTS looks like 'pkgconfig' is the only dependency for the earlier version, while Perl, gettext, the iconv library and a few others are dependent on the newer version (unless I'm reading the file deps backwards..). Both packages install in mutually exclusive directories (with versions built into dir names), so it shouldn't be a problem... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: comparison of files
Brent Bailey 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 ? thank you for all your help in advance You need to sort the files first...see below for difference in comm behavior... Script started on Tue Dec 16 20:27:59 2003 freeb# cat blacklist1 192.168.1.2 192.168.1.1 192.168.1.10 freeb# cat blacklist2 192.168.1.1 192.168.1.10 freeb# comm -i12 blacklist1 blacklist2 freeb# sort blacklist1 blacklist1_sorted freeb# sort blacklist2 blacklist2_sorted freeb# comm -i12 blacklist1_sorted blacklist2_sorted 192.168.1.1 192.168.1.10 Script done on Tue Dec 16 20:29:14 2003 Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: usb wheel mouse
marcelo cardoso martinelli wrote: i have a ms intellimouse optical usb mouse and i can't get the wheel to work in X. here is my InputDevice section in XF86Config: Section InputDevice Identifier IntelliMouse Explorer Driver mouse Option Device /dev/sysmouse Option ProtocolAuto Option Buttons 7 Option ZAxisMapping6 7 EndSection i am running FreeBSD-5.0 Release and XFree86 4.2.1 TIA ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] From a freeBSD install/writeup I'm working on: The fix for the wheel involved setting an option or two: appending '-z4' to the moused command string in the Mouse section of /etc/usbd.conf New Line: attach /usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid -z4; /usr/sbin/vidcontrol -m on and adding the following line to the InputDevice section of the XF86Config file: Option Buttons 6 See http://www.gsoft.com.au/~doconnor/x-wheel.html for further info or Google for 'FreeBSD X wheel mouse' for further information. This also allowed the 'wheel press' button to work as well. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: frustration
richard michael bagstad wrote: i find this frustrating. on your website (page http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports- using.html) the following tells me that 'from cd' and 'from internet' are exactly the same... it does not tell me the directory of (ie.) lsof. it simply tells me to 'make install'. please help a poor green newbie. 4.5.2.1 Installing Ports from a CD-ROM The FreeBSD Project's official CD-ROM images no longer include distfiles. They take up a lot of room that is better used for precompiled packages. CD-ROM products such as the FreeBSD PowerPak do include distfiles, and you can order these sets from a vendor such as the FreeBSD Mall . This section assumes you have such a FreeBSD CD-ROM set. Place your FreeBSD CD-ROM in the drive. Mount it on /cdrom . (If you use a different mount point, the install will not work.) To begin, change to the directory for the port you want to install: #cd /usr/ports/sysutils/lsof Once inside the lsof directory, you will see the port skeleton. The next step is to compile, or ``build'', the port. This is done by simply typing make at the prompt. Once you have done so, you should see something like this: #make lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/. Attempting to fetch from file:/cdrom/ports/distfiles/. === Extracting for lsof-4.57 ... [extraction output snipped] ... Checksum OK for lsof_4.57D.freebsd.tar.gz. === Patching for lsof-4.57 === Applying FreeBSD patches for lsof-4.57 === Configuring for lsof-4.57 ... [configure output snipped] ... === Building for lsof-4.57 ... [compilation output snipped] ... # Notice that once the compile is complete you are returned to your prompt. The next step is to install the port. In order to install it, you simply need to tack one word onto the make command, and that word is install : #make install === Installing for lsof-4.57 ... [installation output snipped] ... === Generating temporary packing list === Compressing manual pages for lsof-4.57 === Registering installation for lsof-4.57 === SECURITY NOTE: This port has installed the following binaries which execute with increased privileges. # Once you are returned to your prompt, you should be able to run the application you just installed. Since lsof is a program that runs with increased privileges, a security warning is shown. During the building and installation of ports, you should take heed of any other warnings that may appear. Note: You can save an extra step by just running make install instead of make and make install as two separate steps. Note: Some shells keep a cache of the commands that are available in the directories listed in the PATH environment variable, to speed up lookup operations for the executable file of these commands. If you are using one of these shells, you might have to use the rehash command after installing a port, before the newly installed commands can be used. This is true for both shells that are part of the base-system (such as tcsh ) and shells that are available as ports (for instance, shells/zsh ). Note: Please be aware that the licenses of a few ports do not allow for inclusion on the CD-ROM. This could be because a registration form needs to be filled out before downloading or redistribution is not allowed, or for another reason. If you wish to install a port not included on the CD-ROM, you will need to be online in order to do so (see the next section ). 4.5.2.2 Installing Ports from the Internet As with the last section, this section makes an assumption that you have a working Internet connection. If you do not, you will need to perform the CD-ROM installation , or put a copy of the distfile into /usr/ports/distfiles manually. Installing a port from the Internet is done exactly the same way as it would be if you were installing from a CD-ROM. The only difference between the two is that the distfile is downloaded from the Internet instead of read from the CD-ROM. The steps involved are identical: #make install lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/. Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. Receiving lsof_4.57D.freebsd.tar.gz (439860 bytes): 100% 439860 bytes transferred in 18.0 seconds (23.90 kBps) === Extracting for lsof-4.57 ... [extraction output snipped] ... Checksum OK for lsof_4.57D.freebsd.tar.gz. === Patching for lsof-4.57 === Applying FreeBSD patches for lsof-4.57 === Configuring for lsof-4.57 ... [configure output snipped] ... === Building for lsof-4.57 ... [compilation output snipped] ... === Installing for lsof-4.57 ... [installation output snipped] ... === Generating temporary packing list === Compressing manual pages for lsof-4.57 === Registering installation for lsof-4.57 === SECURITY NOTE: This port has installed the following binaries which
Re: Why userland , basesystem and Kernel are together?!
Stephane Bortzmeyer wrote: On Tue, Dec 09, 2003 at 03:42:17PM -0500, Scott W [EMAIL PROTECTED] wrote a message of 104 lines which said: 1. Kernel. Umm, I hope I don't have to expain this one ;-) 2. Core system- This one can likely be argued a bit with bsd (and 3. userland apps- Kernel and core make a rudimentary system, but I don't have the Handbook to check and I'm offline at the present time but I'm suprised. I thought that userland meaned everything which is not the kernel, including the base system. What you call userland, everything but the base system, seems to be what the Handbook calls the ports. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Your statement's completely true- 'userland' is anything outside of the kernelbut for explanations sake to the original poster, it seemed the most fitting explanation. I guess it would have been better worded as 'all the rest of the apps' AKA ports :-) Sorry for any confusion... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: export PATH ???
Xpression wrote: Hi again list, I've posted a question recently about uninstalling packages, in fact, when I installing changin the prefix path (eg.--prefix=/usr/local/package_name) it creates me some subdirs. The trouble is that I can't execute any installed program, until I put, for example: cd /usr/local/package_name/bin ./program, anyone with this issue ??? Thanks... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This isn't really a PATH issue, it's a fundamental dir structure layout problem. I think I know what you're trying to do (keep all user-installed programs seperate), but if you insist on doing it that way (as opposed to leaving/using the default prefix /usr/local), you'll need to create symlinks into /usr/local/bin, which your default PATH presumably includes. Bear in mind there's no guarantee that all ports will relocate to a different dfefault directory and work properly- they should, but I've ran across several that will look in the wrong/old location for config files, log files, etc... The alternative is ugly, evil, and can slow down shell response significantly, which would require modifying your PATH for each and every package you install in the manner you specfied... I've got to ask- what's wrong with leaving the default prefix alone? Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why userland , basesystem and Kernel are together?!
Vahric MUHTARYAN wrote: Hi Simon Barner , First thanks for your answer . Please correct me if I mis understand something . 1) You mean if I want to keep source up-to-date method and use make world process I must test it another test machine before apply it to the production server . I realize I'm jumping in mid-thread here, but: Anyone that gets paid to maintain a system or group of systems is certifiably insane if they routinely 'just apply patches and fixes' to their production box without testing on a staging server or cloned test system. I realize that the definition of 'production' varies, ranging anywhere from someone running a web server at home (ok, not production, but some treat it as such) to companies primary database, web, mail, development and build systems. While I've been 'guilty' myself of applying smaller patches to Solaris, HP-UX, etc boxes for development without prior testing: a. It's minimal impact- I could recreate the systems in question of need be from scratch. It would be an inconvenience, and still not the best idea, but for some systems you don't always have cloned systems... b. Anything that could cost a company money or loss of uptime that customers depended on NEVER gets upgraded/patched/etc without testing on a staging system. This includes kernel builds or patches, library changes, application patches etc. Virtually anything. Only exception will vary from person to person and company to company, but only sane changes are changes you KNOW (a in 99.99%) are limited in scope, as in self-contained applications that don't touch any of the core libraries required for the system to do it's job. Even so, this one's debateable, as a 'self contained' app can certainly turn out to eat CPU or RAM, thus degrading system performance... 2) You said that FreeBSD was more than a kernel . What do you mean Could you explain little more or Do you know any documantation or whitepaper which explain mind of the FreeBSD operating System . I'm sure this is covered in the Handbook or other docs at www.freebsd.org...Briefly...BSD is comprised of: 1. Kernel. Umm, I hope I don't have to expain this one ;-) 2. Core system- This one can likely be argued a bit with bsd (and others), but this should be considered any additional libraries and/or services that are required for mimimum accepted or targetted functionality. In the strictest sense, this can be seen as core libraries that userland apps will generally require- libc and others, and core services- login/getty, inetd, etc. Like a Windows kernel without any of the GUI or Win32 libraries would be of little use, Unix systems have their own generally accepted list of 'core requirements.' SSH and a few others may be debateable as far as if they're really core requirement or not, but it's generally agreed on that most networked *nix systems will be running ssh (hopefully as a replacement to telnet and ftp..) FreeBSDs equivalent here is the output of 'make world.' 3. userland apps- Kernel and core make a rudimentary system, but without much 'specialized' functionality. You're networked, and perhaps running mail and ssh, but that's about it. userland = everything else. Databases, Window Manager(s), MatLab, or whatever else you need to turn the system from a 'generic' system into what it's going to be used for. As already mentioned, without some of the contents of the 'core system,' you wouldn't be very likely able to even install userland apps as libc and friends would be missing 3)I red small paragraf from http://www.daemonology.net/freebsd-update/ after your advise -FreeBSD Update is a system for automatically building, distributing, fetching, and applying binary security updates for FreeBSD. This makes it possible to easily track the FreeBSD security branches without the need for fetching the source tree and recompiling - *** it seems really good _! Soory but if binary update make all things easyer than soruce update mechanism Why Everybody advising source-update instead of freebsd-update Binary updates don't allow compile time options to be set, nor are the binaries optimized for your specific system. Check out the output of the 'configure' script on a samba or Perl tarball sometime- some apps have quite a few possible configurations, and binary distributions don't fit everyone's needs. It's possible, depending on what you use your system(s) for that you can solely rely on binary packages, but as you expand the purpose of a given system further, it's likely you'll eventually need to configure and compile from source yourself. BSD Ports is a good compromise or in between here, as it does compie from source, with the ability to still allow customization of packages... Scott Thanks . Vahric ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To
Re: two questions,
Gary Lum wrote: I have two questions, the first regarding CVSup and cron jobs, the second about port upgrade. I've gotten cvsup working correctly. It is following 5_1_RELENG and . for ports. I want to do a daily check using crontabs and have created one under root. However, my daily mail says that it can't find cvsup. IS this just a simple fix by putting in the full path or am I missing something? cron jobs generally need their PATH set explicitly, as I don't believe they source even /etc/profileso it's always a good idea to use explicit pathnames... Second, I was following the portupgrade tutorial for upgrading your installed ports at onlamp. http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html I ran portupgrade -arR about 9pm on Thursday. It is now 5pm on Friday and it's STILL running. My box isn't the fastest on the block, but it is a Dual P2 300 (running SMP) with 256 megs of RAM and am running X , Apache2, and PHP aside from the standard setup/ I guess my question is more a concern in that I inadvertantly installed ALL the ports in the collection. Did I? Manning portupgrade, the -a says upgrade all INSTALLED with the r's being forward and backwards recursive, but 20 hours? Highly possible if you have software like X and OpenOffice installed Scott __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: serial port programming
This may not help much, but I've done some serial port development in the past, across a fair number of *nix platforms. Regardless of 'what should happen,' aside from Linux and Solaris, other variants were just that- this unfortunately is from memory (from a WHILE back on this project), but each OS(Solaris 2.5.1/6/7/8, Linux(RH6.3-7.X), HPUX (10.20/11.X), Irix(agh!) etc all had specific settings, both in opening the file descriptor for the port, as well as in the flags being set in the termios structure. There's a generic Serial Programming FAQ, but dated, at http://www.stokely.com/unix.serial.port.resources/tutorials.html Also see: http://www.easysw.com/~mike/serial/ (a bit more up to date), but the problems I ran into were generally similar to what you seem to be describing- the port seeming to be in an incorrect or unknown state, regardless of the 'standard' way of doing things. Ultimately, I wound up comparing the initial open(), initialization strings via write(), and the termios struct settings to known WORKING code on the problem platforms, #def'fed the hell out of the code, and got most of it working. In this case you should be OK grabbing the source to minicom and doing the same I may be missing something obvious in my memory here, but after that one I had no further desire to do serial port/modem coding for quite a while ;-) (And God help me, HP developer support was almost as bad as M$!) Scott Jean-Marc Francois wrote: Sir, I've posted this question on a newsgroup, but got no response. Is there a cuaa-guru out there ? :-) Thanks ! Jean-Marc Francois Université de Liège --- I got a strange problem. I want to send a binary string to a small device I made via /dev/cuaa0. The port settings should be 19200, 8N1 (no RTS/CTS, no XON/XOFF). Looks simple. I've written a small program using the standard POSIX API : tcgetattr and the like. When I launch my program, it doesn't work (well, it works with Linux but not with FreeBSD). If I first launch minicom (and ask it to setup the serial port), let it in the background and launch my program, it works. The problem is that the dump of the 'stuct termios' my program is using with or without minicom is the same, so that's not the problem (stty -f /dev/cuaa0 gives the same output also). I thought all the serial settings were in this structure; where am I wrong ? Thank if you can help (if you can't, thanks for reading anyway :-) ), JM --- # stty -f /dev/cuaa0 speed 19200 baud; lflags: -icanon -isig -iexten -echo iflags: -icrnl -ixon -ixany -imaxbel ignbrk -brkint oflags: -opost -onlcr -oxtabs cflags: cs8 -parenb clocal time 5 --- Dump of struct termios : c_iflag : 0x1 c_oflag : 0x0 c_cflag : 0xcb00 c_lflag : 0x0 c_cc[0] : 0x4 c_cc[1] : 0xff c_cc[2] : 0xff c_cc[3] : 0x7f c_cc[4] : 0x17 c_cc[5] : 0x15 c_cc[6] : 0x12 c_cc[7] : 0x8 c_cc[8] : 0x3 c_cc[9] : 0x1c c_cc[10] : 0x1a c_cc[11] : 0x19 c_cc[12] : 0x11 c_cc[13] : 0x13 c_cc[14] : 0x16 c_cc[15] : 0xf c_cc[16] : 0x1 c_cc[17] : 0x5 c_cc[18] : 0x14 c_cc[19] : 0xff c_ispeed : 0x4b00 c_ospeed : 0x4b00 --- --- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Router question
Bryan Cassidy wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello everyone. Hows everyone doing tongith/today? Well, I'm taking a week off of work and thought I would read up on Security/Networking and anything else to do with making my system/webserver secure. I am going to Best Buy (ya i know, but it's the only computer related store in this shitty town so.) to buy a router and was just wanting to see what people could recommend on which ones are good. I've nver really gotten into this kinda thing before but want to learn. Will there be anything extra that I should get while I'm at the store? Cables etc? I only have one pc is there any point in having a router with one pc? Any links to how to set this up on FreeBSD? Thanks in advance. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/zn4Bm8uTTHnDH3ERAsR1AKDTzQHhzHV0ei2OevUSo0jzdksikACghTjr QGg8Wa7hgX1Dr4vTXGjgCo8= =LXnN -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] If you've got only a single PC to connect, then the only reason for wanting (not needing) a (presumably broadband) router is anything fairly recent will do NAT (address translation, basically lets 1 PC share 1 public IP address). One of the 'side benefits' of NAT routers is that they closes off connections initiated from the outside world (the Net). Not that big of a deal with freeBSD, as the default services running by default are pretty sensible (compared to past and some current versions of Solaris, RedHat, SuSe etc etc), but this is generally A Good Thing if you're running Windows at any point, or are playing around with different services, as many of them have had exploits in the past that script kiddies like to jump on. Of course, you can also turn your bsd system into a router by adding another NIC, and then attaching a hub or switch to one NIC, and the other to your DSL or cable modem... The disadvantage (serious annoyance IMHO) of 'hardware routers' (opposed to software running on bsd or another *nix) is the general lack of logging abilities. When I used to run several personal domains, it was _amazing_ the number of portscans and IMAP and other exploits that would be attempted on my systems. I personally like to know what's being attempted against my systems, and most of the 'off the shelf' routers from BestBuy, CompUSA etc are a far cry from Cisco and others, who do run a 'real' (meaning user accessible) OS and can handle logging as well as complex rules for port forwarding or dropping routes As far as freebsd is concerned, if you do decide to get one for whatever reason, the router is effectively dual homed, meaningin this case, that it has an internal network IP (eg 192.168.1.254) as well as an external IP which is what 'the world' sees, which is the IP assigned to it via the cable/DSL modem/your ISP. You'll need to set your 'internal' systems (your home PCs/systems) to have their default gateway point to the internal IP of the router. That will be the case regardless of whatever OS you run... Of course, even a 486 class system, with a minimal install of freebsd, with /usr mounted immutable, and a small hard drive, would make a great router, and you could also play around with a remote log host for logging, monitoring tools like logcheck, sentry, saint, and others, as well as designating your own port forwarding and firewall rulesets...if you decide to buy an 'off the shelf' router and still want some sort of idea of who's trying to do what to your system(s), you can port forward a 'popular' port (like IMAP/139, http/80, and/or mail/25 to different ports on your local system and set things up to only log the connection instead of running the actual services.. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Questions about updating...
rotten rottie wrote: I am a linux user that wants to switch to freebsd... I am a bit confused about applying updates etc.. I installed a box for trial it was 5.1, I wanted to see if I could use ports to update openssh for a test examp. After the port installed I noticed that another version of openssh was installed on the system. I talked with a friend and he said that it was part of usr/src and I could update it by compiling the usr.bin version.. which was fine and worked. Here are my questions: 1) if there are two trees(lack of better words) why would ssh exist in both the system tree and the ports tree ? Wouldnt it be better to have it in the ports tree ? Well, it IS in the ports tree, but bear a few things in mind: 1. Everything in /usr/src is considered part of the base system, equivalent to 'system' in GenToo (unsurprisingly, as GenToo Portage/emerge is based heavily on bsd ports...but see below) 2. The ports tree is optional, but where you can track system source updates to a given CVS label, eg STABLE (recommended for production/stability), the ports tree isn't versioned, it's the equivalent of current. When you build from a port, it essentially builds the package and does a pkg_add, so it's still tracked by the bsd package system. This combination allows you to keep the base system at a stable level, and then either NOT update your ports tree to get the equivalent ports from the particular label you're tracking on a given system, or to selectivly update single ports software, or all of the ports collection. 2) I have used gentoo in the past and am curious if there is something simular to emerge -up world/system -- I would like to cvs the ports/sys and then be able to see if anything need upgrading .. is this possible ? Yep, install portupgrade and cvsup. If it's on a slower system, highly recommend doing it via pkg_add -r portupgrade or pkg_add -r cvsup to avoid having to compile ruby, perl and possibly other dependencies from scratch. Once you become familiar with the way ports/portupgrade and cvsup work (Note- sections on all 3 in the handbook, should be installed under /usr/share/doc/handbook on your system), you can then if you decide to, use portupgrade and the buildworld target to effectively rebuild your entire system from source. The quickest equivalent to emerge -pUD world is using pkg_version 3) Say there was a update to openssh .. which would be the proper way to update .. sync the sys tree and then just update ssh .. or sync the tree and recompile the system ? or remove the sys version and install the port version and update the port ? Set up cvsup properly (handbook + example file in /usr/share/examples) to the label you want to track to, cron it, and have it mail you output, and subscribe to the freebsd security mailing list. Either should be enough to give you some indication by itself.. I am very happy with freebsd .. Im still in the exploring stage .. The reasons for my questions is that I am a little weary of using freebsd in production if I dont easily know when updates are avail, having to recompile the system everytime I need a patch for a service. You don't nescessarily need to recompile the entire base system, let alone the equivalent of 'world,' for an update. portupgrade and pkg_version will help out here... Scott Thanks for helping me convert, rottie _ Dont worry if your Inbox will max out while you are enjoying the holidays. Get MSN Extra Storage! http://join.msn.com/?PAGE=features/es ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adding new IP's without reboot?
Ben Dover wrote: Is there a way to add new IPs to a FreeBSD 4.9 or 5.1 box without rebooting. I add them to /etc/rc.conf but they are not effective until a reboot. There are some webhosting assistant programs which allow instant use of IPs with *nix and I was hoping there was a way to do this in FBSD. _ Gift-shop online from the comfort of home at MSN Shopping! No crowds, free parking. http://shopping.msn.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] If you've got other NICs installed, then see 'man ifconfig' or use the ifconfig_* line from rc.conf asa template. If you have limited NICs, they're likely using aliases, which is covered although briefly in the ifconfig man page. Easy on Linux, haven't used IP aliases on freebsd as of yet, but a quick google shows: http://freebsd.peon.net/tutorials/6/ IP Aliasing Doc/Tutorial... HTH, Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: (Semi)hot swap IDE
Brent Wiese wrote: Hello! I'm looking for a cheap solution to back up a FreeBSD 4.8 machine. Cheap meaning that tape drives are out of question. Even external FireWire drives are deemed a bit too expensive by the folks for whom I'm doing this research. This leaves one option I can think of - standard IDE drive in one of those removable HDD trays. We'd probably use two drives, one being active in the machine and the other being kept somewhere out of the house for safety. clip I personally think this a great alternative to tape, especially given the low cost per GB of drive space. 3ware cards support hot swapping IDE and there are several hot-swap IDE drive trays in the $50-75 range. You *MUST* make sure the trays are really hot swap. Most are not. The ones that are will be very specific about saying so. My computer vendor uses these: http://www.amtrade.com/pc/ata133_ide_mobil_hdd_racks.htm I personally have not used them, so don't blame me if they end up not working as advertised, but my vendor is happy with them. I have also never used that company or its website until today, so I have nothing in the way of recommending for or against. Another alternative I just found this past weekend... There is a company making hot swap IDE trays, but instead of being IDE out, they're USB 2.0. It came to my attention that FreeBSD 4.x lacks USB 2.0 support. I used these USB 2.0 trays in a Windows server and hadn't thought that USB 2.0 might not be supported in FreeBSD 4.x. I don't use USB in my FreeBSD servers, so this never crossed my mind. I'm providing the link to the HDD trays above to show my apologies. :) Cheers, Brent ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] FWIW, those are pretty similar to what I've used in the past, with the aforementioned IDE bus issues. The chassis/drive carrier doesn't really add much into the mix one way or another- I've yet to see a carrier that effectively emulates the (removed) drive being online, which of course would pose it's own set of problems... ;-) No bus hangs, but whazt about, Oh yeah...oops, I forgot I included that mount point in THAT script! :-) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: remote mount hangs sysstem
RYAN vAN GINNEKEN wrote: Is there a way to mount a cdrom or remote file systems using fstab but not having it crash out the system. example if i have a nfs share set up to another machine and that machine goes down the next time i reboot my system the machine hangs when it cannot find the share and will not allow me to do anything and i have to hook up a monitor and keyboard to get it back the same happens when there is an error on a cd rom ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Use the background (-b or bg) and interruptible (-i or intr) options, along with a reasonable timeout. See man mount_nfs for the specifics. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: remote mount hangs sysstem
RYAN vAN GINNEKEN wrote: this is my fstabs file could you please explain where i enter and set values for the -R and -b options # See the fstab(5) manual page for important information on automatic mounts # of network filesystems before modifying this file. # # DeviceMountpoint FStype Options DumpPass# /dev/ad0s2b noneswapsw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s4e /usrufs rw 2 2 /dev/ad0s3e /varufs rw 2 2 proc/proc procfs rw 0 0 #-- #remote mounts #-- v21.higcoup.ca:/usr/src /mnt/v21.highcoup.ca/usr/srcnfs r noauto0 0 v21.higcoup.ca:/usr/local/ect /mnt/v21.highcoup.ca/usr/local/etcnfs r noauto 0 0 change this: v21.higcoup.ca:/usr/src /mnt/v21.highcoup.ca/usr/src nfs r noauto0 0 to: v21.higcoup.ca:/usr/src /mnt/v21.highcoup.ca/usr/src nfs r,bg,intr 0 0 and likewise for the second NFS entry...you should still specifiy a timeout, but you'll have to decide on one..and the system will boot with those options with the NFS server down.. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: while I have your attention... Names, copyright and IPv6
paul van den bergen wrote: Hi all, given how clearly you-all answered my query about 'hostname' (thanks folks) I thought I'd chance my luck. so, let me get this straight... in the IPv4 world there is this thing called DNS and domain names... I can buy my self a name off a name vendor - eg. bergen.org... I then get to own that name... so, Question 1) where does the DNS record for that name reside? with my ISP? with the name vendor? Well, the short version is there are several 'root servers' which anyone running BIND/DNS should laready have a list of- they are the initially consulted servers with respect to which servers are 'authoritative' for a given TLD(Top level domain, eg .com, .net, .edu, ) If you registered a .org domain, one of the TLD Domain servers for .org would be queried, and then down to your domain, eg bergen.org, which would point to who is registered as being Authoritative for the bergen.org domain. This is generally handled when you register the domain name- you're given the option in many cases to have the registrar (eg, Network Solutions, GoDaddy.com (sucky name, but very inexpensive domain registrations), etc) handle DNS for your domain, or to specify your own name servers (which can be hosted by yourself, or someone that has agreed to providfe DNS services for your domain(s)). In theory, and generally in practice, these changes can take up to ~12 hours or so to propgate, up to 48-72 hours to propogate your DNS records to the rest of the nameservers online. lets say I have a network and wish to name the boxen depending on the OS running on them thus... microsoft.bergen.org SCO.bergen.org Sun.bergen.org Question 2) where do those DNSrecord reside? On whomever is authoritative for the bergen.com domain. type at a Unix prompt: dig bergen.org and you'll see the system ns.bergen.org is Authoritative for that domain...although you may want to do a 'dig bergen.com' for comparison :-) Question3) surely I'm breaking copyright or trademark laws here? whats to stop me being sued? for that matter, whats to stop vexatious litigation? and what about the name brokers? do they have legal responsibilities? and if I run DNS server on my network am I then a name provider for myself and have to worry about litigation? This is a grey area (surprise), with both the Trademark owners as well as the 'little people' winning in various cases. AFAIK, I haven't seen anyone go to court over the hostname portion of their site- remember, 'the Net as we know it' has now almost been reduced to simply ftp.domain.TLD and www.domain.TLD at this point, with 'the world at large' rarely using hostnames other than ftp or www. Also, see: http://www.networksolutions.com/en_US/help/legal-info.jhtml and http://www.networksolutions.com/en_US/help/domain-magistrate.jhtml for some info on domain disputes, or Google for 'domain disputes' Question4) or to put it another way, what is the relationship between trademark control institutions and name brokers? See above, it's still being figured out ;-) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: telnet and ssh problem.
[EMAIL PROTECTED] wrote: Hi Every body; I have a FreeBSD Server. It has telnet and ssh up. They work, but not properly. When I ssh to the server or telnet from Linux shell by each Enter I see the following message: bash: \033]0;[EMAIL PROTECTED]:${PWD/#$HOME/~}\007: bad substitution But when I telnet from Windows no such error is shown, but obviously the terminal does not work properly, especially when using things like less, vim and ... I would be thankful if someone help me. Yours, Mohammad H. Falaki. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Sounds like a classic terminal emulation issue. On your Linux system, do: export TERM=xterm and then telnet or ssh in. Let me guess, you're using a 'funky' terminal like GNOME Terminal or KTerm? Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ooops - Re: while I have your attention... Names, copyright and IPv6
paul van den bergen wrote: Ooops... I forgot the most important part of my question... IPv6 how does this all work under IPv6? is the IPv6 domain name allocation as fully fledged as teh IPv4 services? I.e. are there and what are the restrictions on who can set up a name broker service for IPv6? what are the likely gottchas? Paul- AFAIK, IPv6 is in fact enabled/capable in BIND currently, but no one uses it- IPv6 will be a LONG time in coming to everyone, with the major challenge being a 'transition phase' where devices (routers for a prime example) are able to handle both ipv4 and ipv6...without that, ipv6 is useless outside of 'playing with it locally.' This shouldn't have any effect on name registrations, they will just eventually map to both ipv4 AND ipv6 addresses.. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mounting windows FS questions
paul van den bergen wrote: Hi all, I have a dual boot machine Win2k + BSD... obviously I can mount the windows partition under BSD. can I mount the BSD partition(s) under windows? I have been told that writing to the windows partition from BSD is kinda dubious. why is this? is it possible to work around this? Unsure if there's anything to mount BSD partitions from within Windows- I wouldn't be surprised, but as Windows uses broken/different permissions and file attributes, I wouldn't really want to do this. For mounting Windows filesystems, you can mount fat/vfat/fat32 partitions all day long read-write, but NTFS uses some sort of sequence IDs in their file attributes, which if ignored or screwed up, can cause serious issues on the filesystemso in short, I don't mount NTFS read/write ;-) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: newbie: use CR in RE?
Jerry McAllister wrote: Hello. Just want to know how to use special character in Regular Expression. I wish to remove all the carrier returns from a text file, I can use: tr -d \r text_file modified_text_file But if I do: sed -i s/\r//g text_file it actually removes all the character r from the file. This is also a problem in vi(1). Besides CR I wish to manipulate tabstops and line-feeds with RE too. So why not just use tr? \t should get tabs, as you noted \r gets CRs I don't know linefeed off hand, but wouldn't be surprised if it was \l. It follows the usual conventions. There are more things besides -d that you can do with tr also. jerry ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] You can do what you want in vi or sed, you just need to escape the first escape character, eg sed -i s/\\r//g vi: :/s/\\r//g Note that with your tr string, you're already 'wrapping' the backslash-r in double quotes, thereby avoiding shell expansion.. You can also use the dos2unix command, although I don't see it in ports... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: newbie: to pipe the result of a program as commandlineparameter for another.
Herculano de Lima Einloft Neto wrote: You can use: find [whatever] -exec rm -rf '{}' \; or find [whatever] | xargs rm -rf Usually, the answer to your question would be: use xargs or put the second command between apostrophes. Something like: vi `which mozilla` I think if you use rm -rf `find [whatever]` it might work.. DON'T use these lines unless you're absolutely sure your find will return exactly what you want.. rm -rf is the most destructive Unix command, so if you don't know what you're doing, maybe you should wait a couple of months until you do. :) Amen ;-) Seriously, the best thing you can do is just run the 'file listing' or 'data portion' of any command you're going to pipe together (or use -exec, xargs, redirection) by ITSELF, to make sure you're getting the expected results, sanity check the results, and THEN using command history, bring up the same command and wrap it in backticks or add the -exec or | xargs clause to it. Consider the following, and what would happen if BOTH were executed blindly: find /tmp -name jre* -exec rm {} \; OK, life's happy, remove all jre* files in the /tmp heirarchy. find / tmp -iname jre.* -exec rm {} \; Oops, accidently put a space between / and tmp. Hope you didn't actually WANT a working Java/jre on your system! Sane way: find /tmp -name jre* check results If OK, then use the SAME EXACT COMMAND via shell command line editing, and just wrap or add to it: find /tmp -name jre* -exec rm -f {} \; Scott Read the man pages for rm, find and xargs so you can understand this. Best, -- Herculano de Lima Einloft Neto [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: (Semi)hot swap IDE
Toomas Aas wrote: Hello! I'm looking for a cheap solution to back up a FreeBSD 4.8 machine. Cheap meaning that tape drives are out of question. Even external FireWire drives are deemed a bit too expensive by the folks for whom I'm doing this research. This leaves one option I can think of - standard IDE drive in one of those removable HDD trays. We'd probably use two drives, one being active in the machine and the other being kept somewhere out of the house for safety. The machine has an integrated Promise TX2 controller and two 80 GB drives are currently configured as RAID1 attached to this controller. There are two additional (non-RAID) IDE channels on the motherboard, one of them has CD-ROM attached to it and the other is free - I could attach the backup HD to that. I've done some web searching and I'm getting controversial results. Most of the info I find seems to indicate that IDE devices cannot be hot-swapped. At the same time some vendors are trying to sell stuff on their web pages which they advertise as hot swap IDE drive bays. I remain skeptical. If the majority is right and IDE drives cannot be hot swapped, this would indicate that we would need to power down the machine every time we want to change the backup HDs. This would be less than perfect, but since we are cheap we could live with it. OTOH I read 'man atacontrol' and saw that there are commands like 'atacontrol detach' and 'atacontrol attach' which seem to be meant for detaching/attaching IDE devices while the machine is running. Does this mean that I could actually run 'atacontrol detach channel', swap the drive and then run 'atacontrol attach channel' and be able to use the second HD after that? Is anyone doing something like that? -- Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/ * I don't know whether to kill myself or go bowling ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Tomas- this may not be of much help, but hopefully some at least. I dislike IDE and tend ot avoid it like the plague when possible, but: 1. The 'generic' removeable drive trays for IDE that use a normal IDE controller (like attaching to the slave or secondary channel on most onboard IDE), with another disk or device attached that's being used, do not support removeable devices. It's _extremely_ likely that you'll hang the IDE bus. 2. Having mentioned #1 already, it's _possible_ that using a secondary controller (unsure if this can be the second channel of onboard or not, but NOT simply the slave of a given channel with another device), and atacontrol, it appears (no, I have not tried this), you can bring the controller itself (or channel?) offline, attach or remove the drive, and then reattach it. I'd like to hear more details on this one myself, and may have a system I can test it on if I get too bored, but have long ago chucked my IDE trays.. 3. Using one of the relatively inexpensive IDE RAID controllers, with an enclosure, should allow you to remove and add drives without issues. 4. Other ideas- backup to a single network fileserver equipped with RAID or additional drives for backup only. other network system- direct to tape USB hard drive caddies- have seen these, but not used, converts IDE drives to USB device, can re-use existing IDE drives for backup via USB port. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Monitoring a file?
Cordula's Web wrote: Hello list, maybe someone knows the answer for the following problem already? Summary: What is the canonical way to monitor accesses to a file? Problem description: A file, let's say, /path/to/a/file, is being modified by an unknown process P(u) at random times. Unfortunately, the name of the program ran by P(u) is unknown. The goal is to catch P(u) red-handed, just the moment it accesses /path/to/a/file, e.g. by looking up in the process table with ps(1). No solutions: = 1. Polling /path/to/a/file with stat(), lstat(), fstat(), and running a ps(1) as soon as the access times change; then diff(1) on all ps listings, trying to identify P(u). This solution is not good enough, because P(u) runs faster than the polling interval, and setting this polling interval to very small values is too expensive on a production server. 2. NFS mounting /path/to/a/file, and modifying nfsd(1) in such a way, that it runs ps(1) as soon as a request for /path/to/a/file is received. Let's call the modified nfsd nfsd-debug. Of course debug-nfsd and P(u) must run on the same machine. This is not good enough either, because ps(1)-listing is too long, and not always conclusive. 3. Using kqueue(2) and kevent(2) in a monitoring process P(m). P(m) would be attached to /path/to/a/file, and would use kevent(2) to receive kernel notifications as soon as /path/to/a/file is touched. Probably not enough either, because it is not possible to know which process triggered the event, only that an event occured on that vnode. - Is that correct? I'm not familiar enough with kevent(2). Question: = I assume that some kind of monitoring process P(m) is needed, which would attach to /path/to/a/file, use kevent(2) to get notifications from the kernel. Now, how could P(m) find out, which process generated the events it gets? Alternative question: = Is there another, preferably clever, way to solve this problem? Thank you. You may want to take a look at 'fam,' in /usr/ports/devel/fam , as some of the code's already been done for this type of monitoring AFAIK... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: a good way to save a keystroke?
Marty Landman wrote: I wanted to look at a file and figured why not pipe the output of which to more, which of course didn't work so I figured if I backticked the which output with more in front that would work, and apparently it does (though I'm not sure that the cmd itself wasn't executed?). e.g. more `which apachectl` Is this a reasonable way to get what I'm after, or a bad thing? It's fine, although anything inside the ticks does in fact get executed, eg which apachectl expands to /usr/local/bin/apachectl (not running apache, don't remember the freebsd location offhand but you get the point) so then the literal text '/usr/local/bin/apachectl' replaces the command inside the ticks to become: more /usr/local/bin/apachectl So yep, it's doing what you want, the way you wanted to...use something similar fairly often myself, although note that the 'current' standard for executing commands is now $(cmd), eg more $(which apachectl) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: customized /usr/share/skel
Dru wrote: I'd like to customize /usr/share/skel. It's an easy matter to edit /usr/src/share/skel/Makefile and to make my own dot files. However, will my customizations get overwritten when I make my next world? If so, what's the best way to go about preventing my files from being overwritten? e.g. should I place my custom Makefile and dot files in a different directory and rerun my Makefile after a successful install world? Dru ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] /usr/share/skel is apparently a directory for _examples_, made apparent by the file naming, eg dot.cshrc (instead of .cshrc). Put your system wide files in /etc/skel/ and they'll be used as appropriate when new accounts are created, and should not be touched by any rebuilds. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Static IP and fully qualified domain names
Peter Ulrich Kruppa wrote: Hi! This question is inspired by a recent mail on this list. My ISP was so nice to give me a domain name (pukruppa.net) and assign it statically to an IP (213.146.114.24). [So now everybody in the world can telnet pukruppa.net and crack my private machine :-) ] From reading manuals one should think, that now I could give my machines names like one.pukruppa.net, two.pukruppa.net, etc... and all these would be reachable via internet - but they aren't. The only one that can be accessed is pukruppa.net . How comes this? Regards, Uli. The short answer is that you only have a single IP address assigned, and as you are not authoritative for DNS records for pukruppa.net, you are unable to 'subdivide' or use any more IP addresses, which would be required to add additional hostnames. type: dig pukruppa.net at your freebsd prompt to see what I mean, note the AUTHORITY section... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: a good way to save a keystroke?
Marty Landman wrote: At 08:40 PM 11/21/2003, Scott W wrote: So yep, it's doing what you want, the way you wanted to...use something similar fairly often myself, although note that the 'current' standard for executing commands is now $(cmd), eg more $(which apachectl) I get FreeB more $(which apachectl) Illegal variable name. FreeB Maybe I should've mentioned I'm on 4.8, or is there another reason? Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml D'oh, my mistake- you're using csh I take it? Sorry, I believe the $(cmd) syntax is now 'the standard' in sh/ksh/Bourne/bash, but evidently not cshsorry, I've never been keen on csh, but that syntax won't work for you, although it will/does even in freeBSD sh. Sorry for the confusion, Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD, FHS, and /mnt/cdrom
Frank Murphy wrote: The folks at the Filesystem Hierarchy Standard (FHS) are discussing (again) where directories for recurring temporary mount points should go. Recurring temporary mount points are for things like cdroms, floppies, and digital cameras as well as HD partitions from other OSes (like MS Windows). Red Hat started putting these in /mnt (e.g. /mnt/cdrom), but that totally breaks compatibility with the BSDs, which have specified /mnt as an empty directory for ad hoc temporary mounts. SuSE has started putting these in /media, and now folks on the FHS list would like to know what people in the BSDs' communities would prefer. I imagine your answer will be something like We don't care; do what you want, but I would like to present the different ideas, and perhaps you would prefer one. So, please put these in the order of most to least preferred, and say why you like or dislike any of them. - All mount points in / (e.g. /cdrom, /camera, /windows/C) - current FreeBSD standard OK for a small number of devices, but not down the road when the possibility for a sizeable number of transiently mounted devices could clutter up / . It would be 'less terrible' if a few 'classes' of mounts were created as part of the standard, with actual devices/filesystems below each, although the potential to overly clutter / still exists. Example: /audio /audio/ipod /audio/generic /video/ /video/sonycam /video/generic etc...actually, I think I'm still less than crazy about this one ;-) - All mount points in /mnt (e.g. /mnt/cdrom, /mnt/camera, /mnt/windows/C) - breaks FreeBSD standard for an empty /mnt Don't like it, as others have stated, too many of us are in the habit of having an 'empty' /mnt , unless we chose to create subdirectories, and I often mount something I know will be used short-term only at /mnt and use it as a single point, instant mount point for 'whatever' I'm mounting temporarily. - Anyplace at all Nope. This just leads to obnoxious workarounds and/or additional configuration files for developing software that needs to use either. Again, using a 'device class heirarchy' comes to mind, like a 'whereis mountd', where a program could ask for the location of a specified class of device, and then in turn scan any mounted devices, but this one's a BIT out of scope of the FS project ;-) - Anyplace but /mnt (i.e. what the FHS 2.2 currently specifies) K, but same as above, although I suppose it depends if they are looking to only define a single top level directory, or possibly more than one, eg subdirectory/mount points? - Anyplace but / or /mnt (e.g. /vol/cdrom, /var/mnt/camera, /media/windows/C) As long as it's consistent and not ALL of the above for the given devices ;-) Again, prefer a single dir entry into /, which can grow as need be... (some suggestions have been /media, /mounts, /vol, /var/mnt, and /var/tmp/removable. Others?) /trans = transient /media (SuSe way) is OK but possibly limiting (thinking of video and other devices that may possibly be mountable instead of accessing via /dev/*) /vol I'm OK with but fairly sure it's being used somewhere already...Solaris? /tfs = temp (or transient) file systems, but doesn't exactly roll off the keyboard.. /fs = easy to type, easy to remember (filesystems), OK by me ;-) /tmp is already taken, drat ;-) Scott Thanks letting us know how you feel about this, Frank Murphy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CVS Server
Aleksander Rozman - Andy wrote: Hi ! I was wondering if anybody knows about any tutorial on how to set CVS server? I would like to set it so that I could connect only through ssl (like on sourceforge). I need server for my personal projects, which are in last time getting quite numerous, and I have been transporting files through cdrom, but it's quite anoying... Any help is appreciated. Andy ** * Aleksander Rozman - Andy * Fandoms: E2:EA, SAABer, Trekkie, Earthie * * [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper, * *[EMAIL PROTECTED] * Heller's Angel, Questie, Legacy, PO5, * * Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender* * ICQ-UIC: 4911125 * * PGP key available * http://www.atechnet.dhs.org/~andy/ * ** ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Umm, Google really IS your friend at times ;-) http://arm0nia.org/doxy/pm_for_apps/html/cvs.html (Using SourceForge's CVS for PM) http://cvsbook.red-bean.com/ (free CVS book) And of course, http://www.cvshome.org/docs/ Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Make Problem
BlackCat Hack Palace Admin wrote: I do: cd /usr/ports/emulators/wine make but it began to write me that local modification time doesnt match the remote ? What can I do ? thx ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Any chance this is happening over an NFS mounted directory? Sounds like you may need to sync the NFS server and clients times...what's the exact condition causing this, and the specific error message? Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Make Problem
BlackCat Hack Palace Admin wrote: I do: cd /usr/ports/emulators/wine make but it began to write me that local modification time doesnt match the remote ? What can I do ? thx ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Eek- your system thinks it's January 2003 man the 'date' command.. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mysql can't finf shared library
Gary Kline wrote: After upgrading to the latest mysql323-client and reinstalling my root password, here is what happens: mysqladmin -u root password 'fooobar1234' /usr/libexec/ld-elf.so.1: Shared object libmysqlclient.so.10 not found [EMAIL PROTECTED]:/etc# locate libmysql /usr/local/lib/mysql/libmysqlclient.a /usr/local/lib/mysql/libmysqlclient.so /usr/local/lib/mysql/libmysqlclient.so.10 Anybody know what's going on here? Is this a known bug? thanks, people, gary Try the following: # export LD_LIBRARYPATH=$LD_LIBRARY_PATH:/usr/local/lib/mysql and then try it again. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Another Newbie Question: C or C++
yo _ wrote: I would recommend not trying to learn C or C++ by yourself from a book. The fastest (and best way) to learn the right stuff is to take coursework from a university or community college. Not that I like disagreeing for no good reason, but I wholeheartedly disagree with that statement. If the courses are any good, you'll get feedback, and you'll be paced and challenged with projects designed to help you learn. Going it alone in an unguided environment will only familiarize you the lesser aspects of a language, if you last that long. The difficult and most important aspects of the language (like pointers, virtual functions, references) will become almost insurmountable trial-and-error obstacles if you try to teach yourself. If you want to get a lower paying and boring job programming in C/C++ for whatever reason and have a piece of paper that says you can have that job, I recommend wasting 4-6 months taking a course in your spare time to learn C/C++. If you want to be top of your game and learn C/C++ without wasting time on topics that take you a minute to understand, get a good book, practice the topics you have learned at your own pace, get numorous code examples for things you may want to do (sockets, GUI, OpenGL, ncurses, threading, kernel interfacing) from the glorious and infinite internet and emulate good programming style (using const qualifiers in C++, using #defines in C, etc.). Also be prepared to teach yourself because you may not always be prepared for a job you may find yourself with; learn how to easily learn and use external libraries. Like others it seems, I have a problem with _part_ of this statement. I have taught C++ and others previously, and can say _some_ people respond much better to 'guided' learning in person- eg, classes. Those that take what they leanred in class and go on to actually apply it, or come up with questions on their own and then pursue the answers on their own time, become much better programmers. Others are completely capable of learning outside of a classroom environment- Note I didn't say 'on their own,' because a good book and _working code_ examples, and then their own working code, are all invaluable parts...so anyway, I don't agree with ALL classes being a waste, although it highly depends on the instructor, the student, and perhaps most importantly, what the student DOES with the information given to him. A very good point was brought up though, and it used to be embedded in every class I taught- the things not nescessarily language specific- problem analysis, design, good programming practices and structure. These are not always taught in the 'usual comp programming classes' unfortunately. The other point I used to mention (while teaching Pascal, heh!) was if they took only a single thing away with them from the class, it was this: You MUST learn how to do research on your own, and solve your own problems! That doesn't mean never asking for help, whether in person, via mailing lists or newsgroups, but it means if you have a problem, you should be _capable_, and know how to, research it yourself first. When you think about it, every single program created is unique (k, cept maybe where SCO stole source code and then cried to lawyers about it ;-). Even programs that have the same design, even down to the API level, are unique. When you start a new project, on your own or in a group, it's HIGHLY likely you will be doing something you have never done beforeso learning how to find information you need, quickly, becomes paramount. The best programmers will teach themselves. A statement that may be on the borderline of opinion to fact by constant example. After all the first programmer, in fact, taught herself. -Rian Hunter _ MSN Messenger with backgrounds, emoticons and more. http://www.msnmessenger-download.com/tracking/cdp_customize ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie: Correct directory for file server
Tom Munro Glass wrote: On Tue, 11 Nov 2003 15:31, Alex de Kruijff wrote: On Tue, Nov 11, 2003 at 01:53:20PM +1300, Tom Munro Glass wrote: On an intranet file server, the users' private files are obviously stored in /usr/home/username but where is the correct place to store files that are common to many users? Would this be something like /usr/home/public or /usr/local/public or even /var/public? Thanks, There is no default. You can choice your own directory. Placing this in the /usr slice or on a second disk seems reasable. /var wouldn't be advisable. I guessed there isn't a default, but I thought there might be a convention for this and I want to follow conventions where ever possible. Tom Munro Glass Depends on what philosophy you subscribe to- if it's on a local system only, then create a group for members that will need access to it, and create a directory in the /home tree, like /home/'project_foo If it's going to be NFS mounted by other systems, then create an /export directory and put it similarly in there, which has the convenience as you change your filesystems (and you will...) and perhaps share more directories, or add more disk, you can keep them 'centrally' located (or mounted) under a single top level directory.. Unless your /var filesystem is _huge_ (or on the same filesystem as /, ick!), I wouldn't put anything to be shared in the /var tree...(as already mentioned). Likewise, /usr is meant to be capable of being mounted read-only, and contains (generally) static binaries and libraries required for full multi-user (read this as networked) mode operation of the system, so I'd abstain from using /usr either. Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie: Correct directory for file server
Tom Munro Glass wrote: Depends on what philosophy you subscribe to- if it's on a local system only, then create a group for members that will need access to it, and create a directory in the /home tree, like /home/'project_foo If it's going to be NFS mounted by other systems, then create an /export directory and put it similarly in there, which has the convenience as you change your filesystems (and you will...) and perhaps share more directories, or add more disk, you can keep them 'centrally' located (or mounted) under a single top level directory.. Unless your /var filesystem is _huge_ (or on the same filesystem as /, ick!), I wouldn't put anything to be shared in the /var tree...(as already mentioned). Likewise, /usr is meant to be capable of being mounted read-only, and contains (generally) static binaries and libraries required for full multi-user (read this as networked) mode operation of the system, so I'd abstain from using /usr either. Scott Thanks for this Scott. The files are going to be NFS mounted by Linux workstations and SMB mmounted by Windows workstations, so I guess that /export is the right place. I will make this a separate filesystem. I currently have separate filesystems for /, /tmp, /usr and /var. Considering your comment about /usr being mounted read-only, why is /home a link to /usr/home when hme obviously contains variable data? If I use a new filesystem for /home, should I mount this at /home and make /usr/home a link to /home, or do I just mount it at /usr/home? Tom Hi Tom- /usr doesn't _have_ to be mounted read-only, but it's not uncommon to do it on systems connected to the net/susceptible to hacking/just for security. Default Sun for home is /export home, primarily b/c Solaris thinks it's always the NFS server ;-) Most Linux distros use /home, and I'll admit I'm not positive what freeBSD uses as a default, but I expect it to be /home and again, NOT under the /usr tree- home directories contain dynamic, changing data. The /usr filesystem remains static aside from the occasional app that 'must' be installed into /usr/local, or adding vendor packages (think base packages or ports installed for freeBSD), which once it's set up for a production system, may actually stay static for years in some cases (with the possible exception of security fixes depending on the environment). Again, mounting the home dir as /usr/home would preclude you from ever even considering mounting /usr as read-only (or 'immutable' is I _think_ the other freeBSD option?) So, not sure why your system is set up the way it is, but fairly likely it was done that way because of mis-judging disk space requirements, or the way the drive(s) were partitioned... you can always create a new home dir and copy it over via: rm -f /home (removes symlink) mkdir /home cd /usr/home tar cvf - . | (cd /home tar xvf - ) Scott ___ [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
Alex Kelly 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? If so, should I learn C++ and forget C? Alex Again, it depends on WHAT you'd like to program. That isn't to say you CAN'T program a specific type of application in language X, but some languages lend themselves to different tasks better. C++ was supposed to 'replace C' since the 80s or so. It's become more predominant for applications than C in _most_ cases, but the core OS of *bsd, Solaris, HP-UX, AIX, etc etc are all C. Device drivers are written in C. A large number of system daemons/services are written in C. And yeah, because C lets you 'do as you want,' there are also some buggy C programs out there ;-) C++ may be a bit much if it's your first programming language. There are things in CC++ that are ambiguous, moreso than in C- like the number of possible uses for the keyword 'const' among others ($^#*), and STL can be a _handful_ if you've never learned how to 'roll your own' data structures. C pointers are at the same time a wonderful thing and a PITA to deal with at times. C++ is generally MUCH fmore suited to GUI programming, and a few other tasks...but: If you learn C first, and become competent at it, when/if you move on to another language, you'll have a better understanding of what's going on even if the 'next language' hides significantly more from you and makes your life easer (less coding, more use of libraries, foundation classes, STL, etc). It's also not a terrible thing to learn C, and then ease into C++ simply as a 'better C'- stronger type checking, warnings that are now errors, and if pointers freaked you out TOO badly in C, you can then breathe a sign of relief and 'cheat' and use some of the functionality of C++ like references.. If you DO go that route (C first), it's likely you'll be a better programmer in the end, seriously- starting with C++ can be like trying to run before you realize you have feet, and can result in 'knowing' C++, but writing code that no one in their right mind wants to touch.. starting in Java is akin to someone being shown how to fly, but not knowing how to land, or turn, or much else ;-) Possibly not the best phrasing, but I've met MANY programmers that are very good at one specific thing, but put them even slightly out of their element (like umm, take Java away from them and make them use a 'real' language!) and they're extremely confused- mention POSIX system calls and they go blank... The best thing I can suggest, which I do myself when I try to _force_ myself to get Java more solidly into my skillset, is to first learn 'a bit.' Go through one of the recommended books (and BTW, whoever said Eckel's TIC++, yep, good call, missed that one although it's on all of my systems HDs :-) and DO the excercises. Pace yourself, especially while learning, and don't think 'you know that already' and skip over excercises and questions, no matter how inane some of them may seem ;-) Then, pick a 'real' project you'd like to do, starting reasonably small, maybe a small part of a larger project...or pick up Steven's APUE and write a talk daemon and client or something similaryou'll find things that you thought you knew that you realize you have no idea about. One of the niceties of *nix are the man pages- if you're looking for a specific function (in the standard C library or system calls), try: man -k subject where subject is a single word, like: man -k open will return a LOT of summaries of man pages with their headers including the word 'open.' man man or man intro to get info on limiting them further, but you'll find youself using man pages a LOT while you go through your project, whatever it is. Complete the first one, whatever it is, and then pick up the next book, then go a bit more ambitious, and use what you've got so far along with what should now be more 'reference' books than 'teaching books' and keep goinguse the force, Luke ;-) Ok, I'll shaddup now... Did you catch the subtle hint in there to start with C? ;-) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie: Correct directory for file server
Tom Munro Glass wrote: Hi Tom- /usr doesn't _have_ to be mounted read-only, but it's not uncommon to do it on systems connected to the net/susceptible to hacking/just for security. Default Sun for home is /export home, primarily b/c Solaris thinks it's always the NFS server ;-) Most Linux distros use /home, and I'll admit I'm not positive what freeBSD uses as a default, but I expect it to be /home and again, NOT under the /usr tree- home directories contain dynamic, changing data. The /usr filesystem remains static aside from the occasional app that 'must' be installed into /usr/local, or adding vendor packages (think base packages or ports installed for freeBSD), which once it's set up for a production system, may actually stay static for years in some cases (with the possible exception of security fixes depending on the environment). Again, mounting the home dir as /usr/home would preclude you from ever even considering mounting /usr as read-only (or 'immutable' is I _think_ the other freeBSD option?) So, not sure why your system is set up the way it is, but fairly likely it was done that way because of mis-judging disk space requirements, or the way the drive(s) were partitioned... you can always create a new home dir and copy it over via: rm -f /home (removes symlink) mkdir /home cd /usr/home tar cvf - . | (cd /home tar xvf - ) Scott Thanks again Scott. I understand what you're saying about /usr being for mainly static data and this stacks up with what I've read about Linux and FreeBSD. So I was very surprised when I installed 4.9-RELEASE on a brand new machine (completely blank disks) and it made /home as a symlink to /usr/home! But this seems to be the default for FreeBSD. I'm half way through creating new filesystems for 'home' and 'export' and copying the data across (thanks for the tar tip) and I just have to decide where to mount them. Chris Howells suggests mounting the 'home' filesystem at /usr/home and I think he is suggesting that 'export' would mount at /usr/home/export. This contradicts what you have said above so I'm confused! Chris/Scott - I'd be interested to hear your thoughts on this. Tom Heh- wasn't the joys of C vs C++ enough? ;-) Really not much else to say on it- different people have different reasons, just as some people use only a single / filesystem. I don't, except in the case of what used to be a triple OS booting laptop...some of my preferences I think are pretty 'standard,' others by running out of disk space or filling up the 'wrong' filesystem, or simply trying to keep large or growing filesystems 'sane.'...but sane to me, may not be to someone else ;-) Oh, I don't think Chris said anything about mounting export _under_ home- export is more of a 'sanity' thing when you have a ton of growing filesystems- on some systems, you really don't know going into it just how much storage you may wind up attaching, OR what it might be used for, etc...so imposing a _consistent_ layout from the start (eg, anything that will be exported via NFS goes under /export/* , which generally includes home directories which become /export/home (and you can always symlink back to /home if you'd like, unsure if freeBSDs automounter does things the same as Solaris. Likewise, if you were also going to run Samba to export shares to Windoze systems, in an ideal world you'd find a combination where both Unix and Windows files might co-exist under a user's home directory, if they/you are manipulating/editing in both platforms (OpenOffice or apps under WINE, etc), music shared (which uhh, I never do of course.. ;-) under /export/music etc etcand /usr/* IMHO simply should not have 'data' in it, or anything that has the capability to be changed often.. One of the nice things about freeBSD is that most *nixes have for years tried to impose 'the right way' to do things with respect to directory layout...freeBSD seems to be the first I've seen that does it consistently, although differently in some cases (/usr/local/etc)...anyways, the point is- don't ruin that, for your OWN sanity's sake. If you don't like my personal preferences, come up with something that makess sense to YOU, and that won't drive you insane 5 years down the road when you STILL might have some of the same disks, or at least data copied over to new disks... Scott Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Another Newbie Question: C or C++
Alex Kelly wrote: I need to buy a book on C or C++ to help me in FreeBSD. Which would be better to buy? I first thought a book on C would be best, because the OS is written in C. But, now I'm not sure because I read that gcc can compile C++ too (so, I'm assuming C++ must get used too). Does it even matter? Suggestions? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] It depends on your goals. I used to teach both C and C++, and now years later, am currently hard pressed to find a non-Microsoft C/C++ development position. If for personal knowledge, definitely C followed by C++. If professional, or want to behmm. In that case, I'd say it still depends more on your goals- if you're going to try to stay in *nix development, you've GOT to know C. If you don't care, or God help you, want a job doing Windows development, start with C++, and ignore all of the standard data types because MS will make their own for you ;-) Starting with C has an advantage in that you tend to have to do 'most of the work yourself' for a lot of things, which tends to help you understand more about how things work. IMHO, that also tends to make better programmers down the line, regardless of the language they use. C++ is similar, but STL will make life easier when it comes to data structures. Java I don't want to talk about ;-) A significant amount of system level programming(think system processes and services/daemons) are written in C. A fair number of applications are, but the majority of GNOME/KDE apps, if that's a consideration, are done in C++. A growing number of applications are also being done in Java, but it's not the best language to start with for understanding much of anything (you can write a half dozen lines of Java to replace perhaps 100+ in C/C++ from scratch in some cases). It isn't a bad language to learn (professional-wise as well, *groan*) after learning C or C++. Books and references- C- Already mentioned, KR 'The C Programming Language' is 'the bible.' This is also generally a lousy book to start with if you aren't programming already, but an invaluable reference. Pick up another book, wish I knew a good starter one, but it's been a while...can try Deitel and Deitel or (nobody laugh, have used it for Intro before..) the 21 days SAMs series for a 'jump-start,' and THEN the Deitel/Deitel and KR. W. Richard Stevens Advanced Programming in the UNIX Environment- MUST HAVE. I may be misquoting the name, but a search on bookpool.com , bn.com (or search on amazon then BUY somewhere else!) will quickly turn it up. KR is to the C language, Stevens is to Unix programming... google search for 'Secure Unix Programming'- there's a FAQ or two out there that are pretty good once you're past 'the basics.' C++ Latest edition of Deitel/Deitel. Funny, I used to really dislike their books, but they DO provide pretty decent overall coverage. May or may not be 'too deep' at first, if so, preface with SAMs or equivalent. Stroustrup- 'The C++ Programming Language. Stroustrup write C++ but is pretty dry. Good reference and for advanced topics. Stroustrup- Annoted Reference Manual AKA 'the ARM'- what KR is to C. *The C++ Standard Library : A Tutorial and Reference- recommended pretty highly, but don't currently have. search on favorite bookstore will turn it up. *Java (before ya ask ;-) There are a LOT of bad books on Java it seems. Deitel and Deitel again is worth buying as a first book (after C and/or C++), then decide what you want to DO with Java, as there are a number of directions- JDBC, Beans, JSP, etc etc etc.. As always, languages and books can be a moving target- when possible, pick up the latest edition covering the current ANSI standard for C/C++, and make sure anything you buy for Java covers 'Java 2,' preferably JDK 1.4, but at least 1.3 or you'll be throwing out work by the time you work on a current project.. Misc others- POSIX Programming, O'Reilly press. Good coverage of POSIX (Unix for simplicity's sake but not really) required system calls. Network Programming- Again,m by Stevens. FAQs for whatever you wind up taking an interest in. I don't _like_ GUI development, but KDE and GNOME have a fair number of tutorials for QT and GTK respectively... Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problems installing 4.9 on IBM Xseries server
Jason Williams wrote: Did some research and it appears that these IBM servers using ServRAID use the IPS Scsi host adaptor. Anyone know if 4.9 supports this or if there is a way to load the driver a different way? I do appreciate it. Jason At 01:04 PM 11/6/2003 -0800, you wrote: Hello everyone. Running into a bit of a problem installing 4.9 on a IBM X series server. The server has 3 SCSI drives with a servRAID card. I have RAID 5 configured on it. 4.9 did not detect the drives, so im wondering if it even supports it or if there is a driver I can d/l to use and boot to it. Here is some output from a second server running *coughLinuxcough*: SvrWks CSB5: IDE controller at PCI slot 00:0f.1 SvrWks CSB5: chipset revision 147 SvrWks CSB5: not 100% native mode: will probe irqs later SvrWks CSB5: simplex device: DMA forced ide0: BM-DMA at 0x0700-0x0707, BIOS settings: hda:DMA, hdb:DMA SvrWks CSB5: simplex device: DMA forced ide1: BM-DMA at 0x0708-0x070f, BIOS settings: hdc:DMA, hdd:DMA SCSI subsystem driver Revision: 1.00 Warning: Adapter 0 Firmware Compatible Version is MR600, but should be SA510 Warning: Adapter 0 BIOS Compatible Version is MR600, but should be SA510 Warning ! ! ! ServeRAID Version Mismatch scsi0 : IBM PCI ServeRAID 5.10.21 Vendor: IBM Model: SERVERAID Rev: 1.00 Type: Direct-Access ANSI SCSI revision: 02 Vendor: IBM Model: SERVERAID Rev: 1.00 Type: Processor ANSI SCSI revision: 02 Vendor: IBM Model: 32P0032a S320 1 Rev: 1 Type: Processor ANSI SCSI revision: 02 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Any suggestions are appreciated. Jason ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hi Jason- this may not be of any direct help, but could be worth a shot. Looking at your Linux boot messages, it looks like your firmware and driver versions are off. I've seen this cause a fair number of issues- you should be able to get a flash disk on IBMs support site, as well as the updated Linux driver at least. I suppose the big question is what version of the firmware the BSD driver wants? Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kernel: ENOMEM
Michael R. Jacalan wrote: Hello, What could be causing this... (excerpts from /var/log/messages) ? I am running 5.0-RELEASE on this box. Nov 7 10:46:21 hostname kernel: ENOMEM 0xcae7c180 on 0xcadb7400(ad0s1) Nov 7 10:46:21 hostname kernel: ENOMEM 0xcb342700 on 0xcadb7400(ad0s1) Nov 7 10:46:21 hostname kernel: ENOMEM 0xcb342080 on 0xcadb7400(ad0s1) Nov 7 10:46:21 hostname kernel: ENOMEM 0xcb342580 on 0xcadb7400(ad0s1) Nov 7 10:46:21 hostname kernel: ENOMEM 0xcb342e80 on 0xcadb7400(ad0s1) Thanks. Mich ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ENOMEM should be returned when an attempt to allocate memory fails. It's reported via the kernel because ultimately, memory allocation goes through the kernel/system calls. What are your system specs, RAM, typical processes being run, output of top or memory usage summary etc? Are you running anything 'unusual'- Java tends to be a bit of a hog, databases, or learning to program? Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NFS client mount options in CURRENT/5.1-
Antoine Jacoutot wrote: Scott W wrote: mount -tnfs -orw,rsize=8196,wsize=8196,bg,hard,intr,async sol:/export /mnt nfs: -o rsize=: option not supported Try -r 8196 -w 8196 and have a look at man mount_nfs. Antoine Definite user error on my part, thanks. I couldn't find anything on hard vs soft mounts however- I'm assuming the default is hard, as there is only a soft (-s) option available on freeBSD? Thanks again, Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: creating a small FreeBSD box
Rick Duvall wrote: I use a little box built by Intel in my house for my DSL. It's an ITX formfactor chassis. It has 1 ethernet on board and 1 PCI slot where you can put a second NIC. There are no drive bays, so you have to take the machine apart to plug a temporary CD-Rom drive into the motherboard to install the OS. In my case, I already had a hard drive with FreeBSD loaded on it, so I just transplanted the drive into the ITX chassis. As far as hard drive, it's hard to find 300M drives anymore. Your best bet would be to go for the least expensive drive you can, even if it is a 20 gig IDE. Nothing says that you can't have a 20 gig drive and only use 300M of space on it. Sure, it's a waste of drive space, but who cares if you only pay $40 for a drive that has a 5 year warranty. You also might want to look at solid state filesystem. I think this has been discussed on the list from time to time. Then you only have to worry about cooling fans. Sincerely, Rick Duvall - Original Message - From: Shantanoo Mahajan [EMAIL PROTECTED] To: Rob Evers [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 9:55 AM Subject: Re: creating a small FreeBSD box +++ Rob Evers [freebsd] [05-11-03 12:42 +0100]: | Hi all, | | I need to make a few FreeBSD boxes, these will all be limited in disk | space, | and act as firewall/router. (pentium and 300M disk) | What I want is a limited operating system that has only the essential | networking stuff, shell, and a custom kernel but for example no BIND and | CVS. | In the end all machines should have the same OS installed. | | What's a good way to handle this? | Making a custom release, an install script, tweaking make.conf and | install from | source or of course something else. (I don't need a ready solution, but some | insight in how to acomplish this task in an efficient manner.) | | Thanks | | Rob Evers | | | -- man picobsd Regards, Shantanoo ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] FWIW, solid state disks can definitely be pretty slick- was working on a hardware project at a company years ago and testing different hardware configurations, RAID stripe and segment sizes, differences in cache size, etc etc, and we saw some pretty decent speed gains in playing around with solid state disks. At the time, it was somewhere in the neighborhood of 10k for ONE drive, but with the dot-com bust and for a smaller disk, there may be some good deals to be had on solid state 1GB disks (eBay?) Anyone price those used lately or have any longevity concerns? (Never did run one for more than a month or two, but it SHOULD be more reliable than physical platters...) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: which linux? (not flame bait, thank you)
DavidB wrote: First I would like to say that FreeBSD rocks, and have been using it for more than a few years. I like the ports system, I like compiling from source so I can get the compile time features I want. Portupgrade really helps with maintaining ports. My question is this, I would like to have a little exposure to linux and am wondering which distro to run, I used redhat back at the same time I started with FreeBSD3~ , not sure if I should check them out. I had in my list of potentials, slackware, debian, and I was wondering what was thought of gentoo(I read that this was started by a former? freebsd developer)[I hope there is no bad blood there]. I didn't want to go thru a list, installing and playing with several different ones, don't have time for that, I still have to upgrade the webserver/mailserver/database box and the desktop box to 4.9 [not much to that] or wondering if I should just jump into RELENG_5_1 (I like to keep my server and desktop running with the same versions, so I can swap the desktop in place of the server should the server box fail, call it cheap insurance). So is there any particular distro that stands out to freebsd types, so I can check one out, so in a pinch, if I need to setup a linux box for some strange reason I could do so. Not here to start a religious war, I hope people have calmed down on that, but just one simple, perhaps, stupid question. Thanks, Dave ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I know this is a bit late responding, considering the number of responses already, but to add my .02c: 1. It really depends on your purpose for using Linux. I'm a long time Solaris and then Linux user from pre-1.0 kernels, and 'new' to FreeBSD myself, but have seen most flavors of Linux or run them at one time or another. If you're doing this for professional reasons (as in company is going to start to migrate prpducts, services, etc), then you've only really got two choices that make sense: a. RedHat. No, I'm not overly fond of RH any more myself, but it's been doing downhill for anyone other than corporations for years now. They _are_ however, extremely dominant in the US in corporate environments, and will continue to be so for some time, even if they're shooting themselves in the foot IMHO for 'dropping' their 'personal' version of Linux. Remember, RH Advanced Server 2.1 is really RH7.3 at the core, aside from a custom kernel and some 'commercial' add-ons from RH. Likewise, RHEL/RHAS/RHWS 3 are I believe based on the core of RH9...if you don't have access to the ENterprise versions, use their equivalents. b. SuSE- Again, I'm not crazy about, but SLES (SuSE Linux Enterprise Server) is gaining ground, and more companies are doing ports or development with RH applications simultaneously. c. Anything else as a 'learning experience'- Linux From Scratch is pretty ambitious, and you WILL learn more about dependencies than you can bat an eye at ;-) If you're doing it for personal, or for 'possible future use of knowledge,' GenToo or LFS are both really good, but higher learning curves than either RH or SuSE/SLES, the latter two IMHO both trying to 'fit the kitchen sink' and throw mediocre GUIs on top of simple commands (sorry, I REALLY dislike YaST), along with them pushing GNOME and KDE respectively. Correspondingly, if you're doing it for personal USE, rather than learning, development, admin, etc...RH or SuSE aren't bad for 'install and forget about' type of installs, and KDE and GNOME are more 'Windows-like' with every release. For a server...I've been disappointed with RH (personal releases) in the past, which is why my RH server is still 7.3 based. Their first few releases of a major version (which ended at the 8-9 jump), eg 7.0, 7.1 are usually not the most stable platforms for production use. SuSE is pretty similar but seems to have a slightly better rep in that respect. Another issue in using either as a production system is due to the 'kitchen sink'- with the sheer number of packages they cram onto CDs, you would have todo a LOT of trimming to ensure nothing extraneous was installed on a system. RHAS(now RHEL) and SLES are better with respect to numbers of extraneous packages and focusing more on essential apps. GenToo's Portage system is definitely similar to *BSD Ports, and possibly one step further, differentiating between 'system' (world on BSD) and 'world' (all installed apps), but it WILL take time to get installed the first time through...and their 'stable' labels could use a bit of work with respect to a 24x7x365 system. I do run a GenToo system as well, and haven't hit any _major_ gotchas, but the potential is there (similar to building CURRENT on freeBSD). Last ones- Debian and Slackware. Ran Slackware for several
NFS client mount options in CURRENT/5.1-
Hey all- Perusal of the man page for mount_nfs doesn't seem to shed any light here, so can someone tell me what is wrong with this mount command (namely half of the options)? mount -tnfs -orw,rsize=8196,wsize=8196,bg,hard,intr,async sol:/export /mnt nfs: -o rsize=: option not supported Likewise for wsize and hard, although documented in mount_nfs and traditionally available NFS options...any ideas? It will mount via removing the 'offending' options properly.. I don't need help on 'why are you doing this command line' etc- am just doing some throughput tests, but could use a sanity check on whats wrong with these options...? TIA, Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: xinit: xf86OpenConsole: Server must be running with root permissions
[EMAIL PROTECTED] wrote: Hi, I just installed a port (fluxconf).That port installed Xfree86 Libraries 4.3.0. Since then,when I invoke xinit, it exits with the error xf86OpenConsole: Server must be running with root permissions I include the output of 'uname -a' and the brief output from xinit for the problem Thank you very much Bruno [EMAIL PROTECTED] (/dev/ttyp0) /usr/home/bruno 2 uname -a FreeBSD ciao.singles.it 4.9-RC FreeBSD 4.9-RC #0: Wed Oct 15 00:12:26 CEST 2003 root@:/usr/obj/usr/src/sys/CURRENT_WINE i386 [EMAIL PROTECTED] (/dev/ttyp0) /usr/home/bruno 2xinit XFree86 Version 3.3.6 / X Window System (protocol Version 11, revision 0, vendor release 6300) Release Date: January 8 2000 If the server is older than 6-12 months, or if your card is newer than the above date, look for a newer version before reporting problems. (see http://www.XFree86.Org/FAQ) Operating System: FreeBSD 4.1.1-STABLE i386 [ELF] Configured drivers: SVGA: server for SVGA graphics adaptors (Patchlevel 1): NV1, STG2000, RIVA 128, RIVA TNT, RIVA TNT2, RIVA ULTRA TNT2, RIVA VANTA, RIVA ULTRA VANTA, RIVA INTEGRATED, GeForce 256, GeForce DDR, Quadro, ET4000, ET4000W32, ET4000W32i, ET4000W32i_rev_b, ET4000W32i_rev_c, ET4000W32p, ET4000W32p_rev_a, ET4000W32p_rev_b, ET4000W32p_rev_c, ET4000W32p_rev_d, ET6000, ET6100, et3000, pvga1, wd90c00, wd90c10, wd90c30, wd90c24, wd90c31, wd90c33, gvga, r128, ati, sis86c201, sis86c202, sis86c205, sis86c215, sis86c225, sis5597, sis5598, sis6326, sis530, sis620, sis300, sis630, sis540, tvga8200lx, tvga8800cs, tvga8900b, tvga8900c, tvga8900cl, tvga8900d, tvga9000, tvga9000i, tvga9100b, tvga9200cxr, tgui9400cxi, tgui9420, tgui9420dgi, tgui9430dgi, tgui9440agi, cyber9320, tgui9660, tgui9680, tgui9682, tgui9685, cyber9382, cyber9385, cyber9388, cyber9397, cyber9520, cyber9525, 3dimage975, 3dimage985, cyber9397dvd, blade3d, cyberblade, clgd5420, clgd5422, clgd5424, clgd5426, clgd5428, clgd5429, clgd5430, clgd5434, clgd5436, clgd5446, clgd5480, clgd5462, clgd5464, clgd5465, clgd6205, clgd6215, clgd6225, clgd6235, clgd7541, clgd7542, clgd7543, clgd7548, clgd7555, clgd7556, ncr77c22, ncr77c22e, cpq_avga, mga2064w, mga1064sg, mga2164w, mga2164w AGP, mgag200, mgag100, mgag400, oti067, oti077, oti087, oti037c, al2101, ali2228, ali2301, ali2302, ali2308, ali2401, cl6410, cl6412, cl6420, cl6440, video7, ark1000vl, ark1000pv, ark2000pv, ark2000mt, mx, realtek, AP6422, AT24, AT3D, s3_savage, s3_virge, s3_svga, NM2070, NM2090, NM2093, NM2097, NM2160, NM2200, ct65520, ct65525, ct65530, ct65535, ct65540, ct65545, ct65546, ct65548, ct65550, ct65554, ct6, ct68554, ct69000, ct64200, ct64300, mediagx, V1000, V2100, V2200, p9100, spc8110, i740, i740_pci, i810, i810-dc100, i810e, Voodoo Banshee, Voodoo3, smi, generic Fatal server error: xf86OpenConsole: Server must be running with root permissions You should be using Xwrapper to start the server or xdm. We strongly advise against making the server SUID root! When reporting a problem related to a server crash, please send the full server output, not just the last messages X connection to :0.0 broken (explicit kill or server shutdown). === [EMAIL PROTECTED] (/dev/ttyp0) /usr/home/bruno 3exit Script done on Thu Oct 30 10:40:19 2003 You should be starting X via the 'startx' command if you're not using runlevel 5/[xgk]dm. Try that and see if the same problem persists. Scott --- [Quipo ISP - Questa E-mail e' stata controllata dal programma Declude Virus] [Quipo ISP - This E-mail was scanned for viruses by Declude Virus] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] You should be star ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problems with 'make world' stuff
Jason Williams wrote: Once I had my sources updated, I did the following: I booted into single mode: cd /usr/src make buildworld cd /usr/src make buildkernel make installkernel I rebooted to test the kernel and that is where I ran into trouble. I did not type make installworld as suggested in the handbook. It said to test the kernel first. I was told I did not have to run mergemaster since this was a brand new install of 4.8. Is that incorrect? I appreciate your help. Jason I've seen the same problem when building 'world' and the kernel at the same time. I'm not sure if this is the 'correct' way to do it, but the logical (and in both of my cases) sequence is: make buildworld - compiles only make installworld- installs the new system binaries reboot make buildkernel - now building against the 'new' user space libraries, utils, etc make installkernel reboot and you should be OK. What appears make have happened is you missed the 'make installworld' step, so userspace libraries and tools were not up to date. I'd try: cd/ /usr/src make installworld make installkernel reboot and post if any change, but I suspect that will fix it.. HTH, Scott At 05:08 PM 10/28/2003 -0500, you wrote: Did you build a new kernel as well as world? did you run mergemaster? On Tue, 2003-10-28 at 16:57, Jason Williams wrote: Hello everyone. Im pretty new to building my own world here, but im excited to learn it. I followed the handbook as suggested on how to make world. I installed FreeBSD 4.8 on my workstation. I installed cvsup and configured my stable-supfile as well as my ports-supfile. I updated my ports no problem. Here are the contents of my stable-supfile: *default host=cvsup12.FreeBSD.org *default base=/usr/local/etc/cvsup *default prefix=/usr *default release=cvs tag=RELENG_4 *default delete use-rel-suffix I did a: cvsup -g -L 2 stable-supfile and it did its work. I then proceeded as in the handbook. After I booted to my new kernel (I noticed it said FreeBSD 4.9 stable, so I booted correctly). However, im having some problems when I test the kernel: Specifically with 'top' and 'ps' # top kvm_open: proc size mismatch (34048 total, 1060 chunks) top: Out of memory. # ps ps: proc size mismatch (29792 total, 1060 chunks) At this point, I was going to go back and retry doing everything as suggested in the handbook. In the meantime, anyone have any idea what im missing or what is going on? I appreciate it. Cheers, Jason ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 and Xfree86
M.D. DeWar wrote: Thanks. Now for a more stupider question. What is the purpose of them exactly. I have read the sites but being alien to the unix world it confuses me. Do they just make unix a windows type enviroment ? Is KDE/GNOME the same or they like themes to X windows. ? So confused. but am trying to get away from microsoft. thanks mark Ok, _trying_ to leave some things out of this, like the fact that X-Windows was available long _before_ Windoze... ;-) Sort of. X/XFree is basically a minimal graphical user interface with built in networking support. It provides the bare essentials and infrastructure to build a 'window manager' on top of. Window Managers like CDE, TWM, WindowMaker, IceWM, and others all 'sit on top of' X, adding their own widget libraries(think icons, dialog boxes, 'styles') and defining behaviors (focus follows mouse, click to focus, hot key/meta key support/keybindings). In an X environment, because of having builtin networking from the start, it's fairly common to be running an application on one system, and displaying it on another. The X Server is required on any system that you want to actually display applications on your screen. These applications can be running on the same system (which is what all non networked systems do), or from another system. One of the nice features of X is the underlying architecture is standard across ALL flavors of *nix- it's not perfect, but on a *bsd or Linux system, you can have Solaris's admintool or smc running from a Sun box alongside OpenOffice running locally. Theres a lot more to X, and arguably a lot of features that X 'may not need' any longer, and others that have become security risks as hacking and script kiddies have become more frequent. A search for 'X Windows FAQ' should turn up something. Back to your question- KDE and GNOME both sit on top of X, like any/all X Window Managers. KDE and GNOME both go a step 'further' and also provide session and desktop management. A 'pure' Window Manager is generally only conccerned with the basics- handling window actions and providing for basic window operations- title bars, window decorations (buttons and menus), and the like. KDE and GNOME actually include Window Managers of their own (KDE and Sawfish respectively), but add on additional functionality as well, including some fairly detailed specifications of what an application should/''must' do to be fully KDE or GNOME compliant. Hope that helps somewhat... Scott - Original Message - From: Payne [EMAIL PROTECTED] To: M.D. DeWar [EMAIL PROTECTED]; freebsd-questions [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 5:11 PM Subject: Re: X11 and Xfree86 X11r6 is the version of xfree86. Payne M.D. DeWar wrote: What is the difference between x11r6 and xfree86 ? I went to xfree site and ended up at x.org and the d/l are not the same. thanks newbie mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RCS question
No- IIRC, the default sis to look for an RCS subdirectory within the directory of the original file, failing that, the delta/file will be checked in to the local directory. This is generally 'the right behavior,' as RCS doesn't inherently store directory structures, so each file is in it's approipriate place in a multi-directory project. Some examples, starting with directory structure and contents: /home/projects/foo: Makefile (Top level Makefile for project) README license.gpl CHANGELOG /home/projects/foo/include: mydaemon.h db_connect.h myclient.h foo.h /home/projects/foo/server: Makefile db_connect.c mydaemon.c /home/projects/foo/client: Makefile myclient.c If an RCS directory already exists in each directory, the RCS files will go in (base directory)/RCS. If not, they will stay in the directory you checked them in from originally (Note- this is _their_ initial directory, not your working directory when you do the checkin!) So the top-level Makefile would become either /home/projects/foo/RCS/Makefile,v , or, if the RCS dir didn't already exist, /home/projects/foo/Makefile,v and the myclient.c file on checkin would become: /home/projects/foo/client/RCS/myclient.c,v , or again if the RCS dir didn't already exist, /home/projects/foo/client/myclient.c,v .. Hope that helps.. Scott PS- Remember to always at least do a co filename after initial checkin, as ci file without other params creates the RCS/delta file, but will not leave the original filename in place... Alden Louis-Pierre wrote: I'm learning how to use the RCS utility. I never knew such a tool existed. I understand the commands and concept, but as always I need some enlightment with the following question: /home/apierre/RCS - my RCS directory /home/apierre/Prog/C/Joy_of_C/chp_1 - the location of my C files from a book I'm learning. If I were to ci(check in) my files from were my C files is located, would my revisions be placed in my RCS directory? Thank You Alden Louis-Pierre ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Anyone know of a good way to handle mail for multiple domains (my own _and_ not my own)?
Hey all- this is something I've looked for a good solution for for some time, and I'm sure someone else has already worked out. Any ideas appreciated. The scenario: I have entirely too many email addresses, several of which from domains that are mine, but others that are not mine, but am unable to get rid of entirely. My freeBSD system is going to become a mail server among other things, to handle mail for several of my own domains. Not a big deal there, have done that enough times...however: I'd like to also pull email from the mail accounts which are _not_ mine, so I can simply use IMAP to my mail server to access all of my different accounts email. In the past, I've used fetchmail to accomplish this somewhat, but that was on a per user basis via user cron jobs. I'd rather avoid adding user accounts (at the shell/system level) for each email account I have. Does anyone know of an alternative way to do this, that would work well for say, a dozen accounts for multiple domains of my own, and perhaps another dozen accounts from domains that are not my own? Thanks in advance, Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem/question on second NIC (SMC 9452TX) on 5.1- CURRENT
Hey all- if anyone could point me in the right direction here, I'd appreciate it. System: Asus BP6 Dual Celeron 366 768M ECC RAM 1st NIC (fxp0) in at time of install- Intel Pro/100 I'm trying to add an SMC gigabit enthernet NIC, model 9452TX into the system. Running a current snapshot from within the past few days, recompiled SMP kernel with 'sn' support (SMC 9XXX) cards. I ran /stand/sysinstall, let it re-probe devices/Configure/Networking/Interfaces, but neither it nor dmesg output seems to see the new card. I'm done the normal searching on the subject, but don't seem to be getting anywhere here- can anyone point me to documentation on how to get this NIC recognized and configured? Thanks, Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Help- re-install of 5.1 release leaves bootloader unworkable
Hey all- hopefully someone can point me in the right direction here. After problems with cvsuped 5.1 current, I did a re-install of 5.1 RELEASE on a system with two IDE drives. The install appears to go well, but on reboot, I'm faced with what appears to be 3(!!) options for booting BSD, none of which work. The system is a dual celeron 366MHz with 768M RAM. HPT66 IDE controller which has 2 IDE drives plugged into it. These show up as ad4 and ad5 during the install. The boot menu shows as: F1 freebsd F2 freebsd F3 Disk 1 none of which work. If I type: unload boot 3(ad1,d) I get an error 1 lba 0 Other selections result in: no /boot/loader I have been able to load the fixit disk, and mount the correct partitions, but the only references I've seen to any help with respect to re-installing the boot loader are 'installbootloader' which doesn't appear to be on this install. So...how do I recover this install and remove the 'bad' entries in the loader, and point it at the correct disk? Disk layout is as follows: ad3s1a /tmp 2G ad3s1b swap 2G ad4s1d /boot 128M ad4s1a /1G ad4s1e /var 2G ad4s2d /usr 10G ad4s1b /home 5G Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
5.1 current make buildworld fails consistently on crtstuff.c- Help?
Hey all. I've been unsuccessful at performing a 'make buildworld' for the past week based on a cvsup of 5.1-current. This is a fresh install as of ~10 days ago on a Dual Celeron BP-6 system, 784M RAM. To say this is getting frustrating at this point is an understatementanyone else seeing this problem or have a suggestion on how to resolve this? Failed buildlog follows, have seen this consistently break in the same place for the past week of attempting 'make buildworld'. Some debugging seems to point it's actually in the definition of CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC), likely in the definition of one of the parameters themsevles, as removing the rest of the #defined macro 'function' still results in the same compile error. cc -O -pipe -DSMP -DAPIC_IO -march=pentiumpro -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -march=pentiumpro -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-omit-frame-pointer -I/usr/src/gnu/lib/csu/../../../contrib/gcc/config -I/usr/src/gnu/lib/csu/../../../contrib/gcc -I. -I/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools -g0 -DCRT_BEGIN -c -o crtbegin.o /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c In file included from /usr/src/contrib/gcc/crtstuff.c:63: /usr/src/contrib/gcc/unwind-dw2-fde.h:37: warning: ISO C90 does not support flexible array members /usr/src/contrib/gcc/unwind-dw2-fde.h:53: warning: bit-field `sorted' type invalid in ISO C /usr/src/contrib/gcc/unwind-dw2-fde.h:54: warning: bit-field `from_array' type invalid in ISO C /usr/src/contrib/gcc/unwind-dw2-fde.h:55: warning: bit-field `mixed_encoding' type invalid in ISO C /usr/src/contrib/gcc/unwind-dw2-fde.h:56: warning: bit-field `encoding' type invalid in ISO C /usr/src/contrib/gcc/unwind-dw2-fde.h:59: warning: bit-field `count' type invalid in ISO C /usr/src/contrib/gcc/unwind-dw2-fde.h:139: warning: ISO C90 does not support flexible array members /usr/src/contrib/gcc/unwind-dw2-fde.h:147: warning: ISO C90 does not support flexible array members /usr/src/contrib/gcc/unwind-dw2-fde.h: In function `get_cie': /usr/src/contrib/gcc/unwind-dw2-fde.h:157: warning: pointer of type `void *' used in arithmetic /usr/src/contrib/gcc/crtstuff.c: At top level: /usr/src/contrib/gcc/crtstuff.c:122: warning: redundant redeclaration of `__register_frame_info' in same scope /usr/src/contrib/gcc/unwind-dw2-fde.h:95: warning: previous declaration of `__register_frame_info' /usr/src/contrib/gcc/crtstuff.c:125: warning: redundant redeclaration of `__register_frame_info_bases' in same scope /usr/src/contrib/gcc/unwind-dw2-fde.h:94: warning: previous declaration of `__register_frame_info_bases' /usr/src/contrib/gcc/crtstuff.c:127: warning: redundant redeclaration of `__deregister_frame_info' in same scope /usr/src/contrib/gcc/unwind-dw2-fde.h:101: warning: previous declaration of `__deregister_frame_info' /usr/src/contrib/gcc/crtstuff.c:129: warning: redundant redeclaration of `__deregister_frame_info_bases' in same scope /usr/src/contrib/gcc/unwind-dw2-fde.h:102: warning: previous declaration of `__deregister_frame_info_bases' /usr/src/contrib/gcc/crtstuff.c:198: warning: ISO C forbids empty initializer braces /usr/src/contrib/gcc/crtstuff.c:206: warning: ISO C forbids empty initializer braces /usr/src/contrib/gcc/crtstuff.c: In function `__do_global_dtors_aux': /usr/src/contrib/gcc/crtstuff.c:280: warning: passing arg 1 of `__deregister_frame_info' discards qualifiers from pointer target type /usr/src/contrib/gcc/crtstuff.c: At top level: /usr/src/contrib/gcc/crtstuff.c:288: error: syntax error before string constant /usr/src/contrib/gcc/crtstuff.c:288: warning: ISO C does not allow extra `;' outside of a function /usr/src/contrib/gcc/crtstuff.c: In function `frame_dummy': /usr/src/contrib/gcc/crtstuff.c:316: warning: passing arg 1 of `__register_frame_info' discards qualifiers from pointer target type /usr/src/contrib/gcc/crtstuff.c: At top level: /usr/src/contrib/gcc/crtstuff.c:325: error: syntax error before string constant /usr/src/contrib/gcc/crtstuff.c:325: warning: ISO C does not allow extra `;' outside of a function *** Error code 1 Stop in /usr/src/gnu/lib/csu. *** Error code 1 This particular section of code in crtstuff.c is as follows: CRT_CALL_STATIC_FUNCTION (INIT_SECTION_ASM_OP, frame_dummy) which is defined as: #ifndef CRT_CALL_STATIC_FUNCTION # define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \ static void __attribute__((__used__)) \ call_ ## FUNC (void)\ { \ asm (SECTION_OP); \ FUNC (); \