Re: [SSHd] Limiting access from authorized IP's
cpghost wrote: On Fri, 18 Apr 2008 13:46:48 -0500 Paul Schmehl [EMAIL PROTECTED] wrote: Let me clarify. When I use the term host, I'm referring to what many would call a personal workstation or personal computer. If you have more than one person who has shell access to a computer, then you no longer have a host. You have a server. Sure, you may not think of it that way, but that's what it is. Servers are a completely different ballgame, and the decisions you make regarding protecting them have everything to do with who has access to what. The servers that I referenced in my post have one person with root access - me - and one user - the owners. No one else has access. So, it's a great deal easier for me to lock down the boxes than it is, for example, here at work, where *many* people have shell access and more than one have root access through sudo or even su. Sorry for bikeshedding here, since it's just a matter of terminology, but... Hosts used to be multi-user machines for a long time, and actually still are. Most RFCs, including newer ones, refer to hosts and mean nodes on the net. They don't care whether the hosts are workstations used by a single or few user(s), or big multi-user machines with hundreds of shell accounts. Server is merely the role a program assumes when it waits passively for requests from clients. Servers run on hosts, regardless of the number of users on those hosts (ranging from 0 to very high). Obviously, the security implications vary considerably if you have to host many user accounts, esp. on hosts used by mission critical server programs. ;) And of course, the bikeshed has to be painted... red! :) Regards, -cpghost. Try this: AllowUsers [EMAIL PROTECTED] [EMAIL PROTECTED] joe@home ip Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
file/directory names with space in between
Hi, I need to work on some files and directories that have spaces in them like: interesting story\2008 March\{story one,story two}. When using find with -exec, part of the file/directory name will be missing and therefore lead to error. What should I do to put escape key in there to include full names? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Upgrade 4.11 to 7.0, possible?
Hi, I am trying to see if it's possible to upgrade 4.11 to 7.0 by using cvsup. When I run make buildworld, I got these errors. Are there packages missing? -- Building an up-to-date make(1) -- rm -f .depend mkdep -f .depend -a-I/usr/src/usr.bin/make -DOLD_JOKE=1 -DMAKE_VERSION=\5200408120\ -D__FBSDID=__RCSID -DDEFSHELLNAME=\sh\ /usr/src/usr.bin/make/arch.c /usr/src/usr.bin/make/buf.c /usr/src/usr.bin/make/cond.c /usr/src/usr.bin/make/dir.c /usr/src/usr.bin/make/for.c /usr/src/usr.bin/make/hash.c /usr/src/usr.bin/make/hash_tables.c /usr/src/usr.bin/make/job.c /usr/src/usr.bin/make/lst.c /usr/src/usr.bin/make/main.c /usr/src/usr.bin/make/make.c /usr/src/usr.bin/make/parse.c /usr/src/usr.bin/make/proc.c /usr/src/usr.bin/make/shell.c /usr/src/usr.bin/make/str.c /usr/src/usr.bin/make/suff.c /usr/src/usr.bin/make/targ.c /usr/src/usr.bin/make/util.c /usr/src/usr.bin/make/var.c In file included from /usr/src/usr.bin/make/arch.c:107: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/cond.c:59: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/dir.c:97: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/for.c:55: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/job.c:131: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/main.c:82: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/make.c:80: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/parse.c:86: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/str.c:49: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/suff.c:102: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/targ.c:84: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/util.c:59: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/var.c:96: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/src/usr.bin/make. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cannot open br: no such file error
Hi, I am seeing many errors in htpd-erro.log file like: cannot open br: no such file cannot open br: no such file cannot open br: no such file cannot open br: no such file cannot open br: no such file Does this mean there is something wrong with file system? or disk? Has anyone else seen similar error? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
CVSup question
Hi, I wonder if just having port-all is enough in cvsupfile as follow. If I just want to keep ports tree up to date, do I really need to have 'src-all? *default host=cvsup9.freebsd.org *default base=/usr *default prefix=/usr *default release=cvs tag=RELENG_4_11 *default delete use-rel-suffix compress # src-all ports-all tag=. thanks, Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Duplicate existing FreeBSD Server in VM
DAve wrote: Terry Sposato wrote: Hi, I have just installed a machine and have it setup running a web based CRM solution. I want to have an exact duplicate of this machine running as a VM for redundancy reasons. What is the best way to go about getting this exact machine transferred to the VM? Both machines exist on the same network and will be able to talk to each other, I have been thinking of a couple of different ways to get all my data across which is the easy part, but I want to match everything that is installed, base system, ports etc. Anyone have any ideas or point me into the right direction? You can use dump over ssh easily enough, here are my notes from using it to create multiple production machines from a single test server. There are better ways I am sure, but this is quick and easy if you are familiar with FreeBSD installs. Note #1 In the first comment line I say to boot the live file system CD, that is what you would do in the VM, just as you would normally boot an installer CD, but use a Live filesystem CD instead. Note #2 I used several slices with sizes some may not agree with. It was a choice we made for various reasons, the servers have been running for three years. You may have more or less slices of varying sizes, adjust the steps below to your preferences. Note #3 You will need to check and WRITE DOWN which slice is which mount point, /, /var, /usr and so on. Your disks may be different if you choose not to create a seperate /tmp, or /var. I'll be out of the office for a week, but you can try and adjust as needed, it won't hurt anything and you can always overwrite and try again. WRITE IT DOWN. Works for us, I've used it several times, adjusting as needed for the system I am cloning. DAve # boot live filesystem cd # use disklabel to check/create slices /stand/sysinstall /dev/ad0s1b256mb swap /dev/ad0s1a256mb /mnt/ufs.1softupdates /dev/ad0s1e256mb /mnt/ufs.2softupdates /dev/ad0s1d256mb /mnt/ufs.3softupdates /dev/ad0s1fall /mnt/ufs.4softupdates /dev/ad1s1d2mb /mnt/ufs.5 # unmount the new slices umount /mnt/ufs.1 umount /mnt/ufs.2 umount /mnt/ufs.3 umount /mnt/ufs.4 umount /mnt/ufs.5 # make newfs on each slice newnfs /dev/ad0s1a newnfs /dev/ad0s1e newnfs /dev/ad0s1f newnfs /dev/ad0s1d newnfs /dev/ad1s1d # remount the slices mount -t ufs -o rw /dev/ad0s1a /mnt/ufs.1 mount -t ufs -o rw /dev/ad0s1e /mnt/ufs.2 mount -t ufs -o rw /dev/ad0s1d /mnt/ufs.3 mount -t ufs -o rw /dev/ad0s1f /mnt/ufs.4 # fetch the filesystems from the test server # you will need to enable root ssh access on the test server for this. cd /mnt/ufs.1 ssh [EMAIL PROTECTED] dump -0L -f - /dev/ad0s1a | restore -rf - /dev/ad0s1a cd /mnt/ufs.2 ssh [EMAIL PROTECTED] dump -0L -f - /dev/ad0s1e | restore -rf - /dev/ad0s1e cd /mnt/ufs.3 ssh [EMAIL PROTECTED] dump -0L -f - /dev/ad0s1f | restore -rf - /dev/ad0s1f cd /mnt/ufs.4 ssh [EMAIL PROTECTED] dump -0L -f - /dev/ad0s1d | restore -rf - /dev/ad0s1d # change the following entries in rc.conf, remember everything is mounted under /mnt! # X = the ecluster number 1,2,3,4,5,6,7,8, etc. hostname=new_server_X ifconfig_em0=inet 10.0.240.13X netmask 255.255.255.0 Reboot the new server, it should come up just fine. Your instructions is very helpful. When using on 4.11, -L seems not working with dump. Also I have one question, I clone file system from one machine to another different type of machine. The source machine's file system is on /dev/da0s1, but destination's is on /dev/ad0s1. Then I run following to update boot loader: fdisk -B -b /boot/boot0 /dev/ad0 bsdlabel -B /dev/ad0s1 However, the cloned system can't find kernel on reboot. What am I missing? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to find out when a package is installed?
Rudy wrote: I have used this: ls -l /var/db/pkg/PORT_NAME/+DESC replace PORT_NAME with the correct directory name... RUdy Thanks. This helped. Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to find out when a package is installed?
Hi, Is there a command that can help find out when a package is installed/compiled? Or what options should I give to pkg_info to find out installation date? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't fdisk newly installed disks
Jerry McAllister wrote: On Mon, Aug 13, 2007 at 05:38:04PM -0700, Simon Gao wrote: Hi, I am running into some problem with fdisk newly installed drives. From boot message, these drives are found without problem: da3 at mpt0 bus 0 target 2 lun 0 da3: IFT A12U-G2421 347D Fixed Direct Access SCSI-3 device da3: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled da3: 2048000MB (4194304000 512 byte sectors: 255H 63S/T 261083C) da4 at mpt0 bus 0 target 2 lun 1 da4: IFT A12U-G2421 347D Fixed Direct Access SCSI-3 device da4: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled da4: 2048000MB (4194304000 512 byte sectors: 255H 63S/T 261083C) da5 at mpt0 bus 0 target 2 lun 2 da5: IFT A12U-G2421 347D Fixed Direct Access SCSI-3 device da5: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled da5: 670790MB (1373777920 512 byte sectors: 255H 63S/T 85513C) There are device files in /dev: crw-r- 1 root operator4, 14 Aug 13 17:14 /dev/da3 crw-r- 1 root operator4, 15 Aug 13 17:14 /dev/da4 crw-r- 1 root operator4, 16 Aug 13 17:14 /dev/da5 However, when trying to fdisk one of drives, I got following error: # fdisk -BI da5 fdisk: cannot open disk /dev/da5: No such file or directory sysintall failed also. The system runs FreeBSD 5.2.1-RELEASE. Any help is appreciated. Did you try doing a dd(1) if some blocks of zeros to the drive before doing the fdisk.On some older FreeBSD - don't remember which - I had trouble with some brands of SCSI disks and writing some zeros to it seemed to make it work. I don't know why or even why I first tried it. But it is simple enough to be worth giving it a try to see if anything improves. dd if=/devf/zero of=/dev/da5 bs=512 count=1024 jerry This is what I got: # dd if=/dev/zero of=/dev/da5 bs=512 count=1024 dd: /dev/da5: Operation not permitted If I use sysinstall -- config -- fdisk to partition /dev/da5, I got following warning: WARNING: A geometry of 85513/255/63 for da5 is incorrect. Using │ │a more likely geometry. If this geometry is incorrect or you │ │are unsure as to whether or not it's correct, please consult │ │the Hardware Guide in the Documentation submenu or use the │ │(G)eometry command to change it now. │ │ │ │Remember: you need to enter whatever your BIOS thinks the │ │geometry is! For IDE, it's what you were told in the BIOS │ │setup. For SCSI, it's the translation mode your controller is │ │using. Do NOT use a ``physical geometry''. The cylinder, heads and sectors match what's found during boot up. Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't fdisk newly installed disks
[EMAIL PROTECTED] wrote: On 13/08/07, Simon Gao [EMAIL PROTECTED] wrote: Hi, I am running into some problem with fdisk newly installed drives. . . . # fdisk -BI da5 fdisk: cannot open disk /dev/da5: No such file or directory What is your securelevel? For example: % sysctl kern.securelevel kern.securelevel: -1 man init for more about securelevels. # sysctl kern.securelevel kern.securelevel: 3 Does higher security level prevent one from adding new file system? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't fdisk newly installed disks
Wojciech Puchar wrote: does anything else works. like dd if=/dev/disk of=/dev/null bs=1m count=1 Yes. # dd if=/dev/da5 of=/dev/null bs=1m count=1 1+0 records in 1+0 records out 1048576 bytes transferred in 0.155479 secs (6744167 bytes/sec) On Mon, 13 Aug 2007, Simon Gao wrote: Hi, I am running into some problem with fdisk newly installed drives. From boot message, these drives are found without problem: da3 at mpt0 bus 0 target 2 lun 0 da3: IFT A12U-G2421 347D Fixed Direct Access SCSI-3 device da3: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled da3: 2048000MB (4194304000 512 byte sectors: 255H 63S/T 261083C) da4 at mpt0 bus 0 target 2 lun 1 da4: IFT A12U-G2421 347D Fixed Direct Access SCSI-3 device da4: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled da4: 2048000MB (4194304000 512 byte sectors: 255H 63S/T 261083C) da5 at mpt0 bus 0 target 2 lun 2 da5: IFT A12U-G2421 347D Fixed Direct Access SCSI-3 device da5: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled da5: 670790MB (1373777920 512 byte sectors: 255H 63S/T 85513C) There are device files in /dev: crw-r- 1 root operator4, 14 Aug 13 17:14 /dev/da3 crw-r- 1 root operator4, 15 Aug 13 17:14 /dev/da4 crw-r- 1 root operator4, 16 Aug 13 17:14 /dev/da5 However, when trying to fdisk one of drives, I got following error: # fdisk -BI da5 fdisk: cannot open disk /dev/da5: No such file or directory sysintall failed also. The system runs FreeBSD 5.2.1-RELEASE. Any help is appreciated. Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't fdisk newly installed disks
Jerry McAllister wrote: On Tue, Aug 14, 2007 at 11:48:29AM -0700, Simon Gao wrote: [EMAIL PROTECTED] wrote: On 13/08/07, Simon Gao [EMAIL PROTECTED] wrote: Hi, I am running into some problem with fdisk newly installed drives. . . . # fdisk -BI da5 fdisk: cannot open disk /dev/da5: No such file or directory What is your securelevel? For example: % sysctl kern.securelevel kern.securelevel: -1 man init for more about securelevels. # sysctl kern.securelevel kern.securelevel: 3 Does higher security level prevent one from adding new file system? It can prevent you from making almost any changes. A secure level of 3 is very high and may be what you want for your production - depending on what you are doing, but will make any installation or development very difficult or impossible. jerry Thanks, Jerry. I tried to lower secure level, but still run into similar error: # sysctl kern.securelevel=-1 kern.securelevel: 3 sysctl: kern.securelevel: Operation not permitted Is there other way to reduce secure level to -1 without reboot the machine or drop into single user mode? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't fdisk newly installed disks
Jerry McAllister wrote: It can prevent you from making almost any changes. A secure level of 3 is very high and may be what you want for your production - depending on what you are doing, but will make any installation or development very difficult or impossible. jerry That's it. A secure level of 3 setting was the problem. Once changed secure level to -1, everything worked. Thanks. Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Can't fdisk newly installed disks
Hi, I am running into some problem with fdisk newly installed drives. From boot message, these drives are found without problem: da3 at mpt0 bus 0 target 2 lun 0 da3: IFT A12U-G2421 347D Fixed Direct Access SCSI-3 device da3: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled da3: 2048000MB (4194304000 512 byte sectors: 255H 63S/T 261083C) da4 at mpt0 bus 0 target 2 lun 1 da4: IFT A12U-G2421 347D Fixed Direct Access SCSI-3 device da4: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled da4: 2048000MB (4194304000 512 byte sectors: 255H 63S/T 261083C) da5 at mpt0 bus 0 target 2 lun 2 da5: IFT A12U-G2421 347D Fixed Direct Access SCSI-3 device da5: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled da5: 670790MB (1373777920 512 byte sectors: 255H 63S/T 85513C) There are device files in /dev: crw-r- 1 root operator4, 14 Aug 13 17:14 /dev/da3 crw-r- 1 root operator4, 15 Aug 13 17:14 /dev/da4 crw-r- 1 root operator4, 16 Aug 13 17:14 /dev/da5 However, when trying to fdisk one of drives, I got following error: # fdisk -BI da5 fdisk: cannot open disk /dev/da5: No such file or directory sysintall failed also. The system runs FreeBSD 5.2.1-RELEASE. Any help is appreciated. Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: looking for a good mailing list manager
Steven wrote: Hi I am looking for a good Open source mailing list manager. It should be web based, preferable be able to handle multiple domains but not essential, nice interface for user and administrator and at least fairly good statistics/reports. I have looked at phplist.com but not completely happy with it. Any help would be appreciated. Check out Sympa at www.sympa.org. Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to install a specific version of Python
Hi, How to install a specific version of Python which is not the latest version? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Linux equivalent to freebsd
Stephen Liu wrote: --- DAve [EMAIL PROTECTED] wrote: Patrick Bowen wrote: [EMAIL PROTECTED] wrote: Hi, Sorry this question is a little off-topic... We've been using Freebsd for many years and all of our servers are running freebsd. The only thing that is a pain with freebsd, is poor commercial support :( We are running in a situation where a customer needs Zend platform 3 (http://www.zend.com/products/zend_platform) which won't be available for freebsd until the end of the year... So I will need to setup a machine with linux. I don't know much about linux distributions, could someone recommend one to me please. We are looking for a platform that will support amd64 extensions, will act as a console only server and that has a good way to install ports and upgrade. We want something secure and stable. We don't wanna go with Redhat or any commercial distribution. I really like the cvsup/make install/portupgrade way of dealing with software installation and updates and I am looking for something equivalent on a linux distribution. Could you recommend a distribution you are using in production, we've check ubuntu, fedora and Debian, but I wonder what freebsd users recommend... Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Take a look at Slackware. http://www.slackware.com Patrick Seconded, if I got to run Linux, I run Slackware (and I have in production). If you need it there is a port of Slack to AMD64 called slamd64, http://www.slamd64.com/. FreeBSD users will appreciate it's simplicity and it's stability. slamd64-11.0 has issue on nVidia driver, same as FreeBSD 6.2-amd64. Besides you need to recompile kernel to enable smp technology. Each time after recompiling/upgrading kernel you need to reinstall the driver download on nVidia.com. The situation is better than FBSD. I can't locate driver for FBSD x86_64 on their website, only x_86 available. The onboard NIC fails to work and X can't work properly However smp technology is already enabled on FBSD. I have slamd64-11.0 and FreeBSD 6.2-amd64 running here. I have no knowledge on CentOS. I'm prepared to try it. According to folks on their forum CentOS supports nVidia chipset without problem. B.R. Stephen Liu Send instant messages to your online friends http://uk.messenger.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Why not give Gentoo Linux (www.gentoo.org) a try. By using Gentoo Linux, you not only get the similar port system, portage, as with FreeBSD, but also enjoy all the benefits Linux can provide. Gentoo Linux is very flexible and has a very good support community. Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Port installation failed
Hi, I had following errors when trying to install a package through port on one FreeBSD 4.7 machine: # make install /usr/ports/Mk/bsd.port.mk, line 2292: warning: String comparison operator should be either == or != /usr/ports/Mk/bsd.port.mk, line 2292: warning: String comparison operator should be either == or != /usr/ports/Mk/bsd.port.mk, line 2292: Malformed conditional (((${OSVERSION} 504105 || (${OSVERSION} = 60 ${OSVERSION} 600103) || (${OSVERSION} = 70 ${OSVERSION} 700012)) ${PKGORIGIN} != ports-mgmt/pkg_install) || exists(${LOCALBASE}/sbin/pkg_info)) /usr/ports/Mk/bsd.port.mk, line 2293: warning: String comparison operator should be either == or != /usr/ports/Mk/bsd.port.mk, line 2293: warning: String comparison operator should be either == or != /usr/ports/Mk/bsd.port.mk, line 2293: Malformed conditional ((${OSVERSION} 504105 || (${OSVERSION} = 60 ${OSVERSION} 600103) || (${OSVERSION} = 70 ${OSVERSION} 700012)) ${PKGORIGIN} != ports-mgmt/pkg_install) /usr/ports/Mk/bsd.port.mk, line 2308: if-less else /usr/ports/Mk/bsd.port.mk, line 2308: Need an operator /usr/ports/Mk/bsd.port.mk, line 2322: if-less endif /usr/ports/Mk/bsd.port.mk, line 2322: Need an operator /usr/ports/Mk/bsd.port.mk, line 5987: if-less endif /usr/ports/Mk/bsd.port.mk, line 5987: Need an operator make: fatal errors encountered -- cannot continue Anyone has seen similar problem? It seems that bsd.port.mk is causing problem. Can I just replace bsd.port.mk file with one from other machines? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
CVSup question
Hi, I have some machines running FreeBSD 5.2.1. Is it safe to update ports to 5.4_stable via CVSup? Or should I use 5_stable? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CVSup question
What if I just want to update ports for 5 stable tree? If using HEAD, then may some ports being updated be current but not stable? Or there is no such things as stable or current ports? Simon Joe Holden wrote: Simon Gao wrote: Hi, I have some machines running FreeBSD 5.2.1. Is it safe to update ports to 5.4_stable via CVSup? Or should I use 5_stable? Ports are independant of base branch, ports should generally be HEAD (tag=.). HTH, Joe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
filesystem size
Hi, What's largest filesystem size supported by FreeBSD 5.2.1 i386? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: filesystem size
I looked at the link. It seems that it's not desirable to make a filesystem larger than 2TB with 5.2.1. How about 6.1/6.2? Are those remaining issues resolved with 6.1/6.2? Simon Kris Kennaway wrote: On Tue, Jan 09, 2007 at 02:01:47PM -0500, Andy Greenwood wrote: On 1/9/07, Simon Gao [EMAIL PROTECTED] wrote: Hi, What's largest filesystem size supported by FreeBSD 5.2.1 i386? You might want to read this: http://www.freebsd.org/projects/bigdisk/index.html And update to a modern release of FreeBSD, if large filesystem support is important to you. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Sharing ports tree, possible?
Is it possible to share ports tree directory? If so, what's the procedure? Simon Gao ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Sendmail greet_pause config
Hi, I am trying to enable a new feature, greet_pause, with Sendmail 8.13.x on FreeBSD 4.7. When I try to re-generate sendmail.cf file, I got following error and the file generation failed: # m4 /usr/share/sendmail/cf/m4/cf.m4 sendmail.mc sendmail.cf m4: sendmail.mc at line 53: include(/usr/share/sendmail/cf/feature/greet_pause.m4): No such file or directory The new feature greet_pause is available since 8.13.1. Why am I missing the file? Or did I do something wrong when creating sendmail.cf? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Update pkg_info
Hi, After updating ports using portsnap, I have this problem when running pkg_info: pkg_info: read_plist: bad command '@conflicts ruby18-bdb[2-4]*' How do I update pkg_info package on FreeBSD 4.7? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail greet_pause config
Matt, Here is the sendmail.mc: == divert(-1) # # Copyright (c) 1983 Eric P. Allman # Copyright (c) 1988, 1993 divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.16 2002/05/22 16: 39:14 gshapiro Exp $') OSTYPE(freebsd4) DOMAIN(generic) FEATURE(access_db, `hash -o -TTMPF /etc/mail/access') FEATURE(blacklist_recipients) FEATURE(`greet_pause', `1000') FEATURE(local_lmtp) FEATURE(mailertable, `hash -o /etc/mail/mailertable') FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') define(`confBIND_OPTS', `WorkAroundBroken') define(`confMAX_MIME_HEADER_LENGTH', `256/128') define(`confNO_RCPT_ACTION', `add-to-undisclosed') define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') MAILER(local) MAILER(smtp) == The sendmail version is 8.13.4, which I am certain greet_pause is available. I assume if a certain version of Sendmail installed, then all the features should be available regardless which version FreeBSD? Is that correct? Simon Matthew Seaman wrote: Simon Gao wrote: Hi, I am trying to enable a new feature, greet_pause, with Sendmail 8.13.x on FreeBSD 4.7. When I try to re-generate sendmail.cf file, I got following error and the file generation failed: # m4 /usr/share/sendmail/cf/m4/cf.m4 sendmail.mc sendmail.cf m4: sendmail.mc at line 53: include(/usr/share/sendmail/cf/feature/greet_pause.m4): No such file or directory The new feature greet_pause is available since 8.13.1. Why am I missing the file? Or did I do something wrong when creating sendmail.cf? Well, show us your sendmail.mc file then and we'll probably be able to help. Otherwise about the only valid conclusion we can come to is yes, you did something wrong. For reference, if you insert the following into your .mc file you should get a 5s greeting pause: FEATURE(greet_pause, `5000')dnl ## 5 seconds Note the quotes around `5000' -- the left hand quote is not like the right hand one. That's something that often catches out people unused to the ways of m4(1). You should have a /usr/share/sendmail/cf/feature/greet_pause.m4 file if your version of sendmail supports this feature. It works for me just using the system sendmail on RELENG_6. I think the sendmail that comes with 4.7 is too old. You'ld be well advised to upgrade -- at least to 4.11-RELEASE-p25, but preferably 6.2-RELEASE due out Real Soon Now. Cheers, Matthew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail greet_pause config
If I use portupgrade to update sendmail, can I downgrade sendmail later to the previous version if things do not work out? Simon Chuck Swiger wrote: Simon Gao wrote: I am trying to enable a new feature, greet_pause, with Sendmail 8.13.x on FreeBSD 4.7. You should update to FreeBSD 4.11 or later, which will give you a newer sendmail in the base system, which will probably fix the /etc/mail make magic which builds config files. Otherwise, you might try installing the sendmail port and have it over-write the base system's config files under /usr/share/sendmail. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail greet_pause config
Thanks all. My problem is now fixed by using /usr/local/share/sendmail/cf/m4/cf.m4. Sendmail has been upgraded since default install through port. Simon Vince Hoffman wrote: Simon Gao wrote: Hi, I am trying to enable a new feature, greet_pause, with Sendmail 8.13.x on FreeBSD 4.7. When I try to re-generate sendmail.cf file, I got following error and the file generation failed: # m4 /usr/share/sendmail/cf/m4/cf.m4 sendmail.mc sendmail.cf m4: sendmail.mc at line 53: include(/usr/share/sendmail/cf/feature/greet_pause.m4): No such file or directory The new feature greet_pause is available since 8.13.1. Why am I missing the file? Or did I do something wrong when creating sendmail.cf? According to the release note freebsd 4.7 used 8.12.6 (http://www.freebsd.org/releases/4.7R/relnotes-i386.html#AEN480) If you are using the version from ports you need to use /usr/local/share/sendmail not /usr/share/sendmail Vince Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Cleanly remove a package
Hi, I have a question hope someone can help. When upgrading a package say vsftpd, I used port install. After newer version is installed, I have both newer and older versions being listed if run pkg_info. The newer version works fine. However, I can not run make deinstall after installing the newer version because after port tree being updated, there is no make file for older version. Plus I can't run make deinstall on a live machine until newer package installed. Any help is appreciated. Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cleanly remove a package
Thanks, this helps. Simon Beech Rintoul wrote: On Sunday 05 November 2006 12:52, Simon Gao wrote: Hi, I have a question hope someone can help. When upgrading a package say vsftpd, I used port install. After newer version is installed, I have both newer and older versions being listed if run pkg_info. The newer version works fine. However, I can not run make deinstall after installing the newer version because after port tree being updated, there is no make file for older version. Plus I can't run make deinstall on a live machine until newer package installed. Any help is appreciated. Simon Run pkgdb -F and it will ask you if you want to unregister one of them. Cheers Beech ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: What's so compelling about FreeBSD?
Robert Huff wrote: Jeff Mohler writes: Linux supports more devices than FreeBSD, especially new devices. Linux clearly supports many more bugs than FreeBSD as well. Linux is closer to the bleeding edge; always remember that blood will usually be yours. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] With Gentoo, installing and upgrading to the most up-to-date packages is a choice up to end users. Gentoo is all about choice. One can definitely choose to use packages a few years behind. Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: What's so compelling about FreeBSD?
Nathan Vidican wrote: In one word... stability. Seriously, it's matured better than linux. Based on a codebase tested and depended upon for a lot longer than linux has been around. BSD is here to stay, even if linux is becoming more mainstream. Simply because it works, and has worked for years and years. Probably true. FreeBSD is an entire operating system. The 'commands' you run (ie: shells, tar, disk utilities, filesystems, etc) are all bundled in the same code as one offering. Linux is a kernel, and a filesystem - each individual distribution therefore consisting of the kernel and various (mostly third- party/gnu) utilities to make up an O/S. Since there's no real central 'standard' set of utilities, each distribution varies not only in what it supports, how it works, but also where and how everything is configured from the install. FreeBSD on the other hand, stays tride and true with the same structure and only minimal variances (ie: sysinstall moved from /stand to /usr/sbin in version 6). Linux is all about choice. Yes, there is no single filesystem to stick with Linux. You have ext2/ext3, reiserfs, jfs, xfs you can use. However, each filesystem has its own advantages and disadvantages. Depending on what's needed, one can have different filesystems on one machine. If one looks for a whole OS, Solaris, AIX, OSX, or even Windows will work better at least you do not have to worry about device support problem. Even though there are many Linux distributions, but Linux core pacakges are the mostly the same. The differences are mainly in window manager and GUI applications. No matter which Linux distribution, kernel 2.6.16 is always the same. When it comes to X window, it's xorg across the board. On a more personal note, I prefer *BSD to linux because of the simplicity; too many variances between different linux distributions. With linux everyone and their brother has a different distribution out there; differing releases move configuration files to different places, each vendor makes their own package management, etc. I know the same could be argued about FreeBSD vs OpenBSD vs NetBSD, etc... but it's been my experience that linux has no real standard that all distros follow where *BSD does in terms of the userland, and let's face it - the userland is what we all have to work/live with the most. (just my two cents) -- Nathan Vidican [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: What's so compelling about FreeBSD?
I have a few FreeBSD machine from 4.x to 5.x. I have asked people how to upgrade them to latest version 6.x cleanly. All I was told is that I need to wipe them out and reinstall. However, this is not the case with Gentoo Linux. With Gentoo, version release does not matter that much, you can always keep your system up to date if you like. Of cause, you can also choose staying at a certain version. Linux supports more devices than FreeBSD, especially new devices. Simon Jim Stapleton wrote: Well, in my case: - No matter what method I use to install packages in Linux (Apt-Get, Yum, Deb, RPM, and to a much lesser extent, Emerge, and to a *MUCH* greater extent src tar.gz's), I tend to have a lot more trouble getting installs to finish than with BSD in ports. - The FreeBSD community is much more friendly and helpful than the Linux community, in my experience. Gentoo's is better than other Linux communities, but still not quite up to FreeBSD. - I notice a lot smaller number of It's 'X' liscence, therefore it has to be good, or It's open source therefore it has to be good fanboys in FreeBSD. The users tend to be more of a It works, so it's good type. This really makes the commmunity pleasant. - The documentation of FreeBSD is much better in both organization and detail - while good documentation can be found for Linux, FreeBSD just takes a lot less searching. - I've found a lot of breaks in Linux where I couldn't find anything short of a system re-install to fix them without a lot more effort in searching for some obscure piece of documentation. Aside from once when I blew up my kernel build, I didn't have that problem in BSD. - It's less popular than Linux, so it's less commonly known/accounted for, and it makes you just that much safer from hackers. Note: that's not to say it doesn't have it's issues, like every other OS, I could name a few dozen issues I've run into with FreeBSD without much hassle (mostly related to drivers, UI, and parts of the installer), but that's a different topic alltogether. -Jim ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RHEL 4 slave NIS server setup problem
Hi, Hope someone can help me here. We have a NIS master server running on FreeBSD 4.11. RHEL clients can bind to the server without any problem. Now I want to add another nis slave server using RHEL 4. When I issued command /usr/lib/yp/ypinit -s master, I got following errors: We will need a few minutes to copy the data from master. Transferring passwd.byuid... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring passwd.byname... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring group.bygid... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring group.byname... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring services.byname... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring rpc.bynumber... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring rpc.byname... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring protocols.byname... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring networks.byname... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring protocols.bynumber... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring hosts.byaddr... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring netid.byname... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring networks.byaddr... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring ypservers... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) Transferring hosts.byname... Trying ypxfrd ...rpc.ypxfrd doesn't support the needed database type call to rpc.ypxfrd failed: RPC: Can't decode result (failed, fallback to enumeration) faith.schrodinger.com's NIS data base has been set up. If there were warnings, please figure out what went wrong, and fix it. At this point, make sure that /etc/passwd and /etc/group have been edited so that when the NIS is activated, the data bases you have just created will be used, instead of the /etc ASCII files. Is it required to have the same nis map data file type on both master and slave? How to make maps transfer from FreeBSD to Linux correctly? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
NIS ypserv problem with client ypbind
Hi, We are running a NIS server on FreeBSD 4.7. Clients running Gentoo can not bind to the server. The ypbind on Gentoo client is ypbind-1.19.1-r1. Tests with NIS servrs running on Gentoo and Redhat machines do not show any problem with the same Gentoo clients. I tried to find version of ypserv installed on the machine. However, I could not. Neither pkg_info nor /usr/sbin/ypserv provides any version information. Any other way to find out which version of ypserv is installed? Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]