Re: Help vote for FreeBSD
On Wed, Oct 9, 2013 at 10:11 AM, openda...@hushmail.com wrote: Hi, Could you guys help vote for FreeBSD over at Digital Ocean? https://digitalocean.uservoice.com/forums/136585-digital-ocean/suggestions/3232571-support-bsd-os- Basically it's the only SSD cloud hosting provider ( https://www.youtube.com/watch?v=vHZLCahai4Q) in existence and if the response is good enough, they'll start offering FreeBSD. Thanks! uhmmm their not the only SSD cloud provider, and though its a shame they dont provide FreeBSD while others do. I do know of another with support for 8, 9, and 10 FreeBSD with SSD storage. matter of fact their whole SAN is FreeBSD based also. email me offlist for info if you like. O.D. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help vote for FreeBSD
Keep them coming guys! Couple hundred more and FreeBSD will top the list: https://digitalocean.uservoice.com/forums/136585-digital-ocean/filters/top This would be great PR for FreeBSD too. Thank you! On 9. oktober 2013 at 2:11 PM, openda...@hushmail.com wrote: Hi, Could you guys help vote for FreeBSD over at Digital Ocean? https://digitalocean.uservoice.com/forums/136585-digital- ocean/suggestions/3232571-support-bsd-os- Basically it's the only SSD cloud hosting provider (https://www.youtube.com/watch?v=vHZLCahai4Q) in existence and if the response is good enough, they'll start offering 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: Help to secure my FreeBSD/Apache installation
Hi, Reference: From: Andy Wodfer wod...@gmail.com Date: Wed, 17 Jul 2013 23:11:27 +0200 Andy Wodfer wrote: Hi everybody! I'm running a server on FreeBSD 8.1 STABLE (apache 2.2.16, mysql 5.1.50, To quote front page of http://www.freebsd.org: * Production: 9.1 * Legacy: 8.4 My net. con. is too slow right now to check this for you, but look yourself, I bet FreeBSD-8.1 was long ago declared by security-officer@ as not supported as too old, php 5.3.3) and I server some websites from it, most of them using Joomla or Wordpress CMS. I recently had a security breach where someone used a hole in an older Joomla version and was able to install a php script called webadmin.php. From that the person was able to browse all folders and view all files - and change them... not nice! Apache runs using the www user (std installation) and all virtualhosts share the same user, but are placed in different directories. I need some help and pointers to what I can do to strengthen security and to atleast prevent someone from writing to the filesystem and browse all directories and files. (allthough joomla needs some folders to be chmod 777) I'm thinking about installing apache2-mpm-itk or similare to jail each site into its own directory and run each virtualhost as its own user. Is this a good idea? Thankful for answers and pointers! All the best - Andy Upgrade to 8.4 or 9.1, Reinstall new versions of all ports, cd /usr/ports/ports-mgmt/portaudit ; make install ; rehash ; portaudit ; # (Which is in 9.1 not in 8.2) port-audit Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with . Send plain text. No quoted-printable, HTML, base64, multipart/alternative. ___ 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: Help to secure my FreeBSD/Apache installation
Hi, Reference: From: Julian H. Stacey j...@berklix.com Date: Wed, 17 Jul 2013 23:38:51 +0200 Julian H. Stacey wrote: Hi, Reference: From: Andy Wodfer wod...@gmail.com Date: Wed, 17 Jul 2013 23:11:27 +0200 Andy Wodfer wrote: Hi everybody! I'm running a server on FreeBSD 8.1 STABLE (apache 2.2.16, mysql 5.1.50, To quote front page of http://www.freebsd.org: * Production: 9.1 * Legacy: 8.4 My net. con. is too slow right now to check this for you, but look yourself, I bet FreeBSD-8.1 was long ago declared by security-officer@ as not supported as too old, Re version numbers: Your 8.1 STABLE does not exist ! Only 8 Stable, 8.1-RELEASE, 8.2-RELEASE, etc. http://www.freebsd.org/security/unsupported.html 8.1 8.2 not supported. http://www.freebsd.org/security/index.html#sup 9.1-RELEASE has /usr/ports/www/apache22/work/httpd-2.2.23 Upgrade to 8.4 or 9.1, Reinstall new versions of all ports, cd /usr/ports/ports-mgmt/portaudit ; make install ; rehash ; portaudit ; # (Which is in 9.1 not in 8.2) port-audit Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with . Send plain text. No quoted-printable, HTML, base64, multipart/alternative. ___ 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: Help to secure my FreeBSD/Apache installation
On Wed, 17 Jul 2013 23:11:27 +0200, Andy Wodfer wrote: Hi everybody! I'm running a server on FreeBSD 8.1 STABLE (apache 2.2.16, mysql 5.1.50, php 5.3.3) and I server some websites from it, most of them using Joomla or Wordpress CMS. Those are typical (and known) attack vectors. Make sure you're always up to date regarding fixes! I recently had a security breach where someone used a hole in an older Joomla version and was able to install a php script called webadmin.php. From that the person was able to browse all folders and view all files - and change them... not nice! This implies you cannot know in how far your system has been compromized. I'd suggest a new installation. Make backups of user files and configurations. Make sure you audit them (so you won't re-install a possible backdoor after a clean install). I need some help and pointers to what I can do to strengthen security and to atleast prevent someone from writing to the filesystem and browse all directories and files. (allthough joomla needs some folders to be chmod 777) I'm thinking about installing apache2-mpm-itk or similare to jail each site into its own directory and run each virtualhost as its own user. Is this a good idea? At least it is a _working_ idea. If it is actually a good idea depends on many different factors. Jails are a good means of separation. Sometimes, using simple user accounts is sufficient, but especially regarding complex web content (such as CMS, stuff that involves PHP and whatnot) the more security you can add, the better it is. Also install portaudit to check for security fixes that have been made available for the software you're running. Apply restrictions as hard as possible. If programs want write access to specific directories, try to make then writable per uer accounts, not within the global tree structure (or even within system directories). The nobody user can also be helpful (regarding on what you are running). If you can separate the different CMSs and sites, a possible security breach will be restricted to that only instance. It can be taken down without affecting the other sites. But also: Educate your users. In order to do that, use money. Make them pay. ;-) PS. Allow me a short addition, I know people will beat me with a pointed stick for mentioning it, but: There are no folders. This term is wrong. What you mean are called directories. A folder is the name of one visual representation (among others) of a directory in a graphical user interface. It _is_ not a directory and it is not similar to one. It's comparable to the relation of the handbrake light in your car's dashboard vs. the real handbrake. Don't claim your handbrake light isn't working when in fact your handbrake is broken. :-) Bottom line: Directory correct, folder plain wrong. You don't call files sheets of paper either. :-) -- 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
Re: Help finding sound driver
2013/6/26 Polytropon free...@edvax.de: On Wed, 26 Jun 2013 11:45:10 +0700 (ICT), Olivier Nicole wrote: Azalia ADI1986A, 6 -Channel High-Definition Audio CODEC Support Jack-Sensing, Enumeration, Multi-streaming S/PDIF out on back I/O port Jack-Sensing Enumeration Is there any change a driver exists for that audio chipset, for FreeBSD 9.1? Probably snd_hda will work. A common solution is to try this first (because of the name matching), and then load all drivers and see which one is working. Check the kernel output messages and also cat /dev/sndstat to confirm success. Intel High Definition Audio (also called HD Audio or Azalia) http://www.freebsd.org/cgi/man.cgi?snd_hda Regards. ___ 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: Help finding sound driver
On Wed, Jun 26, 2013 at 4:31 PM, Sergio Tam tam.ser...@gmail.com wrote: 2013/6/26 Polytropon free...@edvax.de: On Wed, 26 Jun 2013 11:45:10 +0700 (ICT), Olivier Nicole wrote: Azalia ADI1986A, 6 -Channel High-Definition Audio CODEC Support Jack-Sensing, Enumeration, Multi-streaming S/PDIF out on back I/O port Jack-Sensing Enumeration Is there any change a driver exists for that audio chipset, for FreeBSD 9.1? Probably snd_hda will work. A common solution is to try this first (because of the name matching), and then load all drivers and see which one is working. Check the kernel output messages and also cat /dev/sndstat to confirm success. Intel High Definition Audio (also called HD Audio or Azalia) http://www.freebsd.org/cgi/man.cgi?snd_hda That was it, thank you. Best regards, Olivier ___ 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: Help finding sound driver
On Wed, 26 Jun 2013 11:45:10 +0700 (ICT), Olivier Nicole wrote: Azalia ADI1986A, 6 -Channel High-Definition Audio CODEC Support Jack-Sensing, Enumeration, Multi-streaming S/PDIF out on back I/O port Jack-Sensing Enumeration Is there any change a driver exists for that audio chipset, for FreeBSD 9.1? Probably snd_hda will work. A common solution is to try this first (because of the name matching), and then load all drivers and see which one is working. Check the kernel output messages and also cat /dev/sndstat to confirm success. -- 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
Re: help with SVN needed {slightly off-topic}
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/20/13 6:55 PM, Gary Kline wrote: [...] the part I need help with is Subversion. I used CVS about 15 years ago, and svn looks slightly familiar. the project on google.code are looking for me to use svn to install my base files. I think; not sure. on my desktop here I have one development directory for all my source files. I have subversion installed here. briefly: what now? do I create a svn directory here? or do I ftp/scp/?? things to the voice-by-computer account to the google.code project? thanks for any help. gary [...] Hi Gary, This will help you get started importing your code into the Google repository: http://svnbook.red-bean.com/en/1.7/svn.tour.importing.html After that, you'll find answers to most other questions here: http://svnbook.red-bean.com/en/1.7/index.html Best regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.13 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlD9qTQACgkQ0sRouByUApAMcwCfU3foxCGbu9bxwynYcWD/Kh3M Uo4An2L+nWg0FuamEMayMhp/JTfMJR3f =tYmv -END PGP SIGNATURE- ___ 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: Help! Firefox + acroread costs me $$$$
So, on FreeBSD, how does one get firefox and/or opera to use, for example, evince or some other PDF displayer instead of using this goddamn lousey buggy *^%$#@ acroread ? In Firefox, Edit-Preferences, click the Applications tab, look for application/pdf and make the obvious adjustments. I find that for nearly everything else, chromium works better than firefox, but for PACER, only Firefox supports RECAP. You do use RECAP, I hope. R's, John PS: On my FBSD 9.0, acroread8 works OK, much slower than evince but in some cases it renders the PDF better, and often translates to postscript better for printing. ___ 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: Help! Firefox + acroread costs me $$$$
Hi, Reference: From: Warren Block wbl...@wonkity.com Date: Tue, 11 Dec 2012 20:10:16 -0700 (MST) Message-id: alpine.bsf.2.00.1212112008090.8...@wonkity.com Warren Block wrote: On Tue, 11 Dec 2012, Ronald F. Guilmette wrote: So, on FreeBSD, how does one get firefox and/or opera to use, for example, evince or some other PDF displayer instead of using this goddamn lousey buggy *^%$#@ acroread ? Remove acroread entirely. Install graphics/xpdf. Click on a PDF link, tell Firefox to use xpdf and do that for all files of this type. Be aware xpdf will not do quite all PDF files that (horribly slow) acroread can (ie new PDFs with data entry forms xml). I use xpdf all I can for normal reading of PDF tech specs etc, use acroread just for filling in UK corporation tax return PDFs, though freebsd has other solutions that may work for those pdf/xml too. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with . Send plain text. Not: HTML, multipart/alternative, base64, quoted-printable. ___ 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: Help! Firefox + acroread costs me $$$$
On Tue, Dec 11, 2012 at 05:16:12PM -0800, Ronald F. Guilmette wrote: This problem has been annoying me for some time now, but until now it was never really an issue that I could not easily work-around. I was just trying to download a PDF document off of the Pacer[tm] federal courts web site. These are not free. They cost ten cents per page. I tried to download a 29 page document and it downloaded into firefox just fine and then was displayed in a new firefox tab which was apparently using acroread8 to display the document. I know from past experience that acroreadN runs like crap on FreeBSD... often using up enormous amounts of CPU % for no apparently good reason. But this time it really got my goat. I clicked on the little acroread icon for printing the current document, a pop-up dialog box for printing came up, but before I could hit the print button on that, everything relating to firefox... all open tabs and all open windows... froze up solid. Now, having wasted three bucks for no good reason (and STILL not having a hardcopy of the document I wanted), I am motivated to finally get this sorted out. So, on FreeBSD, how does one get firefox and/or opera to use, for example, evince or some other PDF displayer instead of using this goddamn lousey buggy *^%$#@ acroread ? The first thing to do should simply be to uninstall acroread. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] signature.asc Description: Digital signature
Re: Help! Firefox + acroread costs me $$$$
12.12.2012 12:16, Ronald F. Guilmette пишет: So, on FreeBSD, how does one get firefox and/or opera to use, for example, evince or some other PDF displayer instead of using this goddamn lousey buggy *^%$#@ acroread ? Or do I have to fire up my Windows machine, just to print out a lousey PDF ? pdf_download extention for firefox will help you to control links to pdf files (open in tab, download, open with another reader) -- Dima Panov (flu...@freebsd.org) (KDE, Office)@FreeBSD team Facebook: http://www.facebook.com/fluffy.khv IRC: fluffy@EFNet, fluffykhv@FreeNode twitter: fluffy_khv | skype: dima.panov ___ 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: Help! Firefox + acroread costs me $$$$
On Tue, 11 Dec 2012, Ronald F. Guilmette wrote: So, on FreeBSD, how does one get firefox and/or opera to use, for example, evince or some other PDF displayer instead of using this goddamn lousey buggy *^%$#@ acroread ? Remove acroread entirely. Install graphics/xpdf. Click on a PDF link, tell Firefox to use xpdf and do that for all files of this type. ___ 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: Help! Firefox + acroread costs me $$$$
On Tue, 11 Dec 2012 20:10:16 -0700 (MST), Warren Block wrote: On Tue, 11 Dec 2012, Ronald F. Guilmette wrote: So, on FreeBSD, how does one get firefox and/or opera to use, for example, evince or some other PDF displayer instead of using this goddamn lousey buggy *^%$#@ acroread ? Remove acroread entirely. Install graphics/xpdf. Click on a PDF link, tell Firefox to use xpdf and do that for all files of this type. The xpdf program seems to _sometimes_ have problems with carelessly created PDF documents. The best idea would be to use a Firefox extension (as suggested) to first _download_ and _save_ the PDF file to disk for further use. Then, testing xpdf and using it to print the file would be much easier. If the file has been paid for, it can be opened several times whatever program should be tested. For example, even gv or zathura could be tried. And in the end, even acroread. Even _I_ have to admit that I'm using it from time to time, even if it REDEFINES THE MOUSE CURSOR to an ugly white arrow! What a stupid move... However, for paid content, first saving, then using, would be the best way to deal with it. So the in-line processing chain consisting of Firefox + somehow embedded acroread (really?) could be split, so the reason for the system freeze could be determined. -- 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
Re: HELP: some process eat my /var
On 05/11/2012 09:32, Eugen Konkov wrote: Здравствуйте, Robert. # du -h /var | sort -nr | head -n 25 976k/var/db/mysql/mysql 892k/var/mail/freeline.in.ua/luda 888M/var/log/radius/radacct/10.11.19.50 858M/var/crash 840k/var/mail/freeline.in.ua/luda/cur 836k/var/db/firebird/help 608k/var/spool 564k/var/db/pkg/perl-threaded-5.14.1_3 552k/var/spool/postfix 512B/var/named/dev 432k/var/db/ports 412k/var/db/pkg/python26-2.6.7_2 392k/var/spool/postfix/defer 354M/var/mail 264k/var/db/pkg/libX11-1.4.4,1 244k/var/db/pkg/en-freebsd-doc-20110521 236k/var/tmp 236k/var/mail/freeline.in.ua/znz2 224k/var/monit 223M/var/log/radius/radacct/10.10.0.2 172M/var/mail/freeline.in.ua 171M/var/mail/freeline.in.ua/office 170M/var/mail/freeline.in.ua/office/cur 158M/var/mail/kes.net.ua 157M/var/mail/kes.net.ua/kes Something mistery take space, because of files take only 6.4G # du -h -d 0 /var 6.4G/var bug df says that there are more space was taken: df -h /dev/ada0s1d 30G 24G3.5G87%/var 6.4G vs 24G Its possible that a process is holding open an unlinked file (some processes do this for tmp files as they are automatically deleted if the program exit, I believe mysql does it for tmp tables for example) I've had this happen when a log got rotated but the process wasnt notified so it kept writing to the file. I believe lsof +L1 will show unlinked but open files. Vince Вы писали 3 ноября 2012 г., 5:01:49: RH Gary Aitken writes: Looks like /var/log has most of it. If you're running X, check for a huge Xorg.0.log. I had this problem as a result of a radeon graphics card that would get into some kind of reinitialization loop. In any case, look at the files in /var/log RH A way to check disk usage: RH du /var | sort -nr | head -n 25 RH If you see something you don't recognize or that seems wrong RH RH Robert Huff RH ___ RH freebsd-questions@freebsd.org mailing list RH http://lists.freebsd.org/mailman/listinfo/freebsd-questions RH To unsubscribe, send any mail to RH freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: HELP: some process eat my /var
Eugen Konkov kes-...@yandex.ru writes: Здравствуйте, Vincent. Вы писали 5 ноября 2012 г., 12:38:47: VH Its possible that a process is holding open an unlinked file (some VH processes do this for tmp files as they are automatically deleted if the VH program exit, I believe mysql does it for tmp tables for example) VH I've had this happen when a log got rotated but the process wasnt VH notified so it kept writing to the file. VH I believe lsof +L1 will show unlinked but open files. it shows nothing (( Not surprising; I think you had already covered that possibility with fstat(1). It's vaguely possible that the space is used in large files that are covered by the dev filesystem mounted in named's chroot, but I think it's more likely you have some filesystem corruption. Have you tried an fsck(8)? As usual, you would want good backups first, and then rebooting to single-user mode so you can fsck the filesystem without it being mounted. Good luck. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: HELP: some process eat my /var
On 11/2/2012 2:05 PM, Eugen Konkov wrote: 858M./crash 1.3G./db 3.7G./log Cleanup old coredumps in /crash. Ensure /etc/newsyslog.conf captures all of your big logfiles in /var/log. Also consider moving whatever is large in /var/db elsewhere. Bryan ___ 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: HELP: some process eat my /var
On 11/2/2012 2:20 PM, Eugen Konkov wrote: Здравствуйте, Bryan. Вы писали 2 ноября 2012 г., 21:09:49: BD On 11/2/2012 2:05 PM, Eugen Konkov wrote: 858M./crash 1.3G./db 3.7G./log BD Cleanup old coredumps in /crash. Ensure /etc/newsyslog.conf captures all BD of your big logfiles in /var/log. Also consider moving whatever is large BD in /var/db elsewhere. BD Bryan Notice df -h /dev/ada0s1d 30G 23G3.7G87%/var and notice du -h -d 1 6.2G I have only 6.2G are occupied by files where 18Gb of disk space? Are you running MySQL? It uses hidden tmpfiles that may grow quite large. Restarting it may cleanup the space. Bryan ___ 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: HELP: some process eat my /var
Eugen Konkov wrote: how to find which process take space? You might want to look at fstat and lsof. fstat is in system while lsof is an add-on third party port. Keep in mind that when you do find the space you are looking for it will be held 'open' as an open file in the file system as long as the process is running. During normal operations you can shut down the process and release the space so it can be deleted. This is relatively straightforward as long as everything is 'normal'. The more difficult position arises when a process has behaved abnormally, including going zombie, crashing, etc. With the 'abnormal' there can be a chance that even though the process is gone you may encounter difficulty trying to delete/recover the space because the file system still considers it an open file. -Mike ___ 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: HELP: some process eat my /var
Looks like /var/log has most of it. If you're running X, check for a huge Xorg.0.log. I had this problem as a result of a radeon graphics card that would get into some kind of reinitialization loop. In any case, look at the files in /var/log On 11/02/12 13:05, Eugen Konkov wrote: how to find which process take space? root@newflux:/var/log # cd /var root@newflux:/var # root@newflux:/var # root@newflux:/var # root@newflux:/var # root@newflux:/var # root@newflux:/var # df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ada0s1a 2G455M1.3G25%/ devfs 1.0k1.0k 0B 100%/dev /dev/ada0s1e3.9G488M3.1G13%/tmp /dev/ada0s1f 37G 27G7.3G79%/usr /dev/ada0s1d 30G 23G3.7G87%/var /dev/ada0s1g216G8.0k199G 0%/backup procfs 4.0k4.0k 0B 100%/proc devfs 1.0k1.0k 0B 100%/var/named/dev root@newflux:/var # fstat -f /var USER CMD PID FD MOUNT INUM MODE SZ|DV R/W root fstat 97928 wd /var 2 drwxr-xr-x 512 r root csh96949 wd /var 2 drwxr-xr-x 512 r root mc 96947 wd /var 802560 drwxr-xr-x3072 r root csh96124 wd /var 2 drwxr-xr-x 512 r root snmpd 960247 /var 804161 -rw-r- 728 r root mpd5 515854 /var 3691792 -rw-r--r-- 6 rw freeradi radiusd515543 /var 802703 -rw-r- 0 w root inetd 226873 /var 3691804 -rw--- 5 w root cron 22392 wd /var 3772032 drwxr-x--- 512 r root cron 223923 /var 3691803 -rw--- 5 w smmspsendmail 22311 wd /var 1926151 drwxrwx--- 512 r smmspsendmail 223114 /var 1926203 -rw--- 51 w root sendmail 22202 wd /var 1926147 drwxr-xr-x 512 r root sendmail 222025 /var 3691802 -rw--- 80 w bind named 7370 wd /var 401288 drwxr-xr-x 512 r bind named 7370 root /var 401280 drwxr-xr-x 512 r bind named 7370 jail /var 401280 drwxr-xr-x 512 r root devd56935 /var 3691824 -rw--- 4 w quagga bgpd46163 /var 3691791 -rw-r--r-- 5 rw quagga zebra 46115 /var 3691788 -rw-r--r-- 5 rw root@newflux:/var # du -h -d 1 4.0k./.snap 4.0k./account 12k./at 4.0k./audit 3.1M./backups 858M./crash 8.0k./cron 1.3G./db 36k./empty 4.0k./heimdal 3.7G./log 352M./mail 8.0k./msgs 1.6M./named 4.0k./preserve 108k./run 4.0k./rwho 608k./spool 236k./tmp 28k./yp 4.0k./games 4.0k./agentx 4.0k./cache 28k./net-snmp 28k./lost+found 212k./monit 6.2G. ___ 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: HELP: some process eat my /var
Gary Aitken writes: Looks like /var/log has most of it. If you're running X, check for a huge Xorg.0.log. I had this problem as a result of a radeon graphics card that would get into some kind of reinitialization loop. In any case, look at the files in /var/log A way to check disk usage: du /var | sort -nr | head -n 25 If you see something you don't recognize or that seems wrong Robert Huff ___ 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: help with gpart
On Wed, 31 Oct 2012, d...@safeport.com wrote: I am trying to put FreeBSD on an HP laptop. The use up all the partitions to I deleted the least useful one, shrunk the windows partition and tried to add freeBSD. gpart show: = 63 625142385 ada0 MBR (298G) 63 1985- free - (992k) 2048 407552 1 ntfs [active] (199M) 409600 311951360 2 ntfs (148G) 312360960 33- free - (16k) 312360993 283115448 4 freebsd (135G) 595476441 577575- free - (282M) 596054016 28880896 3 ntfs (13G) 624934912 207536- free - (101M) I do not have any flexibility as to where #4 is. I would like to use the 9.0 installer from this point but it wants to add BSD partitions to the 282M space. I am not sure after much man-ing and google-ing what gpart commands are required. I guess I could use sysinstall at this point but learning gpart seems like a good thing. I assume I need to do something like: gpart add set -a active -i 4 ada04 (not sure geom is correct) No, for slice 4, it would be ada0s4. For the MBR setup, bootcode must be added to both the MBR (ada0) and the slice. gpart bootcode -b /boot/boot0 ada04 and then add the mounts. I would like / swap /var 10g /usr 20g /home (the rest) but am somewhat lost about the syntax and geom values. thanks for any help bsdlabel partitions are created inside a slice. No idea whether the partition numbers being out of order will be a problem... gpart create -s bsd ada0s4 gpart bootcode -b /boot/boot ada0s4 Then add partitions inside that: gpart add -t freebsd-ufs -s 2g ada0s4 gpart add -t freebsd-swap -s 4g ada0s4 gpart add -t freebsd-ufs -2 10g ada0s4 ... I strongly suggest taking advantage of labels with the -l option. ___ 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: HELP! core dumps: install, mtree, et cetera all of the sudden after portmaster security/cyrus-sasl2
Am 08/16/12 21:44, schrieb Garrett Cooper: On Thu, Aug 16, 2012 at 8:33 AM, Hartmann, O. ohart...@zedat.fu-berlin.de wrote: I ran into a very delicate and nasty situation. ... On both FBSD 10 boxes, the installation of the port security/cyrus-sasl2 got corrupted by install and/or mtree dumping core and signalling SIGNAL 11. Booting into multiuser mode is impossible, login core dumps SIGNAL 11, many other daemons, too. The only way is to boot into single user mode. I'm not drawing a correlation between this and unrelated coredumping processes. Me neither, I report this for completeness, since I'm not a OS developer, such a behaviour could hint/indicate people who are involved in the OS development, what is going on. Sorry when I'm trying to be too precise (precise as precise I can be without the exact terminology!). An installation failed due to pkg(ng) was missing libarchive.so via portmaster or via core dumping install(1). By installing on one box, my home box, port security/cyrus-sasl2 manually, luckily install(1) and mtree(1) didn't coredump and it worked - and this precedure rescued me. But on my lab's development box, it doesn't work! Don't make delete-old-lib unless you have it moved off to compat directories, or have rebuilt everything using the new libarchive. I didn't! As I wrote before, this mess happened on ALL(!) freeBSD 10.0-CURRENT boxes in the very same way when I updated/reinstalled security/cyrus-sasl2. Moreover: I can reproduce this on all boxes. All my boxes use OpenLDAP as a backend with SASL2 enabled (not used so far). On this specific box, where this nasty problem also occured the same way by simply recompiling everything for port www/apache22, including the reinstallation of port security/cyrus-sasl2. Nearly every binary is suddenly coredumping (as on the home box). login, vi, install, devfs, syslogd, mtree, id, find ... a whole lot of binaries seem to be compromised by something I do not see (libsasl2.so perhaps?). truss the binaries to figure out exactly what's going wrong. I will try, but when this errative coredumps of binaries occur, nothing works properly that is using any kinf of dynamical loaded library! Only the binaries (static?) from /resucue/* do their work. A lot of this lost effort could be avoided (like others have posted on the list more than once), by having a centralized package distribution server, and by having VMs or jails and keeping snapshots with pre-upgrade state on the package building machine to avoid dead in the water scenarios like you're in right now. Yes, I'm working on this. it seems, that it becomes more relevant since I realized that FreeBSD suffers sometimes from misleaded ports or ports which suddenly are marked BROKEN and do not get compiled ... I tried to help myself via copying /rescue/vi to /usr/bin/vi to have at least a working vi. But in /rescue, I can not find install or mtree. I'm not familiar with the sophisticated ways of /rescue. Where are install(1) and mtree(1)? I ran into this issue too a little while ago. I basically gave up on recovering a VM and nuked and repaved it using a LiveCD with a chroot, some cp -p'ing, etc. But yes.. it would be nice if I could have recovered the system at least with a static toolchain: cc, binutils [equivalent], mtree, install, etc. This is how I recovered the nasty broken box. The other one was easy to recover by reinstalling security/cyrus-sasl2. I'm quite sure that there is something very foul with something in LDAP or SASL2, since I can reproduce that proplem. I saw that rtdl-elf has got some quirks these days, I will try to go behind the date/version of the source tree when it was committed and check whether this is the problem. ... Disabling this pkgng tag leads to reinstallation of missing packages, which are store in the pkgng sqlite format and not as ASCII anymore, but then I get /var/runld-elf.so.hints: No such file or directory Error: shared library iconv.3 does not exist. service ldconfig start ? Yes ... sorry ... in the heat of the fight I forgot ... but it doesn't make the problem go away. But most of the libs have never been touch! So what is the loader complaining about? ... I tried to find rescue images and a rescue DVD of a snap shot server, but there is no way to crawl through the informations on the web pages towards a snapshot. All folders end up in 2011 and highly outdated (www.freebsd.org, I didn't look at mirrors since I thought the main server carries the most recent stuff). This isn't funny. No lead, no hint, even in the download section. If someone has some hints how to recompile the sources with an emergency booted disk, I highly appreciate some desater advice. Maybe the release of FreeBSD-10-CURRENT sources I compiled do have accidentally a nasty bug, so it would be nice to update the sources and have a complete recompilation done. Thanks in advance, Simply
Re: HELP! core dumps: install, mtree, et cetera all of the sudden after portmaster security/cyrus-sasl2
On 08/16/12 17:44, Glen Barber wrote: On Thu, Aug 16, 2012 at 05:33:20PM +0200, Hartmann, O. wrote: I ran into a very delicate and nasty situation. On several boxes, FreeBSD 9.1-PRE and FreeBSD 10-CURRENT (build of CURRENT sources from yesterday, r239295 Wed August 15 17:04:51 CEST 2012 amd64, I had to recompile all requirements of port Apache22, since after the port update it core dumped. On FreeBSD 9.1-PRE, with pkg(ng), things went well. Recompilation and installation of all portmaster -f apache-2.2 requirements went perfect. On both FreeBSD 10-CURRENT boxes it ended up in a mess, all of a sudden(!), while reinstalling port security/cyrus-sasl2, things started to fail in a dramatik way! On both FBSD 10 boxes, the installation of the port security/cyrus-sasl2 got corrupted by install and/or mtree dumping core and signalling SIGNAL 11. Booting into multiuser mode is impossible, login core dumps SIGNAL 11, many other daemons, too. The only way is to boot into single user mode. An installation failed due to pkg(ng) was missing libarchive.so via There is pkg-static for recovering in this type of situation. Oh ... I'm new to pkg(ng). portmaster or via core dumping install(1). By installing on one box, my home box, port security/cyrus-sasl2 manually, luckily install(1) and mtree(1) didn't coredump and it worked - and this precedure rescued me. But on my lab's development box, it doesn't work! On this specific box, where this nasty problem also occured the same way by simply recompiling everything for port www/apache22, including the reinstallation of port security/cyrus-sasl2. Nearly every binary is suddenly coredumping (as on the home box). login, vi, install, devfs, syslogd, mtree, id, find ... a whole lot of binaries seem to be compromised by something I do not see (libsasl2.so perhaps?). I tried to help myself via copying /rescue/vi to /usr/bin/vi to have at least a working vi. But in /rescue, I can not find install or mtree. I'm not familiar with the sophisticated ways of /rescue. Where are install(1) and mtree(1)? Trying to reinstall security/cyrus-sasl2 from single-user fails due install coredumps. pkg(ng) fails due to missing libpkg.so.5 and even rejects being reinstalled. But /usr/local/lib/libpkg.so.0 is even there! Disabling the use of pkg with commenting out WITH_PKGNG=yes in /etc/make.conf leads to the above issues with mtree and install. Disabling this pkgng tag leads to reinstallation of missing packages, which are store in the pkgng sqlite format and not as ASCII anymore, but then I get /var/runld-elf.so.hints: No such file or directory Is this a typo, or literal transcription? (The missing / between 'run' and 'ld-elf.so.hints', that is.) A typo, sorry. I had to type it from the screen of the broken box to the laptop. Error: shared library iconv.3 does not exist. But most of the libs have never been touch! So what is the loader complaining about? Well, I'm floating like a dead man in the water and I'm glad that one box survided although suffering from the same symptomes. I tried to find rescue images and a rescue DVD of a snap shot server, but there is no way to crawl through the informations on the web pages towards a snapshot. All folders end up in 2011 and highly outdated (www.freebsd.org, I didn't look at mirrors since I thought the main server carries the most recent stuff). This isn't funny. No lead, no hint, even in the download section. Yes, I have been complaining about this for a while now... This is a so unneccessary issue. Why are people bothering themselfs with hiding a bit of information? If one isn't a cold-blood developer aware of all the neat knobs of FBSD and where to ask and where to look, a novice or not-so-well-informed guy like me run into frustration. The main page should have a hint present, where to find the newest stuff. Leaving the officiela page the way it is at the moment in this specific issue, it looks a bit unmaintained ... If someone has some hints how to recompile the sources with an emergency booted disk, I highly appreciate some desater advice. Maybe the release of FreeBSD-10-CURRENT sources I compiled do have accidentally a nasty bug, so it would be nice to update the sources and have a complete recompilation done. If you can get booted into a recovery medium, you can mount /usr/src and /usr/obj from the hosed system, and should be able to installworld/installkernel into the hosed system with DESTDIR set. Glen I do this the very moment with the RELEASE CD I found at allbsd.org for the most recent FBSD 10.0-CURRENT as from 16.08.2012. I try to build the sources and install them into the mounted DESTDIR. Oliver ___ 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: HELP! core dumps: install, mtree, et cetera all of the sudden after portmaster security/cyrus-sasl2
On Fri, Aug 17, 2012 at 09:44:40AM +0200, Hartmann, O. wrote: An installation failed due to pkg(ng) was missing libarchive.so via There is pkg-static for recovering in this type of situation. Oh ... I'm new to pkg(ng). No worries. It is a nice thing to know about, since after a big shlib bump during an upgrade, if all else is broken, you can still at least get /rescue stuff and pkg-static to upgrade third party software. If someone has some hints how to recompile the sources with an emergency booted disk, I highly appreciate some desater advice. Maybe the release of FreeBSD-10-CURRENT sources I compiled do have accidentally a nasty bug, so it would be nice to update the sources and have a complete recompilation done. If you can get booted into a recovery medium, you can mount /usr/src and /usr/obj from the hosed system, and should be able to installworld/installkernel into the hosed system with DESTDIR set. I do this the very moment with the RELEASE CD I found at allbsd.org for the most recent FBSD 10.0-CURRENT as from 16.08.2012. I try to build the sources and install them into the mounted DESTDIR. I have lately been creating memstick images for this exact type of thing. On -CURRENT and 9-STABLE, you can do: # make -C /usr/src buildworld buildkernel # make -C /usr/src/release NOSRC=yes NODOCS=yes NOPORTS=yes memstick Then take the resulting memory stick image to use for recovery. Glen ___ 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: HELP! core dumps: install, mtree, et cetera all of the sudden after portmaster security/cyrus-sasl2
On Thu, Aug 16, 2012 at 05:33:20PM +0200, Hartmann, O. wrote: I ran into a very delicate and nasty situation. On several boxes, FreeBSD 9.1-PRE and FreeBSD 10-CURRENT (build of CURRENT sources from yesterday, r239295 Wed August 15 17:04:51 CEST 2012 amd64, I had to recompile all requirements of port Apache22, since after the port update it core dumped. On FreeBSD 9.1-PRE, with pkg(ng), things went well. Recompilation and installation of all portmaster -f apache-2.2 requirements went perfect. On both FreeBSD 10-CURRENT boxes it ended up in a mess, all of a sudden(!), while reinstalling port security/cyrus-sasl2, things started to fail in a dramatik way! On both FBSD 10 boxes, the installation of the port security/cyrus-sasl2 got corrupted by install and/or mtree dumping core and signalling SIGNAL 11. Booting into multiuser mode is impossible, login core dumps SIGNAL 11, many other daemons, too. The only way is to boot into single user mode. An installation failed due to pkg(ng) was missing libarchive.so via There is pkg-static for recovering in this type of situation. portmaster or via core dumping install(1). By installing on one box, my home box, port security/cyrus-sasl2 manually, luckily install(1) and mtree(1) didn't coredump and it worked - and this precedure rescued me. But on my lab's development box, it doesn't work! On this specific box, where this nasty problem also occured the same way by simply recompiling everything for port www/apache22, including the reinstallation of port security/cyrus-sasl2. Nearly every binary is suddenly coredumping (as on the home box). login, vi, install, devfs, syslogd, mtree, id, find ... a whole lot of binaries seem to be compromised by something I do not see (libsasl2.so perhaps?). I tried to help myself via copying /rescue/vi to /usr/bin/vi to have at least a working vi. But in /rescue, I can not find install or mtree. I'm not familiar with the sophisticated ways of /rescue. Where are install(1) and mtree(1)? Trying to reinstall security/cyrus-sasl2 from single-user fails due install coredumps. pkg(ng) fails due to missing libpkg.so.5 and even rejects being reinstalled. But /usr/local/lib/libpkg.so.0 is even there! Disabling the use of pkg with commenting out WITH_PKGNG=yes in /etc/make.conf leads to the above issues with mtree and install. Disabling this pkgng tag leads to reinstallation of missing packages, which are store in the pkgng sqlite format and not as ASCII anymore, but then I get /var/runld-elf.so.hints: No such file or directory Is this a typo, or literal transcription? (The missing / between 'run' and 'ld-elf.so.hints', that is.) Error: shared library iconv.3 does not exist. But most of the libs have never been touch! So what is the loader complaining about? Well, I'm floating like a dead man in the water and I'm glad that one box survided although suffering from the same symptomes. I tried to find rescue images and a rescue DVD of a snap shot server, but there is no way to crawl through the informations on the web pages towards a snapshot. All folders end up in 2011 and highly outdated (www.freebsd.org, I didn't look at mirrors since I thought the main server carries the most recent stuff). This isn't funny. No lead, no hint, even in the download section. Yes, I have been complaining about this for a while now... If someone has some hints how to recompile the sources with an emergency booted disk, I highly appreciate some desater advice. Maybe the release of FreeBSD-10-CURRENT sources I compiled do have accidentally a nasty bug, so it would be nice to update the sources and have a complete recompilation done. If you can get booted into a recovery medium, you can mount /usr/src and /usr/obj from the hosed system, and should be able to installworld/installkernel into the hosed system with DESTDIR set. Glen ___ 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: HELP! core dumps: install, mtree, et cetera all of the sudden after portmaster security/cyrus-sasl2
On 8/16/2012 10:33 AM, Hartmann, O. wrote: I tried to find rescue images and a rescue DVD of a snap shot server, but there is no way to crawl through the informations on the web pages towards a snapshot. All folders end up in 2011 and highly outdated (www.freebsd.org, I didn't look at mirrors since I thought the main server carries the most recent stuff). This isn't funny. No lead, no hint, even in the download section. http://pub.allbsd.org/FreeBSD-snapshots/ Bryan ___ 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: HELP! core dumps: install, mtree, et cetera all of the sudden after portmaster security/cyrus-sasl2
On Thu, Aug 16, 2012 at 11:33 AM, O. Hartmann ohart...@zedat.fu-berlin.de wrote: I ran into a very delicate and nasty situation. Please don't cross-post / double-post. Thanks, -Garrett ___ 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: HELP! core dumps: install, mtree, et cetera all of the sudden after portmaster security/cyrus-sasl2
On Thu, Aug 16, 2012 at 8:33 AM, Hartmann, O. ohart...@zedat.fu-berlin.de wrote: I ran into a very delicate and nasty situation. ... On both FBSD 10 boxes, the installation of the port security/cyrus-sasl2 got corrupted by install and/or mtree dumping core and signalling SIGNAL 11. Booting into multiuser mode is impossible, login core dumps SIGNAL 11, many other daemons, too. The only way is to boot into single user mode. I'm not drawing a correlation between this and unrelated coredumping processes. An installation failed due to pkg(ng) was missing libarchive.so via portmaster or via core dumping install(1). By installing on one box, my home box, port security/cyrus-sasl2 manually, luckily install(1) and mtree(1) didn't coredump and it worked - and this precedure rescued me. But on my lab's development box, it doesn't work! Don't make delete-old-lib unless you have it moved off to compat directories, or have rebuilt everything using the new libarchive. On this specific box, where this nasty problem also occured the same way by simply recompiling everything for port www/apache22, including the reinstallation of port security/cyrus-sasl2. Nearly every binary is suddenly coredumping (as on the home box). login, vi, install, devfs, syslogd, mtree, id, find ... a whole lot of binaries seem to be compromised by something I do not see (libsasl2.so perhaps?). truss the binaries to figure out exactly what's going wrong. A lot of this lost effort could be avoided (like others have posted on the list more than once), by having a centralized package distribution server, and by having VMs or jails and keeping snapshots with pre-upgrade state on the package building machine to avoid dead in the water scenarios like you're in right now. I tried to help myself via copying /rescue/vi to /usr/bin/vi to have at least a working vi. But in /rescue, I can not find install or mtree. I'm not familiar with the sophisticated ways of /rescue. Where are install(1) and mtree(1)? I ran into this issue too a little while ago. I basically gave up on recovering a VM and nuked and repaved it using a LiveCD with a chroot, some cp -p'ing, etc. But yes.. it would be nice if I could have recovered the system at least with a static toolchain: cc, binutils [equivalent], mtree, install, etc. ... Disabling this pkgng tag leads to reinstallation of missing packages, which are store in the pkgng sqlite format and not as ASCII anymore, but then I get /var/runld-elf.so.hints: No such file or directory Error: shared library iconv.3 does not exist. service ldconfig start ? But most of the libs have never been touch! So what is the loader complaining about? ... I tried to find rescue images and a rescue DVD of a snap shot server, but there is no way to crawl through the informations on the web pages towards a snapshot. All folders end up in 2011 and highly outdated (www.freebsd.org, I didn't look at mirrors since I thought the main server carries the most recent stuff). This isn't funny. No lead, no hint, even in the download section. If someone has some hints how to recompile the sources with an emergency booted disk, I highly appreciate some desater advice. Maybe the release of FreeBSD-10-CURRENT sources I compiled do have accidentally a nasty bug, so it would be nice to update the sources and have a complete recompilation done. Thanks in advance, Simply put: fix your infrastructure (as this isn't the first time you have complained about infrastructure issues on the MLs). A lot of these issues should not be issues if you set up your infrastructure properly to deal with building things only once, backup packages before installation, you had snapshots of your system, etc. This will help you avoid administration pain, and hopefully will result in less duplicated work. Cheers, -Garrett ___ 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: help about free bsp version netcat to work it on ubuntu
On Tue, Jul 24, 2012 at 07:18:13PM +0800, lei yang wrote: Aha,I just want to learn want to know how to build the netcat for freebsd version on a no-freebsd platform I'm really curious, now: Why? -- 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: help about free bsp version netcat to work it on ubuntu
On Tue, Jul 24, 2012 at 12:47 AM, Polytropon free...@edvax.de wrote: On Mon, 23 Jul 2012 23:29:38 +0800, lei yang wrote: Yes, the second version I post is using the source from you supplied, then I compiled it, but it has no -U flag like what I post, it seems a version different casued this. Yes. The version distributed by the ports collection is different from that one supplied with the base system of FreeBSD. To try _that_ version, you can download the source tarball and extract it; in the directory # wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.0-RELEASE/src.txz # tar xvf src.txz Thanks for the help, tar xvf src.txz tar: This does not look like a tar archive tar: Skipping to next header tar: Archive contains obsolescent base-64 headers tar: Read 4896 bytes from src.txz tar: Error exit delayed from previous errors [lyang0@ala-lpggp2 lyang0]$ tar xvf src.txz tar: This does not look like a tar archive tar: Skipping to next header tar: Archive contains obsolescent base-64 headers tar: Read 4896 bytes from src.txz tar: Error exit delayed from previous errors # cd cusr/src/ontrib/netcat/ # ls FREEBSD-XlistFREEBSD-vendor atomicio.h netcat.c FREEBSD-upgrade atomicio.c nc.1 socks.c # your build command(s) here Suppose gcc -o netcat netcat.c atomicio.c socks.c should work Lei You can check the FTP server for other versions of the OS (e. g. different branch and architecture, starting at ftp://ftp.freebsd.org/pub/FreeBSD/releases/, then selecting architecture and finally the OS version). There are also different ways of obtaining the sources, but the solution shown here should be sufficient. (You can use tar xvf src.txz usr/src/contrib/netcat to only extract the files for netcat instead of everything, but it _might_ be possible that the build process needs some files from other locations.) If you don't have wget installed, stock ftp location command should also work for downloading. I don't know where to find the source code in Red Hat. Me neither, but check man hier on a RH system to get the documentation about the file system hierarchy which should have detailed information on what is stored where. -- 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
Re: help about free bsp version netcat to work it on ubuntu
On Mon, Jul 23, 2012 at 11:52 PM, Alejandro Imass a...@p2ee.org wrote: On Mon, Jul 23, 2012 at 11:29 AM, lei yang yanglei.f...@gmail.com wrote: On Mon, Jul 23, 2012 at 10:36 PM, Polytropon free...@edvax.de wrote: On Mon, 23 Jul 2012 12:59:55 +0800, lei yang wrote: On Mon, Jul 23, 2012 at 12:25 AM, Polytropon free...@edvax.de wrote: On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote: Hi, [...] I don't know where to find the source code in Red Hat. Why don't you just toss RedHat and use FreeBSD ? Most everything you run on Linux will run on FreeBSD and there are also Desktop-friendly distros of FreeBSD such as PC-BSD which, in Linux terms, is to FreeBSD somewhat akin to what Ubuntu is to Debian. Aha,I just want to learn want to know how to build the netcat for freebsd version on a no-freebsd platform Lei Anyway, give PC-BSD a try and you won't regret it: http://www.pcbsd.org/ Cheers, -- Alejandro Imass ___ 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: help about free bsp version netcat to work it on ubuntu
On Tue, Jul 24, 2012 at 12:03 AM, Carl Johnson ca...@peak.org wrote: lei yang yanglei.f...@gmail.com writes: On Mon, Jul 23, 2012 at 12:25 AM, Polytropon free...@edvax.de wrote: On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote: Hi, I want to build a netcat on my local pc (ubuntu) with gcc, is it possible? I'm new to free bsd it has no -U flag, can you point me where I get this version Have you checked the other version of netcat already available? A quick check shows these four versions for Ubuntu: netcat: TCP/IP swiss army knife -- transitional package netcat-openbsd: TCP/IP swiss army knife netcat-traditional: TCP/IP swiss army knife netcat6: TCP/IP swiss army knife with IPv6 support how did you get the list? To be clear, haha, I just want to know how to build a fress bsd netcat on a no-fressbsd platform Lei -- Carl Johnsonca...@peak.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: help about free bsp version netcat to work it on ubuntu
lei yang yanglei.f...@gmail.com writes: On Tue, Jul 24, 2012 at 12:03 AM, Carl Johnson ca...@peak.org wrote: lei yang yanglei.f...@gmail.com writes: On Mon, Jul 23, 2012 at 12:25 AM, Polytropon free...@edvax.de wrote: On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote: Hi, I want to build a netcat on my local pc (ubuntu) with gcc, is it possible? I'm new to free bsd it has no -U flag, can you point me where I get this version Have you checked the other version of netcat already available? A quick check shows these four versions for Ubuntu: netcat: TCP/IP swiss army knife -- transitional package netcat-openbsd: TCP/IP swiss army knife netcat-traditional: TCP/IP swiss army knife netcat6: TCP/IP swiss army knife with IPv6 support how did you get the list? I used the surfraw package which is available on freebsd, debian, and ubuntu. In this case I just used 'debpackages -u netcat' to do access the ubuntu packages search page. There is also 'freebsd -psearch' to search freebsd ports, and debpackages without -u shows debian packages. To be clear, haha, I just want to know how to build a fress bsd netcat on a no-fressbsd platform Others have probably already mentioned this, but you are probably better off trying ports source instead. Most of those are written to be portable and are easily configured for other OSs. Freebsd port search shows the following for netcat: net/cryptcat Standard netcat enhanced with twofish encryption net/gnetcat GPL'ed re-write of the well known networking tool netcat net/nc6 Netcat clone with IPv6 support net/netcatSimple utility which reads and writes data across network connections net/sbd A netcat clone with more features and crypto net/scnc SSL Capable Netcat security/sst A simple SSL tunneling tool (uses netcat) -- Carl Johnsonca...@peak.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: help about free bsp version netcat to work it on ubuntu
On 24/07/2012 14:36, kpn...@pobox.com wrote: On Tue, Jul 24, 2012 at 07:13:00PM +0800, lei yang wrote: On Tue, Jul 24, 2012 at 12:47 AM, Polytroponfree...@edvax.de wrote: On Mon, 23 Jul 2012 23:29:38 +0800, lei yang wrote: Yes, the second version I post is using the source from you supplied, then I compiled it, but it has no -U flag like what I post, it seems a version different casued this. Yes. The version distributed by the ports collection is different from that one supplied with the base system of FreeBSD. To try _that_ version, you can download the source tarball and extract it; in the directory # wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.0-RELEASE/src.txz # tar xvf src.txz Thanks for the help, tar xvf src.txz tar: This does not look like a tar archive tar: Skipping to next header tar: Archive contains obsolescent base-64 headers tar: Read 4896 bytes from src.txz tar: Error exit delayed from previous errors [lyang0@ala-lpggp2 lyang0]$ tar xvf src.txz tar: This does not look like a tar archive tar: Skipping to next header tar: Archive contains obsolescent base-64 headers tar: Read 4896 bytes from src.txz tar: Error exit delayed from previous errors Maybe a bad/incomplete download? %fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.0-RELEASE/src.txz src.txz 100% of 89 MB 216 kBps 00m00s %md5 src.txz MD5 (src.txz) = 7cce6b045f771cef2136df277d16331f %tar xvf src.txz x usr/src/ x usr/src/usr.bin/ x usr/src/release/ x usr/src/crypto/ x usr/src/include/ x usr/src/secure/ x usr/src/rescue/ x usr/src/gnu/ x usr/src/sbin/ x usr/src/games/ x usr/src/tools/ x usr/src/contrib/ x usr/src/kerberos5/ x usr/src/share/ ... ... ___ 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: help about free bsp version netcat to work it on ubuntu
On Tue, 24 Jul 2012 19:13:00 +0800, lei yang wrote: On Tue, Jul 24, 2012 at 12:47 AM, Polytropon free...@edvax.de wrote: On Mon, 23 Jul 2012 23:29:38 +0800, lei yang wrote: Yes, the second version I post is using the source from you supplied, then I compiled it, but it has no -U flag like what I post, it seems a version different casued this. Yes. The version distributed by the ports collection is different from that one supplied with the base system of FreeBSD. To try _that_ version, you can download the source tarball and extract it; in the directory # wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.0-RELEASE/src.txz # tar xvf src.txz Thanks for the help, tar xvf src.txz tar: This does not look like a tar archive tar: Skipping to next header tar: Archive contains obsolescent base-64 headers tar: Read 4896 bytes from src.txz tar: Error exit delayed from previous errors [lyang0@ala-lpggp2 lyang0]$ tar xvf src.txz tar: This does not look like a tar archive tar: Skipping to next header tar: Archive contains obsolescent base-64 headers tar: Read 4896 bytes from src.txz tar: Error exit delayed from previous errors Oh sorry I forgot: You're _not_ on a FreeBSD system! That's why you cannot use tar (means: bsdtar) with the xz compression support. On your system, you first need to install xz. Use the unxz to uncompress the archive. Then you will have a valid tar archive which you can extract with stock tar. # cd cusr/src/ontrib/netcat/ # ls FREEBSD-XlistFREEBSD-vendor atomicio.h netcat.c FREEBSD-upgrade atomicio.c nc.1 socks.c # your build command(s) here Suppose gcc -o netcat netcat.c atomicio.c socks.c should work It seems that I pointed you to a wrong location inside the src/ tree. Maybe try this instead: # unxz src.txz # tar xvf src.tar usr/src/usr.bin/nc/ # tar xvf src.tar usr/src/contrib/netcat/ # cd usr/src/usr.bin/nc/ # ls Makefile # cd ../../contrib/netcat/ # ls FREEBSD-XlistFREEBSD-vendor atomicio.h netcat.c FREEBSD-upgrade atomicio.c nc.1 socks.c Problem: The Makefile which describes the build process refers to bsd.prog.mk which is specific to FreeBSD (and located in src/share/Mk which you'd also have to extract). The content of the Makefile is rather simple: .PATH: ${.CURDIR}/../../contrib/netcat PROG= nc SRCS= netcat.c atomicio.c socks.c CFLAGS+=-DIPSEC LDADD= -lipsec DPADD= ${LIBIPSEC} .include bsd.prog.mk Still it seems that your simplified approach could work: Compile all the .c files. -- 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
Re: help about free bsp version netcat to work it on ubuntu
On Mon, 23 Jul 2012 12:59:55 +0800, lei yang wrote: On Mon, Jul 23, 2012 at 12:25 AM, Polytropon free...@edvax.de wrote: On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote: Hi, I want to build a netcat on my local pc (ubuntu) with gcc, is it possible? I'm new to free bsd I hope I don't misunderstand your intention: You are trying to build a Linux executable of netcat from FreeBSD's sources? You _do_ know that FreeBSD and Linux (here: Ubuntu) are two totally different operating systems. I'm not sure code is compatible at this level (but it maybe _could_ be, you'd have to try it). The netcat program (nc) is part of the FreeBSD operating system for some time now. There's also a port of netcat in /usr/ports/net/netcat (which can also be used). That port's Makefile lists some sources: ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/ ftp://ftp.cuhk.edu.hk/pub/packages/security/purdue/netutils/netcat/ http://www.planetmirror.com/pub/lprng/TOOLS/ You could try to use that source distribution as well. Thanks for the great help, I have built it successfully on my ubuntu. I find it's not the version I want I want use the version on Rehat,which has a -U flag( yes, I want to use this flag) but the above version has no this flag on redhat: usage: nc [-46DdhklnrStUuvzC] [-i interval] [-p source_port] [-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_version] [-x proxy_address[:port]] [hostname] [port[s]] Command Summary: -4 Use IPv4 -6 Use IPv6 -D Enable the debug socket option -d Detach from stdin -h This help text -i secs Delay interval for lines sent, ports scanned -k Keep inbound sockets open for multiple connects -l Listen mode, for inbound connects -n Suppress name/port resolutions -p port Specify local port for remote connects -r Randomize remote ports -s addr Local source address -T ToS Set IP Type of Service -C Send CRLF as line-ending -t Answer TELNET negotiation -U Use UNIX domain socket -u UDP mode -v Verbose -w secs Timeout for connects and final net reads -X protoProxy protocol: 4, 5 (SOCKS) or connect -x addr[:port] Specify proxy address and port -z Zero-I/O mode [used for scanning] Port numbers can be individual or ranges: lo-hi [inclusive] -- with the above you list: lyang0@lyang0-OptiPlex-755:~/tmp/nc110$ ./nc -help [v1.10] connect to somewhere: nc [-options] hostname port[s] [ports] ... listen for inbound: nc -l -p port [-options] [hostname] [port] options: -g gateway source-routing hop point[s], up to 8 -G num source-routing pointer: 4, 8, 12, ... -h this cruft -i secs delay interval for lines sent, ports scanned -l listen mode, for inbound connects -n numeric-only IP addresses, no DNS -o file hex dump of traffic -p port local port number -r randomize local and remote ports -s addr local source address -u UDP mode -v verbose [use twice to be more verbose] -w secs timeout for connects and final net reads -z zero-I/O mode [used for scanning] port numbers can be individual or ranges: lo-hi [inclusive] it has no -U flag, can you point me where I get this version This indicates you did use the netcat version that also is in the FreeBSD Ports Collection. The netcat version that belongs to the FreeBSD system (the operating system itself) does seem to have the switch you need. From my home FreeBSD box (8.2-STABLE of August 2011, i386), THIS is the netcat help message: % nc -help usage: nc [-46DdEhklnrStUuvz] [-e policy] [-I length] [-i interval] [-O length] [-P proxy_username] [-p source_port] [-s source] [-T ToS] [-V rtable] [-w timeout] [-X proxy_protocol] [-x proxy_address[:port]] [destination] [port] Command Summary: -4 Use IPv4 -6 Use IPv6 -D Enable the debug socket option -d Detach from stdin
Re: help about free bsp version netcat to work it on ubuntu
On Mon, Jul 23, 2012 at 10:36 PM, Polytropon free...@edvax.de wrote: On Mon, 23 Jul 2012 12:59:55 +0800, lei yang wrote: On Mon, Jul 23, 2012 at 12:25 AM, Polytropon free...@edvax.de wrote: On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote: Hi, I want to build a netcat on my local pc (ubuntu) with gcc, is it possible? I'm new to free bsd I hope I don't misunderstand your intention: You are trying to build a Linux executable of netcat from FreeBSD's sources? You _do_ know that FreeBSD and Linux (here: Ubuntu) are two totally different operating systems. I'm not sure code is compatible at this level (but it maybe _could_ be, you'd have to try it). The netcat program (nc) is part of the FreeBSD operating system for some time now. There's also a port of netcat in /usr/ports/net/netcat (which can also be used). That port's Makefile lists some sources: ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/ ftp://ftp.cuhk.edu.hk/pub/packages/security/purdue/netutils/netcat/ http://www.planetmirror.com/pub/lprng/TOOLS/ You could try to use that source distribution as well. Thanks for the great help, I have built it successfully on my ubuntu. I find it's not the version I want I want use the version on Rehat,which has a -U flag( yes, I want to use this flag) but the above version has no this flag on redhat: usage: nc [-46DdhklnrStUuvzC] [-i interval] [-p source_port] [-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_version] [-x proxy_address[:port]] [hostname] [port[s]] Command Summary: -4 Use IPv4 -6 Use IPv6 -D Enable the debug socket option -d Detach from stdin -h This help text -i secs Delay interval for lines sent, ports scanned -k Keep inbound sockets open for multiple connects -l Listen mode, for inbound connects -n Suppress name/port resolutions -p port Specify local port for remote connects -r Randomize remote ports -s addr Local source address -T ToS Set IP Type of Service -C Send CRLF as line-ending -t Answer TELNET negotiation -U Use UNIX domain socket -u UDP mode -v Verbose -w secs Timeout for connects and final net reads -X protoProxy protocol: 4, 5 (SOCKS) or connect -x addr[:port] Specify proxy address and port -z Zero-I/O mode [used for scanning] Port numbers can be individual or ranges: lo-hi [inclusive] -- with the above you list: lyang0@lyang0-OptiPlex-755:~/tmp/nc110$ ./nc -help [v1.10] connect to somewhere: nc [-options] hostname port[s] [ports] ... listen for inbound: nc -l -p port [-options] [hostname] [port] options: -g gateway source-routing hop point[s], up to 8 -G num source-routing pointer: 4, 8, 12, ... -h this cruft -i secs delay interval for lines sent, ports scanned -l listen mode, for inbound connects -n numeric-only IP addresses, no DNS -o file hex dump of traffic -p port local port number -r randomize local and remote ports -s addr local source address -u UDP mode -v verbose [use twice to be more verbose] -w secs timeout for connects and final net reads -z zero-I/O mode [used for scanning] port numbers can be individual or ranges: lo-hi [inclusive] it has no -U flag, can you point me where I get this version This indicates you did use the netcat version that also is in the FreeBSD Ports Collection. The netcat version that belongs to the FreeBSD system (the operating system itself) does seem to have the switch you need. From my home FreeBSD box (8.2-STABLE of August 2011, i386), THIS is the netcat help message: % nc -help usage: nc [-46DdEhklnrStUuvz] [-e policy] [-I length] [-i interval] [-O length] [-P proxy_username] [-p source_port] [-s source] [-T ToS] [-V rtable] [-w timeout] [-X proxy_protocol] [-x proxy_address[:port]] [destination] [port] Command Summary: -4 Use IPv4 -6 Use IPv6 -D
Re: help about free bsp version netcat to work it on ubuntu
On Mon, Jul 23, 2012 at 11:29 AM, lei yang yanglei.f...@gmail.com wrote: On Mon, Jul 23, 2012 at 10:36 PM, Polytropon free...@edvax.de wrote: On Mon, 23 Jul 2012 12:59:55 +0800, lei yang wrote: On Mon, Jul 23, 2012 at 12:25 AM, Polytropon free...@edvax.de wrote: On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote: Hi, [...] I don't know where to find the source code in Red Hat. Why don't you just toss RedHat and use FreeBSD ? Most everything you run on Linux will run on FreeBSD and there are also Desktop-friendly distros of FreeBSD such as PC-BSD which, in Linux terms, is to FreeBSD somewhat akin to what Ubuntu is to Debian. Anyway, give PC-BSD a try and you won't regret it: http://www.pcbsd.org/ Cheers, -- Alejandro Imass ___ 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: help about free bsp version netcat to work it on ubuntu
lei yang yanglei.f...@gmail.com writes: On Mon, Jul 23, 2012 at 12:25 AM, Polytropon free...@edvax.de wrote: On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote: Hi, I want to build a netcat on my local pc (ubuntu) with gcc, is it possible? I'm new to free bsd it has no -U flag, can you point me where I get this version Have you checked the other version of netcat already available? A quick check shows these four versions for Ubuntu: netcat: TCP/IP swiss army knife -- transitional package netcat-openbsd: TCP/IP swiss army knife netcat-traditional: TCP/IP swiss army knife netcat6: TCP/IP swiss army knife with IPv6 support -- Carl Johnsonca...@peak.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: help about free bsp version netcat to work it on ubuntu
On Mon, 23 Jul 2012 23:29:38 +0800, lei yang wrote: Yes, the second version I post is using the source from you supplied, then I compiled it, but it has no -U flag like what I post, it seems a version different casued this. Yes. The version distributed by the ports collection is different from that one supplied with the base system of FreeBSD. To try _that_ version, you can download the source tarball and extract it; in the directory # wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.0-RELEASE/src.txz # tar xvf src.txz # cd cusr/src/ontrib/netcat/ # ls FREEBSD-XlistFREEBSD-vendor atomicio.h netcat.c FREEBSD-upgrade atomicio.c nc.1 socks.c # your build command(s) here You can check the FTP server for other versions of the OS (e. g. different branch and architecture, starting at ftp://ftp.freebsd.org/pub/FreeBSD/releases/, then selecting architecture and finally the OS version). There are also different ways of obtaining the sources, but the solution shown here should be sufficient. (You can use tar xvf src.txz usr/src/contrib/netcat to only extract the files for netcat instead of everything, but it _might_ be possible that the build process needs some files from other locations.) If you don't have wget installed, stock ftp location command should also work for downloading. I don't know where to find the source code in Red Hat. Me neither, but check man hier on a RH system to get the documentation about the file system hierarchy which should have detailed information on what is stored where. -- 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
Re: Help solving the sysadm's nightmare
Good luck with your nightmare. if i would be in his case i would first not touch it and then slowly analyze EVERYTHING that is used on that system, and ask users how exactly they use it (i mean shared folders etc). Then i will step by step fix things to proper state, waiting for complaints after each step. if former admin did such things with permissions certainly he did many more stupid things. Certainly few things MUST be just done completely differently, not just different permissions. ___ 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: help about free bsp version netcat to work it on ubuntu
From owner-freebsd-questi...@freebsd.org Sun Jul 22 09:44:21 2012 Date: Sun, 22 Jul 2012 22:41:57 +0800 From: lei yang yanglei.f...@gmail.com To: freebsd-questions@freebsd.org Subject: help about free bsp version netcat to work it on ubuntu Hi, I want to build a netcat on my local pc (ubuntu) with gcc, is it possible? I'm new to free bsd I have to quesion: 1)where to download it's source it for netcat 2)how to build it on ubuntu with gcc? only make? Ubuntu is a _LINUX_ distribution. Unrelated to FreeBSD. 'That which works' on FreeBSD is -not- likely to work on a LINUX distro, and vice-versa. If you want to use netcat on FreeBSD, people here can help. If you want to use it on some LINUX distro, your better off asking on a forum for _that_ O/S an istro. ___ 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: help about free bsp version netcat to work it on ubuntu
On Mon, Jul 23, 2012 at 12:25 AM, Polytropon free...@edvax.de wrote: On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote: Hi, I want to build a netcat on my local pc (ubuntu) with gcc, is it possible? I'm new to free bsd I hope I don't misunderstand your intention: You are trying to build a Linux executable of netcat from FreeBSD's sources? You _do_ know that FreeBSD and Linux (here: Ubuntu) are two totally different operating systems. I'm not sure code is compatible at this level (but it maybe _could_ be, you'd have to try it). The netcat program (nc) is part of the FreeBSD operating system for some time now. There's also a port of netcat in /usr/ports/net/netcat (which can also be used). That port's Makefile lists some sources: ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/ ftp://ftp.cuhk.edu.hk/pub/packages/security/purdue/netutils/netcat/ http://www.planetmirror.com/pub/lprng/TOOLS/ You could try to use that source distribution as well. Thanks for the great help, I have built it successfully on my ubuntu. I find it's not the version I want I want use the version on Rehat,which has a -U flag( yes, I want to use this flag) but the above version has no this flag on redhat: usage: nc [-46DdhklnrStUuvzC] [-i interval] [-p source_port] [-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_version] [-x proxy_address[:port]] [hostname] [port[s]] Command Summary: -4 Use IPv4 -6 Use IPv6 -D Enable the debug socket option -d Detach from stdin -h This help text -i secs Delay interval for lines sent, ports scanned -k Keep inbound sockets open for multiple connects -l Listen mode, for inbound connects -n Suppress name/port resolutions -p port Specify local port for remote connects -r Randomize remote ports -s addr Local source address -T ToS Set IP Type of Service -C Send CRLF as line-ending -t Answer TELNET negotiation -U Use UNIX domain socket -u UDP mode -v Verbose -w secs Timeout for connects and final net reads -X protoProxy protocol: 4, 5 (SOCKS) or connect -x addr[:port] Specify proxy address and port -z Zero-I/O mode [used for scanning] Port numbers can be individual or ranges: lo-hi [inclusive] -- with the above you list: lyang0@lyang0-OptiPlex-755:~/tmp/nc110$ ./nc -help [v1.10] connect to somewhere: nc [-options] hostname port[s] [ports] ... listen for inbound: nc -l -p port [-options] [hostname] [port] options: -g gateway source-routing hop point[s], up to 8 -G num source-routing pointer: 4, 8, 12, ... -h this cruft -i secs delay interval for lines sent, ports scanned -l listen mode, for inbound connects -n numeric-only IP addresses, no DNS -o file hex dump of traffic -p port local port number -r randomize local and remote ports -s addr local source address -u UDP mode -v verbose [use twice to be more verbose] -w secs timeout for connects and final net reads -z zero-I/O mode [used for scanning] port numbers can be individual or ranges: lo-hi [inclusive] it has no -U flag, can you point me where I get this version Lei I have to quesion: 1)where to download it's source it for netcat They can be found in /usr/src/contrib/netcat/ once you have extracted the source distribution of FreeBSD. Depending on which version of the OS (branch, revision, platform) you need, you have to select the corresponding archive from one of the download mirrors. Visit http://www.freebsd.org/ to find out where and how to obtain FreeBSD (or components of it). I would suggest using one of the FTP servers that are accessible for you at a good speed. 2)how to build it on ubuntu with gcc? only make? I'm not even sure Linux will be able to compile FreeBSD sources. A typical Linux build would consist of the three commands # ./configure # make # make install but FreeBSD's OS sources don't need the 1st step. The Makefiles distributed
Re: Help solving the sysadm's nightmare
From: Wojciech Puchar woj...@wojtek.tensor.gdynia.pl Date: Thu, 19 Jul 2012 10:12:05 +0200 (CEST) Subject: Re: Help solving the sysadm's nightmare [[ sarcastic comment with no useful value removed ]] it's a mess, and ofcourse everything is critical there is no room for interruption of service. Now, I have no idea which processes actually require access to those files, what privileges these processes run with and which files are actually executable or just plain files. i can only help you with base system and ports permissions, and /var and /etc just look how it should be Of gourse, setting system/ports permissins back to the way it should be WILL re-introduce the problems that were 'solved' by the prior administrator changing permissiona as descrribed, resulting in UNACCEPTABLE interruption of operations -- quote: Everything is 'critical' there is no room for interruption of service. What I know is that lots of files are on samba shares and lots of files are used by uniface9 application, but I don't know much about uniface or if this is actually executed on the client or on the server. look at samba config to check as what user directories are accessed. set it as such user and chmod 700 is enough. While that instruction may have some relevance to _some_ situations, there is *NO* guarantee that, say, multiple users in a given department of the business do _not_ require access to files in the 'user directory' of another employee in that same department. While one can argue -- with some validity -- that things should not be that way, one _cannot_ guarantee that such is not the case. ESPECIALLY, given the mind-set of the prior admin(s). Thus, changing permissions 'as directed' _does_ have a definite possibilit of causing unacceptable interruption of critical services. So, how can I - determine which users actually need read or write access to these files? lsof will not help you. Using lsof will *DEFINITELY* _help_ -- in identifying which applications access which files. lsof output will not be comprehensive/complete, because a single lsof run only produces a snapshot of what currentl-running processes have what files open at that time. But it *DOES* provide a 'starting point', a list of the files that the running applications are _proven_ to require access to. Changing permissions on those lsof-identified files, such that the application in question does _not_ have access to it *WILL* break that application. Knowing what -not- to do -- because doing that thing _will_ break something -- is a _critical_ part of determining what =can= be done. ___ 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: Help solving the sysadm's nightmare
Hi, what or who stops you from making a copy of the machine and start testing there? This is the only valid option if you do not want to interrupt a running server. Erich On Saturday 21 July 2012 14:59:40 Robert Bonomi wrote: From: Wojciech Puchar woj...@wojtek.tensor.gdynia.pl Date: Thu, 19 Jul 2012 10:12:05 +0200 (CEST) Subject: Re: Help solving the sysadm's nightmare [[ sarcastic comment with no useful value removed ]] it's a mess, and ofcourse everything is critical there is no room for interruption of service. Now, I have no idea which processes actually require access to those files, what privileges these processes run with and which files are actually executable or just plain files. i can only help you with base system and ports permissions, and /var and /etc just look how it should be Of gourse, setting system/ports permissins back to the way it should be WILL re-introduce the problems that were 'solved' by the prior administrator changing permissiona as descrribed, resulting in UNACCEPTABLE interruption of operations -- quote: Everything is 'critical' there is no room for interruption of service. What I know is that lots of files are on samba shares and lots of files are used by uniface9 application, but I don't know much about uniface or if this is actually executed on the client or on the server. look at samba config to check as what user directories are accessed. set it as such user and chmod 700 is enough. While that instruction may have some relevance to _some_ situations, there is *NO* guarantee that, say, multiple users in a given department of the business do _not_ require access to files in the 'user directory' of another employee in that same department. While one can argue -- with some validity -- that things should not be that way, one _cannot_ guarantee that such is not the case. ESPECIALLY, given the mind-set of the prior admin(s). Thus, changing permissions 'as directed' _does_ have a definite possibilit of causing unacceptable interruption of critical services. So, how can I - determine which users actually need read or write access to these files? lsof will not help you. Using lsof will *DEFINITELY* _help_ -- in identifying which applications access which files. lsof output will not be comprehensive/complete, because a single lsof run only produces a snapshot of what currentl-running processes have what files open at that time. But it *DOES* provide a 'starting point', a list of the files that the running applications are _proven_ to require access to. Changing permissions on those lsof-identified files, such that the application in question does _not_ have access to it *WILL* break that application. Knowing what -not- to do -- because doing that thing _will_ break something -- is a _critical_ part of determining what =can= be done. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help solving the sysadm's nightmare
I have inherited a problem that is no cause for envy, the previous administrators had no idea what they were doing, so problems with a permission denied would be solved by chown -R 777 /whatever! Needless to say, it's a mess, and ofcourse everything is critical there is no room for interruption of service. Now, I have no idea which processes actually require access to those files, what privileges these processes run with and which files are actually executable or just plain files. What I know is that lots of files are on samba shares and lots of files are used by uniface9 application, but I don't know much about uniface or if this is actually executed on the client or on the server. At this moment my project is to migrate servers with these permissions to new servers, but those who prepared the OS have maintained the permissions from the older version because it's easier than actually investigating or understanding what's going on and find a solution. *sigh* So, how can I - determine if files are actually unix executables or just plain files (or windows executables)? - determine which users actually need read or write access to these files? the second is what I think is the most difficult, I need some lsof daemon to log access... Sounds like a disaster. You're going to have to weigh out the risks of not doing anything and being compromised vs. trying to fix it and breaking something. Depending on how involved you want to get, much coffee may be required. Here's some thorny ideas: First, take a snap shot of the file system if you can. That way if things get screwed up you can always revert back to a previous state. That is, if the data is read-only. (*Evil laugh*) If you can, experiment with this snapshot on a test box. If not, keep reading... You could call lsof from a script repeatedly (or use lsof's own reapeat functionality) for several days/weeks/whatever. Then parse the output to produce a list of unique files, how they're being accessed and by who. Get familiar with the lsof manual page, especially the section about 'OUTPUT FOR OTHER PROGRAMS'. You might insert your results into a file-backed sqlite database that you can later interrogate from a script via SQL queries. Also, crawl the file system and generate *another* sql table, or even flat file of permissions as they currently exist. This way you can, in theory, always go back to how things were, if needed. Of course, you'll need to write a script to do this permission-restore business too. From there, crawl the first SQL table that you made of file access and set permissions on those files appropriately. e.g: a file being accessed read/write probably needs to be set read/write. This will be a job for another script. You can also build a table of file permissions for known files e.g: /etc/master.passwd should be root read/write and so on. You can build up your initial database of known permissions by parsing a clean install with the same scripts you just wrote. Also see the 'file' command to help identify executables. Obviously, you're going to have to be very careful. (Again, have the backup and preferably the script that restores file permissions to what they were, first.) Sounds like a job for python ;) Finally, remember to *thoroughly* test your scripts on an dummy system first! Perhaps a virtual box install where you don't have to worry about screwing things up. The last thing you want, is to get fired for trying to fix someone else's mistake. Tread carefully. Talk to the boss/owner/client about the pros, cons and risks before taking on such a project. Good luck with your nightmare. -Modulok- ___ 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: Help solving the sysadm's nightmare
On 19/07/2012 07:55, Erik Nørgaard wrote: So, how can I - determine if files are actually unix executables or just plain files (or windows executables)? file(1) should help. - determine which users actually need read or write access to these files? This is in most cases entirely a local policy matter. As in: you write up a proposal for how access control policy should be implemented and get it signed off by your managers before applying it. You'll need to present things with rational justifications: something along the lines of: Only the web-dev team and root (sys-admins) need write access to the doc-root www-data pseudo user (the UID apache runs as) needs read access to doc-root the second is what I think is the most difficult, I need some lsof daemon to log access... If you enable system accounting, I believe the detailed logs should show you all of the fileio broken down by user. Note that on a busy server, system accounting can generate a *large* amount of data, and it is likely to affect performance, so use with care. See lastcomm(1), sa(8), accton(8), acct(5) Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Help solving the sysadm's nightmare
administrators had no idea what they were doing, so problems with a permission denied would be solved by chown -R 777 /whatever! Needless to say, great. rm -rf /whatever would be even better! it's a mess, and ofcourse everything is critical there is no room for interruption of service. Now, I have no idea which processes actually require access to those files, what privileges these processes run with and which files are actually executable or just plain files. i can only help you with base system and ports permissions, and /var and /etc just look how it should be What I know is that lots of files are on samba shares and lots of files are used by uniface9 application, but I don't know much about uniface or if this is actually executed on the client or on the server. look at samba config to check as what user directories are accessed. set it as such user and chmod 700 is enough. At this moment my project is to migrate servers with these permissions to new servers, but those who prepared the OS have maintained the permissions from the older version because it's easier than actually investigating or understanding what's going on and find a solution. *sigh* So, how can I - determine if files are actually unix executables or just plain files (or windows executables)? man file - determine which users actually need read or write access to these files? depends on software lsof will not help 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: Help solving the sysadm's nightmare
On Thu, 19 Jul 2012 08:55:29 +0200, Erik Nørgaard wrote: Now, I have no idea which processes actually require access to those files, what privileges these processes run with and which files are actually executable or just plain files. For differentiating files' nature, use file file(s) to identify if it's an executable, a script (which _may_ or _may not_ need +x attributes), or just some random text or binary file. Regarding access to files: You could first determine which programs are installed on that server and create a testing bed for them, e. g. using jails on a separate system. Then you can use tools like lsof to see what files are accessed, and in which matter (read, read/write). At this occassion, you can also examine what files have been installed to the system by this program's installer process, and what attributes they do _properly_ have. You can find information about _what_ is installed _where_ and _how_ in the package lists of each port. You can use them to compare currently installed stuff with how it should be. Regarding the OS, there's another helpful mechanism to investigate: Check out the files /etc/mtree which can be used to automatically compare the definitions with their current (probably malformed) real counterparts. Also see man mtree for details. At this moment my project is to migrate servers with these permissions to new servers, but those who prepared the OS have maintained the permissions from the older version because it's easier than actually investigating or understanding what's going on and find a solution. *sigh* I think the most safe method would be if you install a new server from scratch, install the PROGRAMS as needed, and then first copy the DATA with _default_ permissions and check if everything works. If you see that the new system works properly, you can easily switch over from the old system. If you have successfully done it, take the box to the admin who was responsible for it and drop it onto his head, so he can recover from professionality. :-) So, how can I - determine if files are actually unix executables or just plain files (or windows executables)? As I said, file, mtree, pkg-plist. - determine which users actually need read or write access to these files? Talk to the users (or better to their superiors, or anyone who is partially able to talk about what they're doing). User access should be separated and kept inside /home. There are very few cases where this method is not sufficient. Maybe you can find such a case and prepare a _proper_ solution to deal with it. If it's about what _programs_ need to access, check their documentation and configuration files. the second is what I think is the most difficult, I need some lsof daemon to log access... I think it's quite hard to determine requirements in vivo. The more restricted your testing bed is, the more precise are your findings and therefor your answers. Have as few variables as possible. On a server actually running, using a malformed configuration and many altered settings (where you can't even properly tell _what_ has been altered!), testing will be quite hard. -- 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
Re: help debug bwn(4) wireless
Hi, Please email freebsd-wireless@ with wireless related questions. Try wlandebug -i wlan0 +crypto and see if you get encryption errors. Unfortunately there's currently no broadcom NIC maintainer, so things are falling behind. adrian ___ 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: help me please
from Vinicio Santiago Altamirano Mendez mail@gmail.com: please can u tell me how to remapping tftp with a remapping file or exist another form?. i see that in tftp manual no exist the -m option how to do remapping on tftp on mac os x 10.6 pleas thanks. Is this question for FreeBSD or Mac OS X? This emailing list is for FreeBSD, as the email address suggests. Tom ___ 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: help me please
On Fri, May 11, 2012 at 11:55 PM, Thomas Mueller muelle...@insightbb.comwrote: from Vinicio Santiago Altamirano Mendez mail@gmail.com: please can u tell me how to remapping tftp with a remapping file or exist another form?. i see that in tftp manual no exist the -m option how to do remapping on tftp on mac os x 10.6 pleas thanks. Is this question for FreeBSD or Mac OS X? This emailing list is for FreeBSD, as the email address suggests. Tom ___ 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 Gosh, it sounds kind of drastic. Have you tried fuse? http://groups.google.com/group/macfuse/browse_thread/thread/97951b355e57db56 Waitman Gobble San Jose California USA ___ 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: help debug bwn(4) wireless
In freebsd-questions Digest, Vol 414, Issue 1, Message: 13 On Sun, 06 May 2012 21:48:19 +0100 Chris Whitehouse cwhi...@onetel.com wrote: On 06/05/2012 17:31, Ian Smith wrote: Anton, I'm not sure what the state of the art is for multiple network profiles for such as wireless vs wired, home and work etc, but look around. I recall one called just 'profile' from years ago, and more recently talk of 'failover' setups for wired/wireless nets (probably in n...@freebsd.org), but I've no time for hunting tonight. Anyone? Would that be lagg? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-aggregation.html It would indeed, thanks Chris. Example 32-3. Failover Mode Between Wired and Wireless Interfaces might almost meet Anton's requirements? cheers, Ian ___ 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: help debug bwn(4) wireless
On Tue, May 08, 2012 at 03:07:04AM +1000, Ian Smith wrote: In freebsd-questions Digest, Vol 414, Issue 1, Message: 13 On Sun, 06 May 2012 21:48:19 +0100 Chris Whitehouse cwhi...@onetel.com wrote: On 06/05/2012 17:31, Ian Smith wrote: Anton, I'm not sure what the state of the art is for multiple network profiles for such as wireless vs wired, home and work etc, but look around. I recall one called just 'profile' from years ago, and more recently talk of 'failover' setups for wired/wireless nets (probably in n...@freebsd.org), but I've no time for hunting tonight. Anyone? Would that be lagg? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-aggregation.html It would indeed, thanks Chris. Example 32-3. Failover Mode Between Wired and Wireless Interfaces might almost meet Anton's requirements? Thanks for all your recommendations, guys. I'll get reading. -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ 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: help debug bwn(4) wireless
In freebsd-questions Digest, Vol 413, Issue 11, Message: 21 On Sat, 5 May 2012 19:26:00 -0400 (EDT) Chris Hill ch...@monochrome.org wrote: On Sat, 5 May 2012, Robert Bonomi wrote: Anton Shterenlikht me...@bristol.ac.uk wrote; [snip] ...I still find the whole networking area perfectly impenetrable. (If you can recommend a really introductory book on the subject, I'd really appreciate it. [snip] See also TCP/IP Network Administration. This is an O'Reilley Associates book. Virtually *everything* they publish is excellent. If they've ever published an even mediocre book, _I_ have never encountered it. Anton, I'll second that recommendation. 'TCP/IP Network Administration' by Craig Hunt is an outstanding book; it taught me a lot about networking, really made the subject comprehensible. The other O'Reilly book that I found indispensable when getting started was 'Essential System Administration' by Aeleen Frisch. In fact, why don't I just me too about O'Reilly. Everything of theirs that I have seen has been excellent. I'll third it Chris. Apart from Tanenbaum's seminal 'Computer Networks' (qv) a decade earlier, I learned most of what I needed to setup mail, DNS, other servers and TCP/IP networking in general from Hunt's book. I also borrowed Frish's excellent book (for about five years :) and found it invaluable for all sorts of sysadmin tasks, including good shell scripting techniques, covering a wide range of unixish OSes. Anton, I'm not sure what the state of the art is for multiple network profiles for such as wireless vs wired, home and work etc, but look around. I recall one called just 'profile' from years ago, and more recently talk of 'failover' setups for wired/wireless nets (probably in n...@freebsd.org), but I've no time for hunting tonight. Anyone? cheers, Ian ___ 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: help debug bwn(4) wireless
On 06/05/2012 17:31, Ian Smith wrote: Anton, I'm not sure what the state of the art is for multiple network profiles for such as wireless vs wired, home and work etc, but look around. I recall one called just 'profile' from years ago, and more recently talk of 'failover' setups for wired/wireless nets (probably in n...@freebsd.org), but I've no time for hunting tonight. Anyone? Would that be lagg? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-aggregation.html Chris cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: help debug bwn(4) wireless
On Fri, 4 May 2012 21:03:07 +0100, Anton Shterenlikht wrote: [..] wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:c0:49:58:00:fe inet 192.168.1.104 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g status: associated ssid lagartixa channel 11 (2462 MHz 11g) bssid 00:18:39:e6:46:b6 country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL I run wpa_supplicant: # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf Trying to associate with 00:18:39:e6:46:b6 (SSID='lagartixa' freq=2462 MHz) Associated with 00:18:39:e6:46:b6 WPA: Key negotiation completed with 00:18:39:e6:46:b6 [PTK=CCMP GTK=CCMP] CTRL-EVENT-CONNECTED - Connection to 00:18:39:e6:46:b6 completed (auth) [id=0 id_str=] I got issued the ip address by my wireless router. I see the card on the router: DHCP Active IP Table DHCP Server IP Address: 192.168.1.1 Client Host Name IP Address MAC Address Expires 192.168.1.104 00:c0:49:58:00:fe 23:58:54 I get /etc/resolve.conf set up automatically (through the wired connection): % cat /etc/resolv.conf # Generated by resolvconf search cable.virginmedia.net nameserver 194.168.4.100 nameserver 194.168.8.100 But I just can't get the wireless connection, even to the router: % ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ^C What sayeth 'netstat -finet -rn' ? cheers, Ian ___ 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: help debug bwn(4) wireless
On Fri, May 04, 2012 at 04:56:33PM -0500, Robert Bonomi wrote: Anton Shterenlikht me...@bristol.ac.uk wrote: I've US Robotics 5411 wireless pccard device. It's identified as: # pciconf -lv *skip* siba_bwn0@pci0:3:0:0: class=0x028000 card=0x431814e4 chip=0x431814e4 rev=0x02 hdr=0x00 vendor = 'Broadcom Corporation' device = 'BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller' class = network and from dmesg: siba_bwn0: Broadcom BCM4318 802.11b/g Wireless mem 0xcc502000-0xcc503fff irq 20 at device 0.0 on cardbus0 bwn0 on siba_bwn0 bwn0: WLAN (chipid 0x4318 rev 9) PHY (analog 3 type 2 rev 7) RADIO (manuf 0x17f ver 0x2050 rev 8) bwn0: DMA (32 bits) I've build a kernel with bwn(4), loaded the firmware module: # kldstat Id Refs AddressSize Name 14 0x8020 104fb98 kernel 21 0x81412000 28aa1bwn_v4_ucode.ko # I created wlan device: bwn0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290 ether 00:c0:49:58:00:fe nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:c0:49:58:00:fe inet 192.168.1.104 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g status: associated ssid lagartixa channel 11 (2462 MHz 11g) bssid 00:18:39:e6:46:b6 country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL I run wpa_supplicant: # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf Trying to associate with 00:18:39:e6:46:b6 (SSID='lagartixa' freq=2462 MHz) Associated with 00:18:39:e6:46:b6 WPA: Key negotiation completed with 00:18:39:e6:46:b6 [PTK=CCMP GTK=CCMP] CTRL-EVENT-CONNECTED - Connection to 00:18:39:e6:46:b6 completed (auth) [id=0 id_str=] I got issued the ip address by my wireless router. I see the card on the router: DHCP Active IP Table DHCP Server IP Address: 192.168.1.1 Client Host NameIP AddressMAC AddressExpires 192.168.1.10400:c0:49:58:00:fe 23:58:54 I get /etc/resolve.conf set up automatically (through the wired connection): % cat /etc/resolv.conf # Generated by resolvconf search cable.virginmedia.net nameserver 194.168.4.100 nameserver 194.168.8.100 But I just can't get the wireless connection, even to the router: % ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ^C On the console I see: RX decryption attempted (old 0 keyidx 0x1) RX decryption attempted (old 0 keyidx 0x1) RX decryption attempted (old 0 keyidx 0x1) RX decryption attempted (old 0 keyidx 0x1) firmware version (rev 410 patch 2160 date 0x751a time 0x7c0a) Please help It looks like you're missing a route. I suspect you've got a wired ethernet port, that is being conigured with a default address. and the default route points -there-. Please show the output of 'ifconfig -a', and 'netstat -nr'. # ifconfig -a bge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE ether 00:1a:4b:89:4b:4e inet 192.168.1.101 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 inet 127.0.0.1 netmask 0xff00 nd6 options=21PERFORMNUD,AUTO_LINKLOCAL bwn0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290 ether 00:c0:49:58:00:fe nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:c0:49:58:00:fe inet 192.168.1.104 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g status: associated ssid lagartixa channel 11 (2462 MHz 11g) bssid 00:18:39:e6:46:b6 country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss
Re: help debug bwn(4) wireless
On Sat, May 05, 2012 at 07:30:17AM +0800, Buganini wrote: how about `ifconfig wlan0 mode 11b` 11g sticks very soon for me and some other people. Regards, Buganini seems to make no difference: wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:c0:49:58:00:fe inet 192.168.1.104 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11b status: associated ssid lagartixa channel 11 (2462 MHz 11b) bssid 00:18:39:e6:46:b6 country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 1 wme roaming MANUAL GEN4 ping bris.ac.uk ping: cannot resolve bris.ac.uk: Host name lookup failure GEN4 ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ^C -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ 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: help debug bwn(4) wireless
On Sat, May 05, 2012 at 04:38:18PM +1000, Ian Smith wrote: On Fri, 4 May 2012 21:03:07 +0100, Anton Shterenlikht wrote: [..] wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:c0:49:58:00:fe inet 192.168.1.104 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g status: associated ssid lagartixa channel 11 (2462 MHz 11g) bssid 00:18:39:e6:46:b6 country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL I run wpa_supplicant: # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf Trying to associate with 00:18:39:e6:46:b6 (SSID='lagartixa' freq=2462 MHz) Associated with 00:18:39:e6:46:b6 WPA: Key negotiation completed with 00:18:39:e6:46:b6 [PTK=CCMP GTK=CCMP] CTRL-EVENT-CONNECTED - Connection to 00:18:39:e6:46:b6 completed (auth) [id=0 id_str=] I got issued the ip address by my wireless router. I see the card on the router: DHCP Active IP Table DHCP Server IP Address: 192.168.1.1 Client Host Name IP Address MAC Address Expires 192.168.1.104 00:c0:49:58:00:fe 23:58:54 I get /etc/resolve.conf set up automatically (through the wired connection): % cat /etc/resolv.conf # Generated by resolvconf search cable.virginmedia.net nameserver 194.168.4.100 nameserver 194.168.8.100 But I just can't get the wireless connection, even to the router: % ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ^C What sayeth 'netstat -finet -rn' ? # netstat -finet -rn Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.1.1UGS 0 1437 bge0 127.0.0.1 link#8 UH 00lo0 192.168.1.0/24 link#1 U 00 bge0 192.168.1.101 link#1 UHS 00lo0 192.168.1.104 link#10UHS 00lo0 I've these lines in /etc/rc.conf: defaultrouter=192.168.1.1 ifconfig_bge0=DHCP ifconfig_wlan0=DHCP Does this look right? Many thanks -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ 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: help debug bwn(4) wireless
: Anton Shterenlikht me...@bristol.ac.uk wrote: On Fri, May 04, 2012 at 04:56:33PM -0500, Robert Bonomi wrote: It looks like you're missing a route. I suspect you've got a wired ethernet port, that is being conigured with a default address. and the default route points -there-. Please show the output of 'ifconfig -a', and 'netstat -nr'. # ifconfig -a bge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE ether 00:1a:4b:89:4b:4e inet 192.168.1.101 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 inet 127.0.0.1 netmask 0xff00 nd6 options=21PERFORMNUD,AUTO_LINKLOCAL bwn0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290 ether 00:c0:49:58:00:fe nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:c0:49:58:00:fe inet 192.168.1.104 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g status: associated ssid lagartixa channel 11 (2462 MHz 11g) bssid 00:18:39:e6:46:b6 country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL # netstat -nr Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.1.1UGS 0 624 bge0 127.0.0.1 link#8 UH 00lo0 192.168.1.0/24 link#1 U 00 bge0 192.168.1.101 link#1 UHS 00lo0 192.168.1.104 link#10UHS 00lo0 BINGO! You are using *both* a hard-wired connection (bge0) and a wireless (wan0) one. You have configured _both_ adresses on the *same* LAN netblock (192.168.1.0/255). This is a big 'no-no'. Different enterfaces o difereent LANs _have_ to be in different netblocks. As you can see from the 'routing table' *everything* is routed over 'bge0', the _wired_ connection. I don't knoe enough about your neteork 'architecture' to guess what you're -trying- to do, but you'r doing it wrong. wry grin At a -minimum-, you need to: 1) use different networks/subnets for the wired network (where 'bge0' is connected) and the wireless network (accessed through 'wlan0'). Tell the wireless access point to hand out DHCP addresses from the netblock 192.168.2.0/24, for example. 2) make sure that the configuration for 'bge0' does -not- set up that interface as the 'default' route. 3) ADD configurationn info to use 'wlan0' as the 'default' route. If you're tryinng to use this computer to 'share' the wireless connection with other machines on the wired network, you will need to enable 'gateway'/'forwarding'/'routing' on this box, to pass packets between the interfaces. ___ 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: help debug bwn(4) wireless
On Sat, May 05, 2012 at 01:32:00PM -0500, Robert Bonomi wrote: : Anton Shterenlikht me...@bristol.ac.uk wrote: On Fri, May 04, 2012 at 04:56:33PM -0500, Robert Bonomi wrote: It looks like you're missing a route. I suspect you've got a wired ethernet port, that is being conigured with a default address. and the default route points -there-. Please show the output of 'ifconfig -a', and 'netstat -nr'. # ifconfig -a bge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE ether 00:1a:4b:89:4b:4e inet 192.168.1.101 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 inet 127.0.0.1 netmask 0xff00 nd6 options=21PERFORMNUD,AUTO_LINKLOCAL bwn0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290 ether 00:c0:49:58:00:fe nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:c0:49:58:00:fe inet 192.168.1.104 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g status: associated ssid lagartixa channel 11 (2462 MHz 11g) bssid 00:18:39:e6:46:b6 country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL # netstat -nr Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.1.1UGS 0 624 bge0 127.0.0.1 link#8 UH 00lo0 192.168.1.0/24 link#1 U 00 bge0 192.168.1.101 link#1 UHS 00lo0 192.168.1.104 link#10UHS 00lo0 BINGO! You are using *both* a hard-wired connection (bge0) and a wireless (wan0) one. You have configured _both_ adresses on the *same* LAN netblock (192.168.1.0/255). This is a big 'no-no'. Different enterfaces o difereent LANs _have_ to be in different netblocks. As you can see from the 'routing table' *everything* is routed over 'bge0', the _wired_ connection. I don't knoe enough about your neteork 'architecture' to guess what you're -trying- to do, but you'r doing it wrong. wry grin At a -minimum-, you need to: 1) use different networks/subnets for the wired network (where 'bge0' is connected) and the wireless network (accessed through 'wlan0'). Tell the wireless access point to hand out DHCP addresses from the netblock 192.168.2.0/24, for example. 2) make sure that the configuration for 'bge0' does -not- set up that interface as the 'default' route. 3) ADD configurationn info to use 'wlan0' as the 'default' route. If you're tryinng to use this computer to 'share' the wireless connection with other machines on the wired network, you will need to enable 'gateway'/'forwarding'/'routing' on this box, to pass packets between the interfaces. Thank you. Replying via wireless: # netstat -finet -rn Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.1.1UGS 0 1243 wlan0 127.0.0.1 link#8 UH 0 82lo0 192.168.1.0/24 link#10U 06 wlan0 192.168.1.104 link#10UHS 00lo0 # I'm afraid I understand very little from what you've written. Sorry to be such a shmuck. I've read a couple of books on networking, someting like Patterson Hennesy (?) Networking - system approach (?), but I still find the whole networking area perfectly impenetrable. (If you can recommend a really introductory book on the subject, I'd really appreciate it. Something that explains the whole terminology behind e.g. netstat - protocol, socket, interface, multicast, etc.) So, what I did is I disabled bge completely, i.e. removed from /etc/rc.conf, and I remembered to include wlan0 in /etc/ipf.rules. This works ok. I'll need to think of an easy system to switch from bge to bwn. I usually use bge with static ip address at work and I'm trying to use bwn at home. Many thanks for your help -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University
Re: help debug bwn(4) wireless
Anton Shterenlikht me...@bristol.ac.uk wrote; I'm afraid I understand very little from what you've written. Sorry to be such a shmuck. I've read a couple of books on networking, someting like Patterson Hennesy (?) Networking - system approach (?), but I still find the whole networking area perfectly impenetrable. (If you can recommend a really introductory book on the subject, I'd really appreciate it. The following books are *NOT* easy reading, but will teach you nearly everything about how networking works: 'TCP/IP illustrated' Volumes 1 and 2 (3 is optional) Internetworking with TCP/IP' Volumes 1 and 2 (3 is 'programming') These are the 'bibles' that virtully every professional has on their reference shelf (becaue they cover *everythig* from the very basics up), along with 'Unix Network Programming', which gets into the nitty-gritty details of the internals of writing software that communicates over the network. See also TCP/IP Network Administration. This is an O'Reilley Associates book. Virtually *everything* they publish is excellent. If they've ever published an even mediocre book, _I_ have never encountered it. For 'minimalist'/'simplistic' descriptions of specific terms, see: http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V50A_HTML/GLSSRYXX.HTM Google for 'unix glossary of terms' for attidional useful wordists. So, what I did is I disabled bge completely, i.e. removed from /etc/rc.conf, and I remembered to include wlan0 in /etc/ipf.rules. This works ok. AH, if it is an 'either/or' situation, then life is a lot simpler. The 'ifconfig -a' output showed that _both_ interfaes were configured, UP, with an IP address, *AND* that _both_ were connected to 'something'. Using both interfaces at the same time is significantly more complicated. 'Doable', just a bit tricky. And how you do it depends on 'whiich way' is 'out' (to the rest of the world.) I'll need to think of an easy system to switch from bge to bwn. I usually use bge with static ip address at work and I'm trying to use bwn at home. Write two simple shell sripts. One that doess the things you just did to 'remove' bge0, and enable bwn0/wlan0. And another that removes the bwn0/wlan0 references and adds the bge0 stu back in. If you're doing this by manipulating the rc.conf settings, then you can even stick an automatic reboot in the end of each of those scripts. If you turn on the machine and it comes up in the 'wrong' configuration, just run the script to change to the 'other' one. And reboot, if the script doesn't do it for you. When you have a better understanding of networking, and the the basic networking configuration commands ('ifconfig' and 'route', primarily), you can write scripts that make the operational changes -without- needing to reboot. Then you can leave the 'boot' configuration at whatever you 'normally' use (probably 'work'), and run the 'wireless' script to take down the ethernet ad bring up the Wi-Fi. ___ 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: help debug bwn(4) wireless
On Sat, 5 May 2012, Robert Bonomi wrote: Anton Shterenlikht me...@bristol.ac.uk wrote; [snip] ...I still find the whole networking area perfectly impenetrable. (If you can recommend a really introductory book on the subject, I'd really appreciate it. [snip] See also TCP/IP Network Administration. This is an O'Reilley Associates book. Virtually *everything* they publish is excellent. If they've ever published an even mediocre book, _I_ have never encountered it. Anton, I'll second that recommendation. 'TCP/IP Network Administration' by Craig Hunt is an outstanding book; it taught me a lot about networking, really made the subject comprehensible. The other O'Reilly book that I found indispensable when getting started was 'Essential System Administration' by Aeleen Frisch. In fact, why don't I just me too about O'Reilly. Everything of theirs that I have seen has been excellent. [snip] -- 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: help debug bwn(4) wireless
how about `ifconfig wlan0 mode 11b` 11g sticks very soon for me and some other people. Regards, Buganini 2012/5/5 Anton Shterenlikht me...@bristol.ac.uk: I've US Robotics 5411 wireless pccard device. It's identified as: # pciconf -lv *skip* siba_bwn0@pci0:3:0:0: class=0x028000 card=0x431814e4 chip=0x431814e4 rev=0x02 hdr=0x00 vendor = 'Broadcom Corporation' device = 'BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller' class = network and from dmesg: siba_bwn0: Broadcom BCM4318 802.11b/g Wireless mem 0xcc502000-0xcc503fff irq 20 at device 0.0 on cardbus0 bwn0 on siba_bwn0 bwn0: WLAN (chipid 0x4318 rev 9) PHY (analog 3 type 2 rev 7) RADIO (manuf 0x17f ver 0x2050 rev 8) bwn0: DMA (32 bits) I've build a kernel with bwn(4), loaded the firmware module: # kldstat Id Refs Address Size Name 1 4 0x8020 104fb98 kernel 2 1 0x81412000 28aa1 bwn_v4_ucode.ko # I created wlan device: bwn0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290 ether 00:c0:49:58:00:fe nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:c0:49:58:00:fe inet 192.168.1.104 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g status: associated ssid lagartixa channel 11 (2462 MHz 11g) bssid 00:18:39:e6:46:b6 country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL I run wpa_supplicant: # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf Trying to associate with 00:18:39:e6:46:b6 (SSID='lagartixa' freq=2462 MHz) Associated with 00:18:39:e6:46:b6 WPA: Key negotiation completed with 00:18:39:e6:46:b6 [PTK=CCMP GTK=CCMP] CTRL-EVENT-CONNECTED - Connection to 00:18:39:e6:46:b6 completed (auth) [id=0 id_str=] I got issued the ip address by my wireless router. I see the card on the router: DHCP Active IP Table DHCP Server IP Address: 192.168.1.1 Client Host Name IP Address MAC Address Expires 192.168.1.104 00:c0:49:58:00:fe 23:58:54 I get /etc/resolve.conf set up automatically (through the wired connection): % cat /etc/resolv.conf # Generated by resolvconf search cable.virginmedia.net nameserver 194.168.4.100 nameserver 194.168.8.100 But I just can't get the wireless connection, even to the router: % ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ^C On the console I see: RX decryption attempted (old 0 keyidx 0x1) RX decryption attempted (old 0 keyidx 0x1) RX decryption attempted (old 0 keyidx 0x1) RX decryption attempted (old 0 keyidx 0x1) firmware version (rev 410 patch 2160 date 0x751a time 0x7c0a) Please help What am I doing wrong? What else can I try? Many thanks -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-mob...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to freebsd-mobile-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help compiling ffmpeg from source
On 02/29/12 23:48, Andy Wodfer wrote: I'm on FreeBSD 8.2 STABLE (AMD64). I need to install the latest ffmpeg 0.10, but it fails when compiling. I must admit I very rarely do it this way. Normally all software is installed from ports, but I couldn't find this version of ffmpeg there. Heres what I do: ./configure gmake and the problem looks like this: [snip] /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,2)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression gmake: *** [libavcodec/h264_cabac.o] Error 1 Thats right, I remember this one- really simple but will get you every time! You need a newer gcc version (probably 4.6 will get you out of trouble if I remember correctly). The port already sets this, it will only bite when you're working solo. HTH ___ 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: Help compiling ffmpeg from source
On Wed, Feb 29, 2012 at 2:50 PM, Da Rock freebsd-questi...@herveybayaustralia.com.au wrote: On 02/29/12 23:48, Andy Wodfer wrote: I'm on FreeBSD 8.2 STABLE (AMD64). I need to install the latest ffmpeg 0.10, but it fails when compiling. I must admit I very rarely do it this way. Normally all software is installed from ports, but I couldn't find this version of ffmpeg there. Heres what I do: ./configure gmake and the problem looks like this: [snip] /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,**2)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression gmake: *** [libavcodec/h264_cabac.o] Error 1 Thats right, I remember this one- really simple but will get you every time! You need a newer gcc version (probably 4.6 will get you out of trouble if I remember correctly). The port already sets this, it will only bite when you're working solo. Ok - thanks! I'm currently doing this: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html I will report back on how it goes. :-) Cheers, Andy ___ 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: Help compiling ffmpeg from source
On Wed, Feb 29, 2012 at 3:09 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 2:50 PM, Da Rock freebsd-questi...@herveybayaustralia.com.au wrote: On 02/29/12 23:48, Andy Wodfer wrote: I'm on FreeBSD 8.2 STABLE (AMD64). I need to install the latest ffmpeg 0.10, but it fails when compiling. I must admit I very rarely do it this way. Normally all software is installed from ports, but I couldn't find this version of ffmpeg there. Heres what I do: ./configure gmake and the problem looks like this: [snip] /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,**2)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression gmake: *** [libavcodec/h264_cabac.o] Error 1 Thats right, I remember this one- really simple but will get you every time! You need a newer gcc version (probably 4.6 will get you out of trouble if I remember correctly). The port already sets this, it will only bite when you're working solo. Ok - thanks! I'm currently doing this: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html I will report back on how it goes. :-) Cheers, Andy So, I updated gmake to 3.82 from ports and installed gcc47 from ports. I updated /etc/make.conf as described here: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html However, I don't have a libmap file so I skipped this one and the other ones below in the article. Here's some outputs: # gmake -v GNU Make 3.82 Built for amd64-portbld-freebsd8.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. # gcc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.2 20070831 prerelease [FreeBSD] How do I tell the system to use gcc47 instead of 4.2.2 (if that's what causes the problems)? Compiling ffmpeg from source still failes on the same line as in my orginal post. Thanks a lot for any pointers that will help me resolve this. :-) All the best, Andy ___ 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: Help compiling ffmpeg from source
On Feb 29, 2012 12:10 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 3:09 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 2:50 PM, Da Rock freebsd-questi...@herveybayaustralia.com.au wrote: On 02/29/12 23:48, Andy Wodfer wrote: I'm on FreeBSD 8.2 STABLE (AMD64). I need to install the latest ffmpeg 0.10, but it fails when compiling. I must admit I very rarely do it this way. Normally all software is installed from ports, but I couldn't find this version of ffmpeg there. Heres what I do: ./configure gmake and the problem looks like this: [snip] /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,**2)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression gmake: *** [libavcodec/h264_cabac.o] Error 1 Thats right, I remember this one- really simple but will get you every time! You need a newer gcc version (probably 4.6 will get you out of trouble if I remember correctly). The port already sets this, it will only bite when you're working solo. Ok - thanks! I'm currently doing this: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html I will report back on how it goes. :-) Cheers, Andy So, I updated gmake to 3.82 from ports and installed gcc47 from ports. I updated /etc/make.conf as described here: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html However, I don't have a libmap file so I skipped this one and the other ones below in the article. Here's some outputs: # gmake -v GNU Make 3.82 Built for amd64-portbld-freebsd8.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. # gcc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.2 20070831 prerelease [FreeBSD] How do I tell the system to use gcc47 instead of 4.2.2 (if that's what causes the problems)? Compiling ffmpeg from source still failes on the same line as in my orginal post. Thanks a lot for any pointers that will help me resolve this. :-) All the best, Andy ___ 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 is there a gcc47 or maybe a typo? should be # export CC=gcc46 or # setenv CC gcc46 if building from source -- Waitman Gobble San Jose California USA ___ 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: Help compiling ffmpeg from source
On Wed, Feb 29, 2012 at 12:20 PM, Waitman Gobble gobble...@gmail.comwrote: On Feb 29, 2012 12:10 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 3:09 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 2:50 PM, Da Rock freebsd-questi...@herveybayaustralia.com.au wrote: On 02/29/12 23:48, Andy Wodfer wrote: I'm on FreeBSD 8.2 STABLE (AMD64). I need to install the latest ffmpeg 0.10, but it fails when compiling. I must admit I very rarely do it this way. Normally all software is installed from ports, but I couldn't find this version of ffmpeg there. Heres what I do: ./configure gmake and the problem looks like this: [snip] /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,**2)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression gmake: *** [libavcodec/h264_cabac.o] Error 1 Thats right, I remember this one- really simple but will get you every time! You need a newer gcc version (probably 4.6 will get you out of trouble if I remember correctly). The port already sets this, it will only bite when you're working solo. Ok - thanks! I'm currently doing this: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html I will report back on how it goes. :-) Cheers, Andy So, I updated gmake to 3.82 from ports and installed gcc47 from ports. I updated /etc/make.conf as described here: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html However, I don't have a libmap file so I skipped this one and the other ones below in the article. Here's some outputs: # gmake -v GNU Make 3.82 Built for amd64-portbld-freebsd8.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. # gcc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.2 20070831 prerelease [FreeBSD] How do I tell the system to use gcc47 instead of 4.2.2 (if that's what causes the problems)? Compiling ffmpeg from source still failes on the same line as in my orginal post. Thanks a lot for any pointers that will help me resolve this. :-) All the best, Andy ___ 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 is there a gcc47 or maybe a typo? should be # export CC=gcc46 or # setenv CC gcc46 if building from source -- Waitman Gobble San Jose California USA OOps my bad, that's the gcc development version... stable is 4.6.2.. or gcc46 ... didn't notice there was a port :) Waitman ___ 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: Help compiling ffmpeg from source
On Wed, Feb 29, 2012 at 9:20 PM, Waitman Gobble gobble...@gmail.com wrote: On Feb 29, 2012 12:10 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 3:09 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 2:50 PM, Da Rock freebsd-questi...@herveybayaustralia.com.au wrote: On 02/29/12 23:48, Andy Wodfer wrote: I'm on FreeBSD 8.2 STABLE (AMD64). I need to install the latest ffmpeg 0.10, but it fails when compiling. I must admit I very rarely do it this way. Normally all software is installed from ports, but I couldn't find this version of ffmpeg there. Heres what I do: ./configure gmake and the problem looks like this: [snip] /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,**2)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression gmake: *** [libavcodec/h264_cabac.o] Error 1 Thats right, I remember this one- really simple but will get you every time! You need a newer gcc version (probably 4.6 will get you out of trouble if I remember correctly). The port already sets this, it will only bite when you're working solo. Ok - thanks! I'm currently doing this: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html I will report back on how it goes. :-) Cheers, Andy So, I updated gmake to 3.82 from ports and installed gcc47 from ports. I updated /etc/make.conf as described here: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html However, I don't have a libmap file so I skipped this one and the other ones below in the article. Here's some outputs: # gmake -v GNU Make 3.82 Built for amd64-portbld-freebsd8.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. # gcc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.2 20070831 prerelease [FreeBSD] How do I tell the system to use gcc47 instead of 4.2.2 (if that's what causes the problems)? Compiling ffmpeg from source still failes on the same line as in my orginal post. Thanks a lot for any pointers that will help me resolve this. :-) All the best, Andy ___ 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 is there a gcc47 or maybe a typo? should be # export CC=gcc46 or # setenv CC gcc46 if building from source -- Waitman Gobble San Jose California USA Yes, gcc47 was out a few days ago. So, I'm making some progress. I now export CC=gcc47 and by adding this ./configure --extra-cflags=-DBROKEN_RELOCATIONS (what does this mean/do???) I'm able to get past the h264 compile fail. However, I now stop at vp5 with the following message: CC libavcodec/vp5.o /var/tmp//ccmvakth.s: Assembler messages: /var/tmp//ccmvakth.s:323: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:436: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:548: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:669: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:920: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:1136: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:1422: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:1531: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:1826: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:1923: Error: `(%esi,%edx)' is not
Re: Help compiling ffmpeg from source
On Wed, Feb 29, 2012 at 12:37 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 9:20 PM, Waitman Gobble gobble...@gmail.com wrote: On Feb 29, 2012 12:10 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 3:09 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 2:50 PM, Da Rock freebsd-questi...@herveybayaustralia.com.au wrote: On 02/29/12 23:48, Andy Wodfer wrote: I'm on FreeBSD 8.2 STABLE (AMD64). I need to install the latest ffmpeg 0.10, but it fails when compiling. I must admit I very rarely do it this way. Normally all software is installed from ports, but I couldn't find this version of ffmpeg there. Heres what I do: ./configure gmake and the problem looks like this: [snip] /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,**2)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression gmake: *** [libavcodec/h264_cabac.o] Error 1 Thats right, I remember this one- really simple but will get you every time! You need a newer gcc version (probably 4.6 will get you out of trouble if I remember correctly). The port already sets this, it will only bite when you're working solo. Ok - thanks! I'm currently doing this: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html I will report back on how it goes. :-) Cheers, Andy So, I updated gmake to 3.82 from ports and installed gcc47 from ports. I updated /etc/make.conf as described here: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html However, I don't have a libmap file so I skipped this one and the other ones below in the article. Here's some outputs: # gmake -v GNU Make 3.82 Built for amd64-portbld-freebsd8.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. # gcc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.2 20070831 prerelease [FreeBSD] How do I tell the system to use gcc47 instead of 4.2.2 (if that's what causes the problems)? Compiling ffmpeg from source still failes on the same line as in my orginal post. Thanks a lot for any pointers that will help me resolve this. :-) All the best, Andy ___ 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 is there a gcc47 or maybe a typo? should be # export CC=gcc46 or # setenv CC gcc46 if building from source -- Waitman Gobble San Jose California USA Yes, gcc47 was out a few days ago. So, I'm making some progress. I now export CC=gcc47 and by adding this ./configure --extra-cflags=-DBROKEN_RELOCATIONS (what does this mean/do???) I'm able to get past the h264 compile fail. However, I now stop at vp5 with the following message: CC libavcodec/vp5.o /var/tmp//ccmvakth.s: Assembler messages: /var/tmp//ccmvakth.s:323: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:436: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:548: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:669: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:920: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:1136: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:1422: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression
Re: Help compiling ffmpeg from source
On Wed, Feb 29, 2012 at 9:46 PM, Waitman Gobble gobble...@gmail.com wrote: On Wed, Feb 29, 2012 at 12:37 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 9:20 PM, Waitman Gobble gobble...@gmail.com wrote: On Feb 29, 2012 12:10 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 3:09 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 2:50 PM, Da Rock freebsd-questi...@herveybayaustralia.com.au wrote: On 02/29/12 23:48, Andy Wodfer wrote: I'm on FreeBSD 8.2 STABLE (AMD64). I need to install the latest ffmpeg 0.10, but it fails when compiling. I must admit I very rarely do it this way. Normally all software is installed from ports, but I couldn't find this version of ffmpeg there. Heres what I do: ./configure gmake and the problem looks like this: [snip] /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,**2)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression gmake: *** [libavcodec/h264_cabac.o] Error 1 Thats right, I remember this one- really simple but will get you every time! You need a newer gcc version (probably 4.6 will get you out of trouble if I remember correctly). The port already sets this, it will only bite when you're working solo. Ok - thanks! I'm currently doing this: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html I will report back on how it goes. :-) Cheers, Andy So, I updated gmake to 3.82 from ports and installed gcc47 from ports. I updated /etc/make.conf as described here: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html However, I don't have a libmap file so I skipped this one and the other ones below in the article. Here's some outputs: # gmake -v GNU Make 3.82 Built for amd64-portbld-freebsd8.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. # gcc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.2 20070831 prerelease [FreeBSD] How do I tell the system to use gcc47 instead of 4.2.2 (if that's what causes the problems)? Compiling ffmpeg from source still failes on the same line as in my orginal post. Thanks a lot for any pointers that will help me resolve this. :-) All the best, Andy ___ 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 is there a gcc47 or maybe a typo? should be # export CC=gcc46 or # setenv CC gcc46 if building from source -- Waitman Gobble San Jose California USA Yes, gcc47 was out a few days ago. So, I'm making some progress. I now export CC=gcc47 and by adding this ./configure --extra-cflags=-DBROKEN_RELOCATIONS (what does this mean/do???) I'm able to get past the h264 compile fail. However, I now stop at vp5 with the following message: CC libavcodec/vp5.o /var/tmp//ccmvakth.s: Assembler messages: /var/tmp//ccmvakth.s:323: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:436: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:548: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:669: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:920: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:1136: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression
Re: Help compiling ffmpeg from source
On Wed, Feb 29, 2012 at 1:03 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 9:46 PM, Waitman Gobble gobble...@gmail.comwrote: On Wed, Feb 29, 2012 at 12:37 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 9:20 PM, Waitman Gobble gobble...@gmail.com wrote: On Feb 29, 2012 12:10 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 3:09 PM, Andy Wodfer wod...@gmail.com wrote: On Wed, Feb 29, 2012 at 2:50 PM, Da Rock freebsd-questi...@herveybayaustralia.com.au wrote: On 02/29/12 23:48, Andy Wodfer wrote: I'm on FreeBSD 8.2 STABLE (AMD64). I need to install the latest ffmpeg 0.10, but it fails when compiling. I must admit I very rarely do it this way. Normally all software is installed from ports, but I couldn't find this version of ffmpeg there. Heres what I do: ./configure gmake and the problem looks like this: [snip] /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,**2)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit base/index expression /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64 bit base/index expression gmake: *** [libavcodec/h264_cabac.o] Error 1 Thats right, I remember this one- really simple but will get you every time! You need a newer gcc version (probably 4.6 will get you out of trouble if I remember correctly). The port already sets this, it will only bite when you're working solo. Ok - thanks! I'm currently doing this: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html I will report back on how it goes. :-) Cheers, Andy So, I updated gmake to 3.82 from ports and installed gcc47 from ports. I updated /etc/make.conf as described here: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html However, I don't have a libmap file so I skipped this one and the other ones below in the article. Here's some outputs: # gmake -v GNU Make 3.82 Built for amd64-portbld-freebsd8.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. # gcc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.2 20070831 prerelease [FreeBSD] How do I tell the system to use gcc47 instead of 4.2.2 (if that's what causes the problems)? Compiling ffmpeg from source still failes on the same line as in my orginal post. Thanks a lot for any pointers that will help me resolve this. :-) All the best, Andy ___ 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 is there a gcc47 or maybe a typo? should be # export CC=gcc46 or # setenv CC gcc46 if building from source -- Waitman Gobble San Jose California USA Yes, gcc47 was out a few days ago. So, I'm making some progress. I now export CC=gcc47 and by adding this ./configure --extra-cflags=-DBROKEN_RELOCATIONS (what does this mean/do???) I'm able to get past the h264 compile fail. However, I now stop at vp5 with the following message: CC libavcodec/vp5.o /var/tmp//ccmvakth.s: Assembler messages: /var/tmp//ccmvakth.s:323: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:436: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:548: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:669: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:920: Error: `(%r8d,%eax)' is not a valid 64 bit base/index expression /var/tmp//ccmvakth.s:1136: Error:
Re: Help! Drive failing in zpool
On 16/02/2012 11:23, Andy Wodfer wrote: I have a drive failing and it's a member of a zpool. Since I don't deal with these things every day I thought I ask for some help... :-) Well, the nice thing about ZFS is that it makes dealing with this sort of failure relatively painless. I've already ordered a new drive which will arrive shortly, but I was wondering if someone could guide me through the process of taking out a drive of the pool and replacing it with a new one and keep all the data intact? Ie. - put drive in offline mode - remove drive - insert new drive - whatever needs to set it up - add it to the zpool run OK. First you need to identify the failing drive physically. Do you know which of the drives on your machine is ad1? Kind of important to get this right. Many servers will give you helpful hints by displaying error lights on broken drives, or you may be able to use something like iLO or iDRAC to turn on an indicator LED. Or you may be able to tell by other means. However you do it, be sure about this, as taking out one of the good drives by accident will probably crash your system. Nb. pro-tip: take some small sticky labels to the datacenter with you (the sort you get for those year-planner wall calendars are ideal, but anything will do) and mark the duff drive with them, on the drive caddy before you pull the drive and on the drive itself if you need to reuse the caddy. Now, I can see from your zpool status that you are just using raw disks, so no worries about partitioning or marking anything bootable. If you'ld built the system as described in eg. http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/RAIDZ1 so you were booting from this zpool, then there would be extra steps needed here, but you haven't so there aren't. So, first take the drive out of the zpool. This will result in the zpool state changing to DEGRADED: # zpool offline files ad1 Now physically extract the drive from the machine and replace it with your brand new one. If this is not a hot-swap system that will involve powering down and application of screwdrivers. If it is a hot-swap system, then you need to ensure the OS recognized the new drive. # dmesg Should show messages about 'ad1' near to the end. # atacontrol list should mention the new drive. To force the new drive to be registered, you could use: # atacontrol reinit ata0 but that will also reset ad0, and runs the risk of disruption of service. It might be better to reboot if the system won't pick up the new drive automatically. Now you can rebuild your zpool: # zpool replace files ad1 You should see instant disk activity, and zpool status will show the drive being resilvered. Eventually status will change to ONLINE. That's it. All done. Btw, rebooting this server is not a problem if needed. That shouldn't be necessary, assuming that you have hot-swap drives. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: help needed for connecting internet with ZTE ac 8700 USB cdma ( EvDO) modem
Hi, On Friday 03 February 2012 17:46:58 Subhasish Chakraborty wrote: tail /var/log/ppp.log looks fine but dont know why this is showing at the end . Warning: 0.0.0.0: Change route failed: errno: No such process.. I have the same message but a working connection. I investigated at the beginning but gave up after some time. Erich regards Subhasish On 2/3/12, Subhasish Chakraborty imsubhasi...@gmail.com wrote: Thanks .. this ppp.conf worked for me . default: set log Phase Chat LCP IPCP CCP tun command disable pred1 deflate deflate24 protocomp acfcomp shortseq vj deny pred1 deflate deflate24 protocomp acfcomp shortseq vj set speed 115200 enable dns isp: set login set ctsrts on set device /dev/cuaU0.0 set phone \#777 set authname USER set authkey PASS set dial ABORT BUSY ABORT NO\\sCARRIER \ TIMEOUT 5 \ \\ ATE1 \ OK-AT-OK ATQ0V1X4 \ OK \\dATDT\\T \ TIMEOUT 40 \ CONNECT set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns nat enable yes nat deny_incoming yes ... Thanks again :-) On 2/3/12, Erich Dollansky erichfreebsdl...@ovitrap.com wrote: Hi, On Thursday 02 February 2012 22:43:21 Subhasish Chakraborty wrote: at last connected .. thanks a lot man . So have to automate the process.. put the commands now into your ppp.conf. Put nothing else into it and forget all what was in there before. You can - after it works - add more for debugging. Erich Regards Subhasish On 2/2/12, Erich Dollansky erichfreebsdl...@ovitrap.com wrote: Hi, try set ctsrts on Check the man pages for ppp. You see there several commands and options which might will help you. I really cannot tell why my modem works. It was just a strange trial and error sequence until it started to work. ppp does not detect that there is a carrier. The command above might fixes this. Erich On Thursday 02 February 2012 20:59:06 Subhasish Chakraborty wrote: atd#777 CONNECT ~!E ~~!E ~~!E ~~!E ~~!E~~!E~~!E~~!E ~~!E ~~!E ~~!E ,�H1:y1:qe��~~!E ~~!E ..endless loop .. I guess it's not coming out of terminal mode to packet mode. Do i have to put some extra commands .Thanks for the quick reply .. Regards Subhasish ___ 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: help accessing mdbtools man pages in /usr/local/share/man
On Mon, Jan 16, 2012 at 01:27:31PM -0700, Dale Scott wrote: I installed mdbtools from source on github and it put its man pages in /usr/local/share/man/man1, where the default man command doesn't find them (although man -M /usr/local/share/man mdb-export works). Just use `man /full/path/to/the/manpage`. Also check man(1) and man.conf(5) on how to specify additional MANPATHs. From man hier, it looks like the man pages should have been put into /usr/local/man. Is that correct? Also, the pages aren't in gz format (just mdb-export.1). Is there a typical workaround? (I expect this is not uncommon for an app coming from the Linux world?). It's not uncommon, but such stuff should be fixed when porting something from Linux world and manpages should go to /usr/local/man, as hier(7) tells. Yuri ___ 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: help accessing mdbtools man pages in /usr/local/share/man - SOLVED
- Original Message - From: Yuri Pankov yuri.pan...@gmail.com Date: Monday, January 16, 2012 13:49 Just use `man /full/path/to/the/manpage`. Also check man(1) and man.conf(5) on how to specify additional MANPATHs. Thanks Yuri! As per man.conf(5), I created /usr/local/etc/rc.d/mdbtools.conf to add /usr/local/share/man to the manpath (perhaps it could be named more correctly linux.conf, but for now the only manpages there are from mdbtools). ___ 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: help accessing mdbtools man pages in /usr/local/share/man - SOLVED
On Mon, Jan 16, 2012 at 03:30:29PM -0700, Dale Scott wrote: - Original Message - From: Yuri Pankov yuri.pan...@gmail.com Date: Monday, January 16, 2012 13:49 Just use `man /full/path/to/the/manpage`. Also check man(1) and man.conf(5) on how to specify additional MANPATHs. Thanks Yuri! As per man.conf(5), I created /usr/local/etc/rc.d/mdbtools.conf to add /usr/local/share/man to the manpath (perhaps it could be named more correctly linux.conf, but for now the only manpages there are from mdbtools). I hope rc.d was a typo? :-) If not, you want /usr/local/etc/man.d/*.conf. Yuri ___ 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: Help Recovering FBSD 8 ZFS System
On 1/2/2012 2:37 PM, Daniel Staal wrote: --As of January 2, 2012 2:14:55 PM -0800, Drew Tomlinson is alleged to have said: Thanks. I'll keep that in mind. However in this case, the controller is a SATA that's integrated into the motherboard. Since two of 4 are working, that would mean the controller is OK, right? I guess I could swap SATA cables for a test. --As for the rest, it is mine. Actually, typically one controller only runs two drives, IIRC. So you could have one bad controller out of two. If swapping cables helps, you may want to try getting a SATA card or something similar. (If swapping cables means you can see the other two drives, a SATA card should mean you'll get all your data back.) Thanks for that. Tore into it today. The unseen drive is dead. Doesn't even spin up and thus, the data and OS is gone. But on the bright side, this is a perfect opportunity to install 9.0 RC3. Thanks, Drew -- Like card tricks? Visit The Alchemist's Warehouse to learn card magic secrets for free! http://alchemistswarehouse.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: Help Recovering FBSD 8 ZFS System
--As of December 31, 2011 1:40:59 PM -0800, Drew Tomlinson is alleged to have said: Thus it appears I am missing ad16 that I used to have. My data zpool was the bulk of my system with over 600 gig of files and things I'd like to have back. I thought that by creating a raidz1 I could avoid having to back up the huge drive and avoid this grief. However it appears I have lost 2 disks at the same time. :( Any thoughts before I just give up on recovering my data pool? Ouch. All I can really say is 'Redundancy is not backup', but that's a bit trite... The one thing you haven't mentioned trying that might be worth the attempt is trying the recovery from a 9.0 disk. There has been work done on the ZFS system, and it's possible that something might work. But that's mostly just to be thorough... As for what it was telling you: It was just saying it couldn't open the drives. ;) Which does bring up one other option: If you've got a different drive controller, you might try plugging the drives into it. (In the hopes that it's the *controller* and not the drive that's gone bad. Unlikely, bit it *does* happen.) (Depending on the value of the data pool, a good data recovery service might be able to do something as well. But they'd have to be a very good service, and know what they were working with.) And regarding my root pool, my system can't mount root and start. What do I need to do to boot from my degraded root pool. Here's the current status: # zpool status pool: root state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: http://www.sun.com/msg/ZFS-8000-2Q scrub: none requested config: NAMESTATE READ WRITE CKSUM rootDEGRADED 0 0 0 mirrorDEGRADED 0 0 0 gptid/5b623854-6c46-11de-ae82-001b21361de7 ONLINE 0 0 0 12032653780322685599UNAVAIL 0 0 0 was /dev/ad6p3 Do I just need to do a 'zpool detach root /dev/ad6p3' to remove it from the pool and get it to boot? And then once I replace the disk a 'zpool attach root new partition' to fix? Thanks for your time. Personally, I'd do a 'zpool replace /dev/ad6p3 /dev/$NEWDRIVE', but the above should work as well. What's odd though is that you can't boot from it as is: Degraded should be considered functional, and it should let you boot. You mentioned updating the zpool to v15. Did you update the boot block at the same time? (Just checking the basics.) It'd need to be able to read the updated zpool. Daniel T. Staal --- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. --- ___ 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: Re: Help Recovering FBSD 8 ZFS System
Ladies and gentleman, I will be unplugged from my email until the 17th of January. In the mean time here's a video of a bunny opening your mail http://www.youtube.com/watch?v=LMyaRmTwdKs Your mail will not be forwarded and I will contact you when I come back, alternatively you can contact one of the other administrators or email i...@astalavista.com Merry christmas and a happy new year! Best regards, Sykadul ___ 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: Help Recovering FBSD 8 ZFS System
On 1/2/2012 12:36 PM, Daniel Staal wrote: --As of December 31, 2011 1:40:59 PM -0800, Drew Tomlinson is alleged to have said: Thus it appears I am missing ad16 that I used to have. My data zpool was the bulk of my system with over 600 gig of files and things I'd like to have back. I thought that by creating a raidz1 I could avoid having to back up the huge drive and avoid this grief. However it appears I have lost 2 disks at the same time. :( Any thoughts before I just give up on recovering my data pool? Ouch. All I can really say is 'Redundancy is not backup', but that's a bit trite... Yes, I know redundancy doesn't protect against operator error and thus isn't a true backup. However this is a personal system whose main function was to store DVDs, MP3s, photos, and the like. I can recreate most of the content and have backups of the photos up until about a year ago (bad me). The one thing you haven't mentioned trying that might be worth the attempt is trying the recovery from a 9.0 disk. There has been work done on the ZFS system, and it's possible that something might work. But that's mostly just to be thorough... I may try this. However I suspect before anything can work, I have to get the missing disk(s) detected by the OS. One (ad6) is detected but full of errors. There is another that's not even seen. As for what it was telling you: It was just saying it couldn't open the drives. ;) Which does bring up one other option: If you've got a different drive controller, you might try plugging the drives into it. (In the hopes that it's the *controller* and not the drive that's gone bad. Unlikely, bit it *does* happen.) Thanks. I'll keep that in mind. However in this case, the controller is a SATA that's integrated into the motherboard. Since two of 4 are working, that would mean the controller is OK, right? I guess I could swap SATA cables for a test. (Depending on the value of the data pool, a good data recovery service might be able to do something as well. But they'd have to be a very good service, and know what they were working with.) And regarding my root pool, my system can't mount root and start. What do I need to do to boot from my degraded root pool. Here's the current status: # zpool status pool: root state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: http://www.sun.com/msg/ZFS-8000-2Q scrub: none requested config: NAMESTATE READ WRITE CKSUM rootDEGRADED 0 0 0 mirrorDEGRADED 0 0 0 gptid/5b623854-6c46-11de-ae82-001b21361de7 ONLINE 0 0 0 12032653780322685599UNAVAIL 0 0 0 was /dev/ad6p3 Do I just need to do a 'zpool detach root /dev/ad6p3' to remove it from the pool and get it to boot? And then once I replace the disk a 'zpool attach root new partition' to fix? Thanks for your time. Personally, I'd do a 'zpool replace /dev/ad6p3 /dev/$NEWDRIVE', but the above should work as well. What's odd though is that you can't boot from it as is: Degraded should be considered functional, and it should let you boot. You mentioned updating the zpool to v15. Did you update the boot block at the same time? (Just checking the basics.) It'd need to be able to read the updated zpool. I assume I upgraded the boot block since I've had no trouble booting before the drive failures and the upgrade was a long time ago. Thanks for your help. Drew -- Like card tricks? Visit The Alchemist's Warehouse to learn card magic secrets for free! http://alchemistswarehouse.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: Help Recovering FBSD 8 ZFS System
--As of January 2, 2012 2:14:55 PM -0800, Drew Tomlinson is alleged to have said: Thanks. I'll keep that in mind. However in this case, the controller is a SATA that's integrated into the motherboard. Since two of 4 are working, that would mean the controller is OK, right? I guess I could swap SATA cables for a test. --As for the rest, it is mine. Actually, typically one controller only runs two drives, IIRC. So you could have one bad controller out of two. If swapping cables helps, you may want to try getting a SATA card or something similar. (If swapping cables means you can see the other two drives, a SATA card should mean you'll get all your data back.) Daniel T. Staal --- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. --- ___ 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: Re: Help Recovering FBSD 8 ZFS System
Ladies and gentleman, I will be unplugged from my email until the 17th of January. In the mean time here's a video of a bunny opening your mail http://www.youtube.com/watch?v=LMyaRmTwdKs Your mail will not be forwarded and I will contact you when I come back, alternatively you can contact one of the other administrators or email i...@astalavista.com Merry christmas and a happy new year! Best regards, Sykadul ___ 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: Help needed: sound/audio only semi-working
Carl Johnson ca...@peak.org writes: Ronald F. Guilmette r...@tristatelogic.com writes: I've been bringing up a new amd64 box with 8.2-RELEASE. So far I've managed to get everything installed OK, including a boatload of freshly-built ports. I've even gotten flash10 working with firefox... well... Unfortunately, this is only MOSTLY working. The video works great, but for audio all I get is absolute silence. __snip__ I also have a Gigabyte board with HDA audio, and it won't directly play CD sound either. I had already ripped all of my CDs to .ogg files, so I hadn't needed to play the CDs directly. I just tested ripping a small section of a CD using cdparanoia and it does produce a .wav audio file that can be played using sox. I also notice on my computer that mixer doesn't show any controls for CD audio. Unfortunately, I don't remember if CDs worked properly on this computer when I had Linux installed, so I don't know if the problem is FreeBSD or the motherboard. I did find that I have a program called kscd (for KDE) that will play, but I suspect that it uses digital extraction instead of playing from audio. My system uses a Gigabyte GA-MA785GPM-US2H, and the sndstat output is: FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: HDA ATI RS690/780 HDMI PCM #0 HDMI (play) pcm1: HDA Realtek ALC885 PCM #0 Analog (play/rec) default pcm2: HDA Realtek ALC885 PCM #1 Analog (play/rec) pcm3: HDA Realtek ALC885 PCM #2 Digital (play/rec) Just to follow up, I just rebooted into Linux and the CD audio appears to work properly on it and the CD mixer control seems to work properly. I have FreeBSD 8.1-RELEASE, so it may have changed since then. -- Carl Johnsonca...@peak.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: Help needed: sound/audio only semi-working
On Fri, 21 Oct 2011 18:29:25 -0700, Ronald F. Guilmette wrote: The really strange thing is that after I followed all the directions here: http://www.freebsd.org/doc/en/books/handbook/sound-setup.html This command: cat /dev/random /dev/dsp *does* produce quite a bit of white noise sound. However when I perform the other officially recommended basic audio functionality test: cdcontrol -f /dev/acd0 play 1 with one of my favorite old audo CDs in the drive (AND with that special little wire running from the back of the drive to my motherboard) all that happens is that the CD/DVD drive apparently _does_ start to read some stuff... as evidenced by the blinking access light in the front of the drive... but I still get no sound out, and YouTube videos still aren't giving me any audio even though the video seems to be playing perfectly. Does the Handbook mention to check your mixer settings? Make sure to try that. Use any simple-enough media player to play some MP3, OGG or WAV file (e. g. per xmms or whatever comes with your preferred desktop environment). Make sure you have vol and pcm up. % mixer Mixer vol is currently set to 100:100 --- This. Mixer pcm is currently set to 84:84 --- And this. Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 75:75 --- This too. Mixer rec is currently set to 75:75 Mixer igainis currently set to 0:0 Mixer monitor is currently set to 75:75 Recording source: mic The problem regarding audio CDs seems to be quite modern. I also cannot play them anymore (but I don't have that special wire installed at the moment). Audio is VIA HDA. So, um, I am grasping for ideas here on how I can debug this problem furher. Check mixer and play simple stuff. :-) So how can it be that this works just fine: cat /dev/random /dev/dsp even while this: cdcontrol -f /dev/acd0 play 1 causes the disk to spin up and read, but otherwise produces utter silence? CD audio subsystem has been modernized. :-) P.S. My motherboard (w/ onboard audio) is a Gigabyte GA-M55Plus-S3G. Here is what a get when I cat /dev/sndstat: FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: HDA Realtek ALC883 PCM #0 Analog (play/rec) default pcm1: HDA Realtek ALC883 PCM #1 Analog (play/rec) pcm2: HDA Realtek ALC883 PCM #2 Digital (play/rec) -- 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
Re: Help needed: sound/audio only semi-working
In message 20111022125209.9ba97a1f.free...@edvax.de, Polytropon free...@edvax.de wrote: On Fri, 21 Oct 2011 18:29:25 -0700, Ronald F. Guilmette wrote: The really strange thing is that after I followed all the directions here: http://www.freebsd.org/doc/en/books/handbook/sound-setup.html This command: cat /dev/random /dev/dsp *does* produce quite a bit of white noise sound. However when I perform the other officially recommended basic audio functionality test: cdcontrol -f /dev/acd0 play 1 with one of my favorite old audo CDs in the drive (AND with that special little wire running from the back of the drive to my motherboard) all that happens is that the CD/DVD drive apparently _does_ start to read some stuff. .. as evidenced by the blinking access light in the front of the drive... but I still get no sound out, and YouTube videos still aren't giving me any audio even though the video seems to be playing perfectly. Does the Handbook mention to check your mixer settings? No, but I _did_ look at that anyway, because something I read while resarching this problem indicated that I should. And those (mixer) settings are all OK. Anyway... NEVERMIND! I fiddled a few things some more last night... nothing that really should have made any difference at all... and I re-booted and today, now, the sound _is_ playing when I watch YouTube videos in Firefox. I really don't understand why because I really didn't change anything. I did install mplayer and cdparanoia, and then I used the latter to suck some .wav files off of one of my old CDs and then used mplayer to play them (which worked OK) but I don't see how any of that should have had any effect on the audio coming out of the flash plugin for Firefox. Oh well! It works now, and mplayer can play .wav and .mp3 files too. So mostly everything is working now, and I am happy. But playing a CD using cdcontrol still is not working. That's OK. I can easily live without that. I was only using it for testing purposes anyway. Still, it is a shame it doesn't just work. The problem regarding audio CDs seems to be quite modern. I assume by that you mean quite recent. Yes? I also cannot play them anymore (but I don't have that special wire installed at the moment). Audio is VIA HDA. I do believe that the little wire is manditory. So that explains why it doesn't work for you. But I have the little grey wire installed, so I don't know why it doesn't work for me. So how can it be that this works just fine: cat /dev/random /dev/dsp even while this: cdcontrol -f /dev/acd0 play 1 causes the disk to spin up and read, but otherwise produces utter silence? CD audio subsystem has been modernized. :-) I wouldn't know about that. ___ 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: Help needed: sound/audio only semi-working
On Sat, 22 Oct 2011 16:03:27 -0700, Ronald F. Guilmette wrote: I did install mplayer and cdparanoia, and then I used the latter to suck some .wav files off of one of my old CDs and then used mplayer to play them (which worked OK) but I don't see how any of that should have had any effect on the audio coming out of the flash plugin for Firefox. Oh well! It works now, and mplayer can play .wav and .mp3 files too. So mostly everything is working now, and I am happy. Both the Flash plugin and mplayer use the mixer's pcm channel for output (unlike CD audio). Maybe you'll find that mplayer is able to play *.mp3, but isn't the optimal program to do so - in this case have a look at xmms which can play both *.mp3 and *.ogg (a popular format when you want to make your CDs' content available on your system). And xmms also is able to play CD audio. But playing a CD using cdcontrol still is not working. That's OK. I can easily live without that. I was only using it for testing purposes anyway. Still, it is a shame it doesn't just work. Doesn't work _anymore_. :-) The problem regarding audio CDs seems to be quite modern. I assume by that you mean quite recent. Yes? No, modern (note the quotes) indicates disimprovement, reduction and removal of functionality that has been taken as granted for many years. :-) I also cannot play them anymore (but I don't have that special wire installed at the moment). Audio is VIA HDA. I do believe that the little wire is manditory. In this specific case, it is. In my old PC, I had one to connect the ATAPI drive to the sound card (a CMI based PCI card, no onboard stuff). This _did_ work perfectly using cdcontrol play track and the mixer's CD channel. So that explains why it doesn't work for you. But I have the little grey wire installed, so I don't know why it doesn't work for me. I'll install that wire tomorrow, just to check - I just hope my cheap (and nearly crappy) mainboard does have support for it. I can't use external wiring (to the sound card's line-in connector) as the drive doesn't have a front connector anymore. See modern. :-) OS is 8.2-STABLE/x86 of late August. So how can it be that this works just fine: cat /dev/random /dev/dsp even while this: cdcontrol -f /dev/acd0 play 1 causes the disk to spin up and read, but otherwise produces utter silence? CD audio subsystem has been modernized. :-) I wouldn't know about that. As far as I could understand, the track files /dev/acdXtYY will be gone in the upcoming 9.0, as well as the acd device files in favour of cd (the optional, but very nice ATAPICAM interface used by recording programs). Basically, I do appreciate merging acd and cd (so one device file per device becomes true), but if the price is that CD audio doesn't work anymore... we'll see. -- 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
Re: Help needed: sound/audio only semi-working
On 10/21/11 20:29, Ronald F. Guilmette wrote: I've been bringing up a new amd64 box with 8.2-RELEASE. So far I've managed to get everything installed OK, including a boatload of freshly-built ports. I've even gotten flash10 working with firefox... well... Unfortunately, this is only MOSTLY working. The video works great, but for audio all I get is absolute silence. The really strange thing is that after I followed all the directions here: http://www.freebsd.org/doc/en/books/handbook/sound-setup.html This command: cat /dev/random /dev/dsp *does* produce quite a bit of white noise sound. However when I perform the other officially recommended basic audio functionality test: cdcontrol -f /dev/acd0 play 1 with one of my favorite old audo CDs in the drive (AND with that special little wire running from the back of the drive to my motherboard) all that happens is that the CD/DVD drive apparently _does_ start to read some stuff... as evidenced by the blinking access light in the front of the drive... but I still get no sound out, and YouTube videos still aren't giving me any audio even though the video seems to be playing perfectly. So, um, I am grasping for ideas here on how I can debug this problem furher. I really have no idea what to do next to get this debugged. I supposed that if nobody gives me a good suggestion, I'm gonna try swapping out that special little wire for another one and then try swapping the CD/DVD drive for another one if that still doesn't solve it. Sigh. :-( I just checked and yes, the CD/DVD drive _can_ mount a data CD alright. No problems doing that. So how can it be that this works just fine: cat /dev/random /dev/dsp even while this: cdcontrol -f /dev/acd0 play 1 causes the disk to spin up and read, but otherwise produces utter silence? I'm flummoxed. Any help would be appreciated. Regards, rfg P.S. My motherboard (w/ onboard audio) is a Gigabyte GA-M55Plus-S3G. Here is what a get when I cat /dev/sndstat: FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0:HDA Realtek ALC883 PCM #0 Analog (play/rec) default pcm1:HDA Realtek ALC883 PCM #1 Analog (play/rec) pcm2:HDA Realtek ALC883 PCM #2 Digital (play/rec) Additional info: % sysctl hw.snd.default_unit hw.snd.default_unit: 0 ___ 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 Please see my posts on this list as well as on freebsd-multimedia under the subject 'can't access a music cd'. I appear to be experiencing the exact same issue. I am also using snd_hda on freebsd 9. Michael ___ 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: Help needed: sound/audio only semi-working
Ronald F. Guilmette r...@tristatelogic.com writes: I've been bringing up a new amd64 box with 8.2-RELEASE. So far I've managed to get everything installed OK, including a boatload of freshly-built ports. I've even gotten flash10 working with firefox... well... Unfortunately, this is only MOSTLY working. The video works great, but for audio all I get is absolute silence. The really strange thing is that after I followed all the directions here: http://www.freebsd.org/doc/en/books/handbook/sound-setup.html This command: cat /dev/random /dev/dsp *does* produce quite a bit of white noise sound. However when I perform the other officially recommended basic audio functionality test: cdcontrol -f /dev/acd0 play 1 with one of my favorite old audo CDs in the drive (AND with that special little wire running from the back of the drive to my motherboard) all that happens is that the CD/DVD drive apparently _does_ start to read some stuff... as evidenced by the blinking access light in the front of the drive... but I still get no sound out, and YouTube videos still aren't giving me any audio even though the video seems to be playing perfectly. So, um, I am grasping for ideas here on how I can debug this problem furher. I really have no idea what to do next to get this debugged. I supposed that if nobody gives me a good suggestion, I'm gonna try swapping out that special little wire for another one and then try swapping the CD/DVD drive for another one if that still doesn't solve it. Sigh. :-( I just checked and yes, the CD/DVD drive _can_ mount a data CD alright. No problems doing that. So how can it be that this works just fine: cat /dev/random /dev/dsp even while this: cdcontrol -f /dev/acd0 play 1 causes the disk to spin up and read, but otherwise produces utter silence? I'm flummoxed. Any help would be appreciated. Regards, rfg P.S. My motherboard (w/ onboard audio) is a Gigabyte GA-M55Plus-S3G. Here is what a get when I cat /dev/sndstat: FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: HDA Realtek ALC883 PCM #0 Analog (play/rec) default pcm1: HDA Realtek ALC883 PCM #1 Analog (play/rec) pcm2: HDA Realtek ALC883 PCM #2 Digital (play/rec) Additional info: % sysctl hw.snd.default_unit hw.snd.default_unit: 0 I also have a Gigabyte board with HDA audio, and it won't directly play CD sound either. I had already ripped all of my CDs to .ogg files, so I hadn't needed to play the CDs directly. I just tested ripping a small section of a CD using cdparanoia and it does produce a .wav audio file that can be played using sox. I also notice on my computer that mixer doesn't show any controls for CD audio. Unfortunately, I don't remember if CDs worked properly on this computer when I had Linux installed, so I don't know if the problem is FreeBSD or the motherboard. I did find that I have a program called kscd (for KDE) that will play, but I suspect that it uses digital extraction instead of playing from audio. My system uses a Gigabyte GA-MA785GPM-US2H, and the sndstat output is: FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: HDA ATI RS690/780 HDMI PCM #0 HDMI (play) pcm1: HDA Realtek ALC885 PCM #0 Analog (play/rec) default pcm2: HDA Realtek ALC885 PCM #1 Analog (play/rec) pcm3: HDA Realtek ALC885 PCM #2 Digital (play/rec) Let me know if you want further information. -- Carl Johnsonca...@peak.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: Help! Can't delete files ...
Hi-- On Oct 19, 2011, at 11:23 AM, Andy Wodfer wrote: I need to delete about 20 files, but I can't do it through the CMS nor by command line on this FreeBSD 8.1 STABLE server. There's something with the character encoding/keyboard or server setup I think. Please advice. This is what a file looks like when I ls: 28b Kjoepesenter n?ringsg?rdeier.docx That's probably UTF-8 encoding of the Norwegian string. You'd need to quote the characters in a fashion appropriate for whichever shell you use; but an easier way is likely: rm -i *Kjoepesenter* Regards, -- -Chuck ___ 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: Help! Can't delete files ...
From owner-freebsd-questi...@freebsd.org Wed Oct 19 13:53:33 2011 Date: Wed, 19 Oct 2011 20:23:36 +0200 From: Andy Wodfer wod...@gmail.com To: freebsd-questions freebsd-questions@freebsd.org Subject: Help! Can't delete files ... A client has uploaded several files through a CMS and these files contain Norwegian letters (I think). AE O and A. I need to delete about 20 files, but I can't do it through the CMS nor by command line on this FreeBSD 8.1 STABLE server. There's something with the character encoding/keyboard or server setup I think. Please advice. This is what a file looks like when I ls: 28b Kjoepesenter n?ringsg?rdeier.docx ls | more: 28b Kjoepesenter n91ringsg86rdeier.docx If I try: # rm 28b Kjoepesenter n91ringsg86rdeier.docx Ambiguous input redirect A) learn to use wildcards. B) learn to use the '-i' option to rm C) learn to use 'echo' to 'test' filename expansions. For your 'problem' files, put a '?' in anywhere there is a space or a 'strange character'. Check what happens using echo, then use 'rm -i', so you make sure that you delete *only* the particular file you intend to. e.g. for the specific file you cited above try: echo 28b?Kjoepesenter?n?ringsg?rdeier.docx *ASSUMING* that that shows; 28b Kjoepesenter n91ringsg86rdeier.docx then try: rm -i 28b?Kjoepesenter?n?ringsg?rdeier.docx Assuming that it asks yout about deleting the full file name, type a 'y'. Repeat for each 'problem' file. ___ 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: Help! Can't delete files ...
On Wed, Oct 19, 2011 at 9:04 PM, Robert Bonomi bon...@mail.r-bonomi.comwrote: A) learn to use wildcards. I know how to use wildcards, but I forgot to tell in my first email that there are 4 files that have almost the same filenames, so I couldn't do it this way. B) learn to use the '-i' option to rm C) learn to use 'echo' to 'test' filename expansions. Thanks! Very useful info. For your 'problem' files, put a '?' in anywhere there is a space or a 'strange character'. Check what happens using echo, then use 'rm -i', so you make sure that you delete *only* the particular file you intend to. e.g. for the specific file you cited above try: echo 28b?Kjoepesenter?n?ringsg?rdeier.docx *ASSUMING* that that shows; 28b Kjoepesenter n91ringsg86rdeier.docx then try: rm -i 28b?Kjoepesenter?n?ringsg?rdeier.docx Assuming that it asks yout about deleting the full file name, type a 'y'. Repeat for each 'problem' file. Thanks a lot! That did it! :-) Cheers, Andy ___ 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: Help! Can't delete files ...
On Wed, 19 Oct 2011 21:32:39 +0200, Andy Wodfer wrote: On Wed, Oct 19, 2011 at 9:04 PM, Robert Bonomi bon...@mail.r-bonomi.comwrote: A) learn to use wildcards. I know how to use wildcards, but I forgot to tell in my first email that there are 4 files that have almost the same filenames, so I couldn't do it this way. In this case, try to use a terminal emulator which does have support for UTF-8 both on input and on output. Make sure your charsets are configured properly. With this preparation, you should (1st) see the correct file names in your native language and (2nd) be able to enter (or complete) their filenames as desired on the command line. B) learn to use the '-i' option to rm C) learn to use 'echo' to 'test' filename expansions. Thanks! Very useful info. I may add: D) Learn to avoid non-ASCII characters in filenames (just like whitespaces and special characters). I'm following this rule for my entire IT career now and I'm very pleased by the results. :-) -- 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
Re: Help with devd.conf
On Sat, 1 Oct 2011 20:35:05 -0700 Martin Alejandro Paredes Sanchez mapsw...@prodigy.net.mx wrote: I do not belive that the values of that variables are in upper case (SNIP) Thank you for the reply...in my case it seems that simply restarting the devd service did not work, I had to reboot the machine then my devd.conf entries did work. Thanks for the scripts though I will use them as I working on auto-mounting devices using glabels. I'm having an issue with device names that have spaces in the label...in this case a manufacturers default name on an mp3 device. -- Rod Person http://www.rodperson.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: Help with devd.conf
On Saturday 24 September 2011 07:04:18 Rod Person wrote: I'm trying to understand devd.conf to auto mount usb devices. For example I have a usb drive that will show up as da1 so as a test I just want to write something to syslog when it is plugged in. This is what I have tried in devd.conf: notify 20{ match system DEVFS; match subsystem CDEV; match typeCREATE; match cdevda[1-9]+; action logger you plugged in some usb device; }; notify 20{ match system USB; match subsytemDEVICE; match typeATTACH; action logger some type of usb thing attached; }; I do not belive that the values of that variables are in upper case To see what is happening in devd, try this Create the file /usr/local/etc/devd/printvar.conf with = # # Run devd in debug mode # devd -Dd # attach 0 { device-name umass[0-9]+; action /usr/local/etc/devd/printvar.sh '$bus' '$cdev' '$cisproduct' '$cisvendor' '$class' '$device' '$device-name' '$function' '$manufacturer' '$notify' '$product' '$serial' '$slot' '$subvendor' '$subdevice' '$subsystem' '$system' '$type' '$vendor'; }; = Also, creat the file Create the file /usr/local/etc/devd/printvar.sh = #!/bin/sh { echo $# parametros echo $@ echo bus = $1 echo cdev = $2 echo cisproduct = $3 echo cisvendor= $4 echo class= $5 echo device = $6 echo device-name = $7 echo function = $8 echo manufacturer = $9 shift 9 echo notify = $1 echo product = $2 echo serial = $3 echo slot = $4 echo subvendor= $5 echo subdevice= $6 echo subsystem= $7 echo system = $8 echo type = $9 shift 1 echo vendor = $9 } /tmp/VariablesDevd.txt = Check the content of /tmp/VariablesDevd.txt You can also try this other advise for auto mount http://networking.ringofsaturn.com/Unix/freebsdautomount.php ___ 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: Help with devd.conf
On Saturday 24 September 2011, Rod Person wrote: I'm trying to understand devd.conf to auto mount usb devices. For example I have a usb drive that will show up as da1 so as a test I just want to write something to syslog when it is plugged in. [snip] Any help would be appreciated, thanks. This works for me: attach 10 { match device-name umass[0-9]; action logger you plugged in some usb device; }; -- Mike Clarke ___ 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