Re: scp
Hi Kalin, Please try the following command, and let me know if you see any output from it. If so, please post it here. grep sshd /var/log/messages | tail -20 i did that earlier.. the last record for sshd is from 10.14, more than a week ago Regards, Greg -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj/+h8ACgkQ0sRouByUApB/wwCeJyWSvft0FsU+5KJNCNgj6ybQ xeMAoIKSPU8tZ5G8pKkJakAUMzcq71wR =CweV -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
On Thu, 23 Oct 2008 02:06:00 -0400, kalin m [EMAIL PROTECTED] wrote: grep sshd /var/log/messages | tail -20 i did that earlier.. the last record for sshd is from 10.14, more than a week ago What about /var/log/auth.log? Maybe this file gives some information... -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: man -t odd page size
On Thursday 23 October 2008 3:49:53 am Polytropon wrote: On Thu, 23 Oct 2008 02:58:42 -0200, Gonzalo Nemmi [EMAIL PROTECTED] wrote: Brainstorming .. im thinking maybe there should be no app defined default (in this case).. Maybe you just threw the key on the table .. and default should be what an enviromental setting says default should be (PAGESIZE=letter, PAGESIZE=a4) and not what the apps thinks it should be ... There is something similar placable into /etc/make.conf: PAGE= A4 PAPERSIZE= a4 A4= yes But this is of course not honoured by applications at run time, and only by a few at compile time. Furthermore .. maybe the app should halt if it finds no enviromental setting is available and ask the user to set it in order to know how to proceed. Another idea would to conclude the paper size from a locale setting, let's say, if it's en_US, then select letter, or A4 else. Exactly ... you just avoided a halt due to undefined env setting :) For example, programs like Gimp require a setting to be done manually from within the printing dialog. It shouldn't be there. Things like paper size should be set at system level, not neccessarily at application level. It will make things easier when administrating a system - set paper size once, then forget it. And even if you (as the admin or through /usr/share/skel/*) set it once and forget about it, every user would still be able to set/override his preferred default paper/page size via .cshrc or the like just as we decide whether to use less or more as a pager ;) So paper/page size would be determined at app run time on a case by case basis :) As a side effect, we just took the burden of letting devels decide what default action should be ... if no arg is given, switch to default, which will read the value assigned to PAGESIZE or resort to en_US to default to letter or A4 if else, should PAGESIZE not be defined. As a consecuence, those who have en_US will always have letter as default (regardless of whether they set PAGESIZE or not). And the rest of us will be happy with A4 or would still have the chance to set PAGESIZE=letter. And best of it all is: app default behaviour never changed ! The only diference is that it will read an env before acting ... that env changes the way the app behaves. But that change is transparent to the user ;) An idea would be to place the paper size setting near your printing filter (not the spooler) and advice applications to read it from there, maybe from a file, maybe from an environmental variable. Well .. I think that makes two of us now :D Regards ! PS: now I want to send you a postcard of my city (Buenos Aires)! Send me your address on a private mail if you'd like to get it :) -- Blessings Gonzalo Nemmi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: does hardware upgrade requires reconfiguration?
Hi, Well, the answer is both yes and no :) If you have compiled a kernel, which supports multiple processors: options SMP or you have copied most of /sys/hardware/conf/SMP the processor will be discovered and used without any additional configurations. If you currently use all 4GB RAM - PAE config or amd64 or simmilar branch - the extra RAM will be used without any reconfiguration. If any or both of the above are not true - you have to change the options in the kernel configuration file and recompile the kernel. Hope this will help you :) Regards, Ivailo Tanusheff Deputy Head of IT Department ProCredit Bank (Bulgaria) AD Amitabh Kant [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 23.10.2008 06:52 To freebsd-questions@freebsd.org cc Subject does hardware upgrade requires reconfiguration? Hi I currently have a single processor/4gb ram machine with me which I am thinking to upgrade to dual proc and 8gb ram. Does installing extra processor requires re-configuration or re-installation of the os? The extra processor will be mounted on the same motherboard. With regards Amitabh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Printing to a Lanier LD160c does not work
El Mar 21 Oct 2008, [EMAIL PROTECTED] escribió: I took your block above and replaced my block in the printcap, then sent the exact command above with the same failure. The queue is drained and the printer's log has a generic message The job was reset. message. My current printcap file. admincolor:\ :lp=:\ :sh:\ :mx#0:\ :rm=admincolor:\ :rp=lp:\ :sd=/var/spool/output/admincolor:\ :lf=/var/log/lpd-errs: it sounds like LPD is working OK (send the job to the printer), the problem is the print job (the language PS/PCL) or in the printer (no configured). how do you configure this printer in windows (LPR port)? can you print to a file in windows, bring that file to FreeBSD and send it with lpr -P admincolor FileInWindows.bin did you check the next URL? http://www.linuxprinting.org/show_printer.cgi?recnum=Lanier-LD160c maps ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
Polytropon wrote: On Thu, 23 Oct 2008 02:06:00 -0400, kalin m [EMAIL PROTECTED] wrote: grep sshd /var/log/messages | tail -20 i did that earlier.. the last record for sshd is from 10.14, more than a week ago What about /var/log/auth.log? Maybe this file gives some information... you were right Polytropon. ownership of the root directory for the user. it's not in home i was looking for something like sshd.log but it is auth.log.. thanks a lot to all now it's working... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Extract Songs from DVD
Polytropon wrote: On Wed, 22 Oct 2008 17:34:41 +0300, Odhiambo Washington [EMAIL PROTECTED] wrote: I bought an original DVD but I cannot play that in my car's audio player. Is there a tool that I can use to get the songs off the DVD in WAV format, or even MP3? If the DVD does contain standard audio CD format data, there should be no problem. First, check the contents: % cdcontrol info (I'll assume that /dev/acd0 is the drive the DVD is inserted into.) Then you can access every track via /dev/acd0txx, where xx is from 01 up to the number of tracks. Tracks can be copied from the DVD with the dd command: % dd if=/dev/acd0t01 of=track01.cdr bs=2352 Very cool! I have a few questions though. I notice this doesn't work for my Plextor CD writer. I assume this is because CD and DVD drives have different drivers? Also, does this use libparanoia or something similar to extract recalcitrant tracks? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't upgrade or deinstall phpMyAdmin
May i ask a question. Why do you use phpmyadmin from ports? It installs lots of libraries hence possible security threats in the future. So instead of taking care of updating a bunch of libraries just for phpmyadmin why don't you simply download it from http://www.phpmyadmin.net/, put in the apache doc root, set it up and so you have to take care to update it when a new version comes out. my 2 cents, v On Wed, Oct 22, 2008 at 7:05 PM, Mike Clarke [EMAIL PROTECTED]wrote: On Wednesday 22 October 2008, Matthew Seaman wrote: Hmmm... not entirely sure what has actually gone wrong there, but I suspect your /var/db/pkg directory is probably in a bit of a mess. Deinstalling phpMyAdmin is simply a matter of removing almost all of the files under /usr/local/www/phpMyAdmin -- the only one the port tries to preserve is config.inc.php Yes, I knew phpMyAdmin kept all its files in one place so replacing it with the new version by hand was possible if all else failed but the ports system would have still thought it had version 2 and I was rather unsure what problems the inconsistency might create later. . Can you try: ~ # pkg_delete -f phpMyAdmin-2.11.5.2 Yes, I'd already done that with the same segfault. If the worst comes to the worst, you can do this (which is certainly *not* recommended in the general case, just it happens to work for phpMyAdmin which is a port without other things depending on it, and that installs everything into one directory): ~ # cd /usr/local/www ~ # cp phpMyAdmin/config.inc.php /root ~ # rm -rf phpMyAdmin ~ # cd /var/db/pkg ~ # rm -rf phpMyAdmin-2.11.5.2 ~ # pkgdb -F That did the trick, thanks for the help. Note: there's no need to reinstall phpMyAdmin because you've upgraded Apache or even PHP. phpMyAdmin is all native PHP code and identical on disk for whatever combination of PHP interpreter and web server you use. You just need to copy the Apache config stuff into the new httpd.conf (ie. based on what 'pkg_info -Dx phpMyAdmin' produces). Yes, but in this case I'd moved my web server temporarily onto another machine while I (slowly) upgraded the hardware on this box, hence the removal of Apache and PHP. After getting the new hardware back into service I installed the newer versions of Apache and PHP, it was just by chance that there was still a copy of phpMyAdmin on the system but in view of the security vulnerability in 2.11.5.2 I thought I'd better replace it with 3.0.0_1. -- Mike Clarke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't upgrade or deinstall phpMyAdmin
On Thu, Oct 23, 2008 at 08:59:57AM +0200, Valentin Bud wrote: May i ask a question. Why do you use phpmyadmin from ports? It installs lots of libraries hence possible security threats in the future. So instead of taking care of updating a bunch of libraries just for phpmyadmin why don't you simply download it from http://www.phpmyadmin.net/, put in the apache doc root, set it up and so you have to take care to update it when a new version comes out. my 2 cents, v You're talking about the dependencies it has on bzip2, GD, OpenSSL, PDF, zlib, mcrypt, and mbstring. These are *optional*; nothing stops you from unchecking them in make config. However, be aware that removing some of them will cause phpmyadmin to work fine, but emit warning messages to the user that X feature is not available. This is why said features are enabled by default. I do not advocate downloading software and just dumping it into some directory on a machine; if you really want to go that route, then why use ports at all? Heck, why use FreeBSD, just use Slackware Linux. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting up gmirror
I thought the -s option was only applicable when using -b split for the balancing algorithm. Does round-robin not mean simply alternating between the two disks without ever splitting requests? no. it means for example with -s 65536 and 1MB request - it will split this request on 2 disks So there is no difference between split and round-robin algorithms then? looks there is. i never used split balance. always round-robin or load. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't upgrade or deinstall phpMyAdmin
May i ask a question. Why do you use phpmyadmin from ports? It installs well i don't use phpmyadmin at all ;) lots of libraries hence possible security threats in the future. So instead of taking care of updating a bunch of libraries just for phpmyadmin why don't you simply download it from http://www.phpmyadmin.net/, put in the apache doc root, set it up and so you have to take care to update it when a new version and do it with all other software too, ending with total mess quickly. just like windows ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Extract Songs from DVD
On Thu, 23 Oct 2008 02:35:25 -0400, John L. Templer [EMAIL PROTECTED] wrote: Polytropon wrote: % dd if=/dev/acd0t01 of=track01.cdr bs=2352 Very cool! I have a few questions though. I notice this doesn't work for my Plextor CD writer. What, dd doesn't work from Plextor writer? I had (or, still have) a Plextor CD writer which is SCSI, so I just have to change the command in order to read from the correct device, which is /dev/cd0 for the first SCSI CD drive: % dd if=/dev/cd0t01 of=track01.cdr bs=2352 Of course, you would have to change other commands in order to get this correct, for example: % cdcontrol -f /dev/cd0 info I assume this is because CD and DVD drives have different drivers? Maybe, but I think these basic things rely on the same commands internally. Also, does this use libparanoia or something similar to extract recalcitrant tracks? No, dd reads block-wise. There's dd_rescue which is able to read from defectively manufactured media (we call them Un-CDs or Un-DVDs in Germany). Another option, by the way, is to use cdrdao. It has the read command in combination with a paranoia level switch which can be adjusted in order to read mentioned media. As far as I remember, you need to have the atapicam facility in your kernel (custom compile kernel or module) in order to access ATAPI devices just like SCSI devices. % camcontrol devlist will then show you which device equals /dev/cd0, e. g. 0,0,0 (1st SCSI controller, 1st device, 1st LUN). If I did misunderstand the question, just post another one. :-) (English is not my native language.) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't upgrade or deinstall phpMyAdmin
On Thu, Oct 23, 2008 at 9:44 AM, Wojciech Puchar [EMAIL PROTECTED] wrote: May i ask a question. Why do you use phpmyadmin from ports? It installs well i don't use phpmyadmin at all ;) lots of libraries hence possible security threats in the future. So instead of taking care of updating a bunch of libraries just for phpmyadmin why don't you simply download it from http://www.phpmyadmin.net/, put in the apache doc root, set it up and so you have to take care to update it when a new version and do it with all other software too, ending with total mess quickly. just like windows Just for the record i'm not doing it with other software and i don't intend to. the main reason i don't like to install phpmyadmin from ports is the following: # pwd /usr/ports/databases/phpmyadmin # make all-depends-list | grep x11 /usr/ports/x11/libXpm /usr/ports/x11/xextproto /usr/ports/x11/xproto /usr/ports/x11/libX11 /usr/ports/x11/libXext /usr/ports/x11-toolkits/libXt /usr/ports/x11-toolkits/libXaw /usr/ports/x11/bigreqsproto /usr/ports/x11/xcmiscproto /usr/ports/x11/xtrans /usr/ports/x11/kbproto /usr/ports/x11/inputproto /usr/ports/x11-fonts/xf86bigfontproto /usr/ports/x11/libXau /usr/ports/x11/libXdmcp /usr/ports/x11/libSM /usr/ports/x11/printproto /usr/ports/x11-toolkits/libXmu /usr/ports/x11/libXp /usr/ports/x11/libICE I am not that good in FBSD so i'm asking, is there a way to install phpmyadmin without installing all the above mentions as depends x11 stuff? The above x11 ports install dependecies of their own so you end up with lots of x11 stuff you don't need. So that's why i use and like the other method. thank you for you opinions, v ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
LOCALE ? FR-fr
Hello I would like one of our server acting as a WebDAV server to allow French characters in filename , how to do so ? Thanks . ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't upgrade or deinstall phpMyAdmin
On Thu, Oct 23, 2008 at 09:58:24AM +0200, Valentin Bud wrote: the main reason i don't like to install phpmyadmin from ports is the following: # pwd /usr/ports/databases/phpmyadmin # make all-depends-list | grep x11 /usr/ports/x11/libXpm /usr/ports/x11/xextproto /usr/ports/x11/xproto /usr/ports/x11/libX11 /usr/ports/x11/libXext /usr/ports/x11-toolkits/libXt /usr/ports/x11-toolkits/libXaw /usr/ports/x11/bigreqsproto /usr/ports/x11/xcmiscproto /usr/ports/x11/xtrans /usr/ports/x11/kbproto /usr/ports/x11/inputproto /usr/ports/x11-fonts/xf86bigfontproto /usr/ports/x11/libXau /usr/ports/x11/libXdmcp /usr/ports/x11/libSM /usr/ports/x11/printproto /usr/ports/x11-toolkits/libXmu /usr/ports/x11/libXp /usr/ports/x11/libICE I am not that good in FBSD so i'm asking, is there a way to install phpmyadmin without installing all the above mentions as depends x11 stuff? I explained this in my mail. make config, remove the features you don't want, then make all-depends-list. I'm pretty sure the one which is causing you grief is the PDF feature, but it's up to you to decide what you need/do not need. As I said in my other mail, be aware that disabling some of the features will cause phpmyadmin to complain to the visitor that said feature is missing; mbstring is a good example. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: LOCALE ? FR-fr
On Thu, 23 Oct 2008 09:59:47 +0200, Frank Bonnet [EMAIL PROTECTED] wrote: Hello I would like one of our server acting as a WebDAV server to allow French characters in filename , how to do so ? I'm not sure which charset you will need, maybe ISO-8859-1 or -15 will do the job to allow accents and other things special to the french language? Set the correct LC_* variables via /etc/login.conf (elegant) or via /etc/csh.cshrc (may be considered ugly, but works). For the last case, it would be something like this: setenv LC_ALL fr_FR.ISO8859-15 You can do it more fine grained, if you wish to leave some of the configurable things to the standard, for example: setenv LC_COLLATE fr_FR.ISO8859-15 setenv LC_CTYPEfr_FR.ISO8859-15 setenv LC_MESSAGES en_US.ISO8859-15 setenv LC_MONETARY fr_FR.ISO8859-15 setenv LC_NUMERIC fr_FR.ISO8859-15 setenv LC_TIME fr_FR.ISO8859-15 I have a similar setting for the german language (de_DE) which allows me to use Umlauts in file names. BUT ATTENTION! I won't recommend anyone to use others but the standard character set for filenames. It can lead to problems if you're transfering files to a system which doesn't support special characters from the french language or is unable to remap them correctly. In my opinion, such characters should not be in a filename, as well as whitespaces, ampersands, apostrophes, doublequotes or similar things. I know it's possible, but it sometimes can make things _really_ difficult. I hope you won't run into such problems. -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't upgrade or deinstall phpMyAdmin
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Valentin Bud wrote: | the main reason i don't like to install phpmyadmin from ports is the | following: | # pwd | /usr/ports/databases/phpmyadmin | | # make all-depends-list | grep x11 | /usr/ports/x11/libXpm | /usr/ports/x11/xextproto | /usr/ports/x11/xproto | /usr/ports/x11/libX11 | /usr/ports/x11/libXext | /usr/ports/x11-toolkits/libXt | /usr/ports/x11-toolkits/libXaw | /usr/ports/x11/bigreqsproto | /usr/ports/x11/xcmiscproto | /usr/ports/x11/xtrans | /usr/ports/x11/kbproto | /usr/ports/x11/inputproto | /usr/ports/x11-fonts/xf86bigfontproto | /usr/ports/x11/libXau | /usr/ports/x11/libXdmcp | /usr/ports/x11/libSM | /usr/ports/x11/printproto | /usr/ports/x11-toolkits/libXmu | /usr/ports/x11/libXp | /usr/ports/x11/libICE | | I am not that good in FBSD so i'm asking, is there a way to install | phpmyadmin | without installing all the above mentions as depends x11 stuff? | The above x11 ports install dependecies of their own so you end up with | lots of | x11 stuff you don't need. So that's why i use and like the other method. | thank you for you opinions, The X dependencies come in via php5-gd and pecl-pdflib. php5-gd depends on gd, which depends on libXpm and t1lib which both depend on X libs. pecl-pdflib itself depends on php5-gd. Turning off those two options will keep you X free. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 ~ 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate ~ Kent, CT11 9PW, UK -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkkAN38ACgkQ3jDkPpsZ+VYaAQCfVAMdhmmRx8i7oWKVoK8Eetqe nVgAniHJYIh9nV/oYPQCb83YjFkDCCWs =sDE/ -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't upgrade or deinstall phpMyAdmin
On Thu, Oct 23, 2008 at 10:27 AM, Jeremy Chadwick [EMAIL PROTECTED]wrote: On Thu, Oct 23, 2008 at 09:58:24AM +0200, Valentin Bud wrote: the main reason i don't like to install phpmyadmin from ports is the following: # pwd /usr/ports/databases/phpmyadmin # make all-depends-list | grep x11 /usr/ports/x11/libXpm /usr/ports/x11/xextproto /usr/ports/x11/xproto /usr/ports/x11/libX11 /usr/ports/x11/libXext /usr/ports/x11-toolkits/libXt /usr/ports/x11-toolkits/libXaw /usr/ports/x11/bigreqsproto /usr/ports/x11/xcmiscproto /usr/ports/x11/xtrans /usr/ports/x11/kbproto /usr/ports/x11/inputproto /usr/ports/x11-fonts/xf86bigfontproto /usr/ports/x11/libXau /usr/ports/x11/libXdmcp /usr/ports/x11/libSM /usr/ports/x11/printproto /usr/ports/x11-toolkits/libXmu /usr/ports/x11/libXp /usr/ports/x11/libICE I am not that good in FBSD so i'm asking, is there a way to install phpmyadmin without installing all the above mentions as depends x11 stuff? I explained this in my mail. make config, remove the features you don't want, then make all-depends-list. I'm pretty sure the one which is causing you grief is the PDF feature, but it's up to you to decide what you need/do not need. To be recorded for future users the GD library support and the PDFlib support (implies GD) are the ones that require x11 dependecies. As I said in my other mail, be aware that disabling some of the features will cause phpmyadmin to complain to the visitor that said feature is missing; mbstring is a good example. Thank you very much for you answers and opinions, v -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: man -t odd page size
On Wed, 22 Oct 2008 23:35:25 -0200 Gonzalo Nemmi [EMAIL PROTECTED] wrote: On Wednesday 22 October 2008 10:38:40 pm Polytropon wrote: [..] Polytropon: thanks for pdfman script - but does 'pdfman ipfw' work for you? Here the 'overprinting' is misaligned in gv, while others are ok. I know this is not the best idea, but it should be accomplishable without many problems. A better idea would be to write a simple filter that convert the man page (including formatting characters) into LaTeX source and then run it through pdflatex. Exactly .. you got it just the way I wanted .. after your explanantion, the question _begs_ to be asked: do we, citizens of ISO 216 adopting countries, have to walk that cumbersome path in order to get something as simple as an ISO compliant document?? Shouldn't it be the other way around??? Does an inmensily huge majority have to walk the extra mile in order to get an ISO compliant document whereas a small minority benefits from having non ISO complaint default formats??? Gonzalo: shouldn't that be 'the extra kilometre?' :) Well, a quarter of the people on this planet live in China, so by your theory shouldn't the FreeBSD lists, docs and code all be in Chinese? I doubt an 'immensely huge majority' of FreeBSD systems are located outside the US (data at http://www.bsdstats.org/freebsd/countries.php notwithstanding, reckoning Australia to have the most FreeBSD users :) I, for once, would pretty much like to know the logic behind that decision. It's not logic, nor even a decision, but simply a matter of tradition. and on a side note: will we ever get to see ISO 216 A4 as the default choice for output instead of not-standard, only usefull in the US but useless in the rest of the whole world letter page size and the likes??? I've yet to run into any printing or display software that didn't offer a wide choice of formats, including A4 and many other A* sizes, so what any particular software chooses as its 'default' scarcely matters. You're getting my thoughts, man. :-) I'd like to see this happen, too, but I don't think the developers of FreeBSD and all the fine applications will say goodbye to their Letter, Legal, Exec etc. paper formats. A4 isn't a DIN standard anymore, its ISO for many years now, and unlike Letter, it has the ability to be scaled (to half size, to quarter size, to double size) easily. Today, the manual replacement of many different settings is needed to get a system A4 compliant. Greetings from Germany, where A4 is the standard for more than a century now. =^_^= I really hope they do, or at least, start contemplating the fact that ISO standards are usefull as a whole or are not usefull at all .. That's not true at all; there's no 'all or nothing' about standards. What actually works and is adopted in the real world determines that. Ask yourself: how come the world uses TCP/IP for internet communications rather than the OSI X.200-X.219 suite? How come we're still using SMTP plus a pile of RFCs to deliver email rather than the X.400-X.420 suite? Apart from SNMP and its use of (a subset of) the ASN.1 / BER notation, and the X.500-X.521 directory services model to the extent of X.501 certificates, not much of the massive CCITT / OSI / ISO 'standards' have ever entered common usage, most being a camel designed by committee. In '91 I bought three 'fascicles' (volumes) of the CCITT Blue Book for the best part of A$500, then convinced it was the way things would go. I was entirely wrong :) but I don't regret that study for ASN.1 alone. Gretings from Argentina, where A4 is the standard from 1943. And yes .. so are the metric system, kilograms, litres, etc :) I suspect the Yanquis will abandon letter, legal etc paper sizes around the same time they jettison pounds and ounces, feet and inches, gallons and pints .. that is, you probably shouldn't be holding your breath :) cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't upgrade or deinstall phpMyAdmin
following: # pwd /usr/ports/databases/phpmyadmin assuming it can't be changed by make config, modify port :) # make all-depends-list | grep x11 /usr/ports/x11/libXpm /usr/ports/x11/xextproto /usr/ports/x11/xproto /usr/ports/x11/libX11 /usr/ports/x11/libXext /usr/ports/x11-toolkits/libXt /usr/ports/x11-toolkits/libXaw /usr/ports/x11/bigreqsproto /usr/ports/x11/xcmiscproto /usr/ports/x11/xtrans /usr/ports/x11/kbproto /usr/ports/x11/inputproto /usr/ports/x11-fonts/xf86bigfontproto /usr/ports/x11/libXau /usr/ports/x11/libXdmcp /usr/ports/x11/libSM /usr/ports/x11/printproto /usr/ports/x11-toolkits/libXmu /usr/ports/x11/libXp /usr/ports/x11/libICE I am not that good in FBSD so i'm asking, is there a way to install phpmyadmin without installing all the above mentions as depends x11 stuff? The above x11 ports install dependecies of their own so you end up with lots of x11 stuff you don't need. So that's why i use and like the other method. thank you for you opinions, v ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: LOCALE ? FR-fr
And I forgot: Set your terminals to cons25l1 in /etc/ttys. You can do that via sysinstall or edit the file manually: ttyv0 /usr/libexec/getty Pc cons25l1on secure This, in combination with the LC_* settings, should enable the input and output of the special characters you want. Time for Le Pétit Filè de lâ mũsic.MP3 :-) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: man -t odd page size
hello, what do you know about this site: http://www.metricamerica.com/. i don't remember where i have read that America is going to apply the SI (ess eye) unit system. so things are going to change maybe even the A4 papersize. a good day, v On Thu, Oct 23, 2008 at 10:37 AM, Ian Smith [EMAIL PROTECTED] wrote: On Wed, 22 Oct 2008 23:35:25 -0200 Gonzalo Nemmi [EMAIL PROTECTED] wrote: On Wednesday 22 October 2008 10:38:40 pm Polytropon wrote: [..] Polytropon: thanks for pdfman script - but does 'pdfman ipfw' work for you? Here the 'overprinting' is misaligned in gv, while others are ok. I know this is not the best idea, but it should be accomplishable without many problems. A better idea would be to write a simple filter that convert the man page (including formatting characters) into LaTeX source and then run it through pdflatex. Exactly .. you got it just the way I wanted .. after your explanantion, the question _begs_ to be asked: do we, citizens of ISO 216 adopting countries, have to walk that cumbersome path in order to get something as simple as an ISO compliant document?? Shouldn't it be the other way around??? Does an inmensily huge majority have to walk the extra mile in order to get an ISO compliant document whereas a small minority benefits from having non ISO complaint default formats??? Gonzalo: shouldn't that be 'the extra kilometre?' :) Well, a quarter of the people on this planet live in China, so by your theory shouldn't the FreeBSD lists, docs and code all be in Chinese? I doubt an 'immensely huge majority' of FreeBSD systems are located outside the US (data at http://www.bsdstats.org/freebsd/countries.php notwithstanding, reckoning Australia to have the most FreeBSD users :) I, for once, would pretty much like to know the logic behind that decision. It's not logic, nor even a decision, but simply a matter of tradition. and on a side note: will we ever get to see ISO 216 A4 as the default choice for output instead of not-standard, only usefull in the US but useless in the rest of the whole world letter page size and the likes??? I've yet to run into any printing or display software that didn't offer a wide choice of formats, including A4 and many other A* sizes, so what any particular software chooses as its 'default' scarcely matters. You're getting my thoughts, man. :-) I'd like to see this happen, too, but I don't think the developers of FreeBSD and all the fine applications will say goodbye to their Letter, Legal, Exec etc. paper formats. A4 isn't a DIN standard anymore, its ISO for many years now, and unlike Letter, it has the ability to be scaled (to half size, to quarter size, to double size) easily. Today, the manual replacement of many different settings is needed to get a system A4 compliant. Greetings from Germany, where A4 is the standard for more than a century now. =^_^= I really hope they do, or at least, start contemplating the fact that ISO standards are usefull as a whole or are not usefull at all .. That's not true at all; there's no 'all or nothing' about standards. What actually works and is adopted in the real world determines that. Ask yourself: how come the world uses TCP/IP for internet communications rather than the OSI X.200-X.219 suite? How come we're still using SMTP plus a pile of RFCs to deliver email rather than the X.400-X.420 suite? Apart from SNMP and its use of (a subset of) the ASN.1 / BER notation, and the X.500-X.521 directory services model to the extent of X.501 certificates, not much of the massive CCITT / OSI / ISO 'standards' have ever entered common usage, most being a camel designed by committee. In '91 I bought three 'fascicles' (volumes) of the CCITT Blue Book for the best part of A$500, then convinced it was the way things would go. I was entirely wrong :) but I don't regret that study for ASN.1 alone. Gretings from Argentina, where A4 is the standard from 1943. And yes .. so are the metric system, kilograms, litres, etc :) I suspect the Yanquis will abandon letter, legal etc paper sizes around the same time they jettison pounds and ounces, feet and inches, gallons and pints .. that is, you probably shouldn't be holding your breath :) cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: LOCALE ? FR-fr
Polytropon wrote: On Thu, 23 Oct 2008 09:59:47 +0200, Frank Bonnet [EMAIL PROTECTED] wrote: Hello I would like one of our server acting as a WebDAV server to allow French characters in filename , how to do so ? I'm not sure which charset you will need, maybe ISO-8859-1 or -15 will do the job to allow accents and other things special to the french language? Set the correct LC_* variables via /etc/login.conf (elegant) or via /etc/csh.cshrc (may be considered ugly, but works). For the last case, it would be something like this: setenv LC_ALL fr_FR.ISO8859-15 You can do it more fine grained, if you wish to leave some of the configurable things to the standard, for example: setenv LC_COLLATE fr_FR.ISO8859-15 setenv LC_CTYPEfr_FR.ISO8859-15 setenv LC_MESSAGES en_US.ISO8859-15 setenv LC_MONETARY fr_FR.ISO8859-15 setenv LC_NUMERIC fr_FR.ISO8859-15 setenv LC_TIME fr_FR.ISO8859-15 I have a similar setting for the german language (de_DE) which allows me to use Umlauts in file names. BUT ATTENTION! I won't recommend anyone to use others but the standard character set for filenames. It can lead to problems if you're transfering files to a system which doesn't support special characters from the french language or is unable to remap them correctly. In my opinion, such characters should not be in a filename, as well as whitespaces, ampersands, apostrophes, doublequotes or similar things. I know it's possible, but it sometimes can make things _really_ difficult. I hope you won't run into such problems. Thanks a lot for your help ! I only want to allow French characters in filenames not all the environemment so I gonna check with the help you gave :-) thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: man -t odd page size
On Thu, 23 Oct 2008 19:37:56 +1100 (EST), Ian Smith [EMAIL PROTECTED] wrote: Polytropon: thanks for pdfman script - but does 'pdfman ipfw' work for you? Here the 'overprinting' is misaligned in gv, while others are ok. Yes, but it outputs an error message: standard input:2620: warning [p 25, 6.2i]: cannot adjust line The PDF file is 26 pages long. Maybe another PDF viewer will work better (xpdf)? Well, a quarter of the people on this planet live in China, so by your theory shouldn't the FreeBSD lists, docs and code all be in Chinese? Let me follow this Micky Mouse Logic. :-) Because the computer has been invented by a German, all computer stuff should be in the german language. And now all the Americans can feel how the average german computer user feels today: scared by all the things he doesn't understand. :-) What actually works and is adopted in the real world determines that. Nota bene: The worst solution always prevails. People want cheap, they get cheap. Insert bunch of Murphy's laws here. :-) Ask yourself: how come the world uses TCP/IP for internet communications rather than the OSI X.200-X.219 suite? How come we're still using SMTP plus a pile of RFCs to deliver email rather than the X.400-X.420 suite? Having worked with the AX.25 protocol (on amateur radio), sometimes I tend to thing... oh what a crap is TCP/IP... :-) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: man -t odd page size
Ian Smith wrote: I doubt an 'immensely huge majority' of FreeBSD systems are located outside the US (data at http://www.bsdstats.org/freebsd/countries.php notwithstanding, reckoning Australia to have the most FreeBSD users :) whoa! All your bases are belong to down under! :D -- en0f ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
On 22Oct08 22:14, kalin m wrote: } I usually cheat and grab a copy of ssh-copy-id from the web; I suspect } your issue has to do with permissions for the .ssh directory and the } authorized_keys file. }permissions are 600 for the file and 700 for .ssh Permission of the remote user's home directory is another one to check. It can only be writable by the user. -- Callum Gibson @ home http://members.optusnet.com.au/callumgibson/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't upgrade or deinstall phpMyAdmin
On Thursday 23 October 2008, Valentin Bud wrote: May i ask a question. Why do you use phpmyadmin from ports? Mainly to keep life simple [1]. It installs lots of libraries hence possible security threats in the future. Well this particular box is already loaded up with what many would regard as too much KDE bloatware so most of the libraries would already be there anyway. So instead of taking care of updating a bunch of libraries just for phpmyadmin why don't you simply download it from http://www.phpmyadmin.net/, put in the apache doc root, set it up and so you have to take care to update it when a new version comes out. Well, providing it works, I'm not too particular about always having the latest and greatest version but I do want to upgrade if there are any security fixes and portaudit running from cron does a far better job of spotting these than if I had to remember to check manually. It was the a vulnerability reported by portaudit http://preview.tinyurl.com/5vkfw6 that prompted me to upgrade phpMyAdmin when I re-instated the web server on this box. [1] There are times when this KISS approach falls down. An earlier portupgrade while I was still running php4 resulted in phpMyAdmin acquiring a dependency on php5, which it promptly installed alongside php4 creating quite a bit of chaos in the process. -- Mike Clarke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bsdlabel partiton c error message on new install
Hi, the below was resolved by rebooting the server. After a reboot the device file /dev/da0s1g has been created, however this doesnt seem completely normal as sysinstall obviously expected to see the new device file immediately. Perhaps there is a prob with my system or is there just a problem with the expectations of sysinstall?? :S cheers Andy. andys writes: Hi, ok, so I have attempted to proceed with my original task which was to create a new UFS2 parition (using sysinstall). Having chosen c and then w from the lable section, i recieve the following error: Error mounting /dev/da0s1g on /export : No such file or directory After exiting sysinstall, I can see from bsdlabel: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] a: 2097152004.2BSD0 0 0 b: 20971520 75497472 swap c: 2851536870unused0 0 # raw part, don't edit d: 20971520 209715204.2BSD0 0 0 e: 20971520 419430404.2BSD0 0 0 f: 12582912 629145604.2BSD0 0 0 g: 146800640 964689924.2BSD0 0 0 bsdlabel: partition c doesn't cover the whole unit! g is my new partition. Under /dev however I dont see the device file: ls /dev/da0* /dev/da0/dev/da0s1a /dev/da0s1c /dev/da0s1e /dev/da0s1 /dev/da0s1b /dev/da0s1d /dev/da0s1f Can anyone help :( thanks a lot, Andy. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked out of Root
APseudoUtopia [EMAIL PROTECTED] writes: I have one user (other than root and the other system users) on my box, and that user is _NOT_ in the wheel group. I also have root logins disabled via SSH. This is a remote server and all I have is SSH access. Is there any way that I can gain root? I know the root password and everything, but I just can't get to it. The user is not in the wheel group, and root login is disabled in SSH. Thanks for any help/advice. You'll need to reboot in single-user mode. E.g., http://be-well.ilk.org/FreeBSD/doc/en_US.ISO8859-1/books/faq/admin.html#SU-WHEEL-GROUP -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked out of Root
group, and root login is disabled in SSH. Thanks for any help/advice. You'll need to reboot in single-user mode. E.g., http://be-well.ilk.org/FreeBSD/doc/en_US.ISO8859-1/books/faq/admin.html#SU-WHEEL-GROUP -- and next time - do enable root login through ssh/rlogin/telnetd there is no security gain by disabling it, as you have to know password too. if course it's not bright to login as root over telnet through public network, but too - it's not security hole in system, just in administrator's brain if he/she do it this way. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked out of Root
Hi, Another option would be if that umprivileged user is in sudoers with permission to run the root shell (sudo -s). It doesn't need to be in wheel to do that. On Wed, 22 Oct 2008, mdh wrote: |He said his unprivileged user isn't in the wheel group. | |To answer the initial question, you'll need to login to the system on the local console. You cannot get root access via the network unless you're running another remote access service besides ssh which will allow you to login as root directly. | |- mdh | |--- On Wed, 10/22/08, Benjamin Lee [EMAIL PROTECTED] wrote: | From: Benjamin Lee [EMAIL PROTECTED] | Subject: Re: Locked out of Root | To: APseudoUtopia [EMAIL PROTECTED] | Cc: freebsd-questions@freebsd.org | Date: Wednesday, October 22, 2008, 11:25 PM | | Login as the unprivileged user and run: | | $ su | | See su(1). | | | | |___ |freebsd-questions@freebsd.org mailing list |http://lists.freebsd.org/mailman/listinfo/freebsd-questions |To unsubscribe, send any mail to [EMAIL PROTECTED] | - Marcelo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
problem with freebsd-update-upgrade.tgz.asc
Hi, I have downloaded the above script from http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html Installed gpg all set up ok AFAICT. put the freebsd security officer's public key on my gpg keyring . Used the following command to verify the file: localhost# gpg --verify freebsd-update-upgrade.tgz.asc freebsd-update-upgrade.tgz gpg: can't open signed data `freebsd-update-upgrade.tgz' gpg: can't hash datafile: No such file or directory localhost# AFAICT the public key is ok pub 1024D/CA6CDFB2 2002-08-27 uid FreeBSD Security Officer [EMAIL PROTECTED] sub 2048g/A3071809 2002-08-27 Apart from the fact that the file could be dodgy (?) What could be the problem? Have I used the wrong key? I imagine the error msg would be different if that was the case. Thanks, Alasdair ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked out of Root
Hi, Another option would be if that umprivileged user is in sudoers with permission to run the root shell (sudo -s). It doesn't need to be in wheel to do that. On Wed, 22 Oct 2008, mdh wrote: |He said his unprivileged user isn't in the wheel group. | |To answer the initial question, you'll need to login to the system on the local console. You cannot get root access via the network unless you're running another remote access service besides ssh which will allow you to login as root directly. | |- mdh | |--- On Wed, 10/22/08, Benjamin Lee [EMAIL PROTECTED] wrote: | From: Benjamin Lee [EMAIL PROTECTED] | Subject: Re: Locked out of Root | To: APseudoUtopia [EMAIL PROTECTED] | Cc: freebsd-questions@freebsd.org | Date: Wednesday, October 22, 2008, 11:25 PM | | Login as the unprivileged user and run: | | $ su | | See su(1). | | | | |___ |freebsd-questions@freebsd.org mailing list |http://lists.freebsd.org/mailman/listinfo/freebsd-questions |To unsubscribe, send any mail to [EMAIL PROTECTED] | - Marcelo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
samba - vista problems
Hello! I have some problems with my samba/vista os I can't log on from my pc to the samba, it says every time that there is a password/user problem, I tried to retype almost 50 times the user/pass, to change it but it don't works. do you ever meet this problem? Laci ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GCC help
RW wrote: On Wed, 22 Oct 2008 10:07:09 -0400 Victor Farah [EMAIL PROTECTED] wrote: I was wondering how I would update gcc to version 4.2? I'm not sure I can just do a portupgrade gcc ?? If you install a later version of gcc it won't automatically get used because the port will use the base-system version. Can't you set $CC to gcc44 or whatever to make the ports system use a different version of gcc? -- Bruce Cran ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba - vista problems
On Thu, Oct 23, 2008 at 3:27 PM, Dánielisz László [EMAIL PROTECTED] wrote: Yes, I got the following error message, but not every time, sometime its just simply empty: # tail -f /var/log/samba/log.laci-laptop [2008/10/23 14:51:36, 0] lib/util_sock.c:read_data(534) read_data: read failure for 4 bytes to client 192.168.1.4. Error = Connection reset by peer - Original Message From: Valentin Bud [EMAIL PROTECTED] To: Dánielisz László [EMAIL PROTECTED] Sent: Thursday, October 23, 2008 3:21:11 PM Subject: Re: samba - vista problems On Thu, Oct 23, 2008 at 2:50 PM, Dánielisz László [EMAIL PROTECTED] wrote: Hello! I have some problems with my samba/vista os I can't log on from my pc to the samba, it says every time that there is a password/user problem, I tried to retype almost 50 times the user/pass, to change it but it don't works. do you ever meet this problem? did you check the logs? /var/log/samba/* Laci ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Ok, have you added the user to the samba user database: # smbpasswd -a user The user must be a system user. You can use either smbpasswd(8) or pdbedit(8). all the best, v ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba - vista problems
Hello! I have some problems with my samba/vista os I can't log on from my pc to the samba, it says every time that there is a password/user problem, I tried to retype almost 50 times the user/pass, to change it but it don't works. do you ever meet this problem? no - i don't use windows, for users i strongly recommend not using vista. anyway - it's not FreeBSD related problem, samba is not FreeBSD specific. try windows support and samba related mailing lists! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: samba - vista problems
It works! Thank you very much! [2008/10/23 15:51:28, 1] smbd/service.c:make_connection_snum(1033) laci-laptop (192.168.1.4) connect to service laci_smb initially as user laci_smb (uid=1002, gid=1002) (pid 13213) - Original Message From: Valentin Bud [EMAIL PROTECTED] To: Dánielisz László [EMAIL PROTECTED] Cc: freebsd-questions freebsd-questions@freebsd.org Sent: Thursday, October 23, 2008 3:31:59 PM Subject: Re: samba - vista problems On Thu, Oct 23, 2008 at 3:27 PM, Dánielisz László [EMAIL PROTECTED] wrote: Yes, I got the following error message, but not every time, sometime its just simply empty: # tail -f /var/log/samba/log.laci-laptop [2008/10/23 14:51:36, 0] lib/util_sock.c:read_data(534) read_data: read failure for 4 bytes to client 192.168.1.4. Error = Connection reset by peer - Original Message From: Valentin Bud [EMAIL PROTECTED] To: Dánielisz László [EMAIL PROTECTED] Sent: Thursday, October 23, 2008 3:21:11 PM Subject: Re: samba - vista problems On Thu, Oct 23, 2008 at 2:50 PM, Dánielisz László [EMAIL PROTECTED] wrote: Hello! I have some problems with my samba/vista os I can't log on from my pc to the samba, it says every time that there is a password/user problem, I tried to retype almost 50 times the user/pass, to change it but it don't works. do you ever meet this problem? did you check the logs? /var/log/samba/* Laci ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Ok, have you added the user to the samba user database: # smbpasswd -a user The user must be a system user. You can use either smbpasswd(8) or pdbedit(8). all the best, v ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GCC help
On Thu, 23 Oct 2008 14:26:40 +0100 Bruce Cran [EMAIL PROTECTED] wrote: [snip] Can't you set $CC to gcc44 or whatever to make the ports system use a different version of gcc? UNTESTED: in /etc/make.conf file: CC=/usr/local/bin/gcc44 -- Jerry [EMAIL PROTECTED] It doesn't matter whether you win or lose -- until you lose. signature.asc Description: PGP signature
Re: samba - vista problems
On Thu, 23 Oct 2008 15:39:16 +0200 (CEST) Wojciech Puchar [EMAIL PROTECTED] wrote: Hello! I have some problems with my samba/vista os I can't log on from my pc to the samba, it says every time that there is a password/user problem, I tried to retype almost 50 times the user/pass, to change it but it don't works. do you ever meet this problem? no - i don't use windows, for users i strongly recommend not using vista. That was not the question the OP asked. anyway - it's not FreeBSD related problem, samba is not FreeBSD specific. If the OP is using SAMBA in a FreeBSD environment, then it is most certainly a FBSD related problem. try windows support and samba related mailing lists! In which case, if their users are as closed minded as you appear to be, they will refer the OP to the FreeBSD and/or Samba mailing list, depending on which list he contacts. -- Jerry [EMAIL PROTECTED] Life's tough ... it is even tougher if you are stupid. John Wayne signature.asc Description: PGP signature
Re: man -t odd page size
On Thu, 23 Oct 2008, Gonzalo Nemmi wrote: A good start would just be determining which programs need to be modified. A check for similar work in other operating systems would be very useful. Finally, a proposal for the way to implement the change, and maybe even patches. Well .. we seem to have a start about which programs need to be modified ... A list of base FreeBSD programs that need page size support would give a good idea of what approaches can be used. It gets a little tougher regarding other operting system given that FreeBSD is the only one running on my only PC :'( But there are printing applications that run on both FreeBSD and other OSs. CUPS or one of the big desktop environments or one of the variations of Linux may have already addressed global page size setting. You don't have to run them to research them. Taking advantage of existing work can get things going a lot faster and avoid unexpected pitfalls. (A shorter way of saying that: It's better to learn from somebody else's mistakes.) -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked out of Root
--- On Thu, 10/23/08, Lowell Gilbert [EMAIL PROTECTED] wrote: From: Lowell Gilbert [EMAIL PROTECTED] Subject: Re: Locked out of Root To: APseudoUtopia [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Date: Thursday, October 23, 2008, 7:44 AM APseudoUtopia [EMAIL PROTECTED] writes: I have one user (other than root and the other system users) on my box, and that user is _NOT_ in the wheel group. I also have root logins disabled via SSH. This is a remote server and all I have is SSH access. Is there any way that I can gain root? I know the root password and everything, but I just can't get to it. The user is not in the wheel group, and root login is disabled in SSH. Thanks for any help/advice. You'll need to reboot in single-user mode. E.g., http://be-well.ilk.org/FreeBSD/doc/en_US.ISO8859-1/books/faq/admin.html#SU-WHEEL-GROUP If he can get to the system console, why would he need to bother booting to single user mode? He said he has the root password. He should just be able to login normally, if he can get to the system console. - mdh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: samba - vista problems
In windows world, username is machinename\username. So, if the Vista box is named mypc and your username is fred, The username you enter should be mypc\fred. Not sure if you have a freebsd password problem. Anyway, just more info to help you solve your problem. Darryl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerry Sent: Thursday, October 23, 2008 9:21 AM To: freebsd-questions@freebsd.org Subject: Re: samba - vista problems On Thu, 23 Oct 2008 15:39:16 +0200 (CEST) Wojciech Puchar [EMAIL PROTECTED] wrote: Hello! I have some problems with my samba/vista os I can't log on from my pc to the samba, it says every time that there is a password/user problem, I tried to retype almost 50 times the user/pass, to change it but it don't works. do you ever meet this problem? no - i don't use windows, for users i strongly recommend not using vista. That was not the question the OP asked. anyway - it's not FreeBSD related problem, samba is not FreeBSD specific. If the OP is using SAMBA in a FreeBSD environment, then it is most certainly a FBSD related problem. try windows support and samba related mailing lists! In which case, if their users are as closed minded as you appear to be, they will refer the OP to the FreeBSD and/or Samba mailing list, depending on which list he contacts. -- Jerry [EMAIL PROTECTED] Life's tough ... it is even tougher if you are stupid. John Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked out of Root
On Wed, Oct 22, 2008 at 08:25:30PM -0700, Benjamin Lee wrote: On 10/22/08 19:55, APseudoUtopia wrote: Hey, I have one user (other than root and the other system users) on my box, and that user is _NOT_ in the wheel group. I also have root logins disabled via SSH. This is a remote server and all I have is SSH access. Is there any way that I can gain root? I know the root password and everything, but I just can't get to it. The user is not in the wheel group, and root login is disabled in SSH. Thanks for any help/advice. Login as the unprivileged user and run: $ su See su(1). On FreeBSD, unless it is reconfigured differently, the non-root user must be in the wheel group to su to root. Changing that configuration requires root as does putting the user in the wheel group. jerry -- Benjamin Lee ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked out of Root
On Thu, Oct 23, 2008 at 02:43:47PM +0200, Wojciech Puchar wrote: group, and root login is disabled in SSH. Thanks for any help/advice. You'll need to reboot in single-user mode. E.g., http://be-well.ilk.org/FreeBSD/doc/en_US.ISO8859-1/books/faq/admin.html#SU-WHEEL-GROUP -- and next time - do enable root login through ssh/rlogin/telnetd there is no security gain by disabling it, as you have to know password too. It guarantees that the root password is passed encrypted. So, next time do NOT enable root loging via ssh. Instead, put the non-root user in the wheel group. jerry if course it's not bright to login as root over telnet through public network, but too - it's not security hole in system, just in administrator's brain if he/she do it this way. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked out of Root
On Thu, Oct 23, 2008 at 10:50:29AM -0200, [EMAIL PROTECTED] wrote: Hi, Another option would be if that umprivileged user is in sudoers with permission to run the root shell (sudo -s). It doesn't need to be in wheel to do that. Of course, it would take root to be put in. jerry On Wed, 22 Oct 2008, mdh wrote: |He said his unprivileged user isn't in the wheel group. | |To answer the initial question, you'll need to login to the system on the local console. You cannot get root access via the network unless you're running another remote access service besides ssh which will allow you to login as root directly. | |- mdh | |--- On Wed, 10/22/08, Benjamin Lee [EMAIL PROTECTED] wrote: | From: Benjamin Lee [EMAIL PROTECTED] | Subject: Re: Locked out of Root | To: APseudoUtopia [EMAIL PROTECTED] | Cc: freebsd-questions@freebsd.org | Date: Wednesday, October 22, 2008, 11:25 PM | | Login as the unprivileged user and run: | | $ su | | See su(1). | | | | |___ |freebsd-questions@freebsd.org mailing list |http://lists.freebsd.org/mailman/listinfo/freebsd-questions |To unsubscribe, send any mail to [EMAIL PROTECTED] | - Marcelo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked out of Root
On Wed, Oct 22, 2008 at 10:55:19PM -0400, APseudoUtopia wrote: Hey, I have one user (other than root and the other system users) on my box, and that user is _NOT_ in the wheel group. I also have root logins disabled via SSH. This is a remote server and all I have is SSH access. Is there any way that I can gain root? I know the root password and everything, but I just can't get to it. The user is not in the wheel group, and root login is disabled in SSH. You will need to gain console access or get someone there to gain console access. Then login as root and add that non-root account to the wheel group (or have the _trusted_ local person do it). Have the local person log out and you can then immediately log in as the non-root, su to root, check if anyone else is connected and then change the root password. jerry Thanks for any help/advice. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Boot device question
I have a server with 6 hot-swap SATA slots. It was delivered with the first slot empty and 5 drives set up as /dev/ad4 through /dev/ad12. I'd never paid attention to this until I wanted to add a 6th, now 4 years later. When I popped it in, I realized the empty bay was not 6 but rather bay 1, and of course it wouldn't boot. Presumably /dev/ad2 had now come alive for the first time. I popped out the disk, rebooted and after it was up, I plugged it back in (hot) and ran sysinstall. It didn't see the disk so I couldn't fdisk it. No device files existed for it. I was thinking a right approach would be to change fstab to reference ad2 for all the system disk file systems, shutdown, move that drive to the first bay and plug the new drive into the 2nd bay. This seemed like more of a permanent solution. If those /dev/ad* files are created at boot dynamically, this should work. I've found docs that imply that they are dynamically discovered and created from FreeBSD 5 forward (auto-discovery?). Are they or do I need to create them prior to start up. The thing is, there is no easy recovery from failure here since I have no console monitor to let me see what's going on or to fix fstab if it fails (counter-intuitively, the only place I can access the console is from remote locations ;-)), so I just want to know if I'm thinking straight? The plan is: 1. Change /etc/fstab entries for ad4 filesystems to ad2 2. Shutdown 3. Put the system disk in Bay 1 4. Power up Should it boot? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: man -t odd page size
On Thu, 23 Oct 2008, Polytropon wrote: On Thu, 23 Oct 2008 19:37:56 +1100 (EST), Ian Smith [EMAIL PROTECTED] wrote: Polytropon: thanks for pdfman script - but does 'pdfman ipfw' work for you? Here the 'overprinting' is misaligned in gv, while others are ok. Yes, but it outputs an error message: standard input:2620: warning [p 25, 6.2i]: cannot adjust line The PDF file is 26 pages long. Maybe another PDF viewer will work better (xpdf)? Modified to rm any /tmp/man.pdf first, then tried both xpdf and kpdf .. still the same problem. Here's a small (if messy) text clip from xpdf; all the underlining and overprinting stuff gets scrambled, plus some missing newlines later in the file .. N A ME N AM E ip fw -- IP firewall and traffic shaper control program pf w S YN OP SI S SY NO PS I S ip fw [- c q] a dd _ u_ e pf w - cq ad d r_ l_ However this time I noticed an error listed also, different to yours, maybe because mine is only 20 pages (this on 5.5-STABLE if it matters) sola% pdfman ipfw (source:.gz: No such file or directory /usr/share/man/man8/ipfw.8.gz).gz: No such file or directory Which is strange, and goes away if I redirect the first command's stderr to /dev/null, but it doesn't change the output. The groff output looks ok, not that I read postscript beyond seeing head and tail look intact. zcat `man -w [EMAIL PROTECTED] 2/dev/null | groff -Tps -dpaper=a4 -P-pa4 -mandoc \ | ps2pdf - /tmp/man.pdf gv /tmp/man.pdf Seems that short (or maybe just 'some') mans work very well, but longer ones, (or just 'some others'?) have problems here, eg: sola% pdfman ip # looks great, 5pp sola% pdfman ipfw # overprinting misaligned as above, 20pp sola% pdfman csh# pretty rough and misaligned also, 48pp standard input:1798: normal or special character expected (got a tab character) standard input:1798: normal or special character expected (got a space) standard input:1798: normal or special character expected (got a space) standard input:1798: normal or special character expected (got a space) standard input:1800: a backspace character is not allowed in an escape name standard input:1801: a backspace character is not allowed in an escape name standard input:1804: warning: numeric expression expected (got `v') sola% Possibly just my out of date ports (don't ask), quite likely ps2pdf? Well, a quarter of the people on this planet live in China, so by your theory shouldn't the FreeBSD lists, docs and code all be in Chinese? Let me follow this Micky Mouse Logic. :-) Because the computer has been invented by a German, all computer stuff should be in the german language. And now all the Americans can feel how the average german computer user feels today: scared by all the things he doesn't understand. :-) Charlie Babbage was German? Learn something every day on this list :) What actually works and is adopted in the real world determines that. Nota bene: The worst solution always prevails. But much sooner than the best, which takes forever. People want cheap, they get cheap. We wanted free, we got free .. and don't have to shell out maybe $10k+ for a shelf full of CCITT / ISO docs! Ask yourself: how come the world uses TCP/IP for internet communications rather than the OSI X.200-X.219 suite? How come we're still using SMTP plus a pile of RFCs to deliver email rather than the X.400-X.420 suite? Having worked with the AX.25 protocol (on amateur radio), sometimes I tend to thing... oh what a crap is TCP/IP... :-) Well I suppose the ITU have a TCP/IP-free X.20something net running somewhere, but it doesn't look like pushing TCP/IP off its perch .. cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Boot device question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Pratt wrote: I have a server with 6 hot-swap SATA slots. It was delivered with the first slot empty and 5 drives set up as /dev/ad4 through /dev/ad12. I'd never paid attention to this until I wanted to add a 6th, now 4 years later. When I popped it in, I realized the empty bay was not 6 but rather bay 1, and of course it wouldn't boot. Presumably /dev/ad2 had now come alive for the first time. I popped out the disk, rebooted and after it was up, I plugged it back in (hot) and ran sysinstall. It didn't see the disk so I couldn't fdisk it. No device files existed for it. I was thinking a right approach would be to change fstab to reference ad2 for all the system disk file systems, shutdown, move that drive to the first bay and plug the new drive into the 2nd bay. This seemed like more of a permanent solution. If those /dev/ad* files are created at boot dynamically, this should work. I've found docs that imply that they are dynamically discovered and created from FreeBSD 5 forward (auto-discovery?). Are they or do I need to create them prior to start up. The thing is, there is no easy recovery from failure here since I have no console monitor to let me see what's going on or to fix fstab if it fails (counter-intuitively, the only place I can access the console is from remote locations ;-)), so I just want to know if I'm thinking straight? The plan is: 1. Change /etc/fstab entries for ad4 filesystems to ad2 2. Shutdown 3. Put the system disk in Bay 1 4. Power up Should it boot? Hi Chris, I don't know the answer to that question, but I do know that you can wire physical devices to specific devices files in /dev. I use the /boot/device.hints file to do that. Check this page for more information: http://threads.seas.gwu.edu/cgi-bin/man2web?program=scbussection=4 Halfway down the page, you'll see directives like: hint.da.0.at=scbus0 hint.da.0.target=0 hint.da.0.unit=0 I believe you can do something similar with your ad devices, and force the new drive to a different /dev/ad? device file that doesn't cause a boot problem. Hope that helps, Greg -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkkAm2EACgkQ0sRouByUApARlQCcDmUTbVBqui+nNSpcCdDTavIk FywAnj+wR4wtB8vLsYL0BiEfdiRLPnq6 =Y3ZT -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Boot device question
On Thu, Oct 23, 2008 at 08:12:38AM -0700, Chris Pratt wrote: I have a server with 6 hot-swap SATA slots. It was delivered with the first slot empty and 5 drives set up as /dev/ad4 through /dev/ad12. I'd never paid attention to this until I wanted to add a 6th, now 4 years later. When I popped it in, I realized the empty bay was not 6 but rather bay 1, and of course it wouldn't boot. Presumably /dev/ad2 had now come alive for the first time. I popped out the disk, rebooted and after it was up, I plugged it back in (hot) and ran sysinstall. It didn't see the disk so I couldn't fdisk it. No device files existed for it. I was thinking a right approach would be to change fstab to reference ad2 for all the system disk file systems, shutdown, move that drive to the first bay and plug the new drive into the 2nd bay. This seemed like more of a permanent solution. This is the solution I go with, because it's obvious and doesn't add more complexity to the picture. If the installation was originally done when the disk was considered ad4, for example, you should still be able to boot that drive (no matter what port it's on, assuming SATA), choose single-user at the beastie/loader menu, then make changes to /etc/fstab. Upon reboot (in multi-user mode) things should just work, sans any programs which you have that might refer to disks by device (e.g. smartd.conf, etc.) You can avoid the single-user step if you enjoy living dangerously. If those /dev/ad* files are created at boot dynamically, this should work. I've found docs that imply that they are dynamically discovered and created from FreeBSD 5 forward (auto-discovery?). Are they or do I need to create them prior to start up. They are, and it's hard to explain why/how. The dynamic aspect is entirely dependent upon different features/modes of the ATA configuration though. For example, a SATA controller operating in Legacy/Compatible mode might show two SATA disks as ata0-master and ata0-slave (even though they're SATA); the same controller in Enhanced mode might show the disks as ata4-master and ata5-master; the same controller in AHCI mode might show the disks as ata8-master and ata10-master. I think some people deal with this problem using glabel(8), but as I mentioned, I prefer to do things the old-fashioned way. The thing is, there is no easy recovery from failure here since I have no console monitor to let me see what's going on or to fix fstab if it fails (counter-intuitively, the only place I can access the console is from remote locations ;-)), so I just want to know if I'm thinking straight? See bottom of my mail. The plan is: 1. Change /etc/fstab entries for ad4 filesystems to ad2 2. Shutdown 3. Put the system disk in Bay 1 4. Power up Should it boot? How certain are you that bay 1 correlates with ad4? That's the real question here. You obviously have *some* form of access to the machine physically -- or, your co-location provider is offering remote hands capability. This would be the first time I'd *ever* heard of a co-lo offering that feature without volunteering to put a VGA monitor + keyboard on the machine so they can see what's going on for you. (Most providers will give you remote hands for free, as long as the duration of incident does not exceed 10-15 minutes). Since these bays are hot-swappable, why don't you have the remote hands person insert a new disk into the spare/empty bay? You should be able to run atacontrol attach channel (where channel is the ATA channel which has no disk attached to it, see atacontrol list), and then see what the newly-inserted disk's device name is. Make note of it, then do atacontrol detach channel, then have the remote hands person remove the disk they just installed. After that, edit /etc/fstab with the information you just obtained, shutdown -p now, then have the remote hands person move the OS disk into the spare/empty bay; that should be sufficient. All that said: I strongly urge you to take the time to consider the volatility of your situation. You have something that is obviously critical to you, in a remote location, with no remote way to manage it other than SSH. The year is 2008: there are tons of ways to solve this problem. Your provider should really offer serial console hookups, KVM-over-IP, or at bare minimum, their remote hands folks should be permitted to hook up a keyboard and VGA monitor and have you step them through what to do over the phone. Our co-lo provider offers this for free, as long as the duration of the incident does not take more than 10-15 minutes; otherwise, it's expensive (hundreds of dollars). If you're with a co-lo provider who doesn't offer this capability, consider switching to one who does. There is absolutely no reason to accept lack-of remote management in this day and age. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/
Re: Boot device question
On Thu, Oct 23, 2008 at 10:42:26AM -0500, Greg Larkin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Pratt wrote: I have a server with 6 hot-swap SATA slots. It was delivered with the first slot empty and 5 drives set up as /dev/ad4 through /dev/ad12. I'd never paid attention to this until I wanted to add a 6th, now 4 years later. When I popped it in, I realized the empty bay was not 6 but rather bay 1, and of course it wouldn't boot. Presumably /dev/ad2 had now come alive for the first time. I popped out the disk, rebooted and after it was up, I plugged it back in (hot) and ran sysinstall. It didn't see the disk so I couldn't fdisk it. No device files existed for it. I was thinking a right approach would be to change fstab to reference ad2 for all the system disk file systems, shutdown, move that drive to the first bay and plug the new drive into the 2nd bay. This seemed like more of a permanent solution. If those /dev/ad* files are created at boot dynamically, this should work. I've found docs that imply that they are dynamically discovered and created from FreeBSD 5 forward (auto-discovery?). Are they or do I need to create them prior to start up. The thing is, there is no easy recovery from failure here since I have no console monitor to let me see what's going on or to fix fstab if it fails (counter-intuitively, the only place I can access the console is from remote locations ;-)), so I just want to know if I'm thinking straight? The plan is: 1. Change /etc/fstab entries for ad4 filesystems to ad2 2. Shutdown 3. Put the system disk in Bay 1 4. Power up Should it boot? Hi Chris, I don't know the answer to that question, but I do know that you can wire physical devices to specific devices files in /dev. I use the /boot/device.hints file to do that. Check this page for more information: http://threads.seas.gwu.edu/cgi-bin/man2web?program=scbussection=4 Halfway down the page, you'll see directives like: hint.da.0.at=scbus0 hint.da.0.target=0 hint.da.0.unit=0 I believe you can do something similar with your ad devices, and force the new drive to a different /dev/ad? device file that doesn't cause a boot problem. AFAIK, at/target/unit are hint commands only available to da(4), at least that's what I see from the source code. I see no such support for ad(4), so I do not think this will work for him. Also, I'll remind people once more: stop modifying device.hints! The file can/will be overwritten in some cases, and you will lose your changes! You're living dangerously. Use loader.conf to do what you need; you can literally copy/paste those lines into loader.conf and achieve the same, without the risks. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Boot device question
On Oct 23, 2008, at 8:43 AM, Jeremy Chadwick wrote: On Thu, Oct 23, 2008 at 08:12:38AM -0700, Chris Pratt wrote: I have a server with 6 hot-swap SATA slots. It was delivered ... I was thinking a right approach would be to change fstab to reference ad2 for all the system disk file systems, shutdown, move that drive to the first bay and plug the new drive into the 2nd bay. This seemed like more of a permanent solution. This is the solution I go with, because it's obvious and doesn't add more complexity to the picture. If the installation was originally done when the disk was considered ad4, for example, you should still be able to boot that drive (no matter what port it's on, assuming SATA), choose single-user at the beastie/loader menu, then make changes to /etc/fstab. Upon reboot (in multi-user mode) things should just work, sans any programs which you have that might refer to disks by device (e.g. smartd.conf, etc.) You can avoid the single-user step if you enjoy living dangerously. It was sensed as ad4 and there wasn't an ad2 (which always made me wonder though not enough to actually look into it). This is why I presumed if I placed the system disk in the first bay, it would be seen as / dev/ad2. Single user and a console are the key here I can tell. No free lunch. If those /dev/ad* files are created at boot dynamically, this should work. I've found docs that imply that they are dynamically discovered and created from FreeBSD 5 forward (auto-discovery?). Are they or do I need to create them prior to start up. They are, and it's hard to explain why/how. The dynamic aspect is entirely dependent upon different features/ modes of the ATA configuration though. For example, a SATA controller operating in Legacy/Compatible mode might show two SATA disks as ata0-master and ata0-slave (even though they're SATA); the same controller in Enhanced mode might show the disks as ata4-master and ata5-master; the same controller in AHCI mode might show the disks as ata8-master and ata10-master. I think some people deal with this problem using glabel(8), but as I mentioned, I prefer to do things the old-fashioned way. I see why a simple answer doesn't pop out on searching. Too many possible configurations and results vary with each. This driver appears to enumerate the bays as ad2 (hoping), ad4, 6, 8, 10, and 12. The device minor numbers seemed they must have been created on the fly since acd0 is 79, ad4 is presently 80, ad6, 8, 10, and 12 are 81 through 84 respectively. The thing is, there is no easy recovery from failure here since I have no console monitor to let me see what's going on or to fix fstab if it fails (counter-intuitively, the only place I can access the console is from remote locations ;-)), so I just want to know if I'm thinking straight? See bottom of my mail. The plan is: 1. Change /etc/fstab entries for ad4 filesystems to ad2 2. Shutdown 3. Put the system disk in Bay 1 4. Power up Should it boot? How certain are you that bay 1 correlates with ad4? That's the real question here. I think I see your point, the second bay may not be the system disk. Getting a console sounds like it's necessary. I didn't really explain that. It's not a co-locate, but a business's server room with 10 servers all connected to a KVM. The KVM is reachable only from certain IPs. The local monitor is fried and I have no spares. You caught me in laziness here. I need to haul a monitor with me and I can more safely do this switch. Seeing what's happening at boot will tell me if the above assumptions are valid and how to proceed. I think you implied that you move the disk first, boot and see what we end up with. It eliminates numerous questions and allows a recoverable process. I'll get a real console on it. This also means I can use a live CD disk if necessary. You obviously have *some* form of access to the machine physically -- or, your co-location provider is offering remote hands capability. ... If you're with a co-lo provider who doesn't offer this capability, consider switching to one who does. There is absolutely no reason to accept lack-of remote management in this day and age. Thanks for your reply. As always, you give a lot of thought to your responses. I'll study some of this you've mentioned to see if I can understand how the devices are created for my specific setups on all the servers. It's always quite fuzzy to me. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Photoshop under wine
Hi list, I have exactly that issue: http://forum.winehq.org/viewtopic.php?p=3198sid=5834d53c839cabfb29b6c2291acb0dca ...any ideas? Cheers Markus -- Markus Klaschka MKDev - Markus Klaschka Development S.L Passeig Maritím 48-52 78087 La Savina, España http://www.mkdev.eu Spain: 0034 - 63 747 23 07 UK: 0044 - 750 910 2718 Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Skype: mark-use IRC: mark-use @ irc.freenode.net : #freebsd, ##security, #freebsd-src, #bsdforen.de, #bsdgroup.de ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked out of Root
mdh [EMAIL PROTECTED] writes: If he can get to the system console, why would he need to bother booting to single user mode? He said he has the root password. He should just be able to login normally, if he can get to the system console. To be honest, I was just guessing that there was more going on than we were told. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: downloading linux_base-fc4
On Tue, 21 Oct 2008 18:19:31 -0400 matt donovan wrote: On Tue, Oct 21, 2008 at 1:28 PM, Boris Samorodov [EMAIL PROTECTED] wrote: On Tue, 21 Oct 2008 14:49:01 -0200 luizbcampos wrote: After I had tried to download linux_base-fc4 I got file unavailable not found no access...I need to put my printer to work! You may try to use packages: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/packages-using.html What`s the matter? You didn't show any diagnostics (exact commands, exact output, etc.) so it's hard to say anything. the problem with the port your installing is that it takes 5 mirrors or so to even find .rpms that even work A patch for ports/Mk/bsd.sites.mk has just been committed. The problem should go away. Thanks for pointing this out. WBR -- bsam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Boot device question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeremy Chadwick wrote: AFAIK, at/target/unit are hint commands only available to da(4), at least that's what I see from the source code. I see no such support for ad(4), so I do not think this will work for him. Also, I'll remind people once more: stop modifying device.hints! The file can/will be overwritten in some cases, and you will lose your changes! You're living dangerously. Use loader.conf to do what you need; you can literally copy/paste those lines into loader.conf and achieve the same, without the risks. Hi Jeremy, Excellent points all - thank you. I will make the migration from device.hints to loader.conf as you noted! Regards, Greg -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkkAw3sACgkQ0sRouByUApBwcgCgl3Ka/ilELTHCOfjmnuSU7mtF 0rEAoIgvR2k4kczTKmb1ofFTFXfEL4+W =mkkU -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: man -t odd page size
Valentin Bud wrote: hello, what do you know about this site: http://www.metricamerica.com/. i don't remember where i have read that America is going to apply the SI (ess eye) unit system. so things are going to change maybe even the A4 papersize. a good day, v #... Aloha, The Metric System has been a legal measure in the United States since the 1860's. There is nothing to stop anybody legally from using it. In many places in the country both are used. Tue US Military uses Metric. The film and Video industry for example. Here in Hawaii the population is very diverse and most people have come from Metric countries. If you have to ever work on maintaining equipment, mechanical or electronic, here in the US, both tool sizes are a must. I had to replace a storage battery yesterday on a clients Japanese Fork Lift and the fasteners were all metric except for one battery terminal clamp. I think the choice by locale for FreeBSD is an excellent solution. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + email: [EMAIL PROTECTED] All that's really worth doing is what we do for others.- Lewis Carrol ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: man -t odd page size
On Behalf Of Al Plant Valentin Bud wrote: hello, what do you know about this site: http://www.metricamerica.com/. i don't remember where i have read that America is going to apply the SI (ess eye) unit system. so things are going to change maybe even the A4 papersize. The Metric System has been a legal measure in the United States since the 1860's. There is nothing to stop anybody legally from using it. However, there is one problem. When I go into Staples, Office Depot or Sam's, they only have letter sized paper. I have yet to see a single box of A4 or any other ISO size. Sure, my printers can handle A4, but where can I buy a couple reams of it? Bob McConnell Ithaca, NY ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: man -t odd page size
Bob McConnell wrote: On Behalf Of Al Plant Valentin Bud wrote: hello, what do you know about this site: http://www.metricamerica.com/. i don't remember where i have read that America is going to apply the SI (ess eye) unit system. so things are going to change maybe even the A4 papersize. The Metric System has been a legal measure in the United States since the 1860's. There is nothing to stop anybody legally from using it. However, there is one problem. When I go into Staples, Office Depot or Sam's, they only have letter sized paper. I have yet to see a single box of A4 or any other ISO size. Sure, my printers can handle A4, but where can I buy a couple reams of it? Bob McConnell Ithaca, NY Locally, probably nowhere. But try www.staples.com where there's currently one type of paper available by the ream or case. Of course, it costs more and then you'll need to get A4 binders, slightly longer file folders, a new file cabinet, It's not easy switching. --Jon Radel smime.p7s Description: S/MIME Cryptographic Signature
RE: man -t odd page size
From: Jon Radel Bob McConnell wrote: On Behalf Of Al Plant Valentin Bud wrote: hello, what do you know about this site: http://www.metricamerica.com/. i don't remember where i have read that America is going to apply the SI (ess eye) unit system. so things are going to change maybe even the A4 papersize. The Metric System has been a legal measure in the United States since the 1860's. There is nothing to stop anybody legally from using it. However, there is one problem. When I go into Staples, Office Depot or Sam's, they only have letter sized paper. I have yet to see a single box of A4 or any other ISO size. Sure, my printers can handle A4, but where can I buy a couple reams of it? Bob McConnell Ithaca, NY Locally, probably nowhere. But try www.staples.com where there's currently one type of paper available by the ream or case. Of course, it costs more and then you'll need to get A4 binders, slightly longer file folders, a new file cabinet, It's not easy switching. Well, in this case I don't plan to switch the whole house over. But I do have a few documents and schematics that I would like to print on the correct size paper instead of having to bypass the size check at the printer. It does look like online ordering is the only way for now. Thanks, Bob McConnell ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: man -t odd page size
On Thursday 23 October 2008 6:44:59 am Valentin Bud wrote: hello, what do you know about this site: http://www.metricamerica.com/. i don't remember where i have read that America is going to apply the SI (ess eye) unit system. so things are going to change maybe even the A4 papersize. a good day, v On Thu, Oct 23, 2008 at 10:37 AM, Ian Smith [EMAIL PROTECTED] wrote: On Wed, 22 Oct 2008 23:35:25 -0200 Gonzalo Nemmi [EMAIL PROTECTED] wrote: On Wednesday 22 October 2008 10:38:40 pm Polytropon wrote: [..] Polytropon: thanks for pdfman script - but does 'pdfman ipfw' work for you? Here the 'overprinting' is misaligned in gv, while others are ok. I know this is not the best idea, but it should be accomplishable without many problems. A better idea would be to write a simple filter that convert the man page (including formatting characters) into LaTeX source and then run it through pdflatex. Exactly .. you got it just the way I wanted .. after your explanantion, the question _begs_ to be asked: do we, citizens of ISO 216 adopting countries, have to walk that cumbersome path in order to get something as simple as an ISO compliant document?? Shouldn't it be the other way around??? Does an inmensily huge majority have to walk the extra mile in order to get an ISO compliant document whereas a small minority benefits from having non ISO complaint default formats??? Gonzalo: shouldn't that be 'the extra kilometre?' :) Well, a quarter of the people on this planet live in China, so by your theory shouldn't the FreeBSD lists, docs and code all be in Chinese? No .. languages are not ISO standards... let alone the fact that we are not discussing languages in here. I doubt an 'immensely huge majority' of FreeBSD systems are located outside the US (data at http://www.bsdstats.org/freebsd/countries.php notwithstanding, reckoning Australia to have the most FreeBSD users :) That's only if you take bsdstats as the ultimate and most authoritative word on the location of FreeBSD based systems. I do not. And actually Im running 3 FreeBSD systems in my place and Argentina doesn't even figure on that list. I, for once, would pretty much like to know the logic behind that decision. It's not logic, nor even a decision, but simply a matter of tradition. I wonder why did we stop using the abacus .. or candles .. they where pretty traditional back in those days ... and on a side note: will we ever get to see ISO 216 A4 as the default choice for output instead of not-standard, only usefull in the US but useless in the rest of the whole world letter page size and the likes??? I've yet to run into any printing or display software that didn't offer a wide choice of formats, including A4 and many other A* sizes, so what any particular software chooses as its 'default' scarcely matters. To you .. but not for me or for anyone who lives in a country in which non-iso-standard paper (like letter) is simply _not_available_ or costs twice as much as A4. I undertand this may not be a problem for someone who can just man -t man | ps2pdf14 - man_getopt and get a printable pdf that uses the whole page but I have to go zcat `man -w ls` | groff -Tps -dpaper=a4 -P-pa4 -mandoc | ps2pdf - tmp.pdf in order to get a usefull output or use the first method and waste a lot of paper (wasting resources .. wich is something the, we, citizens of the third world can not afford). You're getting my thoughts, man. :-) I'd like to see this happen, too, but I don't think the developers of FreeBSD and all the fine applications will say goodbye to their Letter, Legal, Exec etc. paper formats. A4 isn't a DIN standard anymore, its ISO for many years now, and unlike Letter, it has the ability to be scaled (to half size, to quarter size, to double size) easily. Today, the manual replacement of many different settings is needed to get a system A4 compliant. Greetings from Germany, where A4 is the standard for more than a century now. =^_^= I really hope they do, or at least, start contemplating the fact that ISO standards are usefull as a whole or are not usefull at all .. That's not true at all; there's no 'all or nothing' about standards. What actually works and is adopted in the real world determines that. ISO 216 works (and it has worked ever since it's conception, more than 100 years ago) and is adopted in the real world, except for the US, Mexico and Canada. http://www.cl.cam.ac.uk/~mgk25/iso-paper.html Ask yourself: how come the world uses TCP/IP for internet communications rather than the OSI X.200-X.219 suite? How come we're still using SMTP plus a pile of RFCs to deliver email rather than the X.400-X.420 suite? It became a defacto standard ... Just as
Re: man -t odd page size
On Thursday 23 October 2008 6:50:11 am Polytropon wrote: On Thu, 23 Oct 2008 19:37:56 +1100 (EST), Ian Smith [EMAIL PROTECTED] wrote: Well, a quarter of the people on this planet live in China, so by your theory shouldn't the FreeBSD lists, docs and code all be in Chinese? Let me follow this Micky Mouse Logic. :-) Because the computer has been invented by a German, all computer stuff should be in the german language. And now all the Americans can feel how the average german computer user feels today: scared by all the things he doesn't understand. :-) No, not German, please !! It's really hard :( French and Spanish and way easier ! or Italian ! (just joking :) but seriously .. german is way too hard to :( ) Cheers :) -- Blessings Gonzalo Nemmi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: man -t odd page size
On Thursday 23 October 2008 5:39:36 pm Bob McConnell wrote: On Behalf Of Al Plant Valentin Bud wrote: hello, what do you know about this site: http://www.metricamerica.com/. i don't remember where i have read that America is going to apply the SI (ess eye) unit system. so things are going to change maybe even the A4 papersize. The Metric System has been a legal measure in the United States since the 1860's. There is nothing to stop anybody legally from using it. However, there is one problem. When I go into Staples, Office Depot or Sam's, they only have letter sized paper. I have yet to see a single box of A4 or any other ISO size. Sure, my printers can handle A4, but where can I buy a couple reams of it? Turn it around and that's what happens to the rest of us who do not live in the US or Canada :( I'm not saying get rid of letter / drop letter .. im just proposing to analize the idea that letter is no longer the one and only option available and that defaulting to it has no bad side effects .. A4 affects too many of us .. and having apps defaulting to letter is increasingly becoming a serious shortcoming that should start to be taken into consideration ... at least give us a simple to use flag :( Bob McConnell Ithaca, NY ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Regards -- Blessings Gonzalo Nemmi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: man -t odd page size
On Thu, Oct 23, 2008 at 09:23:10AM -1000, Al Plant wrote: Valentin Bud wrote: hello, what do you know about this site: http://www.metricamerica.com/. i don't remember where i have read that America is going to apply the SI (ess eye) unit system. so things are going to change maybe even the A4 papersize. a good day, v #... Aloha, The Metric System has been a legal measure in the United States since the 1860's. There is nothing to stop anybody legally from using it. Isn't it about time we dump the obsolete 'metric' system based on the paltry base-10 arithmetic and move in to the future with a digitally compatible system based on powers of 2!Divide the day in to 16 hours, 16 minutes per hour, 16 seconds per minute, 16 ??? per second (make up a name), Divide the speed of light by a big power of 2 to get your base measurement of length. Design 6 more digit symbols. Through away some of the dross in plain ASCII and fit them in there. Quit trying to force people to count on their fingers. jerry In many places in the country both are used. Tue US Military uses Metric. The film and Video industry for example. Here in Hawaii the population is very diverse and most people have come from Metric countries. If you have to ever work on maintaining equipment, mechanical or electronic, here in the US, both tool sizes are a must. I had to replace a storage battery yesterday on a clients Japanese Fork Lift and the fasteners were all metric except for one battery terminal clamp. I think the choice by locale for FreeBSD is an excellent solution. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + email: [EMAIL PROTECTED] All that's really worth doing is what we do for others.- Lewis Carrol ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked out of Root
It guarantees that the root password is passed encrypted. So, next time do NOT enable root loging via ssh. Instead, put the non-root user in the wheel group. funny :) jerry if course it's not bright to login as root over telnet through public network, but too - it's not security hole in system, just in administrator's brain if he/she do it this way. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
problems getting server on line
Greetings; I have an existing server running FreeBsd 6.3. It's running as a name/web/mail server. I have built a new server to replace it running FreeBsd 7.0. I have both servers attached to the same router, with the production server sitting in the DMZ. I have tried to switch them over by simply changing which server the DMZ points to. When I did this, the new server didn't work. I could connect to the webserver (telnet to port 80) using either localhost or the private IP address (192.168...), but not using the domain name. I could connect to the default website properly from another computer on the same router using the private ip address. My first guess was that it was the firewall on the server configured incorrectly, so I disabled PF which didn't help. Any suggestions would be very much appreciated. Ray ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Shutting down help
I'm using FreeBSD amd64 8-0-Current I set up window maker to start by startx command, but when I exit the window maker the screen just turns black nothing works so I'm force to unplug the power each time. This happens sometimes other times the terminal shows up and I can shutdown manually. Since I'm using a snapshot version of FreeBSD is this a bug? I'm not sure what logs to copy and paste here for more information. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Trouble Shutting down
I'm using FreeBSD amd64 8-0-Current I set up window maker to start by startx command, but when I exit the window maker the screen just turns black nothing works so I'm force to unplug the power each time. This happens sometimes other times the terminal shows up and I can shutdown manually. Since I'm using a snapshot version of FreeBSD is this a bug? I'm not sure what logs to copy and paste here for more information. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries?
Hello: I have some weird behavior I'm trying to figure out and was wondering if someone can point me in the right direction. I'm running a FreeBSD 6.1-RELEASE-amd64 machine. If I add /usr/lib32 to my LD_LIBRARY_PATH it breaks all of my binaries on my 64-bit machine. For example: [EMAIL PROTECTED] ~]# file /bin/ls /bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped [EMAIL PROTECTED] ~]# ldd /bin/ls /bin/ls: libutil.so.5 = /lib/libutil.so.5 (0x80063) libncurses.so.6 = /lib/libncurses.so.6 (0x80073d000) libc.so.6 = /lib/libc.so.6 (0x800896000) [EMAIL PROTECTED] ~]# ls -l /libexec/ total 306 -r-xr-xr-x 1 root wheel 163864 Aug 21 2007 ld-elf.so.1 -r-xr-xr-x 1 root wheel 146420 Aug 21 2007 ld-elf32.so.1 [EMAIL PROTECTED] ~]# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/bin:/usr/lib:/usr/lib32:/usr/lib64 [EMAIL PROTECTED] ~]# ls /libexec/ld-elf.so.1: /usr/lib32/libutil.so.5: unsupported file layout [EMAIL PROTECTED] ~]# unset LD_LIBRARY_PATH [EMAIL PROTECTED] ~]# ls (normal ls output) [EMAIL PROTECTED] ~]# ls -l /usr/lib/libut* -r--r--r-- 1 root wheel 100518 Aug 21 2007 /usr/lib/libutil.a lrwxrwxrwx 1 root wheel 17 Sep 11 11:44 /usr/lib/libutil.so - /lib/libutil.so.5 -r--r--r-- 1 root wheel 103846 Aug 21 2007 /usr/lib/libutil_p.a [EMAIL PROTECTED] ~]# file /lib/libutil.so.5 /lib/libutil.so.5: ELF 64-bit LSB shared object, AMD x86-64, version 1 (FreeBSD), stripped I would ASSUME that rtld would look at my LD_LIBRARY_PATH and use /usr/lib to find libraries, not /usr/lib32. Why does it insist on picking /usr/lib32 when /bin/ls is CLEARLY a 64-bit binary? This doesn't make complete sense to me just yet. Someone I'm sure is going don't do that and I agree. The issue is I'm porting a library/framework (boost) and it creates a runtime LD_LIBRARY_PATH for its gcc toolchain with the above which breaks the build ROYALLY on FreeBSD 64-bit machine. I'm trying to come up with the right heuristic here. Any help would be much appreciated! Thanks! -aps ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Trouble Shutting down
On Wed, Oct 22, 2008 at 1:42 AM, Juan Ortega [EMAIL PROTECTED] wrote: I'm using FreeBSD amd64 8-0-Current I set up window maker to start by startx command, but when I exit the window maker the screen just turns black nothing works so I'm force to unplug the power each time. This happens sometimes other times the terminal shows up and I can shutdown manually. Since I'm using a snapshot version of FreeBSD is this a bug? I'm not sure what logs to copy and paste here for more information. Do you have the drivers for your graphics card installed? What type of graphics card is this? -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries?
Dag-Erling Smørgrav [EMAIL PROTECTED] writes: If you look at the rtld(1) man page, there are a number of environment variables you can set to debug the loader. I'm not sure how helpful they are, though. You can rebuild rtld(1) with debugging enabled: % cd /usr/src/libexec/rtld-elf % make clean % make DEBUG_FLAGS=-DDEBUG % make install % echo $LD_LIBRARY_PATH /home/des/lib:/opt/varnish/lib:/usr/local/lib % LD_DEBUG=1 /usr/bin/true /libexec/ld-elf.so.1 is initialized, base address = 0x80050 RTLD dynamic = 0x8006305b0 RTLD pltgot = 0x0 processing main program's program header Filling in DT_DEBUG entry lm_init((null)) loading LD_PRELOAD libraries loading needed objects Searching for libc.so.7 Trying /home/des/lib/libc.so.7 Trying /opt/varnish/lib/libc.so.7 Trying /usr/local/lib/libc.so.7 Trying /lib/libc.so.7 loading /lib/libc.so.7 Ignoring d_tag 1879048185 = 0x6ff9 0x80063b000 .. 0x80085efff: /lib/libc.so.7 checking for required versions initializing initial thread local storage relocating /usr/bin/true relocating /lib/libc.so.7 doing copy relocations initializing key program variables __progname: *0x5005e8 -- 0x7fffebc1 environ: *0x500878 -- 0x7fffe9a8 initializing thread locks calling init function for /lib/libc.so.7 at 0x800664da8 __sysctl in libc.so.7 == 0x80071ae00 in libc.so.7 reloc_jmpslot: *0x800845c78 = 0x80071ae00 transferring control to program entry point = 0x400420 atexit in true == 0x8006fac3e in libc.so.7 reloc_jmpslot: *0x500868 = 0x8006fac3e exit in true == 0x8006af118 in libc.so.7 reloc_jmpslot: *0x500860 = 0x8006af118 __cxa_finalize in libc.so.7 == 0x8006fa940 in libc.so.7 reloc_jmpslot: *0x800846140 = 0x8006fa940 rtld_exit() calling fini function for /lib/libc.so.7 at 0x80071ae60 _exit in libc.so.7 == 0x8006cfff0 in libc.so.7 reloc_jmpslot: *0x8008471d8 = 0x8006cfff0 DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries?
Alexander Sack [EMAIL PROTECTED] writes: I have some weird behavior I'm trying to figure out and was wondering if someone can point me in the right direction. I'm running a FreeBSD 6.1-RELEASE-amd64 machine. If I add /usr/lib32 to my LD_LIBRARY_PATH it breaks all of my binaries on my 64-bit machine. [...] LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/bin:/usr/lib:/usr/lib32:/usr/lib64 I'm surprised you have /usr/bin in there... I would ASSUME that rtld would look at my LD_LIBRARY_PATH and use /usr/lib to find libraries, not /usr/lib32. Why does it insist on picking /usr/lib32 when /bin/ls is CLEARLY a 64-bit binary? This doesn't make complete sense to me just yet. If you look at the rtld(1) man page, there are a number of environment variables you can set to debug the loader. I'm not sure how helpful they are, though. Someone I'm sure is going don't do that and I agree. Well, yeah, but it should (at the very least) fail in a more graceful manner. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries?
On Thu, Oct 23, 2008 at 9:23 PM, Dag-Erling Smørgrav [EMAIL PROTECTED] wrote: Dag-Erling Smørgrav [EMAIL PROTECTED] writes: If you look at the rtld(1) man page, there are a number of environment variables you can set to debug the loader. I'm not sure how helpful they are, though. You can rebuild rtld(1) with debugging enabled: % cd /usr/src/libexec/rtld-elf % make clean % make DEBUG_FLAGS=-DDEBUG % make install % echo $LD_LIBRARY_PATH /home/des/lib:/opt/varnish/lib:/usr/local/lib % LD_DEBUG=1 /usr/bin/true /libexec/ld-elf.so.1 is initialized, base address = 0x80050 RTLD dynamic = 0x8006305b0 RTLD pltgot = 0x0 processing main program's program header Filling in DT_DEBUG entry lm_init((null)) loading LD_PRELOAD libraries loading needed objects Searching for libc.so.7 Trying /home/des/lib/libc.so.7 Trying /opt/varnish/lib/libc.so.7 Trying /usr/local/lib/libc.so.7 Trying /lib/libc.so.7 loading /lib/libc.so.7 Ignoring d_tag 1879048185 = 0x6ff9 0x80063b000 .. 0x80085efff: /lib/libc.so.7 checking for required versions initializing initial thread local storage relocating /usr/bin/true relocating /lib/libc.so.7 doing copy relocations initializing key program variables __progname: *0x5005e8 -- 0x7fffebc1 environ: *0x500878 -- 0x7fffe9a8 initializing thread locks calling init function for /lib/libc.so.7 at 0x800664da8 __sysctl in libc.so.7 == 0x80071ae00 in libc.so.7 reloc_jmpslot: *0x800845c78 = 0x80071ae00 transferring control to program entry point = 0x400420 atexit in true == 0x8006fac3e in libc.so.7 reloc_jmpslot: *0x500868 = 0x8006fac3e exit in true == 0x8006af118 in libc.so.7 reloc_jmpslot: *0x500860 = 0x8006af118 __cxa_finalize in libc.so.7 == 0x8006fa940 in libc.so.7 reloc_jmpslot: *0x800846140 = 0x8006fa940 rtld_exit() calling fini function for /lib/libc.so.7 at 0x80071ae60 _exit in libc.so.7 == 0x8006cfff0 in libc.so.7 reloc_jmpslot: *0x8008471d8 = 0x8006cfff0 DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] Thanks, comments most appreciated. Damn, I was looking for someone to go a ha, you can't do this because Alright, let me see why rtld on 6.1-amd64 is picking up /usr/lib32 stuff for a native 64-bit binary via debugging techniques. This seems very very wrong to me. I mean if /usr/lib is in my LD_LIBRARY_PATH and it comes before /usr/lib the /usr/lib32 *should* be innocuous, right? Feel free to use that last statement on my epitaph! :D -aps ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries?
Alright, well I found some weirdness: [EMAIL PROTECTED] ~]# export LD_LIBRARY_PATH=/usr/bin:/usr/lib:/usr/lib32:/usr/lib64 [EMAIL PROTECTED] ~]# LD_DEBUG=1 ls /libexec/ld-elf.so.1 is initialized, base address = 0x800506000 RTLD dynamic = 0x80062ad78 RTLD pltgot = 0x0 processing main program's program header Filling in DT_DEBUG entry lm_init((null)) loading LD_PRELOAD libraries loading needed objects Searching for libutil.so.5 Trying /usr/bin/libutil.so.5 Trying /usr/lib/libutil.so.5 Trying /usr/lib32/libutil.so.5 loading /usr/lib32/libutil.so.5 /libexec/ld-elf.so.1: /usr/lib32/libutil.so.5: unsupported file layout That's because libutil.so.5 does not exist in /usr/lib only in /lib. The /usr/lib directory has: [EMAIL PROTECTED] ~]# ls -l /usr/lib/libutil* -r--r--r-- 1 root wheel 100518 Aug 21 2007 /usr/lib/libutil.a lrwxrwxrwx 1 root wheel 17 Sep 11 11:44 /usr/lib/libutil.so - /lib/libutil.so.5 -r--r--r-- 1 root wheel 103846 Aug 21 2007 /usr/lib/libutil_p.a So rtld is looking for major number 5 of libutil, without the standard /lib in my LD_LIBRARY_PATH it searches /usr/lib, doesn't find it but: [EMAIL PROTECTED] ~]# ls -l /usr/lib32/libutil* -r--r--r-- 1 root wheel 65274 Aug 21 2007 /usr/lib32/libutil.a lrwxrwxrwx 1 root wheel 12 Sep 11 11:45 /usr/lib32/libutil.so - libutil.so.5 -r--r--r-- 1 root wheel 46872 Aug 21 2007 /usr/lib32/libutil.so.5 -r--r--r-- 1 root wheel 66918 Aug 21 2007 /usr/lib32/libutil_p.a And whalah, I'm broke since there is a libutil.so.5 in there. So my question to anyone out there, WHY does /usr/lib32 contain major numbers but /usr/lib does not? This seems like a bug to me (FreeBSD 7.0-RELEASE is the same) or at least a dubious design decision. Thanks! -aps ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries?
On Thu, Oct 23, 2008 at 10:09 PM, Alexander Kabaev [EMAIL PROTECTED] wrote: On Thu, 23 Oct 2008 21:48:47 -0400 Alexander Sack [EMAIL PROTECTED] wrote: Thanks, comments most appreciated. Damn, I was looking for someone to go a ha, you can't do this because Alright, let me see why rtld on 6.1-amd64 is picking up /usr/lib32 stuff for a native 64-bit binary via debugging techniques. This seems very very wrong to me. I mean if /usr/lib is in my LD_LIBRARY_PATH and it comes before /usr/lib the /usr/lib32 *should* be innocuous, right? Feel free to use that last statement on my epitaph! :D LD_LIBRARY_PATH is for native 64bit rtld. If you want a specific path added for use by 32-bit ld-elf.so.1 only, use LD_32_LIBRARY_PATH. Said that, your problem is likely caused by the fact that there is no /lib32, only /usr/lib32. So if 64-bit library lives in /lib, your LD_LIBRARY_PATH will cause loader to find its 32-bit equivalent in /usr/lib32 first. Try LD_LIBRARY_PATH=/lib:/usr/lib:/usr/lib32:/usr/lib64 for better results. Yes I figured that out on my own but my question still exists, why isn't /usr/lib similar in format to /usr/lib32 though with respect to major numbers? Actually now that I re-read your paragraph I suppose this isn't such a bad idea but for some reason I believe that if you have /usr/lib before /usr/lib32 it should *just* work. -aps ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries?
On Thu, 23 Oct 2008 21:48:47 -0400 Alexander Sack [EMAIL PROTECTED] wrote: Thanks, comments most appreciated. Damn, I was looking for someone to go a ha, you can't do this because Alright, let me see why rtld on 6.1-amd64 is picking up /usr/lib32 stuff for a native 64-bit binary via debugging techniques. This seems very very wrong to me. I mean if /usr/lib is in my LD_LIBRARY_PATH and it comes before /usr/lib the /usr/lib32 *should* be innocuous, right? Feel free to use that last statement on my epitaph! :D LD_LIBRARY_PATH is for native 64bit rtld. If you want a specific path added for use by 32-bit ld-elf.so.1 only, use LD_32_LIBRARY_PATH. Said that, your problem is likely caused by the fact that there is no /lib32, only /usr/lib32. So if 64-bit library lives in /lib, your LD_LIBRARY_PATH will cause loader to find its 32-bit equivalent in /usr/lib32 first. Try LD_LIBRARY_PATH=/lib:/usr/lib:/usr/lib32:/usr/lib64 for better results. -- Alexander Kabaev signature.asc Description: PGP signature
Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries?
On Thu, 23 Oct 2008 22:31:40 -0400 Alexander Sack [EMAIL PROTECTED] wrote: Yes I figured that out on my own but my question still exists, why isn't /usr/lib similar in format to /usr/lib32 though with respect to major numbers? Actually now that I re-read your paragraph I suppose this isn't such a bad idea but for some reason I believe that if you have /usr/lib before /usr/lib32 it should *just* work. trimmed hackers@ from CC as this question does not belong there The last statement is as wrong as it gets. I tried but I still fail to see the reason why you would possibly expect that to work reliably. By setting LD_LIBRARY_PATH to /usr/lib:/usr/lib32, you cause dynamic linker to look for libraries in /usr/lib, usr/lib32 and /lib in that exact order, so if library in /usr/lib32 shadows one in /lib, it will be rightly picked up and you will get exactly what you asked for. -- Alexander Kabaev signature.asc Description: PGP signature
Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries?
On Thu, 23 Oct 2008, Alexander Sack wrote: Alright, well I found some weirdness: [EMAIL PROTECTED] ~]# export LD_LIBRARY_PATH=/usr/bin:/usr/lib:/usr/lib32:/usr/lib64 [EMAIL PROTECTED] ~]# LD_DEBUG=1 ls /libexec/ld-elf.so.1 is initialized, base address = 0x800506000 RTLD dynamic = 0x80062ad78 RTLD pltgot = 0x0 processing main program's program header Filling in DT_DEBUG entry lm_init((null)) loading LD_PRELOAD libraries loading needed objects Searching for libutil.so.5 Trying /usr/bin/libutil.so.5 Trying /usr/lib/libutil.so.5 Trying /usr/lib32/libutil.so.5 loading /usr/lib32/libutil.so.5 /libexec/ld-elf.so.1: /usr/lib32/libutil.so.5: unsupported file layout That's because libutil.so.5 does not exist in /usr/lib only in /lib. The /usr/lib directory has: [EMAIL PROTECTED] ~]# ls -l /usr/lib/libutil* -r--r--r-- 1 root wheel 100518 Aug 21 2007 /usr/lib/libutil.a lrwxrwxrwx 1 root wheel 17 Sep 11 11:44 /usr/lib/libutil.so - /lib/libutil.so.5 -r--r--r-- 1 root wheel 103846 Aug 21 2007 /usr/lib/libutil_p.a So rtld is looking for major number 5 of libutil, without the standard /lib in my LD_LIBRARY_PATH it searches /usr/lib, doesn't find it but: [EMAIL PROTECTED] ~]# ls -l /usr/lib32/libutil* -r--r--r-- 1 root wheel 65274 Aug 21 2007 /usr/lib32/libutil.a lrwxrwxrwx 1 root wheel 12 Sep 11 11:45 /usr/lib32/libutil.so - libutil.so.5 -r--r--r-- 1 root wheel 46872 Aug 21 2007 /usr/lib32/libutil.so.5 -r--r--r-- 1 root wheel 66918 Aug 21 2007 /usr/lib32/libutil_p.a And whalah, I'm broke since there is a libutil.so.5 in there. So my question to anyone out there, WHY does /usr/lib32 contain major numbers but /usr/lib does not? This seems like a bug to me (FreeBSD 7.0-RELEASE is the same) or at least a dubious design decision. I think the distinction is this. rtld is looking for libutil.so.5 (with version number). This file has to be in /lib, in the root filesystem, so that programs can run before /usr is mounted. libutil.so on the other hand is not searched for by rtld, but by ld (driven by cc), when the program is built. /usr/lib is the traditional place for it to search; I'm not sure if it searches /lib at all. In the case of static libraries, /usr/lib is certainly the right place for libutil.a to go, so having libutil.so there makes sense in my mind. I think your best bet is to dig into whatever is setting LD_LIBRARY_PATH and get it set correctly. Remove /usr/lib32 or at least ensure that /lib is searched first. Trying to change rtld's behavior is not the right approach, IMHO. -- Nate Eldredge [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries?
In the last episode (Oct 23), Alexander Sack said: On Thu, Oct 23, 2008 at 10:09 PM, Alexander Kabaev [EMAIL PROTECTED] wrote: LD_LIBRARY_PATH is for native 64bit rtld. If you want a specific path added for use by 32-bit ld-elf.so.1 only, use LD_32_LIBRARY_PATH. Said that, your problem is likely caused by the fact that there is no /lib32, only /usr/lib32. So if 64-bit library lives in /lib, your LD_LIBRARY_PATH will cause loader to find its 32-bit equivalent in /usr/lib32 first. Try LD_LIBRARY_PATH=/lib:/usr/lib:/usr/lib32:/usr/lib64 for better results. Yes I figured that out on my own but my question still exists, why isn't /usr/lib similar in format to /usr/lib32 though with respect to major numbers? Ever since the switch from static to dynamic-linked /bin and /sbin, some shared libraries are needed during the boot process. Those libraries live in /lib, and since there are no 32-bit binaries required to boot a 64-bit system, there is no need for a /lib32. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Upgrading 7.1-PRERELEASE
I'm running 7.1-PRERELEASE. Yesterday I csup'ed and upgraded as I've done several times in order to install 7.1-BETA2. Everything went as it should, but my system still says 7.1-PRERELEASE. In my stable-supfile I have *default release=cvs tag=RELENG_7. Can anyone tell me where I can make sure that my system upgrades to BETA-2? Thank you /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading 7.1-PRERELEASE
On Fri, Oct 24, 2008 at 06:24:56AM +0200, Leslie Jensen wrote: I'm running 7.1-PRERELEASE. Yesterday I csup'ed and upgraded as I've done several times in order to install 7.1-BETA2. Everything went as it should, but my system still says 7.1-PRERELEASE. In my stable-supfile I have *default release=cvs tag=RELENG_7. Can anyone tell me where I can make sure that my system upgrades to BETA-2? You are essentially running BETA2, with even newer fixes since the BETA2 release. You should stay with the RELENG_7 tag. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading 7.1-PRERELEASE
Jeremy Chadwick skrev: On Fri, Oct 24, 2008 at 06:24:56AM +0200, Leslie Jensen wrote: I'm running 7.1-PRERELEASE. Yesterday I csup'ed and upgraded as I've done several times in order to install 7.1-BETA2. Everything went as it should, but my system still says 7.1-PRERELEASE. In my stable-supfile I have *default release=cvs tag=RELENG_7. Can anyone tell me where I can make sure that my system upgrades to BETA-2? You are essentially running BETA2, with even newer fixes since the BETA2 release. You should stay with the RELENG_7 tag. Thanks Jeremy I thought that the uname tag would change to BETA-2 /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Printing to a Lanier LD160c does not work
El Jue 16 Oct 2008, Jeremy Chadwick escribió: On Thu, Oct 16, 2008 at 08:36:42PM +, [EMAIL PROTECTED] wrote: I am trying to setup a Lanier LD160c (admincolor) that has a network interface. I am new to FreeBSD and tried to follow the handbook. I am able to print to a HP 5SI (corp-admin) with no problems. There are no errors in the lpd-errs and the file is drained from the queue, but the printer does not print anything. And this is a working printer to Windows. lpr -P admincolor testfile.txt printcap: corp-admin|hp|laserjet|Hewlett Packard LaserJet 5Si:\ :lp=\ :sd=/var/spool/output/corp-admin:rm=corp-admin:\ :lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/crlfilter:sh:tr=\f:mx#0: admincolor|hp|laserjet|LANIER LD160c RPCS:\ :lp=\ :sd=/var/spool/output/admincolor:rm=admincolor:\ :lf=/var/log/lpd-errs: If this printer is hooked up on the network (e.g. via Ethernet), I believe you need to set the lp variable to the hostname or IP address of the printer, e.g.: admincolor|hp|laserjet|LANIER LD160c RPCS:\ :lp=192.168.1.100\ :sd=/var/spool/output/admincolor:rm=admincolor:\ :lf=/var/log/lpd-errs: Negative, leave the lp capability blank, explicitly (:lp=:). http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html#PRINTING-ADVANCED-NETWORK-RM ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Extract Songs from DVD
Polytropon wrote: On Thu, 23 Oct 2008 02:35:25 -0400, John L. Templer [EMAIL PROTECTED] wrote: Polytropon wrote: % dd if=/dev/acd0t01 of=track01.cdr bs=2352 Very cool! I have a few questions though. I notice this doesn't work for my Plextor CD writer. What, dd doesn't work from Plextor writer? I had (or, still have) a Plextor CD writer which is SCSI, so I just have to change the command in order to read from the correct device, which is /dev/cd0 for the first SCSI CD drive: % dd if=/dev/cd0t01 of=track01.cdr bs=2352 Of course, you would have to change other commands in order to get this correct, for example: % cdcontrol -f /dev/cd0 info I assume this is because CD and DVD drives have different drivers? Maybe, but I think these basic things rely on the same commands internally. Also, does this use libparanoia or something similar to extract recalcitrant tracks? No, dd reads block-wise. There's dd_rescue which is able to read from defectively manufactured media (we call them Un-CDs or Un-DVDs in Germany). Another option, by the way, is to use cdrdao. It has the read command in combination with a paranoia level switch which can be adjusted in order to read mentioned media. As far as I remember, you need to have the atapicam facility in your kernel (custom compile kernel or module) in order to access ATAPI devices just like SCSI devices. % camcontrol devlist will then show you which device equals /dev/cd0, e. g. 0,0,0 (1st SCSI controller, 1st device, 1st LUN). If I did misunderstand the question, just post another one. :-) (English is not my native language.) Actually, I was referring to having individual device files for each track on the CD. When I put an audio CD in the Plexwriter CD writer, it doesn't create the device files for the tracks. However when I put it in the DVD reader it does create acd0t01 through acd0t11, or however many tracks are on the CD. My Plexwriter is SCSI, but the DVD drives are IDE. Under Solaris x86 or Ubuntu Linux I have to use an application like cdrecord or soundjuicer to extract the audio tracks. These applications bypass the device files and go straight to the SCSI interface layer. libparanoia is a library that handles the tricky bits of reading the data off the CD. Just using dd to copy the data from the device file often results in corrupted data. I was wondering if the BSD kernel (or devd or whatever) uses a similar method of handling all the different variations that audio format CDs have. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Printing to a Lanier LD160c does not work
On Thu, Oct 23, 2008 at 09:42:41PM -0700, Martin Alejandro Paredes Sanchez wrote: El Jue 16 Oct 2008, Jeremy Chadwick escribió: On Thu, Oct 16, 2008 at 08:36:42PM +, [EMAIL PROTECTED] wrote: I am trying to setup a Lanier LD160c (admincolor) that has a network interface. I am new to FreeBSD and tried to follow the handbook. I am able to print to a HP 5SI (corp-admin) with no problems. There are no errors in the lpd-errs and the file is drained from the queue, but the printer does not print anything. And this is a working printer to Windows. lpr -P admincolor testfile.txt printcap: corp-admin|hp|laserjet|Hewlett Packard LaserJet 5Si:\ :lp=\ :sd=/var/spool/output/corp-admin:rm=corp-admin:\ :lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/crlfilter:sh:tr=\f:mx#0: admincolor|hp|laserjet|LANIER LD160c RPCS:\ :lp=\ :sd=/var/spool/output/admincolor:rm=admincolor:\ :lf=/var/log/lpd-errs: If this printer is hooked up on the network (e.g. via Ethernet), I believe you need to set the lp variable to the hostname or IP address of the printer, e.g.: admincolor|hp|laserjet|LANIER LD160c RPCS:\ :lp=192.168.1.100\ :sd=/var/spool/output/admincolor:rm=admincolor:\ :lf=/var/log/lpd-errs: Negative, leave the lp capability blank, explicitly (:lp=:). http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html#PRINTING-ADVANCED-NETWORK-RM Then the printcap(5) man page should reflect this; the existing explanations for both fields are painfully terse. lp str /dev/lpdevice name to open for output, or [EMAIL PROTECTED] to open a TCP socket rm str NULL machine name for remote printer I can file a PR (to doc) on this if recommended. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading 7.1-PRERELEASE
On Fri, Oct 24, 2008 at 06:41:05AM +0200, Leslie Jensen wrote: Jeremy Chadwick skrev: On Fri, Oct 24, 2008 at 06:24:56AM +0200, Leslie Jensen wrote: I'm running 7.1-PRERELEASE. Yesterday I csup'ed and upgraded as I've done several times in order to install 7.1-BETA2. Everything went as it should, but my system still says 7.1-PRERELEASE. In my stable-supfile I have *default release=cvs tag=RELENG_7. Can anyone tell me where I can make sure that my system upgrades to BETA-2? You are essentially running BETA2, with even newer fixes since the BETA2 release. You should stay with the RELENG_7 tag. Thanks Jeremy I thought that the uname tag would change to BETA-2 I sincerely do not know where BETA2 (not BETA-2) comes from. It's not defined anywhere in src/sys/conf/newvers.sh in CVS: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/conf/newvers.sh To me, this means someone is hand-hacking the file before making ISO releases. The problem with this is there's no way to correlate what CVS tag said string is based on; I have to assume it's RELENG_7. CC'ing Ken, who can probably explain where BETA2 comes from, since I believe he's the one who makes the builds. opinion I really wish we'd name our not-yet-RELEASE-or-STABLE ISO releases as FreeBSD x.y-PRERELEASE-MMDD, which would make more sense to users. /opinion -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading 7.1-PRERELEASE
Jeremy Chadwick skrev: On Fri, Oct 24, 2008 at 06:41:05AM +0200, Leslie Jensen wrote: Jeremy Chadwick skrev: On Fri, Oct 24, 2008 at 06:24:56AM +0200, Leslie Jensen wrote: I'm running 7.1-PRERELEASE. Yesterday I csup'ed and upgraded as I've done several times in order to install 7.1-BETA2. Everything went as it should, but my system still says 7.1-PRERELEASE. In my stable-supfile I have *default release=cvs tag=RELENG_7. Can anyone tell me where I can make sure that my system upgrades to BETA-2? You are essentially running BETA2, with even newer fixes since the BETA2 release. You should stay with the RELENG_7 tag. Thanks Jeremy I thought that the uname tag would change to BETA-2 I sincerely do not know where BETA2 (not BETA-2) comes from. It's not defined anywhere in src/sys/conf/newvers.sh in CVS: I got it from here http://lists.freebsd.org/pipermail/freebsd-stable/2008-October/046037.html /Leslie http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/conf/newvers.sh To me, this means someone is hand-hacking the file before making ISO releases. The problem with this is there's no way to correlate what CVS tag said string is based on; I have to assume it's RELENG_7. CC'ing Ken, who can probably explain where BETA2 comes from, since I believe he's the one who makes the builds. opinion I really wish we'd name our not-yet-RELEASE-or-STABLE ISO releases as FreeBSD x.y-PRERELEASE-MMDD, which would make more sense to users. /opinion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]