About suidperl in FreeBSD
Hi, I'm using 8.2-RELEASE I need suidperl for openwebmail. I include ENABLE_SUIDPERL=true in /etc/make.conf and compile with make -DENABLE_SUIDPERL"TRUE" install clean Even so there is no /usr/bin/suidperl anywhere. Any advise? I'm missing something? Thanks Alberto Mijares ___ 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: About suidperl in FreeBSD
> > The things you've tried don't make any sense to me; where did you get > such weird advice? > > I'd say to get rid of the things you added, then > # cd /usr/ports/lang/perl5.12 > (or the directory for which ever other perl you want), then > # make config > (so you can select the SUIDPERL option), then > # make clean install clean > > I would also suggest that you take a look at the ports section in the > FreeBSD Handbook, and then the manual page. > Since Perl 5.12 there is no SUIDPERL option in config. I compiled 5.10 and now I have /usr/local/bin/suidpperl. The big problem is: everything I compiled depending on perl is linked against 5.12 and some apps are broken (spamassassin, for example). How could I find every port that depends on 5.12 and recompile with 5.10? thanks Alberto Mijares ___ 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"
HRL in FreeBSD Stable
Hi list, Where can I see if resource limits for jails is included in FBSD 8 STABLE or any plan to include it in 8.3? It'd be great if you don't need to apply the patch[1] manually [1] http://lists.freebsd.org/pipermail/freebsd-jail/2009-May/000866.html Thanks in advance. Regards Alberto Mijares ___ 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"
Booting issue with 9.1-RELEASE and net4801
with error 12! Device configuration finished. procfs registered Timecounters tick every 1.000 msec vlan: initialized, using hash tables with chaining lo0: bpf attached hptrr: no controller detected. usbus0: 12Mbps Full Speed USB v1.0 ata0: reset tp1 mask=03 ostat0=50 ostat1=00 ugen0.1: <0x0e11> at usbus0 uhub0: <0x0e11 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 ata0: stat0=0x50 err=0x01 lsb=0x00 msb=0x00 ata0: stat1=0x00 err=0x01 lsb=0x00 msb=0x00 ata0: reset tp2 stat0=50 stat1=00 devices=0x1 ata1: reset tp1 mask=00 ostat0=ff ostat1=ff pass0 at ata0 bus 0 scbus0 target 0 lun 0 pass0: CFA-0 device pass0: Serial Number BOZ111711234413 pass0: 16.700MB/s transfers (PIO4, PIO 512bytes) ada0 at ata0 bus 0 scbus0 target 0 lun 0 ada0: CFA-0 device ada0: Serial Number BOZ111711234413 ada0: 16.700MB/s transfers (PIO4, PIO 512bytes) ada0: 3815MB (7813120 512 byte sectors: 16H 63S/T 7751C) ada0: Previously was known as ad0 GEOM: new disk ada0 GEOM_PART: partition 2 has end offset beyond last LBA: 7999487 > 7813119 GEOM_PART: partition 3 has start offset beyond last LBA: 7999488 > 7813119 GEOM_PART: partition 3 has end offset beyond last LBA: 8002511 > 7813119 GEOM_PART: integrity check failed (ada0, MBR) uhub0: 3 ports with 3 removable, self powered Trying to mount root from ufs:/dev/ada0s1a [ro]... mountroot: waiting for device /dev/ada0s1a ... Mounting from ufs:/dev/ada0s1a failed with error 19. Loader variables: vfs.root.mountfrom=ufs:/dev/ada0s1a vfs.root.mountfrom.options=ro Manual root filesystem specification: : [options] Mount using filesystem and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:tank cd9660:/dev/acd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/acd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) Abort manual input mountroot> Regards Alberto Mijares ___ 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: Booting issue with 9.1-RELEASE and net4801
> ada0: Previously was known as ad0 > GEOM: new disk ada0 > GEOM_PART: partition 2 has end offset beyond last LBA: 7999487 > 7813119 > GEOM_PART: partition 3 has start offset beyond last LBA: 7999488 > 7813119 > GEOM_PART: partition 3 has end offset beyond last LBA: 8002511 > 7813119 > GEOM_PART: integrity check failed (ada0, MBR) Hmmm... I think this is the problem. I'll check my nano config again. ___ 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"
GPIO in 9.1-RELEASE
I'm moving this thread from hardware@, I think this ain't the rigth list, is it? Hi list, I have a net4801 Soekris board. It has 12-pin GPIO interface. An almost GENERIC kernel doesn't show any /dev/gpio* device. I tried including device gpio and I see the module with # kldstat -v | grep gpio but still no /dev/gpio* device. Could anyone point me to the steps to follow in order to enable such interface? And taking the opportunity for a second shot, any recommendation for a Perl module to work with? Thanks in advance Regards. Alberto Mijares ___ 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"
Identify USB device with devd
Hi list, I have 3 USB GSM modems and I want to trigger some actions when they are plugged to the system. Each modem must trigger a different action, the problem is how to identify each modem because 1) none of the modems have a serial number iSerialNumber = 0x 2) two of three modems have same idProduct, so I can't rely on this 3) I don't know how to get the exact USB port where the modem is plugged. I can get the bus with the variable port # Hub port number (USB) // man devd.conf but this is not enough information. Any suggestion? Thanks in advance. Regards, Alberto Mijares ___ 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: Ifconfig (DHCP?) configures two IPs in one IF
> > rl0: flags=8843 metric 0 mtu 1500 > options=8 > ether 00:40:f4:d1:23:9a > inet 192.168.0.10 netmask 0xff00 broadcast 192.168.0.255 > inet 10.10.50.126 netmask 0xff00 broadcast 10.10.50.255 > media: Ethernet autoselect (100baseTX ) > status: active > plip0: flags=8810 metric 0 mtu 1500 > > > I tried unplumb/delete rl0, but if does not work. > Before the bug can be fixed, is any way to fix the IP without rebooting the > machine? > Try this # ifconfig rl0 -alias 192.168.0.10 Regards Alberto Mijares ___ 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: lots of time_wait
2010/9/10 jason : > hello,i have a problem: > tcp4 0 0 192.168.0.26.9939 192.168.0.195.11211 TIME_WAIT > netstat -an | awk '{if($5 ~/11200/ && $6 ~/TIME_WAIT/) print $0}' | wc -l > 64203 > > sysctl net.inet.tcp.msl > net.inet.tcp.msl: 2500 > You should check the application's idle connections time out. Regards Alberto Mijares ___ 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"
wlan0 + hostap + rc.conf
Hi Hackers, >From man rc.conf: If a wlans_⟨interface⟩ variable is set, an wlan(4) interface will be created for each item in the list with the wlandev argument set to interface. Further wlan cloning arguments may be passed to the ifconfig(8) create command by setting the create_args_⟨interface⟩ variable. One or more wlan(4) devices must be created for each wireless devices as of FreeBSD 8.0. So, this is my rc.conf ifconfig_sis0="up" wlans_ath0="wlan0" create_args_wlan0="wlanmode ap" ifconfig_wlan0="ssid nombre channel X mode 11g up" cloned_interfaces="bridge0" ifconfig_bridge0="addm wlan0 addm sis0 inet A.B.C.D netmask W.X.Y.Z up" However, when I run /etc/rc.d/netif restart, an error says: ifconfig: create: bad value the create command fails and everything related to the AP initialization. When I run the command in the CLI it works fine # ifconfig wlan0 create wlandev ath0 wlanmode ap What could be wrong? Thanks in advance. Alberto Mijares ___ 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: wlan0 + hostap + rc.conf
On Tue, Mar 16, 2010 at 5:37 PM, Maciej Milewski wrote: > Dnia wtorek, 16 marca 2010 o 21:50:05 Alberto Mijares napisał(a): >> ifconfig_sis0="up" >> wlans_ath0="wlan0" >> create_args_wlan0="wlanmode ap" >> ifconfig_wlan0="ssid nombre channel X mode 11g up" >> cloned_interfaces="bridge0" >> ifconfig_bridge0="addm wlan0 addm sis0 inet A.B.C.D netmask W.X.Y.Z up" >> >> However, when I run /etc/rc.d/netif restart, an error says: >> ifconfig: create: bad value >> the create command fails and everything related to the AP initialization. >> When I run the command in the CLI it works fine >> # ifconfig wlan0 create wlandev ath0 wlanmode ap >> What could be wrong? > Try putting channel and mode definition in create_args_wlan0 not in > ifconfig_wlan0. I did, but doesn't work either. ifconfig_sis0="up" ifconfig_wlan0="up" wlans_ath0="wlan0" create_args_wlan0="wlanmode ap channel x mode 11g ssid kraken2" cloned_interfaces="bridge0" ifconfig_bridge0="addm wlan0 addm sis0 inet netmask up" Any other suggestion? Alberto Mijares ___ 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: Elegant way to hack port source
On Fri, Mar 19, 2010 at 12:05 PM, Alejandro Imass wrote: > Hi, > > I need to modify a file from a port before building. Specifically, the > sane-backends pnm.c driver has a bug and the folks at the original > project has not fixed for a while. I need to modify pnm.c in the work > directory before compiling. What is an elegant way of doing this? If I > make and then modify, the main make file does not see the change made > in the file and will not recompile. And since there is no actual > makefile in the work subdirectory I can't compile there either! You could make a copy of graphics/sane-backends to graphics/sane-backends-devel, fix the source in the new port's directory and install it as a regular port. Check this out too http://www.freebsd.org/doc/en/books/porters-handbook/ Best regards Alberto Mijares ___ 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: Spamassasin, sendmail, Postfix
> Anyway, my point is that an Operating System should not impose a > specific MTA by default, and let the installer chose their favorite > MTA. From what I understand you can't even remove Sendmail from > standard FBSD and must only be de-activated. I personally think that > sucks (if it's true anyway). Note that it is not my intention to start > a flame MTA-war here. I think that Sendmail is exclellent if you like > it, but Postfix is excellent as well, and we should be eventually able > to install FBSD with Postfix as default MTA. I could be wrong, but I think you can build the world without sendmail passing the propper flags to make. In the other hand, sendmail is a piece of the operative system; so you could end up with some broken features. There are some other apps that belong to the OS as well, like bind9 for DNS, sh and csh for the shell and so on... It would be very difficult to let the user choose their favorite applications in an OS install. As I see it, FreeBSD is, in fact, a DNS server or a mail server by default, between others and if I want. And since Postfix has some limitations vs. Sendmail, I'm glad that is sendmail the choice of FreeBSD. I also must say that I frecuently use Postfix for Mail Servers, if I don't need exotic features. My point is that Sendmail doesn't hurt anyone as part of the FreeBSD Operative System; unlike some Linux based distros, which really impose default MTA's without the need. Best regards. Alberto Mijares ___ 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: Patch Submission to a Port
> I have finally tested and verified a patch for > /usr/ports/graphics/sane-backends > > To whon or where should I submit it? > There's no specific maintainer for this port. Write to po...@freebsd.org and submit the patch. Regards Alberto Mijares ___ 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: Spamassasin, sendmail, Postfix
On Mon, Mar 22, 2010 at 4:52 PM, Jerry wrote: > On Mon, 22 Mar 2010 16:00:17 -0430 > Alberto Mijares articulated: > >> As I see it, FreeBSD is, in fact, a DNS server or a mail server by >> default, between others and if I want. And since Postfix has some >> limitations vs. Sendmail, I'm glad that is sendmail the choice of >> FreeBSD. >> >> I also must say that I frecuently use Postfix for Mail Servers, if I >> don't need exotic features. > > Out of morbid curiosity, what limitations and exotic features? > > -- > Jerry Hi Jerry, You can achieve some kind of dynamic rules by using "lookup tables" or the pipe(8) daemon in Postfix. However, Sendmail has many more predefined macros, which can be used in rule sets for handle dynamic routing, headers-rewrites, queues, milters, MDA's, etc, for example. That's what I meant when said "limitations and exotic features". Not saying that Postfix is "bate quebrado" ;-) Without being a fan, I rise the flag for Postfix; I just know the power of Sendmail too. Best regards Alberto Mijares ___ 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: u3g network problem
> If your DNS are changed, I think that your network card is configured in DHCP > mode. > To dissallow DNS changes (in /etc/resolv.conf) by DHCP updates, you can add > this line to /etc/dhclient.conf : > prepend domain-name-servers > ,,; > After you must restart your network card and voilà. Better if you write supersede domain-name-servers instead. Regards Alberto Mijares ___ 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: Extended VLAN?
> > it sounds stupid but is the bridge up? > > ie do a ifconfig bridge0 up The phisical NIC's, members of the bridge, must be up either. Alberto Mijares ___ 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: Volume Manager on FreeBSD ( ZFS / VINUM / GEOM )
On Mon, Apr 19, 2010 at 8:37 PM, Leandro F Silva wrote: > Hi all, > > I'd like to know what kind of technology are you using on FreeBSD for volume > manager, I mean, Z file system (ZFS), VINUM, GEOM, or anyone else. > Seems that Oracle won't offer support for ZFS on opensolaris, so do you know > if FreeBSD will keep working with ZFS ? > > I had some old production servers those aren't using any kind of technology > for volume manager, so could you please share what you're using / ideas / > complains with us . I'd put my hands on fire for gvinum (vinum + GEOM). ZFS is great, but I'm not expert yet. Regards. Alberto Mijares ___ 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: 7.1 and wireless with ural
> And in my rc.conf I have this defined: > ifconfig_ural0="wpa DHCP" > hostname="my.home.server" > You must create a virtual interface (i.e. wlan0) and then configure it. # ifconfig wlan0 create wlandev ural0 Read man(5) rc.conf and the handbook for more information. You are using FreeBSD 8, don't you? Regards Alberto Mijares ___ 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: Disabling DNS
On Tue, Apr 20, 2010 at 7:01 AM, wrote: > > I have a FreeBSD server that, among other things, used to provide DNS for a > handful of domain names and a small network. All DNS is now provided by new > machines. On the old machine, DNS starts when the machine boots, and bind > continues to run lots of useless named and named-xfer processes throughout > the day. How do I turn off the DNS processes on the old machine and stop it > from starting every time the machine boots? Hi, FreeBSD has an excelent documentation. Just reading the manual you will know how to acomplish dummy sysadmin tasks like this. http://www.freebsd.org/doc/en/books/handbook/ Regards Alberto Mijares ___ 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"
[OT] Was: Disabling DNS
>> > I have a FreeBSD server that, among other things, used to provide DNS for >> > a handful of domain names and a small network. All DNS is now provided by >> > new machines. On the old machine, DNS starts when the machine boots, and >> > bind continues to run lots of useless named and named-xfer processes >> > throughout the day. How do I turn off the DNS processes on the old >> > machine and stop it from starting every time the machine boots? >> >> >> >> Hi, >> >> FreeBSD has an excelent documentation. Just reading the manual you >> will know how to acomplish dummy sysadmin tasks like this. > ^ > > Maybe you have a language problem, but this looks very much like > inappropriate response. We do no call names on this list. It > is unhelpful, unfriendly and non-professional. > > jerry When you give a specific answer, you are just giving that: one single answer. When you give the source of this answer instead, you are giving many answers at once. Now, it's obvious that the OP hasn't read the handbook ever and I think he didn't try, at least, a google search before asking this question. So, why is it inappropiate, unhelpful, unfriendly or non-professional my advise? Ain't it a tacit rule in every list to do some research before asking help? Just in case, I made a search of every word I used in a dictionary; and no offensive nor annoying meaning was found (OK, I misstyped "accomplish", sorry about that. My native language is spanish). Please let me know if I'm missing something else. Regards Alberto Mijares ___ 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: [OT] Was: Disabling DNS
> I suspect that jerry had a problem with the use of "dummy", which is > generally considered an insult when directed at a person. I.e. "You're > being a dummy." is an insult. > > Since your use of the term was associated with the task and not the > individual, the whole thing enters a grey area of interpretation. Some > might consider the sentence an insult, others might simply consider > the use of "dummy task" as another way to say "beginner task" or > "basic task". Hhmmm... I see. Of course I'm referring to the task in this way, not the person. > In any event, it's my experience that if you spend time on the Internet, > you will eventually end up offending someone. Just apologize for any > misunderstanding and move on. I apologize for any misunderstanding. Thank you for your time, Bill. Regards Alberto Mijares ___ 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: parsing terminfo entries
On Wed, Apr 21, 2010 at 3:57 PM, Robert Huff wrote: > > I found what I need, folks. > Thanks for the help. It would be great if you share the solution. Regards Alberto Mijares ___ 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 find literal in file and them delete that line
On Sun, May 9, 2010 at 11:08 PM, Fbsd1 wrote: > I want to search every line in the specified file for a literal and if found > then delete that line from the file and save the file all from within a sh > type of shell script. man(1) sed Regards Alberto Mijares ___ 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: question regarding FTP_PROXY
On Sat, May 22, 2010 at 6:07 AM, Dino Vliet wrote: > Hi freebsd folks, > > I'm having troubles installing some ports because I'm behind a restrictive pf > firewall. I've heard that this could > be circumvented if I use a ftp_proxy. I have this debian server that can > access ftp sites and I installed vsftp on > that and checked I can get to that box with ftp. > > However, if I try this command from my freebsd box: > > fetch: ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-4.0.3.tar.gz > > I get: > > "Not logged in" > > My ftp proxy environment variable in .profile is: > > FTP_PROXY=ftp://ftp:f...@192.168.2.101:21 (also tried with only > ftp://192.168.2.101:21 but no luck) > export FTP_PROXY I think you should set FTP_LOGIN and FTP_PASSWORD whith propper credential, or set them whithin the URL. See man(3) fetch. Regards Alberto Mijares ___ 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"