Inode numbering
Hi! Because I didn't find sufficient informations and try and error would be incomplete (and insecure regarding the result), I'd like to ask the following question: Let's assume we have a directory D with an inode number i(D). It contains a file F with its inode number i(F). May I state that i(D) i(F)? I need to ask this in order to solve my data loss problem: I will need to write a inode recovery program (having iintensive looks at fsck_ffs' and fsdb's source code) to iterate over all the inodes. Maybe this additional question can be answered: Is there a mechanism that output inode numbers according to a certain algorithm, or is it random? If I would try to check every imaginable inode nummer according to the states connected, not connected - orphan or not connec- ted - not used, could I iterate from 1 to the maximum of the type ino_t, which is __uint32_t? My idea is to trace back orphaned inodes by brute force because fsck_ffs doesn't do the job, but similar to fsck_ffs, they will be reconnected to the directory they originally have been gnereated in, or in a kind of lost+found directory when the information from the respective superstructure (e. g. file names) are lost. I may assume that at least the inode of my former home directory has gone away, so if everything else is still there (I have some evidences from fsdb to assume this), after reconnecting everything should be accessible. Only the file names from the first hierarchy level (the files and subdirs directly within the home directory) would change into #123456 as you know it from fsck_ffs' lost+found, but the content inside the subdirs should still be present with the original filenames - assumed that the corresonding inode information structures are still complete. Thanks for comments! And please tell me if there's already a tool that does this! :-) -- 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: Inode numbering
On Sat, 18 Oct 2008 22:46:04 -0700, [EMAIL PROTECTED] wrote: It might work in the special case where nothing on the filesystem is ever moved or removed, and no hard links are ever added. As a simple example, suppose I have directories foo and foo/bar, and file foo/baz, with i(foo) == 15, i(foo/baz) == 20, and i(foo/bar) == 25, satisfying your criterion. If I do mv foo/baz foo/bar (so baz is now foo/bar/baz), I will have i(foo/bar) == 25 and i(foo/bar/baz) == 20. Thank you for this example. So I cannot assume inode numbers to be in a specific order. It will force me to do what I originally intended to do: Iterate from 2 up to the maximal number and then check the availability, and, if given, trace back the .. chain to an existing directory entry point - or re-create one, if it is missing, too. Will be a lot of work, but I think I can learn much from this. Remember, kids: Learning is fun. :-) -- 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: Extract Songs from DVD
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 These usually are Audio CD data files: 44 kHz stereo, 16 bit. They can be put on a media as audio tracks without any change, for example if you use cdrecord with the -dao -audio flags (if I remember correctly), using a CD or DVD media. You can convert them to OGG/Vorbis or MP3 using the encoder you wish, for example: % oggenc -r -q 6 -o track01.ogg track01.cdr or % sox -x track01.cdr track01.wav % lame track01.wav track01.mp3 (ugly variant, but works; I'm sure you'll find a better way, just have a look at the manpages). If you want, you can add ID3 track information, or simply use a good file name. :-) -- 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: GCC help
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 ?? The GCC available from ports can be installed next to the GCC that comes with the system which, by the way, is 4.2.1 in FreeBSD 7. % cc -v Using built-in specs. Target: i386-undermydesk-freebsd Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 4.2.1 20070719 [FreeBSD] If you need to install GCC of another version (e. g. 4.4), you can install it from the ports collection (e. g. lang/gcc44). If I remeber correctly, it is called as gcc44 then instead of cc / gcc. -- 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: Inode numbering
On Sun, 19 Oct 2008 19:18:00 -0700, [EMAIL PROTECTED] wrote: You may be able to reuse some code from dump(8). Hey, that's a good idea! After having had a short look at the source of dump, I developed another idea: dump applies some criteria weather to access (and dump) an inode or not. Maybe it's possible to change these criteria within dump, recompile it and then use it to dump any (!) existing inode. The only problem would be to implement a workaround for those that don't have a parent inode anymore (file name lost), i. e. those on the 1st hierarchy stage within the home directory. Dump's purpose is to ensure that the dump will be complete in the sense of containing the full path to any file that is on the tape, and your purpose is different, but I suspect much of the find parent logic may be reusable. I have to admit that it's a bit complicated. Programming applications in C is my forte, hehe, but dump's C code is very much lowlevel. I'm so lucky FreeBSD has the right attitude towards documentation. So I will find a way to implement it, I hope. -- 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
Hi! On Wed, 22 Oct 2008 21:56:20 -0200, Gonzalo Nemmi [EMAIL PROTECTED] wrote: Is there an easy way to get man to format the man page using plain good ISO 216 standard A4 page size? My suggfestion for an attempt would be to first strip any control characters from the output of man -P cat entry and then pipe it to an ASCII to PDF converter (a2ps, if I remember correctly); this would remove any markups, I know, but would lead to a PDF output using the system's default paper size, A4 (I hope). 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. 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??? 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. =^_^= -- 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 Wed, 22 Oct 2008 19:19:16 -0600 (MDT), Warren Block [EMAIL PROTECTED] wrote: But groff can do A4. Just as a first pass: zcat `man -w ls` | groff -Tps -dpaper=a4 -P-pa4 -mandoc | ps2pdf - tmp.pdf It produces the right media size in the PS file, but I can't really test it because I don't have any A4 paper. I checked it - excellent. The formatting of the structural elements works fine, the result is printable. I've just finished ~/bin/man2pdf. :-) -- 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 Thu, 23 Oct 2008 01:14:10 -0200, Gonzalo Nemmi [EMAIL PROTECTED] wrote: Amm ... could you share it with us? Please, please, please??? :D In basic (not in BASIC) it consists the same commands that Warren posted. It's a simple two line script without significant error checking, and of course coded in an ugly way (as it is used to scare people off the command line): #!/bin/sh [ $# != 0 ] ( zcat `man -w [EMAIL PROTECTED] | groff -Tps -dpaper=a4 -P-pa4 -mandoc | ps2pdf - /tmp/man.pdf gv /tmp/man.pdf rm /tmp/man.pdf ) By the way, it's called ~/bin/pdfman here now, because man2pdf would suggest that it takes a manpage as input and gives a PDF file as output, but it doesn't - it's used just like man, but produces and displays (!) the manpage file right away, giving the user the choice to view and / or to print it (from within the viewer); I chose gv, but you can use xpdf, KDE's or Gnome's default PDF viewer or the thing from Acrobat, if you like. Afterwards, the PDF file, stored temporarily, is deleted. One of its disadvantages is that you cannot search within the PDF file such as you can from within man's default pager less, using the / key. -- 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: does hardware upgrade requires reconfiguration?
On Thu, 23 Oct 2008 08:48:37 +0530, Amitabh Kant [EMAIL PROTECTED] wrote: Does installing extra processor requires re-configuration or re-installation of the os? The extra processor will be mounted on the same motherboard. In most cases, no, because the GENERIC kernel is ready for multiprocessor use. You should see changes in dmesg oztput as soon as you changed the hardware, and the OS should be able to utilize the new processor, as well as the upgraded RAM. If you're using a custom kernel without SMP support, it may (!) be a problem, but I'm not sure about this. Finally, it's hard not to say: Man, this is FreeBSD, and not 'Windows'! :-) -- 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 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. 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. 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. -- 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: 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: 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: 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: 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
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: mount_cd9660 /dev/cd0 /mnt =input output error
On Fri, 24 Oct 2008 21:06:44 -0200, luizbcampos [EMAIL PROTECTED] wrote: I tried to mount my data CD by using mount_cd9660 /dev/cd0/mnt and I got input ,output error . And now (1) Did you try # mount -t cd9660 /dev/acd0 /mnt to check the correct working of the drive, just in case it is a ATAPI drive? If it's a SCSI drive, /dev/cd0 is completely correct. (2) Does the CD contain a data track? # cdcontrol -f /dev/cd0 info Did you check this (for redundancy) on another machine? The error message input output error usually indicates an error of this kind. -- 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: WINE 2 1.1.5 QUESTION...
On Fri, 24 Oct 2008 18:55:26 -0700, Gary Kline [EMAIL PROTECTED] wrote: I do not have a clue to the DOS-path; it's a CDROM and since I'm using the top CD/DVD optical drive, I'm guessing that it D:\; right? since C:\ would be the harddrive. It's a long long time ago that I've used wine, mostly for gaming-experiments. But I remember a kind of symlink strukture inside ~/.wine called dosdevices/ that included pointers to directories, e. g. the system's root directory and the user's home directory, and maybe mountopoints (or device files?) of removable media. Maybe it is documented in man wine how to use this? -- 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: wall write talk Over subnet
On Mon, 27 Oct 2008 12:20:34 -0400, Charles Darwin [EMAIL PROTECTED] wrote: Is it possible? If not, then what are the subnet counterparts of `wall' `write' and `talk'? I'm not sure I understood your question correctly, but maybe at least in regards of talk there's the ntalk utility. It requires enabling the corresponding line in /etc/inetd.conf. ntalk dgram udp waittty:tty /usr/libexec/ntalkd ntalkd The ntalk program itself is available via ports (net/ntalk). -- 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: DHCP server
On Sat, 25 Oct 2008 11:38:22 -0400, bofh42 [EMAIL PROTECTED] wrote: Are you sure you are using the correct command to start the DHCP client? I'm not familiar with Archlinux, but on Debian linux the command you need is dhclient. That's correcto about FreeBSD where dhclient or the respective RC script in /etc/rc.d/dhclient is responsible for initiating a DHCP request (by the client). A long time ago, I had played around with TomsRTBT (a Linux that fits on a disk - not a disc); there dhcpcd seemed to be the correct DHCP client site program. On the other hand, dhcpd starts the dhcp *server* Correct. -- 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: odd problem, system clock stops while power-down
On Tue, 28 Oct 2008 03:17:39 -0700 (PDT), Richard Smith [EMAIL PROTECTED] wrote: How do i get around this so i wouldn't have to set the clock every time i boot into freebsd? and by the way, does freebsd use the CMOS clock? An idea would to use NTP to get the exact time from your local atomic time dealer at system startup. :-) See ntpd and ntpdate for further 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: How can I get the screenshots only under the command-line?
On Tue, 28 Oct 2008 11:32:16 -0700, Chuck Swiger [EMAIL PROTECTED] wrote: Hi-- On Oct 28, 2008, at 9:16 AM, zhenghua wang wrote: I wanna get some screenshots of my command-line-only system(8- current),how can I perform this? Thanks a lot,looking forward to your mail. See man vidcontrol, as in: The following command will capture the contents of the first virtual ter- minal, and redirect the output to the shot.scr file: vidcontrol -p /dev/ttyv0 shot.scr Another option would be to utilize the mouse edit buffer to capture screen content in ASCII only, it requires a standard three button mouse and moused running correctly. Then you can select parts of the screen content or the whole screen using the left mouse button, then use Alt+PF2 (for example) to switch to another VT, login, start an editor (ee screen.txt) and then press the middle mouse button - the selected text will be put 1:1 into the file. Unelegang manual work, but sometimes useful (e. g. if you need screenshots for documentation purposes where a simple ASCII reproduction without colors or other attributes is needed). -- 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: GPT Support on Freebsd
On Wed, 29 Oct 2008 21:40:33 +, Franck [EMAIL PROTECTED] wrote: If I use my knowledge in linux systems, I would say that my actual kernel was compiled with the DEFAULTS conf, which doesn't enable the support of GPT for GEOM. Maybe I'm wrong, my knew kernel is compiling... Without setting KERNCONF, the GENERIC kernel configuration file will be used to build a kernel, if I remember the handbook correctly. -- 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: Script-friendly (parseble) ps(1) output?
On Wed, 29 Oct 2008 20:02:43 -0200, Eduardo Meyer [EMAIL PROTECTED] wrote: I need to write a cgi script which will print the output from ps(1) in a table (html), so the average-operator can click on a KILL link and the cgi will send the selected signal. If you can use awk, it's quite simple: ps | awk -F 'NR 1 {printf(td%s/tdtd%s/tdtd%s/tdtd%s/tdtd%s/td\n, $1, $2, $3, $4, $5);}' The only problem I see is that $5, the COMMAND field, is truncated after the first space character, so command line arguments will be missing. -- 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: Firewalls in FreeBSD?
If I understood you correctly, your setting is: (Modem/Router)---DHCP---(FreeBSD)---(Windows) I may respond directly on your configuration settings: On Wed, 29 Oct 2008 20:19:31 -0500, Jack Barnett [EMAIL PROTECTED] wrote: gateway_enable=YES #firewall_enable=YES #firewall_type=open firewall_type=simple #firewall_type=open firewall_logging=YES Use instead: gateway_enable=YES natd_enable=YES natd_interface=xl0 You may add special redirect directives to NATD's settings, such as natd_flags=-redirect_port tcp 192.168.1.2:5900 5900 natd_flags=-redirect_port tcp 192.168.1.5:23 or natd_flags=-redirect_address 192.168.1.2 141.44.165.58 \ -redirect_address 192.168.1.5 141.44.165.58 Examples taken from a very old configuration. :-) Then, firewall_enable=YES firewall_type=/etc/ipfw.conf Then, be sure to have nice firewall settings, you can use things similar to this, enabling just the services you really need and want, it's easy to write your own one or to rewrite this: -f flush add divert natd ip from any to any via xl0 add allow tcp from any to any ftp in recv xl0 add allow tcp from any to any ssh in recv xl0 add allow tcp from any to any authin recv xl0 add allow udp from any to any ntp in recv xl0 add allow udp from any to any ntalk in recv xl0 add denyudp from any to any x11 in recv xl0 add reset tcp from any to any x11 in recv xl0 add allow ipencap from any to any add allow ip from any to any This should work fine. NB to use the correct interface names. -- 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]
Building an inode
Hi again, coming back to my problem with the inode of my home directory having disappeared, I found out that the tool ffs2recov from the ports is able to establish an inode entry for a directory where you can explicitely name the inode and the directory. I know which inode number my former home directory had, and of course I know its name. Would it be sufficient to % fs2recov -c 12345 -n poly ad0s1f.dd I think there's more to establish an intact directory structure. As far as I've already learned, when walking back the path from a file deep within a directory structure, every inode contains a field where it comes from, let's say, where CWD and .. are (as an inode number): bla.txt dingens/ foo/poly// 12380 - 12370 - 12360 - 12345 - 2 This would be /home/poly/foo/dingens/bla.txt on ad0s1f (where / is then mounted as /home). When I can assume that every inode still knows where it came from, what would be a useful tool to build poly/ (12345) again? I think I'll need to construct its content again, because just by creating poly/ as 12345, where does the filesystem know from what's the content of poly/? Is the term directory slots I came across related to that topic? Which sources could give good hints? Sadly, fsck_ffs doesn't do the job... but maybe if I fix the file system a bit (instead of fixing fsck_ffs)...? Hey, it's not that I try to build my own nuclear plant in the living room... :-) -- 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: Building an inode
On Wed, 29 Oct 2008 19:47:47 -0700, Jeremy Chadwick [EMAIL PROTECTED] wrote: This is really a question for -fs or -hackers. -questions is for generic stuff -- what you're doing is fairly low-level. Try re-posting your question to -fs, wait a week, then try -hackers. I'll do that, thanks! I hope I'll be able to understand the answers because I'm quite new to low-level stuff. -- 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: Building an inode
On Wed, 29 Oct 2008 19:47:47 -0700, Jeremy Chadwick [EMAIL PROTECTED] wrote: Try re-posting your question to -fs, wait a week, then try -hackers. Thank you for this advice, I'll do that - after rewriting the message I prepared. I'm stupid: writing a message and experimenting with ffs2recov is a bad idea. :-) panic: ffs_write: type 0xc5d37e04 0 (0,16384) Automatic reboot in 15 seconds - press a key on the console to abort Rebooting... -- 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]
Status line for text mode console
Some question, inspired by my mainframe time... Is there a port that allows FreeBSD to be equipped with some kind of status line when using the shell on a text mode console? With status line I mean some automagically updating text line that informs about... date, time, terminal, actual system load, number of users logged in or another status, for example like this: [EMAIL PROTECTED]:~/src/bla% _ --- [EMAIL PROTECTED]:ttyv2 (3) .:I = =2008-11-30 07:02:15 For example, the status line sits in line 25, line 24 contains a barrier, and the shell runs on lines 1 - 23. Is there anything comparable? Or do I have to write my own? :-) -- 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: Status line for text mode console
On Wed, 29 Oct 2008 23:10:02 -0700, Jeremy Chadwick [EMAIL PROTECTED] wrote: Sounds like something screen(1) offers. See sysutils/screen. Much too complicated. :-) I'm using screen on a daily basis to manage multiple SSH sessions (very comfortable tool), but for something that should run locally (a local terminal session) it doesn't seem to be the right tool. In general, this is really not something the *operating system* offers, or the shell. This is often the responsibility of a third-party program that manipulates the pty. That's a correct consideration. Maybe I have some ideas running a shell, along with some Ncurses stuff... -- 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: Cannot login to root account on FreeBSD 7.0
On Fri, 31 Oct 2008 21:24:52 +0530, Pramod Dematagoda [EMAIL PROTECTED] wrote: I changed the shell to /bin/sh and it now seems to work fine, but really saying, sh seems to be crippled compared to csh, so I would like to get back to csh. Please don't get confused: The Bourne Shell sh is to be considered a batch shell primarily, it's not a dialog shell in the first place. This is what the Bourne Again Shell bash would be mentioned as. You can install it via pkg_add -r bash and then use it (note that it's /usr/local/bin/bash then, not /bin/bash as in Linux). You can use the chsh command to do this. What does happen if you start a C Shell session from within the working sh? Like this: $ csh [EMAIL PROTECTED]:~% _ Does this work? Personally, the C shell is my favourite dialog shell, allthough zsh and ksh, both available for FreeBSD, are powerful tools, too. -- 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: why does firefox not display icons?
On Fri, 31 Oct 2008 13:23:57 -0700, Gary Kline [EMAIL PROTECTED] wrote: Hey guys, in trying to get firefox to work with flash-9, i must have done Something so that now, ff no longer displays, say, the google icons. there is just a red dot, or the string [IMAGE] where a jpg should be. One possibility could be that you accidently switched off show images in some preference dialog. Maybe you could check this? Allthough Firefox is not my primary browser (which is Opera), I think there is some setting that prevents images from bein loaded. Instead, the alt or longdesc attribute of the img tag is shown, or, in case that an image has been referenced that does not exist, a red dot or X is shown. At least, that how your situation looks to me... -- 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: Is KDE4 usable on FreeBSD?
On Sat, 01 Nov 2008 13:36:30 -1000, Al Plant [EMAIL PROTECTED] wrote: Aloha, Try XFCE 3 or 4 for an excellent OS window manager. XFCE 3 can be turned into a CDE lookalike if it's desired. It's very lightweight and still features all the nice things you know from a UNIX X environment. Zsers coming from CDE will feel comfortable, if you take the time to tweak the settings a little bit. XFCE 4 has turned into the third big player, right in one line with KDE and Gnome. If you don't mind ressources, XFCE 4 is really an excellent piece of software, you even won't miss dsktop effects featured by KDE or Gnome. It's very versatile in these regards. See these: http://xubuntublog.wordpress.com/2008/02/10/design-your-own-desktop-with-xfce-44/ http://xubuntublog.wordpress.com/2008/02/15/design-your-own-desktop-with-xfce-44-part-2/ In my opinion - and that's very individual, you know - WindowMaker is one of the best window managers around. Fast, lightweight, easy to configure, excellent keyboard support (that's where the other ones are lacking), ah, and did I mention it's fast? You can provide a useful (!) system even on a P1 150 MHz system with it. No joke. If the magic of the tiling window managers opens up to you, you will even be more productive. Allthough I tried several of them, their magic wouldn't open up to me... :-) -- 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: XFCE4
On Mon, 03 Nov 2008 08:50:26 +0200, Manolis Kiagias [EMAIL PROTECTED] wrote: It is not really a random guess, x11-wm/xfce4 is the metaport you need to build for a working XFCE4 environment. This provides you will the basic functionalities of XFCE 4. You pointed out correctly that there are tools someone might want to install afterwards. You gave some good suggestions. There are a couple of additional tools you may also wish to use in this environment. I would recommend graphics/ristretto for a lightweight image viewer, sysutils/thunar-volman-plugin to handle mounting of external media, sysutils/xfce4-battery-plugin if running on a laptop. The sysutils category of the ports offers even more little plugins for operations and diagnostics that might be useful at some point. If you're interested, I'd recommend these articles to have a look at, in case you want a standard look. :-) http://xubuntublog.wordpress.com/2008/02/10/design-your-own-desktop-with-xfce-44/ http://xubuntublog.wordpress.com/2008/02/15/design-your-own-desktop-with-xfce-44-part-2/ Don't mind it's from a Linux blog, it will work in FreeBSD, too. -- 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: Question: the stable edition of Freebsd
On Mon, 03 Nov 2008 12:53:52 -0600, Steven Susbauer [EMAIL PROTECTED] wrote: If using a release, can he not use freebsd-update to keep current on fixes rather than rebuilding everything? On a slow system, the more binary the better. Of course he can, I mean, that's what freebsd-update is intended for. At least, it's very useful if you want to follow the RELEASE path and only install the various security patches, so you don't have 7-STABLE, but, for example, 7.1-RELEASE-p5. This is a situation you will usually find on servers. -- 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: virtual consoles on freebsd-7.0-release
On Tue, 4 Nov 2008 21:45:12 +0800, joeb [EMAIL PROTECTED] wrote: I logon from F2 as root and then startx. As root? No good idea. You should run from a !root user account. I believe F9 only works if you use the xorg logon session control. No, it works when you startx from after a normal login, too. I do know that, it's my setting at the moment. :-) So if you would create a normal user account and add these files: 1. ~/.xsession #!/bin/csh source ~/.cshrc exec ~/.xinitrc 2. ~/.xinitc #!/bin/sh exec xfwm Give them +x permissions. The first file allows you to inherit your settings from the C shell (~/.cshrc) into your X session when started from XDM or another display manager. After login, you can use the % startx command to run your XFCE session. But in fact, running as root can't be the reason why console switching doesn't seem to work correctly, I believe... -- 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: virtual consoles on freebsd-7.0-release
On Tue, 04 Nov 2008 04:17:35 +0300, The Ghost [EMAIL PROTECTED] wrote: Hello, I migrated to freensd-7.0-release and noticed that I can't switch to the virtual consoles by pressing Alt+Fx once I've started X ! I guess the key combination has changed in the nre version of Xorg implemented in FreeBSD 7.0, so I took a look at the online handbook, but I haven't found anything about the new way to switch to the virtual consoles... Could anyone please point me at what do I miss?.. Well, this hasn't something to do with FreeBSD 7. From my own experience, virtual console switching has always been the same since 4.0 with XFree86. When you're inside X, you need to add the Control key to the key combination, e. g. Ctrl-Alt-PF1. So you leave X (on its VT, usually PF9, see /etc/ttys) and get to the 1st virtual console. As long as you're in text mode, you can switch around with Alt+PF1 ... Alt+PF9 as you mentioned correctly. The functions of Alt+PF1 ... Alt+PF12 inside X depends on the window manager / desktop environment you're running, it can, for example, be used to switch virtual desktops. -- 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: virtual consoles on freebsd-7.0-release
On Tue, 4 Nov 2008 15:45:28 +0800, joeb [EMAIL PROTECTED] wrote: How do I get back to the xorg/xfce desktop running in the virtual console I left from? You could try to press the Pause / SysRq key as many times as needed until you're on your X screen again. Have a look into /etc/ttys where the correct terminal should be specified, e. g. ttyv8 /usr/local/bin/xdm -nodaemon xterm off secure ^^ So X will be on ttyv8 which is number 9 (Alt+PF9). May I ask how you initiate your X (XFCE) session? This could give a hint why console switching doesn't work as intended. -- 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: irc usenet clients for xfce
On Wed, 5 Nov 2008 22:38:03 +0800, FBSD1 [EMAIL PROTECTED] wrote: What irc, pop mail, and usenet clients from gmone or kde or x would you recommend to use on xfce? On a XFCE 4 system, XChat-2 for IRC, Sylpheed for POP mail would give you a good setup that does not involve too much dependencies. On the other hand, using Firefox + Thunderbird would be usable, too. -- 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: Ideal SCSI adapter for me?
On Thu, 6 Nov 2008 10:36:26 -0600, Kirk Strauser [EMAIL PROTECTED] wrote: I have a FreeBSD 7/amd64 system with a newly incompatible SCSI adapter (see kern/128452 for details). I want to switch to a card that's still supported but don't want to spend an arm and a leg since its whole purpose in live will be to connect my UW-SCSI tape drive. Any recommendations for cheap, minimal cards that are known to work well with recent FreeBSD releases? I had used an Adaptec 2940 U/W PCI SCSI controller to connect a tape drive, no problems; the ahc driver (from vers. 4 up to 7) worked well. It would even run a scanner, a JAZ drive, a CD-ROM drive and a PD drive (if anyone still knows what this is), as well as different hard disks. -- 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: eps to jpg conversion - which program?
On Fri, 07 Nov 2008 13:36:51 +0100, Laszlo Nagy [EMAIL PROTECTED] wrote: Hi, I need to convert eps files into jpeg files in batch mode. Gimp works perfectly, except that I cannot use an X display. I tried eps2png with no success: You can use the convert command from ImageMagick: convert eps-file jpg-file A batch solution is simple: #!/bin/sh for f in *eps; do convert ${f} `basename ${f} .eps`.jpg done You can add [ ! -f `basename ${f} .eps`.jpg ] infront of the convert command to avoid repeated conversions. -- 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: recommendation word processer for xfce
On Fri, 07 Nov 2008 19:37:21 +0100, Frank Staals [EMAIL PROTECTED] wrote: Well not realy solution for the problem you mentioned. But if you have a bit of a programming background you may want to take a look at TeX/LaTeX for you documents. I know it may be like using a cannon to kill a fly but I prefer writing my documents in my basic-text editor using TeX much rather than in a a word-like application. A big advantage is that LaTeX source files are plain text, so they can be transferred between systems without problems. Furthermore, you don't need a particular program to read a file. Besides that it looks a lot better IMO. From the standpoint of typography LaTeX is superior to any WYSIWYG word processor. Why? Because it's a professional typesetting system. Hyphenation, paragraph setting, picture adjustment and other things tha are important are handled correctly. The support for other languages (e. g. German) is excellent. Might be something to look into if you are not realy satisfied with word-processors. An alternative to use the power of LaTeX without needing to know about the macros is to use LyX. But using LaTeX itself is much easier. The difference between LaTeX and the usual wprd processors is like the difference between HTML (created by hand) and the crap that comes out of authoring systems and CMSs. I'm doing most of my stuff with LaTeX: Letters (dinbrief class), technical documentation, statistics (in combination with gnuplot), books (stories), lists and forms. When you're familiar with LaTeX, you won't want to miss it, because you can work faster *and* get better results than anyone with the usual Word skills, clickity click, nyak nyak, blah blah. :-) -- 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: Glob error?
On Fri, 7 Nov 2008 15:13:03 -0800, Steve Watt [EMAIL PROTECTED] wrote: ( Please cc: me on replies, as I can't keep up with traffic on -questions ) I did the following: % cd /tmp % mkdir -p a/dir1/new a/dir1/cur % mkdir -p b/dir1/new b/dir1/cur % mkdir -p c/dir1/new c/dir1/cur % ls -ld */dir1/new drwxrwxr-x 2 steve wheel 512 Nov 7 15:10 a/dir1/new/ % Really strange... I did use C Shell on FreeBSD 7-STABLE. % mkdir -p a/dir1/new a/dir1/cur % mkdir -p b/dir1/new b/dir1/cur % mkdir -p c/dir1/new c/dir1/cur % ls -ld */dir1/new drwxr-xr-x 2 poly staff 512 Nov 8 00:57 a/dir1/new/ drwxr-xr-x 2 poly staff 512 Nov 8 00:57 b/dir1/new/ drwxr-xr-x 2 poly staff 512 Nov 8 00:57 c/dir1/new/ Shell doesn't seem to matter (have tried both tcsh and bash). I did try BASH too, with same result as above - works. The calls to mkdir and ls refer to programs, not to shell internal commands. The only problem could be the * wildcard that the shell would have to expand before calling the actual ls program... -- 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: eps to jpg conversion - which program?
On Sat, 8 Nov 2008 12:12:46 +0200, Jonathan McKeown [EMAIL PROTECTED] wrote: You can also save yourself repeated calls to basename by using for f in *eps; do convert ${f%.eps}.jpg done Look under parameter expansion in the manpage for sh(1) (or bash(1) if you have bash installed). Yes, that's a very good hint, I will use this in the future. Note that $f as first parameter is missing (source for convert). As far as I can tell csh/tcsh doesn't support this useful feature. Well, I prefer the C Shell (instead of BASH) as primary dialog shell, but for scripting, I always stay with the good old Bourne Shell, simply because it's the standard scripting shell for UNIX, and it's compatible to most Linusi, too (where /bin/sh@ - /bin/bash, but NB ! -f /bin/bash in FreeBSD). Essentially, a Bourne-type shell with parameter expansion expands ${variable#prefix} or ${variable%suffix} to $variable with the prefix or suffix, respectively, removed. So this would be more efficient: #!/bin/sh for f in *eps; do [ ! -f ${f%.eps}.jpg ] convert $f ${f%.eps}.jpg done -- 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: eps to jpg conversion - which program?
On Sat, 8 Nov 2008 23:36:32 -0800, Jeremy Chadwick [EMAIL PROTECTED] wrote: Also, what guarantee do you have that all the filenames that match that wildcard lack spaces in them? Your [ and convert commands will botch badly in that case. See below. This is completely correct. If files are present as foo.EPS, the Windows style of file naming, or foo.Eps in a mixed form, the *.eps wouldn't catch it. As you mentioned, it's good to assume the worst case. Not only spaces, as well special characters. Now *that's* the real fun. :-) [EMAIL PROTECTED] sent me | Copy [5] of C:\My Files\AV with ö and ß.Eps Another mentionable comment would be: Why do you call the variable just $f? Give it a better descriptive name. In this small example, it won't lead into significant problems if you don't do it, but I've seen shellscripts using $f, $f1, $f2, $g, $h, $y all over the file, and it was hard to find out which values they should hold. style-rant What people often forget while writing sh scripts is that spawning external utilities slows down the script greatly, and destroys system resources. You might think My machine has 923484390GB of RAM, and has 6500 processors; why do I care? -- step back for a moment and think about older/smaller boxes, or even more importantly, embedded machines (very little memory, very little CPU). Hey, that's how software development helps hardware development, or at least software development in Redmond. :-) Hardware ressources ++ Overall usage speed = = const. Software requirements ++ q.e.d. Also think about situations where fork() will fail due to resource limits or existing system resource exhaustion; what then? I see this regularly in perl scripts; people relying on `xxx` for no good reason. I ask them, Why are you doing this? Can you not use native-perl-code instead, and avoid wasting resources and excessive risk?, and they often have no idea what I'm talking about. And whenever I see `ssh [EMAIL PROTECTED] command` in perl scripts, I cry. Ooow! Is this for real? If it is, it's a reason to hit someone's head with the keyboard. :-) That in mind, don't let your scripting mimic that of perl bastards who *intentionally* write obfuscated code just to show off (often citing its faster as the reason, choosing to intentionally ignore that perl is a compiled language). For complex pieces of sh that are hard to visually parse: try to keep it simple, and take the time to write decent/legible comments above the hairy part of the script. Indentation, comments and descriptive identifiers help a lot. If you read FreeBSD's (scripting) sources, you'll see that they are of high quality. Also remember that double-quoting filenames or variables that are used as filenames is a VERY good idea. Filenames with spaces are quite common these days. It's best to assume the worst, but not be *too* over-zealous. Especially when you're intending to use a piece of software, even if it's just a three line shell script, more than just one time, or if you want to share it with others. -- 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: UFS2 limits
On Sun, 9 Nov 2008 10:35:21 +0100, Erik Trulsson [EMAIL PROTECTED] wrote: Note that this does not limit the number of files you can have in a single directory, since normal files do not contain hardlinks to the parent directory, but there are of course limits to the total number of files and directories you can have on a single filesystem based on how many inodes were created when the filesystem was first created. Maybe this sounds stupid, but... given that a file system can hold n entries. What happens when a program tries to create file number n + 1? I do ask this in order to explore if this could have been the reason for my massive data loss and UFS file system corruption. -- 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: Console size and scrollback buffer.
On Mon, 10 Nov 2008 18:58:31 +0530, James Williams [EMAIL PROTECTED] wrote: 1) How can I change the number of rowsxcols of the console? I'd like to use the maximum rows/cols available for the 1440x900 screen. You can use vidcontrol to do that. 2) How can these settings be made default (takes effect at boot)? At boot? Never tried this, but I think there are some kernel settings that are relevant for this; they'll be documented in the NOTES files for the kernel. 3) How I can set the scrollback buffer size (if that's the name) of the console -- the equivalent of Shift+{PgUp,PgDn} on Linux? In FreeBSD, use the Scroll Lock key (that's why it's there); the length of the scrollback buffer can be controlled by vidcontrol, too. Refer to man vidcontrol and its EXAMPLES section. I played around with vidcontrol but was not quite successful. Make sure the requested videomode is available, vidcontrol -i mode will tell you. -- 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: trouble getting x11 xdm to work
On Mon, 10 Nov 2008 22:21:38 +0800, Fbsd1 [EMAIL PROTECTED] wrote: Also created the .xsessions file in the users home directory. The file is ~/.xsession, without an s at the end. I assume that csh is your login shell. Put these in your ~/.xsession: #!/bin/csh source ~/.cshrc exec ~/.xinitrc This sources your individual user setting from .cshrc and the executes .xinitrc (trivial, isn't it?) to control how the startuo of your xsession will go. Make sure both files (.xinitrc and .xsession) are +x attribute. Keep getting this console error message hundreds of times init: getty repeating too quickly on port /dev/ttyv8, sleeping 30 second Hey, I saw this one... but I'm not sure how I solved it. Is your /etc/hosts and hostname set correctly? I think it was something like this, something I would never had put in any combination with X... By the way, in order to try if xdm is working correctly it can be started directly by the command xdm anytime. -- 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: file harvest
On Mon, 10 Nov 2008 12:53:38 -0500, Jean-Paul Natola [EMAIL PROTECTED] wrote: Question is how can I, if it all possible, do a harvest of my own? Hah, you're asking the right one, man. :-) There are many good tools available from the ports, some of them can even be used for diagnostics and recovery on UFS file systems. The most famous one is The Sleuth Kit, another useful tool is magicrescue. Try and see if they are helpful to you. Good luck! -- 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: root /etc/csh
On Mon, 10 Nov 2008 16:13:54 -0800, Jim Pazarena [EMAIL PROTECTED] wrote: Glen Barber wrote: On Mon, Nov 10, 2008 at 4:46 PM, Pieter Donche [EMAIL PROTECTED] wrote: FreeBSD 7.0 comes with the user root with start up shell /bin/csh As normal user I use bash (/usr/local/bin/bash installed) I would prefer to have bash also when working as root (su). It is never recommended to change root's default shell to something outside of the base install. The main reason is, for example, if you update your non-base shell (via ports), and it breaks, you can no longer log in as root. If you decide you still want to have a non-base shell for your root user, keep root's shell default, and enable your toor user. isn't the main reason because other shells may reside on a filesystem which isn't necessarily mounted in maintenance/single user mode? Or, libraries for the same? At least, it's a valid reason. When in trouble, the system just mounts / as ro where /bin/sh (the system's standard scripting shell) and /bin/csh (its standard dialog shell) are available. Bash may be on another partition that's not mounted yet, so no maintenance access would be possible. To change the shell, it's not a good idea to fiddle around with /etc/passwd. The use of the chsh (change shell) command is advised. In my opinion, you could add bash as the last line of your ~/.login file which will be executed by csh, so bash starts up right after login, but NB this may cause problems when using sudo. -- 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]
Strange messages by fetchmail: Server certificate verification error
Hi, when I installed my new FreeBSD 7 system along with fetchmail-6.3.8_4, no matter what I do I get these messages: fetchmail: Server certificate verification error: unable to get local issuer certificate fetchmail: Server certificate verification error: certificate not trusted fetchmail: Server certificate verification error: unable to verify the first certificate fetchmail: No mail for foo at pop.bar.com fetchmail: Server certificate verification error: unable to get local issuer certificate fetchmail: Server certificate verification error: certificate not trusted fetchmail: Server certificate verification error: unable to verify the first certificate fetchmail: No mail for pups at pop.furz.com But message retrieval works fine. I do get them from every POP3 server I have in the list. On my older FreeBSD 5 system with fetchmai-6.2.5_2, I don't get these messages, but message retrieval works there as well - with the same configuration files (~/.fetchmailrc). How can I get rid of these messages? Is it possible *not* to use any certification, just the way the older fetchmail version seemed it to do? -- 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: non-US keyboard and KDM
On Tue, 11 Nov 2008 07:47:37 +0100 (CET), Pieter Donche [EMAIL PROTECTED] wrote: I installed KDE and the KDM display manager in FreeBSD. On my portable I have a non-US keyboard (a european country layout), in KDE I can set it to the appropriate keyboard layout. KDM login window is still in US qwerty keyboard, which makes me have to enter my password with different keystrokes :-) How to set an appropriate keyboard in KDM? I don't know, but you can set your keyboard layout generally for X, so you have this layout everywhere (e. g. when you're running something different than KDE, as well as in xdm or kdm). Just change your /etc/X11/xorg.conf to fit your needs, according to this example: Section InputDevice Identifier Keyboard0 Driver kbd Option XkbModel pc105 Option XkbLayout de Option AutoRepeat250 30 EndSection -- 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: Strange messages by fetchmail: Server certificate verification error
On Mon, 10 Nov 2008 22:52:41 -0800, Jeremy Chadwick [EMAIL PROTECTED] wrote: First and foremost: this should have gone to freebsd-ports, because you're indirectly complaining about ports. :-) Yes, sorry I did. I didn't find anything to complain about FreeBSD in particular. :-) That said: there's a good chance the servers you're fetching mail from do not have their certificates signed by a public CA; possibly they're self-signed (by their own CA), in which case you need to download a copy of the CA and tell fetchmail about it. The server administrator should be able to discuss this with you -- talk to them. The mailserver are run by Germany's top Internet company that brings the Internet to the masses, it's the one with the twi digits and the ampersand. Quality isn't their game. :-) fetchmail changes severely between minor versions, which is probably why your other box running an older fetchmail does not induce this error. I'm willing to bet SSL certification verification was enabled between the two versions. I think so, too. Finally, I did portupgrade ca_root_nss to 3.11.9_2, now everything works as intended. So the problem is solved and I made a written note to my holy pages how this problem could be solved. -- 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: X11: 1280x768
On Tue, 11 Nov 2008 10:08:54 +0100 (CET), Pieter Donche [EMAIL PROTECTED] wrote: OK, that was it for the keyboard matter. Thx.. No problem, it's all standard stuff. :-) Similar question: my portable is 1280x768 pixels, but KDE comes up in 1024x768, making 'wide' icons and text :-( I tried to add in the /etc/X11/xorg.conf in Section Screen for all entries in Subsection Display (different Depths), a line Modes 1280x784 ... but this does not help.. In KDE menu / Settings / peripherals / Display / the only choice for Screen Size remains 1024x768 without alternatives (as before) ... How to remedy? I'd suggest to do something similar like with the keyboard: Put it explicitely into xorg.conf; I mean, autodetect is all fine, but in some cases, just crap comes out. :-) I had a similar problem here: X would only run 1024x768 or 1152x864, but not 1400x1050 as I would have liked it on a 21 CRT. So I did this: First, modify /etc/X11/xorg.conf: Section Screen Identifier Screen0 Device Card0 Monitor Monitor0 Option Accel DefaultDepth24 SubSection Display Depth 24 Visual TrueColor Modes 1152x864 EndSubSection EndSection This starts X in 1152x864. You'll see that there's not the usual bunch of depths and modes, just the one I want. Then, I put this into ~/.xinitrc: xrandr --size 1400x1050 xrandr --fb 1400x1050 Put it before any other program starts, and it leads to the desired screen dimension of 1400x1050. I'm sure you can play a bit with xrandr from within KDE in order to adjust the screen dimensions, and when you found it working, put it into your ~/.xinitrc so it will take effect after login. But NB that xdm / kdm won't be affected - it will run as xorg.conf specifies. You can check with xrandr's information options (refer to man xrandr) and xvidtune. -- 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: X11: 1280x768
On Tue, 11 Nov 2008 12:27:55 +0100, Mel [EMAIL PROTECTED] wrote: I have a vague recollection of this card putting 1024x768 before 1280x768 in the mode list it returns, so that it defaults to 1024x768, but I'm not sure where or when I read that. Either way, hardcoding the desired modeline (without typos) in xorg.conf should work. There's an additional means of force to explicitely request a certain mode: Option PreferredMode 1280x768 I think it should be placed into the section Monitor. maybe this helps, but it can also block the machine (I had this). -- 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: trouble getting x11 xdm to work
On Tue, 11 Nov 2008 19:48:51 +0800, Fbsd1 [EMAIL PROTECTED] wrote: Startx works ok so not xorg problem. Next question is are the xdm configuration files suppose to work as delivered by the port install AS IS? As a default config demo? Ha - xdm configuration files memory flash ahead! :-) Go check them. They are located in /usr/local/lib/X11/xdm. I have two modified files: lrwxr-xr-x 1 root wheel 23 Mar 18 2008 Xresources@ - /etc/X11/xdm/Xresources lrwxr-xr-x 1 root wheel 23 Mar 18 2008 xdm-config@ - /etc/X11/xdm/xdm-config (It's in /etc for custom lazyness, but you can make changes to the files in the original xdm directory if you want.) But I think you didn't change these files, so everything should still be the standard settings... so I need to say, this would not be the source of the problem... If I just knew how I solved the problem you're describing... I really had this once, and I think the solution was very simple, allthough it wasn't obvious, and maybe had nothing to do with X... After all, the obervation indicate that X isn't started correctly for xdm, but what surprises me is that X is started correctly from a regular user's account... Mysterious... VEB Mysteron Merkwürdigkeitenwerk Karl-Marx-Stadt... :-) -- 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: X11: 1280x768
I found something strange: On Tue, 11 Nov 2008 13:28:53 +0100 (CET), Pieter Donche [EMAIL PROTECTED] wrote: -- xorg.conf -- [...] Section Screen Identifier Screen0 Device Card0 MonitorMonitor0 SubSection Display Viewport 0 0 Depth 1 Modes 1280x768 EndSubSection SubSection Display Viewport 0 0 Depth 4 Modes 1280x768 EndSubSection SubSection Display Viewport 0 0 Depth 8 Modes 1280x768 EndSubSection SubSection Display Viewport 0 0 Depth 15 Modes 1280x768 EndSubSection SubSection Display Viewport 0 0 Depth 16 Modes 1280x768 EndSubSection SubSection Display Viewport 0 0 Depth 24 Modes 1280x768 EndSubSection EndSection You have many depth entries (why not just one with the depth you want to use?), but the setting DefaultDepth seems to be missing. Section Screen Identifier Screen0 Device Card0 Monitor Monitor0 Option Accel DefaultDepth24 SubSection Display Depth 24 Modes 1280x768 EndSubSection EndSection How about trimming your section down (as above), just to eliminate possible causes for the problem? From the log file, there are minor warnings that don't matter. The rest seems to look completely okay... no reason why the selected mode should not get set. -- 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: root /etc/csh
On Tue, 11 Nov 2008 10:13:02 -0500, Jerry McAllister [EMAIL PROTECTED] wrote: Probably is the main reason, though another is that some things may be written assuming a particular shell. Not a good practice, but happens. Especially in Linux, it's common to prefix scripts with #!/bin/bash which won't work in FreeBSD, because it's #/usr/local/bin/bash there. Linux has no problem running #!/bin/sh scripts because there's a symlink /bin/sh - /bin/bash. My advice for maximum interoperability and compatibility between Linux and UNIX: If you're not using any bash specific techniques in your scripts, start them with #!/bin/sh instead of #!/bin/bash. The sh shell is the UNIX standard scripting shell, while Linux's one is bash. -- 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: tool to recover fat partition
On Wed, 12 Nov 2008 18:32:14 -0200, Gonzalo Nemmi [EMAIL PROTECTED] wrote: So ... newfs_msdos /dev/insert_typo_in_here .. new filesystem succesfully created ... lost partition on the wrong drive ... Is there a tool to recover the files on said partition in FreeBSD (7 release)? Thanks for you help :) It seems my problems can at least be helpful to someone else. :-) There are many good tools for recovering data from MSDOS partitions, but you'll have to check which one serves your particular needs best, depending on the amount of damage done to the file system. From the ports, there's magicrescue in the first place for file recovery. To scan and repair disk partitions, you can use testdisk. If everything else fails, go use the basics: The Sleuth Kit with its dls, dls or ils tools. There's helpful documentation installed that gives informations not mentioned in the manpages. I would recommend you do first do a dd copy of the drive, just in order to do no harm to the partition where your important files are located. Then, do all operations on the dd image, it's mich more safe. If dd is not possible, use dd_rescue or ddrescue. For most operations, it's good to use mdconfig to put the dd file onto a md device which is then used by the particular program. I can imagine how you feel about data loss, so good luck! -- 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: tool to recover fat partition
On Wed, 12 Nov 2008 18:32:14 -0200, Gonzalo Nemmi [EMAIL PROTECTED] wrote: So ... newfs_msdos /dev/insert_typo_in_here .. new filesystem succesfully created ... lost partition on the wrong drive ... Is there a tool to recover the files on said partition in FreeBSD (7 release)? Thanks for you help :) It seems my problems can at least be helpful to someone else. :-) There are many good tools for recovering data from MSDOS partitions, but you'll have to check which one serves your particular needs best, depending on the amount of damage done to the file system. From the ports, there's magicrescue in the first place for file recovery. To scan and repair disk partitions, you can use testdisk. If everything else fails, go use the basics: The Sleuth Kit with its dls, dls or ils tools. There's helpful documentation installed that gives informations not mentioned in the manpages. I would recommend you do first do a dd copy of the drive, just in order to do no harm to the partition where your important files are located. Then, do all operations on the dd image, it's mich more safe. If dd is not possible, use dd_rescue or ddrescue. For most operations, it's good to use mdconfig to put the dd file onto a md device which is then used by the particular program. I can imagine how you feel about data loss, so good luck! -- 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: tool to recover fat partition
On Wed, 12 Nov 2008 18:32:14 -0200, Gonzalo Nemmi [EMAIL PROTECTED] wrote: So ... newfs_msdos /dev/insert_typo_in_here .. new filesystem succesfully created ... lost partition on the wrong drive ... Is there a tool to recover the files on said partition in FreeBSD (7 release)? Thanks for you help :) It seems my problems can at least be helpful to someone else. :-) There are many good tools for recovering data from MSDOS partitions, but you'll have to check which one serves your particular needs best, depending on the amount of damage done to the file system. From the ports, there's magicrescue in the first place for file recovery. To scan and repair disk partitions, you can use testdisk. If everything else fails, go use the basics: The Sleuth Kit with its dls, dls or ils tools. There's helpful documentation installed that gives informations not mentioned in the manpages. I would recommend you do first do a dd copy of the drive, just in order to do no harm to the partition where your important files are located. Then, do all operations on the dd image, it's mich more safe. If dd is not possible, use dd_rescue or ddrescue. For most operations, it's good to use mdconfig to put the dd file onto a md device which is then used by the particular program. I can imagine how you feel about data loss, so good luck! -- 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: root /etc/csh
On Fri, 14 Nov 2008 11:49:35 -0800 (PST), GESBBB [EMAIL PROTECTED] wrote: The point is that I would want it to work seamlessly between different flavors of *nix and FBSD. Since there seems to be a lack of consistency as to where 'Bash' is installed on different OSs, I find that using the notation I described works best and seems to improve the portability of the scripts. Since most of the scripts that I write are 'Bash' specific anyway, the fact that it would not work if Bash was not installed is of little importance. I'm not sure if you can assume /usr/bin/env exactly in this position on every UNIX system. In order to gain maximum portability, keep things simple and try to use sh as scripting shell. If that's not possible, you could add a check (using which) for bash's availability, outputting to stderr if bash is not present, just like a kind of wrapper script that calls your bash specific script. Maybe that's not very elegant, but it seems to be a good solution. By the way, this also works with Perl as you no doubt know. I cannot count how many times I have installed a Perl script and then had to modify the 'shebang' in order to get it to work in FBSD. I know that I could probably make some symbolic links or whatever; however, I feel that, that is the wrong way to get things to work properly. That's correct. Adding symlinks to structures controlled by the package management system or the OS itself can lead into 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: make doesn't know how to make KERNCONF
On Sat, 15 Nov 2008 10:23:50 -0500, Lowell Gilbert [EMAIL PROTECTED] wrote: No, the shell isn't interpreting anything in that command line (the variable assignment is interpreted by make itself), so the command is fine. Maybe the sources aren't completely installed? If I were trying to exercise my psychic technical support powers, I might guess that the system makefiles weren't installed. Check /usr/src/Makefile, /usr/src/Makefile.inc1 and /usr/src/release/Makefile. These files should be up to date when doing a correct update (or at least they should get installed by installing the src distribution). -- 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: Creating network interface in VM?
On Sat, 15 Nov 2008 17:17:25 -0500, Jesse Sheidlower [EMAIL PROTECTED] wrote: I'm running FreeBSD 7.1-BETA2 in a virtual machine in VirtualBox, running on a Linux (Debian) host. [...] I tried to set this up on the FreeBSD side, but I am unable to even create the vbox0 interface: --- # ifconfig vbox0 create ifconfig: SIOCIFCREATE2: Invalid argument --- I'm not sure, but I think what you're searching for would be to have VB create a NIC substitute for the FreeBSD guest OS. When you said, you could reach network from out of the FreeBSD VB, a virtual network adapter. Which interface did you use from within FreeBSD? As far as I know, there's no vbox (pseudo)interface driver in FreeBSD, that's why the ifconfig create command returned an error. -- 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: root /etc/csh
On Sat, 15 Nov 2008 01:19:57 -0500, [EMAIL PROTECTED] wrote: Why doesn't FreeBSD ship bash and other shells besides the `sh' linked statically is beyond me. It wouldn't break ports, would it? I can't speak for FreeBSD's developers, but I think it's a primary philosophy to provide only a set of basic means by the base system, instead of a more or less complete collection of shells, just for the case that someone might want it. Well, bash, zsh or ksh are very powerful tools, but those who want them will surely install them right after the base system. Furthermore, there are those users who are not interested in those shells at all (maybe because they're using GUI stuff only, or maybe because they're completely happy with sh for scriting and csh for dialog mode). For UNIX compati- bility, /bin/sh is sufficient, and csh, configured properly, is an excellent dialog shell. FreeBSD isn't a shell collection, it's an operating system. :-) Just as a sidenote, when you put this into /etc/csh.cshrc, your csh will behave (except scripting constructs, of course) somewhat like bash: set promptchars = %# set prompt = [EMAIL PROTECTED]:%~%# set autolist or set promptchars = # set prompt = [EMAIL PROTECTED] %~ %# set autolist -- 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: re changing from vista
Excuse me for entering this discussin. You're completely right in what you're saying, and I'ld like to add this: On Sat, 15 Nov 2008 21:03:45 -0500, Jerry McAllister [EMAIL PROTECTED] wrote: So, let him learn a meaningful server environment. FreeBSD isn't a server only OS, it's versatile and can be used as an excellent desktop solution. That's what I'm doing since 4.0 - using it exclusively (!) on the desktop. And it's completely possible without the feeling to have something missing. I'm not joking at you, that's my real individual experience. I changed from Linux to FreeBSD, so I had good basic knowledge, and I never had used any Windows before, so I wasn't spoiled by MICROS~1's strange concepts of how to do certain things, so I cannot speak for the vast majority of computer users. :-) To summarize: Unlike the different Windows things, you can use FreeBSD as a desktop, as a server, and for any mixed form of these appliances without any problems. Of course, you'll have to learn *how* to do this, but it's not that you can't learn or do it. FreeBSD will open the door for you to other interesting fields of information technology. The things you've learned using FreeBSD will help you using OpenBSD or NetBSD, or Solaris and oder UNIXes. If you've understood the generic principles, the whole world is open to you. FreeBSD always meant fun to me using the computer. I hope you'll feel so, too. In a world without walls and fences - who needs windows and gates?! :-) Don't be frightened, try out FreeBSD. -- 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: Installing HP LaserJet 4+ in CUPS
On Sun, 16 Nov 2008 14:38:40 -0700, Andrew Falanga [EMAIL PROTECTED] wrote: Anyway, I'm getting things going again and I remember that I had to install a printer driver from ports for my HP LJ 4+ but I can't remember what it was. Could someone here please refresh my memory? As far as I remember, you can use the normal HP Laserjet 4 PCL or PS drivers (in case the 4+ is PS capable, but PCL 5 won't be a problem for it). I've used a LJ4 with apsfilter for a very long time happily, now using a LJ4000 with the same driver. I'm not convinced that there's a special driver neccessary, but maybe you'll find something in CUPS + foomatic (from ports). -- 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: FreeBSD Media Center
On Tue, 18 Nov 2008 11:21:02 -0500, Gary Hartl [EMAIL PROTECTED] wrote: Hi all; I have an old laptop (Dell Inspiron 7500), P3 550mhz, 256mb ram 20 gig hdd. I am wondering what the validity of putting FBSD on it running VLC or something like that feeding to my tv. Anyone with any feedback on this. Yes, done it. AMD 550 MHz CPU, 128 MB RAM, 6 GB HDD (new 20 GB disk ready to start) with FreeBSD 5. Main utilities were xmms and mplayer, NB no K- or G-mplayer. Worked very well for serving music and videos (allthough not in DVD quality, no DVD drive). Or is there a FBSD Media Center project out either in alpha or beta? I don't know. But in order to utilize a low end machine for the purpose specified you need to taylor a lot. I don't think there's anything preconfigured yet... GUI setting here: WindowMaker, Midnight Commander, X Terminals and some utilities as shell scripts or in Tcl/Tk I wrote myself. -- 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: FBSD 7.1 kern.maxdsiz
On Tue, 18 Nov 2008 15:34:32 -0800, Drew Tomlinson [EMAIL PROTECTED] wrote: The Urchin installation docs [...] contain a note for FreeBSD users waring of a hard coded process datasiz limit of 500 MB and instruct on to set kern.maxdsiz=1073741824 in /boot/loader.conf. However FBSD 7.1 doesn't appear to have this sysctl. How can I do the equivalent of this in FBSD 7.1? Exactly, it is *not* a sysctl setting. It's a loader tunable, as I learned from this list some time ago. Don't search to find it in the sysctl list, you won't find it there. :-) In FreeBSD 7 you should be able to set this setting using the file /boot/loader.conf. I think I had this setting on a FreeBSD 5 machine, I'll go and check. -- 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: Running X without a videocard
On Wed, 19 Nov 2008 10:10:28 -0500, Gary Hartl [EMAIL PROTECTED] wrote: when i do this: export DISPLAY=192.168.0.100:0 xterm first it tells me that export can't befound, I guess that is because it is a built it. Important question here: What's your shell? If you're using FreeBSD's standard dialog shell, the C shell, export won't work because it's from sh or bash. So I added to my .profile the following DISPLAY=192.168.0.100:0 export DISPLAY Logged out and logged back in. Alas no display variable When i run xterm it tells me that there is not display variable. Make sure you're using bash (see your shell setting from the chsh command or echo $SHELL). If you're using the C shell, you can use the setenv command instead. % setenv DISPLAY 192.168.0.100:0 % xterm See the advice regarding xhost in order to have the correct permissions to run the applications from the desired X server. -- 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: ascii text format
On Fri, 21 Nov 2008 10:49:16 +, pwn [EMAIL PROTECTED] wrote: what software/tool can i use for format my *.txt? there is command on VIM like set textwidth but this is not suitable for me. any help i appreciate. Judging from your example text, what you're searching for is a tool to format your text in paragraph mode (block mode) using spaces between the words. I'm not sure if there's already a tool on FreeBSD that does the trick, but you can surely write a simple awk script to do it. I'd suggest something like this: Break each input line into words using the space character as separator. Then, iterate over these words and put spaces after each word; repeat this until you've reached the desired text width. This should be relatively easy to accomplish. Furthermore, you can add an empty string before each output line in order to create a left margin. -- 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: Problem about ppp -nat
Allthough others have already given you good advice, I'd like to add that I'm running here at a similar setting, but without any of these Windows. :-) First of all, I made my kernel capable; significant parts: # Firewall, NAT options DUMMYNET options IPFIREWALL options IPFIREWALL_DEFAULT_TO_ACCEPT options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=500 options IPFILTER options IPDIVERT # PPPoE: netgraph(4) system options NETGRAPH options NETGRAPH_ETHER options NETGRAPH_SOCKET options NETGRAPH_PPPOE If you don't want to compile a custom kernel, it's no problem. As far as I know, the required kernel modules will be loaded automatically. My setting includes two network interfaces, just like yours. Interface xl0 + tun0 is the PPPoE connection to the outside, while interface rl0 is the connection to the (slow) switch where the clients are connected. Configuration in /etc/rc.conf goes this way: ifconfig_xl0=inet 192.168.0.1 netmask 0xff00 ifconfig_rl0=inet 192.168.1.1 netmask 0xff00 media 10baseT/UTP firewall_enable=YES firewall_type=/etc/ipfw.conf gateway_enable=YES named_enable=YES natd_enable=YES natd_interface=xl0 ppp_enable=YES ppp_profile=mydslprovider ppp_mode=ddial ppp_nat=YES The connection is established via /etc/ppp/ppp.conf settings. Then I use a DHCP server to assign IPs to the clients instead of giving them fixed ones. In fact, they are fixed because I set up isc-dhcpd3-server (from ports) to assign IPs according to the respective MAC adresses. :-) Important note to IPFW settings: Have the line add divert natd ip from any to any via xl0 in your /etc/ipfw.conf. If you need to, you can add flags for natd in order to have a certain kind of port or address redirection, such as natd_flags=-redirect_port tcp 192.168.1.5:23 or natd_flags=-redirect_address 192.168.1.2 123.456.789.123 \ -redirect_address 192.168.1.5 123.456.789.123 In any case, go and check your Windows the usual way. Don't forget to do it, instead you'll end up searching for an error on the correctly working FreeBSD installation. :-) Check if the Windows has got the correct IP, if the name server settings are correct and if you can (1st) ping the gateway machine and (2nd) something outside the gateway machine. -- 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: FreeBSD 7.0 fdisk issue during installation
On Fri, 21 Nov 2008 22:41:07 +0100, Jonatan Evald Buus [EMAIL PROTECTED] wrote: If I understand you correctly, then I should only create 1 slice of the entire disk (seeing as FreeBSD will be the only OS) using fdisk and then partition the slice using bsdlabels from sysinstall? Yes, that's the usual way. Sysinstall suggest this way, too, but you can use fdisk and bsdlabel manually, if you want. Previously I was aiming for 5 slices, each of which had a single partition as described below. Not neccessary, as you see. By the way, if you would want to have one disk (harddisk) for your home directories, you wouldn't make any slice on it, you could create just one partition there, for example: /dev/ad0s1b = swap /dev/ad0s1a = / /dev/ad0s1d = /tmp /dev/ad0s1e = /var /dev/ad0s1f = /usr /dev/ad2= /home From your explanation I take it that slices are what Windows refers to as Primary Partitions? Yes. If that's the case then I understand the behaviour I experienced. You understood it correctly. Is it possible to make a slice non-bootable? Yes, by not setting the bootable flag in the slice editor. And would there be any benefits (less fragmentation, faster access time etc.) in using slices rather than partitions to layout the harddrive or should slices only be used to represent a physical harddrive? I don't think it will give you any speed gains when you have, let's say, /dev/ad[0s[12345]c instead of /dev/ad0s1[adefg]. Speed limitations usually occur according to the order harddisks are placed on the (P)ATA bus and how you copy data from one partition to another, for example, a master - slave copy usually is slower than a master - master copy; copies between partitions on the same drive tend to be slower than copies between two physical drives. In daily use, I don't think your suggestion would be of a significant benefit - if it was, it would have been done this way for years already. :-) -- 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: OO, text OR .odt to HTML?
On Sat, 22 Nov 2008 13:43:14 -0800, Gary Kline [EMAIL PROTECTED] wrote: is there a push button way of turning an odt file or plain ascii file into HTML using openoffice? I#ve got no OpenOffice here, but maybe File / Save as... and then file format set to HTML? Or maybe File / Export? I think at least StarOffice had such kind of functionality, so OpenOffice should have, too. -- 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: Changing default colors of syscons / kernel messages
On Sun, 23 Nov 2008 17:42:03 +0100, [EMAIL PROTECTED] wrote: hey again ... ive asked, if somebody could help me with making the bootmanager, the kernel.-booting and shutdown-process green/black colored (like netbsd) ive get no answer yet, i hope, you can still help me ... It isn't the answer to your question, but: 1. Try do use a subject that is in relationship to your question. 2. Try to wrap your lines at approx. column 70, this makes correct quoting easier. I was free to correct them both. :-) Now regarding your question: It is possible to change the color attributes for the kernel messages which FreeBSD usually displays white on black, and OpenBSD grey on blue. As far as I remember - I tried it once -, there are makeoptions in the kernel configuration file to be set. See the handbook section about how to build a custom kernel for the correct procedures. The correct settings are mentioned in /usr/src/sys/conf/NOTES, lines 1339 cont. (1343 cont): # The following options will let you change the default colors of syscons. options SC_NORM_ATTR=(FG_GREEN|BG_BLACK) options SC_NORM_REV_ATTR=(FG_YELLOW|BG_GREEN) options SC_KERNEL_CONS_ATTR=(FG_RED|BG_BLACK) options SC_KERNEL_CONS_REV_ATTR=(FG_BLACK|BG_RED) But I'm not sure you can change the settings for the boot manager itself in an easy way. Maybe a modification of the boot loader's source code makes it possible... -- 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: getpriority(2) and rtprio(2) implementation
On Tue, 25 Nov 2008 20:50:21 -0800 (PST), Unga [EMAIL PROTECTED] wrote: Hi all I need to study the implementation of getpriority(2) and rtprio(2) system calls. Appreciate if somebody could point me to where these system calls are implemented in FreeBSD source tree, that is, in which file/s. getpriority() in /usr/src/sys/kern/kern_resource.c lines 88 cont. rtprio() should be around there, too, /usr/src/sys/kern/syscalls.master I hope this is what you've been asking for. :-) -- 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: getpriority(2) and rtprio(2) implementation
On Wed, 26 Nov 2008 20:14:02 +0100, Mel [EMAIL PROTECTED] wrote: For future ref: find /usr/src/sys -name '*.c' -exec grep kern_$name_of_syscall {} + will catch 99% of the cases. I did check with the Midnight Commander's Meta-? (find): Search from /usr/src in *.c containing getpriority, refined getpriority(int to get the function's prototype and implementation. I'm a lazy guy. :-) -- 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: KDM stopping
On Fri, 28 Nov 2008 09:37:24 +0100 (CET), Pieter Donche [EMAIL PROTECTED] wrote: XDM: If I edit /etc/ttys to use xdm instead of kdm and reboot I get login/password prompt, then a very primitive TWM window manager, These are the default settings (TWM with some xterms). You can edit your ~/.xinitrc in order to launch the window manager or desktop environment you like. When choose exit on the menu (with one gets by left-clicking the mouse) the frames arround the windows disappear and I don't get the menu back, the only thing I can do is to to console mode and shutdown -r now (and first edit /etc/ttys again for kdm) The session controller for this setting isn't the window manager, it is one of the xterms which you can close using the exit command or pressing Ctrl+D when focused. What you did: You terminated the window manager so the xterms are there on their own, without any window manager (you see that you can still select focus, but there are no window decorations). Is there a command to - restart the kdm window manager (after it died) from a root console prompt? I think you can do this using the kdm command. - stop en start a running kwm window manager from a root console prompt? At last, kill X with Ctrl+Alt+Backspace, then run kdm again. Concerning my initial problem - I remember that I wanted to change the home-dir of both user1 and user2, therefore in console as root did a rmuser, then adduser for both. Can this cause this dying of KDM manager? I don't think so, because kdm works on a higher level where the user settings are not important. But... the more I think about it... it could be possible because KDM remembers users that have been logged in and presents a list of users on the system. Maybe it fails to retrieve the needed data, maybe the user database is corrupted or entries refer to non-existing home directories or login shells? -- 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: Copying audio CD with dd/cdrecord produces unplayable CD
On Fri, 28 Nov 2008 23:26:51 -0800, Yuri [EMAIL PROTECTED] wrote: I am trying to copy an audio CD. First I've ran: dd if=/dev/acd0tN of=track-N.cdr bs=2352 for every track. This gets raw track files. Secondly I run: cdrecord -v -dao -audio $* dev=2,0,0 speed=4 This is supposed to recreate the original CD. But when I try to play it I can hear only noise. What I am doing wrong? How to troubleshoot this problem? It sounds like byte order reversal which makes the typical noise. In order to 1:1 copy a CD, I'd recommend the use of the cdrdao tool - cdrdao read-cd and cdrdao write are the commands. It's easy to use them in order to get a CD at once and then reproduce it to blank media. If you need to use cdrecord, you can preprocess the .cdr files with sox -x. You can always use the play command (from sox) to check what your files sound like. This is a sample command to turn .cdr files into .wav files, just to illustrate the correct parameters for interpreting the .cdr (CD audio data) format: sox -r 14400 -c 2 -b -L -S ${OUTFILE}.cdr ${OUTFILE}.wav burncd doesn't work on my system: it breaks with my PIONEER DVD-RW DVR-112D/1.21. I didn't try burncd since FreeBSD 4. Since then, I#m very comfortable with cdrecord and cdrdao and the atapicam facility. -- 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: Copying audio CD with dd/cdrecord produces unplayable CD
On Sat, 29 Nov 2008 00:53:32 -0800, Yuri [EMAIL PROTECTED] wrote: Polytropon wrote: On Fri, 28 Nov 2008 23:26:51 -0800, Yuri [EMAIL PROTECTED] wrote: If you need to use cdrecord, you can preprocess the .cdr files with sox -x. You can always use the play command (from sox) to check what your files sound like. 'sox -x' fails for some tracks with the message: sox formats: no handler for detected file type `video/x-unknown' Strange... are these definitely audio CD tracks? You could use this form to explicitely tell sox how to interpret the data (which is headerless on audio CDs, of course): sox -r 14400 -c 2 -b -L -S -x track.cdr track_rev.cdr This describes CD audio as 14.4 kHz stereo 16 Bit (little endian - to be swapped). From the manual: -1/-2/-3/-4/-8 The sample datum size is 1, 2, 3, 4, or 8 bytes; i.e. 8, 16, 24, 32, or 64 bits. The flags -b/-w/-l/-d which are respectively aliases for -1/-2/-4/-8, and abbreviate byte, word, long word, double long (long long) word, are retained for backwards compatibility only. Seems like I'm a bit old fashioned. :-) and for some other tracks with these errors: sox mp3-duration: recoverable MAD error sox mp3-duration: MAD lost sync sox mp3-duration: recoverable MAD error sox mp3-duration: recoverable MAD error This looks like that sox reads / generates MP3 files...? Are these definitely standard audio CD tracks (such as every old fashioned CD player can play)? -- 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: Noisy mouse
On Sat, 29 Nov 2008 13:43:45 +0200, Roey Dror [EMAIL PROTECTED] wrote: I'm using FreeBSD 7.0 (i386) with the IceWM window manager. The sound seems to work when playing files with xmms. When my speakers are turned on, I hear noise whenever I move my mouse or make a keystroke. Is this a bug, or a strange feature? How do i turn it off? I have a similar observation here, allthough you can hear the noisy mouse only when the mixer settings vol is 100. In my opinion, this seems to be a kind of electromagnetic interference, but I didn't test this theory yet. Or it has to do with data fransfers during mouse movement / keystrokes? USB uses polling, but maybe some weird interrupt problem? Anyone remembers Sound Blaster problems when printing on a parallel printer (IRQ7)? My settings are different from yours: % uname -r 7.0-STABLE (ca. Aug 2008) % cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) Installed devices: pcm0: CMedia CMI8738 at io 0xd800 irq 16 [MPSAFE] (1p:1v/1r:1v channels duplex default) % dmesg | grep pcm pcm0: CMedia CMI8738 port 0xd800-0xd8ff irq 16 at device 7.0 on pci3 pcm0: [ITHREAD] % sysctl -a | grep snd hw.snd.latency_profile: 1 hw.snd.latency: 5 hw.snd.report_soft_formats: 1 hw.snd.compat_linux_mmap: 0 hw.snd.feeder_buffersize: 16384 hw.snd.feeder_rate_round: 25 hw.snd.feeder_rate_max: 2016000 hw.snd.feeder_rate_min: 1 hw.snd.verbose: 1 hw.snd.maxautovchans: 16 hw.snd.default_unit: 0 hw.snd.version: 2007061600/i386 hw.snd.default_auto: 0 As you described, moving the mouse and pressing keys on the keyboard result in strange sound effects. I have a Sun USB type 6 keyboard + type 6 mouse. I'm using a separate sound card (PCI) because I diskike the AC'97 CPU sound card emulation. :-) -- 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: for awk experts only.
Good morning! On Sat, 29 Nov 2008 20:59:51 -0800, Gary Kline [EMAIL PROTECTED] wrote: wordnet/wn prints the string noun out whereas I'd rather it simply printed n. Is there a way of making this substitution using awk? (I've never used awk except as a cmdline filter.) The following fails: wn foot -over |grep Overview |awk {if(!strcmp($3,noun))$3=n.; '{printf(%s %s\n, $4, $3);}}' Of course. You cannot have $3 as a lvalue (read: You cannot change its value). If there are any shortcuts, please clue me in! Don't make it more complicated than it is. :-) % wn foot -over | grep Overview | awk \ '{ printf(%s %s\n, $4, gsub(noun, n., $3)); }' And the more I think about it, the more I believe there are much easier ways to do this. But I'm sure the magic of how it works just opened up to you. Sidenote: I wouldn't consider myself as an AWK expert allthough I did abuse AWK lately to implement a stastistical evaluation program for blood sugar data into a PDF file with diagrams a CVS file, involving gnuplot and \LaTeX{}. =^_^= -- 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: for awk experts only.
Replying to my own message: I found a point for improvement. Why use grep when awk can grep by itself? % wn foot -over | awk '/Overview/ { printf(%s %s\n, $4, gsub(noun, n., $3)); }' Ah, much better. :-) -- 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: for awk experts only.
On Sat, 29 Nov 2008 22:52:10 -0800, Gary Kline [EMAIL PROTECTED] wrote: What you have above prints: foot 1 // noun foot 0 // verb so doesn't work entirely, but is a good start. I'm so stupid. gsub() does not return the result of the substitution (as, for example, sprintf() would return the string), but the success of the substitution, 1 or 0. (BTW, man gsub turned up nothing, so I'm assuming thhat gsub it part of awk. Yes, gsub is listed in man awk because it's a function from within awk. I've just pkg_add'ed -r WordNet and tried: % wn foot -over | awk '/Overview/ { printf(%s %s\n, $4, ($3 == noun) ? n. : ); }' foot n. foot Of couse, this handles only noun. If you want to abbreviate other kinds of words (e. g. verb - v., adverb - adv., adjective - adj.), it would be better to implement a short awk script as a wrapper for the wn command. If you're only interested in the first result mentioned, you could test NR == 1. % wn foot -over | awk '/Overview/ (NR == 2) { printf(%s %s\n, $4, ($3 == noun) ? n. : ); }' foot n. -- 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: Which FreeBSD is best for my PC?
On Sun, 30 Nov 2008 23:54:38 -0800, Harry Veltman [EMAIL PROTECTED] wrote: Which version and GUI will work best on the internet with my AT Pentium II 350MHz x86-based PC? Allthough the FreeBSD base system gets better and faster in each version, the additional software and the GUI toolkits that belong to them eat up more and more ressources. Regarding the OS, you're be best off with the newest version of FreeBSD (version 7). This enables you to use the software that is present from the source tree of the ports collection or from the precompiled packages. Regarding GUI, I think you're talking about the window manager or desktop environment. It depends on your individual preferences and what / how / how much you're willing to learn. For example, I use WindowMaker as my window manager, but on slower systems, XFCE 3, Fluxbox, IceWM or even FVWM perform well and can be configured easily and according to your needs and preferences. On a system as you described it initially, you will need to build a system by your own in order to get best performance. When you did it correctly, you'll have an entirely good system - I know it, I have such an oldie, too. :-) Then you need to choose your software (multimedia players, browser, mail client etc.), what you're going to use. Finally, it's a bit trial and error, read: You'll have to test by yourself what fits your needs. There's nothing that is intended to fit per se. I can't answer your question regarding Flash and encryption; sadly, I never saw any need for this. -- 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: Which FreeBSD is best for my PC?
On Mon, 1 Dec 2008 11:53:11 +0100, Mel [EMAIL PROTECTED] wrote: We have a few oldies, just installed KDE 3.5 on a: CPU: VIA Nehemiah (997.17-MHz 686-class CPU) Origin = CentaurHauls Id = 0x698 Stepping = 8 Oldie @ 1 GHz? You must be joking. I'd bite my hand off for such hardware. :-) That's pretty much as low as I'd go for normal desktop usage. For KDE? Yes, I do understand that. I would not even think about trying KDE or Gnome on a 300 MHz box. But desktop usage != KDE. KDE = preconfigured desktop with many built-in functionalities. I think Gnome has gotten pretty much the same like KDE in terms of ressource consumption. (I can't tell for sure, I'm not using it on a daily basis.) What about XFCE 4? Maybe that would be a good point to start, unless of couse the toolkit is too heavy... The machine you're describing, still makes for a good router or LAN resolver with low traffic webserving. I have such an oldie, P2 300 MHz, 256 MB RAM, ATI graphics (it's a Compaq Deskpro), FreeBSD 5.4, XFCE 3, OpenOffice 1.1.5, custom kernel, mplayer (compiled), xmms, Opera 7, Sylpheed. I'm not lying: This machine performs better in some regards than my 2 GHz P4 with FreeBSD 7! Applications come up faster, screen output renders faster. And even things that don't work on my fast system (wine, screen resolution in X, duplex printing) work excellently there. I've got no explaination for this, but it's true. As a server most oldies are good if they run well. The point of energy consumption is worth mentioning. I have an experimental server here, it's a P1 150 MHz with 128 MB RAM. For learning purposes completely sufficient to me. Backup machine if disks are good. Or backup server if added some exchangable media (tape / DVD-RAM), inexpensive solution for automated data backup. Getting a decent performing desktop on there is as Polytropon said, a project you'd do for fun, not cause you need a desktop. That's correct. But hey, you learn a lot by building such a system, and in the end, you have your ultimate desktop right fitting your needs - not what the developers of let's say KDE are convinced you're wanting. That's a lot of work, I know, but once you're done, you can dump / restore this system to other machines of that kind (eventually needing to change some settings). The final quality of the machine is a direct result from the work you will decide to put in it. If you just want to do fast, fast, the machine will be sloow... :-) -- 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: Noisy mouse
On Mon, 01 Dec 2008 08:40:57 -0500, Bryant Eadon [EMAIL PROTECTED] wrote: I've actually had this happen before. Somewhere along the line either : 1. your audio and mouse/keyboard cables are coming into close proximity to one another. or 2. Your mouse/kb cable is very close to a specific speaker. Number 2 is untypical. Using headphones or external speakers, even an external (and distant) amplifier with speakers leads to the same observation. As it has mentioned before, this seems to be an effect of interferences either in the area of the connection cables or within the computer (AF signal processing and amplification gets interference signals from keyboard / mouse connections). The solution is to move your mouse cable away from your speakers/cables. But not if the problem is within the computer (read: the mainboard and the expansion cards). I guess you could shield it if you can't move it. Tinfoil around only the one cable at close proximity sections should do the trick. Or the use of home-made shielded cables. :-) -- 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: open multiple xterms with script
On Tue, 2 Dec 2008 10:07:47 +0200, Aggelidis Nikos [EMAIL PROTECTED] wrote: hi to all the list, i need some help... Is it possible to open four consoles as root(authenticate yourself once), in each one run a specific program and do this through a script? {bash or python). i want to open 4 xterms in the four corners of the screen. In 3 xterms i want to run specific applications needing root privileges and the last i want it for administrative purposes. what i have so far: sudo xterm -e path/to/application1 sudo xterm -e path/to/application2 sudo xterm -e path/to/application3 sudo xterm But this approach has the following problems: 1) i have only managed to get it to work as sudo not su 2) i haven't managed to position the 4 terminals correctly in the 4 corners of the screen Maybe this is a solution for you (or at least a point to start): #!/bin/sh xterm -geometry blahblah -title App 1 -e su root -c app1 xterm -geometry blahblah -title App 2 -e su root -c app2 xterm -geometry blahblah -title App 3 -e su root -c app3 xterm -geometry blahblah -title App 4 -e su root -c app4 The -geometry is set as ROWSxCOLS+X+Y, e. g. 80x25+0+0 for the upper left corner. See man xterm for further options as you could need them. 3) i want to be able to close and restart a single terminal.without running again the whole script (this i am not sure if it is even doable). For example if one of the applications hungs, then i want to be able to restart this application, without running the whole script again. You could create a wrapper script that calls four scripts which only start one of the four applications each. ~/bin/run_1: #!/bin/sh xterm -geometry blahblah -title App 1 -e su root -c app1 ~/bin/run_2: #!/bin/sh xterm -geometry blahblah -title App 2 -e su root -c app2 ~/bin/run_3: #!/bin/sh xterm -geometry blahblah -title App 3 -e su root -c app3 ~/bin/run_4: #!/bin/sh xterm -geometry blahblah -title App 4 -e su root -c app4 ~/bin/run_all: #!/bin/sh ~/bin/run_1 ~/bin/run_2 ~/bin/run_3 ~/bin/run_4 Not very elegant and tidy, but should work. You could add some checking to the first script mentioned so it gets a clue which application is *not* running and restart it when called, not starting those that are running again (second session). -- 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: UFS partitioning
On Tue, 2 Dec 2008 10:56:44 +0100 (CET), Pieter Donche [EMAIL PROTECTED] wrote: If FreeBSD is to put on the system as only operating system (Fdisk: A = Use Entire disk), then will the BSD-partitions will show up as ad0a (/), ad0b (swap), ad0d (/var) etc... correct or not (then what)? You're mixing terminology here. :-) The use entire disk will create a slice for FreeBSD covering the complete disk. A slice is what MICROS~1 calls primary partition. Now the conclusion: Let's say you create a slice on ad0, it will be ad0s1. Now you can create partitions inside this slice as you mentioned it, e. g. ad0s1a = /, ad0s1b = swap, ad0s1d = /tmp, ad0s1e = /var, ad0s1f = /usr and ad0s1g = /home. But if you're refering to ad0a, ad0b, ad0d etc. you're stating that there's no slice, implying that (if I see this correctly) it isn't possible to boot from that disk. Of couse, if you would intend to use a (physical) second disk for only the home partition, you could omit the slice and the partition and simply newfs ad1 - but that wasn't your question. ad0 |---| the whole disk ad0s1 \--/ one slice ad0s1X \--/\---/\-/\-/\---/\/ partitions a b d e f g / swap /tmp /var/usr /home mount point In case of dual booting, you usually have more than one slice on your disk, but what happens inside the FreeBSD slice is mostly the same. Page 427 of the FreeBSD handbook states that due to the use of 32-bit integers to store the number of sectors is limited to 2^32 -1 sectors/disk = 2 TB. A layout could be a / 1Gb, b swap, d /root 20 Gb, (a /root partition is from an example of someone who claims that at boot FreeBSD checks the partions in background except for the / partition, by keeping / as small as possible, the time to boot can be mimimized .. correct? but will /root ever be something big ??) No no, / refers to the root partition. One way of setting up püartitions is just to have one partition (one root parttion) and put everything on it, including /tmp, /var, /usr and /home. Another philosophy is to create partitions designated to their further use, just as I mentioned it above. For /, you would hardly need more than 1 GB. It just contains the kernel, basal system binaries, the configuration files and the directories that are mount points for all the other file systems. Even a 256 MB / partition should be enoung. e /tmp 20 Gb, f /var 20 Gb, g /usr 20 Gb this leaves 2420 Gb which is more than 2 Tb, so you can't put all that in 1 filesystem h /home, you will need to split that in 2 BSD-paritions, but since you can't have more that 8 BSD-partitions (highest BSD-partition letter is h), you need to give up at least one of d, e, f, g. ... correct or not (then what)? I quite doubt that FreeBSD's UFS 2 cannot handle a 2 TB partition as a whole, but because I don't have sch large disks with UFS (I have ZFS for them), I cannot tell. PS. Corrected subject (was missing). -- 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: UFS partitioning
On Tue, 2 Dec 2008 11:53:23 +0100 (CET), Pieter Donche [EMAIL PROTECTED] wrote: I know / is the root partition, but /root is the home-directory of the user root (/etc/passwd: root:*:0:0:Charlie :/root:/bin/csh). I doubt this will ever be needed to be large? There is no special advice about what /root should contain. As you mentioned correctly, this content belongs to the system administrator root. In the most cases I've seen, root stores a backup of configuration files and useful scripts that no one else should be able to use. And when you take into mind that many users use the sudo command instead of logging in as root, there's less use for this directory. My thought: It won't get large. If its not large fsck neither will spend much time in it. So I guess it's just safe not to make this a separate BSD-partiton ? No separate partition, correct. It's okay to make / at 1 GB max, and fsck won't run for long. Yes, but it's hard to find out what is best... I'm constantly swinged between the one (/ including /tmp /var /usr) and the other (all separate) option ... In fact, there is no the best, it completely depends on what you're going to do with the system. It has been explained before, but I'd like to mention some advantages of the partitions approach and the one partition approach: The first one allows you to dump / restore data partition-wise, but when a partition is occupied 100%, the trouble starts. You don't have this problem when you have everything on one partition, but a runaway disk space consumer (e. g. a faulty program) can occupy all disk space causing problems for processes that would like to write to /tmp or /var. Finally, changing the paradigm would usually be combined with a complete re-installation. -- 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: open multiple xterms with script
On Wed, 3 Dec 2008 09:58:52 +0200, Aggelidis Nikos [EMAIL PROTECTED] wrote: some additional questions: 1) is there any way to give the root password once? i tried this: #!/bin/sh su root -c \ xterm -geometry 80x25 -title 'App 1' -e 'app1' xterm -geometry 80x25 -title 'App 2' -e 'app2'\ but i get this: xterm Xt error: Can't open display: %s Exactly. When you su root, $DISPLAY is not set, so you would have to set it first, maybe like this: #!/bin/sh su root -c \ export DISPLAY=:0.0; \ xterm -geometry 80x25 -title 'App 1' -e 'app1' xterm -geometry 80x25 -title 'App 2' -e 'app2' \ 2) Is there any way to instruct xterm not to close after the execution of the program? You could do this: xterm -geometry 80x25 -title 'App 1' -e 'app1 ; csh' which would start your prefered dialog shell when app1 has finished. The dialog shell would run even if app fails (thatÄs why I suggest using ; instead of ). So basically the idea is open 4 terminals, execute a specific command inside them but if the command finishes or stops, the terminal stays {with a new prompt}. This sould be able to be achieved using the example above. -- 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: Mounting ext3fs partition
On Wed, 3 Dec 2008 20:45:23 +0100, Fernando Apesteguía [EMAIL PROTECTED] wrote: But if I enter the mount point and do ls, I get: ls: /mnt/linux: Bad file descriptor What am I doing wrong? Do you get the same error when the Linux partition is not mounted? I'm asking because I have a similar problem caused from a defective / missing inode. -- 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: Mounting ext3fs partition
On Wed, 3 Dec 2008 20:59:42 +0100, Fernando Apesteguía [EMAIL PROTECTED] wrote: Any clues? From ports: sysutils/e2fsprogs? I don't have a Linux partition here so I cannot check / confirm. Maybe you could use ext3.fsck from this port to check the file system before mounting it? -- 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: IPFW Firewall Question
Often discussed and adviced... On Thu, 4 Dec 2008 16:26:04 -0800 (PST), G magicman [EMAIL PROTECTED] wrote: here is part of the configuration file so far that the Co-lo people put in. [...] #!/usr/local/bin/bash When possible, use the STANDARD form: #!/bin/sh Declare #!/usr/local/bin/bash only if you're intentionally using BASH specifig functionalities that SH doesn't include. May save you lots of headache. 2. short of a reboot how do you start stop and restart the firewall You can use ipfw's rc.d script: # /etc/rc.d/ipfw start # /etc/rc.d/ipfw stop # /etc/rc.d/ipfw restart Just a small note, but I hope it will help you. -- 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: Image Programs
On Fri, 05 Dec 2008 07:00:43 +0100, Frank Bonnet [EMAIL PROTECTED] wrote: G magicman wrote: Hello does anyone know the following 1. Does Freebsd have a program like Photoshop avail to use a copy-left GNU license type ? and a form of Thumbsplus which allows me to do rudimentary picture manipulations changing file type, cropping etc. i have all the 3d programs but not these 2 basic ones. Thank you http://www.gimp.org For now, The Gimp has been suggested many times. I've heard from users that there's Gimpshop to make The Gimp's excellent interface look like the one of Photoshop for those users who want it. Personally, I find the original Gimp interface isn't as bad as claimed by many users who are spoiled by the Windows way of doing things. :-) Furthermore, there's Krita, if you're already using KDE. For automated image manipulations, ImageMagick and especially its convert command are very useful and powerful (!) tools. What about Inkscape? Tried this one? But finally, for professional use, The Gimp seems to be the best program availabe at the moment. -- 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]
DVD cloning tool
Hi! I'd like to ask which program is the proper tool to copy a DVD(+|-)R 1:1 to another media of the same kind? It would be great if the program would have a good error tolerance for slightly defective media (which is a usual problem with cheap DVDs). I've always used cdrdao read-cd and afterwards cdrdao write for CD-R, but I cannot use this tool for DVDs, right? So far I've used growisofs to record pre-mastered ISO file systems, but I don't want to make it that complicated (mound source DVD, mkisofs, growisofs / burn this ISO to destination DVD) if it can be avoided. It's not neccessary to perform this operation from one drive to the other, it's okay to have a temporary file (first read, then burn). -- 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: DVD cloning tool
On Fri, 5 Dec 2008 09:42:58 -0600, Andrew Gould [EMAIL PROTECTED] wrote: If your CD or DVD is loaded (not mounted) at /dev/cd0, the following command will create an iso image in the current directory: dd if=/dev/cd0 of=filename.iso bs=2048 If you want an easy process, you can put this in a script, followed by a growisofs command to burn the file to another DVD device, allowing the script to overwrite the previous DVD iso file. Or you could write a script where you supply a name for the iso image file to maintain backup images. Thanks, dd is a good suggestion for ISO data. But what I need is a 1:1 copy no matter what the DVD actually contains - I know, I didn't mention this in a clear way, sorry. For example, the cdrdao command I mentioned before does copy the source 1:1 to the destination media, for cases such as - an ISO image (data CD) - audio tracks (music CD) - VCD - SVCD - video files without ISO enclosing (yes, my standalone player runs these, and it's easy to mplayer -fs /dev/cd0 to watch a movie that is an AVI or MPG file) - an ISO image *and* audio tracks I'm searching for the same functionality applyable to DVD, so I can easily clone video DVDs I made, as well as data DVDs or DVDs with audio tracks (yes, this works, too). -- 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: FreeBSD /dev/fd0
As it has been mentioned before, it's questionable if there is any support for parallel floppy disk drives in FreeBSD. But there is support for USB driven external floppies, this is done via the ufd driver. On Sun, 07 Dec 2008 02:32:36 -0500, Cynical Nihilist [EMAIL PROTECTED] wrote: Hi, I am having issues configuring and using my external floppy drive on FreeBSD 7.0-RELEASE. It's a parallel port floppy drive. /dev/fd0 is not present and dmesg shows fdc0: floppy drive controller (FDE) port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] when using dmesg | grep fd Correct, this is at least a floppy disk controller (fdc) which seems to be present in the chipset of your mainboard, but this doesn't neccessarily imply that there are any floppy drives. parallel port is working properly and I can read/write from it. You could write a pdf driver on your own. :-) -- 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: bashrc configuration question: syntax error: unexpected end of file
On Tue, 09 Dec 2008 13:28:11 -0800, Noah [EMAIL PROTECTED] wrote: Hi there, I am unable to figure out why I am getting the following error: -bash: /Users/user/.bashrc: line 10: syntax error: unexpected end of file localhost:~ user$ The only thing that comes into my mind is this line from your .bash_profile: source ~/.bashrc I'm not sure, but according to the builtin manpage, sh does not understand source, so maybe bash doesn't, too? For file inclusion, . is the correct form as it occurs in your .bashrc file. By the way, it would be good if you would include line numbers, using cat -n filename. :-) -- 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: Why FreeBSD not popular on hardware vendors
On Thu, 11 Dec 2008 07:19:14 -0500, Jerry [EMAIL PROTECTED] wrote: Define: 'Actual Work'? What you are referring to is that it meets your criteria. Everyone's work platform might not be so narrow. ometimes, actual work may be entertainment, gaming, or programming obscure hardware platforms. :-) I use FreeBSD for may things; however, it is by no means a perfect system. There are just too many things that either don't work, or don't work well. I may say this: At home, I'm using FreeBSD exclusively since approx. 2000 (at least since release 4.0). Here everything worked without any (!) problems, no need for problem reports. At work, FreeBSD and Solaris are present. For some fields of use, I would not FreeBSD instead of Solaris. However, I found no operating system that could replace FreeBSD in the fields where I use it. As in many other topics, this is only my very individual point of view. I do see FreeBSD's problems in most cases where hardware support isn't up to date, but that's mainly a thing of the hardware manufactureres that (a) build black boxes or (b) do not use existing standards, so accessing their hardware is a problem. Other problems are usual entertainment stuff that seems to hook that deeply into the operating system that it leads into problems - yes, I'm talking about Flash especially. Hardware vendors are mostly interested in operating systems that already have a huge market share. Allthough FreeBSD is a very professional OS and has a growing usage share, its market share isn't that big, so it is considered to be unimportant. Furthermore, FreeBSD is considered to be an OS for servers, allthough it scales very well from desktops over mixed forms to servers. And servers usually don't contain bleeding edge GPUs and strange WLAN USB sticks, so that's why the support isn't that good. Personally, I'd prefer an OS that supports a narrow subset of hardware excellently and efficiently instead of an OS that claims to support everything, supports most things poorly and through binary blobs where you can't be sure what it actually does. -- 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: Why FreeBSD not popular on hardware vendors
Let me jump in again here. On Thu, 11 Dec 2008 13:46:22 -0800, prad p...@towardsfreedom.com wrote: so performance, networking (and presumably serving), storage, administration and documentation would seem to be major matters of concern. That's a valid point. I definitely don't want to see these things changing. Because I have to administer and to program on FreeBSD, I enjoy (!) the excellent documentation. Everything is there, from system binaries, configuration files, maintenance procedures, system calls and kernel interfaces. Just look into the Linux world - you don't find this fine quality there very often. It seems to develop into a common habit that documentation is to be done by the users and to be published in Wikis and web forums. Personally, I prefer the old fashioned man command. Furthermore, FreeBSD's source code is written in a very good manner: tidy and self-explaining. The administration of the FreeBSD OS is, due to its good documentation, very easy. You can use editors as you wish, or add GUI frontends. But you don't have to if you feel that you work faster without all the pomp and pipes, turn and whistle. :-) There are no stupid programs that know better than you and then break your configuration. so this would seem to clarify specific uses. the last bit about desktops is certainly true - freebsd is an excellent foundation for any desktop use, but that doesn't necessarily mean you get all the goodies thrown in. I can't complain - FreeBSD-only desktop since 4.0 without problems. possibly the word 'ideal' can suggest the 'all things to all people' notion, but possibly it only means that it does really well in pretty much all situation, but not denying that another os may do better for a specific situation. As it has been adviced before, FreeBSD may not be a solution to a specific problem. But those who use FreeBSD are usually intelligent enough to look at other places where an OS might exist that will do what they want, instead of being ignorant and expecting someone to write the missing stuff for them for free. In Germany, we have the term eierlegende Wollmilchsau (egg- laying wool-milk-sow) for something that tries to please everyone's expectations, a kind of all imaginable purposes devices to be used by everyone. Definitely, FreeBSD isn't such a device, but it doesn't try to be. Where purposes increase, quality usually decreases. I do see this, for example, in KDE's bad internationalisation (here, the German one); I always would prefer a system that is written in good english than one that is written in bad German and with english error messages. in an interview with a german magazine many years ago, bill gates plainly stated that microsoft wasn't too interested in fixing bugs. they were far more interested in providing the stuff the customers want. MICROS~1's customers want bugs, they get bugs because they paid for them. :-) while that might seem to some like good business sense, it assumes that the 'customer is always right' (which is really another way of saying that the customer is always ripe for the picking). Hm, interesting point of view. Another idea would be the following slogan: Don't give them what they want, give them what they need. This implies that the customer often doesn't know what he needs. I see this concept in action every day. Sometimes, people are plain stupid, but their expectations are high as a mountain. You give them computing power not imaginable 10 years ago, and they treat their system like a worse typewriter and start complaining that it doesn't read their mind... i don't think that's where we'd want freebsd to go. Personally, I would say so, or we'll end up here: http://www.rinkworks.com/stupid/ I do read along there when I feel sad or angry. Maybe this page helps you, too. :-) -- 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