ttys file question
I have added the following entry to /etc/gettytab file test.std.115200:\ :ep:sp#4800:tc:Pc And also I have changed /etc/ttys file cuau3 /usr/libexec/getty test.std.115200cons25 on secure I expect /dev/cuau3 device to use even parity and 4800 as speed, but when I check the device properties using stty -f /dev/cuau3, only speed changes to 4800 and parity value does not change. Here's the output of stty -f /dev/cuau3 after applying the changes using kill -HUP 1 command. speed 4800 baud; lflags: -icanon -isig -iexten -echo iflags: -icrnl -ixon -ixany -imaxbel -brkint oflags: -opost tab3 cflags: cs8 -parenb ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Fw: ttys file question
I have added the following entry to /etc/gettytab file test.std.115200:\ :ep:sp#4800:tc:Pc And also I have changed /etc/ttys file cuau3 /usr/libexec/getty test.std.115200 cons25 on secure I expect /dev/cuau3 device to use even parity and 4800 as speed, but when I check the device properties using stty -f /dev/cuau3, only speed changes to 4800 and parity value does not change. Here's the output of stty -f /dev/cuau3 after applying the changes using kill -HUP 1 command. speed 4800 baud; lflags: -icanon -isig -iexten -echo iflags: -icrnl -ixon -ixany -imaxbel -brkint oflags: -opost tab3 cflags: cs8 -parenb ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ttys file question
But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? In short the tty devices are for outgoing connections, the cua devices are for incoming connections. For more detail see sio(4), after all the detail about multi-port serial cards and their master ports comes a couple of paragraphs describing the devices associated with each serial port in detail. -- Steve O'Hara-Smith st...@sohara.org Thanks. Another question is how can I change the default values of e.g. databits, stopbits and ... for the device? I can set the speed in /etc/ttys. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
ttys file question
Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu6 /usr/libexec/getty std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
ttys file question
Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu6 /usr/libexec/getty std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Fw: ttys file question
Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: #Serial terminlas #The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu6 /usr/libexec/getty std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
ttys file question
Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: ttyu6 std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Using snort in inline mode with IPFW
Hi all Have you guys ever tried this combination? Using snort in inline mode and IPFW as daq. I have added the following lines to the default /usr/local/etc/snort/snort.conf file : config daq: ipfw config daq_mode: inline config policy_mode: inline And I use the following script to run snort: #!/bin/sh ipfw -q delete set 10 /dev/null 1/dev/null 2/dev/null ipfw -q delete 401 /dev/null 1/dev/null 2/dev/null ipfw -q delete 402 /dev/null 1/dev/null 2/dev/null ipfw -q delete 403 /dev/null 1/dev/null 2/dev/null ipfw -q add 401 allow all from 224.0.0.0/24 to any /dev/null 1/dev/null 2/dev/null ipfw -q add 402 allow all from any to 224.0.0.0/24 /dev/null 1/dev/null 2/dev/null ipfw -q add 403 allow all from me to me /dev/null 1/dev/null 2/dev/null /bin/snort --daq ipfw --daq-var port=1500 -N -A full -l /var/log/snort/ -c /usr/local/etc/snort/snort.conf /dev/null 1/dev/null 2/dev/null -q ipfw -q add 451 set 10 divert 1500 all from any to any /dev/null 1/dev/null 2/dev/null But it does not drop the packets. Any suggestions or experiences ? Thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
make release fails
Hi I'm trying to make my own release ... # cd /usr/src # make buildkernel KERNCONF=MYKERN # make -j4 buildworld # cd release/ # make release NODOC=YES NOPORTS=YES NOSRC=YES and that's the error while making release: find //usr/obj/usr/src/release/dist/doc -empty -delete find: -delete: //usr/obj/usr/src/release/dist/doc: relative path potentially not safe *** [distributeworld] Error code 1 Stop in /usr/src. *** [distributeworld] Error code 1 Stop in /usr/src. *** [base.txz] Error code 1 Stop in /usr/src/release. *** [release] Error code 1 Stop in /usr/src/release These are contents of /etc/src.conf file : WITHOUT_BLUETOOTH=YES WITHOUT_EXAMPLES=YES WITHOUT_FLOPPY=YES WITHOUT_GAMES=YES WITHOUT_MAN=YES WITHOUT_MAN_UTILS=YES WITHOUT_SHAREDOCS=YES WITHOUT_WIRELESS=YES WITHOUT_WIRELESS_SUPPORT=YES WITHOUT_AT=YES WITHOUT_CALENDAR=YES WITHOUT_INFO=YES WITHOUT_LOCALES=YES WITHOUT_ZFS=YES WITHOUT_BSD_CPIO=YES WITHOUT_CTM=YES WITHOUT_DICT=YES WITHOUT_GDB=YES WITHOUT_GNU=YES WITHOUT_GROFF=YES WITHOUT_HTML=YES WITHOU_INFO=YES WITHOUT_LPR=YES WITHOUT_MAIL=YES WITHOUT_PORTSNAP=YES WITHOUT_QUOTAS=YES WITHOUT_RCS=YES WITHOUT_SYSINSTALL=YES WITHOUT_BIND=YES WITHOUT_BIND_XML=YES WITHOUT_BIND_IDN=YES WITHOUT_BIND_SIGCHASE=YES WITHOUT_BIND_LARGE_FILE=YES WITHOUT_FREEBSD_UPDATE=YES WITHOUT_RESCUE=YES What's wrong with this? Thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
assign IP address to ng interface without destination address
Hi fellas Is it possible to assign IP address to ng interfaces without destination address ? Is it possible to assign the destination address later ? Thanks in advance ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
installing a new device driver
Hi all Sorry I ask so much cause I'm a new user to freeBSD :) Hear's the deal. How can I install a new device driver on my OS ? Please explain in details because of the reason I mentioned earlier :) Thanks in advance ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: installing a new device driver
This is the output of pciconf -lv : vendor = 'FarSite Communications Limited' device = 'G.SHDSL Intelligent Sync Comms Card (FarSync DSL-S1)' class = simple comms So what is the next step ? From: Ralf Mardorf ralf.mard...@rocketmail.com To: freebsd-questions@freebsd.org Sent: Wednesday, January 9, 2013 1:55 PM Subject: Re: installing a new device driver On Wed, 2013-01-09 at 02:09 -0800, Jack Mc Lauren wrote: How can I install a new device driver on my OS ? I'm new to FreeBSD myself :). Manually as root run kldload driver_name this is something I already used myself. To load the module automagically at startup, edit /boot/loader.conf driver_name=YES I never used this myself until now. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-modules.html Hth, Ralf ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
keyboard and mouse problem
Hi guys I have a freeBSD 8.2 amd64 on my system and I'm using gnome environment. But after a few seconds my USB keyboard and PS/2 mouse hang up !!! What should I do ? Thanks in advance ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
system restart after some seconds
Hi How can I restart my freeBSD after specific seconds ? Thanks in advance ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeBSD 9.1-PRERELEASE
Hi, In this mailinglist I'm reading a lot about problems (re)compiling the system. At this moment I'm running: FreeBSD 9.1-PRERELEASE (ORAC) #0 r244047: Sun Dec 9 15:33:19 CET 2012 without problems. Is it save to recompile the system with all patches? Thanks Jack Raats ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
using iniparser.h
Hi guys Take a look to the code below : #include iostream #include string.h #include iniparser.h #include dictionary.h using namespace std; int main() { dictionary *dict = new dictionary; dirent *dir = new dirent; char *c; dict = iniparser_load(/tmp/test.ini); c = iniparser_getstring(dict,s,w); cin.get(); return 0; } I have this error : ***main.cpp:17: undefined reference to `iniparser_load' ***/main.cpp:18: undefined reference to `iniparser_getstring' any suggestions ? Thanks in advance ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
shell script problem
Hi all Please take a look at the script below wich I've wrote : 1- cat /foo/bar.txt | while read $LINE12- do3- cat /foo/bar/foo/bar.txt | while read $LINE24- do 5- if [ $LINE1 = $LINE2 ]; then6- sw=17- echo Current value of sw is : $sw8- break9- fi10- done11- echo Value of sw is : $sw12- if [ $sw = 0 ]; then13- DO SOMETHING14- fi15- sw=016- done You probebly guessed what I want to do. But the problem is that when the value of sw sets to 1 (in the first if statement) and the loop breaks , the value of sw is not '1' anymore in echo Value of sw is : $sw !!! Thanks in advance ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
exclude directories from find command
Hi fellas How can I exclude specific directories from my find command ? I want to look for all files in the whole system except for those in e.g /extra directory. I use this command to find all files, but how can I exclude /extra directory ? find / -type f Thanks in advance ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Installing chromium port
Hi guys When I attempt to install chromium port I face this error : === chromium-6.0.472.63 is forbidden: several security vulnerabilities.*** Error code 1 What should I do with this ?? Thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
using AWK
Hi guys How can I read a file which contains a number and assign that number to a variable via awk programming? By the way, I want to use this awk program in a shell script. Thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: using AWK
Hi Jack, HI How can I read a file which contains a number and assign that number to a variable via awk programming? By the way, I want to use this awk program in a shell script. I'm actually not sure what you're asking, exactly -- you want the number to go into an awk variable? Or a shell variable? Yes, I want the number to go into an awk variable. Assuming you want it to go into an awk variable, I would try something like this: getline my_number filename; close filename; That assumes the filename is stored in the variable named filename. It puts the number in the awk variable named my_number. To put that in context, let's say you're getting the filename from $0, and you want to multiply the number by 2 and print it. You might do: filename = $0; getline my_number filename; close filename; print my_number * 2; Or if I completely misinterpreted your question, let me know :-) ~Ben This is what i wrote: #! /bin/sh filename=$0 awk 'getline no filename; print no' But when I run this script sh /awk_no.sh /var/no.txt I have this error : awk: syntax error at source line 1 context is getline no filename; print no awk: bailing out at source line 1 Thank you :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
using AWK - Thanks :)
Hi all Thank you so much my friends, Ben Frank Polytropon Devin you helped me so much :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Listen to file changes
Hi all I want to monitor files access and change time. How can I listen to specific file or directory to monitor ? I'm coding with c. Thanks In advance ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ugh. dump / restore problem(s) Cannot find file dump list
From: Polytropon free...@edvax.de To: free...@dreamchaser.org Cc: FreeBSD Mailing List freebsd-questions@freebsd.org Sent: Wednesday, November 14, 2012 12:27 PM Subject: Re: ugh. dump / restore problem(s) Cannot find file dump list On Wed, 14 Nov 2012 01:20:14 -0700, Gary Aitken wrote: mount /dev/ada0p4 /mnt/ssd/var cd /mnt/ssd/var restore -r /usr/backup/dump_var_0_20121113_1920 Cannot find file dump list The last command looks wrong. The restore program requires the dump file to be provided via -f, so # restore -rf /usr/backup/dump_var_0_20121113_1920 should work. You can find an example in man restore. Hi There is no - . This is the correct format : restore rf /path/to/dump/files good luck :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
nanobsd boot problem
Hi all I have some problems in the second phase of running a device from a nanobsd image. After copying the image on a flash memory, and after I set the system to boot up from flash memory, I just see a black screen and a blinking cursor ! looks like the boot device ( flash memory ) is not recognized by the system. Here are my debugging information , if they are not enough, tell me please to send you necessary informations : dmesg output : da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: UFD 2.0 Silicon-Power8G PMAP Removable Direct Access SCSI-4 device da0: 40.000MB/s transfers da0: 7388MB (15130624 512 byte sectors: 255H 63S/T 941C) according to the last line, I change the NANO_SECTS to 63 and NANO_HEADS to 255. (in nanobsd.sh). ls /dev output : da0s1 da0s1a ad6s1b da0s3 ad6s1d da0s4 according to the first column , I set NANO_DRIVE to da0. (in nanobsd.sh) and here are the contents of the flash memory : ls /mnt .cshrc boot lib rescue usr .profile cfg libexec root var .snap conf media sbin COPYRIGHT dev mnt sys bin etc proc tmp Am I missing something ?? could you please me please ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Access packets directly from NIC
Hello FreeBSD users ! How can i access and check packets directly from NIC ? Regards, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Access packets directly from NIC
I believe that easiest way is using tcpdump. Also you should specify what you mean by 'accessing packets': is it the need to view raw packet data, or what? :) Yes, i need to view raw packets and check their protocol, e.g. whether they are ICMP packets or something else ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Access packets directly from NIC
I believe that easiest way is using tcpdump. Also you should specify what you mean by 'accessing packets': is it the need to view raw packet data, or what? :) Yes, i need to view raw packets and check their protocol, e.g. whether they are ICMP packets or something else ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
nanobsd configuration
hi i have a problem with nanobsd. there are somethings which don't have WITHOUT knobs, how can i control these directories manually ? how can i add a costume function to nanobsd.sh to do this ?? thanks ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: nanobsd configuration
From: Arthur Chance free...@qeng-ho.org To: Jack Mc Lauren jack.mclau...@yahoo.com Cc: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Sent: Tuesday, October 23, 2012 2:54 PM Subject: Re: nanobsd configuration On 10/23/12 09:28, Jack Mc Lauren wrote: hi i have a problem with nanobsd. there are somethings which don't have WITHOUT knobs, how can i control these directories manually ? how can i add a costume function to nanobsd.sh to do this ?? How about something along the lines of cust_clean () { rm -rf ${NANO_WORLDIR}/path/to/unwanted } customize_cmd cust_clean in your nanobsd config file? === thanks you mean after building image, this function remove unwanted from WORLDDIR ? i suppose this will not effect the image, because the image had been built before removing unwanted directories ... did i get your point correctly ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pppoe configuration and dns name resolution
Hi This time I configured as simple as possible with minimal settings, and voila things worked. I successfully connected to internet in both cases - DHCP server disabled in adsl modem, and DHCP server enabled in adsl modem. Thanks all of you guys for helping. :) Here are config files: ## /etc/rc.config hostname=jacks_lappy ifconfig_fxp0=DHCP # The below line is to be used if DHCP server on adsl # modem is disabled. #ifconfig_fxp0=inet 192.168.1.4 netmask 255.255.255.0 # This is assigned to telnet to adsl modem and configure it, # if you don't wanna communicate with modem, remove # this line. It doesn't affect ppp connectivity, in any way - # I tried removing it and got connected successfully. sshd_enable=YES moused_enable=YES powerd_enable=YES # Set dumpdev to AUTO to enable crash dumps, NO to disable dumpdev=AUTO hald_enable=YES dbus_enable=YES --- ## /etc/ppp/ppp.conf: default: set log Phase tun command adsl: set device PPPoE:fxp0 #MRU is optional too, you can remove it # w/o affecting ppp connectivity. set mru 1492 #set mtu 1492 # This was the cause of failure. # See man ppp for more info. # If MTU is set, ppp will not accept MRU values less than MTU. # e.g. MTU = 1492. Now if your ISP has MTU = 1460(my case), then # ppp on your PC, will not connect to ppp server at your ISP side. # So DO NOT set MTU explicitly. set authname myusername set authkey mypassword set dial set login add default HISADDR enable dns # a must, if DHCP server is enabled in adsl modem # and if you don't wanna edit /etc/resolv.conf # each time before connecting tp ISP's ppp server. #Now you don't need to touch /etc/resolv.conf - My /etc/resolv.conf is updated each time I start ppp, so I didn't needed to edit it. I simply started ppp via ppp -ddial adsl I also didn't start ppp at bootup, as it requires that your adsl modem must be powered on before FreeBSD begins booting, which is not the usual case for me. Also, as soon as I started ppp, an ip address is assigned to tun0 interface by ISP, while fxp0 was assigned its ip address via DHCP server enabled in adsl modem, even before I attempted to dial ppp. That is expected. I also tested this configuration with DHCP server disabled in adsl modem and it too worked successfully, except I need to chnage the line fxp0=DHCP to manually assigned ip address one, no other change was needed. The problem might be I was I trying to explcitly set MTU to be 1492, which ppp takes as minimum value - ie no MTU value less than 1492 is agreed upon by user ppp. My ISP's MTU was 1460, and since 1460 1492, so ppp was not agreeing upon MTU value and no connection was made. Thanks again all of you guys for sorting this out. :) Mean while I created a script to start and stop ppp service for a profile. This script is specifically written for csh/tcsh shell - the default one for FreeBSD, so some changes need to be made if it is to be run in other shells. Just go to c shell and type pppdo profilename start | stop where 'profilename' is the desired profilename defined in etc/ppp/ppp.conf, and either you 'start' ppp or 'stop' ppp. Here goes the script: pppdo.sh #!/bin/csh if ( $#argv != 2 ) then echo Usage: $0 ppp_profile start | stop exit endif switch ($2) case start: /usr/sbin/ppp -ddial $1 ; breaksw case stop: killall -INT ppp killall -HUP ppp ; breaksw default: echo $0 : Invalid Cmd ; breaksw endsw - NOTE: before executing this script make sure it is executable If not, type this at shell: chmod +x ./pppdo.sh After executing this script try pinging to a remote site to confirm connectivity, e.g. type this at shell: ping -c5 freebsd.org If you get 0.0% packet loss, then you made it! So, the only files that require modifications are /etc/ppp/ppp.conf and /etc/rc.conf No other file need to be modified to use user ppp, no matter whether DHCP server on your adsl modem is enabled or disabled, it doesn't matter - just use the configuration mention above. Then use the script as: ./pppdo adsl start to start the ppp profile named adsl(tun0 interface is created), and use ./pppdo adsl stop to stop the ppp. This will destroy the tun0 interface too. PS: The user account from which this script is to be run, must be a member of network group too, though network group need not to be the user's login group. This is the requirement of user ppp itself, and not of this script. Regards -- Jack ___ freebsd-questions
Re: pppoe configuration and dns name resolution
in /etc/ppp/ppp.conf that works, and others don't But what is that magic sequence? PS: In windows there is no problem connecting via ppp, even if I use DHCP server enabled on my adsl modem, and modem is in bridge mode. So, there must be some way in FreeBSD too, that works regardless of whether ip address of fxp0(the ethernet interface to which adsl modem connects to PC), is assigned via a DHCP server on modem or manually. I understand that if DHCP is enabled on adsl modem, and fxp0 is assigned the ip address via this DHCP, then the PPP server of ISP to which we are trying to connect, will also assign a public IP address to the PPP client, which in case of FreeBSD is tun0 interface rather than fxp0 . In other words, tun0 interface here should be PPP client, and PPP server is at ISP side. Ths fxp0 interface is used for both types of traffic - local LAN traffic and the PPP traffic. PC -- ADSL modem -- ISP fxp0 (LAN DHCP Client) LAN DHCP server doesn't know about 192.168.1.2 192.168.1.1 LAN tun0 transparent to PPP traffic PPP client( in bridge mode) PPP Server So, from ISP's PPP server's perspective, the only thing it sees on customer side is PPP client ie tun0 interface. PPP server doesn't know anything about adsl modem in between and any LAN at customer side. adsl modem just acts as a PPP traffic forwarder - that's why it is called a bridge mode of modem. So, tun0 interface is the interface to which ISP's PPP server will assign the public IP address. From my understanding it shoud not matter whether fxp0 is assigned the ip address via DHCP server on local lan or via manually - at least this concept works on windows. But in FreeBSD, if I enable dhcp on fxp0, then /etc/resolv.conf is created each time I boot in FreeBSD, so the only nameserver being 192.168.1.1, ie adsl modem ethernet interface. Even if I edit it to include nameservers of my ISP or OpenDNS this file is created each time FreeBSD boots, and these entries are lost, with only entry being 192.168.1.1 Is this a FreeBSD design/bheaviour issue? Can anyone throw light on the issue I'm facing? Any possible tricks I might be missing, while configuring PPP interface? Regards, -- Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pppoe configuration and dns name resolution
On Tue, Oct 16, 2012 at 9:19 PM, Mark Blackman m...@exonetric.com wrote: On 16 Oct 2012, at 16:38, Jack jacks.1...@gmail.com wrote: I 'll try mpd5. Thanks. Actually, I was concerned with userland ppp, becoz of the scenarios where we have a FreeBSD machine and the only way to connect to internet is an adsl modem in bridge mode (assuming the mode in modem, can't be changed). In such case the only utilty is ppp, which can be of help. Ok, usually bridge mode implies PPPoE and mpd5 does PPPoE. Maybe I'm missing your point. - Mark Mark, what I meant is when we have, say a fresh FreeBSD install, then the only service we have at expose is ppp. To be able to use mpd5, or other ports/packages we first need to connect to internet then only we can install/use mpd5. So, by default we are stuck at using ppp builtin with FreeBSD. And yes by bridge mode I meant that username and password are to be provided to OS, rather than storing them inside adsl modem. The bridge mode works fine in my Windows XP setup. Nothing special to configure, just need to go to network connections and create a new connection, using username and password. In XP, I'm using DHCP too, so that I don't need to manually confgure interface IP address. That's why I'm sure that my network setup is not a issue. The issue lies somewhere in FreeBSD configuration or somewhere else. Regards -- Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pppoe configuration and dns name resolution
Hi, Thank you guys for your suggestions, and sharing your experiences with me. This time I deleted old /var/log/ppp.log file, and I did modify /etc/ppp/ppp.conf - just the location of ifaddr line is changed and some more logging options set -nothing else is changed. . The file is this now: /etc/ppp/ppp.conf : default: adsl: set log Phase chat lcp ipcp ccp tun command lqm set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 set device PPPoE:fxp0 set mru 1492 set mtu 1492 set ctsrts off set speed sync set dial enable lqr set login set authname myusername set authkey mypassword set timeout 120 set redial 0 0 # set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 # now this interface is set up at 2nd line in adsl profile add default HISADDR enable dns nat enable no - Then I rebooted FreeBSD, in verbose mode enabled. After it booted, I started ppp like this: #ppp -ddial adsl Here is the shell o/p along with verbose lines /usr/sbin/ppp -ddial adsl Working in ddial mode Using interface: tun0 ;verbose lines tun0: buf attached WARNING: attempt to domain_add(netgraph) after domainfinalize() - The output of ifconfig is: fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=2009RXCSUM,VLAN_MTU,WOL_MAGIC ether 00:16:d3:0c:42:22 inet 192.168.1.2 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active fwe0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 06:e4:0a:1b:50:36 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL ch 1 dma -1 fwip0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 lladdr 6.e4.a.0.28.1b.50.36.a.2.ff.fe.0.0.0.0 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=63RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 inet 127.0.0.1 netmask 0xff00 nd6 options=21PERFORMNUD,AUTO_LINKLOCAL tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST metric 0 mtu 1500 options=8LINKSTATE nd6 options=21PERFORMNUD,AUTO_LINKLOCAL Opened by PID 1731 - The /var/log/ppp.log file contents: http://justpaste.it/1fcw Is there some standard sequence for the contents of /etc/ppp/ppp.conf ? I guess that may be the problem. The bridge mode works fine in my Windows XP setup. Nothing special to configure, just need to go to network connections and create a new connection, using username and password. In XP, I'm using DHCP too, so that I don't need to manually confgure interface IP address. That's why I'm sure that my network setup is not a issue. The issue lies somewhere in FreeBSD configuration or somewhere else. On Tue, Oct 16, 2012 at 9:19 PM, Mark Blackman m...@exonetric.com wrote: On 16 Oct 2012, at 16:38, Jack jacks.1...@gmail.com wrote: I 'll try mpd5. Thanks. Actually, I was concerned with userland ppp, becoz of the scenarios where we have a FreeBSD machine and the only way to connect to internet is an adsl modem in bridge mode (assuming the mode in modem, can't be changed). In such case the only utilty is ppp, which can be of help. Ok, usually bridge mode implies PPPoE and mpd5 does PPPoE. Maybe I'm missing your point. Mark, what I meant to say is when we have, say a fresh FreeBSD install, then the only service we have at expose is ppp. To be able to use mpd5, or other ports/packages we first need to connect to internet then only we can install/use mpd5. So, by default we are stuck at using ppp builtin with FreeBSD. :( By bridge mode I meant that username and password are to be provided to OS, rather than storing them inside adsl modem. PS: I sent this mail with /var/log/ppp.log contents yesterday but it seems that list moderator rejected the post due to its large size. So, I'm pasting the link for contents of /var/log/ppp.log Regards -- Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pppoe configuration and dns name resolution
On Tue, Oct 16, 2012 at 8:49 PM, Mark Blackman m...@exonetric.com wrote: On 16 Oct 2012, at 16:08, Jack jacks.1...@gmail.com wrote: Hi I'm new as a FreeBSD user, and trying to configure my pppoe connection. [snip] fxp0 is the ethernet interface of my PC via which adsl modem is connected. Any suggestions ... Consider using the ports mpd5 daemon for a PPPoE connection instead. I had a lot of trouble getting PPPoE to work with userland 'ppp', but mpd5 worked fine. - Mark I 'll try mpd5. Thanks. Actually, I was concerned with userland ppp, becoz of the scenarios where we have a FreeBSD machine and the only way to connect to internet is an adsl modem in bridge mode (assuming the mode in modem, can't be changed). In such case the only utilty is ppp, which can be of help. I'm using FreeBSD 9.1 RC-2. Regards -- Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Rewrite redirects
I thought I had this figured out but discovered I have a BIG flaw with my .htaccess redirects After days of searching and experimenting, I still can't get this to do what I intended. I have moved all of the content on a web site from the web root to a different directory. Now I need toredirect the URL requests from the old location to the new one. Instead of issuing a 301 error, I want to first redirect to an info page, let's call it info.htm. Here's what I have now in the web root's .htaccess. Here's the way it was/is: ~webroot/lots_of.html and now changed to this: ~webroot/content/lots_of.html Using the apache mod_rewritein .htaccess RewriteEngine on RewriteRule /~webroot/(.*\.html) /^info.htm [PT] which is supposed to redirect any page with the extension .html to the info.htm page. BUT, alas any *.html page in any directory will redirect back to the info.htm page!! What I wanted is that only the *.html pages in the ~webroot to be redirected to the info page. I hope this make sense and I hope someone can give me a tip on how to limit the redirects to only the webroot pages. Thanks in advance. -- -- All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Rewrite redirects
On 9/28/2012 3:08 PM, Jack Stone wrote: I thought I had this figured out but discovered I have a BIG flaw with my .htaccess redirects After days of searching and experimenting, I still can't get this to do what I intended. I have moved all of the content on a web site from the web root to a different directory. Now I need toredirect the URL requests from the old location to the new one. Instead of issuing a 301 error, I want to first redirect to an info page, let's call it info.htm. Here's what I have now in the web root's .htaccess. Here's the way it was/is: ~webroot/lots_of.html and now changed to this: ~webroot/content/lots_of.html Using the apache mod_rewritein .htaccess RewriteEngine on RewriteRule /~webroot/(.*\.html) /^info.htm [PT] which is supposed to redirect any page with the extension .html to the info.htm page. BUT, alas any *.html page in any directory will redirect back to the info.htm page!! What I wanted is that only the *.html pages in the ~webroot to be redirected to the info page. I hope this make sense and I hope someone can give me a tip on how to limit the redirects to only the webroot pages. Thanks in advance. For the above, now this works if I use the following: RewriteBase /~webroot/ RewriteRule ^radio\.html$ /^info.htm [PT] RewriteRule ^v20\.html$ /^info.htm [PT] So, now if the above are requested: http://www.webroot/content/radio.html it doesn't redirect to the info page. That's what I want, but there are 100s of html files in webroot/content and I figured there MUST be a way to wildcard the syntax, something like ^.*\.html$ so I don't need to list every specific html file. I believe I'll have it if I can figure that out now. Any thoughts? -- -- All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Simple redirect
FreeBSD mail.sagedata.net 7.4-RELEASE-p10 FreeBSD 7.4-RELEASE-p10 apache22 Sorry if this belongs on a different mail list, but figure there are plenty here who know how to do this. On one of our web sites, some 4 years ago we moved the content into a new directory, but after all this time there are some 100 referrers still linking to the old location. If the incoming link doesn't direct one to www.myweb.com/ how would we redirect to www.newplace.html Appreciate advice -- -- All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple redirect
On 9/18/2012 12:37 PM, Jack Stone wrote: FreeBSD mail.sagedata.net 7.4-RELEASE-p10 FreeBSD 7.4-RELEASE-p10 apache22 Sorry if this belongs on a different mail list, but figure there are plenty here who know how to do this. On one of our web sites, some 4 years ago we moved the content into a new directory, but after all this time there are some 100 referrers still linking to the old location. If the incoming link doesn't direct one to www.myweb.com/ how would we redirect to www.newplace.html Appreciate advice I should have mentioned, those old links are being directed to about a dozen various directories. I want the referrer to ignore those and redirect to the new www.newplace.html -- -- All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple redirect
On 9/18/2012 1:35 PM, Theodor-Iulian Ciobanu wrote: On Tue, 18 Sep 2012 13:16:15 -0500 Jack Stone ja...@sage-american.com wrote: On 9/18/2012 12:37 PM, Jack Stone wrote: FreeBSD mail.sagedata.net 7.4-RELEASE-p10 FreeBSD 7.4-RELEASE-p10 apache22 Sorry if this belongs on a different mail list, but figure there are plenty here who know how to do this. On one of our web sites, some 4 years ago we moved the content into a new directory, but after all this time there are some 100 referrers still linking to the old location. If the incoming link doesn't direct one to www.myweb.com/ how would we redirect to www.newplace.html Appreciate advice I should have mentioned, those old links are being directed to about a dozen various directories. I want the referrer to ignore those and redirect to the new www.newplace.html http://tools.ietf.org/html/rfc2616#section-10.3.2 http://en.wikipedia.org/wiki/HTTP_301 Thanks for the help but I figured it out and doesn't even notify a 301 that place has been moved which I like. Slick!! Here's examples of dirs and pages using rewrite in the .htaccess file: RewriteEngine on # dirs RewriteRule ^a10 lbc_signup.html [PT] # pages RewriteRule ^abook.html lbc_signup.html [PT] -- -- All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Problem upgrading fbsd-7.4 -- 8.3
Am trying to upgrade fbsd-7.4 to 8.3. I get all the way through the usual procedure using sources, including installworld, when I attempt to run mergemaster as the final step, I get this fatal error. I've searched the list and google, but don't find the right answer. What am I possibly doing wrong and what should I do to get around this? The error: mail# mergemaster -viF *** Creating the temporary root environment in /var/tmp/temproot *** /var/tmp/temproot ready for use *** Creating and populating directory structure in /var/tmp/temproot *** Press the [Enter] or [Return] key to continue *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to the temproot environment -- -- All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading perl
On 8/29/2012 8:27 AM, Lowell Gilbert wrote: Jack Stone ja...@sage-american.com writes: uname -a FreeBSD mail.sagedata.net 7.0-RELEASE-p9 FreeBSD 7.0-RELEASE-p9 #2: Sun Jan 18 19:59:27 CST 2009 Running perl5.10 (yeah, old!) This is a production server. Been playing catchup on ports including perl as UPDATING recommends: portupgrade -o lang/perl5.12 -f perl-5.10.\* That has worked on other servers, but not this one. Anyone know what I need to do to clean this up?? But, can't get past this fatal error: mail# portupgrade -o lang/perl5.12 -f perl-5.10.\* /usr/ports/Mk/bsd.options.mk, line 231: Error in archive specification: WITHOUT_ /usr/ports/Mk/bsd.options.mk, line 231: Error in archive specification: WITHOUT_ make: fatal errors encountered -- cannot continue ** Makefile possibly broken: lang/perl5.12: You're almost four years past the end-of-life on the release you're running, so it's been left behind in terms of support. In this case it looks (based on a *very* quick look) that you may be running into changes in how make(1) actually works, in which case backporting the ports functionality will be more work than it's worth. If the machine can't be updated, and assuming it's secure (which hard to be sure about with old software on the Internet), you may be best off leaving it alone. Good luck. Thanks for the reply. Actually, on other servers with the same upgrading needs, perl-5.12 installed without any issue. My intention is to upgrade perl in increments to get well past EOL. Wonder if I just deinstalled the old perl5-5.10 and then installed the perl5-12 would work. I can do that right from the port: make perl5-12 first to see if that works, then: # make deinstall (perl-5.10) then: make install clean What do you think? I've got to move up because an important perl program requires a minimum 5.12. -- -- All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading perl
On 8/29/2012 1:32 PM, Lowell Gilbert wrote: Jack Stone ja...@sage-american.com writes: Actually, on other servers with the same upgrading needs, perl-5.12 installed without any issue. My intention is to upgrade perl in increments to get well past EOL. You're somewhat on your own, then; I can't test any of my ideas before suggesting them to you. Wonder if I just deinstalled the old perl5-5.10 and then installed the perl5-12 would work. I can do that right from the port: make perl5-12 first to see if that works, then: # make deinstall (perl-5.10) then: make install clean I would be surprised if the perl-5.12 port will build for you; I think you'll get the same error. If not, then yes, it should work. What do you think? I've got to move up because an important perl program requires a minimum 5.12. Well, it's also possible that there's a local problem on that machine. You indicated that you used portupgrade for similar updates on similarly-aged machines, but I'll guess that they were only roughly similar. I'll guess that you built your own INDEX file; if not, you probably should (and the associated database for portupgrade). Compare the infrastructure in ports/Mk (and maybe /usr/share/mk) with the similar machines that succeeded, and look at the Makefile in perl5.12 to make sure it sets options properly. Good luck. Hi Lowell and thanks for the good wishes! Yes, on the other servers which upgraded without issue are running the same freebsd-7.x, and the make files are identical for the perl-5.12. I just now ran a test on a test server of same vintage and it did build directly in the port just using make to see if it would work. It did. The trick is to DISABLE_CONFLICTS=YES in the /etc/make.conf. This still doesn't mean the important production server will cooperatebut will have to take a risk and try it. That server has a bootable clone that is run every day so I can rescue the server. I will just to make a fresh clone right before I try the perl upgradeso to minimize any loss of data. -- All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading perl
On 8/29/2012 1:32 PM, Lowell Gilbert wrote: Jack Stone ja...@sage-american.com writes: Actually, on other servers with the same upgrading needs, perl-5.12 installed without any issue. My intention is to upgrade perl in increments to get well past EOL. You're somewhat on your own, then; I can't test any of my ideas before suggesting them to you. Wonder if I just deinstalled the old perl5-5.10 and then installed the perl5-12 would work. I can do that right from the port: make perl5-12 first to see if that works, then: # make deinstall (perl-5.10) then: make install clean I would be surprised if the perl-5.12 port will build for you; I think you'll get the same error. If not, then yes, it should work. What do you think? I've got to move up because an important perl program requires a minimum 5.12. Well, it's also possible that there's a local problem on that machine. You indicated that you used portupgrade for similar updates on similarly-aged machines, but I'll guess that they were only roughly similar. I'll guess that you built your own INDEX file; if not, you probably should (and the associated database for portupgrade). Compare the infrastructure in ports/Mk (and maybe /usr/share/mk) with the similar machines that succeeded, and look at the Makefile in perl5.12 to make sure it sets options properly. Good luck. AHAH! This just came out in ports UPDATING and maybe helps: 20120820: AFFECTS: users of ports-mgmt/portupgrade-devel AUTHOR: bdrew...@freebsd.org Due to a bug introduced in 20120601, portupgrade is unable to upgrade itself on FreeBSD 7.x. This has been fixed in 20120820. ports-mgmt/portupgrade is not affected. To upgrade, execute the following: # cd /usr/ports/ports-mgmt/portupgrade-devel make deinstall install clean -- -- All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Upgrading perl
uname -a FreeBSD mail.sagedata.net 7.0-RELEASE-p9 FreeBSD 7.0-RELEASE-p9 #2: Sun Jan 18 19:59:27 CST 2009 Running perl5.10 (yeah, old!) This is a production server. Been playing catchup on ports including perl as UPDATING recommends: portupgrade -o lang/perl5.12 -f perl-5.10.\* That has worked on other servers, but not this one. Anyone know what I need to do to clean this up?? But, can't get past this fatal error: mail# portupgrade -o lang/perl5.12 -f perl-5.10.\* /usr/ports/Mk/bsd.options.mk, line 231: Error in archive specification: WITHOUT_ /usr/ports/Mk/bsd.options.mk, line 231: Error in archive specification: WITHOUT_ make: fatal errors encountered -- cannot continue ** Makefile possibly broken: lang/perl5.12: ** Please report this to the maintainer for lang/perl5.12 No closing parenthesis in archive specification No closing parenthesis in archive specification /usr/local/sbin/portupgrade:1560:in `get_pkgname': Makefile broken (MakefileBrokenError) from /usr/local/sbin/portupgrade:631:in `block (4 levels) in main' from /usr/local/sbin/portupgrade:615:in `each' from /usr/local/sbin/portupgrade:615:in `block (3 levels) in main' from /usr/local/sbin/portupgrade:588:in `catch' from /usr/local/sbin/portupgrade:588:in `block (2 levels) in main' from /usr/local/lib/ruby/1.9/optparse.rb:1404:in `call' from /usr/local/lib/ruby/1.9/optparse.rb:1404:in `block (2 levels) in parse_in_order' from /usr/local/lib/ruby/1.9/optparse.rb:1399:in `catch' from /usr/local/lib/ruby/1.9/optparse.rb:1399:in `block in parse_in_order' from /usr/local/lib/ruby/1.9/optparse.rb:1347:in `catch' from /usr/local/lib/ruby/1.9/optparse.rb:1347:in `parse_in_order' from /usr/local/lib/ruby/1.9/optparse.rb:1341:in `order!' from /usr/local/lib/ruby/1.9/optparse.rb:1334:in `order' from /usr/local/sbin/portupgrade:565:in `block in main' from /usr/local/lib/ruby/1.9/optparse.rb:882:in `initialize' from /usr/local/sbin/portupgrade:236:in `new' from /usr/local/sbin/portupgrade:236:in `main' from /usr/local/sbin/portupgrade:2344:in `main' All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
small script help
Running freebsd-7.0 I use a small script in a jail to check if Apache is running and if not, restart it. #!/bin/sh #if ps -ax | grep -v grep | grep -i httpd #then #echo Apache is alive.. #else #echo Apache is dead, but will be launched. #/usr/local/etc/rc.d/apache22 start However, if I want to check the host's Apache, ps -ax sees all of the httpd lines including the jail and the host: (Jail) 83787 ?? SsJ0:07.71 /usr/local/sbin/httpd -DSSL -DNOHTTPACCEPT (host) 98089 ?? Ss32:49.44 /usr/local/sbin/httpd -DNOHTTPACCEPT How can I modify my script to see only the host based on the bottom line above? Help appreciated! Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 8-STABLE on R620 w/ X520-DA2/Intel 82599
Be patient, a new version will hit HEAD soon with the ID added. Jack On Fri, Jun 29, 2012 at 9:35 AM, Rick Miller vmil...@hostileadmin.comwrote: On Fri, Jun 29, 2012 at 11:56 AM, Gary Palmer gpal...@freebsd.org wrote: On Fri, Jun 29, 2012 at 10:50:52AM -0400, Rick Miller wrote: Hi All, I have 2 hosts, HP DL360 G8 and Dell R620. Both have the X520-DA2/Intel 82599 10G Fiber NIC. Both also have the same FreeBSD 8-STABLE image. The Dell displays the following in dmesg and we are unable to configure the ix0 or ix1 interfaces where the HP works just fine. Wondering if anyone else has experienced this? pci4: network, ethernet at device 0.0 (no driver attached) pci4: network, ethernet at device 0.1 (no driver attached) Please see http://lists.freebsd.org/pipermail/freebsd-net/2012-June/032579.html it may be of some assistance. It looks like adding the Dell specific PCI IDs may be all thats required. Hrmm, very interesting indeed. How do I identify if/when/where the source has been updated? -- Take care Rick Miller ___ freebsd-sta...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Intel X520-DA2 Supported in stable/8?
Glad you figured it out. Cheers, Jack On Mon, Jun 25, 2012 at 3:52 PM, Rick Miller vmil...@hostileadmin.comwrote: Turns out the gbic in the switch was bad...I didn't think there was a problem on the host, but you all still gave me some good info. I appreciate it! On 6/25/12, Rick Miller vmil...@hostileadmin.com wrote: On Fri, Jun 22, 2012 at 7:23 PM, Jack Vogel jfvo...@gmail.com wrote: Would probably be good to take care of the storm threshold if you haven't, set it to 0 and you disable the check, that's what we do internally. As for the queues and number of descriptors, that's kind of up to you, different work loads and environments work best with different setups. Hopefully, when you get rid of the rx ring setup failure you will get things working. Thanks, Jack. I did get rid of the rx ring failure. Link status still shows no carrier. I think everything looks right from the host's perspective. -- Take care Rick Miller -- Sent from my mobile device Take care Rick Miller ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Intel X520-DA2 Supported in stable/8?
Increase your system mbuf pool size, you do not want that failure to happen. Jack On Fri, Jun 22, 2012 at 2:01 PM, Rick Miller vmil...@hostileadmin.comwrote: dmesg and ifconfig output below... On Fri, Jun 22, 2012 at 4:02 PM, Rick Miller vmil...@hostileadmin.com wrote: On Fri, Jun 22, 2012 at 3:54 PM, Andrew Boyer abo...@averesystems.com wrote: The ixgbe driver creates devices named ix0, etc. I believe you need to run 'ifconfig ix0 up' before it will attempt to get link. Thanks for clarifying that tidbit. At least I know the driver loading is the correct driver :) I did try ifup'ing the interface...it shows the interface up, status is still no carrier. I've had confirmation that the cable itself is good. I wonder if it matters that the upstream switch has VLAN tagging enabled? ix0: Intel(R) PRO/10GbE PCI-Express Network Driver, Version - 2.4.5 port 0x7000-0x701f mem 0xf6b8-0xf6bf,0xf6b7-0xf6b73fff irq 40 at device 0.0 on pci7 ix0: Using MSIX interrupts with 9 vectors ix0: RX Descriptors exceed system mbuf max, using default instead! ix0: [ITHREAD] ix0: [ITHREAD] ix0: [ITHREAD] ix0: [ITHREAD] ix0: [ITHREAD] ix0: [ITHREAD] ix0: [ITHREAD] ix0: [ITHREAD] ix0: [ITHREAD] ix0: Ethernet address: 90:e2:ba:15:e2:60 ix0: PCI Express Bus: Speed 5.0Gb/s Width x8 ix1: Intel(R) PRO/10GbE PCI-Express Network Driver, Version - 2.4.5 port 0x7020-0x703f mem 0xf6a8-0xf6af,0xf6a7-0xf6a73fff irq 44 at device 0.1 on pci7 ix1: Using MSIX interrupts with 9 vectors ix1: RX Descriptors exceed system mbuf max, using default instead! ix1: [ITHREAD] ix1: [ITHREAD] ix1: [ITHREAD] ix1: [ITHREAD] ix1: [ITHREAD] ix1: [ITHREAD] ix1: [ITHREAD] ix1: [ITHREAD] ix1: [ITHREAD] ix1: Ethernet address: 90:e2:ba:15:e2:61 ix1: PCI Express Bus: Speed 5.0Gb/s Width x8 ix0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=401bbRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO ether 90:e2:ba:XX:XX:XX inet 10.1.2.50 netmask 0xfe00 broadcast 10.1.3.255 media: Ethernet autoselect status: no carrier ix1: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 options=401bbRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO ether 90:e2:ba:XX:XX:XX media: Ethernet autoselect status: no carrier -- Take care Rick Miller ___ freebsd-sta...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Intel X520-DA2 Supported in stable/8?
Would probably be good to take care of the storm threshold if you haven't, set it to 0 and you disable the check, that's what we do internally. As for the queues and number of descriptors, that's kind of up to you, different work loads and environments work best with different setups. Hopefully, when you get rid of the rx ring setup failure you will get things working. Jack On Fri, Jun 22, 2012 at 3:19 PM, Rick Miller vmil...@hostileadmin.comwrote: On Fri, Jun 22, 2012 at 5:21 PM, Jack Vogel jfvo...@gmail.com wrote: Increase your system mbuf pool size, you do not want that failure to happen. Thanks, Jack. I saw a thread where you discussed this. You are referring to kern.ipc.nmbclusters, correct? Should I also adjust the following? hw.ixgbe.rxd hw.ixgbe.txd hw.ixgbe.num_queues hw.intr_storm_threshold ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: LRO support for IPv6
The LRO code as it stands right now is IPV4 specific, it would be nice to extend it, one of many improvements that may get done at some point. Jack On Tue, May 22, 2012 at 1:43 AM, Venkat Duvvuru venkatduvvuru...@gmail.comwrote: Folks, Could somebody please tell about the base Freebsd version which has LRO support for IPv6? I'm using 9.0-RELEASE and I see that tcp_lro_rx is failing. Please confirm. /Venkat ___ freebsd-...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: LRO support for IPv6
Oh, that's right, distracted with other projects and I forgot, now we just need to have an LRO that works with forwarding eh :) You ROCK bz :) Jack On Tue, May 22, 2012 at 10:01 AM, Bjoern A. Zeeb b...@freebsd.org wrote: On 22. May 2012, at 16:50 , Jack Vogel wrote: The LRO code as it stands right now is IPV4 specific, it would be nice to extend it, one of many improvements that may get done at some point. I am about to commit it to HEAD. Bear another few days with me; I know I am running late but committing new code had less prio than some other real life things currently. I'll also bring TSO6, etc... /bz -- Bjoern A. Zeeb You have to have visions! It does not matter how good you are. It matters what good you do! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: LRO support for IPv6
LRO is a huge win for 10G (as is TSO on the TX side), so odds are good its behind the drop, in any case you'll be able to test that soon :) Jack On Tue, May 22, 2012 at 10:35 AM, Venkat Duvvuru venkatduvvuru...@gmail.com wrote: Thanks for the response. I observed that there is a significant performance drop in case of IPv6 on the rx side. While I'm able to hit line rate ~9.5 Gbps on a 10gb NIC for IPv4..I could only get ~6 Gbps on the rx front for IPv6...However tx for IPv6 is on par with IPv4 hitting almost line rates. Could this be because of lack of LRO6?? Note: hwpmc profiling shows that most of the time is spent in the IPv6 stack code /Venkat On Tue, May 22, 2012 at 10:37 PM, Bjoern A. Zeeb b...@freebsd.org wrote: On 22. May 2012, at 17:04 , Jack Vogel wrote: Oh, that's right, distracted with other projects and I forgot, now we just need to have an LRO that works with forwarding eh :) That's a 6 line bainaid commit afterwards, basically returning form the LRO queuing function in case forwarding is turned on for that address family; a proper solution for long term can than be done whenever we feel like it. The above we should have done years ago;) You ROCK bz :) Jack On Tue, May 22, 2012 at 10:01 AM, Bjoern A. Zeeb b...@freebsd.org wrote: On 22. May 2012, at 16:50 , Jack Vogel wrote: The LRO code as it stands right now is IPV4 specific, it would be nice to extend it, one of many improvements that may get done at some point. I am about to commit it to HEAD. Bear another few days with me; I know I am running late but committing new code had less prio than some other real life things currently. I'll also bring TSO6, etc... -- Bjoern A. Zeeb You have to have visions! It does not matter how good you are. It matters what good you do! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
network with two gateways and one network card
I have a question. Perhaps soeone can point me to a solution. I have a server running FreeBSD 7.4-STABLE with one network card running ezjail My network has two gateways. The host is running as 10.10.10.10 netmask 255.255.255.0 with gateway 10.10.10.1 The jail must be running 192.168.178.10 netmask 255.255.255.0 with gateway 192.168.178.1 Is this possible? How to do it?? What kind of problems to expect? Thanks for your time Jack Raats ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Looking for a simple HOW-TO
Hi, This is perhaps not the right mailinglist so I'm sorry. I'm looking for a simple how to to install Aterisk 1.8 on FreeBSD 7.4-STABLE from the ports. Compiling is not the problem but what to choose from the config before compiling, realizing that I'm only using SIP, so no hardware attached. It would be nice to see the minimum config I have to use from asterisk. Thanks Jack Raats ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Horde-4
At 01:02 AM 7/21/2011 +0200, Per olof Ljungmark wrote: On 07/20/11 22:07, Jack L. Stone wrote: At 11:38 AM 7/20/2011 -0800, Beech Rintoul wrote: On Wednesday 20 July 2011 11:22:44 Beech Rintoul wrote: On Wednesday 20 July 2011 09:47:33 Jack L. Stone wrote: Am running FBSD-7.x and IMAP WU + sendmail-8.4.x + MySQL-5.0.x Sorry to bother the list with this but have searched and read everything google horde.org has to offer but I find no solution to an important issue I'm having with the installation of horde4. Although the port maintainer won't have the broken port for horde4, I have successfully installed Horde4 plus several common apps including, IMP app for an IMAP mail service. All of the horde4 ports including webmail and groupware have been rewritten and comitted. AFAIK everything is working properly. You may be missing some libs or modules, so I would suggest a reinstall. The problem is while I have a good install with the Horde4 base frame and the apps, I can login to HORDE just fine, but when going to the IMAP app, my login fails. From what I understand, the same Horde login should work for the IMP. Reading the login scripts indicates that as well. I'm using MySQL (SQL) as the backend for everything that needs a backend so I may be able to handle a large number of users. I've installed Washington Uni (WU) Imap server and it's listening on the expected port 143. I've worked on this issue over days and weeks, including reinstalls but cannot login to IMP for the mail services. In Horde, I can add users just fine and they appear in the MySQL horde database properly. I have a couple designated as admins. If anyone on this list uses horde and maybe knows what I have missed I would appreciate any possible tips to check on. Does IMP not use the same login as I assUme? Not necessarily. It all depends on your auth backend configs for both horde and the apps. If you're using IMAP auth, you should be able to login to imp as any regular user on the mail account. It's common to use IMAP auth as your general auth backend, that way your users will end up in the right account. You also need either SASL auth or Dovecot auth setup along with your auth backend. IMAP SSL is required, imp will NOT work with IMAP plain login unless you hack the configs by hand (bad idea). Finally, uncheck the disable horde test script box on the main horde configs under the general tab, save your configs and navigate to horde/test.php, there is a section near the bottom for testing your IMAP login. If that isn't successful, you're not going to get much further. If the option doesn't exist at all, you don't have all the modules you need. It will also give you an idea about the state of everything else. Hope this gets you pointed in the right direction :-) Beech I forgot to say use SASL or Dovecot auth if you also want to access and remotely use your sendmail system outside of your horde portal. Horde imp shouldn't have any problems out of the box if your IMAP is otherwise working properly. Beech -- Good help! Should I use Dovecot or Dovecot2 ?? We're using Cyrus-IMAP so I cannot help you with that, but did you configure your imapserver in /usr/local/www/horde4/imp/config/backends.php ? Specifically the line 'hordeauth' = This file itself has a lot of useful information on imap settings. I assume you checked the imap server log files? While on the Horde4 subject, we are running a test installation and find the perfermance of H4 to be considerably slower the its predecessor. Did anyone here experience this? Thanks, Yes, I did configure the IMP backends.php or as I recall backends.local.php to override the original settings file. Dunno about the speed as I have never enjoyed that level of use. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Horde-4
Am running FBSD-7.x and IMAP WU + sendmail-8.4.x + MySQL-5.0.x Sorry to bother the list with this but have searched and read everything google horde.org has to offer but I find no solution to an important issue I'm having with the installation of horde4. Although the port maintainer won't have the broken port for horde4, I have successfully installed Horde4 plus several common apps including, IMP app for an IMAP mail service. The problem is while I have a good install with the Horde4 base frame and the apps, I can login to HORDE just fine, but when going to the IMAP app, my login fails. From what I understand, the same Horde login should work for the IMP. Reading the login scripts indicates that as well. I'm using MySQL (SQL) as the backend for everything that needs a backend so I may be able to handle a large number of users. I've installed Washington Uni (WU) Imap server and it's listening on the expected port 143. I've worked on this issue over days and weeks, including reinstalls but cannot login to IMP for the mail services. In Horde, I can add users just fine and they appear in the MySQL horde database properly. I have a couple designated as admins. If anyone on this list uses horde and maybe knows what I have missed I would appreciate any possible tips to check on. Does IMP not use the same login as I assUme? Thanks for any ideas (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Horde-4
At 11:38 AM 7/20/2011 -0800, Beech Rintoul wrote: On Wednesday 20 July 2011 11:22:44 Beech Rintoul wrote: On Wednesday 20 July 2011 09:47:33 Jack L. Stone wrote: Am running FBSD-7.x and IMAP WU + sendmail-8.4.x + MySQL-5.0.x Sorry to bother the list with this but have searched and read everything google horde.org has to offer but I find no solution to an important issue I'm having with the installation of horde4. Although the port maintainer won't have the broken port for horde4, I have successfully installed Horde4 plus several common apps including, IMP app for an IMAP mail service. All of the horde4 ports including webmail and groupware have been rewritten and comitted. AFAIK everything is working properly. You may be missing some libs or modules, so I would suggest a reinstall. The problem is while I have a good install with the Horde4 base frame and the apps, I can login to HORDE just fine, but when going to the IMAP app, my login fails. From what I understand, the same Horde login should work for the IMP. Reading the login scripts indicates that as well. I'm using MySQL (SQL) as the backend for everything that needs a backend so I may be able to handle a large number of users. I've installed Washington Uni (WU) Imap server and it's listening on the expected port 143. I've worked on this issue over days and weeks, including reinstalls but cannot login to IMP for the mail services. In Horde, I can add users just fine and they appear in the MySQL horde database properly. I have a couple designated as admins. If anyone on this list uses horde and maybe knows what I have missed I would appreciate any possible tips to check on. Does IMP not use the same login as I assUme? Not necessarily. It all depends on your auth backend configs for both horde and the apps. If you're using IMAP auth, you should be able to login to imp as any regular user on the mail account. It's common to use IMAP auth as your general auth backend, that way your users will end up in the right account. You also need either SASL auth or Dovecot auth setup along with your auth backend. IMAP SSL is required, imp will NOT work with IMAP plain login unless you hack the configs by hand (bad idea). Finally, uncheck the disable horde test script box on the main horde configs under the general tab, save your configs and navigate to horde/test.php, there is a section near the bottom for testing your IMAP login. If that isn't successful, you're not going to get much further. If the option doesn't exist at all, you don't have all the modules you need. It will also give you an idea about the state of everything else. Hope this gets you pointed in the right direction :-) Beech I forgot to say use SASL or Dovecot auth if you also want to access and remotely use your sendmail system outside of your horde portal. Horde imp shouldn't have any problems out of the box if your IMAP is otherwise working properly. Beech -- Good help! Should I use Dovecot or Dovecot2 ?? Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Horde webmail
At 10:35 AM 6/30/2011 -0800, Beech Rintoul wrote: On Thursday 30 June 2011 09:19:33 Jack L. Stone wrote: Has anyone had any luck lately with installation and use of Horde -- either v-3.3 or ver-4 ?? I've tried for days to get the 3.3 version (with apps IMP, INGO Tuba) to work and noted that the ports say that horde4 is broken. I've googled many times and tried some examples from there, but most appear pretty old and not running with php5.3x. Is it just that Horde doesn't work with fbsd-7.x and php5.3x or is it me? I am in the process of rewriting all the horde4 ports, as this is a very large project involving over 50 modules and libs it will take some time. Horde4 does work very well with FreeBSD and you can do a pear install if you really need it now. Do keep in mind that horde4 is not backwards compatible with 3.x and the update procedures are not trivial. That being said, this should get you started: http://www.horde.org/apps/webmail/docs/INSTALL Beech Hi Beech: Since I've never gotten horde 3 to fully work yet, I suppose I could give horde4 a shot. I liked its potention and thought it would be useful to some of our users. I re-installed horde-3 3 or 4 times and always got stopped when it would only loads the Welcome to Horde page requesting a login. I followed the instructions carefully AFAIK. Login failed every time even though MySQL backend and the horde conf.php files contained the login. You certainly have a lot of work in front of you on a rewrite of the ports and look forward to when finished. Good luck! (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 06:49 PM 6/17/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: [snip out a lot] What did you fellows do about this issue that worked best for you assuming y'all had vhosts and similar stuff to worry about? Me I just bit the bullet and went with the new locations as they were installed as defaults. I moved my content to the location. None of my content cared about the underlying file system path, however there is code that does. When faced with this most of the time there is some configuration utility that can be run to make changes, with the actual data you enter being stored in a database backend. This then becomes a choice of is it easier to simply modify the docroot in the .conf files?, if you have this situation. -Mike Just a follow-up on my own experience with upgrade to apache22 and its change of path. I was just overthinking it. Simply changing the doc root in the main httpd conf to match my exising one worked beautifully with any concern about moving content around and breaking the system path for scripts and things. By modifying the www/apache22/data back to www/data left everything as was. My production servers are now updated this way. My web serving was only down for a few minutes as I left apache2 running in memory. I simply uploaded copies of all of my tested .conf files from the test server before installing apache22. Also first made the minor changes needed to the main conf and vhost.conf. Killed the apache2 and voila! Thanks for your version of the process, but thought I'd post mine here too just in case there is anyone left on the planet besides me that hasn't already upgraded to apache22. Truly it doesn't pay to get too far behind on upgrades (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 06:49 PM 6/17/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: [snip] Oh, forgot that I did have to struggle apache22 still wanted to install db42 instead of my db46 and caused the apache22 build to stop. After a bit of looking, the problem wasn't with the apache22 Makefile but with the apr1 Makefile. Way down it called for db42+ which I suppose meant at LEAST db42. Instead apache22 saw it as db42 literally. A change in the apr1 Makefile to db46 specifically fixed things. This caused my earlier problems I mentioned, but I didn't yet know why. (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 04:12 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: At 12:56 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: snip out a lot Sorry to return with one more question about upgrading to apache22 from apache2. A note of concern was that apache22 changes the path to the document root by inserting ../www/apache22/data versus the previous ../www/data doc root. Of course my vhosts and a bunch of other things of importance now reside within the ../www path. I suppose I can change the doc root within the apache22 config file(s) but I can forsee some possible breakage in things on a production server when before, when moving from apache-1.3 to apache2, web things were put in the same path and without any modifications needed. I suppose this only affects the main host server stuff and things left in the ../www placement will still work as before according to the present setup. In examining the apache22 Makefile I see some places that the path might be changed, but don't know if that is the best idea vs maybe changing the doc root in apache22 config. A 3rd choice is to move stuff contained in the ../www/cgi-bin phpMyAdmin ...etc things that the main host needs to find in the new location. What did you fellows do about this issue that worked best for you assuming y'all had vhosts and similar stuff to worry about? Methinks this is my last question before moving to production servers. Appreciate your further comments (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 04:12 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: At 12:56 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: snip out a lot Sorry to return with one more question about upgrading to apache22 from apache2. A note of concern was that apache22 changes the path to the document root by inserting ../www/apache22/data versus the previous ../www/data doc root. Of course my vhosts and a bunch of other things of importance now reside within the ../www path. I suppose I can change the doc root within the apache22 config file(s) but I can forsee some possible breakage in things on a production server when before, when moving from apache-1.3 to apache2, web things were put in the same path and without any modifications needed. I suppose this only affects the main host server stuff and things left in the ../www placement will still work as before according to the present setup. In examining the apache22 Makefile I see some places that the path might be changed, but don't know if that is the best idea vs maybe changing the doc root in apache22 config. A 3rd choice is to move stuff contained in the ../www/cgi-bin phpMyAdmin ...etc things that the main host needs to find in the new location. What did you fellows do about this issue that worked best for you assuming y'all had vhosts and similar stuff to worry about? Methinks this is my last question before moving to production servers. Appreciate your further comments (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 04:12 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: At 12:56 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: snip out a lot Sorry to return with one more question about upgrading to apache22 from apache2. A note of concern was that apache22 changes the path to the document root by inserting ../www/apache22/data versus the previous ../www/data doc root. Of course my vhosts and a bunch of other things of importance now reside within the ../www path. I suppose I can change the doc root within the apache22 config file(s) but I can forsee some possible breakage in things on a production server when before, when moving from apache-1.3 to apache2, web things were put in the same path and without any modifications needed. I suppose this only affects the main host server stuff and things left in the ../www placement will still work as before according to the present setup. In examining the apache22 Makefile I see some places that the path might be changed, but don't know if that is the best idea vs maybe changing the doc root in apache22 config. A 3rd choice is to move stuff contained in the ../www/cgi-bin phpMyAdmin ...etc things that the main host needs to find in the new location. What did you fellows do about this issue that worked best for you assuming y'all had vhosts and similar stuff to worry about? Methinks this is my last question before moving to production servers. Appreciate your further comments (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 07:26 PM 6/17/2011 -0500, Jack L. Stone wrote: OUCH! I hipe my last email really didn't go out 3 times. Mail server wasn't resolving properly, so had tried different ones. Sorry (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 04:12 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: At 12:56 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: snip out a lot Sorry to return with one more question about upgrading to apache22 from apache2. A note of concern was that apache22 changes the path to the document root by inserting ../www/apache22/data versus the previous ../www/data doc root. Of course my vhosts and a bunch of other things of importance now reside within the ../www path. I suppose I can change the doc root within the apache22 config file(s) but I can forsee some possible breakage in things on a production server when before, when moving from apache-1.3 to apache2, web things were put in the same path and without any modifications needed. I suppose this only affects the main host server stuff and things left in the ../www placement will still work as before according to the present setup. In examining the apache22 Makefile I see some places that the path might be changed, but don't know if that is the best idea vs maybe changing the doc root in apache22 config. A 3rd choice is to move stuff contained in the ../www/cgi-bin phpMyAdmin ...etc things that the main host needs to find in the new location. What did you fellows do about this issue that worked best for you assuming y'all had vhosts and similar stuff to worry about? Methinks this is my last question before moving to production servers. Appreciate your further comments (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 03:41 PM 6/16/2011 +0300, Reko Turja wrote: I have very few uses for sqlite3 but I still have them. And PDO? Never seen anything run it. Some pretty big projects including Drupal CMS are moving to PDO. I reckon that having other options without reinventing the wheel, than one certain Oracle controlled DB-backend is starting to gain momentum. Just as a sidenote, PHP 5.3.6 so far seems to be unaffected by extension loading order, but looks like that any upgrade of apache, apr, php etc. means that every dependent module downstream has to be recompiled as well. -Reko With upgrade to php5-5.3.6 is the first time ever (many years) I've had any problem with php. The order of the extensions never came up as an issue, nor did it once I found the extensions causing the seg faults and core dumps. Ryan's suggestion of commenting out all of the extensions and then adding back 1 by 1 enabled me to find the offenders quickly. The 2 sqlite extensions caused the problem for me there also was a 3rd one and I removed them all as I don't use that database. For ports, I usually go with the defaults on options unless I KNOW what they do or don't do. Have used the same options and didn't know why the sqlites were added this time. That further cause an install of the core sqlite port. Without removing it, I couldn't delete the inclusion of the sqlite extensions. Now, I wrestling with the apache2 and apr0 issue. The apache port Makefile wants apr0, but it now has vulnablilities. Ports UPDATING says to do this with apr: - remove apache2 and then: portupgrade -f -o devel/apr1 devel/apr ...and then reinstall apache2. That didn't work because the Makefile in apache still wants apr0. I changed the Makefile to apr1 but the build failed after it looked again for that apr0 later in the build. I didn't find another call for apr0. What have others done for this? This is about the last issue I know about after the major upgrade of the ports. Thanks for all the help so far -- just any other help on the apr thingy would be nice. Yes, I have googled and always do before going to the trough here. Thanks again! (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 06:18 PM 6/16/2011 +0300, Reko Turja wrote: From: Michael Powell nightre...@hotmail.com pulls in a few more dependencies than I'd really like, especially the apr1 (now named apr-ipv6-devrandom-gdbm-db42-1.4.5.1.3.12) port installing The name depends completely on the knobs you have used with portbuild - my apr is: apr-ipv6-devrandom-db43-pgsql84-sqlite3-1.4.5.1.3.12 At any rate take a gander at /usr/ports/Mk/bsd.apache.mk for more info. But if it were me instead of fighting I'd just go with the apache22 default Yeah - the configuration differences are pretty minimal and even the 2.0 port makefile states now: DEPRECATED= will be unsupported by ASF when 2.4.0 is release, migrate to 2.2.x+ now -Reko Thanks to both you and Mike for the advice. I've already installed apache22 on a test server and trying to allocate time to it as and when. Looks like this apr thing is going to raise the priority. Also, I see the sqlite3 is tacked on the apr you have. I only have: apr-ipv6-devrandom-gdbm-db46-mysql50-1.4.5.1.3.12 What are all of those conf files in the apache22/extra directory? Any includes needed there besides perhaps the ssl if used? Thanks guys! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 12:56 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: -Mike Mike, very useful info. I had surmised about the extra .configs to reduce the size of the main config file. I had already started doing that with apache2. Have been studying the files and comparing to my present httpd.conf and do see some changes that I suppose will emerge should they be needed. Some lines/sections just have been moved around. Again, thanks for taking the time with the info. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 12:56 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: The no-accf.conf under includes is for if you do not desire to use either of the AcceptFilter choices, one for httpd the other for SSL traffic. These can be loaded as kernel modules in /boot/loader.conf as such: accf_http_load=YES accf_data_load=YES Mike Mike: Got the apache22 configured on the test server with one exception being the error I keep getting regarding this one: [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter I first loaded it in the kernel via kldload: # kldload accf_http The first apache22 restart didn't have the error, but returned on other restarts. Can't seem to unload the line from the kernel and add to the boot loader.conf. What did I do wrong? Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 10:57 PM 6/16/2011 +0300, Reko Turja wrote: The no-accf.conf under includes is for if you do not desire to use either of the AcceptFilter choices, one for httpd the other for SSL traffic. These can be loaded as kernel modules in /boot/loader.conf as such: accf_http_load=YES accf_data_load=YES You can also build the modules into kernel itself with: #Apache kernel modules options ACCEPT_FILTER_HTTP options ACCEPT_FILTER_DATA I reckon that the thing you are missing is kernel rebuild and reinstall. -Reko Hi, Reko: Was hoping to avoid that, but really no biggie. Thanks! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Another PHP5 problem
I just finished some major upgrades/updates to a server, including php5-5.3.6 and apache2. Now I keep getting Segmentation faults and core dumps whenever apache2 rolls over its logs and does a restart. Here's the error. Does nyone have an idea of what's happening to cause this?: PHP 5.3.6 with Suhosin-Patch (cli) (built: Jun 4 2011 18:04:14) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with the ionCube PHP Loader v3.3.16, Copyright (c) 2002-2010, by ionCube Ltd. Segmentation fault (core dumped) Thanks for any hints Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 03:33 PM 6/15/2011 +0100, Matthew Seaman wrote: On 15/06/2011 15:04, Jack L. Stone wrote: PHP 5.3.6 with Suhosin-Patch (cli) (built: Jun 4 2011 18:04:14) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with the ionCube PHP Loader v3.3.16, Copyright (c) 2002-2010, by ionCube Ltd. Segmentation fault (core dumped) Check the mailing list archives for very many discussions on the effect of having the extensions listed in ${PREFIX}/etc/php/extensions.ini in the wrong order. Cheers, Matthew Matthew: Thanks for that suggestion but couldn't find the numerous discussions about the wrong order of extensions. Using google I did find one post and a list that poster used. I tried following his list with the sames ones I had plus some 6-7 he didn't have. Still get the core dump. Can you suggest the key word to search in the list archives. I used php5 extensions and php5 core dump which brought up some discussions which didn't include the order discussions though. I cannot do without ioncube as another post mentioned. Thanks to all and any other ideas. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 01:50 PM 6/15/2011 -0500, Mark Felder wrote: On Wed, 15 Jun 2011 13:40:15 -0500, Jack L. Stone ja...@sage-american.com wrote: I cannot do without ioncube as another post mentioned. I understand your need for ioncube, but replicate the problem to another non-production system and remove ioncube to see whether or not it is the cause. This is something we had to do and ultimately we told the only customer using ioncube they couldn't use it on our infrastructure anymore because it was a proprietary extension that causes issues. Again, before digging too deeply I strongly urge you repeat the test with ioncube extension disabled so you can rule that out immediately or else you'll be running around in circles for ages trying to figure out what the cause is. It's unfortunate that people think they need to obfuscate their code and use these silly workarounds. Regards, Mark I cannot do without ioncube as another post mentioned. I understand your need for ioncube, but replicate the problem to another non-production system and remove ioncube to see whether or not it is the cause. This is something we had to do and ultimately we told the only customer using ioncube they couldn't use it on our infrastructure anymore because it was a proprietary extension that causes issues. Again, before digging too deeply I strongly urge you repeat the test with ioncube extension disabled so you can rule that out immediately or else you'll be running around in circles for ages trying to figure out what the cause is. It's unfortunate that people think they need to obfuscate their code and use these silly workarounds. Regards, Mark Mark: Thanks for the suggestion. I tried a disable of the ioncube and still get the php seg fault/core dump. This one is maddening... Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 02:50 PM 6/15/2011 -0500, Ryan Coleman wrote: So I've seen that you haven't had a lot of success with this... can you post your extensions.ini file contents? -- Ryan Here are my extensions after doing some shuffling according to ideas on google: extension=session.so extension=simplexml.so extension=ctype.so extension=apc.so extension=ftp.so extension=mbstring.so extension=tokenizer.so extension=filter.so extension=mcrypt.so extension=xmlwriter.so extension=gd.so extension=iconv.so extension=zlib.so extension=curl.so extension=bz2.so extension=pdf.so extension=openssl.so extension=dom.so extension=hash.so extension=xmlreader.so extension=sqlite.so extension=pdo.so extension=mysql.so extension=sockets.so extension=xml.so extension=sqlite3.so extension=json.so extension=zip.so extension=posix.so extension=snmp.so Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 03:21 PM 6/15/2011 -0500, Ryan Coleman wrote: And these were all built from the ports, yes? Yes, all built from ports. (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 04:04 PM 6/15/2011 -0500, Ryan Coleman wrote: My solution for these issues is usually pretty easy: Disable all extensions (with a ; before the line) and then re-enable batches until it dies on you and then go through line-by-line to see which one did it. Should take about 5 minutes, tops, to run through the entire list. Sounds like a reasonable approach. Thanks, (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 04:04 PM 6/15/2011 -0500, Ryan Coleman wrote: My solution for these issues is usually pretty easy: Disable all extensions (with a ; before the line) and then re-enable batches until it dies on you and then go through line-by-line to see which one did it. Should take about 5 minutes, tops, to run through the entire list. Was wondering if it appeared an extension might be missing that would be expected? Have quite a few php scripts. What about the gettext one? I went with the defaults plus a couple I knew was needed like mysql and FTP. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 06:35 PM 6/15/2011 -0500, Ryan Coleman wrote: That wouldn't likely cause a segfault, but you could use your apache logs to see if there's something in the last file before the segfault occurs... but that could be a wild goose chase. On Jun 15, 2011, at 5:57 PM, Jack L. Stone wrote: At 04:04 PM 6/15/2011 -0500, Ryan Coleman wrote: My solution for these issues is usually pretty easy: Disable all extensions (with a ; before the line) and then re-enable batches until it dies on you and then go through line-by-line to see which one did it. Should take about 5 minutes, tops, to run through the entire list. Ryan: Found it! 2 extensions were the problem: # extension=sqlite3.so # extension=pdo_sqlite.so Don't even know why they got in there (except I checked the boxes in make config) Thanks for the great idea! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Another PHP5 problem
At 08:14 PM 6/15/2011 -0500, Ryan Coleman wrote: I have very few uses for sqlite3 but I still have them. And PDO? Never seen anything run it. Just because it is on by default 1) doesn't mean it's good for you and 2) the port connected to it is functioning properly. Wierd! Told extensions to build without: extension=sqlite3.so extension=sqlite.so extension=pdo_sqlite.so But, built them anyway. Ran make config and then also checked the options file and it showed the WITHOUTS_ okay, but they were built anyway. Still have to comment out those sqlites. (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sorry. Numpty alert! FreeBSD Jails... Help?
- Original Message - From: Dave d...@g8kbv.demon.co.uk To: freebsd-questions@freebsd.org Sent: Tuesday, June 07, 2011 8:53 PM Subject: Sorry. Numpty alert! FreeBSD Jails... Help? Hi All. Total frustration here. Before I incinerate the luckless box and get my coat. For whatever reason, I can't get my head round how Exactly to create and use a jail, for a small webserver (Hiawatha) on FreeBSD V8.x First compile the complete system. (kernel and world) Then install ezjail form the ports Then edit ezjail.conf in /usr/local/etc enable ezjail in /etc/rc.conf Then creating the base system: ezjail-admin update -i ezjail-admin update -P after this you can create a jail using: ezjail-admin create hostname.domain.net ip_address_of_jail you can logon to your jail using: ezjail-admin console hostname.domain.net It's quite easy Grtz Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeBSD 7.4-STABLE server behind an isa server
I am setting up a FreeBSD 7.4 server behind an ISA server. The purpose of this server is to serve as an intranet web server. But I would like to update the ports of course. I have a login and password for the isa server. I would like to know how to implement this so that I can usr portupgrade to update the ports and to use make install excuses for the bad english thanks Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: find and remove ?
At 06:59 PM 5/14/2011 -0400, Eitan Adler wrote: I'm finally getting around to removing any remnants of frontpage. There are 1000s of _vti_* directories across several domains and need to clean those out. What's the best way to run a short script or command set to find and delete those? man 1 find find /path/to/start/deleting -type d -name _vti_\* -delete run the command without -delete to see what will be removed. -- Eitan Adler Thanks, Eitan, but it didn't delete. What did I do wrong? Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: find and remove ?
At 11:32 AM 5/15/2011 -0400, Eitan Adler wrote: Thanks, Eitan, but it didn't delete. What did I do wrong? I would need to see what command you typed :-) Go to the top directory you start deleting from and type find . -name _vti_\* This will print out what it thinks should be deleted. If you don't see the directories you expect here then please be more specific about what should be deleted. If you do see the directories you expect and running the find command with -delete doesn't work then we could try and debug from that point. -- Eitan Adler The comamnd: #find /path/to/start/deleting -type d -name _vti_\* worked fine to give the listing of what to delete, but when just adding the -delete at the end didn't delete, just ran the listing again. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: find and remove ?
At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote: The comamnd: #find /path/to/start/deleting -type d -name _vti_\* worked fine to give the listing of what to delete, but when just adding the -delete at the end didn't delete, just ran the listing again. I forgot that adding the -type d won't let it delete non-empty directories. Try running it like: find /path/to/start/deleting -name _vti_\* -delete (^_^) Nope. Thate didn't delete either. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: find and remove ?
At 07:50 PM 5/15/2011 +0200, Rolf Nielsen wrote: 2011-05-15 19:41, Jack L. Stone skrev: At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote: The comamnd: #find /path/to/start/deleting -type d -name _vti_\* worked fine to give the listing of what to delete, but when just adding the -delete at the end didn't delete, just ran the listing again. I forgot that adding the -type d won't let it delete non-empty directories. Try running it like: find /path/to/start/deleting -name _vti_\* -delete (^_^) Nope. Thate didn't delete either. Jack find /path/to/start/deleting -name _vti_\* -exec rm -Rd {} \; ___ That worked! Thanks! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: find and remove ?
At 08:05 PM 5/15/2011 +0200, Rolf Nielsen wrote: 2011-05-15 19:50, Rolf Nielsen skrev: 2011-05-15 19:41, Jack L. Stone skrev: At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote: The comamnd: #find /path/to/start/deleting -type d -name _vti_\* worked fine to give the listing of what to delete, but when just adding the -delete at the end didn't delete, just ran the listing again. I forgot that adding the -type d won't let it delete non-empty directories. Try running it like: find /path/to/start/deleting -name _vti_\* -delete (^_^) Nope. Thate didn't delete either. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org find /path/to/start/deleting -name _vti_\* -exec rm -Rd {} \; Pardon my answering my own post, but after reading the find manpage, I think perhaps find -d /path/to/start/deleting -type d -name _vti_\* -exec rm -Rd {} \; would be better. The -d option makes find visit the contents of a directory before the directory itself. The one without the -d option deletes the topmost directory it finds and then tries to traverse downwards, which of course causes a warning. It still works though. Thanks for the follow-up. I'll try it too. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
find and remove ?
Folks: Am running FBSD-7.x I'm finally getting around to removing any remnants of frontpage. There are 1000s of _vti_* directories across several domains and need to clean those out. What's the best way to run a short script or command set to find and delete those? Appreciate any suggestions. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Limitting SSH access
I have a question concerning SSH op a FreeBSD 7.4-STABLE server. Is it possible to limit the SSH access? I want t o restrict a user to his own home directory. So that if he connects to the server with SSH he only can go to his own home dir. Also the same for sftp... Thanks for your time Jack Raats ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: script help
At 12:41 AM 2/15/2011 -0800, per...@pluto.rain.com wrote: Jack L. Stone ja...@sage-american.com wrote: # find all of the same filenames (copyright.htm) and then replace the year 2010 with 2011 in each file. Once I have a working script, I should be able to add it as a cron job to run on the first day of each new year. Before actually doing this, you might want to consult a copyright lawyer. Seems to me that merely claiming a more recent copyright date, having made no substantive change to the work for which the copyright is claimed, could be construed as a fraudulent claim. ___ Wow! You wandered way off the trail. I own the tech magazine I founded 23 years ago and we publish monthly to 214 countries. I hav also practiced law for my companies for nearly 40 years, so quit worrying about that stuff. I just need script help, not other than that. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: script help
At 02:53 PM 2/15/2011 +, RW wrote: On Tue, 15 Feb 2011 12:57:12 +0300 Peter Andreev andreev.pe...@gmail.com wrote: Use of xargs on many files will be much faster than find...exec construction This is a surprisingly common myth. exec can pass single or multiple arguments according to whether you use ; or + find / -type f -name copyright.htm | xargs sed -i .bak -e 's/2010/2011/g' This is much less safe on FreeBSD than it is with the GNU versions because print0 is required for paths with spaces. find ... -print0 | xargs -0 ... Forgot to mention: if the string to replace on the text line of the files includes a connecting dash, like 1988-2010, I suppose rather than using just the 2010/2011 perhaps should be 1988-2010/1988-2011 Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
script help
Hello folks: No doubt this will be easy for those with scritping abilities. I have a gazillion files by the same name and each contains the same line requiring the same change. But the problem is that they are in many different directories on a server with numerous domains. While I could handle the change using a single directory within my abilities, I'm unsure how to do a search and replace throughout the many domains and their directories. Don't want to mess up. Here's what I'm trying to do: # find all of the same filenames (copyright.htm) and then replace the year 2010 with 2011 in each file. Once I have a working script, I should be able to add it as a cron job to run on the first day of each new year. Any help appreciated. Thanks! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: I have a question?
If you install wine, yes. On Sun, Feb 13, 2011 at 5:35 PM, Dieter dschoen...@frontier.com wrote: Can you use windows programs in freebsd? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: I have a question?
On Sun, Feb 13, 2011 at 9:13 PM, Outback Dingo outbackdi...@gmail.com wrote: On Mon, Feb 14, 2011 at 12:09 AM, Jack L. xxjack1...@gmail.com wrote: If you install wine, yes. If all else fails, you can always install virtualbox and install windows to run windows apps on freebsd. That works great for my needs :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Recording from sound card
On Thu, Feb 10, 2011 at 7:17 PM, Robert Ames roberta...@hotmail.com wrote: I'm having problems trying to record from a sound card under 8.1-RELEASE. The last time I tried this was many releases ago, possibly 4.x-RELEASE. Back then I would do something like cat /dev/dsp file but now when I try it I just end up with a 0 byte file. I'm using a different sound card than before so maybe that has something to do with it. Or possibly I just don't know which device to use. Playing sounds using cat file.wav /dev/dsp0.0 works fine, but I can't get recording to work. Does anyone have any suggestions? Thanks. $ cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386) Installed devices: pcm0: Creative CT5880-C (play/rec) default $ sysctl -a | egrep '(snd|pcm|sound)' hw.snd.vpc_reset: 0 hw.snd.vpc_0db: 45 hw.snd.vpc_autoreset: 1 hw.snd.latency_profile: 1 hw.snd.latency: 5 hw.snd.report_soft_matrix: 1 hw.snd.report_soft_formats: 1 hw.snd.compat_linux_mmap: 0 hw.snd.feeder_eq_exact_rate: 0 hw.snd.feeder_eq_presets: PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000 hw.snd.feeder_rate_quality: 1 hw.snd.feeder_rate_round: 25 hw.snd.feeder_rate_max: 2016000 hw.snd.feeder_rate_min: 1 hw.snd.feeder_rate_polyphase_max: 183040 hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97 hw.snd.vpc_mixer_bypass: 1 hw.snd.verbose: 0 hw.snd.maxautovchans: 16 hw.snd.default_unit: 0 hw.snd.version: 2009061500/i386 hw.snd.default_auto: 0 dev.pcm.0.%desc: Creative CT5880-C dev.pcm.0.%driver: pcm dev.pcm.0.%location: slot=9 function=0 dev.pcm.0.%pnpinfo: vendor=0x1274 device=0x5880 subvendor=0x1274 subdevice=0x2003 class=0x040100 dev.pcm.0.%parent: pci0 dev.pcm.0.eapd: 1 dev.pcm.0.play.vchans: 1 dev.pcm.0.play.vchanmode: fixed dev.pcm.0.play.vchanrate: 48000 dev.pcm.0.play.vchanformat: s16le:2.0 dev.pcm.0.rec.vchans: 1 dev.pcm.0.rec.vchanmode: fixed dev.pcm.0.rec.vchanrate: 48000 dev.pcm.0.rec.vchanformat: s16le:2.0 dev.pcm.0.buffersize: 4096 dev.pcm.0.bitperfect: 0 dev.pcm.0.spdif_enabled: 0 dev.pcm.0.latency_timer: 32 dev.pcm.0.polling: 0 $ mixer Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 Mixer speaker is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 73:73 Mixer cd is currently set to 75:75 Mixer rec is currently set to 75:75 Mixer igain is currently set to 0:0 Mixer ogain is currently set to 50:50 Mixer line1 is currently set to 75:75 Mixer phin is currently set to 0:0 Mixer phout is currently set to 0:0 Mixer video is currently set to 75:75 Recording source: mic What does ls /dev/dsp* yield? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: zoneedit.com
At 11:26 AM 1.14.2011 -0500, Mike. wrote: On 1/13/2011 at 5:21 PM Al Plant wrote: |Jack L. Stone wrote: | I have used zoneedit.com's DNS zone service for about 9 years and it | handles a number of static IPs for my companies. | | Now, suddenly they have created a new platform and migrating accounts | from the legacy platform to the new. The legacy site doen't work anymore, | just confirms account and redirects to the new site. | |[snip] | |Aloha Jack, | |Yes, I use Zone Edit. | | | |I just had to email them at Support: supp...@zoneedit.com |and Paul T. sent me this link to the legacy site as they havent migrated |all the DNS. http://www.zoneedit.com/auth/ = I wish zoneedit were as responsive for me. I sent in an email to support yesterday and all I've gotten back so far was the robot acknowledgement. Based upon this thread, I don't find that encouraging. I am locked out and I need access to the account so I can make a DNS change. My experience was also maddening and for several days, all I got was that ...we'll get back to you within 24 hours but they didn't respond at all for several days. They had sent me a link that was supposed to reset my password, but it returned an error as well. Thanks to this list, Dan of zoneedit responded and fixed things. I got in immediately thereafter using a fresh link to reset my password to the new platform. Glad Dan monitors this list. Alas, though now I'm getting an avalance of more robot responses to my many earlier cries for help. It makes me nervous that another on staffer may mess up things -- so, I keep logging in. All is still okay on the new platform so far. While the new platform looks a bit more flashy can't say I like it any better (yet). Another response to my post was from Pierre who said: ...The legacy platform seems to still work for me: http://legacy.zoneedit.com I had sent some money though to have free service for my existing domains forever Apparently Pierre's account just hasn't been migrated to the new platform and the old legacy sit still works. Mine had been migrated to the new but apparently with errors as it didn't recognize my email address which has been on the old site for 9+ years. The pay ahead didn't have anything do do with it. I've also carried a sizable advance paid balance of unused credits. Mike, maybe Dan will help you too. Also, perhaps my experience will be useful for others. For almost a decade, this is the first time I've had a problem, while I was alarmed and fummed at the lack of response this time, all is well again for me. I guess they are having growing pains with the move to the new platform??? All the best, Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
zoneedit.com
I have used zoneedit.com's DNS zone service for about 9 years and it handles a number of static IPs for my companies. Now, suddenly they have created a new platform and migrating accounts from the legacy platform to the new. The legacy site doen't work anymore, just confirms account and redirects to the new site. Are there any members here using zoneedit.com and having trouble with their login? I cannot get my login to work and they won't solve the problem. They say they have reset my password but it doesn't work. The legacy web site says my account has been migrated, yet the login doesn't work. The legacy site responds to my normal email address used for the entire 9 years, but the new platform only responds with an error that the email doesn't exist. The service still works, but no access to manage my zones. (Yes, I copy/paste the login so no typos.) I've sent numerous request for help since Jan 12th but only get the robot response with the same information about responding in 24 hours -- but, they never respond. Now, here I sit without access to numerous domain zones I need to edit with any way to access them. This is hurting my biz. So, anyone with this issue out there or know of an alternative company to replace zoneedit? Thanks for any response (no robots pls -- heh, heh) (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: zoneedit.com
TOP-POST I am pleased to say this has been resolved, thans to Dan at Zoneedit. All the best, Jack At 10:20 AM 1.13.2011 -0600, Jack L. Stone wrote: I have used zoneedit.com's DNS zone service for about 9 years and it handles a number of static IPs for my companies. Now, suddenly they have created a new platform and migrating accounts from the legacy platform to the new. The legacy site doen't work anymore, just confirms account and redirects to the new site. Are there any members here using zoneedit.com and having trouble with their login? I cannot get my login to work and they won't solve the problem. They say they have reset my password but it doesn't work. The legacy web site says my account has been migrated, yet the login doesn't work. The legacy site responds to my normal email address used for the entire 9 years, but the new platform only responds with an error that the email doesn't exist. The service still works, but no access to manage my zones. (Yes, I copy/paste the login so no typos.) I've sent numerous request for help since Jan 12th but only get the robot response with the same information about responding in 24 hours -- but, they never respond. Now, here I sit without access to numerous domain zones I need to edit with any way to access them. This is hurting my biz. So, anyone with this issue out there or know of an alternative company to replace zoneedit? Thanks for any response (no robots pls -- heh, heh) (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Strange error
I have a strange error. Normally when you compile the complete system, the first line of /etc/motd is being adjusted telling you the time and version you just compiled. On one server this is not being done. What is the problem. Which programm adjust the motd file when compiling? Thanks Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Memory leak and swapfile
It looks like that there may be a memory leak of my swap space with one of the processes that is running. Big question: How can I determine which process is responsible. Any suggestions? Thanks Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org