Re: Put /usr on a different drive
On 1/14/07, Jerry McAllister [EMAIL PROTECTED] wrote: On Sun, Jan 14, 2007 at 12:08:13AM +0100, Daniel A. wrote: Hi, I'm wondering if someone could point me in the right direction of moving the entire /usr partition to a second hard disk, given that I am on an existing (newly installed) install of FreeBSD. Also, is it possible to specify something like this during the installation itself? It is quite possible, but not quite as convenient as it could be if you are not familiar with the installer. Any possible google queries, links, articles, et cetera are warmly welcomed. I've tried throwing a few keywords at google, but it all returns off topic pages. In the last six months I have posted fairly complete ways of doing this several times on this list. It is easy. I suggest you look throught the FreeBSD questions archives. Most of my posts assume things are being moved to an existing file system, but the process is the same. First, you should look at what is using up space in your /usr filesystem. It may be that something is growing in a way you do no want. For that, use the 'du' command something like: cd /usr du -sk * Cd in to any directory that seems unreasonable and repeat the du to narrow things down. One thing that is often done, but I don't recommend is putting user accounts and other things that can grow unexpectedly in to /usr. I make a separate file system for user accounts, generally using the /home mount point. I also put /usr/ports in a different file system. If you finally decide that you do need to add a disk - a very real possibility - then choose a good quality drive of the same general type your already have - SCSI, IDE/SATA, SAS - aind physicaly install it. Boot the machine and look for in dmesg. It will either show up as dann or adnn where nn is a device number. It will be da for SCSI or ad for IDE family. The first drive will be 0 the second will be 1, etc.Probably your boot drive is 0 and the one you add will be 1. If they are IDE then ad0 and ad1. Next, take a look at the drive with fdisk. Presuming it is ad1, do: fdisk ad1 It should find the disk and think everything is in slice 1 unless the disk was formerly used in a different system, in which case it should see the disk, but stuff may be spread ofer up to 4 slices (occasionally miscalled partitions). My examples the new drive is IDE family and is the second disk. You can make sure everything that might be left on it is effectively wiped out by doing: dd if=/dev/zero of=/dev/ad1 bs=512 count=65 Then, to make the disk usable you need to do an fdisk, bsdlabel and newfs. Presuming you will use the whole disk for /usr (maybe you will really want to use it in a more complex way, but the process is essentially the same) and presuming you don't want to make the drive bootable - and install an OS on it in a separate root, then The fdisk creates the slice table and writes sector 0. fdisk -I ad1 writes one single slice containing all the usable space on the drive. NOTE, although drives are numbered 0-nn, slices are numbered 1-4. Then you need to create a label in slice 1 bsdlabel -w ad1s1 creates the initial label - note the additional 's1' to specify the slice. Now, divide up the slice in to partitions. In this I am presuming you want a single large partition. Use the bsdlabel in edit mode. bsdlabel -e ad1s1 You will be put in a vi edit session unless you have a different default editor specified in an environment variable. That will bring up a screen with the slice label as it currently is. Ignore all the stuff specifying drive specs. For one partition, change only one field. There should be a line starting with 'a:' Change it so it looks like: a:*04.2BSD 2048 16384 32776 Leave the line that starts 'c:' as is. But, if it doesn't give you an 'a:' line, copy the 'c:' line and use it and just replace the size field with the '*' You don't really need to change the fsize, bsize and bps fields, but suggest you make them as I have them above. Then you have to create a file system on that partition. Do that with newfs. newfs /dev/ad1s1a Newfs needs the full device spec as above. now you can mount and write to the filesystem. I'd suggest you do this next stuff in single user mode, but it isn't absolutely essential. Make a temporary mount point and mount it. mkdir /newusr mount /dev/ad1s1a /newusr Copy the existing /usr to the new space, probably using tar I use an interim file, but you can use pipes. If your current /usr is really a whole partition in and of itself, then I would use dump/restore instead of tar for this cd /usr tar cvpf /newusr/usr.tar * cd /newusr tar xvpf usr.tar The 'v' flag is not essential, but gives you the confidence something is happening. Using dump/restore instead of tar, do: cd /newusr dump 0af - | restore -rf - Now, get rid of the old /usr and make it use the new one. cd / mv usr oldusr umount /newusr
Re: question on smtp AUTH
David Banning wrote: That would seem to suggest that the spam is being sent using an authorized account, however, is it possible that a host inside your network is sending the spam? Thanks for that test Paul. I do believe that it could have been a virus infected windows box. I am not convinced now. I -do- know that I have had crackers attempting access via SSH and I did not have anything to stop them from trying every possible configuration. Eventually they may have gotten a usable login and password. I now have them blocked after 5 failed attempts but still there could be someone spamming using the login and password obtained previously. Before getting -everyone- to change thier password I am wondering if there isn't a way to log who is sending via what login authentication. I could then just setup a new password for that user only. You can make the logging more verbose at the SASL level. You should have a file /usr/local/lib/sasl2/Sendmail.conf which contains sendmail specific bits of the SASL configuration. (just create it if you don't already have it). You can add to that a log_level: 6 parameter, which should cause enough logging to be generated that you can tell who was logging in and where from, without logging passwords or other sensitive stuff. You might want to follow the instructions in /etc/syslog.conf for enabling the all.log. For more info on the sort of stuff you can put in the various SASL config files see: http://www.sendmail.org/~ca/email/cyrus2/options.html The available levels (from sasl.h) are: /* Logging levels for use with the logging callback function. */ #define SASL_LOG_NONE 0/* don't log anything */ #define SASL_LOG_ERR 1/* log unusual errors (default) */ #define SASL_LOG_FAIL 2/* log all authentication failures */ #define SASL_LOG_WARN 3/* log non-fatal warnings */ #define SASL_LOG_NOTE 4/* more verbose than LOG_WARN */ #define SASL_LOG_DEBUG 5/* more verbose than LOG_NOTE */ #define SASL_LOG_TRACE 6/* traces of internal protocols */ #define SASL_LOG_PASS 7/* traces of internal protocols, including Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
let somebody watch my actions over the network
Hi peeps, I have this question about administering a freebsd box through ssh. I am helping a friend of mine configuring his freebsd 6.1 system. But he lives in anothe rpart of the town so we are working through ssh. But because he wants to learn by looking over my shoulder at the things I do, he asked me if I knew a tool or a way to make that happen. So basically, if I login through ssh, he wants to sit behind the machine and see what actions I'm doing. And because we talk over skype, we could have this whole interactin going on while I'm configuring his machine. How could I accomplish something like this? Does anyone have an idea? Two tools come to my mind, screen and nxserver but still I don't have a clue how to accomplish this. Hope someone can point me in a good direction. Brgds Dino The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: let somebody watch my actions over the network
Maybe watch(8) will help you, and lastcomm(1) is also helpful. Dino Vliet 写道: Hi peeps, I have this question about administering a freebsd box through ssh. I am helping a friend of mine configuring his freebsd 6.1 system. But he lives in anothe rpart of the town so we are working through ssh. But because he wants to learn by looking over my shoulder at the things I do, he asked me if I knew a tool or a way to make that happen. So basically, if I login through ssh, he wants to sit behind the machine and see what actions I'm doing. And because we talk over skype, we could have this whole interactin going on while I'm configuring his machine. How could I accomplish something like this? Does anyone have an idea? Two tools come to my mind, screen and nxserver but still I don't have a clue how to accomplish this. Hope someone can point me in a good direction. Brgds Dino The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php ___ 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: automake19: texinfo error during build
what I can do?? /Regards/ ~~~ *Eng. Mahmoud AL-Labadi* /Network Department Palnet Communications Ltd. Hadara Technologies http://www.palnet.com [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] //Tel.02/2403434. Fax.02/2403430/ ~~~ Giorgos Keramidas wrote: On 2007-01-13 10:31, Mahmoud Labadi [EMAIL PROTECTED] wrote: thank for your quick response.. I did that because I got this error during making install for mutt package so I tried to check automake please advise === mutt-1.4.2.2 depends on executable in : sgmlfmt - found === mutt-1.4.2.2 depends on file: /usr/local/bin/automake19 - not found ===Verifying install for /usr/local/bin/automake19 in /usr/ports/devel/automake19 === Building for automake-1.9.6 Making all in . Making all in doc restore=: backupdir=.am$$ am__cwd=`pwd` cd . rm -rf $backupdir mkdir $backupdir if (makeinfo --no-split --version) /dev/null 21; then for f in ./automake19.info ./automake19.info-[0-9] ./automake19.info-[0-9][0-9] ./automake19.i[0-9] ./automake19.i[0-9][0-9]; do if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; done; else :; fi cd $am__cwd; if makeinfo --no-split -I . -o ./automake19.info ./automake19.texi; then rc=0; cd .; else rc=$?; cd . $restore $backupdir/* `echo ././automake19.info | sed 's|[^/]*$||'`; fi; rm -rf $backupdir; exit $rc ./automake19.texi:8788: Unknown command `tie'. ./automake19.texi:8788: Misplaced {. ./automake19.texi:8788: Misplaced }. [...] That's odd. I have automake19 installed here, and it doesn't fail with this error message, when I rebuild it: [EMAIL PROTECTED]:/home/keramida$ pkg_info | grep automake automake-1.9.6 GNU Standards-compliant Makefile generator (1.9) [EMAIL PROTECTED]:/home/keramida$ On 2007-01-13 10:43, Jos? G. Juanino [EMAIL PROTECTED] wrote: Maybe I am wrong also, but I suspect you are using makeinfo binary from print/texinfo port instead from base system, and you have /usr/local/bin in your PATH before /usr/bin (bad idea in that case). That's possible. Mahmoud, can you show us your PATH and other environment settings? This should be easy to do with: root# env | sort ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: let somebody watch my actions over the network
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 kbtrace wrote: Maybe watch(8) will help you, and lastcomm(1) is also helpful. Dino Vliet 写道: Hi peeps, I have this question about administering a freebsd box through ssh. I am helping a friend of mine configuring his freebsd 6.1 system. But he lives in anothe rpart of the town so we are working through ssh. But because he wants to learn by looking over my shoulder at the things I do, he asked me if I knew a tool or a way to make that happen. So basically, if I login through ssh, he wants to sit behind the machine and see what actions I'm doing. And because we talk over skype, we could have this whole interactin going on while I'm configuring his machine. How could I accomplish something like this? Does anyone have an idea? Two tools come to my mind, screen and nxserver but still I don't have a clue how to accomplish this. Hope someone can point me in a good direction. Brgds Dino If he just wants strictly commands invoked in a shell, there's always history(1). It's enabled by default on sh/bash, but you need to enable it on csh/tcsh IIRC (don't remember the method, but google will give you the answers). - -Garrett -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.1 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFqiBIEnKyINQw/HARAqyJAJwL8DSok6Lz5JcP7LZi93m8xx8BlQCfX9Be a1tdWr/BMCvvLyti8/fpo44= =PtSf -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
problem mounting digital camera
I am having a problem mounting my digital camera, it is a Nikon Coolpix 7600. It shows up in dmesg: ugen0: NIKON NIKON DSC E7600-PTP, rev 2.00/1.00, addr 2 and from usbdevs: addr 2: NIKON DSC E7600-PTP, NIKON not getting anything about umass or da0. I have the following lines in /boot/loader.conf: usb_load=YES umass_load=YES in rc.conf I have: usbd_enable=YES dbus_enable=YES polkitd_enable=YES hald_enable=YES and I have umass enabled in the kernel config When I try to mount I get the following: # mount -t msdos /dev/da0s1c /mnt mount_msdosfs: /dev/da0s1c: No such file or directory Any help would be appreciated. TIA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Identifying a Remote Machine.
Hi all, Try not to laugh too hard here I have several servers, each with hundreds of IPs on them. I am attempting to write a php script that will connect to each ip and identify the 'hostname' as set in rc.conf. I have been looking at icmp, env etc, and can't find a method. I was also loioking at ping, but it does not show the hostname. The only reply I need from the server is the hostname. That will tell ne that the IP is live and what machine its on. Is there any suggestions? -Grant ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem mounting digital camera
On Sunday 14 January 2007 15:07, [EMAIL PROTECTED] wrote: I am having a problem mounting my digital camera, it is a Nikon Coolpix 7600. It shows up in dmesg: ugen0: NIKON NIKON DSC E7600-PTP, rev 2.00/1.00, addr 2 and from usbdevs: addr 2: NIKON DSC E7600-PTP, NIKON not getting anything about umass or da0. I have the following lines in /boot/loader.conf: usb_load=YES umass_load=YES in rc.conf I have: usbd_enable=YES dbus_enable=YES polkitd_enable=YES hald_enable=YES and I have umass enabled in the kernel config When I try to mount I get the following: # mount -t msdos /dev/da0s1c /mnt mount_msdosfs: /dev/da0s1c: No such file or directory Any help would be appreciated. PTP cameras never identified as mass storage devices. try digikam from ports, but read carefully about raw USB access (for example here - http://www.gphoto.org/doc/manual/permissions-usb.html ) if you running DE not as root. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Please Help! How to STOP them...
On Fri, 12 Jan 2007 15:53:04 -0800 Jay Chandler [EMAIL PROTECTED] wrote: Please, please, PLEASE RTFM. If that's too much to ask, try taking a class, hiring a consultant, or using a more user-friendly OS. I have been a user of FreeBSD for 8 years and it is very friendly to me...not sure what you mean :) (yes, 'user-friendliness' is one of those pejorative terms that assume the user is a lesser mind than ... ours? i dont know... I am not taking offense, just point out something which seems quite engrained in our way of thinking (or pushed by the M$ marketing folks ;) )... Anyway, I do agree with Jay tells VJ - I told VJ as much on a private email (he/she direclty emailed me to start). best, _ {Beto|Norberto|Numard} Meijome The only good bureaucrat is one with a pistol at his head. Put it in his hand and it's goodbye to the Bill of Rights. H.L. Mencken I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem mounting digital camera
[EMAIL PROTECTED] wrote: I am having a problem mounting my digital camera, it is a Nikon Coolpix 7600. It shows up in dmesg: ugen0: NIKON NIKON DSC E7600-PTP, rev 2.00/1.00, addr 2 and from usbdevs: addr 2: NIKON DSC E7600-PTP, NIKON not getting anything about umass or da0. I have the following lines in /boot/loader.conf: usb_load=YES umass_load=YES in rc.conf I have: usbd_enable=YES dbus_enable=YES polkitd_enable=YES hald_enable=YES and I have umass enabled in the kernel config When I try to mount I get the following: # mount -t msdos /dev/da0s1c /mnt mount_msdosfs: /dev/da0s1c: No such file or directory Any help would be appreciated. TIA Hi, You should try accessing your camera with something like gphoto2 (from ports) as it seems to report PTP (picture transfer protocol) mode. Some Nikon cameras had the option to select the USB transfer mode betweek PTP and mass storage. On mine (Coolpix 4600) it is located under Setup-Interface-USB- and then Select PTP or Mass storage Regards, Niki Denev ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem mounting digital camera
Hello Andy! Sun, Jan 14, 2007 at 07:07:18AM -0500 you wrote: I am having a problem mounting my digital camera, it is a Nikon Coolpix 7600. It shows up in dmesg: ugen0: NIKON NIKON DSC E7600-PTP, rev 2.00/1.00, addr 2 I too have a Coolpix here, it's 5900 but yours should be similar. Enter the camera's `Setup', Select `Interface' from the menu, select `USB', and select `Mass storage' (you probably have PTP there, which is why dmesg is saying so). It should show up as umass then. HTH, -- DoubleF No virus detected in this message. Ehrm, wait a minute... /kernel: pid 56921 (antivirus), uid 32000: exited on signal 9 Oh yes, no virus:) pgpYvgqtNa7GD.pgp Description: PGP signature
Re: let somebody watch my actions over the network
kbtrace [EMAIL PROTECTED] writes: Maybe watch(8) will help you, and lastcomm(1) is also helpful. alternatively, start script(1) and make sure the other user can read the file, using tail -f or somesuch. That's also a quite convenient way to create a record of just what happened so you can see where things went wrong if they do. -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/ First, we kill all the spammers The Usenet Bard, Twice-forwarded tales delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Identifying a Remote Machine.
On 1/14/07, Grant Peel [EMAIL PROTECTED] wrote: Hi all, Hello, The only reply I need from the server is the hostname. That will tell ne that the IP is live and what machine its on. Wouldn't a ping be enough if you just need to know whether the machine is on? -Grant -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Identifying a Remote Machine.
ACtually no, Sory if the question was vauge, What I am looking to do is to create a tool that will identify what MACHINE (not domain) an ip is being used on. -Grant - Original Message - From: Pietro Cerutti [EMAIL PROTECTED] To: Grant Peel [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Sunday, January 14, 2007 9:21 AM Subject: Re: Identifying a Remote Machine. On 1/14/07, Grant Peel [EMAIL PROTECTED] wrote: Hi all, Hello, The only reply I need from the server is the hostname. That will tell ne that the IP is live and what machine its on. Wouldn't a ping be enough if you just need to know whether the machine is on? -Grant -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
MSI K8N-SLI ( Nforce 4 ) + Musicpd warnings
Since not so long I have a MSI K8N-SLI mainbord, I updated to 6.2-PRERELEASE so I could use the nfe driver for the onboard NIC. Now there is only one thing left which bothers me. I am using musicpd to play my music, allthough every time I give a command either by commanline through mpc or through a webclient I get kernel messages like these: WARNING pid 1661 (mpd): ioctl sign-extension ioctl c0045006 WARNING pid 1661 (mpd): ioctl sign-extension ioctl c0045002 WARNING pid 1661 (mpd): ioctl sign-extension ioctl c0045005 WARNING pid 1661 (mpd): ioctl sign-extension ioctl c0045006 WARNING pid 1661 (mpd): ioctl sign-extension ioctl c0045002 WARNING pid 1661 (mpd): ioctl sign-extension ioctl c0045005 I have to say, everything works just fine but it's anyoing that these message keep showing up in my dmesg. When I googled on it I didn't realy found a solusion. Does anyone know what the problem is/can be and what I can do to fix it ? Regards, -- -Frank Staals ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Identifying a Remote Machine.
What is the configuration of your computer and network? Maybe you could try nbtscan, but there is also a lot of things to do with the result of nbtscan. ACtually no, Sory if the question was vauge, What I am looking to do is to create a tool that will identify what MACHINE (not domain) an ip is being used on. -Grant - Original Message - From: Pietro Cerutti [EMAIL PROTECTED] To: Grant Peel [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Sunday, January 14, 2007 9:21 AM Subject: Re: Identifying a Remote Machine. On 1/14/07, Grant Peel [EMAIL PROTECTED] wrote: Hi all, Hello, The only reply I need from the server is the hostname. That will tell ne that the IP is live and what machine its on. Wouldn't a ping be enough if you just need to know whether the machine is on? -Grant -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ___ 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: Please Help! How to STOP them...
VeeJay wrote: I am reading many hundred lines similar to below mentioned? Could you please advise me what to do and how can I make my box more secure? Jan 9 17:54:42 localhost sshd[5130]: reverse mapping checking getaddrinfo for bbs-83-179.189.218.on-nets.com [218.189.179.83] failed - POSSIBLE BREAK-IN ATTEMPT! Jan 9 17:54:42 localhost sshd[5130]: Invalid user sysadmin from 218.189.179.83 Please, this is possibly the most frequently asked question not in the FAQ. Understand that whenever you make a service available on the internet, someone is going to try to break in. Be it ssh, smtp, dns, http etc. What you need to learn is to identify which attacks constitute a real threat to your system. The first log entry is no sign of break in attempt. Just because a DNS server is misconfigured doesn't mean that people are trying to attack you. The second line is evidence that some illicit events are recorded. But, there is no reason to worry about these if you have properly configured your box. Please search the archives for ssh brute force - this topic has been discussed a zillion times. Some mention port knocking. This doesn't make people stop trying to get into your box. It introduces an extra hazle to do so as you first have to knock on the port a secret (but shared secret) sequence. Then you will authenticate as previously. If you are troubled with messages in your log, there are plenty of ordinary things you can do: - enforce key authentication - restrict access to certain users or groups of users - deny direct access as root - enforce strong passwords, if you can't enforce key authentication - limit the ip address space that is allowed to connect, to the space where you or your users are likely to be - limit the number of simultaneous unauthenticated connections Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org smime.p7s Description: S/MIME Cryptographic Signature
Re: Identifying a Remote Machine.
On 1/14/07, Grant Peel [EMAIL PROTECTED] wrote: ACtually no, Sory if the question was vauge, What I am looking to do is to create a tool that will identify what MACHINE (not domain) an ip is being used on. Check out this: #include netinet/in.h #include sys/types.h #include sys/socket.h #include limits.h #include stdio.h #include stdlib.h #include strings.h #define MAX_BUFF 128 #define MAX_NAME 128 int main(int argc, char **argv) { char buf[MAX_BUFF], name[MAX_NAME]; intrecv, sock, addrlen; struct sockaddr_in addr, from; if(argc != 3) { fprintf(stderr, usage: %s ip port\n, argv[0]); return(1); } addrlen = sizeof(struct sockaddr); /* get hostname */ bzero(name, MAX_NAME); if(gethostname(name, MAX_NAME) == -1) { perror(gethostname); return(1); } /* create socket */ if((sock = socket(PF_INET, SOCK_DGRAM, 0)) == -1) { perror(socket); return(1); } /* create addres */ bzero(addr, addrlen); addr.sin_family = AF_INET; addr.sin_port= htons((int)strtol(argv[2], (char **)NULL, 10)); if(inet_aton(argv[1], addr.sin_addr) == 0) { perror(inet_aton); return(1); } /* bind */ if(bind(sock, (struct sockaddr *)addr, addrlen) == -1) { perror(bind); return(1); } /* loop infinitely */ for(;;) { /* receive */ if((recv = recvfrom(sock, buf, MAX_BUFF -1, 0, (struct sockaddr *)from, addrlen)) == -1) { perror(recvfrom); continue; } buf[recv] = '\0'; /* send hostname */ if(sendto(sock, name, MAX_NAME, 0, (struct sockaddr *)from, sizeof(struct sockaddr)) == -1) { perror(sendto); continue; } } return(0); } -Grant - Original Message - From: Pietro Cerutti [EMAIL PROTECTED] To: Grant Peel [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Sunday, January 14, 2007 9:21 AM Subject: Re: Identifying a Remote Machine. On 1/14/07, Grant Peel [EMAIL PROTECTED] wrote: Hi all, Hello, The only reply I need from the server is the hostname. That will tell ne that the IP is live and what machine its on. Wouldn't a ping be enough if you just need to know whether the machine is on? -Grant -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Newbie attempting to install Flamenco (open source, python-based, faceted interface)
Hi, I am a library student at Drexel University in Philadelphia, PA. My goal is to aggregate information about the Library and Information Science profession (e.g. conferences, mailing lists, blogs, professional associations, accredited LIS schools, scholarships, etc.). Ironically, no one else has documented my chosen profession, at least not online. My hope is to create a self-sustaining community that sees the value in faceted interfaces and shares my appreciation for the importance of using open source software to organize open information. I have an excellent host, TextDrive, that is committed to open source development and does a very nice job with its machines, but my server runs FreeBSD, and Flamenco http://flamenco.berkeley.edu/index.html seems to be Linux-centric: Please note that we have only tested the code on the Linux OS (Red Hat 2.4.21). By changing the path to Python in its install script and replacing cp -a with cp -pRP, I've gotten it most of the way installed, but not all the way -- I can't get it to install the data itself, what Flamenco calls instances. My hope is that someone on this list who is comfortable with Python and MySQL might try installing Flamenco and see if it's possible within the FreeBSD environment. I realize it seems like a lot of bother, but check out Flamenco's examples http://flamenco.berkeley.edu/demos.html, especially the Nobel Prize winners http://orange.sims.berkeley.edu/cgi-bin/flamenco.cgi/nobel/Flamenco. The developers have created a gorgeously clean interface, and they're hosting the project on Sourceforge -- but the Flamenco community hasn't yet gotten to the point where it can provide its own support. My hope is that a visible project, like the one I'm undertaking, might get the ball rolling. I've tried Flamenco's seemingly solid documentation, Google, FreeBSD documentation, TextDrive forums, TextDrive's help desk, and I've contacted the developers. I'm not sure what else to try given that I've been working on this since November 26, at least a few hours per week. I realize I could use MIT's Longwell, but I much prefer Flamenco. I hope at least one other person on this list will see the value in Flamenco and will be able to figure out what needs to be done to make it work within FreeBSD. Thank you, Brett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to burn IFO, VOB... files to make a playable DVD
Hi! I ripped the ifo, vob... files from a DVD. But I don't know what programs to use to burn them to a DVD-R so that the resulting disc would be playable on an external player (assuming the external player accepts DVD-R) It seems growisofs only takes files or whole-disc-image. And cdrecord and burncd don't seem right either. Most of the articles I find on the internet are either for Windows, or they talk about converting the VOB into a standalone MPG/AVI. But I want to preserve the original VOB and menus... etc. Can anyone help? Thank you! - Carl _ Type your favorite song. Get a customized station. Try MSN Radio powered by Pandora. http://radio.msn.com/?icid=T002MSN03A07001 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
BIND9 Syntax?
Dear All, I've been having trouble with BIND(version 9.3.2-P1), and I'm not sure where the problem is. When I try to use nslookup, it spits out: server 127.0.0.1 Default server: 127.0.0.1 Address: 127.0.0.1#53 blue.home.lan Server: 127.0.0.1 Address:127.0.0.1#53 ** server can't find blue.home.lan: SERVFAIL I have my server(blue.home.lan), set up on a LAN. These are my config files: db.home.lan: $TTL 3h home.lan. IN SOA blue.home.lan. ( 1; Serial 3h ; Refresh after 3 hours 1h ; Retry after 1 hour 1w ; Expire after 1 week 1h ) ; Negative caching TTL of 1 hour home.lan. IN NS blue.home.lan. hp.home.lan. IN A 10.10.10.3 blue.home.lan. IN A 10.10.10.5 gateway.home.lan.IN A 10.10.10.1 db.127.0.0: $TTL 3h 0.0.127.in-addr.arpa. IN SOA toystory.movie.edu. al.movie.edu. ( 1; Serial 3h ; Refresh after 3 hours 1h ; Retry after 1 hour 1w ; Expire after 1 week 1h ) ; Negative caching TTL of 1 hour 0.0.127.in-addr.arpa.IN NS blue.zin. 1.0.0.127.in-addr.arpa. IN PTR localhost. db.10.10.10: $TTL 3h 10.10.10.in-addr.arpa. IN SOA blue.home.lan. admin.home.lan. ( 1; Serial 3h ; Refresh after 3 hours 1h ; Retry after 1 hour 1w ; Expire after 1 week 1h ) ; Negative caching TTL of 1 hour ; ; Name servers ; 10.10.10.in-addr.arpa. IN NS blue.zin. ; ; Addresses point to canonical name ; 1.10.10.10.in-addr.arpa. IN PTR gateway.home.lan. 5.10.10.10.in-addr.arpa. IN PTR blue.home.lan. 3.10.10.10.in-addr.arpa. IN PTR hp.home.lan. named.conf: options { directory /var/bind; forwarders { 68.87.76.178; 68.87.78.130; }; listen-on-v6 { none; }; listen-on { 127.0.0.1; 10.10.10.5; }; pid-file /var/run/named/named.pid; }; zone . IN { type hint; file named.ca; }; zone localhost IN { type master; file pri/localhost.zone; allow-update { none; }; notify no; }; zone home.lan IN { type master; file db.home.lan; }; zone 10.10.10.in-addr.arpa in { type master; file db.10.10.10; }; Any suggestions? Help would be gratly appreciated! From, Nate Peck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem mounting digital camera
In message: [EMAIL PROTECTED] [EMAIL PROTECTED] writes: : I am having a problem mounting my digital camera, it is a Nikon Coolpix : 7600. It shows up in dmesg: : ugen0: NIKON NIKON DSC E7600-PTP, rev 2.00/1.00, addr 2 : : and from usbdevs: : addr 2: NIKON DSC E7600-PTP, NIKON : : not getting anything about umass or da0. : : I have the following lines in /boot/loader.conf: : usb_load=YES : umass_load=YES : : in rc.conf I have: : usbd_enable=YES : dbus_enable=YES : polkitd_enable=YES : hald_enable=YES : : and I have umass enabled in the kernel config : : When I try to mount I get the following: : # mount -t msdos /dev/da0s1c /mnt : mount_msdosfs: /dev/da0s1c: No such file or directory : : Any help would be appreciated. Have you tried /dev/da0s1? Warner ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: BIND9 Syntax?
- Original Message - From: Nate Peck [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Sunday, January 14, 2007 6:39 PM Subject: BIND9 Syntax? Dear All, I've been having trouble with BIND(version 9.3.2-P1), and I'm not sure where the problem is. When I try to use nslookup, it spits out: server 127.0.0.1 Default server: 127.0.0.1 Address: 127.0.0.1#53 blue.home.lan Server: 127.0.0.1 Address:127.0.0.1#53 ** server can't find blue.home.lan: SERVFAIL I have my server(blue.home.lan), set up on a LAN. These are my config files: db.home.lan: $TTL 3h home.lan. IN SOA blue.home.lan. ( 1; Serial 3h ; Refresh after 3 hours 1h ; Retry after 1 hour 1w ; Expire after 1 week 1h ) ; Negative caching TTL of 1 hour And you can define the SOA to be home.lan. Missing the email address of responsible administrator - should be like: home.lan. IN SOA home.lan. email.blue.home.lan ^^^ Notice that first dot only in email-address is substituted by @ Usually a good idea is naming the serial like 2007011401 - year, month, day and serial is easier that way in the long run :) named.conf: options { If this was public I would consider adding either a recursion no; or allow-recursion {}; clauses in options in order to avoid some attack techniques utilizing nameservers. zone . IN { type hint; file named.ca; }; You have moved the named.root into named.ca? No need for IN in these either. zone localhost IN { type master; file pri/localhost.zone; allow-update { none; }; notify no; }; Again if public, I would add allow-transfer rules to allow the full dump of domains in questions only at appropriate peering servers. Maybe allow-query { any; }; for every domain as well. I might have missed some bugs at cursory glance, but these should help to get you started. -Reko (By the way Greg Leheys nowadays publicly available book about FreeBSD has pretty good walkthrough about basic nameserver configuration) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: automake19: texinfo error during build
On 2007-01-14 15:18, Mahmoud Labadi [EMAIL PROTECTED] wrote: what I can do?? First, one thing you can do is *avoid* top-posting. Your replies belong *after* the original text. Please do not just write a question or two on top of an existing long quote and just hit 'send' :( On 2007-01-14 15:18, Mahmoud Labadi [EMAIL PROTECTED] wrote: Giorgos Keramidas wrote: Mahmoud, can you show us your PATH and other environment settings? This should be easy to do with: root# env | sort what I can do?? One thing you can do is show us the output of the command shown above. This will help us find out what your current environment contains, which is probably the cause of the problems you are seeing. 1. Log into the system as 'root'. 2. Run the command env | sort and collect its output. 3. Email us the output :) ___ 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 burn IFO, VOB... files to make a playable DVD
On Sun, 14 Jan 2007 11:49:41 -0500 Carl J [EMAIL PROTECTED] wrote: Hi! I ripped the ifo, vob... files from a DVD. But I don't know what programs to use to burn them to a DVD-R so that the resulting disc would be playable on an external player (assuming the external player accepts DVD-R) It seems growisofs only takes files or whole-disc-image. And cdrecord and burncd don't seem right either. Most of the articles I find on the internet are either for Windows, or they talk about converting the VOB into a standalone MPG/AVI. But I want to preserve the original VOB and menus... etc. Can anyone help? This is covered in handbook: 17.7.4 Burning a DVD-Video. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie attempting to install Flamenco (open source, python-based, faceted interface)
On Sun, Jan 14, 2007 at 10:48:24AM -0500, Brett Bonfield wrote: Hi, I am a library student at Drexel University in Philadelphia, PA. My goal is to aggregate information about the Library and Information Science profession (e.g. conferences, mailing lists, blogs, professional associations, accredited LIS schools, scholarships, etc.). Ironically, no one else has documented my chosen profession, at least not online. My hope is to create a self-sustaining community that sees the value in faceted interfaces and shares my appreciation for the importance of using open source software to organize open information. I have an excellent host, TextDrive, that is committed to open source development and does a very nice job with its machines, but my server runs FreeBSD, and Flamenco http://flamenco.berkeley.edu/index.html seems to be Linux-centric: Please note that we have only tested the code on the Linux OS (Red Hat 2.4.21). By changing the path to Python in its install script and replacing cp -a with cp -pRP, I've gotten it most of the way installed, but not all the way -- I can't get it to install the data itself, what Flamenco calls instances. My hope is that someone on this list who is comfortable with Python and MySQL might try installing Flamenco and see if it's possible within the FreeBSD environment. I realize it seems like a lot of bother, but check out Flamenco's examples http://flamenco.berkeley.edu/demos.html, especially the Nobel Prize winners http://orange.sims.berkeley.edu/cgi-bin/flamenco.cgi/nobel/Flamenco. The developers have created a gorgeously clean interface, and they're hosting the project on Sourceforge -- but the Flamenco community hasn't yet gotten to the point where it can provide its own support. My hope is that a visible project, like the one I'm undertaking, might get the ball rolling. I've tried Flamenco's seemingly solid documentation, Google, FreeBSD documentation, TextDrive forums, TextDrive's help desk, and I've contacted the developers. I'm not sure what else to try given that I've been working on this since November 26, at least a few hours per week. I realize I could use MIT's Longwell, but I much prefer Flamenco. I hope at least one other person on this list will see the value in Flamenco and will be able to figure out what needs to be done to make it work within FreeBSD. Thank you, Brett Hello Brett, I'd try posing this to [EMAIL PROTECTED] The people that watch that list will probably be more able to help (rather, have more interest in helping you) that those on [EMAIL PROTECTED] Also, when posting there -- if you haven't done so already -- try changing your subject line to something like Help with porting Flamenco. In the body of your text, you may also want to include the exact requirements of Flamenco (e.g., Python = 2.4.X, MySQL = 5.0, etc). The people on that list will be able to tell you right away whether or not a port is easy/possible. Cheers, Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
advice on compiling a new kernel upgrading to the latest sources
Hi folks, from different sources I have written my steps to compile a new kernel upgrade to the latest sources. Can anyone have a look into them and tell me if I won't run into troubles or if there are better ways to achieve the same? Upgrade procedure to the newest freebsd kernel and userland. 1.Make sure that the cvsup file (src-supfile) is adjusted in the right way. 2.Cd /usr/src/sys/amd64/conf which contains the file MYKERNEL 3.MYKERNEL is then adjusted, if necessary and copied to root/kernels/MYKERNEL 4.Copy everything under /etc to /root/etc 5.cvsup -g -L 2 src-supfile 6.cd /usr/src 7.make cleanworld 8.make buildworld 9.make buildkernel KERNCONF=MYKERNEL 10.Go into single user mode 11.If the new kernel doesn't boot reboot and hit the space bar at the boot prompt and boot kernel.old If the new kernel boots OK mount -a 12.cd /usr/src 13.make installkernel KERNCONF=MYKERNEL 14.Go into single user mode 15.cd /usr/src 16.mergemaster -p 17.make installworld 18.mergemaster -i 19.exit and reboot Is this ok? Or have I forgot about something? I'm running a freebsd 6.1 machine on a amd64 system with an adjusted kernel called MYKERNEL. Thanks inadvanced, Dino Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
random reboots: in_cksum causing this?
Hi... For the past month or so. I've been seeing random reboots from my firewall box. I am presently running: 4.11-RELEASE-p13. I am observing the following entries in /var/log/messages that occur right before or lead to the reboot eventually: Jan 1 14:42:30 myhost /kernel: in_cksum_skip: out of data by 10103 Jan 1 14:42:30 myhost /kernel: in_cksum: out of data by 10103 Jan 1 14:48:46 myhost /kernel: Copyright (c) 1992-2005 The FreeBSD Project. Jan 1 14:48:46 myhost /kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 198 9, 1991, 1992, 1993, 1994 Jan 1 14:48:46 myhost /kernel: The Regents of the University of California. Al l rights reserved. Jan 1 14:48:46 myhost /kernel: FreeBSD 4.11-RELEASE-p13 #0: Thu Dec 22 12:23:1 8 EST 2005 I'd provide more..but its not exactly reproducible at will. The box uses pppoe to connect to the web and provide internet to a private LAN via an adsl connection. The reboots are very sporadic and don't appear to be deterministic...in terms of time. This can happen as often as 3x a day or I wouldn't see it for 1-2 weeks. There could be a number of transfers going on or nothing much in terms of traffic. The box is not a compute server. It does nothing else. I have found some references to this in_cksum problem on the web. But they were posted 4-5 months before I upgraded /usr/src to p13. So I don't think its related. I don't have much to go on. Anyone have any ideas or has at least seen this? r ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: advice on compiling a new kernel upgrading to the latest sources
From: Dino Vliet [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Sunday, January 14, 2007 9:56 PM Subject: advice on compiling a new kernel upgrading to the latest sources Hi folks, from different sources I have written my steps to compile a new kernel upgrade to the latest sources. Can anyone have a look into them and tell me if I won't run into troubles or if there are better ways to achieve the same? //snip The order how things are done is slightly different, I kept the numbers original though,but the sequence is: 12.cd /usr/src 13.make installkernel KERNCONF=MYKERNEL Reboot after installing the new kernel. New kernel isn't there just after droppping to singleuser, but you need to boot. 11.If the new kernel doesn't boot reboot and hit the space bar at the boot prompt and boot kernel.old If the new kernel boots OK mount -a Check that new kernel acts somewhat sane (some programs might fail though due changed kernel interfaces, like top or ps for example - I do go full multiuser to check this) 14.Go into single user mode 15.cd /usr/src 16.mergemaster -p 17.make installworld 18.mergemaster -i 19.exit and reboot Shouldn't be need for reboot after this, just hit ctrl-D and enjoy the updated system. Updated scripts are executed only after machine goes into full multiuser. -Reko ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: perl substitution question
Thanks for all the ways, gents. (I never thought of tr, but now that seems like an option.) A week+ ago I tried perl using 's/\xNN//g' from the cmdline, but nojoy. The online docs said that \N{xx} would catch a hex character; that's what was fuzzy. {Very} early this morning I retried using \x80 and \x9d, \x9c separately. diff showed that things worked... mostly; then I found more hex characters that I had to carefully subs out. I'll write a script to do the whole bunch. No wonder I love Unix! gary -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: advice on compiling a new kernel upgrading to the latest sources
On 2007-01-14 11:56, Dino Vliet [EMAIL PROTECTED] wrote: Hi folks, from different sources I have written my steps to compile a new kernel upgrade to the latest sources. Your instructions, however, are different from what /usr/src/UPDATING contains. Please, make *sure* you read `/usr/src/UPDATING' very carefully. Especially the commands of the section ``To upgrade in-place ...'' and *all* the footnotes they reference. Can anyone have a look into them and tell me if I won't run into troubles or if there are better ways to achieve the same? Upgrade procedure to the newest freebsd kernel and userland. 1.Make sure that the cvsup file (src-supfile) is adjusted in the right way. That's ok. 2. Cd /usr/src/sys/amd64/conf which contains the file MYKERNEL No it doesn't. CVSup will delete the files it doesn't know about, so you should *SAVE a copy* of your favorite kernel config file outside of the source tree and *copy* it into `/usr/src/sys/amd64/conf' after CVSup finishes updates the sources. 3.MYKERNEL is then adjusted, if necessary and copied to root/kernels/MYKERNEL Nice :) 4.Copy everything under /etc to /root/etc Why? This isn't mentioned in `/usr/src/UPDATING' and it doesn't really help much if you manage to trash your /lib and /usr/lib trees. A better suggestion is to ``make sure you have good level 0 dumps'', as suggested by ``/usr/src/UPDATING''. 5.cvsup -g -L 2 src-supfile You've deleted MYKERNEL here. 6. cd /usr/src 7. make cleanworld The ``make cleanworld'' command is unnecessary if you haven't been building stuff manually inside the tree. 8. make buildworld 9. make buildkernel KERNCONF=MYKERNEL You can do both at the same time, with: # cd /usr/src # make KERNCONF=MYKERNEL buildworld buildkernel 10. Go into single user mode You forgot to install the new kernel *before* rebooting here. This should be done with: # cd /usr/src # make KERNCONF=MYKERNEL installkernel 11. If the new kernel doesn't boot reboot and hit the space bar at the boot prompt and boot kernel.old If the new kernel boots OK mount -a No, mount -a is not enough. Please read the `UPDATING' file. The full sequence of commands would be something like: (escape to loader prompt) (at the OK prompt of the boot loader, type): boot -s Then, when the system starts a /bin/sh shell instance, type: # adjkerntz -i # fsck -p # mount -u / # mount -a 12. cd /usr/src 13. make installkernel KERNCONF=MYKERNEL It is too late to install a new kernel here, if you didn't do it *before* rebooting into single user mode. The whole 'exercise' of installing the new kernel and booting into single user mode is meant to provide a level of testing for the new kernel. If you haven't installed it and booted into the old kernel, some things may fail to install later on, you don't know if the new kernel actually works, etc. 14. Go into single user mode You *ARE* in single-user mode already. 15. cd /usr/src 16. mergemaster -p 17. make installworld 18. mergemaster -i 19. exit and reboot These look fine. Is this ok? Or have I forgot about something? I'm running a freebsd 6.1 machine on a amd64 system with an adjusted kernel called MYKERNEL. Please read ``/usr/src/UPDATING''. Then read it again. Let the text and all its footnotes sink in, and if you don't understand *why* a particular step exists, or what a specific step is supposed to do, feel free to ask. We are here to help you update the system, but we are *also* here to help you understand the why, when, how and what for of each step of the process :-) - Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: perl substitution question
On 2007-01-14 12:15, Gary Kline [EMAIL PROTECTED] wrote: Thanks for all the ways, gents. (I never thought of tr, but now that seems like an option.) A week+ ago I tried perl using 's/\xNN//g' from the cmdline, but nojoy. The online docs said that \N{xx} would catch a hex character; that's what was fuzzy. Watch out for shells with funny 'expansion rules', like csh(1) :) Even in sh(1) variants, it's always a good idea to save the Perl script in a file first, and test it independently of the shell, with: perl filter.pl infile outfile To avoid all the messy details about single-quotes, double-quotes, backquotes, stars, dollars, etc :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: advice on compiling a new kernel upgrading to the latest sources
Dino Vliet wrote: Hi folks, from different sources I have written my steps to compile a new kernel upgrade to the latest sources. Can anyone have a look into them and tell me if I won't run into troubles or if there are better ways to achieve the same? Upgrade procedure to the newest freebsd kernel and userland. 1.Make sure that the cvsup file (src-supfile) is adjusted in the right way. 2.Cd /usr/src/sys/amd64/conf which contains the file MYKERNEL 3.MYKERNEL is then adjusted, if necessary and copied to root/kernels/MYKERNEL 4.Copy everything under /etc to /root/etc 5.cvsup -g -L 2 src-supfile 6.cd /usr/src so far so good 7.make cleanworld The handbook suggest: rm -rf /usr/obj/* , the cleanworld might do the same you might check that 8.make buildworld 9.make buildkernel KERNCONF=MYKERNEL 10.Go into single user mode OK 11.If the new kernel doesn't boot reboot and hit the space bar at the boot prompt and boot kernel.old If the new kernel boots OK mount -a You have to install your kernel first, step 13 is next now. Also when allready running in the 'multi'-user mode a 'shutdown now' will bring you in single user mode 12.cd /usr/src 13.make installkernel KERNCONF=MYKERNEL asuming you still are in single user mode you now have to do 'make installworld' ( your step 17 ), after you've done that run a 'mergemaster' and you are finished. Basically everything you have to do is documented perfectly in the FreeBSD Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html I suggest reading it (again?) and if possible open the page on a 2nd computer or something so you can read whatever step is next when rebuilding world. Also you might want to run 'script /path/to/logfile/' as also described in the handbook . 14.Go into single user mode 15.cd /usr/src 16.mergemaster -p 17.make installworld 18.mergemaster -i 19.exit and reboot Is this ok? Or have I forgot about something? I'm running a freebsd 6.1 machine on a amd64 system with an adjusted kernel called MYKERNEL. Thanks inadvanced, Dino Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- -Frank Staals ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: advice on compiling a new kernel upgrading to the latest sources
Giorgos Keramidas [EMAIL PROTECTED] wrote: [copious snippage] 2. Cd /usr/src/sys/amd64/conf which contains the file MYKERNEL No it doesn't. CVSup will delete the files it doesn't know about, so you should *SAVE a copy* of your favorite kernel config file outside of the source tree and *copy* it into `/usr/src/sys/amd64/conf' after CVSup finishes updates the sources. Really? What have I been doing wrong? I've been keeping custom kernel configs for years and cvsup has never deleted any of them. 4.Copy everything under /etc to /root/etc Why? This isn't mentioned in `/usr/src/UPDATING' and it doesn't really help much if you manage to trash your /lib and /usr/lib trees. A better suggestion is to ``make sure you have good level 0 dumps'', as suggested by ``/usr/src/UPDATING''. While not mentioned in /usr/src/UPDATING, this is good practice in my opinion. mergemaster can be a tedious task, and making a local backup of /etc has allowed me to undo some careless keystrokes a number of times. I don't disagree with the dump advice, but an additional copy of /etc around doesn't hurt anything and occasionally makes fixing a mistake much faster an easier. -Bill ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: advice on compiling a new kernel upgrading to the latest sources
Giorgos Keramidas wrote: On 2007-01-14 11:56, Dino Vliet [EMAIL PROTECTED] wrote: Hi folks, from different sources I have written my steps to compile a new kernel upgrade to the latest sources. Your instructions, however, are different from what /usr/src/UPDATING contains. Please, make *sure* you read `/usr/src/UPDATING' very carefully. Especially the commands of the section ``To upgrade in-place ...'' and *all* the footnotes they reference. Can anyone have a look into them and tell me if I won't run into troubles or if there are better ways to achieve the same? Upgrade procedure to the newest freebsd kernel and userland. 1.Make sure that the cvsup file (src-supfile) is adjusted in the right way. That's ok. 2. Cd /usr/src/sys/amd64/conf which contains the file MYKERNEL No it doesn't. CVSup will delete the files it doesn't know about, so you should *SAVE a copy* of your favorite kernel config file outside of the source tree and *copy* it into `/usr/src/sys/amd64/conf' after CVSup finishes updates the sources. But in my practice, CVSup did nothing with my own kernel config file. In my memory, cvs did nothing with the files not in the source tree. 3.MYKERNEL is then adjusted, if necessary and copied to root/kernels/MYKERNEL Nice :) 4.Copy everything under /etc to /root/etc Why? This isn't mentioned in `/usr/src/UPDATING' and it doesn't really help much if you manage to trash your /lib and /usr/lib trees. A better suggestion is to ``make sure you have good level 0 dumps'', as suggested by ``/usr/src/UPDATING''. 5.cvsup -g -L 2 src-supfile You've deleted MYKERNEL here. 6. cd /usr/src 7. make cleanworld The ``make cleanworld'' command is unnecessary if you haven't been building stuff manually inside the tree. 8. make buildworld 9. make buildkernel KERNCONF=MYKERNEL You can do both at the same time, with: # cd /usr/src # make KERNCONF=MYKERNEL buildworld buildkernel 10. Go into single user mode You forgot to install the new kernel *before* rebooting here. This should be done with: # cd /usr/src # make KERNCONF=MYKERNEL installkernel 11. If the new kernel doesn't boot reboot and hit the space bar at the boot prompt and boot kernel.old If the new kernel boots OK mount -a No, mount -a is not enough. Please read the `UPDATING' file. The full sequence of commands would be something like: (escape to loader prompt) (at the OK prompt of the boot loader, type): boot -s Then, when the system starts a /bin/sh shell instance, type: # adjkerntz -i # fsck -p # mount -u / # mount -a 12. cd /usr/src 13. make installkernel KERNCONF=MYKERNEL It is too late to install a new kernel here, if you didn't do it *before* rebooting into single user mode. The whole 'exercise' of installing the new kernel and booting into single user mode is meant to provide a level of testing for the new kernel. If you haven't installed it and booted into the old kernel, some things may fail to install later on, you don't know if the new kernel actually works, etc. 14. Go into single user mode You *ARE* in single-user mode already. 15. cd /usr/src 16. mergemaster -p 17. make installworld 18. mergemaster -i 19. exit and reboot These look fine. Is this ok? Or have I forgot about something? I'm running a freebsd 6.1 machine on a amd64 system with an adjusted kernel called MYKERNEL. Please read ``/usr/src/UPDATING''. Then read it again. Let the text and all its footnotes sink in, and if you don't understand *why* a particular step exists, or what a specific step is supposed to do, feel free to ask. We are here to help you update the system, but we are *also* here to help you understand the why, when, how and what for of each step of the process :-) - Giorgos ___ 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: advice on compiling a new kernel upgrading to the latest sources
On Sunday 14 January 2007 15:44, kbtrace wrote: Giorgos Keramidas wrote: On 2007-01-14 11:56, Dino Vliet [EMAIL PROTECTED] wrote: 2. Cd /usr/src/sys/amd64/conf which contains the file MYKERNEL No it doesn't. CVSup will delete the files it doesn't know about, so you should *SAVE a copy* of your favorite kernel config file outside of the source tree and *copy* it into `/usr/src/sys/amd64/conf' after CVSup finishes updates the sources. But in my practice, CVSup did nothing with my own kernel config file. In my memory, cvs did nothing with the files not in the source tree. Generally speaking, CVSup will delete files it doesn't know about. However, all of the src/sys/arch/conf directories have .cvsignore files in them which prevents this behavior. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: advice on compiling a new kernel upgrading to the latest sources
John Nielsen wrote: On Sunday 14 January 2007 15:44, kbtrace wrote: Giorgos Keramidas wrote: On 2007-01-14 11:56, Dino Vliet [EMAIL PROTECTED] wrote: 2. Cd /usr/src/sys/amd64/conf which contains the file MYKERNEL No it doesn't. CVSup will delete the files it doesn't know about, so you should *SAVE a copy* of your favorite kernel config file outside of the source tree and *copy* it into `/usr/src/sys/amd64/conf' after CVSup finishes updates the sources. But in my practice, CVSup did nothing with my own kernel config file. In my memory, cvs did nothing with the files not in the source tree. Generally speaking, CVSup will delete files it doesn't know about. However, all of the src/sys/arch/conf directories have .cvsignore files in them which prevents this behavior. JN This line in the cvsup file changes that behavior (from http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html): *default release=cvs delete use-rel-suffix compress Don't want stuff deleted when cvsup runs (not wise, but you can do it)?, remove the delete keyword in your cvsup file. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: advice on compiling a new kernel upgrading to the latest sources
--- Giorgos Keramidas [EMAIL PROTECTED] wrote: On:56, Dino Vliet [EMAIL PROTECTED] wrote: Hi folks, from different sources I have written my steps to compile a new kernel upgrade to the latest sources. Your instructions, however, are different from what /usr/src/UPDATING contains. Please, make *sure* you read `/usr/src/UPDATING' very carefully. Especially the commands of the section ``To upgrade in-place ...'' and *all* the footnotes they reference. Can anyone have a look into them and tell me if I won't run into troubles or if there are better ways to achieve the same? Upgrade procedure to the newest freebsd kernel and userland. 1.Make sure that the cvsup file (src-supfile) is adjusted in the right way. That's ok. 2. Cd /usr/src/sys/amd64/conf which contains the file MYKERNEL No it doesn't. CVSup will delete the files it doesn't know about, so you should *SAVE a copy* of your favorite kernel config file outside of the source tree and *copy* it into `/usr/src/sys/amd64/conf' after CVSup finishes updates the sources. 3.MYKERNEL is then adjusted, if necessary and copied to root/kernels/MYKERNEL Nice :) 4.Copy everything under /etc to /root/etc Why? This isn't mentioned in `/usr/src/UPDATING' and it doesn't really help much if you manage to trash your /lib and /usr/lib trees. A better suggestion is to ``make sure you have good level 0 dumps'', as suggested by ``/usr/src/UPDATING''. 5.cvsup -g -L 2 src-supfile You've deleted MYKERNEL here. 6. cd /usr/src 7. make cleanworld The ``make cleanworld'' command is unnecessary if you haven't been building stuff manually inside the tree. 8. make buildworld 9. make buildkernel KERNCONF=MYKERNEL You can do both at the same time, with: # cd /usr/src # make KERNCONF=MYKERNEL buildworld buildkernel 10. Go into single user mode You forgot to install the new kernel *before* rebooting here. This should be done with: # cd /usr/src # make KERNCONF=MYKERNEL installkernel 11. If the new kernel doesn't boot reboot and hit the space bar at the boot prompt and boot kernel.old If the new kernel boots OK mount -a No, mount -a is not enough. Please read the `UPDATING' file. The full sequence of commands would be something like: (escape to loader prompt) (at the OK prompt of the boot loader, type): boot -s Then, when the system starts a /bin/sh shell instance, type: # adjkerntz -i # fsck -p # mount -u / # mount -a 12. cd /usr/src 13. make installkernel KERNCONF=MYKERNEL It is too late to install a new kernel here, if you didn't do it *before* rebooting into single user mode. The whole 'exercise' of installing the new kernel and booting into single user mode is meant to provide a level of testing for the new kernel. If you haven't installed it and booted into the old kernel, some things may fail to install later on, you don't know if the new kernel actually works, etc. 14. Go into single user mode You *ARE* in single-user mode already. 15. cd /usr/src 16. mergemaster -p 17. make installworld 18. mergemaster -i 19. exit and reboot These look fine. Is this ok? Or have I forgot about something? I'm running a freebsd 6.1 machine on a amd64 system with an adjusted kernel called MYKERNEL. Please read ``/usr/src/UPDATING''. Then read it again. Let the text and all its footnotes sink in, and if you don't understand *why* a particular step exists, or what a specific step is supposed to do, feel free to ask. We are here to help you update the system, but we are *also* here to help you understand the why, when, how and what for of each step of the process :-) - Giorgos Thanks for your help! I am glad I asked before doing it, so now I can check out the resources given and try to learn why things are they way they are. Your post gave me a lit of valuable insights and I will have to print everything out and read it carefully. I really like the FreeBSD way though (have just donated to the foundation because of the nice way people like you treat this cry for help:-) Thanks again! Dino Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
install fails
I've been trying to install freebsd on a HP pavilion with a A7V-VM Asus motherboard. The bios finds the harddrive and controler, but freebsd does not. I've installed a harddrive with bsd already loaded and the computer runs fine. I've tried older install cd's of freebsd from 4.1 to 6.2rc2 same thing happens. I've changed bios settings, looked for virus blocking software in the bios. I've placed the harddrive into another computer, it works fine. Pulled cards to see if interupt storm. But still unable to load from install cd. Any ideas?? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Identifying a Remote Machine.
In the last episode (Jan 14), Grant Peel said: I have several servers, each with hundreds of IPs on them. I am attempting to write a php script that will connect to each ip and identify the 'hostname' as set in rc.conf. I have been looking at icmp, env etc, and can't find a method. I was also loioking at ping, but it does not show the hostname. The only reply I need from the server is the hostname. That will tell ne that the IP is live and what machine its on. If they're not jailed, just connect to the SMTP port. sendmail's banner has the hostname in it. Another option, if you have a machine on the same subnet as your targets, would be to ping each one, then compare the MAC addresses to determine which ones are on the same host as each other. Or, if you have login access to the servers, just run ifconfig -a to list the IPs. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: advice on compiling a new kernel upgrading to the latest source
On 1/14/07, Dino Vliet [EMAIL PROTECTED] wrote: Hi folks, Hello, from different sources I have written my steps to compile a new kernel upgrade to the latest sources. doesn't /usr/src/UPDATING istn't enough for you? Anyway... 1.Make sure that the cvsup file (src-supfile) is adjusted in the right way. 2.Cd /usr/src/sys/amd64/conf which contains the file MYKERNEL 3.MYKERNEL is then adjusted, if necessary and copied to root/kernels/MYKERNEL 4.Copy everything under /etc to /root/etc you don't need it. mergemaster will take care of your /etc directory 9.make buildkernel KERNCONF=MYKERNEL 10.Go into single user mode 11.If the new kernel doesn't boot reboot and hit the space bar at the boot prompt and boot kernel.old If the new kernel boots OK mount -a Point 9) won't install a new kernel, just compile it. modify to 9) make kernel KERNCONF=MYKERNEL 13.make installkernel KERNCONF=MYKERNEL already done at 9) Thanks inadvanced, Dino -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: perl substitution question
On Sun, Jan 14, 2007 at 10:31:04PM +0200, Giorgos Keramidas wrote: On 2007-01-14 12:15, Gary Kline [EMAIL PROTECTED] wrote: Thanks for all the ways, gents. (I never thought of tr, but now that seems like an option.) A week+ ago I tried perl using 's/\xNN//g' from the cmdline, but nojoy. The online docs said that \N{xx} would catch a hex character; that's what was fuzzy. Watch out for shells with funny 'expansion rules', like csh(1) :) Even in sh(1) variants, it's always a good idea to save the Perl script in a file first, and test it independently of the shell, with: perl filter.pl infile outfile To avoid all the messy details about single-quotes, double-quotes, backquotes, stars, dollars, etc :) Man! truer words, (c)... . One o the very few suggestions left for improving shells [ and/or subshells ] is a flag, say '-N' which would have *nothing* to be escaped. In other words a '$' or '' would be interpreted literally.But I'm sure there are reasons for not escaping some bytes. -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Identifying a Remote Machine.
On 14/01/07, Grant Peel [EMAIL PROTECTED] wrote: ACtually no, Sory if the question was vauge, What I am looking to do is to create a tool that will identify what MACHINE (not domain) an ip is being used on. What about connecting to every domainname and quering the hostname? Something like for ip in domainlist do physicalhostname=`ssh $ip hostname` echo $ip $physicalhostname done This should work for a sh compatible shell script. It should be easy to do something similar in php. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: install fails
On Jan 14, 2007, at 9:51 PM, Mark Busby wrote: I've been trying to install freebsd on a HP pavilion with a A7V-VM Asus motherboard. The bios finds the harddrive and controler, but freebsd does not. I've installed a harddrive with bsd already loaded and the computer runs fine. I've tried older install cd's of freebsd from 4.1 to 6.2rc2 same thing happens. I've changed bios settings, looked for virus blocking software in the bios. I've placed the harddrive into another computer, it works fine. Pulled cards to see if interupt storm. But still unable to load from install cd. Any ideas?? I've had the same problem with installing it on a asus A7V8X mobo. When I disabled ACPI it does recognise the harddrive, although it shows 2 hd's for some reason. They booth look the same but have another name. -- Guido ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
going back in time with the ports tree
im trying to figure out how to go back in time on my ports tree. im sure ive seen instructions on how to do this before, but for the life of me, i cant find the doc now. i would like to get a copy of ports from right before php-5.2.0 was committed. can anyone point me in the right direction? cheers, jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: BIND9 Syntax?
Once you get the syntax corrected, make sure you are picking up the correct named.conf file by doing: ps -ax| grep name If you don't have /etc/rc.conf setup correctly, you may not be getting the correct named.conf. -Derek At 11:40 AM 1/14/2007, Reko Turja wrote: - Original Message - From: Nate Peck [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Sunday, January 14, 2007 6:39 PM Subject: BIND9 Syntax? Dear All, I've been having trouble with BIND(version 9.3.2-P1), and I'm not sure where the problem is. When I try to use nslookup, it spits out: server 127.0.0.1 Default server: 127.0.0.1 Address: 127.0.0.1#53 blue.home.lan Server: 127.0.0.1 Address:127.0.0.1#53 ** server can't find blue.home.lan: SERVFAIL I have my server(blue.home.lan), set up on a LAN. These are my config files: db.home.lan: $TTL 3h home.lan. IN SOA blue.home.lan. ( 1; Serial 3h ; Refresh after 3 hours 1h ; Retry after 1 hour 1w ; Expire after 1 week 1h ) ; Negative caching TTL of 1 hour And you can define the SOA to be home.lan. Missing the email address of responsible administrator - should be like: home.lan. IN SOA home.lan. email.blue.home.lan ^^^ Notice that first dot only in email-address is substituted by @ Usually a good idea is naming the serial like 2007011401 - year, month, day and serial is easier that way in the long run :) named.conf: options { If this was public I would consider adding either a recursion no; or allow-recursion {}; clauses in options in order to avoid some attack techniques utilizing nameservers. zone . IN { type hint; file named.ca; }; You have moved the named.root into named.ca? No need for IN in these either. zone localhost IN { type master; file pri/localhost.zone; allow-update { none; }; notify no; }; Again if public, I would add allow-transfer rules to allow the full dump of domains in questions only at appropriate peering servers. Maybe allow-query { any; }; for every domain as well. I might have missed some bugs at cursory glance, but these should help to get you started. -Reko (By the way Greg Leheys nowadays publicly available book about FreeBSD has pretty good walkthrough about basic nameserver configuration) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: going back in time with the ports tree
On Sun, Jan 14, 2007 at 04:48:33PM -0600, Jonathan Horne wrote: im trying to figure out how to go back in time on my ports tree. im sure ive seen instructions on how to do this before, but for the life of me, i cant find the doc now. i would like to get a copy of ports from right before php-5.2.0 was committed. can anyone point me in the right direction? sysutils/portdowngrade http://www.freebsd.org/cgi/url.cgi?ports/sysutils/portdowngrade/pkg-descr -- Kelly D. Grills [EMAIL PROTECTED] pgpivcmt5hM7N.pgp Description: PGP signature
Re: going back in time with the ports tree
On Sun, 14 Jan 2007 16:48:33 -0600 Jonathan Horne [EMAIL PROTECTED] wrote: im trying to figure out how to go back in time on my ports tree. im sure ive seen instructions on how to do this before, but for the life of me, i cant find the doc now. i would like to get a copy of ports from right before php-5.2.0 was committed. can anyone point me in the right direction? You can set a date in the ports' cvsup file like this *default release=cvs tag=. date=date See cvsup(1) for the date format ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Please Help! How to STOP them...
On Sun, 14 Jan 2007 15:39:30 +0100 Erik Norgaard [EMAIL PROTECTED] wrote: - enforce key authentication From memory, you still get the 'user unknown' messages if you have only key auth. - restrict access to certain users or groups of users I would say, idem here. - deny direct access as root this is obvious...and a default in BSD (i dont think it's a default in some (most?) linux distros though) - enforce strong passwords, if you can't enforce key authentication - limit the ip address space that is allowed to connect, to the space where you or your users are likely to be - limit the number of simultaneous unauthenticated connections I would add to limit the number of passwords retries - so if they want to hammer you, at least they'll have to try a new connection. Of course, this leaves you open to a DOS ... but , well, i guess you are still open to that the second you're on the net :) Moving the default tcp port to other than the default WILL disminish the attempts - it will NOT PROVIDE YOU WITH EXTRA SECURITY AT ALL , so you still should configure key auth + limit users + deny root, etc. _ {Beto|Norberto|Numard} Meijome Everything should be made as simple as possible, but not simpler. Albert Einstein I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Please Help! How to STOP them...
On Mon, 15 Jan 2007 10:53:47 +1100 Norberto Meijome [EMAIL PROTECTED] wrote: I would add to limit the number of passwords retries - so if they want to hammer you, at least they'll have to try a new connection. Of course, this leaves you open to a DOS ... but , well, i guess you are still open to that the second you're on the net :) dont forget that the fallback between keyboard-auth and key based auth counts as a failure, so make sure you have at least 2 failures allowed. _ {Beto|Norberto|Numard} Meijome Quality is never an accident, it is always the result of intelligent effort. John Ruskin (1819-1900) I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: going back in time with the ports tree
On Sunday 14 January 2007 17:43, RW wrote: On Sun, 14 Jan 2007 16:48:33 -0600 Jonathan Horne [EMAIL PROTECTED] wrote: im trying to figure out how to go back in time on my ports tree. im sure ive seen instructions on how to do this before, but for the life of me, i cant find the doc now. i would like to get a copy of ports from right before php-5.2.0 was committed. can anyone point me in the right direction? You can set a date in the ports' cvsup file like this *default release=cvs tag=. date=date See cvsup(1) for the date format ah perfect, that was it! thanks a bunch! jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
fxtv problem
Hi people, i just bought a TV card and installed fxtv from port with option 'EXTRA' on, when I ran it, fxtv said: # fxtv mmap of driver buffer failed: Invalid argument I googled sometime, and found an entry about commenting out one option in the kernel config file, so I am left with: # TV capture device bktr device iicbus device iicbb device smbus #options BROOKTREE_ALLOC_PAGES=216 options BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_NTSC well, still dont' work. any idea?? and the uname -a spells like that: FreeBSD 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #9: Sun Jan 14 19:22:40 EST 2007 tfcheng@:/usr/src/sys/i386/compile/TFCHENG i386 TFC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Newbie NMap in FreeBSD Question
Lets say, I wanted to create a Perl script to execute a very simple nmap command as listed below, may I know how do I do it? unix# nmap 192.168.1.2 I know we need to save it in .pl extension. May I know what else I need to do. I hope someone can share with me the simple coding. Thanks. Regards, Linux Quest - 8:00? 8:25? 8:40? Find a flick in no time with theYahoo! Search movie showtime shortcut. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to burn IFO, VOB... files to make a playable DVD
Hi! I ripped the ifo, vob... files from a DVD.But I don't know what programs to use to burnthem to a DVD-R so that the resulting discwould be playable on an external player(assuming the external player accepts DVD-R)It seems growisofs only takes files or whole-disc-image.And cdrecord and burncd don't seem right either.Most of the articles I find on the internet areeither for Windows, or they talk aboutconverting the VOB into MPG. But I want topreserve the original VOB and menus... etc.Can anyone help? Thank you!- Carl _ Get into the holiday spirit, chat with Santa on Messenger. http://imagine-windowslive.com/minisites/santabot/default.aspx?locale=en-us___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to burn IFO, VOB... files to make a playable DVD
Hi! I ripped the ifo, vob... files from a DVD. But I don't know what programs to use to burn them to a DVD-R so that the resulting disc would be playable on an external player (assuming the external player accepts DVD-R) It seems growisofs only takes files or whole-disc-image. And cdrecord and burncd don't seem right either. Most of the articles I find on the internet are either for Windows, or they talk about converting the VOB into a standalone MPG/AVI. But I want to preserve the original VOB and menus... etc. Can anyone help? Thank you! - Carl _ Type your favorite song. Get a customized station. Try MSN Radio powered by Pandora. http://radio.msn.com/?icid=T002MSN03A07001 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: going back in time with the ports tree
On 2007-01-14 16:48, Jonathan Horne [EMAIL PROTECTED] wrote: im trying to figure out how to go back in time on my ports tree. im sure ive seen instructions on how to do this before, but for the life of me, i cant find the doc now. i would like to get a copy of ports from right before php-5.2.0 was committed. can anyone point me in the right direction? If you are using CVSup to update your ports tree, you can use the 'date' option in your supfile, to specify the precise date-and-time that CVSup will update your /usr/ports tree to. The format of the 'date' options for supfiles is described in cvsup(1) like this: date=[cc]yy.mm.dd.hh.mm.ss This specifies a date that should be used to select the revisions that are checked out from the CVS repository. The client will receive the revisions that were in effect at the specified date and time. At present, the date format is inflexible. All 17 or 19 characters must be specified, exactly as shown. For the years 2000 and beyond, specify the century cc. For earlier years, specify only the last two digits yy. Dates and times are considered to be GMT. The default date is `.', which means ``as late as possible''. Specifying a 'date' in your supfile should be as easy as writing a special ports-supfile, based on one of the existing examples, like `/usr/share/examples/cvsup/ports-supfile' and adding a proper *default line. Since ports are not branched, this means that you can replace: *default release=cvs tag=. with something like: *default date=2006.11.24.21.19.45 Now the important detail that you must dig out of the CVS repository is the exact timestamp you are interested in. This can be done by using the web interface of the CVS repository. You can point your favorite browser to: http://cvsweb.freebsd.org/ports/lang/php5/Makefile and look at the change log for the port's Makefile. The elinks(1) browser which I used here, shows: % Revision 1.106 / (download) - annotate - [select for diffs], % Mon Nov 6 17:43:10 2006 UTC (2 months, 1 week ago) by ale % Branch: MAIN % Changes since 1.105: +3 -3 lines % Diff to previous 1.105 (colored) % % Update to 5.2.0 release. So your timestamp should be something definitely *before* the time this update was committed: `2006.11.06.17.43.10'. Your supfile could then be written to contain: *default release=cvs tag=. *default date=2006.11.06.17.43.00 Having said all this, I'm not sure if it's a good idea to roll back the entire Ports tree. You will effectivelly go back in time, with all the consequences this can have, like for example rolling back all the security fixes of Ports which have been committed since then :( Why do you want to go back to a previous PHP version? Perhaps we can solve any problems you have with 5.2.0, so you can keep your Ports tree up to date *and* have the problems fixed :-) - Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: advice on compiling a new kernel upgrading to the latest sources
On 2007-01-14 15:35, Bill Moran [EMAIL PROTECTED] wrote: Giorgos Keramidas [EMAIL PROTECTED] wrote: [copious snippage] 2. Cd /usr/src/sys/amd64/conf which contains the file MYKERNEL No it doesn't. CVSup will delete the files it doesn't know about, so you should *SAVE a copy* of your favorite kernel config file outside of the source tree and *copy* it into `/usr/src/sys/amd64/conf' after CVSup finishes updates the sources. Really? What have I been doing wrong? I've been keeping custom kernel configs for years and cvsup has never deleted any of them. That's what the ``*default delete use-rel-suffix'' option does, AFAIK. The default supfile examples in `/usr/share/examples/cvsup' have this option enabled, and cvsup(1) says about it: delete The presence of this keyword gives cvsup permission to delete files. If it is missing, no files will be deleted. The presence of the delete keyword puts cvsup into so-called exact mode. In exact mode, CVSup does its best to make the client's files correspond to those on the server. This includes deleting individual deltas and symbolic tags from RCS files, as well as deleting entire files. In exact mode, CVSup verifies every edited file with a checksum, to ensure that the edits have produced a file identical to the master copy on the server. If the checksum test fails for a file, then CVSup falls back upon transferring the entire file. In general, CVSup deletes only files which are known to the server. Extra files present in the client's tree are left alone, even in exact mode. More precisely, CVSup is willing to delete two classes of files: o Files that were previously created or updated by CVSup itself. o Checked-out versions of files which are marked as dead on the server. If the option doesn't work this way, then I stand corrected. 4.Copy everything under /etc to /root/etc Why? This isn't mentioned in `/usr/src/UPDATING' and it doesn't really help much if you manage to trash your /lib and /usr/lib trees. A better suggestion is to ``make sure you have good level 0 dumps'', as suggested by ``/usr/src/UPDATING''. While not mentioned in /usr/src/UPDATING, this is good practice in my opinion. mergemaster can be a tedious task, and making a local backup of /etc has allowed me to undo some careless keystrokes a number of times. I don't disagree with the dump advice, but an additional copy of /etc around doesn't hurt anything and occasionally makes fixing a mistake much faster an easier. Heh, true :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem Installing Postfix in 6.1
I'm having trouble installing Postfix. After selecting the options (TSL, Mysql), after displaying output that it can't fetch postfix-2.2.9-tar.gzfrom various sites, it displays this message: Couldn't fetch it - please try retrieving this port manually into /usr/ports/distfiles/postfix and try again. Error code 1 I've tried google and the FAQ, but haven't found anything. When responding, please keep in mind that I'm a newbie. Thanks Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem Installing Postfix in 6.1
Alex Alborzfard wrote: I'm having trouble installing Postfix. After selecting the options (TSL, Mysql), after displaying output that it can't fetch postfix-2.2.9-tar.gzfrom various sites, it displays this message: Couldn't fetch it - please try retrieving this port manually into /usr/ports/distfiles/postfix and try again. Error code 1 I've tried google and the FAQ, but haven't found anything. When responding, please keep in mind that I'm a newbie. Thanks Alex That version is fairly dated, also looks to be unavailable, might be an idea to bring your ports collection up to date. Ta, Joe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem Installing Postfix in 6.1
Are you certain the box can get out to the internet and resolve DNS properly? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Mystery Spam Piling Up in Mqueue
I have a bunch of mail piling up in /var/spool/mqueue. It appears to be all spam and it appears to be generated on the localhost. I am not sending it. I double checked my self @ abuse.net to see if I was an open relay, I'm not. I can't really say where it's coming from. How do I figure this one out? An example is shown below. What has been a fun hobby all these years is turning into a nightmare. Spam is making me batty. Thanks, Jason C. Wells V8 T1168684668 K1168832991 N87 P7790448 I0/81/22039 MDeferred: Connection refused by macbilling.com. Frs $_localhost $r $slocalhost ${daemon_flags} ${if_addr}192.168.1.204 SMAILER-DAEMON MDeferred: Connection refused by macbilling.com. rRFC822; [EMAIL PROTECTED] RPF:[EMAIL PROTECTED] H?P?Return-Path: 81g H??Received: from localhost (localhost) by mx1.highperformance.net (8.13.8/8.13.8) id l0DAbm7q007014; Sat, 13 Jan 2007 02:37:48 -0800 (PST) (envelope-from MAILER-DAEMON) H?D?Date: Sat, 13 Jan 2007 02:37:48 -0800 (PST) H??Received: from localhost (localhost) by mx1.highperformance.net (8.13.8/8.13.8) id l0DAbm7q007014; Sat, 13 Jan 2007 02:37:48 -0800 (PST) (envelope-from MAILER-DAEMON) H?D?Date: Sat, 13 Jan 2007 02:37:48 -0800 (PST) H?F?From: Mail Delivery Subsystem MAILER-DAEMON H?x?Full-Name: Mail Delivery Subsystem H?M?Message-Id: [EMAIL PROTECTED] H??To: [EMAIL PROTECTED] H??MIME-Version: 1.0 H??Content-Type: multipart/report; report-type=delivery-status; boundary=l0DAbm7q007014.1168684668/mx1.highperformance.net H??Subject: Returned mail: see transcript for details H??Auto-Submitted: auto-generated (failure) . ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mystery Spam Piling Up in Mqueue
The example below is simply a bounce that did not go through. Note: Mailer-Daemon and MDeferred: Connection refused by macbilling.com. Your system attempted to delivery a bounce back to macbilling.com and the MTA @ macbilling.com is rejecting the bounce. Most likely spam using a forged (or real) address something@macbilling.com was sent to your system to somefakeaddress@highperformance.net and of course your system could not deliver the message so it bounced. If all messages in your queue are like this, I would take some time, report the spam to say spamcop.net or the like and remove them. You even could be a nice internet neighbour and try to redeliver the legit ones. Welcome to the running a mailserver on the intertubes. :-) Cheers, Jeff Jason C. Wells wrote: I have a bunch of mail piling up in /var/spool/mqueue. It appears to be all spam and it appears to be generated on the localhost. I am not sending it. I double checked my self @ abuse.net to see if I was an open relay, I'm not. I can't really say where it's coming from. How do I figure this one out? An example is shown below. What has been a fun hobby all these years is turning into a nightmare. Spam is making me batty. Thanks, Jason C. Wells V8 T1168684668 K1168832991 N87 P7790448 I0/81/22039 MDeferred: Connection refused by macbilling.com. Frs $_localhost $r $slocalhost ${daemon_flags} ${if_addr}192.168.1.204 SMAILER-DAEMON MDeferred: Connection refused by macbilling.com. rRFC822; [EMAIL PROTECTED] RPF:[EMAIL PROTECTED] H?P?Return-Path: 81g H??Received: from localhost (localhost) by mx1.highperformance.net (8.13.8/8.13.8) id l0DAbm7q007014; Sat, 13 Jan 2007 02:37:48 -0800 (PST) (envelope-from MAILER-DAEMON) H?D?Date: Sat, 13 Jan 2007 02:37:48 -0800 (PST) H??Received: from localhost (localhost) by mx1.highperformance.net (8.13.8/8.13.8) id l0DAbm7q007014; Sat, 13 Jan 2007 02:37:48 -0800 (PST) (envelope-from MAILER-DAEMON) H?D?Date: Sat, 13 Jan 2007 02:37:48 -0800 (PST) H?F?From: Mail Delivery Subsystem MAILER-DAEMON H?x?Full-Name: Mail Delivery Subsystem H?M?Message-Id: [EMAIL PROTECTED] H??To: [EMAIL PROTECTED] H??MIME-Version: 1.0 H??Content-Type: multipart/report; report-type=delivery-status; boundary=l0DAbm7q007014.1168684668/mx1.highperformance.net H??Subject: Returned mail: see transcript for details H??Auto-Submitted: auto-generated (failure) . ___ 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]
ide/pata: change from sec/slave to pri/mater corrupt fstab, no keyboard other mysteries
So I'm feeling pretty stupid, My system is dead because I changed my disk from the secondary to the primary ide controller. Boots, can't mount yada, yada. No problem, but I can't type when it says ufs: ... i.e. da0s1..mountprompt. Ok, so I put it back, edit fstab, reboot. Ooops, yours truly put a typo in fstab, now it won't boot at all, because I can't type at the manual-mount prompt. Question1: Why? I can hit F1 from the loader, and I can choose 1-5 from the beastie menu, so the damn keyboard is, in fact, working, but no text from the mount prompt when I type. I suppose the obvious answer is that something in my boot process disables my keyboard (though I could also type just fine when I booted origonally in safemode on the secondary slave cable). Did the obvious and tried a different brand/connector/etc for the keyboard. Question2: Led me down this path in the first place: why does the system freeze up solid after the ehci hardware message when you boot off the secondary slave disk? Obvious answer, it's doing something ugly with the ata_dma (because that's one of the very few things disabled in safe mode). Boot in safe mode or put the disk as primary master, and voila, no freeze! (Only my fstab is now messed up [compounding matters: the brand new harddisk with the extra-tight connector ripped one plug off my cheapo pata cable, so I can't plug the cdrom back in and start from scratch.]) Question3: Anyone qualified to tell me if question2 is legitimate bug-report material, or expected behavior? Yeach. What a mess. Typical sunday. I can hope for an even better monday, no doubt ;) Thanks, all, Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mystery Spam Piling Up in Mqueue
Jeff Royle wrote: Welcome to the running a mailserver on the intertubes. :-) And it used to be such a nice neighborhood. :( It's hard to be a good netizen. I probably don't spend as much time on it as purist would prefer. I just try to sweep up whatever flotsam comes my way when I find the time. Later, Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Best way to kill pixels?
What's the best way to make more dead pixels on an LCD display?... So a manufacturer will be forced to replace it. Would a high voltage static discharge through the panel work? Would it leave physical evidence of tempering, like melted silicon? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: SuperMicro 2U servers?
[EMAIL PROTECTED] wrote: On Thu, Jan 11, 2007 at 08:43:06AM +0100, Philippe Lang wrote: Hi, Is anyone using FreeBSD 6.X in production on SuperMicro 2U servers? http://www.supermicro.com/products/system/2U/ Thanks for the info, Philippe Lang Yep, We are using them at Juniper Networks. We have had very good luck with them. However we use SCSI disk instead of SATA so I don't know how well SATA works with FreeBSD 6.x. Our setup is 2 - dual core CPUs, 4 gig of ram, a pair of Adaptec SCSI RAID controllers. The OS disk is a pair of 72 gig SCSI mirrored and the other 6 bays have some configuration of SCSI disk in RAID 10. We use FreeBSD 6.2-RC2 because these motherboards use the Intel network chips and there was a problem with the em device. The patch to fix this got committed sometime in late October. Josef Hi Josef, thanks for your answer. Are you using this motherboard? http://www.supermicro.com/products/motherboard/Xeon1333/5000P/X7DBE.cfm I have just check on FreeBSD 6.2R hardware compatibility list, and they don't mention the network controller. It's an - Intel(r) (ESB2/Gilgal) 82563EB Dual-Port Gigabit Ethernet Controller Hardware compatibility list says: - The em(4) driver supports Gigabit Ethernet adapters based on the Intel 82540, 82541ER, 82541PI, 82542, 82543, 82544, 82545, 82546, 82546EB, 82546GB, 82547, 82571, 82572 and 82573 controller chips Does the documentation simply need to be updated maybe? Bye Philippe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Best way to kill pixels?
Nikolas Britton wrote: What's the best way to make more dead pixels on an LCD display?... So a manufacturer will be forced to replace it. Would a high voltage static discharge through the panel work? Would it leave physical evidence of tempering, like melted silicon? Thanks. You sure will get advice on commiting a fraud here. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]