Need help with - FreeBSD 7 FTP Config for Drupal Development
Hello, Today I did a clean install of FreeBSD 7. Installed and configured: Apache: 2.2.9 MySQL Server: 5.0.67 PHP: 5.2.6 Drupal: 6.5 Everything is working with the default install and I can browse my server from other computers. I am able to upload new modules to drupal/sites/all/modules/{module_name} However I have a problem when uploaded themes to drupal/sites/all/themes/{theme_name} for some reason the server gets an access denied error. [Note: this happens when I ftp from Vista and upload.] Seems that I have not set up the FTP correctly. For FTP I am using: Pure - FTPD server 1.0.21 Basicly I need to know how to configure the ftp so when I upload a file to the theme directory the website can still access the directory. drupal is installed at: /usr/local/www/drupal6 permissions: drwxr-xr-x 9 root www 512 drupal6 /sites/all/modules drwxr-xr-x 4 root www 512 modules /sites/all/themes drwxr-xr-x 2 root www 512 themes I have even tried changing the owner for the drupal6 folder and all sub folders/files to the user I am logging in as but that still did not solve the problem. Here is what exactly happens. When I upload a new theme into the correct directory then log into drupal the theme is seen in the list of available themes, so that means the server is seeing the files. Once I activate the theme my web page goes completely white. If I then delete the new theme folder, the web page shows up again stating that the theme.inc file failed because of access denied. It is strange that with the same process modules work with no problem. Any suggestions? I am still fairly new to FreeBSD maybe it is something simple with permissions that I have overlooked. Regards, -- Bruce Wade Webmaster - http://www.warplydesigned.com - Game Development http://www.kaisingthong.com - Muay Thai Kick Boxing ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mounting an MP3 player?
Hello, Thank you for your answer. Frank Shute wrote: On Sat, Oct 18, 2008 at 11:32:37AM +0200, Johannes-Maria Kaltenbach wrote: Hello, can anyone tell me how to mount an MP3 player (usb)? I seem to be too stupid to figure it out by myself. I thought it would be as easy as mounting a usb memory stick which I can mount with a device file of the form /dev/da#s#, e. g. /dev/da0s1, which is present after connecting the memory stick, but not if connecting the player instead; in this case I've got only /dev/da1 to /dev/da4. I tried all these and also /dev/usb, /dev/usb1, ..., /dev/usb4, but that doesn't work (as I expected but tried nevertheless). If I connect the player to the usb bus I get the following in /var/log/messages: | kernel: umass1: TrekStor TrekStor, rev 2.00/1.00, addr 2 It should say more after that. Can you post it? no; it's only this one line at the end of /var/log/messages, but if I type dmesg I find | umass1: TrekStor TrekStor, rev 2.00/1.00, addr 2 | (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 | (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error | (da1:umass-sim0:0:0:0): SCSI Status: Check Condition | (da1:umass-sim0:0:0:0): NOT READY csi:0,aa,55,40 asc:3a,0 | (da1:umass-sim0:0:0:0): Medium not present | (da1:umass-sim0:0:0:0): Unretryable error | Opened disk da1 - 6 | (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 | (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error | (da2:umass-sim0:0:0:1): SCSI Status: Check Condition | (da2:umass-sim0:0:0:1): NOT READY csi:0,aa,55,40 asc:3a,0 | (da2:umass-sim0:0:0:1): Medium not present | (da2:umass-sim0:0:0:1): Unretryable error | Opened disk da2 - 6 | (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 | (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error | (da1:umass-sim0:0:0:0): SCSI Status: Check Condition | (da1:umass-sim0:0:0:0): NOT READY csi:0,aa,55,40 asc:3a,0 | (da1:umass-sim0:0:0:0): Medium not present | (da1:umass-sim0:0:0:0): Unretryable error | Opened disk da1 - 6 | (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 | (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error | (da2:umass-sim0:0:0:1): SCSI Status: Check Condition | (da2:umass-sim0:0:0:1): NOT READY csi:0,aa,55,40 asc:3a,0 | (da2:umass-sim0:0:0:1): Medium not present | (da2:umass-sim0:0:0:1): Unretryable error | Opened disk da2 - 6 | (da3:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0 | (da3:umass-sim0:0:0:2): CAM Status: SCSI Status Error | (da3:umass-sim0:0:0:2): SCSI Status: Check Condition | (da3:umass-sim0:0:0:2): NOT READY csi:0,aa,55,40 asc:3a,0 | (da3:umass-sim0:0:0:2): Medium not present | (da3:umass-sim0:0:0:2): Unretryable error | Opened disk da3 - 6 | (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 | (da4:umass-sim0:0:0:3): CAM Status: SCSI Status Error | (da4:umass-sim0:0:0:3): SCSI Status: Check Condition | (da4:umass-sim0:0:0:3): NOT READY csi:0,aa,55,40 asc:3a,0 | (da4:umass-sim0:0:0:3): Medium not present | (da4:umass-sim0:0:0:3): Unretryable error | Opened disk da4 - 6 and from usblist: | Generic USB SD Reader 1.00 at scbus1 target 0 lun 0 (da1,pass0) | Generic USB CF Reader 1.01 at scbus1 target 0 lun 1 (da2,pass1) | Generic USB SM Reader 1.02 at scbus1 target 0 lun 2 (da3,pass2) | Generic USB MS Reader 1.03 at scbus1 target 0 lun 3 (da4,pass3) It looks like your player has a number of areas of storage e:g SD card, flash card, it's own internal memory etc. and they all have an associated device node: $ ls /dev | grep da da1 da2 da3 da4 You can manipulate these devices with camcontrol(8) E.g: # camcontrol stop 1:0:0 # camcontrol rescan 1:0:0 # camcontrol load 1:0:0 # camcontrol stop 1:0:0 Unit stopped successfully # camcontrol rescan 1:0:0 Re-scan of 1:0:0 was successful # camcontrol load 1:0:0 Unit started successfully, Media loaded should initialise /dev/da0 (the SD card?) # ls /dev/da0 ls: /dev/da0: No such file or directory # ls /dev/da* /dev/da1 /dev/da2 /dev/da3 /dev/da4 Then: # mount -t msdosfs /dev/da0 /mnt/dos I tried it with all available /dev/da* devices: mount_msdosfs: /dev/da#: Device not configured will mount it you can read/write files from it. When you're finished: # umount /mnt/dos # camcontrol eject 1:0:0 If you have problems, post back the signifigant parts of /var/log/messages and any other errors. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html Thanks Johannes-Maria ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gconcat question
-Ursprungligt Meddelande- From: John Nielsen [EMAIL PROTECTED] Sent: 19/10/2008 3:39:00 AM To: freebsd-questions@freebsd.org Cc: [EMAIL PROTECTED] Subject: Re: gconcat question On Saturday 18 October 2008, Roger Olofsson wrote: What are the steps to bring back gconcatenated disks if doing an upgrade from FreeBSD6 to FreeBSD7 like this? As-is situation: FreeBSD 6.2-STABLE ad0 has FreeBSD ad1, ad2 and ad3 are gconcatenated using 'gconcat label -v data /dev/ad1 /dev/ad2 /dev/ad3'. The concat device should just appear automatically after the upgrade as long as you (continue to) load the geom_concat kernel module. Be aware that if the on-disk metadata format has changed then it will automatically be upgraded. This is usually a good thing but if you need to roll back to 6.x for some reason it's something to take into consideration. Planned upgrade: Reboot from cdrom, install FreeBSD7 from cd to ad0 Just curious, is there a reason you're going this route instead of upgrading from source? JN . Hello John and thank you for your reply! Follow-up question - /dev contains a /dev/concat/label entry - is this entry created when loader.conf invokes the kernel module? The machine won't be rollbacked so that's not an issue. The reason for following this route is that it's faster than doing it from source (it's an old machine). The machine has been a playground and has alot of ports installed that aren't being used anymore. The concatenated drives contain data only hence the need to preserve those. /Roger ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mounting an MP3 player?
On Sat, Oct 18, 2008 at 11:32:37AM +0200, Johannes-Maria Kaltenbach wrote: Hello, can anyone tell me how to mount an MP3 player (usb)? I seem to be too stupid to figure it out by myself. I thought it would be as easy as mounting a usb memory stick which I can mount with a device file of the form /dev/da#s#, e. g. /dev/da0s1, which is present after connecting the memory stick, but not if connecting the player instead; in this case I've got only /dev/da1 to /dev/da4. Are there any filesystems on these devices? Try 'file -s /dev/da*' and post the results. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpCVmuFBCkiv.pgp Description: PGP signature
KDE and yahoo IM
Does anyone have yahoo instant messenger working on KDE desktop?? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Bind BIND 9.3.5 configuration
I installed bind 9.3.5 on my new FreeBSD 6.3 server. I copied named.conf directly from my old server (originally from the Internet), it seems working fine but with some startup errors. I hope someone can explain or tune the configuration a little bit for me, any input would be greatly appreciated. Q1. Bind gave me errors on the following lines due to missing files, I have only empty.db, localhost-forward.db and localhost-reverse.db. Should I modify all localhost.rev to localhost-reverse.db? Is it safe to remove all lines about localhost-v6.rev? --- zone 0.0.127.IN-ADDR.ARPA { type master; file master/localhost.rev; }; // RFC 3152 zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA { type master; file master/localhost-v6.rev; }; // RFC 1886 -- deprecated zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT { type master; file master/localhost-v6.rev; }; zone localhost IN { type master; file master/localhost.rev; allow-update { none; }; }; --- Q2. Regarding the following lines, it seems that I should uncomment the forwarders, is it the the same IP in /etc/resolv.conf? Or I need to ask my ISP? --- // If you've got a DNS server around at your upstream provider, enter // its IP address here, and enable the line below. This will make you // benefit from its cache, thus reduce overall DNS traffic in the Internet. /* forwarders { 127.0.0.1; }; */ Q3. About the following comments, should I enable a local name server? and how to do it exactly? I have added 127.0.0.1 in resolv.conf, but how to enable it in /etc/rc.conf? -- // If you enable a local name server, don't forget to enter 127.0.0.1 // first in your /etc/resolv.conf so this server will be queried. // Also, make sure to enable it in /etc/rc.conf. I have used this configuration for several years and always quite confused. I have put my named.conf at http://www.msofficeforums.com/named.conf . Please give me some suggestions. Thanks! Kevin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mounting an MP3 player?
On Saturday 18 October 2008, Johannes-Maria Kaltenbach wrote: Hello, can anyone tell me how to mount an MP3 player (usb)? I seem to be too stupid to figure it out by myself. I thought it would be as easy as mounting a usb memory stick which I can mount with a device file of the form /dev/da#s#, e. g. /dev/da0s1, which is present after connecting the memory stick, but not if connecting the player instead; in this case I've got only /dev/da1 to /dev/da4. I tried all these and also /dev/usb, /dev/usb1, ..., /dev/usb4, but that doesn't work (as I expected but tried nevertheless). If I connect the player to the usb bus I get the following in /var/log/messages: | kernel: umass1: TrekStor TrekStor, rev 2.00/1.00, addr 2 and from usblist: | Generic USB SD Reader 1.00 at scbus1 target 0 lun 0 (da1,pass0) | Generic USB CF Reader 1.01 at scbus1 target 0 lun 1 (da2,pass1) | Generic USB SM Reader 1.02 at scbus1 target 0 lun 2 (da3,pass2) | Generic USB MS Reader 1.03 at scbus1 target 0 lun 3 (da4,pass3) and from usbdevs: | Controller /dev/usb4: | addr 1: high speed, self powered, config 1, EHCI root hub(0x), | Intel(0x), rev 1.00 port 1 powered | port 2 powered | port 3 powered | port 4 powered | port 5 powered | port 6 addr 2: high speed, power 400 mA, config 1, TrekStor(0x2791), | TrekStor(0x071b), rev 1.00 port 7 powered | port 8 powered Which device file should I use (or create?) to get access to this MP3 player? (I'm using FreeBSD 6.0) Have you tried just mounting da0 etc? The may not be any slices. -- Dave ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Freebsd7 mingw32 compilation utilities missing.
Hello, i don't know if it's the good section to talk about it... Yesterday, i want to cross-compile an old windows program, so i installed mingw32-bin-msvcrt-r3.12.a3.9 but i can't compile because the compiler and others tools are missing on freeBSD 7, i guess. I guess it because on freeBSD 6, i can see many other packages like mingw32-binutils mingw-gcc etc etc. So my question is : how to have on freeBSD 7, all packages required to build my program ? Thanks for all Benoit ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bsdlabel partiton c error message on new install
Hi Jerry, ok thanks for the answer, its not very good news for me ;( as Ive already done alot of config and installed alot of apps, but anyway thats my problem now! cheers Andy! - Original Message From: Jerry McAllister [EMAIL PROTECTED] To: andys [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Subject: Re: bsdlabel partiton c error message on new install Date: 17/10/08 18:11 On Fri, Oct 17, 2008 at 02:13:45PM +0200, andys wrote: Hi, on a newly installed FreeBSD 7.0 system on a dell 1950 server I see the following error from bsdlabel. Is there any known issues with this or is the only reasonable explanation that I have managed to mess it up without even knowing? :P And should I manually change the partition c to fix the prob? Is this safe to do? bsdlabel -A /dev/da0s1 # /dev/da0s1: type: SCSI disk: da0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 17750 sectors/unit: 285155328 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 20971520 0 4.2BSD 2048 16384 28552 b: 20971520 75497472 swap c: 285153687 0 unused 0 0 # raw part, don't edit d: 20971520 20971520 4.2BSD 2048 16384 28552 e: 20971520 41943040 4.2BSD 2048 16384 28552 f: 12582912 62914560 4.2BSD 2048 16384 28552 bsdlabel: partition c doesn't cover the whole unit! bsdlabel: An incorrect partition c may cause problems for standard system utilities thanks for any advice, Im not really confident with the FreeBSD disk management as I havent used it much, If you were using sysinstall, I am not sure how this would come up. Do you have more than one slice on the disk - that which MS refers to as a 'primary partition'? Something you might do to create a 'dual boot' machine. Are you in the position where you can just wipe it and do a reinstall? I wouldn't just move or resize the c partition after the fact. The c partition should be equal to the size of the slice it is in. That should just be true after the fdisk part of the operation unless there is something wrong with the size or alignment of the slice itself. And, in that case, I would expect it to have complained way back in the sysinstall-fdisk part of the process. So, I would start over if I could. Just some pictorial perspective to make it easier (I hope) to visualize. Whole device | slice 1 : FreeBSD Slice 2 : slice 3 : Slice 4 | | : : : | | :- partition c -: : | |Some MS thing : ' ' ' ' : Some Linux : Extra | | :pa' pb ' pd ' pe ' pn: thing : slice | | : ' ' ' ' : : | | : ' ' ' ' : : | - A device (whole disk) can have up to 4 slices labeled 1..4. Each slice can be of different types. MS calls slices 'primary partitions'. Each FreeBSD type slice can be divided in to 8 (really 7) partitions that are labeled a..h. But, c must be used to define the whole slice. Slices are created by fdisk. Fdisk also writes the device's MBR. Partitions are created by bsdlabel (disk label in early versions of FreeBSD) bsdlabel also writes the slice's boot block. It is possible to leave empty space in the whole disk that is not allocated to any slice or within any given slice that is not allocated to any partition. The total of a..h not counting c, plus any non- allocated space, must add up to c. It is possible to create what someone has dubbed a 'dangerously dedicated' disk and just not create slices, but just use bsdlabel to divide the whole disk in to FreeBSD partitions a-h. The c partition must still refer to the whole space available for FreeBSD partitioning. I think it is also possible to just newfs the disk without using either fdisk or bsdlabel and create one filesystem without slices or partitions. I haven't tried it. Both fdisk and bsdlabel are supposed to keep track of the sizes correctly, automatically. That is why I suggest starting over. If you use sysinstall, it calls fdisk and bsdlabel for you and you don't have to do it separately unless you want to look and see what it did. jerry thanks Andy. ___ [EMAIL PROTECTED] mailing list [2]http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Message sent using UK Grid Webmail 2.7.9 References 1. mailto:freebsd-questions@freebsd.org 2.
Re: Bind BIND 9.3.5 configuration
On Sun, Oct 19, 2008 at 06:22:27AM -0700, Kevin wrote: I installed bind 9.3.5 on my new FreeBSD 6.3 server. I copied named.conf directly from my old server (originally from the Internet), Since you've done this, you should use mergemaster to interactively merge the changes in the system default src/etc/namedb/named.conf into yours. This should solve any errors you receive. Q1. Bind gave me errors on the following lines due to missing files, I have only empty.db, localhost-forward.db and localhost-reverse.db. Should I modify all localhost.rev to localhost-reverse.db? Is it safe to remove all lines about localhost-v6.rev? See above. Q2. Regarding the following lines, it seems that I should uncomment the forwarders, is it the the same IP in /etc/resolv.conf? Or I need to ask my ISP? --- // If you've got a DNS server around at your upstream provider, enter // its IP address here, and enable the line below. This will make you // benefit from its cache, thus reduce overall DNS traffic in the Internet. /* forwarders { 127.0.0.1; }; */ No, you don't need to ask your ISP, and no, you don't need to enable forwarders unless you want to. You should read the official BIND docs on what forwarders do, to get the full understanding. :-) Q3. About the following comments, should I enable a local name server? and how to do it exactly? I have added 127.0.0.1 in resolv.conf, but how to enable it in /etc/rc.conf? -- // If you enable a local name server, don't forget to enter 127.0.0.1 // first in your /etc/resolv.conf so this server will be queried. // Also, make sure to enable it in /etc/rc.conf. I have used this configuration for several years and always quite confused. I have put my named.conf at http://www.msofficeforums.com/named.conf . Please give me some suggestions. Thanks! You should put nameserver 127.0.0.1 in /etc/resolv.conf, that way your own local machine as a resolver (e.g. will rely on the BIND/named daemon). /etc/rc.conf is used to enable BIND/named on startup. You should place the following there: named_enable=yes -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: KDE and yahoo IM
--- On Sun, 10/19/08, FBSD1 [EMAIL PROTECTED] wrote: From: FBSD1 [EMAIL PROTECTED] Subject: KDE and yahoo IM To: [EMAIL PROTECTED] ORG freebsd-questions@FreeBSD.ORG Date: Sunday, October 19, 2008, 8:00 AM Does anyone have yahoo instant messenger working on KDE desktop?? My suggestion would be to use Kopete or Pidgin. These are KDE-based and Gtk+ based, respectively, instant messaging clients. AFAIK, the official yahoo messenger client for FreeBSD has not been maintained for quite some while. - mdh __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gconcat question
On Sunday 19 October 2008, Roger Olofsson wrote: -Ursprungligt Meddelande- From: John Nielsen [EMAIL PROTECTED] Sent: 19/10/2008 3:39:00 AM To: freebsd-questions@freebsd.org Cc: [EMAIL PROTECTED] Subject: Re: gconcat question On Saturday 18 October 2008, Roger Olofsson wrote: What are the steps to bring back gconcatenated disks if doing an upgrade from FreeBSD6 to FreeBSD7 like this? As-is situation: FreeBSD 6.2-STABLE ad0 has FreeBSD ad1, ad2 and ad3 are gconcatenated using 'gconcat label -v data /dev/ad1 /dev/ad2 /dev/ad3'. The concat device should just appear automatically after the upgrade as long as you (continue to) load the geom_concat kernel module. Be aware that if the on-disk metadata format has changed then it will automatically be upgraded. This is usually a good thing but if you need to roll back to 6.x for some reason it's something to take into consideration. Planned upgrade: Reboot from cdrom, install FreeBSD7 from cd to ad0 Just curious, is there a reason you're going this route instead of upgrading from source? Hello John and thank you for your reply! Follow-up question - /dev contains a /dev/concat/label entry - is this entry created when loader.conf invokes the kernel module? Yes. Many of the GEOM modules (label, mirror, concat, stripe, etc) create nodes in the relevant subdirectories in /dev as soon as they taste the drives (or other providers) and discover metadata belonging to them. This is generally when they are loaded (if modules) or at boot time (if compiled into the kernel or preloaded by loader.conf). Any time you insert a device (such as a USB stick) the loaded modules also have an opportunity to taste it and create nodes as appropriate. The machine won't be rollbacked so that's not an issue. The reason for following this route is that it's faster than doing it from source (it's an old machine). The machine has been a playground and has alot of ports installed that aren't being used anymore. The concatenated drives contain data only hence the need to preserve those. Makes sense. :) JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Postfix communicating with IPFW
Dear FQ, I recently got attacked with some dsl subscribers of this (imaginary) some.net domain. These subscribers present themselves as [ip address.dynamic.some.net]. Postfix SMTP server: errors from 66-66-66-166.dynamic.some.net [66.66.66.166] What I would like to do is to generate a some.net list with all these dynamic ip addresses and provide them to my ipfw firewall in order to block them on the moment that they try to relay a 2nd time thru my server. This will cause less process time as it is quicker to send someone home by the doorkeeper (ipfw) rather than check his credentials first (Postfix) and tell him to get lost. Is there any way to let postfix 'communicate' with my ipfw firewall? Jos Chrispijn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Inode numbering
On Sat, 18 Oct 2008 22:46:04 -0700, [EMAIL PROTECTED] wrote: It might work in the special case where nothing on the filesystem is ever moved or removed, and no hard links are ever added. As a simple example, suppose I have directories foo and foo/bar, and file foo/baz, with i(foo) == 15, i(foo/baz) == 20, and i(foo/bar) == 25, satisfying your criterion. If I do mv foo/baz foo/bar (so baz is now foo/bar/baz), I will have i(foo/bar) == 25 and i(foo/bar/baz) == 20. Thank you for this example. So I cannot assume inode numbers to be in a specific order. It will force me to do what I originally intended to do: Iterate from 2 up to the maximal number and then check the availability, and, if given, trace back the .. chain to an existing directory entry point - or re-create one, if it is missing, too. Will be a lot of work, but I think I can learn much from this. Remember, kids: Learning is fun. :-) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Postfix communicating with IPFW
Jos Chrispijn [EMAIL PROTECTED] wrote: I recently got attacked with some dsl subscribers of this (imaginary) some.net domain. These subscribers present themselves as [ip address.dynamic.some.net]. Postfix SMTP server: errors from 66-66-66-166.dynamic.some.net [66.66.66.166] What I would like to do is to generate a some.net list with all these dynamic ip addresses and provide them to my ipfw firewall in order to block them on the moment that they try to relay a 2nd time thru my server. This will cause less process time as it is quicker to send someone home by the doorkeeper (ipfw) rather than check his credentials first (Postfix) and tell him to get lost. True, but Postfix can handle these rejects just fine though YMMV depending on your load and other aspects of your setup to which we aren't privy. Is there any way to let postfix 'communicate' with my ipfw firewall? No, but you can write a script that parses your maillog and accordingly updates firewall rules. Tools like fail2ban are often mentioned here -- check the archives and adapt as necessary. -- Sahil Tandon [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Postfix communicating with IPFW
Sahil Tandon [EMAIL PROTECTED] wrote: Jos Chrispijn [EMAIL PROTECTED] wrote: I recently got attacked with some dsl subscribers of this (imaginary) some.net domain. These subscribers present themselves as [ip address.dynamic.some.net]. Postfix SMTP server: errors from 66-66-66-166.dynamic.some.net [66.66.66.166] One more thing: I use the following PCRE to block dynamic-looking IPs at SMTP and it really isn't resource intensive. /\d+([-\.]\d+){3}/ REJECT Generic hostnames prohibited. -- Sahil Tandon [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gconcat question SOLVED
-Ursprungligt Meddelande- From: John Nielsen [EMAIL PROTECTED] Sent: 19/10/2008 5:52:51 PM To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Subject: Re: gconcat question On Sunday 19 October 2008, Roger Olofsson wrote: -Ursprungligt Meddelande- From: John Nielsen [EMAIL PROTECTED] Sent: 19/10/2008 3:39:00 AM To: freebsd-questions@freebsd.org Cc: [EMAIL PROTECTED] Subject: Re: gconcat question On Saturday 18 October 2008, Roger Olofsson wrote: What are the steps to bring back gconcatenated disks if doing an upgrade from FreeBSD6 to FreeBSD7 like this? As-is situation: FreeBSD 6.2-STABLE ad0 has FreeBSD ad1, ad2 and ad3 are gconcatenated using 'gconcat label -v data /dev/ad1 /dev/ad2 /dev/ad3'. The concat device should just appear automatically after the upgrade as long as you (continue to) load the geom_concat kernel module. Be aware that if the on-disk metadata format has changed then it will automatically be upgraded. This is usually a good thing but if you need to roll back to 6.x for some reason it's something to take into consideration. Planned upgrade: Reboot from cdrom, install FreeBSD7 from cd to ad0 Just curious, is there a reason you're going this route instead of upgrading from source? Hello John and thank you for your reply! Follow-up question - /dev contains a /dev/concat/label entry - is this entry created when loader.conf invokes the kernel module? Yes. Many of the GEOM modules (label, mirror, concat, stripe, etc) create nodes in the relevant subdirectories in /dev as soon as they taste the drives (or other providers) and discover metadata belonging to them. This is generally when they are loaded (if modules) or at boot time (if compiled into the kernel or preloaded by loader.conf). Any time you insert a device (such as a USB stick) the loaded modules also have an opportunity to taste it and create nodes as appropriate. The machine won't be rollbacked so that's not an issue. The reason for following this route is that it's faster than doing it from source (it's an old machine). The machine has been a playground and has alot of ports installed that aren't being used anymore. The concatenated drives contain data only hence the need to preserve those. Makes sense. :) JN . Thank you John, it worked excellent! /Roger ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Postfix communicating with IPFW
Thank you all for sharing your expertise! I will follow all the suggestions that have been made in order to solve the matter. Jos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
page fault while in kernel mode
I took a working 5.4-i386 server and trying to convert its RAID 5 to RAID 10 and load 7.0 amd64. I kept getting BTX halted even after flashing the latest bios and firmware for the raid card, Intel SRCZCR, in this dual Xeon 2.4GHz supermicro superserver. I have another server, bit newer, but same basic hardware makeup with Xeon 3.0 procs that runs 6.1-amd64 fine. Anyway, so I have resorted to the i386 version of 7.0 to see if the server is just incapable of running amd64, which after passing the initial boot where amd64 failed, now gives me the subject error after some reference to GEOM_LABEL. I did rebuild the RAID to RAID-10, can someone tell me what this error means? http://columbus.webtent.org/freebsd.png Thanks for any guidance. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
page fault while in kernel mode
I took a working 5.4-i386 server and trying to convert its RAID 5 to RAID 10 and load 7.0 amd64. I kept getting BTX halted even after flashing the latest bios and firmware for the raid card, Intel SRCZCR, in this dual Xeon 2.4GHz supermicro superserver. I have another server, bit newer, but same basic hardware makeup with Xeon 3.0 procs that runs 6.1-amd64 fine. Anyway, so I have resorted to the i386 version of 7.0 to see if the server is just incapable of running amd64, which after passing the initial boot where amd64 failed, now gives me the subject error after some reference to GEOM_LABEL. I did rebuild the RAID to RAID-10, can someone tell me what this error means? http://columbus.webtent.org/freebsd.png Thanks for any guidance. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: page fault while in kernel mode
On Sun, Oct 19, 2008 at 03:50:01PM -0400, Robert Fitzpatrick wrote: I took a working 5.4-i386 server and trying to convert its RAID 5 to RAID 10 and load 7.0 amd64. I kept getting BTX halted even after flashing the latest bios and firmware for the raid card, Intel SRCZCR, in this dual Xeon 2.4GHz supermicro superserver. I have another server, bit newer, but same basic hardware makeup with Xeon 3.0 procs that runs 6.1-amd64 fine. Anyway, so I have resorted to the i386 version of 7.0 to see if the server is just incapable of running amd64, which after passing the initial boot where amd64 failed, now gives me the subject error after some reference to GEOM_LABEL. I did rebuild the RAID to RAID-10, can someone tell me what this error means? http://columbus.webtent.org/freebsd.png Can you please try 7.1-BETA2 instead (ISOs are now available)? There have been fixes/improvements to BTX since 7.0-RELEASE which could fix your problem. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Freebsd7 mingw32 compilation utilities missing.
On Sun, Oct 19, 2008 at 12:18:47PM +0200, Benoit wrote: Hello, i don't know if it's the good section to talk about it... Yesterday, i want to cross-compile an old windows program, so i installed mingw32-bin-msvcrt-r3.12.a3.9 but i can't compile because the compiler and others tools are missing on freeBSD 7, i guess. I guess it because on freeBSD 6, i can see many other packages like mingw32-binutils mingw-gcc etc etc. So my question is : how to have on freeBSD 7, all packages required to build my program ? The devel/mingw32-gcc port/package is the top package/port that you need to install. All other mingw packages/ports are dependancies or optional extras. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpjtudUyfCq5.pgp Description: PGP signature
ports/net-im/gtkyahoo/
Does anyone have the gtkyahoo port working so they can use yahoo instant messenger from a desktop? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: error installing kmymoney2 on amd64 system running freebsd 6.3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dino Vliet wrote: Hi Greg Here the tow output file pkg_info_output.txt and the Makefile as attachments because otherwise this messsage would be too large (I know that the freebsd mailinglist will not let my message through) Brgds Dino Hi Dino, Can you check in the work/kmymoney2-0.8.9/doc/en directory to see if there is a file named errorlog or some other files with a .log extension after you receive the make error? If so, please send those as well or post them somewhere for viewing. It looks like the finance/kmymoney2 port Makefile needs additional work to include dependencies on the tools that generate the PDF documentation (pdfjadetex and others). I didn't have those tools originally, and the PDF documentation generation was disabled. I installed the required tools manually, and I now get an error during PDF generation, although it's different than what you reported. The other thing that might be helpful is if you can change directory into work/kmymoney2-0.8.9/doc/en, type make -d a and capture the output. That will show extra debugging information from make as it processes its targets. By the way, if you don't care about the PDF documentation, you can temporarily change the port Makefile line that reads: CONFIGURE_ARGS= --enable-ofxplugin --enable-ofxbanking --enable-pdf-docs to: CONFIGURE_ARGS= --enable-ofxplugin --enable-ofxbanking I'm likely going to make that switch dependent on the NOPORTDOCS knob as well. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI++T80sRouByUApARAvKVAKCRlcugHg6JtyvZa8FR10ukEc//KwCdHyGB 6BAbfMSDEmj47Teb1WZCh18= =c52b -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Under heavy load internet gets killed, only a reboot can bring it back up
On Fri, Oct 17, 2008 at 03:21:48PM +0200, Aniruddha wrote: On Thu, 2008-10-16 at 08:56 +0900, Pyun YongHyeon wrote: It seems that msk(4) in HEAD does not build correctly on RELENG_7. Try attached patch. Save attached patch to /path/to/patch #cd /usr/src/sys/dev/msk #patch -p0 /path/to/patch/msk.watchdog.diff And rebuild your kernel. This patch failed with the following error: /if_msk.c /usr/src/sys/dev/msk/if_msk.c:845:50: error: macro MEXTADD passed 8 arguments, but takes just 7 /usr/src/sys/dev/msk/if_msk.c: In function 'msk_jumbo_newbuf': /usr/src/sys/dev/msk/if_msk.c:844: error: 'MEXTADD' undeclared (first use in this function) /usr/src/sys/dev/msk/if_msk.c:844: error: (Each undeclared identifier is reported only once /usr/src/sys/dev/msk/if_msk.c:844: error: for each function it appears in.) *** Error code 1 Stop in /usr/obj/usr/src/sys/MYKERNEL. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Are you sure you've backed out any changes to if_msk.c/if_mskreg.h? You should apply the patch above to if_msk.c/if_mskreg.h in 7.1-PRELEASE. I've verified compilation testing and it should build without problems. -- Regards, Pyun YongHyeon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Inode numbering
Polytropon [EMAIL PROTECTED] wrote: ... It will force me to do what I originally intended to do: Iterate from 2 up to the maximal number and then check the availability, and, if given, trace back the .. chain to an existing directory entry point - or re-create one, if it is missing, too. Will be a lot of work, but I think I can learn much from this. You may be able to reuse some code from dump(8). When doing an incremental dump, it reads through the inodes, makes a list of those which are newer than the previous dump, then recursively locates all parent directories of selected inodes and adds them to the list. (When doing a level 0 dump, it does the same thing but by definition every inode is selected.) Having done all that, it dumps all the selected directories followed by the rest of the selected inodes. Dump's purpose is to ensure that the dump will be complete in the sense of containing the full path to any file that is on the tape, and your purpose is different, but I suspect much of the find parent logic may be reusable. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
syslogd logging
Is there a way to re-configure how syslogd presents the date in the syslog files? Presently, the date is usually MMM DD I would prefer MMDD however I cannot find anywhere where this is possible. TIA, Jim ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: syslogd logging
fquest wrote: Is there a way to re-configure how syslogd presents the date in the syslog files? Presently, the date is usually MMM DD I would prefer MMDD however I cannot find anywhere where this is possible. It isn't. Consider syslog-ng from the ports. Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]