Announcing: FreeBSD Custom XFCE ISO (take II)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey all, This is a continuation of the effort that started with this post: http://lists.freebsd.org/pipermail/freebsd-questions/2009-May/198284.html This little project also found its way to Distrowatch Weekly news (Thanks!): http://distrowatch.com/weekly.php?issue=20090615#news Since there was an update of the base system to 7.2-RELEASE-p1 a few days ago, it was a good chance to update this ISO and also include some newer packages. The new ISO may be downloaded from here (space and bandwidth courtesy of Glen Barber): http://freebsd.dev-urandom.com/iso/i386/xfce-desktop/7.2-RELEASE-p1-i386-disc1.iso Don't forget to check the integrity of the download using the CHECKSUM / signature files provided: http://freebsd.dev-urandom.com/iso/i386/xfce-desktop/7.2-RELEASE-p1-i386-disc1-iso.CHECKSUM.MD5 http://freebsd.dev-urandom.com/iso/i386/xfce-desktop/7.2-RELEASE-p1-i386-disc1.iso.asc The following tarball contains the options used to build the ports. The ports tree on the ISO is the actual one used to build the packages: http://freebsd.dev-urandom.com/iso/i386/xfce-desktop/options.tar.gz Note: Updated openoffice.org packages (from the same ports tree) will follow soon. Changes from the previous version == - - Wbar was removed. The package would install without problems but did not run. Please install this from ports. - - Some other small apps were introduced. See below. - - Base system was updated to 7.2-RELEASE-p1 - - Ports that use python now use python26. This was not done intentionally, the tinderbox built them that way. It delayed me however as the INDEX file (required in the release process) was still pointing to python25 dependencies and was causing errors. List of main packages == This is a comprehensive list of packages included in the ISO: abiword, archivers (zip, unzip, rar, unrar) bash, bluefish, cdrtools, dvd+rw-tools, evince, firefox3, gimp, gnash, gnumeric, gnupg, inkscape, mercurial, pkg_rmleaves, portaudit, portupgrade, rdesktop, rtorrent, ristretto, samba, scribus, sudo, thunderbird, tilda, wget, xfburn, xfce4 + plugins, xorg, zim. Several other packages are included as dependencies of the above top level ones. The total list of packages is 496. There are no conflicts between them, you may even install all of them during the initial setup or afterwards. I will start preparing a server ISO (CD sized) soon. I also welcome all ideas on what to include/exclude in later versions of this DVD. It has been suggested to include openoffice packages as abiword / gnumeric don't cut it for many people. This will increase the size of the download, although hopefully not dramatically as most dependencies are probably already included. I am all open to ideas, so please email me your suggestions and comments. Thanks, Manolis Kiagias -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAko3OA4ACgkQZ/MxGm4PtJRuvgCfYcOTk2whTnOekRqrBMJYjWZ3 tOcAnRF2Y1E14T/zFGOMBJk+v46tz2AN =VfqE -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with certain fonts when printing from firefox
El día Monday, June 15, 2009 a las 01:06:37PM -0800, Mel Flynn escribió: Yes: portmaster /usr/ports/x11-fonts/webfonts or make -C /usr/ports/x11- fonts/webfonts/ install Follow the instructions from the pkg-message (allthough I don't think they're needed anymore with automatic configuration, but it don't hurt if you already have an xorg.conf). Restart X for the fonts to be usable or you can use xset +fp /usr/local/lib/X11/fonts/webfonts and restart the app you want to use the fonts in. Easiest way to check if the fonts are enabled is to pull up any font selector for an application and checking for Andale Mono and Arial black in the list. Mel, The postinstall instructions of x11-fonts/webfonts say: ... Make sure that the freetype module is loaded. If it is not, add the following line to the Modules section of xorg.conf or XF86Config: Load freetype Add the following line to the Files section of xorg.conf or XF86Config: FontPath /usr/local/lib/X11/fonts/webfonts/ === Registering installation for webfonts-0.30_6 but the module freetype does not exist: (II) LoadModule: freetype (WW) Warning, couldn't open module freetype (II) UnloadModule: freetype (EE) Failed to load module freetype (module does not exist, 0) and there are posts in Google that this is not needed anymore because it is now parts of libXfont -- what is true? If so someone should fix the postinstall messages... matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cannot login as root, exited on signal 11
On Mon, Jun 15, 2009 at 02:37:54PM -0400, Glen Barber typed: On Mon, Jun 15, 2009 at 9:27 AM, Ruben de Grootmai...@bzerk.org wrote: If so, reboot into single-user mode, and change it back. Why reboot? You can su -s /bin/tcsh How can you change the shell if you cannot log in? That's why I suggested single-user mode. He said he could log in as a normal user. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cannot login as root, exited on signal 11
--- On Tue, 6/16/09, Ruben de Groot mai...@bzerk.org wrote: From: Ruben de Groot mai...@bzerk.org Subject: Re: Cannot login as root, exited on signal 11 To: Glen Barber glen.j.bar...@gmail.com Cc: Unga unga...@yahoo.com, freebsd-questions@freebsd.org Date: Tuesday, June 16, 2009, 4:06 PM On Mon, Jun 15, 2009 at 02:37:54PM -0400, Glen Barber typed: On Mon, Jun 15, 2009 at 9:27 AM, Ruben de Grootmai...@bzerk.org wrote: If so, reboot into single-user mode, and change it back. Why reboot? You can su -s /bin/tcsh How can you change the shell if you cannot log in? That's why I suggested single-user mode. He said he could log in as a normal user. Yes, normal users can log in. Its only root cannot. Normal user, after log in, can su to root but su -l develops the same problem, the child process die. All users use bash shell. What is su -l requires that su doesn't? Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
port misc/e2fsprogs-libuuid - relocation error with gcc44
on FBSD-6.4-stable alpha, if I build port misc/e2fsprogs with gcc44, I get: # xdm /libexec/ld-elf.so.1: /usr/local/lib/libuuid.so.1: Unsupported relocation type 3 1 in non-PLT relocations # The default system compiler gcc3.4.6 is fine. Please advise many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
ipmon-like tool for ipfw
Hi, I' ve being searching but found no direct way to monitor indivitually logged entries of ipfw in real time. Something like ipmon from ipf. From the ipfw --option command i get only summaries. How do i get real time logs on my screen? Thanks in advance ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
java jre
Hello, I'm having a problem getting java to work on Firefox 2. diablo-jre16 latest version is installed. After about:plugins it doesn't show. Manual says to enter this as root, and so I do that. ln -s /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \ /usr/local/lib/browser_plugins/ Then I get -- File exists !! I'm running 7.2 stable gnome2 Anyone encountered this problem too? Regards, Roy. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Problem with bash script
I am attempting to write a simple Bash script that will find all the '*.pem' files in a directory structure and move them to another directory. It seems to work until I get to the copy part where it fails. My scripting skills are not that good. Perhaps someone could tell me what I am doing wrong. This is the script: #! /usr/bin/env bash # Save the field separator oIFS=$IFS # Set it to line breaks IFS=$'\n' for i in $(find ./ -name *.pem -print); do # Get the basename BN=$(basename $i) # copy the file to another directory using the base name cp $i /usr/home/tmp/$BN done # Reset the IFS variable IFS=$oIFS exit -- Carmel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with bash script
Hi, Am Dienstag, 16. Jun 2009, 09:09:09 -0400 schrieb Carmel NY: [...] It seems to work until I get to the copy part where it fails. My scripting skills are not that good. Perhaps someone could tell me what I am doing wrong. # copy the file to another directory using the base name cp $i /usr/home/tmp/$BN Please provide the error message next time. I guess the filenames contain spaces. Try cp $i /usr/home/tmp/$BN Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with bash script
Hi Carmel On Wed, Jun 17, 2009 at 8:39 AM, Carmel NY carmel...@hotmail.com wrote: I am attempting to write a simple Bash script that will find all the '*.pem' files in a directory structure and move them to another directory. It seems to work until I get to the copy part where it fails. My scripting skills are not that good. Perhaps someone could tell me what I am doing wrong. This is the script: #! /usr/bin/env bash # Save the field separator oIFS=$IFS # Set it to line breaks IFS=$'\n' for i in $(find ./ -name *.pem -print); do # Get the basename BN=$(basename $i) # copy the file to another directory using the base name cp $i /usr/home/tmp/$BN done # Reset the IFS variable IFS=$oIFS exit -- Carmel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Why you don't use exec flag of find ? You could use: $ find ./ -name *.pem -exec cp {} /usr/home/tmp/something \; Regards Moises Castellanos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with bash script
$ find ./ -name *.pem -exec cp {} /usr/home/tmp/something \; I'm a novice with shell scripting myself, but what's the difference between that code and some variant thereof using a pipe and xargs? Are they simply two different ways of achieving the same result? Or is there some more important difference I may be overlooking? Thanks, Daniel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cannot login as root, exited on signal 11
su -l discards the previous environment and loads a new environment. It's as if you're logging in as root (-l) running su without -l will elevate your priveledges without this same problem, you keep the same shell. Fix your shell problems via this way (or single user as originally described), and be careful next time. --TJ On 6/16/09, Unga unga...@yahoo.com wrote: --- On Tue, 6/16/09, Ruben de Groot mai...@bzerk.org wrote: From: Ruben de Groot mai...@bzerk.org Subject: Re: Cannot login as root, exited on signal 11 To: Glen Barber glen.j.bar...@gmail.com Cc: Unga unga...@yahoo.com, freebsd-questions@freebsd.org Date: Tuesday, June 16, 2009, 4:06 PM On Mon, Jun 15, 2009 at 02:37:54PM -0400, Glen Barber typed: On Mon, Jun 15, 2009 at 9:27 AM, Ruben de Grootmai...@bzerk.org wrote: If so, reboot into single-user mode, and change it back. Why reboot? You can su -s /bin/tcsh How can you change the shell if you cannot log in? That's why I suggested single-user mode. He said he could log in as a normal user. Yes, normal users can log in. Its only root cannot. Normal user, after log in, can su to root but su -l develops the same problem, the child process die. All users use bash shell. What is su -l requires that su doesn't? Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ipmon-like tool for ipfw
In the last episode (Jun 16), oxy said: I've being searching but found no direct way to monitor indivitually logged entries of ipfw in real time. Something like ipmon from ipf. From the ipfw --option command i get only summaries. How do i get real time logs on my screen? If you set the sysctl net.inet.ip.fw.verbose=1, then any ipfw rule with the log flag on it will get logged via syslog to /var/log/security. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with bash script
On Tue, 16 Jun 2009 15:56:15 +0200 Bertram Scharpf li...@bertram-scharpf.de wrote: Hi, Am Dienstag, 16. Jun 2009, 09:09:09 -0400 schrieb Carmel NY: [...] It seems to work until I get to the copy part where it fails. My scripting skills are not that good. Perhaps someone could tell me what I am doing wrong. # copy the file to another directory using the base name cp $i /usr/home/tmp/$BN Please provide the error message next time. I guess the filenames contain spaces. Try cp $i /usr/home/tmp/$BN Bertram I am an idiot. The problem was that the directory did not exist. It was suppose to be $HOME/tmp/$BN. However, I rarely use find and was not aware of the '-exec' function. I use that and it worked fine. Thanks to everyone for their assistance. -- Carmel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with bash script
--On Tuesday, June 16, 2009 08:09:09 -0500 Carmel NY carmel...@hotmail.com wrote: I am attempting to write a simple Bash script that will find all the '*.pem' files in a directory structure and move them to another directory. It seems to work until I get to the copy part where it fails. My scripting skills are not that good. Perhaps someone could tell me what I am doing wrong. This is the script: # ! /usr/bin/env bash # Save the field separator oIFS=$IFS # Set it to line breaks IFS=$'\n' for i in $(find ./ -name *.pem -print); do # Get the basename BN=$(basename $i) # copy the file to another directory using the base name cp $i /usr/home/tmp/$BN done # Reset the IFS variable IFS=$oIFS exit When I write scripts, I test them on the commandline to see if they're doing what I think they're doing. I don't get the $(find ) construction. You're invoking find from within a for loop to return a value. Use backticks. This works. for i in `find ./ -name *.pem -print` do foo bar done -- Paul Schmehl (pa...@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/
Re: Cannot login as root, exited on signal 11
--- On Tue, 6/16/09, Tim Judd taj...@gmail.com wrote: From: Tim Judd taj...@gmail.com Subject: Re: Cannot login as root, exited on signal 11 To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org, mai...@bzerk.org Date: Tuesday, June 16, 2009, 10:10 PM su -l discards the previous environment and loads a new environment. It's as if you're logging in as root (-l) running su without -l will elevate your priveledges without this same problem, you keep the same shell. Fix your shell problems via this way (or single user as originally described), and be careful next time. Hi Tim, thanks for the reply. I have not identified yet the problem to be solved. If you refer that I use bash for root is the problem, there is no difference by switching root's shell to sh. With sh as the shell for root: 1. Still cannot login as root from the console. Child process died error. 2. su -l doesn't work, child process died error. 3. su works. But the prompt is [...@host name]# Why it doesn't print r...@host? whoami shows root. What is the problem you think that I should fix? any ideas? any thread related error as the child process die when in root? Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with bash script
On Tue, Jun 16, 2009 at 02:33:37PM +, Paul Schmehl wrote: --On Tuesday, June 16, 2009 08:09:09 -0500 Carmel NY carmel...@hotmail.com wrote: I am attempting to write a simple Bash script that will find all the '*.pem' files in a directory structure and move them to another directory. It seems to work until I get to the copy part where it fails. My scripting skills are not that good. Perhaps someone could tell me what I am doing wrong. This is the script: # ! /usr/bin/env bash # Save the field separator oIFS=$IFS # Set it to line breaks IFS=$'\n' for i in $(find ./ -name *.pem -print); do # Get the basename BN=$(basename $i) # copy the file to another directory using the base name cp $i /usr/home/tmp/$BN done # Reset the IFS variable IFS=$oIFS exit When I write scripts, I test them on the commandline to see if they're doing what I think they're doing. I don't get the $(find ) It does exactly the same as `command -a rgs`, but all characters between the parentheses are taken literally (in the backtick form, certain chars have special meaning, but not in the $() form.) construction. You're invoking find from within a for loop to return a value. Use backticks. This works. for i in `find ./ -name *.pem -print` do foo bar done It also works with the $() form, provided the target directory exists! Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgp7aBx5Ctfjr.pgp Description: PGP signature
Re: Cannot login as root, exited on signal 11
On Tue, Jun 16, 2009 at 11:11 AM, Ungaunga...@yahoo.com wrote: --- On Tue, 6/16/09, Tim Judd taj...@gmail.com wrote: From: Tim Judd taj...@gmail.com Subject: Re: Cannot login as root, exited on signal 11 To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org, mai...@bzerk.org Date: Tuesday, June 16, 2009, 10:10 PM su -l discards the previous environment and loads a new environment. It's as if you're logging in as root (-l) running su without -l will elevate your priveledges without this same problem, you keep the same shell. Fix your shell problems via this way (or single user as originally described), and be careful next time. Hi Tim, thanks for the reply. I have not identified yet the problem to be solved. If you refer that I use bash for root is the problem, there is no difference by switching root's shell to sh. With sh as the shell for root: 1. Still cannot login as root from the console. Child process died error. 2. su -l doesn't work, child process died error. 3. su works. But the prompt is [...@host name]# Why it doesn't print r...@host? whoami shows root. What is the problem you think that I should fix? any ideas? any thread related error as the child process die when in root? What have you recently changed on the system? What did you do / were you doing right before you could no longer log in as root? When was the last time you checked your system for malware? security/rkhunter may be a good idea. -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cannot login as root, exited on signal 11
Unga unga...@yahoo.com writes: If you refer that I use bash for root is the problem, there is no difference by switching root's shell to sh. With sh as the shell for root: 1. Still cannot login as root from the console. Child process died error. 2. su -l doesn't work, child process died error. 3. su works. But the prompt is [...@host name]# Why it doesn't print r...@host? whoami shows root. What is the problem you think that I should fix? any ideas? any thread related error as the child process die when in root? Another thing to check is the login files. For /bin/sh, I think that would be /etc/profile, /root/.profile, anything that ENV might be set to. -- 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 freebsd-questions-unsubscr...@freebsd.org
Re: feedback, comments on this php-delimiter scrubbing program?
On Mon, Jun 15, 2009 at 06:57:45PM -0800, Mel Flynn wrote: On Monday 15 June 2009 17:21:16 Gary Kline wrote: Encl: dephp.c, test case '?': ch = getchar(); while (1) { if (ch == '?' (ch = getchar()) == '') { break; } else { ch = getchar(); } } break; As has been hinted before you're not handling the EOF case. Files like: ?php class foo { function __construct() { echo 'foo'; }; }; Are perfectly valid php files and actually preferred for included files, rather then a terminating ?, because one can start filling the output by trailing whitespace before EOF and thus not set any header() anymore. The above code will wait indefinitely for the next char or spin like mad if you're using non-blocking IO. YUP. I thought my initial getchar() != EOF would handle that. But then there's that do-forever loop. I remember Jeffrey's post and tried a case 'EOF' or case '-1'; thar gives me compiler errors. Suggestions? You should really take the pointers from Jeffrey Goldberg and record states and decide based on the state, rather then inlined switch statements, if only for readability. You're also in trouble with ?xml, but that's an entirely different beast and you might actually be doing the right thing from your usage perspective. -- Mel -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org For FBSD list: http://transfinite.thought.org/slicejourney.php The 4.98a release of Jottings: http://jottings.thought.org/index.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Open_Source
On Thu, Jun 04, 2009 at 08:58:24PM +0200, Polytropon wrote: On Thu, 4 Jun 2009 20:31:46 +0200, cpghost cpgh...@cordula.ws wrote: BTW, since we're talking about vintage OSes: anyone knows of a BS2000 clone, emulator, ...? http://ts.fujitsu.com/products/bs2000/index.html http://en.wikipedia.org/wiki/BS2000 I'm especially interested in an emulation of the old terminal-based BS2000 before they introduced POSIX compat in 1992 (i.e. BS2000 as of between 1986 and 1992). For other emulators of old hardware, we have the great collecton of /usr/ports/emulators/simh plus images, but nothing BS2000-ish (yet). Or do we? Maybe you're interested in hercules, which provides emulation of IBM's mainframe architecture that was the parent (with OS/360 and OS/390) of Siemens' original BS2000. Vintage operating systems, let's see what I can remember... SCP, DCP, MUTOS, SVP, VMX, PSU, WEGA, KAOS, OS/ES (once my favourite)... I'm sure no one of you knows from mind what I'm talking about. But don't mind, they don't exist anymore. :-) How about Scope2, Scope3, Nos, Nos/BE, Nos/VE, and the king of all, Scope/Hustler. Of course, they were not IBM mainframe OSen. They ran on the CDC 6000 and 170-180 mainframe systems. jerry -- 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 freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Why obsoleted if_watchdog interface ?
I installed an old 3Com network card in my machine (Pavilion 4455) and it works fine, but I get the following warning in dmesg ep0: 3Com 3C509-TPO EtherLink III at port 0x300-0x30f irq 10 on isa0 ep0: WARNING: using obsoleted if_watchdog interface ep0: Ethernet address: 00:01:02:69:4f:7c ep0: [ITHREAD] What does obsoleted if_watchdog interface mean? Is it a problem that I should try to do something about. Thanks, Mike Gass Minnesota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with bash script
Carmel NY wrote: I am attempting to write a simple Bash script that will find all the '*.pem' files in a directory structure and move them to another directory. It seems to work until I get to the copy part where it fails. My scripting skills are not that good. Perhaps someone could tell me what I am doing wrong. This is the script: #! /usr/bin/env bash # Save the field separator oIFS=$IFS # Set it to line breaks IFS=$'\n' for i in $(find ./ -name *.pem -print); do # Get the basename BN=$(basename $i) # copy the file to another directory using the base name cp $i /usr/home/tmp/$BN done # Reset the IFS variable IFS=$oIFS exit That's a one-liner: % find . -depth -name '*.pem' -print0 | cpio -0pdmu /usr/home/tmp Actually, that just /copies/ all of the *.pem files to the other directory tree, so if you want to remove the original files, you'ld also need to do: % find . -name '*.pem' -delete once you're sure everything has copied across OK, and with the proviso that '.' is neither a parent or child of /usr/home/tmp Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: feedback, comments on this php-delimiter scrubbing program?
On Tue, Jun 16, 2009 at 08:30:40AM -0700, Gary Kline wrote: On Mon, Jun 15, 2009 at 06:57:45PM -0800, Mel Flynn wrote: On Monday 15 June 2009 17:21:16 Gary Kline wrote: Encl: dephp.c, test case '?': ch = getchar(); while (1) { if (ch == '?' (ch = getchar()) == '') { break; } else { ch = getchar(); } } break; As has been hinted before you're not handling the EOF case. Files like: ?php class foo { function __construct() { echo 'foo'; }; }; Are perfectly valid php files and actually preferred for included files, rather then a terminating ?, because one can start filling the output by trailing whitespace before EOF and thus not set any header() anymore. The above code will wait indefinitely for the next char or spin like mad if you're using non-blocking IO. YUP. I thought my initial getchar() != EOF would handle that. But then there's that do-forever loop. I remember Jeffrey's post and tried a case 'EOF' or case '-1'; thar gives me compiler errors. Suggestions? You should really take the pointers from Jeffrey Goldberg and record states and decide based on the state, rather then inlined switch statements, if only for readability. You're also in trouble with ?xml, but that's an entirely different beast and you might actually be doing the right thing from your usage perspective. -- Mel this works, but still gives a warning. it's sloppy coding, but as a second version... gary #include stdio.h #include stdlib.h int main(int argc, char *argv[]) { FILE *fp; int results=0; *argv++; if ((fp = fopen(*argv, r)) == NULL) exit(printf([%s] not found\n, *argv)); else results = foo(fp); printf(\nend of main(), %s, results = [%d]\n, __FILE__, results); } int foo(FILE *fp) { int ch; do { if ((ch = getc(fp)) != EOF) switch (ch) { case 'EOF': feof(fp); exit(0); case '': putchar (ch); break; case '': putchar (ch); switch ((ch = getc(fp)) ) { case '?': ch = getc(fp); while ( (ch = getc(fp)) != EOF) { if (ch == '?' (ch = getc(fp)) == '' ) { break; } else { ch = getc(fp); } } break; case '': putchar (ch); break; default: putchar(ch); break; } break; default: putchar (ch); } } while (ch != EOF); return 0; } ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Why obsoleted if_watchdog interface ?
On Tuesday 16 June 2009 07:40:36 Michael Gass wrote: I installed an old 3Com network card in my machine (Pavilion 4455) and it works fine, but I get the following warning in dmesg ep0: 3Com 3C509-TPO EtherLink III at port 0x300-0x30f irq 10 on isa0 ep0: WARNING: using obsoleted if_watchdog interface ep0: Ethernet address: 00:01:02:69:4f:7c ep0: [ITHREAD] What does obsoleted if_watchdog interface mean? Is it a problem that I should try to do something about. A watchdog interface checks if the hardware is still responsive. The ep driver uses the old interface, which still works, but is replaced with a new interface. The driver should be updated, yet it has not happened and as such the driver may stop working in a future major release. I do not know the current status of if_watchdog and when it's scheduled to be removed. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with bash script
On Tuesday 16 June 2009 06:03:33 Daniel Underwood wrote: $ find ./ -name *.pem -exec cp {} /usr/home/tmp/something \; I'm a novice with shell scripting myself, but what's the difference between that code and some variant thereof using a pipe and xargs? Are they simply two different ways of achieving the same result? Or is there some more important difference I may be overlooking? Moises' way is less efficient as it will copy each file separately, however, if he ends with a + rather then a \;, then using exec is marginally faster as you eliminate 1 pipe from the tool chain. See find(1) for more info. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with bash script
On Tuesday, June 16, 2009 08:09:09 -0500 Carmel NY carmel...@hotmail.com wrote: C I am attempting to write a simple Bash script that will find all the C '*.pem' files in a directory structure and move them to another C directory. Using find and pax will correctly handle filenames with spaces and other crap. If you use the -depth option in find, you'll also preserve directory modtimes: root# cd /src/directory root# mkdir -p /dest/directory root# find . -depth -print | pax -rwd -pe /dest/directory Use -rwdu if /dest/directory already exists and you don't want to overwrite newer files there with older files from /src/directory. If you want to store the output from pax as an archive file, use the cpio format for the most portability and the least number of limitations on things like pathname size. Another advantage of find vs backquotes is the ability to filter things out of the files being copied: root# find . -depth -print | fgrep -f /files/to/ignore | pax -x cpio -wd | gzip -1c /tmp/src.pax.gz [ archive the pax file, copy it to another system, etc. ] root# cd /dest/directory root# gunzip -c src.pax.gz | pax -r -pe If you have spaces in your filenames and you still want to do some filtering before running xargs, use tr to change newlines to nulls: root# find . -depth -print | /some/filter/here | tr '\012' '\000' | xargs -0 /some/command On Tue, 16 Jun 2009 16:16:26 +0100, Daniel Bye danie...@slightlystrange.org said: D It does exactly the same as `command -a rgs`, but all characters between D the parentheses are taken literally (in the backtick form, certain chars D have special meaning, but not in the $() form.) Either solution will run the command first and then rescan the line in the calling script. You can run into problems when the results of the backquoted command are too big; there's an upper limit to how many arguments you can put in a for loop or pass to a program. Also, any spaces or weird characters in the output are likely to play hell with whatever else you're doing. You're much safer using a pipe. Use backquotes or $() when you're pretty sure the output won't be too big. To be safe, check the argument count when you run something: #!/bin/bash set X `date` # should give 6 tokens plus X. case $# in 1) echo command didn't print anything ;; 7) echo success: $*; echo year should be 7th arg: $7 ;; *) echo something else is wrong ;; esac exit 0 -- Karl Vogel I don't speak for the USAF or my company There is nothing more satisfying than having someone take a shot at you and miss. --Murphy's Laws of Combat ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with certain fonts when printing from firefox
On Monday 15 June 2009 23:19:15 Matthias Apitz wrote: (II) LoadModule: freetype (WW) Warning, couldn't open module freetype (II) UnloadModule: freetype (EE) Failed to load module freetype (module does not exist, 0) and there are posts in Google that this is not needed anymore because it is now parts of libXfont -- what is true? If so someone should fix the postinstall messages... Yep, but only if the right libXfont is installed. So this gets a bit messy, but CC'ing flz@ with the fonts and maintainers on the hook: % find /usr/ports/x11-fonts \( -name pkg-message -o -name pkg-message.in \) - exec grep 'Load freetype' {} + /usr/ports/x11-fonts/arkpandora/pkg-message:Load freetype /usr/ports/x11-fonts/avifonts/files/pkg-message.in: Load freetype /usr/ports/x11-fonts/bitstream-vera/pkg-message:Load freetype /usr/ports/x11-fonts/code2000/files/pkg-message.in: Load freetype /usr/ports/x11-fonts/dejavu/pkg-message:Load freetype /usr/ports/x11-fonts/gentium/files/pkg-message.in: Load freetype /usr/ports/x11-fonts/indic-ttf/files/pkg-message.in:Load freetype /usr/ports/x11-fonts/liberation-fonts-ttf/files/pkg-message.in: Load freetype /usr/ports/x11-fonts/mgopen/files/pkg-message.in: Load freetype /usr/ports/x11-fonts/stix-fonts/files/pkg-message.in: Load freetype /usr/ports/x11-fonts/texcm-ttf/files/pkg-message.in:Load freetype /usr/ports/x11-fonts/webfonts/files/pkg-message.in: Load freetype % find /usr/ports/x11-fonts \( -name pkg-message -o -name pkg-message.in \) - exec grep -l 'Load freetype' {} + |while read FILE; do dir=$(dirname ${FILE}); dir=${dir%/files}; make -C ${dir} -V MAINTAINER; done|sort -u a...@freebsd.org da...@freebsd.org gn...@freebsd.org jac...@gmail.com kkons...@duth.gr m.sea...@infracaninophile.co.uk po...@freebsd.org thie...@freebsd.org -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with bash script
I botched the filter example in my previous blathering. This will ignore output from find containing patterns: root# find . -depth -print | fgrep -v -f /some/patterns Leaving off the -v will keep output containing those patterns. -- Karl Vogel I don't speak for the USAF or my company Sign in a Tacoma, Washington men's clothing store: 15 men's wool suits, $10. They won't last an hour! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cannot login as root, exited on signal 11
On 6/16/09, Unga unga...@yahoo.com wrote: --- On Tue, 6/16/09, Tim Judd taj...@gmail.com wrote: From: Tim Judd taj...@gmail.com Subject: Re: Cannot login as root, exited on signal 11 To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org, mai...@bzerk.org Date: Tuesday, June 16, 2009, 10:10 PM su -l discards the previous environment and loads a new environment. It's as if you're logging in as root (-l) running su without -l will elevate your priveledges without this same problem, you keep the same shell. Fix your shell problems via this way (or single user as originally described), and be careful next time. Hi Tim, thanks for the reply. I have not identified yet the problem to be solved. If you refer that I use bash for root is the problem, there is no difference by switching root's shell to sh. With sh as the shell for root: 1. Still cannot login as root from the console. Child process died error. 2. su -l doesn't work, child process died error. 3. su works. But the prompt is [...@host name]# Why it doesn't print r...@host? whoami shows root. What is the problem you think that I should fix? any ideas? any thread related error as the child process die when in root? Best regards Unga Unga, This is the first time I've read from you that you were using the recommended shell. Given you're running the recommended shell and you're still having problems sporadically (users = ok, root = not), I'd start the invasive discovery why it's not working. First is system-wide: is your kernel version and userland in sync? Such as RELENG_7 userland with RELENG_7 kernel? Running non-synchronized kernel and userland (aka world) is not supported* and will cause problems. Back to the individualized problem -- if you backup your root's dotfiles, and then remove or rename them, does the problem remain? What if you set root's home directory to one of your user's home directory as a test to see if it's the dotfiles? These would be my next steps to diagnose what might be the problem. Good luck. * - Only supported is when you're upgrading and have a newer kernel just long enough to install world. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Problem with jail connecting out
Hi: I have set up a jail with local ip 127.0.0.2 on the loopback interface: On host: lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff00 inet 127.0.0.2 netmask 0x On jail: lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 inet 127.0.0.2 netmask 0x I have no problem connecting from the host to the jail, but the other way around doesn't work. Also, related, how do I configure multiple interfaces in a jail? Thanks, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
fsck
Hi, I know it is possible, but not sure how to do it. When power goes down and file system gets corrupted and system becomes unbootable I need to login to the machine via console and run fsck -y /dev/X Any idea how to make Freebsd do that alone so it always boot, but without paying penalty of slow reboot in case of clean shutdown and restart ? Thanks, Peter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Announcing: FreeBSD Custom XFCE ISO (take II)
Manolis Kiagias wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey all, This is a continuation of the effort that started with this post: http://lists.freebsd.org/pipermail/freebsd-questions/2009-May/198284.html This little project also found its way to Distrowatch Weekly news (Thanks!): http://distrowatch.com/weekly.php?issue=20090615#news Congratulations! Since there was an update of the base system to 7.2-RELEASE-p1 a few days ago, it was a good chance to update this ISO and also include some newer packages. The new ISO may be downloaded from here (space and bandwidth courtesy of Glen Barber): http://freebsd.dev-urandom.com/iso/i386/xfce-desktop/7.2-RELEASE-p1-i386-disc1.iso Are you updating the name with each new iso? I will start preparing a server ISO (CD sized) soon. I also welcome all ideas on what to include/exclude in later versions of this DVD. It has been suggested to include openoffice packages as abiword / gnumeric don't cut it for many people. This will increase the size of the download, although hopefully not dramatically as most dependencies are probably already included. I am all open to ideas, so please email me your suggestions and comments. I would vote for including openoffice, it takes much longer to compile than to download, or maybe make the package and any dependencies that are not already included available as a separate tarball. Any chance of x11-wm/icewm and maybe x11/idesk? icewm with config option BEASTIE :) I've been between hardware for a while but I can offer some compile time if needed. Chris Thanks, Manolis Kiagias -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAko3OA4ACgkQZ/MxGm4PtJRuvgCfYcOTk2whTnOekRqrBMJYjWZ3 tOcAnRF2Y1E14T/zFGOMBJk+v46tz2AN =VfqE -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fsck
In response to Peter peterp...@aboutsupport.com: Hi, I know it is possible, but not sure how to do it. When power goes down and file system gets corrupted and system becomes unbootable I need to login to the machine via console and run fsck -y /dev/X Any idea how to make Freebsd do that alone so it always boot, but without paying penalty of slow reboot in case of clean shutdown and restart ? fsck_y_enable=YES in /etc/rc.conf See the man page for details. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Network interface dc0 fails to negotiate media type
Content of /etc/rc.conf # -- sysinstall generated deltas -- # Mon May 4 22:51:52 2009 # Created: Mon May 4 22:51:52 2009 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. ifconfig_dc0=dhcp hostname=dhcppc0.thorup inetd_enable=NO keymap=danish.iso linux_enable=YES sshd_enable=YES #Open Sound System oss_enable=YES #Manually added for X11 #hald and dbus is started by gnome_enable dbus_enable=YES gdm_lang=da_DK.UTF-8 gnome_enable=YES fusefs_enable=YES #devfs_system_ruleset=localrules dhcppc0# I have noticed a difference in the syslogs dmesg.today and messages; see the 4.th line from the cutting from both. Why are they different ? From dmesg.today dc0: ADMtek AN985 10/100BaseTX port 0x5000-0x50ff mem 0xf0201000-0xf02013ff irq 23 at device 4.0 on pci11 miibus0: MII bus on dc0 ukphy0: Generic IEEE 802.3u media interface PHY 1 on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto dc0: Ethernet address: 00:30:05:d4:25:c7 dc0: [ITHREAD] From messages Jun 16 20:33:01 dhcppc0 kernel: dc0: ADMtek AN985 10/100BaseTX port 0x5000-0x50ff mem 0xf0201000-0xf02013ff irq 23 at device 4.0 on pci11 Jun 16 20:33:01 dhcppc0 kernel: miibus0: MII bus on dc0 Jun 16 20:33:01 dhcppc0 kernel: ukphy0: Generic IEEE 802.3u media interface PHY 1 on miibus0 Jun 16 20:33:01 dhcppc0 kernel: ukphy0: 10baseT-FDX, auto Jun 16 20:33:01 dhcppc0 kernel: dc0: Ethernet address: 00:30:05:d4:25:c7 Jun 16 20:33:01 dhcppc0 kernel: dc0: [ITHREAD] -- Forwarded message -- From: John Thorup john.thorup...@gmail.com Date: 2009/6/14 Subject: Network interface dc0 fails to negotiate media type To: freebsd-questions@freebsd.org I have installed FreeBSD 7.2-RELEASE i386 on a Fujitsu Siemens Scaleo T P 340 0 1,0G PC (mainboard name D1826-G). $ uname -a FreeBSD dhcppc0.thorup 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 $ I will mention that I have csup'ed and updated my ports the 31.th May. Some time after that the network (interface dc0) suddenly stopped working. First I saw it was not possible to get an IP address from my router. I thought initially that it was the network cable or router, that caused the problem but the PC can still boot up with Win XP without any network connectivity problems. I can see that there must be problems with the negotiation of media type and options from: $ ifconfig -m dc0 dc0: flags=8847UP,BROADCAST,DEBUG,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU capabilities=8VLAN_MTU ether 00:30:05:d4:25:c7 inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255 media: Ethernet autoselect (none) status: active supported media: media autoselect media 10baseT/UTP mediaopt full-duplex media none $ The strange thing is that the normal selection media 100baseTX mediaopt full-duplex (before this error) are not on the list of supported meadia. When I boot up in Win XP, the negotiation ends up with 100baseTX / full-duplex. If I try to configure sudo ifconfig dc0 media 100baseTX mediaopt full-duplex, I receive the answer ifconfig: SIOCSIFMEDIA (media): Device not configured. If I try to configure sudo ifconfig dc0 media 10baseT/UTP mediaopt full-duplex, the command changes the settings. I have been studying the FreeBSD man pages, reading the Handbook, searching the mailing lists and searching the internet without finding something that did could help me. Can you at freebsd-questions@freebsd.org help me, so that I can get my network up and running again. dmesg output and sysctl's of interest: $ dmesg Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 3.40GHz (3401.05-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf34 Stepping = 4 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0x441dSSE3,DTES64,MON,DS_CPL,CNXT-ID,xTPR Logical CPUs per core: 2 real memory = 1072627712 (1022 MB) avail memory = 1035931648 (987 MB) ACPI APIC Table: FSC APIC FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP/HT): APIC ID: 1 ioapic0 Version 2.0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: PTLTD XSDT on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter ACPI-fast frequency 3579545 Hz quality 1000 acpi_timer0: 24-bit
Re: fsck
Bill Moran wrote: fsck_y_enable=YES in /etc/rc.conf See the man page for details. Thanks :-) Peter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Announcing: FreeBSD Custom XFCE ISO (take II)
Chris Whitehouse wrote: Manolis Kiagias wrote: Hey all, This is a continuation of the effort that started with this post: http://lists.freebsd.org/pipermail/freebsd-questions/2009-May/198284.html This little project also found its way to Distrowatch Weekly news (Thanks!): http://distrowatch.com/weekly.php?issue=20090615#news Congratulations! Thanks! Since there was an update of the base system to 7.2-RELEASE-p1 a few days ago, it was a good chance to update this ISO and also include some newer packages. The new ISO may be downloaded from here (space and bandwidth courtesy of Glen Barber): http://freebsd.dev-urandom.com/iso/i386/xfce-desktop/7.2-RELEASE-p1-i386-disc1.iso Are you updating the name with each new iso? I've included the -p1 in this release. I haven't come up with a naming scheme yet but will do when I decide the intervals between releases. I will start preparing a server ISO (CD sized) soon. I also welcome all ideas on what to include/exclude in later versions of this DVD. It has been suggested to include openoffice packages as abiword / gnumeric don't cut it for many people. This will increase the size of the download, although hopefully not dramatically as most dependencies are probably already included. I am all open to ideas, so please email me your suggestions and comments. I would vote for including openoffice, it takes much longer to compile than to download, or maybe make the package and any dependencies that are not already included available as a separate tarball. The tarball idea is good and probably most dependencies are already in the iso, so it won't be huge. I'll investigate this, thanks! Any chance of x11-wm/icewm and maybe x11/idesk? icewm with config option BEASTIE :) Probably create a small WM collection CD with the likes of wmaker, afterstep, icewm, blackbox etc. Need to find the more popular ones. I've been between hardware for a while but I can offer some compile time if needed. Chris Compiling is not a problem, I've got a separate system for it. But can only do i386 releases - don't have suitable 64bit hardware. If you do, mail me and we can arrange something. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: feedback, comments on this php-delimiter scrubbing program?
On Jun 16, 2009, at 10:30 AM, Gary Kline wrote: I thought my initial getchar() != EOF would handle that. But then there's that do-forever loop. As I said, the most common problem people had was failing to check of EOF in all the places it could occur, and so looping forever. Do not rely on the input being well formed. I remember Jeffrey's post and tried a case 'EOF' or case '-1'; thar gives me compiler errors. Look at the man page for getchar() paying close attention to the type of what it returns. You should really take the pointers from Jeffrey Goldberg and record states and decide based on the state, rather then inlined switch statements, if only for readability. Even for a very simple task, the logic of your code is very very hard to read. Clarify the logic (using the idea of a state) and you will find that this can be programmed very simply. -j -- Jeffrey Goldberghttp://www.goldmark.org/jeff/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fsck
On Tue, 2009-06-16 at 22:36 +0300, Peter wrote: When power goes down and file system gets corrupted and system becomes unbootable I need to login to the machine via console and run APC upsd(8) can auto-run 'shutdown -hp now' for you when your UPS is almost discharged. Then you an set your ACPI settings to default to power on state when power is restored. You can get a APC Backups 350 for ~ $50 retail. -- Brian A. Seklecki bsekle...@collaborativefusion.com Collaborative Fusion, Inc. signature.asc Description: This is a digitally signed message part
Re: fsck
fsck_y_enable=YES ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
OpenSSL Base vs. OpenSSL Port?
I had been running 6.2 with openssl base for quite a while. Then I attempted to implement the dkim-filter port which required using openssl to generate keys. That's when I noticed that openssl is broken on my machine. See this example: # openssl genrsa -out rsa.private 1024 Error configuring OpenSSL 28086:error:260AB089:engine routines:ENGINE_ctrl_cmd_string:invalid cmd name:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/eng_ctrl.c:318: 28086:error:0E07406D:configuration file routines:CONF_modules_load:module initialization error:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/conf/conf_mod.c:234:module=engines, value=openssl_engines, retcode=-1 So I thought rebuilding world might fix it and while I was at it, I upgraded to 6.4 but still have the same problem. Next I tried installing openssl from ports. This openssl seems to work: # /usr/local/bin/openssl genrsa -out rsa.private 1024 Generating RSA private key, 1024 bit long modulus ..++ ..++ e is 65537 (0x10001) But now I am unclear as to what state my system is in. What is the preferred method for using openssl from ports vs. using openssl base. I don't really care which I use but want to avoid trouble with multiple versions of openssl and/or ports compiled against the wrong version. I've been Googling all day but can not find a clear guide. Specifically, what should I have in my /etc/make.conf and what portupgrade command should I use to ensure things are build against the correct openssl? I've seen things like OPENSSL_OVERWRITE_BASE=yes, NO_OPENSSL=yes, WITH_OPENSSL_PORT=yes, WITH_OPENSSL_BETA=yes, and portupgrade -rf openssl but remain confused. Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Crusty upgrade (was Make Question)
Lowell Gilbert wrote: Manolis Kiagias son...@otenet.gr writes: I have inherited an old FreeBSD 5.1 machine(5.1-RELEASE-p18). I realize that the short answer to my question is more than likely to upgrade the OS to a current release and I would if I had that option right now, but I do not. I needed to upgrade the perl/openssh/openssl implementation on this box. My first thought was to use the port on the machine that was from that era but make fails. So then I thought to csup the ports tree and try with a new version, that fails as well. The error is as follows: 5.1 (in fact all 5.X) has reached EOL. The latest ports tree won't compile stuff for 5.X. Use the following line in your ports-supfile to get the last ports tree that was supported in 5.X: *default release=cvs tag=RELEASE_5_EOL instead of *default release=cvs tag=. Still, since this is going to be really old you may still have problems (missing distfiles and so on). But is worth trying if you must stay with 5.X for whatever reason. One thing it won't do is get you any of the bug fixes to the ssh port. As a number of people have pointed out this is turning into a bigger headache than it needs to be. The good thing is that allowed me to get the ok to upgrade the system. This box will be taken out of service in the near future but I do need it to remain functional for a couple months. Is there a recommended upgrade path? I know about cvsup and whatnot. What I mean is are there some blatant gotchas when making this big a jump (5.1p18 - 6.4)? Are there some recommended stops along the way or can it be done in one fell swoop. Is Colin Percival's freebsd-update.sh a viable way to approach this? http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html This is a production box so I want to cover my bases before I jump into this. Peter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: feedback, comments on this php-delimiter scrubbing program?
On Jun 16, 2009, at 12:02 PM, Gary Kline wrote: this works, but still gives a warning. it's sloppy coding, but as a second version... You've got some superfluous tests for EOF in some places, and you may also be missing some. Your approach has been to look ahead with an extra getc() when you come across an interesting character. I recommended that instead of doing that you keep a variable state to keep track of where you are (and have very recently been) instead of looking ahead. I haven't tried your code, but I suspect that it behaves incorrectly with input (1) that has a '' as a final character (2) that includes things like ? (3) that includes things like ?? There is a systematic (if a bit tedious) way to make sure that you check every condition. When you've worked enough on this, you can peek at an answer which I've attached. (For the rest of you, I know that it would be more efficient to make the big switch on state instead of on input character, but for pedagogical reasons I did it the other way around. I deliberately avoided other available tunings). The extensive comments in the code should make it clear what is going on. Once you understand the concepts here it should be very easy to write code to do similar things in the future. -j -- Jeffrey Goldberghttp://www.goldmark.org/jeff/ gkline.c Description: Binary data ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
VirtualBox Package Available
Hello, folks Since the recent availability in the ports tree of VirtualBox on a FreeBSD host I have made a binary installer available. The package was built on a 7-STABLE machine with the only kernel modifications being KDB and GDB: FreeBSD orion 7.2-STABLE FreeBSD 7.2-STABLE #3 r193905: Wed Jun 10 08:42:33 EDT 2009 r...@orion:/usr/obj/usr/src/sys/ORION i386 Feel free to download, use, criticize, but hopefully enjoy. :) You can install by doing the following: setenv PACKAGESITE http://freebsd.dev-urandom.com/packages/VirtualBox/ pkg_add -r http://freebsd.dev-urandom.com/packages/VirtualBox/virtualbox-2.2.51.r20457_2.tbz Of course, if there are any installation problems, please let me know. Cheers. -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Crusty upgrade (was Make Question)
Peter Clark writes: Is there a recommended upgrade path? I know about cvsup and whatnot. What I mean is are there some blatant gotchas when making this big a jump (5.1p18 - 6.4)? Are there some recommended stops along the way or can it be done in one fell swoop. Is Colin Percival's freebsd-update.sh a viable way to approach this? I do not know if freebsd-update works on 5.x. Even if it were possible, I strongly recommend installing from scratch when crossing a ,0 boundary and am not alone in that opinion. It provides the opportunity to resize partitions; there is less likelihood of a library mismatch, and you will recover the space used by any orphaned files. (My personal practice is to install to a new disk, and mount the old disk read-only until I'm willing to bet there's nothing more I need.) Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: feedback, comments on this php-delimiter scrubbing program?
On Tue, Jun 16, 2009 at 06:32:43PM -0500, Jeffrey Goldberg wrote: On Jun 16, 2009, at 12:02 PM, Gary Kline wrote: this works, but still gives a warning. it's sloppy coding, but as a second version... You've got some superfluous tests for EOF in some places, and you may also be missing some. Your approach has been to look ahead with an extra getc() when you come across an interesting character. I recommended that instead of doing that you keep a variable state to keep track of where you are (and have very recently been) instead of looking ahead. I haven't tried your code, but I suspect that it behaves incorrectly with input (1) that has a '' as a final character (2) that includes things like ? (3) that includes things like ?? this is exactly why i asked here. i've removed at least one of the EOF checks and will rewrite in my usual style of while ((ch = getc(fp)) != EOF) { } as my next cut. yes, i shamelessly cribbed this code from else. it originally deleted both C and C++ comments. i think it was written in C# that i'm unfamiliar with. i'm most familiar with lokahead, not that familar with the STATE method. when you have time could you say a few more words? or point me at a url? ...i'm all but certain this kind of function has been invented and re-invented dozens of times. There is a systematic (if a bit tedious) way to make sure that you check every condition. When you've worked enough on this, you can peek at an answer which I've attached. you're right above with numbers two and three. pretty sure that the first one passes. gary (For the rest of you, I know that it would be more efficient to make the big switch on state instead of on input character, but for pedagogical reasons I did it the other way around. I deliberately avoided other available tunings). The extensive comments in the code should make it clear what is going on. Once you understand the concepts here it should be very easy to write code to do similar things in the future. -j -- Jeffrey Goldberghttp://www.goldmark.org/jeff/ -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org For FBSD list: http://transfinite.thought.org/slicejourney.php The 4.98a release of Jottings: http://jottings.thought.org/index.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
The worlds only editorial space for video content on sustainability
Hi Today we are launching our massive effort to create the world's only editorial place for content on sustainability. What you see on ideasforchange.tv is still just a teaser, a demo. We know that the power and knowledge of the grassroots can be really powerful if put in good use. We know that the right information is out there; we know that videos are made of products, seminars, ideas, interviews, and meetings. We know that a lot of spaces, schools, organizations, people and companies do a lot of good work already. But we need to join forces. We need a place to meet, connect, engage and exist. We need to do it together. We need to join forces to create a more sustainable world. On so many levels like: economy, urbanity, ecology, peace, social issues and way of thinking. We want to start by asking for your help. Your help to build our forces, your help to gather all information available and to tell your friends. We need your help with inputs, suggestions and we need you to tell us your needs on sustainability. Basically we need your help to change the world. Because that's exactly what we are aiming to do. And that's why we are building this global team, webpage and project. To start connecting the dots. To become bigger, smarter, and so that our ideas on how to make a more sustainable world can become real. Soon! And this time its done for real. So join our newsletter, send us your video material and inputs, engage yourself and expect the beta site to launch in august. Visit the web site IdeasForChange.TV /Daniel Daboczy Global project manager ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
freebsd toaster
Hello, This article by Colin Percival http://www.daemonology.net/freebsd-update/binup.html discusses using freebsd-update as a toaster for updating an entire FreeBSD based distribution, instead of just the base system like freebsd-update normally does. Does anyone know where there might be more information on this topic? Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Announcing: FreeBSD Custom XFCE ISO (take II)
I will start preparing a server ISO (CD sized) soon. I also welcome all ideas on what to include/exclude in later versions of this DVD. It has been suggested to include openoffice packages as abiword / gnumeric don't cut it for many people. This will increase the size of the download, although hopefully not dramatically as most dependencies are probably already included. I am all open to ideas, so please email me your suggestions and comments. I have not yet tried your CD so I do not know what is already on it. but I always like the following on my installs. Gvim (with Icon) Wireshark iperf filezilla a PDF reader of some sort Sam Fourman Jr. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cannot login as root, exited on signal 11
--- On Wed, 6/17/09, Tim Judd taj...@gmail.com wrote: From: Tim Judd taj...@gmail.com Subject: Re: Cannot login as root, exited on signal 11 To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Wednesday, June 17, 2009, 2:51 AM On 6/16/09, Unga unga...@yahoo.com wrote: --- On Tue, 6/16/09, Tim Judd taj...@gmail.com wrote: From: Tim Judd taj...@gmail.com Subject: Re: Cannot login as root, exited on signal 11 To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org, mai...@bzerk.org Date: Tuesday, June 16, 2009, 10:10 PM su -l discards the previous environment and loads a new environment. It's as if you're logging in as root (-l) running su without -l will elevate your priveledges without this same problem, you keep the same shell. Fix your shell problems via this way (or single user as originally described), and be careful next time. Hi Tim, thanks for the reply. I have not identified yet the problem to be solved. If you refer that I use bash for root is the problem, there is no difference by switching root's shell to sh. With sh as the shell for root: 1. Still cannot login as root from the console. Child process died error. 2. su -l doesn't work, child process died error. 3. su works. But the prompt is [...@host name]# Why it doesn't print r...@host? whoami shows root. What is the problem you think that I should fix? any ideas? any thread related error as the child process die when in root? Best regards Unga Unga, This is the first time I've read from you that you were using the recommended shell. Given you're running the recommended shell and you're still having problems sporadically (users = ok, root = not), I'd start the invasive discovery why it's not working. First is system-wide: is your kernel version and userland in sync? Such as RELENG_7 userland with RELENG_7 kernel? Running non-synchronized kernel and userland (aka world) is not supported* and will cause problems. Back to the individualized problem -- if you backup your root's dotfiles, and then remove or rename them, does the problem remain? What if you set root's home directory to one of your user's home directory as a test to see if it's the dotfiles? These would be my next steps to diagnose what might be the problem. Good luck. * - Only supported is when you're upgrading and have a newer kernel just long enough to install world. Dear Tim I suspect this is a build error. Therefore, let me rebuild and see whether the problem go away. I'm going to do a careful rebuild more towards the end of the week. I'll let the list and you know the result. If the problem still persists, I really like to know what causes it. Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Announcing: FreeBSD Custom XFCE ISO (take II)
Sam Fourman Jr. wrote: I will start preparing a server ISO (CD sized) soon. I also welcome all ideas on what to include/exclude in later versions of this DVD. It has been suggested to include openoffice packages as abiword / gnumeric don't cut it for many people. This will increase the size of the download, although hopefully not dramatically as most dependencies are probably already included. I am all open to ideas, so please email me your suggestions and comments. I have not yet tried your CD so I do not know what is already on it. but I always like the following on my installs. Gvim (with Icon) I intend to include gvim. I simply need to pass options (like WITH_GTK2) and since it does not use the options framework it will be somewhat more difficult in tinderbox. Wireshark iperf filezilla These are all small ports and won't be a problem to include. a PDF reader of some sort Evince is already provided. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: freebsd toaster
On Tue, Jun 16, 2009 at 07:04:47PM -0700, SA wrote: This article by Colin Percival http://www.daemonology.net/freebsd-update/binup.html discusses using freebsd-update as a toaster for updating an entire FreeBSD based distribution, instead of just the base system like freebsd-update normally does. Does anyone know where there might be more information on this topic? Not long ago I tried using freebsd-update to update from 6.0-RELEASE to 7.2-RELEASE, based upon instructions on Percival's blog, http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html It blew away the contents of /boot/kernel. Multiple emails to Percival went unanswered, and when I later asked about it on this list, the only response was a suggestion to upgrade via source. (Thanks for the suggestion, by the way -- I think I'll rather do that to stay up to date once I get caught up.) Based upon my experience and the apparent lack of current support, I would not recommend using these tools for binary updates, especially in an automated fashion. If I get some spare time and inclination, I may try to diagnose what went wrong with the freebsd-update script, but more likely will end up doing a clean install of 7.2-RELEASE from ISO onto a new drive, and migrate everything over. Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Pre-compiled package shortage
Hello everyone. I am a former user of Freebsd-7.2 Release who migrated to Debian. I was unable to find an ftp server that had a decent enough list of precompiled packages (including the default at ftp.freebsd.org; for example, when installing gnome2 via precompiled packages, the package manager was unable to find a number of dependencies available in package form. True, I can compile them from source, but this is rather time consuming. Does anyone know of an ftp server dedicated to maintaining a comprehensive list of precompiled packages (a la Debian Testing)? In all other regards, I favor freebsd over Debian or any other linux distribution, and would like to return to using it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org