Re: how to speed up port make??
Hello, On Jul 25, 2012 7:34 PM, Chad Perrin per...@apotheon.com wrote: You kids have got it easy. I used to have to compile by hand with a pair of tweezers, bar copper wire, a magnifying glass, and a potato with two pieces of metal stuck in it as a power source. Ha-ha... Ah those were the days..., but does anyone remember the old way of building the kernel in the 2.2.8 days? I was just getting started doing the basic system setup/admin things in those days. Back then (1998 or so) I did not have access to broadband, so I did not even update the sources back then, but I knew that it was a good idea to remove devices from the GENERIC kernel that I did not have--thanks to the book by Greg Lehey. (Even though the version of The Complete FreeBSD I bought is so out of date I cannot bring myself to throw it away--it was my guide back in those days.) Does anyone else remember The Complete 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
Re: mail(1) save command does not work as in the man page
From bon...@mail.r-bonomi.com Thu Jul 26 02:58:29 2012 Date: Wed, 25 Jul 2012 19:37:47 -0500 (CDT) From: Robert Bonomi bon...@mail.r-bonomi.com To: freebsd-questions@freebsd.org, me...@bristol.ac.uk Subject: Re: mail(1) save command does not work as in the man page Any comments? This is the 'standard'/*EXPECTED* behavior of 'mail', and has been, since the early 1980s. (I still use 'mail' as my standard mail client'.) If invoked _without_ specifying a maibox, 1) mail that is written to another mailbox is deleted from the inbox on exit. 2) mail that was read, but _not_ written/deleted is saved to 'mbox'. If invoked *WITH* '-f', messages are not deleted/moved on exit. you must _explicitly_ perform any desired actions. You've found a bug in the _documentation_, not the progam. :) ok, I might make a patch for mail.1 when I have the time. 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: how to speed up port make??
On 25 July 2012, at 23:04, Ryan Noll wrote: Hello, On Jul 25, 2012 7:34 PM, Chad Perrin per...@apotheon.com wrote: You kids have got it easy. I used to have to compile by hand with a pair of tweezers, bar copper wire, a magnifying glass, and a potato with two pieces of metal stuck in it as a power source. Ha-ha... Ah those were the days..., but does anyone remember the old way of building the kernel in the 2.2.8 days? I was just getting started doing the basic system setup/admin things in those days. Back then (1998 or so) I did not have access to broadband, so I did not even update the sources back then, but I knew that it was a good idea to remove devices from the GENERIC kernel that I did not have--thanks to the book by Greg Lehey. (Even though the version of The Complete FreeBSD I bought is so out of date I cannot bring myself to throw it away--it was my guide back in those days.) Does anyone else remember The Complete FreeBSD? Its sitting in my bookshelf. Its pretty worn out though. ___ 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: how to speed up port make??
Mr U wrote: is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours 1. You can use devel/ccache to cache compiled data. This way when you are compiling anything for a second time you'll get a big speed boost. Consider compiling kernel+world in 1 hour instead of 8 hours. 1a. If using clang setenv CCACHE_CPP2. 2. Try switching to clang, it has lower memory requirements and compilation speed. Be ready to disable it for some ports that have nonstandard code. 2a. Don't try to build world with clang if you need wine/openoffice/libreoffice. They are known not to work on a world built with clang. 3. Use tmpfs for port building. I always use a big swap and point WRKSRCDIR to /tmp/ports. 4. Finetune your compilation flags. The safest way to select one is to run `(gcc|gcc46|clang) -E -v -march=native - /dev/null` and select the lowest -march value then write it down to /etc/make.conf as CPUTYPE. 5. Use port management tools like portmaster. When building big ports it will split building down to individual ports cleaning disk between builds. This keeps cache from holding temporary files. -- Sphinx of black quartz judge my vow. ___ 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
INVESTISSEMENT SOLAIRE 39% de Rentabilite sur 6 ans MP395
Pour afficher correctem= ent la page [1]Cliquez-ici Pour = Devenir Partenaire [2]Cliq= uez-ici [3]3DPV4_NEWSLETTER_SOLAIRE_PV4_CAVAILLON_CN2i_DEVELOPPEMENT_MARS_20 Pour Dev= enir Partenaire [4]Cliq= uez-ici Michael FRAYSSE ?n= bsp;Direction ? CN2i DEVELOPPEMENT Site Web : [5]www.cn2i.fr n= bsp; nb= sp; Skype :?michael.frayss= e Accueil : 05 . 61 . 214 . 942 = ; Mobile de Permanence : 06 . 60 . 168 . 528 Fax ? Back Office ? : = ; 08 . 21 . 896 . 859 _ = __ ?CN2i D?veloppement ? Promoteur National en Investissement Photovolta?que ? ? Plate-forme de Commercialisation Centrales Solaires Photovolta?q= ues ? Rcs : 502 083 652 .NAF : 66 19 B Capital Social : 50.000 ?= nb= sp;= nb sp; Si?ge Social : 10 Ter Avenue des PYRENEES 31120 LACROIX FALGARDE __ _ Michael Tv Piano YouTube : [6]http://www.youtube.com/user/MichaelMusicPiano/videos Michael Tv Piano Dailymotion : [7]http://www.dailymotion.com/Michael_Fraysse?fbc=503 [8]DESINSCRIPTION : CLIQUEZ-ICI References 1. 3Dhttp://www.cn2i.fr/NEWSLETTER/PV4_NEWSLETTER_SOLAIRE_PV4_CAVAILL 2. 3Dhttp://www.cn2i.fr/devenir_partenaire.php; 3. 3Dhttp://www.cn2i.fr/Projet-d-Investissement-Centrale-Photovoltaiq 4. 3Dhttp://www.cn2i.fr/devenir_partenaire.php; 5. 3Dhttp://www.cn2i.fr/ 6. 3Dhttp://www.youtube.com/user/MichaelMusicPiano/videos; 7. 3Dhttp://www.dailymotion.com/Michael_Fraysse?fbc=503; 8. 3Dmailto:desabo-sola...@e-mailink.fr?Subject=Ref_Desabo=Elk-50___ 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
INVESTISSEMENT SOLAIRE 39% de Rentabilite sur 6 ans MP395
Pour afficher correctem= ent la page [1]Cliquez-ici Pour = Devenir Partenaire [2]Cliq= uez-ici [3]3DPV4_NEWSLETTER_SOLAIRE_PV4_CAVAILLON_CN2i_DEVELOPPEMENT_MARS_20 Pour Dev= enir Partenaire [4]Cliq= uez-ici Michael FRAYSSE ?n= bsp;Direction ? CN2i DEVELOPPEMENT Site Web : [5]www.cn2i.fr n= bsp; nb= sp; Skype :?michael.frayss= e Accueil : 05 . 61 . 214 . 942 = ; Mobile de Permanence : 06 . 60 . 168 . 528 Fax ? Back Office ? : = ; 08 . 21 . 896 . 859 _ = __ ?CN2i D?veloppement ? Promoteur National en Investissement Photovolta?que ? ? Plate-forme de Commercialisation Centrales Solaires Photovolta?q= ues ? Rcs : 502 083 652 .NAF : 66 19 B Capital Social : 50.000 ?= nb= sp;= nb sp; Si?ge Social : 10 Ter Avenue des PYRENEES 31120 LACROIX FALGARDE __ _ Michael Tv Piano YouTube : [6]http://www.youtube.com/user/MichaelMusicPiano/videos Michael Tv Piano Dailymotion : [7]http://www.dailymotion.com/Michael_Fraysse?fbc=503 [8]DESINSCRIPTION : CLIQUEZ-ICI References 1. 3Dhttp://www.cn2i.fr/NEWSLETTER/PV4_NEWSLETTER_SOLAIRE_PV4_CAVAILL 2. 3Dhttp://www.cn2i.fr/devenir_partenaire.php; 3. 3Dhttp://www.cn2i.fr/Projet-d-Investissement-Centrale-Photovoltaiq 4. 3Dhttp://www.cn2i.fr/devenir_partenaire.php; 5. 3Dhttp://www.cn2i.fr/ 6. 3Dhttp://www.youtube.com/user/MichaelMusicPiano/videos; 7. 3Dhttp://www.dailymotion.com/Michael_Fraysse?fbc=503; 8. 3Dmailto:desabo-sola...@e-mailink.fr?Subject=Ref_Desabo=Elk-50___ 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: how to speed up port make??
2. Try switching to clang, it has lower memory requirements and compilation this is simply not true. ___ 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: geli - selecting cipher
'CBC' -- [C]ypher [B]lock [C]hainig -- is well-suited for strictly -sequential- data access. Try reading the blocks of a large (say 10gB) file in *reverse* order and see what kind of performance you get. how about randomio test on geli encrypted ramdisk? AES-CBC still 3 times faster ___ 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: how to speed up port make??
Wojciech Puchar wrote: 2. Try switching to clang, it has lower memory requirements and compilation this is simply not true. This is simply not the point. Let's not start it again. The question was clearly about compilation speed where clang outperforms gcc by far. As for execution speed for now there's no clear winner: http://www.phoronix.com/scan.php?page=news_itempx=MTA5Nzc -- Sphinx of black quartz judge my vow. ___ 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: how to speed up port make??
-Original Message- From: Reko Turja Sent: Thursday, July 26, 2012 12:12 PM To: Wojciech Puchar Subject: Re: how to speed up port make?? -Original Message- From: Wojciech Puchar 2. Try switching to clang, it has lower memory requirements and compilation this is simply not true. Clang is far faster when compiling code than GCC, which you would know if you tried it, instead of living in your opinionated la-la land. -Reko ___ 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: How to get Huawei EC1561 USB modem working under FreeBSD 8.2?
On 24.07.2012 10:59, Manish Jain wrote: Jul 23 22:36:15 bourne kernel: ugen0.2: American Power Conversion at usbus0 Jul 23 22:36:15 bourne kernel: ugen1.2: HUAWEI TECHNOLOGIES at usbus1 Jul 23 22:36:15 bourne kernel: umass0: HUAWEI TECHNOLOGIES HUAWEI Mobile, class 0/0, rev 1.10/0.00, addr 2 on usbus1 Jul 23 22:36:15 bourne kernel: umass0: SCSI over Bulk-Only; quirks = 0x Jul 23 22:36:15 bourne kernel: ugen2.2: vendor 0x05e3 at usbus2 Jul 23 22:36:15 bourne kernel: uhub7: vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/77.60, addr 2 on usbus2 Jul 23 22:36:15 bourne kernel: Root mount waiting for: usbus2 Jul 23 22:36:15 bourne kernel: uhub7: 4 ports with 4 removable, self powered Jul 23 22:36:15 bourne kernel: Trying to mount root from ufs:/dev/ad8s2a Jul 23 22:36:15 bourne kernel: umass0:0:0:-1: Attached to scbus0 Jul 23 22:36:15 bourne kernel: cd0 at umass-sim0 bus 0 scbus0 target 0 lun 0 Jul 23 22:36:15 bourne kernel: cd0: HUAWEI Mass Storage 2.31 Removable CD-ROM SCSI-0 device Jul 23 22:36:15 bourne kernel: cd0: 1.000MB/s transfers Jul 23 22:36:15 bourne kernel: cd0: cd present [52352 x 2048 byte records] Jul 23 22:36:15 bourne kernel: (probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0 Jul 23 22:36:15 bourne kernel: (probe0:umass-sim0:0:0:1): CAM status: SCSI Status Error Jul 23 22:36:15 bourne kernel: (probe0:umass-sim0:0:0:1): SCSI status: Check Condition Jul 23 22:36:15 bourne kernel: (probe0:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) Jul 23 22:36:15 bourne kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 1 Jul 23 22:36:15 bourne kernel: da0: HUAWEI SD Storage 2.31 Removable Direct Access SCSI-2 device Jul 23 22:36:15 bourne kernel: da0: 1.000MB/s transfers Jul 23 22:36:15 bourne kernel: da0: Attempt to query device size failed: NOT READY, Medium not present cd0 is containing windows drivers on pseudo-CD interface. On my Merlin device simple ejecting cd0 is enabling 3 data interfaces from which one can be used to connect to the mobile network. However some devices have builtin quirk in u3g to make that automagicaly. You can try issuing cdcontrol -f /dev/cd0 eject and observe what new is showing in /var/log/messages or dmesg. da0 is probably microSD card reader. Jul 23 22:36:16 bourne kernel: u3g0: Data Interface on usbus1 Jul 23 22:36:16 bourne kernel: u3g0: Found 3 ports. Jul 23 22:36:16 bourne root: Unknown USB device: vendor 0x051d product 0x0002 bus uhub0 Jul 23 22:36:17 bourne root: Unknown USB device: vendor 0x051d product 0x0002 bus uhub0 Jul 23 22:36:19 bourne apcupsd[1165]: apcupsd 3.14.8 (16 January 2010) freebsd startup succeeded Jul 23 22:36:19 bourne kernel: tun0: link state changed to UP Jul 23 22:36:19 bourne lpd[1227]: lpd startup: logging=0 Jul 23 22:36:19 bourne kernel: fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 Jul 23 22:36:20 bourne apcupsd[1165]: Power failure. Jul 23 22:36:21 bourne avahi-daemon[1471]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns! Jul 23 22:36:25 bourne apcupsd[1165]: Running on UPS batteries. Jul 23 22:36:27 bourne apcupsd[1165]: Mains returned. No longer on UPS batteries. Jul 23 22:36:27 bourne apcupsd[1165]: Power is back. UPS running on mains. Jul 23 22:36:37 bourne login: ROOT LOGIN (root) ON ttyv0 Jul 23 22:36:49 bourne ppp[1217]: tun0: Warning: Chat script failed Jul 23 22:37:20 bourne ppp[1217]: tun0: Warning: Chat script failed Any help in pointing out what error I am making will be greatly appreciated. Remember, I cannot install any new port since my FreeBSD box does not yet connect to the internet. Thanks -- Pozdrawiam, Maciej Milewski ___ 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: how to speed up port make??
On Wednesday, 25 July 2012 17:02:37 Mr U wrote: hi is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours A few things you could try adding to make.conf: FORCE_MAKE_JOBS=yes MAKE_JOBS_NUMBER=4 Also, you could try ports-mgmt/portbuilder as it handles concurrent building of ports. Regards signature.asc Description: This is a digitally signed message part.
Re: How to get Huawei EC1561 USB modem working under FreeBSD 8.2?
On 25-Jul-12 21:06, Erich Dollansky wrote: Hi On Wed, 25 Jul 2012 20:21:04 +0530 Manish Jainbourne.ident...@hotmail.com wrote: On 25-Jul-12 18:53, Erich Dollansky wrote: On Tue, 24 Jul 2012 14:29:07 +0530 Manish Jainbourne.ident...@hotmail.com wrote: On 23-Jul-12 16:07, Erich Dollansky wrote: On Monday 23 July 2012 16:46:04 Manish Jain wrote: On 21-Jul-12 19:06, Matthias Apitz wrote: El día Saturday, July 21, 2012 a las 06:01:11PM +0530, Manish Jain escribió: I tried switching the USB ports and have some information which could help you to help me : usbconfig -u 0 -a 2 dump_device_desc : ugen0.2:HUAWEI Mobile HUAWEI TECHNOLOGIES at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x bDeviceSubClass = 0x bDeviceProtocol = 0x bMaxPacketSize0 = 0x0040 idVendor = 0x12d1 idProduct = 0x140b This is strange. src/sys/dev/usb/usbdevs says this: product HUAWEI E140B0x140b 3G modem This means that your product is supported Is this line in your usbdevs? Now what should my devfs.conf contain ? Currently it contains the following : Mine is empty. Comment all entries out. This might be the problem. link cuaU0.0 modem own modem root:operator perm modem 666 link ugen0.3 usv own usv root:operator perm usv 666 link cuaU0.1 apcups own apcups root:operator perm apcups 666 Obviously, these entries are incorrect since neither my modem speaks to the internet nor is any signal from the APC UPS recognized. I believe once I have the correct devfs entries, the whole system should work smoothly. But please correct me if I am wrong. Surprisingly, /etc/usb_modeswitch.d contains no entries for 12d1:140b or 051d:*. Do I need to reinstall usb_modeswitch.d ? Or can usbconfig configure the devices correctly ? I am no expert here, so if yes, I would need the complete commands. What version of FreeBSD are you using? Thanks for any help. I am greatly indebted to FreeBSD and its philosophy making things 'as simple as possible, but not any simpler' - which has helped me learn a great deal about computers in general and managing my own computer in particular. But the USB related stuff still beats the hell out of me, so I need help here. There is something very, very simple wrong. I just do not see now what it is. I have the feeling that your modem is not recognised while it should be as it is known to FreeBSD. BTW, my system now has the usbdump command (installed from sources downloaded from http://biot.com/usbdump/) but no manpage. You got then a Linux version which might causes more problems that you need. Erich Hi Erich/Matthias, I did some tinkering to make _some_ progress. My APC UPS is working fine now under FreeBSD (8.2-RELEASE, amd64). I think I also now have the correct device setting in ppp.conf (/dev/cuaU0.0, also symlink'ed as /dev/modem via devfs.conf). But the modem still does not speak to internet. Here is the latest log : Jul 26 15:16:15 bourne ppp[1199]: Phase: Using interface: tun0 Jul 26 15:16:15 bourne ppp[1199]: Phase: deflink: Created in closed state Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: set device /dev/modem Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: set speed 115200 Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 AT OK-AT-OK ATFE0V1X1D2C1S0=0 OK \dATDT\T TIMEOUT 40 CONNECT Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: set timeout 180 Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: enable dns Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set phone #777 Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set device /dev/cuaU0.0 Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set login Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set authname inter...@internet.mtsindia.in Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set authkey Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set timeout 0 Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: disable ipv6cp Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: add default HISADDR Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set dial AT+CRM=1 Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: accept PAP CHAP Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: enable dns Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: PPP Started (auto mode). Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: bundle: Establish Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: deflink: closed - opening Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: deflink: Connected! Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: deflink: opening - dial Jul 26 15:16:15 bourne ppp[1217]: tun0: Chat: Phone:
Re: Security - logging of user commands
On 7/25/12 6:15 PM, jb wrote: Damien Fleuriot ml at my.gd writes: ... From my syslog.conf: auth.info;authpriv.info /var/log/auth.log Yet I'm seeing not a trail in /var/log/auth.log , or messages, or even in secure ... # less /var/log/auth.log Feb 22 21:13:56 localhost newsyslog[1503]: logfile first created Feb 22 21:14:07 localhost login: login on ttyv0 as jb Feb 22 21:14:15 localhost su: jb to root on /dev/ttyv0 ... Jul 25 15:23:48 localhost su: jb to root on /dev/pts/3 Jul 25 17:25:05 localhost snoopy[50059]: [uid:0 sid:45449 tty:/dev/pts/2 cwd:/usr/ports/security/snoopy filename:/usr/bin/touch]: touch /etc/ld.so.preload Jul 25 17:25:05 localhost snoopy[50060]: [uid:0 sid:45449 tty:/dev/pts/2 cwd:/usr/ports/security/snoopy filename:/usr/bin/grep]: grep -c ^/usr/local/lib//snoopy.so /etc/ld.so.preload Jul 25 17:52:29 localhost snoopy[50145]: [uid:0 sid:46687 tty:/dev/pts/3 cwd:/usr/home/jb filename:/usr/bin/less]: less /var/log/auth.log Jul 25 17:54:03 localhost snoopy[50148]: [uid:0 sid:46687 tty:/dev/pts/3 cwd:/usr/home/jb filename:/usr/bin/touch]: touch test1 Jul 25 17:54:08 localhost snoopy[50149]: [uid:0 sid:46687 tty:/dev/pts/3 cwd:/usr/home/jb filename:/usr/bin/less]: less /var/log/auth.log [root@localhost /home/jb]# jb Well, after some digging I am sorry to report that security/snoopy/ is, imho, quite bugged on 8-STABLE and 9-STABLE alike. Let's take the example of logging the current working directory: Below is the statement from ./configure --help : Optional Features: [snip] --disable-cwd-logging disable logging of Current Working Directory [default=enabled] From config.h:66 /* Enable logging of Current Working Directory */ /* #undef SNOOPY_CWD_LOGGING */ From configure:4298 #define SNOOPY_CWD_LOGGING 1 From snoopy.c:127 /* Create logMessage */ #if defined(SNOOPY_CWD_LOGGING) Small edits to snoopy.c to check if current working directory logging is really enabled: --- snoopy.c.orig 2012-07-26 10:16:06.0 + +++ snoopy.c2012-07-26 10:18:05.0 + @@ -123,12 +123,18 @@ logString[logStringSize-1] = '\0'; +/* Check wether SNOOPY_CWD_LOGGING is _really_ defined or not */ +int cwdlog=0; +#if defined(SNOOPY_CWD_LOGGING) +cwdlog=1; +#endif + /* Create logMessage */ #if defined(SNOOPY_CWD_LOGGING) getCwdRet = getcwd(cwd, PATH_MAX+1); - sprintf(logMessage, [uid:%d sid:%d tty:%s cwd:%s filename:%s]: %s, getuid(), getsid(0), ttyPath, cwd, filename, logString); + sprintf(logMessage, [uid:%d sid:%d tty:%s cwd:%s filename:%s]: %s, getuid(), getsid(0), ttyPath, cwd, filename, logString); #else - sprintf(logMessage, [uid:%d sid:%d tty:%s filename:%s]: %s, getuid(), getsid(0), ttyPath, filename, logString); + sprintf(logMessage, cwdlog: %d - [uid:%d sid:%d tty:%s filename:%s]: %s, cwdlog, getuid(), getsid(0), ttyPath, filename, logString); #endif And the result: gmake snoopy.so setenv LD_PRELOAD /usr/ports/security/snoopy/work/snoopy-1.8.0/snoopy.so /etc/rc.d/named status Yields, amongst others: Jul 26 10:19:00 pf1 snoopy[96561]: cwdlog: 0 - [uid:0 sid:92850 tty:/dev/pts/0 filename:/bin/ps]: /bin/ps -ww -o pid= -o jid= -o command= -p 1073 Notice how cwdlog is set to 0 which means we don't want to log the CWD, although configure reports SNOOPY_CWD_LOGGING 1 I think that might not be the only bug, seeing only root actions seem to be logged although the default should be to log every user. I'd like to point out that apart from these edits for my tests this is a *vanilla* install of snoopy. Might anyone confirm the issue ? The above is true for 8.1-RELEASE, 8-STABLE , 9-STABLE with snoopy being at version 1.8.0 on all of them. ___ 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 build problem
Hi, I'm unable to compile the kernel code (for that matter any kernel module also). The following is the error. My guess is that it is trying to compile the code for x86 instead of amd64 as you can a symbolic link create for x86 includes. Please suggest the change to be done inorder to compile it for amd64. Uname -a of the system FreeBsd 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 -- stage 3.1: making dependencies -- cd /usr/obj/usr/src/sys/MYKERNEL; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE= GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac _SHLIBDIRPREFIX=/usr/obj/usr/src/tmp VERSION=FreeBSD 9.0-RELEASE-p3 amd64 900044 INSTALL=sh /usr/src/tools/install.sh PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin NO_CTF=1 make KERNEL=kernel depend -DNO_MODULES_OBJ machine - /usr/src/sys/amd64/include x86 - /usr/src/sys/x86/include cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath -I/usr/src/sys/dev/ath/ath_hal -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs -I/usr/src/sys/dev/cxgb -I/usr/src/sys/dev/cxgbe -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector /usr/src/sys/amd64/amd64/genassym.c In file included from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./machine/_align.h:6, from ./machine/param.h:46, from /usr/src/sys/sys/param.h:115, from /usr/src/sys/amd64/amd64/genassym.c:42: ./x86/_align.h:6:24: error: #include nested too deeply In file included from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./machine/_align.h:6, from /usr/src/sys/sys/socket.h:39, from /usr/src/sys/amd64/amd64/genassym.c:54: ./x86/_align.h:6:24: error: #include nested too deeply /usr/src/sys/amd64/amd64/genassym.c:69:25: error: x86/apicreg.h: No such file or directory /usr/src/sys/amd64/amd64/genassym.c:230: error: invalid use of undefined type 'struct LAPIC' *** 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. ___ 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 build problem
On 7/26/12 12:48 PM, Venkat Duvvuru wrote: Hi, I'm unable to compile the kernel code (for that matter any kernel module also). The following is the error. My guess is that it is trying to compile the code for x86 instead of amd64 as you can a symbolic link create for x86 includes. Please suggest the change to be done inorder to compile it for amd64. Uname -a of the system FreeBsd 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 -- stage 3.1: making dependencies -- cd /usr/obj/usr/src/sys/MYKERNEL; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE= GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac _SHLIBDIRPREFIX=/usr/obj/usr/src/tmp VERSION=FreeBSD 9.0-RELEASE-p3 amd64 900044 INSTALL=sh /usr/src/tools/install.sh PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin NO_CTF=1 make KERNEL=kernel depend -DNO_MODULES_OBJ machine - /usr/src/sys/amd64/include x86 - /usr/src/sys/x86/include cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath -I/usr/src/sys/dev/ath/ath_hal -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs -I/usr/src/sys/dev/cxgb -I/usr/src/sys/dev/cxgbe -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector /usr/src/sys/amd64/amd64/genassym.c In file included from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./machine/_align.h:6, from ./machine/param.h:46, from /usr/src/sys/sys/param.h:115, from /usr/src/sys/amd64/amd64/genassym.c:42: ./x86/_align.h:6:24: error: #include nested too deeply In file included from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./machine/_align.h:6, from /usr/src/sys/sys/socket.h:39, from /usr/src/sys/amd64/amd64/genassym.c:54: ./x86/_align.h:6:24: error: #include nested too deeply /usr/src/sys/amd64/amd64/genassym.c:69:25: error: x86/apicreg.h: No such file or directory /usr/src/sys/amd64/amd64/genassym.c:230: error: invalid use of undefined type 'struct LAPIC' *** 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. The first question that comes to mind is, do you manage to compile a GENERIC kernel ? cd /usr/src make clean make buildkernel KERNCONF=GENERIC The second question that comes to mind is, have you rebuilt the world prior to trying your kernel compilation ? I notice you're on 9.0-RELEASE from june, when did you last update your sources ? ___ 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: How to get Huawei EC1561 USB modem working under FreeBSD 8.2?
From: Manish Jain bourne.ident...@hotmail.com Date: Thu, 26 Jul 2012 15:37:23 +0530 Subject: Re: How to get Huawei EC1561 USB modem working under FreeBSD 8.2? On 25-Jul-12 21:06, Erich Dollansky wrote: I did some tinkering to make _some_ progress. My APC UPS is working fine now under FreeBSD (8.2-RELEASE, amd64). I think I also now have the correct device setting in ppp.conf (/dev/cuaU0.0, also symlink'ed as /dev/modem via devfs.conf). But the modem still does not speak to internet. [[ sneck logfile entries ]] Could it be that I am using the wrong AT commands ? C Best guess possibilities -- 1) wrong serial port 2) wrong speed. Recommend using a simple teminal program, like 'cu' or 'kermit', try connecting to each serial port, in succession, and see what happens when you type the following two lines: ATE1V1 ATI0 { that is 'AT', then a capital i, followed by a zero } The idea is to _first_ get 'basic communications' with the modem working, _then_ try the chat scipt, then get ppp woking. Trying to debug -everything- at the same time is a guaanteed recipie for frustation -- as you're finding out. One of your prior boot logs showed that _at_that_point_ the O/S was *NOT* recognizing the modem. Log lines showed unknown device 0x140b. I presume you have -that- resolved. ___ 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 build problem
Hi, Please find my repsonses in line. On Thu, Jul 26, 2012 at 4:57 PM, Damien Fleuriot m...@my.gd wrote: On 7/26/12 12:48 PM, Venkat Duvvuru wrote: Hi, I'm unable to compile the kernel code (for that matter any kernel module also). The following is the error. My guess is that it is trying to compile the code for x86 instead of amd64 as you can a symbolic link create for x86 includes. Please suggest the change to be done inorder to compile it for amd64. Uname -a of the system FreeBsd 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 -- stage 3.1: making dependencies -- cd /usr/obj/usr/src/sys/MYKERNEL; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE= GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac _SHLIBDIRPREFIX=/usr/obj/usr/src/tmp VERSION=FreeBSD 9.0-RELEASE-p3 amd64 900044 INSTALL=sh /usr/src/tools/install.sh PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin NO_CTF=1 make KERNEL=kernel depend -DNO_MODULES_OBJ machine - /usr/src/sys/amd64/include x86 - /usr/src/sys/x86/include cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath -I/usr/src/sys/dev/ath/ath_hal -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs -I/usr/src/sys/dev/cxgb -I/usr/src/sys/dev/cxgbe -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector /usr/src/sys/amd64/amd64/genassym.c In file included from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./machine/_align.h:6, from ./machine/param.h:46, from /usr/src/sys/sys/param.h:115, from /usr/src/sys/amd64/amd64/genassym.c:42: ./x86/_align.h:6:24: error: #include nested too deeply In file included from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./machine/_align.h:6, from /usr/src/sys/sys/socket.h:39, from /usr/src/sys/amd64/amd64/genassym.c:54: ./x86/_align.h:6:24: error: #include nested too deeply /usr/src/sys/amd64/amd64/genassym.c:69:25: error: x86/apicreg.h: No such file or directory /usr/src/sys/amd64/amd64/genassym.c:230: error: invalid use of undefined type 'struct LAPIC' *** 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. The first question that comes to mind is, do you manage to compile a GENERIC kernel ? cd /usr/src make clean make buildkernel KERNCONF=GENERIC == Yes, all was well with compiling generic, proprietary kernels before it stopped working a couple of days back. I had been compiling, installing kernel on this machine many times. The second question that comes to mind is, have you rebuilt the world prior to trying your kernel compilation ? == This is failing with an error mentioned below install: target directory `/usr/obj/usr/src/tmp/legacy/usr/share/tmac' does not exist usage: install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g
Re: Freebsd build problem
On 7/26/12 2:08 PM, Venkat Duvvuru wrote: Hi, Please find my repsonses in line. On Thu, Jul 26, 2012 at 4:57 PM, Damien Fleuriot m...@my.gd mailto:m...@my.gd wrote: On 7/26/12 12:48 PM, Venkat Duvvuru wrote: Hi, I'm unable to compile the kernel code (for that matter any kernel module also). The following is the error. My guess is that it is trying to compile the code for x86 instead of amd64 as you can a symbolic link create for x86 includes. Please suggest the change to be done inorder to compile it for amd64. Uname -a of the system FreeBsd 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 -- stage 3.1: making dependencies -- cd /usr/obj/usr/src/sys/MYKERNEL; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE= GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac _SHLIBDIRPREFIX=/usr/obj/usr/src/tmp VERSION=FreeBSD 9.0-RELEASE-p3 amd64 900044 INSTALL=sh /usr/src/tools/install.sh PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin NO_CTF=1 make KERNEL=kernel depend -DNO_MODULES_OBJ machine - /usr/src/sys/amd64/include x86 - /usr/src/sys/x86/include cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath -I/usr/src/sys/dev/ath/ath_hal -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs -I/usr/src/sys/dev/cxgb -I/usr/src/sys/dev/cxgbe -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector /usr/src/sys/amd64/amd64/genassym.c In file included from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./machine/_align.h:6, from ./machine/param.h:46, from /usr/src/sys/sys/param.h:115, from /usr/src/sys/amd64/amd64/genassym.c:42: ./x86/_align.h:6:24: error: #include nested too deeply In file included from ./x86/_align.h:6, from ./x86/_align.h:6, from ./x86/_align.h:6, from ./machine/_align.h:6, from /usr/src/sys/sys/socket.h:39, from /usr/src/sys/amd64/amd64/genassym.c:54: ./x86/_align.h:6:24: error: #include nested too deeply /usr/src/sys/amd64/amd64/genassym.c:69:25: error: x86/apicreg.h: No such file or directory /usr/src/sys/amd64/amd64/genassym.c:230: error: invalid use of undefined type 'struct LAPIC' *** 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. The first question that comes to mind is, do you manage to compile a GENERIC kernel ? cd /usr/src make clean make buildkernel KERNCONF=GENERIC == Yes, all was well with compiling generic, proprietary kernels before it stopped working a couple of days back. I had been compiling, installing kernel on this machine many times. The second question that comes to mind is, have you
Re: How to get Huawei EC1561 USB modem working under FreeBSD 8.2?
El día Thursday, July 26, 2012 a las 07:10:00AM -0500, Robert Bonomi escribió: [[ sneck logfile entries ]] Could it be that I am using the wrong AT commands ? C Best guess possibilities -- 1) wrong serial port 2) wrong speed. Recommend using a simple teminal program, like 'cu' or 'kermit', try connecting to each serial port, in succession, and see what happens when you type the following two lines: ATE1V1 ATI0 { that is 'AT', then a capital i, followed by a zero } The idea is to _first_ get 'basic communications' with the modem working, _then_ try the chat scipt, then get ppp woking. 100% ACK; that's what I have told a numerous of times in this thread, but it seems that the OP is hint-resistant :-) HIH matthias -- Matthias Apitz e g...@unixarea.de - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ 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: geli - selecting cipher
RW rwmailli...@googlemail.com wrote: On Wed, 25 Jul 2012 19:52:39 -0500 (CDT) Robert Bonomi wrote: From owner-freebsd-questi...@freebsd.org Wed Jul 25 14:00:27 2012 Date: Wed, 25 Jul 2012 20:57:30 +0200 (CEST) From: Wojciech Puchar woj...@wojtek.tensor.gdynia.pl To: freebsd-questions@freebsd.org Subject: geli - selecting cipher i need high speed disk encryption (many disks running in parallel, lots of data movement). i have processor with AES-NI. geli give 150MB/s performance (tested from/to md ramdisk) using default and recommended AES-XTS and ca 400MB/s read and 700MB/s write using AES-CBC. I'm not cryptography expert, is CBC somehow less secure, and if so is it really a problem? If you don't know what strength encryption you need, and/or the difference between the methods, you need to hire a data-security professional to examine your situation and make recommendations appropriate for _your_ needs. 'CBC' -- [C]ypher [B]lock [C]hainig -- is well-suited for strictly -sequential- data access. Try reading the blocks of a large (say 10gB) file in *reverse* order and see what kind of performance you get. Exactly the same, in geli the encryption is done per sector. I asked a similar questions to the OPs in the geom list and didn't get an answer. Geli doesn't need or isn't using any advantages of XTS. And CBC in geli is actually equivalent to ESSIV (see the previously linked wikipedia page). In the end I went with 128 bit aes-cbc since it's the fastest setting and Bruce Schneier recommends 128 over 256 AES as being more secure. Can you provide the source for the as being more secure part? I'm aware of the following recommendation: | And for new applications I suggest that people don't use AES-256. | AES-128 provides more than enough security margin for the forseeable | future. But if you're already using AES-256, there's no reason to change. http://www.schneier.com/blog/archives/2009/07/another_new_aes.html But (the way I interpret it) there's no claim that AES-128 is more secure either in general or in the context of disk encryption. Fabian signature.asc Description: PGP signature
Re: Support
yes i booted from a cd the fist time and i almost had it installed but then i turned my computer off because i was having some problems and i turned it back on and it is un responsivr and showed only a white screen and thanks for the help. On Wed, Jul 25, 2012 at 9:41 AM, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: Andy reckingbal...@gmail.com writes: I was trying to install the free bsd to my mac computer its an ibook g3 with a 20gb hard dive i was using the powerpc version and it was working fine then i got to the part were you have to set up the hard drive i got some kind of err so i turned off my computer when i turned it back on it only boots to a white screen idk what to do please help Are you booting from a CD for the install? Does anything at all show up on the screen? ___ 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: Support
Wow wait a sec here ... You've installed a boot loader but no the OS itself and then shut down the computer ? Have you tried booting from the CD again ? On 7/26/12 4:10 PM, Andy Recker wrote: yes i booted from a cd the fist time and i almost had it installed but then i turned my computer off because i was having some problems and i turned it back on and it is un responsivr and showed only a white screen and thanks for the help. On Wed, Jul 25, 2012 at 9:41 AM, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: Andy reckingbal...@gmail.com writes: I was trying to install the free bsd to my mac computer its an ibook g3 with a 20gb hard dive i was using the powerpc version and it was working fine then i got to the part were you have to set up the hard drive i got some kind of err so i turned off my computer when i turned it back on it only boots to a white screen idk what to do please help Are you booting from a CD for the install? Does anything at all show up on the screen? ___ 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
mc-light with tcsh receives segfault
Hi, My mc-light doesn't work with tcsh. When I try to launch it: mc Segmentation fault (core dumped) uname -a FreeBSD jeff-netf 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 01:47:53 UTC 2012 r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 System and ports are all up to date. mc -V The Midnight Commander 4.1.40-pre9 with mouse support on xterm. Edition: text mode. Virtual File System: tarfs, extfs, ftpfs, mcfs. With builtin Editor Using S-lang library with termcap database With subshell support: as default With DUSUM command With support for background operations It works with sh and csh but doesn't with tcsh. Actually, it even works within tcsh, if the SHELL variable is arbitrarily set to /bin/csh. Doesn't matter whether root or a regular user. Any ideas of what might be wrong? Jeff ___ 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: geli - selecting cipher
On 26/07/2012 04:14, RW wrote: I asked a similar questions to the OPs in the geom list and didn't get an answer. Geli doesn't need or isn't using any advantages of XTS. And CBC in geli is actually equivalent to ESSIV (see the previously linked wikipedia page). Hi, You didn't get an answer because in security, the answer depends on exact circumstances of use. The short answer is that if you don't have a specific adversary you need to protect your data from, I'd say that GELI's CBC is good enough for you. signature.asc Description: OpenPGP digital signature
Re: geli - selecting cipher
On Thu, Jul 26, 2012 at 8:47 AM, Ivan Voras ivo...@freebsd.org wrote: You didn't get an answer because in security, the answer depends on exact circumstances of use. The short answer is that if you don't have a specific adversary you need to protect your data from, I'd say that GELI's CBC is good enough for you. The specific adversary that XEX / XTS etc. is designed to protect against is probably unrealistically strong - someone who can write arbitrary data to raw disk sectors and ask to have them decrypted (chosen ciphertext attack), etc. If you don't need to detect modifications/insertions/deletions that don't go through the GELI layer, I would be perfectly comfortable with AES-CTR mode - it is many times faster than any of the above methods. - M ___ 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: geli - selecting cipher
If you don't need to detect modifications/insertions/deletions that yes i don't. i just want data to be unreadable for thieves in case of robbery. ___ 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: Security - logging of user commands
Damien Fleuriot ml at my.gd writes: ... Might anyone confirm the issue ? The above is true for 8.1-RELEASE, 8-STABLE , 9-STABLE with snoopy being at version 1.8.0 on all of them. $ uname -r 9.0-RELEASE-p3 $ man ldconfig ... Filenames must conform to the lib*.so.[0-9] pattern in order to be added to the hints file. ... FILES /var/run/ld.so.hints Standard hints file for the a.out dynamic linker. /var/run/ld-elf.so.hints Standard hints file for the ELF dynamic linker. /etc/ld.so.conf Conventional configuration file containing directory names for invocations with -aout. /etc/ld-elf.so.conf Conventional configuration file containing directory names for invocations with -elf. /var/run/ld-elf32.so.hints /var/run/ld32.so.hints Conventional configuration files containing directory names for invocations with -32. /etc/objformat Determines whether -aout or -elf is the default. If present, it must consist of a single line containing either `OBJFORMAT=aout' or `OBJFORMAT=elf'. ... $ # ls -al /usr/local/lib/libsnoopy.so* lrwxr-xr-x 1 root wheel14 Jul 26 20:43 /usr/local/lib/libsnoopy.so - libsnoopy.so.1 -r-xr-xr-x 1 root wheel 4824 Jul 26 20:07 /usr/local/lib/libsnoopy.so.1 $ grep ldconfig /etc/defaults/rc.conf ... ldconfig_paths=... /usr/local/lib ... ... # /etc/rc.d/ldconfig start ... ldconfig_start() ... for i in ${ldconfig_paths} /etc/ld-elf.so.conf; do if [ -r ${i} ]; then _LDC=${_LDC} ${i} fi done check_startmsgs echo 'ELF ldconfig path:' ${_LDC} ${ldconfig} -elf ${_ins} ${_LDC} ... $ ldconfig -r /var/run/ld-elf.so.hints: search directories: /lib:/usr/lib:/usr/lib/compat:/usr/local/lib:/usr/local/lib/event2:/usr/local /lib/gcc46:/usr/local/lib/graphviz:/usr/local/lib/libxul:/usr/local/lib/nss: /usr/local/lib/pth:/usr/local/lib/qt4 0:-lc.7 = /lib/libc.so.7 ... 465:-lsnoopy.1 = /usr/local/lib/libsnoopy.so.1 ... $ # man ldconfig ... # tail /var/log/auth.log ... Jul 26 22:12:38 localhost snoopy[5884]: [uid:0 sid:2957 tty:/dev/pts/2 cwd:/usr/local/lib filename:/sbin/sysctl]: /sbin/sysctl -n hw.machine_arch Jul 26 22:12:38 localhost snoopy[5885]: [uid:0 sid:2957 tty:/dev/pts/2 cwd:/usr/local/lib filename:/sbin/sysctl]: /sbin/sysctl -n hw.machine Jul 26 22:12:38 localhost snoopy[5886]: [uid:0 sid:2957 tty:/dev/pts/2 cwd:/usr/local/lib filename:/usr/bin/locale]: /usr/bin/locale Jul 26 22:12:38 localhost snoopy[5889]: [uid:0 sid:2957 tty: cwd:/usr/local/lib filename:/usr/bin/head]: head -1 Jul 26 22:12:38 localhost snoopy[5888]: [uid:0 sid:2957 tty:/dev/pts/2 cwd:/usr/local/lib filename:/usr/bin/zcat]: /usr/bin/zcat /usr/share/man/man8/ldconfig.8.gz Jul 26 22:12:38 localhost snoopy[5892]: [uid:0 sid:2957 tty: cwd:/usr/local/lib filename:/usr/bin/groff]: groff -S -P-h -Wall -mtty-char -man -Tascii -P-c Jul 26 22:12:38 localhost snoopy[5891]: [uid:0 sid:2957 tty: cwd:/usr/local/lib filename:/usr/bin/tbl]: tbl Jul 26 22:12:38 localhost snoopy[5890]: [uid:0 sid:2957 tty:/dev/pts/2 cwd:/usr/local/lib filename:/usr/bin/zcat]: /usr/bin/zcat /usr/share/man/man8/ldconfig.8.gz Jul 26 22:12:38 localhost snoopy[5893]: [uid:0 sid:2957 tty: cwd:/usr/local/lib filename:/usr/bin/more]: more # /etc/rc.d/named status Cannot 'status' named. Set named_enable to YES in /etc/rc.conf or use 'onestatus' instead of 'status'. # tail /var/log/auth.log ... Jul 26 22:16:40 localhost snoopy[5917]: [uid:0 sid:2957 tty:/dev/pts/2 cwd:/usr/local/lib filename:/bin/ps]: /bin/ps -ww -p 5916 -o jid= Jul 26 22:16:40 localhost snoopy[5919]: [uid:0 sid:2957 tty:/dev/pts/2 cwd:/usr/local/lib filename:/bin/ps]: /bin/ps -ww -o pid= -o jid= -o command= -ax # jb ___ 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: how to speed up port make??
On Wed, Jul 25, 2012 at 11:04:27PM -0700, Ryan Noll wrote: Hello, On Jul 25, 2012 7:34 PM, Chad Perrin per...@apotheon.com wrote: You kids have got it easy. I used to have to compile by hand with a pair of tweezers, bar copper wire, a magnifying glass, and a potato with two pieces of metal stuck in it as a power source. Ha-ha... Ah those were the days..., but does anyone remember the old way of building the kernel in the 2.2.8 days? I was just getting started doing the basic system setup/admin things in those days. Back then (1998 or so) I did not have access to broadband, so I did not even update the sources back then, but I knew that it was a good idea to remove devices from the GENERIC kernel that I did not have--thanks to the book by Greg Lehey. (Even though the version of The Complete FreeBSD I bought is so out of date I cannot bring myself to throw it away--it was my guide back in those days.) Does anyone else remember The Complete FreeBSD? I have the fourth edition. I imagine that's not as old as yours. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.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: geli - selecting cipher
On Thu, 26 Jul 2012 15:49:00 +0200 Fabian Keil wrote: RW rwmailli...@googlemail.com wrote: In the end I went with 128 bit aes-cbc since it's the fastest setting and Bruce Schneier recommends 128 over 256 AES as being more secure. Can you provide the source for the as being more secure part? More likely to remain secure, if you prefer. ___ 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
Architectural CAD software
Good afternoon, FreeBSD enthusiasts. I did not receive a response to the following message, so I would like to rephrase the question. Does anyone use an architectural CAD application with FreeBSD? If so, would you be willing to share any comments, opinions, or advice with me concerning your experience with this software? Many thanks in advance. Yours truly, Lee Shackelford ---BeginMessage--- Good day FreeBSD enthusiasts. Has anyone installed and used CYCAS architectural CAD software on a FreeBSD system? Is this possible? If you have used CYCAS on a FreeBSD system, would you like to share with me your comments about your experience? Many thanks. Lee Shackelford ---End Message--- ___ 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: Architectural CAD software
From: leeoliveshackelf...@surewest.net leeoliveshackelf...@surewest.net To: freebsd-questions@freebsd.org Sent: Thursday, July 26, 2012 7:53 PM Subject: Architectural CAD software Good afternoon, FreeBSD enthusiasts. I did not receive a response to the following message, so I would like to rephrase the question. Does anyone use an architectural CAD application with FreeBSD? If so, would you be willing to share any comments, opinions, or advice with me concerning your experience with this software? Many thanks in advance. Yours truly, Lee Shackelford Hi Lee, you could ask this same question on a Linux (or better, Ubuntu) forum/mailing list, surely you'll receive more answers, then you can see if the CAD apps used by them will run on FreeBSD (I'm quite sure them will work). Why I say a Linux forum is better for this? because I don't know any non-computer-geek who uses FreeBSD, but there are a lot of Architects/Graphic Artists using Linux, and specially Ubuntu right now. Leonardo M. Ramé http://leonardorame.blogspot.com ___ 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: how to speed up port make??
On Thu, 26 Jul 2012 11:36:18 +0200, David Naylor wrote: On Wednesday, 25 July 2012 17:02:37 Mr U wrote: hi is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours A few things you could try adding to make.conf: FORCE_MAKE_JOBS=yes MAKE_JOBS_NUMBER=4 I'm not sure this is supported on a _single_ core Pentium 4 CPU (or will gain speed if it was emulated). -- Polytropon 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 freebsd-questions-unsubscr...@freebsd.org
[FreeBSD9.0]Question about IP Forwarding feature
Hello, I have question about how i can enable ip forwarding I set gateway_enable = YES in /etc/rc.conf When I restart/start FreeBSD,OS started completely but ip forwarding feature is not enabled. #sysctl net.inet.ip.forwarding net.inet.ip.forwarding: 0 I check start scripts #/etc/rc.d/routing start and found the folowing result: eval: check_kern_features: not found eval: check_kern_features: not found But when using /etc/rc.d/routing start inet this is OK #/etc/rc.d/routing start inet Additional inet routing options: gateway=YES. #sysctl net.inet.ip.forwarding net.inet.ip.forwarding: 1 How i can configure to enable ip forwarding [net.inet.ip.forwarding: 1 ] *FreeBSD Version 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Sat Jul 21 14:09:44 JST 2012 thang@server:/usr/obj/usr/src/sys/GENERIC i386 */etc/rc.conf -- named_enable=YES named_flags=-c /etc/namedb/named.conf firewall_enable=YES firewall_type=open gateway_enable=YES ppp_nat=NO natd_enable=YES natd_program=/sbin/natd natd_interface=tun0 natd_flags=-f /etc/natd.conf routed_enable=YES 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
Re: how to speed up port make??
On Wed, 25 Jul 2012, Ryan Noll wrote: Does anyone else remember The Complete FreeBSD? I'm looking right at it on the shelf here. Second Edition - over 1750 pages!. It is *bristling* with post-it notes used as bookmarks. -- Chris Hill ch...@monochrome.org ** [ Busy Expunging / ] ___ 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: Architectural CAD software
On Thu, Jul 26, 2012 at 3:53 PM, leeoliveshackelf...@surewest.net wrote: Good afternoon, FreeBSD enthusiasts. I did not receive a response to the following message, so I would like to rephrase the question. Does anyone use an architectural CAD application with FreeBSD? If so, would you be willing to share any comments, opinions, or advice with me concerning your experience with this software? Many thanks in advance. Yours truly, Lee Shackelford Good day FreeBSD enthusiasts. Has anyone installed and used CYCAS architectural CAD software on a FreeBSD system? Is this possible? If you have used CYCAS on a FreeBSD system, would you like to share with me your comments about your experience? Many thanks. Lee Shackelford You may study the following list to select a suitable port/package : http://www.freebsd.org/ports/cad.html ( FreeBSD Ports: Cad ) ( Computer Aided Design utilities. ) If you need , the following chapter may be useful : http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html ( Chapter 5 Installing Applications: Packages and Ports ) Some sample ports/packages : .. http://www.freebsd.org/cgi/url.cgi?ports/cad/brlcad/pkg-descr http://www.freebsd.org/cgi/cvsweb.cgi/ports/cad/brlcad/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/brlcad.tbz http://brlcad.org/ .. http://www.freebsd.org/cgi/url.cgi?ports/cad/librecad/pkg-descr http://www.freebsd.org/cgi/cvsweb.cgi/ports/cad/librecad/ http://www.freshports.org/cad/librecad/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/librecad.tbz It seems that librecad does NOT exist in : ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/ http://librecad.org/cms/home.html .. http://www.freebsd.org/cgi/url.cgi?ports/cad/opencascade/pkg-descr http://www.freebsd.org/cgi/cvsweb.cgi/ports/cad/opencascade/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/opencascade.tbz http://www.opencascade.org/ .. http://www.freebsd.org/cgi/url.cgi?ports/cad/opencascade-tutorial/pkg-descr http://www.freebsd.org/cgi/cvsweb.cgi/ports/cad/openscad/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/openscad.tbz http://www.openscad.org/ .. http://www.freebsd.org/cgi/url.cgi?ports/cad/qcad/pkg-descr http://www.freebsd.org/cgi/cvsweb.cgi/ports/cad/qcad/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/qcad-partslib.tbz ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/qcad.tbz http://www.ribbonsoft.com/en/qcad .. http://www.freebsd.org/cgi/url.cgi?ports/cad/varkon/pkg-descr http://www.freebsd.org/cgi/cvsweb.cgi/ports/cad/varkon/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/varkon.tbz http://varkon.sourceforge.net/ .. Thank you very much . Mehmet Erol Sanliturk ___ 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