Kernel won't build: 6.1-RELEASE 6.1-STABLE
Hello, I'm trying to upgrade my kernel from 6.1-RELEASE to 6.1-STABLE. But it will not work, it fails out when dealing with umass. This is a freshly installed system. The command I issued was: make buildworld KERNCONF=SURIA # # /usr/src/sys/i386/conf/SURIA # machine i386 cpu I686_CPU ident SURIA options SCHED_4BSD options FFS options SOFTUPDATES options UFS_ACL options UFS_DIRHASH options MAC options MD_ROOT options NFSSERVER options MSDOSFS options CD9660 options PROCFS options PSEUDOFS options COMPAT_43 options COMPAT_FREEBSD4 options COMPAT_FREEBSD5 options KTRACE options SYSVSHM options SYSVMSG options SYSVSEM options _KPOSIX_PRIORITY_SCHEDULING options KBD_INSTALL_CDEV options AHC_REG_PRETTY_PRINT options AHD_REG_PRETTY_PRINT options ADAPTIVE_GIANT device isa device eisa device pci device sio device agp device apic device ata device atadisk device atapicd device atapifd device fdc device firewire device sbp device uhci device ohci device ehci device usb device udbp device ugen device uhid device ukbd device ums device ulpt device uscanner device umass device psm device atkbdc device atkbd device vga device radeondrm device splash device sc device npx device ether device miibus device bge device loop device mem device io device random device sl device ppp device tun device pty device md options INET options INET6 options IPSEC options IPSEC_ESP options IPSEC_DEBUG device gif device faith device bpf device pf device pflog # # Build transcript # [...] cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror config.c cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror env.c cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror hints.c cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror vnode_if.c touch hack.c cc -shared -nostdlib hack.c -o hack.So rm -f hack.c MAKE=make sh /usr/src/sys/conf/newvers.sh SURIA cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa
Re: Kernel won't build: 6.1-RELEASE 6.1-STABLE
At 19:27 22.07.2006, Donald J. O'Neill wrote: On Saturday 22 July 2006 10:49, Kyrre Nygard wrote: Hello, I'm trying to upgrade my kernel from 6.1-RELEASE to 6.1-STABLE. But it will not work, it fails out when dealing with umass. This is a freshly installed system. The command I issued was: make buildworld KERNCONF=SURIA You really only need 'make buildworld', KERNCONF=SURIA isn't used at this point. I'm terribly sorry! What I meant was: make buildkernel You may have a problem with your sources. You can try blowing off the source tree and re-cvsuping it. I've had to do that before. Yeah I'll give that a go, thanks. Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ntfs-3g for FreeBSD?
Wondering what's the status on NTFS-3G for FreeBSD? http://digg.com/linux_unix/NTFS-3G_-_Full_NTFS_read_write_support_for_Linux Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: named: invalid rndc key
At 03:29 28.06.2006, you wrote: $ rndc reload rndc: connection to remote host closed This may indicate that the remote server is using an older version of the command protocol, this host is not authorized to connect, or the key is invalid. Did you check that named was still listeing on port tcp 953? What does netstat -Sa|grep rndc tells you? Can you telnet localhost 953? Did you check that rndc and named are of the same version? Calling rndc with no argument should give you the version, and any dig request should give you the version of named. Do they have the same installation date? Best regards, Olivier Hello man, thanks for replying! This is what I was able to extract so far ... # netstat -Sa | grep rndc tcp6 0 0 ::1.rndc *.*LISTEN tcp4 0 0 127.0.0.1.rndc *.*LISTEN # rndc Version: 9.3.2 # named -v BIND 9.3.2 I can telnet localhost 953 but it doesn't get no further than to Escape character is '^]'. Again, thanks a lot, cheers! All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
named: invalid rndc key
Hello! I just tried reloading my nameserver after adding a new domain (zonefile). But then this happened: $ rndc reload rndc: connection to remote host closed This may indicate that the remote server is using an older version of the command protocol, this host is not authorized to connect, or the key is invalid. I've tried using rndc-confgen to create a new rndc.key, as well as rndc.conf and references in named.conf, but the problem is still there. I've been using my nameserver setup for months and it's all been working smooth. I've made no incremental changes that would result in this thing either. Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
rndc reload: connection to remote host closed
Hello! I just tried reloading my nameserver after adding a new domain. Then this happened: # rndc reload rndc: connection to remote host closed This may indicate that the remote server is using an older version of the command protocol, this host is not authorized to connect, or the key is invalid. I've tried using rndc-confgen to create a new rndc.key, as well as rndc.conf and references in named.conf, but still this problem persists. I've been using my nameserver setup for months and it's all been working smooth. I've made no incremental changes that would result in this thing either, so I'm really confused. Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
postfix+mysql not working with amavisd-new
Hello! Sorry if this is a bit off topic ... It appears that postfix won't use my mysql setup whenever amavisd-new is around. Does anyone know what to do? Thanks, Kyrre # tail /var/log/maillog amavis[46670]: (46670-02) Blocked TEMPFAIL, [80.201.214.30] [EMAIL PROTECTED] - [EMAIL PROTECTED], Message-ID: [EMAIL PROTECTED], mail_id: gJqxSj-LLomT, Hits: 0., 32812 ms postfix/smtp[46692]: 78E886AF: to=[EMAIL PROTECTED], relay=127.0.0.1[127.0.0.1], delay=1777, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.1.0 Failed, id=46670-02, from MTA([127.0.0.1]:10025): 451 [EMAIL PROTECTED]: Temporary lookup failure (in reply to end of DATA command)) Then I receive a bunch of e-mails saying: Subject: Postfix SMTP server: errors from unknown[127.0.0.1] -- Out: 451 [EMAIL PROTECTED]: Temporary lookup failure Here are my configuration files: ### ### /usr/local/etc/postfix/main.cf ### mail_owner = postfix home_mailbox = .maildir/ mydomain = myaddress.com myhostname = ninja.myaddress.com mynetworks = 127.0.0.0/8, 192.168.187.0/24, 80.201.214.0/24 myorigin = $mydomain mydestination = $mydomain, localhost.$mydomain, $myhostname content_filter = smtp-amavis:[127.0.0.1]:10024 smtpd_recipient_restrictions = reject_rbl_client sbl.spamhaus.org reject_rbl_client dnsbl.njabl.org reject_unauth_destination unknown_local_recipient_reject_code = 450 virtual_transport = virtual virtual_uid_maps = static:125 virtual_gid_maps = static:125 virtual_mailbox_base = /var/spool/virtual virtual_mailbox_domains = mysql:/usr/local/etc/postfix/v_domains.cf virtual_mailbox_maps = mysql:/usr/local/etc/postfix/v_mailboxes.cf virtual_alias_maps = mysql:/usr/local/etc/postfix/v_aliases.cf broken_sasl_auth_clients = yes smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_security_options = noanonymous smtpd_sasl_application_name = smtpd smtp_use_tls = yes smtp_tls_note_starttls_offer = yes smtpd_use_tls = yes smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom smtpd_tls_key_file = /usr/local/etc/postfix/ssl/smtpd.pem smtpd_tls_cert_file = /usr/local/etc/postfix/ssl/smtpd.pem smtpd_tls_CAfile = /usr/local/etc/postfix/ssl/smtpd.pem tls_random_source = dev:/dev/urandom queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq sample_directory = /usr/local/etc/postfix ### ### /usr/local/etc/postfix/master.cf ### smtp inet n - n - - smtpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr tlsmgr unix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp relay unix - - n - - smtp -o fallback_relay= showq unix n - n - - showq error unix - - n - - error discard unix - - n - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 1 scache maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} old-cyrus unix - n n - - pipe flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user} cyrus unix - n n - - pipe user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient smtp-amavis unix - - - - 3 smtp -o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - - - - smtpd -o content_filter= ### ### /usr/local/etc/amavisd.conf ### use strict; $mydomain = 'myaddress.com'; $daemon_user = 'vscan'; $daemon_group = 'vscan'; $max_servers = 3; $forward_method = 'smtp:127.0.0.1:10025'; $notify_method = $forward_method; $inet_socket_port = 10024; $MYHOME = '/var/amavis'; $TEMPBASE = $MYHOME/tmp; $QUARANTINEDIR = '/var/virusmails'; $X_HEADER_TAG = 'X-Virus-Scanned'; $X_HEADER_LINE = Secured by $mydomain; @local_domains_maps = ( [.$mydomain] ); $log_level = 0; $log_recip_templ = undef; $DO_SYSLOG = 1; $SYSLOG_LEVEL = 'mail.debug'; $enable_db = 1; $enable_global_cache = 1; $sa_spam_subject_tag = '*** SPAM *** '; $sa_tag_level_deflt = 2.0; $sa_tag2_level_deflt = 6.31; $sa_kill_level_deflt = 6.31; $sa_dsn_cutoff_level = 10; $sa_mail_body_size_limit = 200*1024; $sa_local_tests_only = 0; $sa_auto_whitelist = 1; $virus_admin = [EMAIL PROTECTED];
Backup HD running ZFS
Hey! I just bought me one of these to back up all my stuff to: http://www.wdmybook.com Is there any way of getting ZFS running on it? And using it along with FreeBSD as well as Windows XP? That would be incredible. Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Scanning MP3 files for skips
Hello! I'm curious whether there's a tool out there that will scan through audio files looking for patterns that resemble skips and other nonos in the world of music. I have MD5 checksums for all my MP3 files, but that doesn't guarantee that they were fine before the checksums were generated. Thanks, and all the best, Kyrre Nygård ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Filesystem using tags, not folders?
Hello! Just a wild thought here ... After noticing how much simpler it is using tags, for instance with my bookmarks at http://del.icio.us -- compared to hours of frustration trying find the right combination of folders and sub folders in my Firefox' bookmarks.html, I was wondering if the same approach could be used to arrange the UNIX filesystem hierarchy, from the root and up. This is just a radical thought, not yet an idea even -- but if somebody would be willing to think with me -- maybe we could make a big change. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Filesystem using tags, not folders?
At 18:50 09.06.2006, Martin Tournoy wrote: On Fri, 09 Jun 2006 14:40:06 -, Kyrre Nygard [EMAIL PROTECTED] wrote: Hello! Just a wild thought here ... After noticing how much simpler it is using tags, for instance with my bookmarks at http://del.icio.us -- compared to hours of frustration trying find the right combination of folders and sub folders in my Firefox' bookmarks.html, I was wondering if the same approach could be used to arrange the UNIX filesystem hierarchy, from the root and up. This is just a radical thought, not yet an idea even -- but if somebody would be willing to think with me -- maybe we could make a big change. All the best, Kyrre I suppose it could work, then again, folders also work, and having tags would basicly be the same as having folders. I don't really see any advantage... I believe microsoft is planning something like this for their new filesystem, winfs Cool, at least you're not asking me to seek help! Well, the thing about UNIX hierarchies is that they are overly complex. Different locations for similar things, same locations for different things, duplicates, unnecessary abbreviations and acronyms and so on and so forth. From an architect's (a real architect's) point of view the typical UNIX hierarchy looks to be structured by some kind of confused creature. Using tags to arrange files instead of folders, files could have multiple tags if they have multiple purposes. And one wouldn't have to design -- and most people don't know how to design -- a proper hierarchical solution everytime something new arrives. Maybe this would even clear up some of the hardships revolving around registries and libraries. Keep it coming! All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hiding dot files with ftpd
At 12:25 04.06.2006, Daniel A. Akulenok wrote: On Sun, June 4, 2006 08:49, Lawrence Horvath wrote: On 6/3/06, Daniel A. Akulenok [EMAIL PROTECTED] wrote: On Sat, June 3, 2006 22:57, Kyrre Nygard wrote: What's up all? Just wondering if it's possible to hide dot files somehow with FreeBSD's default ftpd when I invoke it from inetd? ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -l Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hi Kyrre, Files prepended with dots in UNIX operating systems usually symoblize a file which is not shown to the user on a regular basis because the user will actually not _need_ to know of it's prescense in daily use. Therefore, it is entirely up to the FTP client of the user if files prepended with dots are shown or not. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Is there a way to get the ftp server to not list the dot prepended files? if say you REALLY don't want the client to see the files, can you get the server to not send it in a list reply? and by the same means could you get the server to not list dirs as well?(that was just being my curiosity) -- -Lawrence As far as I know, you can only achieve that by hacking the ftpd itself. If you want users to only be able to see a certain set of files, you should create a user with ftproot in an empty directory which only contains the files they are allowed to see/use. Hello guys! Well, I was just curious, since the option to hide dot files is widely available in most FTP daemons, like vsftpd: hide_file=.* However, it seems, not in FreeBSD's default ftpd? All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Hiding dot files with ftpd
What's up all? Just wondering if it's possible to hide dot files somehow with FreeBSD's default ftpd when I invoke it from inetd? ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -l Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The Unix Haters Handbook
At 09:20 01.06.2006, Rico wrote: Hi all. I had not before seen this book, but doing some Unix research I found it at http://research.microsoft.com/~daniel/uhh-download.html Loving Unix I found the book hilarious and quite entertaining and still containing some truth. The chapter about the rm command is very funny because everybody has tried that mistake once. Anyway, wanted to share my discovery. I know many knows this book, but perhaps many also don't. Best and kind regards, Rico I surely didn't know about it. Thanks a lot man :) Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sharing /usr/local/www
At 11:50 27.05.2006, Daniel A. wrote: Hi Kyrre. Have you tried chmodding the www dir to be group-writable? Also, as someone else has suggested, SVN og CVS might be a good idea. They would not solve the problem you have right now, but they might help you avoid some possible problems with many people editing the same batch of files - sharing violations. What if two people start editing the same files on their own workstations, and both upload the changes? What about version control? et cetera, ad nauseam. Offcourse, non-repository development is possible, and I've done it myself without any issues whatsoever, but you're the one who decides what's best for your development. Actually no I did not chmod www to be group writable. Silly me! :) But I'm wondering. If I were to use SVN for my www, wouldn't I then in reality have two different wwws, one for SVN and one which I later export for Apache? This is what confuses me a little ... Thanks a lot, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: textproc: Typesetting holy content
At 18:43 26.05.2006, Adrian Pavone wrote: Well, sounds to me like the perfect reason to learn how to write a shell script. You already have your algorithm/method clearly defined, now you just need something to automate it. A shell script would clearly be the thing to do that with. If you need any help with shells and shell scripting, a wealth of information is just a google away ;). Just my $0.02 Regards, Adrian You're most right, I think I will grab some tutorial and start reading. Thanks man! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: textproc: Typesetting holy content
At 19:20 26.05.2006, Kirk Strauser wrote: On Friday 26 May 2006 11:35, Kyrre Nygard wrote: I am trying to transcribe The Noble Qur'an, by some said to be the most elegant book ever written, into LaTeX format. That way I can format it the way I wish, and study it at my own premises. I prefer Godel, Escher Bach, but that's just me. Anyway, didn't html2latex (/usr/ports/print/html2latex/pkg-descr) work? -- Kirk Strauser Interesting book, I will check it out :) html2latex is nice but I'm not sure if that's what I want. There are too many elements in the HTML files that I do not wish to include and removing them all would be equally painful. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Script to organize passwd and group
Hello! I was wondering if anybody out there share the same need as I do to better organize /etc/passwd and /etc/group. I would like to see chronologic ordering of UIDs and GIDs, instead of having them sorted by what ports their corresponding daemons run on. Look below how much more flow it all gets. Then, if possible, it would be cool to make 3 distinct classes: 01 Necessities, with 1 to 2 digit IDs (maybe keep nobody seperate) 02 Servers, with 3 digit IDs 03 Users, with 4 digit IDs I'm aware that when adding new users, one would manually have to rearrange, but this is not because you shouldn't, it's because adduser and pw doesn't yet support this kind of order. Here is my ideal setup: -- # cat /etc/.passwd root:*:0:0::0:0:Core:/root:/usr/local/bin/zsh daemon:*:1:1::0:0:System Processes:/root:/usr/sbin/nologin operator:*:2:2::0:0:Operator:/:/usr/sbin/nologin kmem:*:3:65533::0:0:KMem:/:/usr/sbin/nologin bin:*:4:4::0:0:Binaries:/:/usr/sbin/nologin tty:*:5:65533::0:0:Titty:/:/usr/sbin/nologin news:*:6:6::0:0:News:/:/usr/sbin/nologin man:*:7:7::0:0:Manuals:/usr/share/man:/usr/sbin/nologin nobody:*:5:5::0:0:Unprivileged:/nonexistent:/usr/sbin/nologin sshd:*:101:101::0:0:Secure Shell:/var/empty:/usr/sbin/nologin www:*:102:102::0:0:World Wide Web:/usr/local/www:/usr/sbin/nologin ftp:*:103:103::0:0:File Transfer Protocol:/home/websites:/usr/sbin/nologin mysql:*:104:104::0:0:MySQL:/var/db/mysql:/sbin/nologin proxy:*:105:105::0:0:Packet Filter:/nonexistent:/usr/sbin/nologin smmsp:*:106:106::0:0:Sendmail Submission:/var/spool/clientmqueue:/usr/sbin/nologin mailnull:*:107:107::0:0:Sendmail Default:/var/spool/mqueue:/usr/sbin/nologin postfix:*:108:108::0:0:Postfix:/var/spool/postfix:/usr/sbin/nologin cyrus:*:109:109::874400:0:Cyrus:/nonexistent:/usr/sbin/nologin spamd:*:110:110::0:0:SpamAssassin:/var/spool/spamd:/sbin/nologin vscan:*:111:111::0:0:Scanner:/var/amavis:/bin/sh clamav:*:112:112::0:0:ClamAV:/nonexistent:/usr/sbin/nologin kyrre:*:1001:0::0:0:Kyrre:/home/kyrre:/usr/local/bin/zsh nomad:*:1002:1002::0:0:Hednod:/home/nomad:/usr/local/bin/zsh polvott:*:1003:1003::0:0:Thomas:/home/polvott:/usr/local/bin/zsh nughaud:*:1004:1004::0:0:King:/home/nughaud:/usr/local/bin/zsh -- # cat /etc/group wheel:*:0:root daemon:*:1: operator:*:2:root kmem:*:3: bin:*:4: tty:*:5: news:*:6: man:*:7: nobody:*:5: sshd:*:101: www:*:102: ftp:*:103: mysql:*:104: proxy:*:105: smmsp:*:106: mailnull:*:107: postfix:*:108: cyrus:*:119: spamd:*:110: vscan:*:111: clamav:*:112: nomad:*:1002: polvott:*:1003: nughaud:*:1004: -- The script would rearrange passwd and group into classes, based on a predefined list maybe. Then it should renumber the UIDs and GIDs. Then it should do something like: find -s / -uid foo | xargs chown bar find -s / -gid foo | xargs chgrp bar And before you know it :) Your system will be looking tighter than ever! I hope somebody can help me with this. It will take me at least a year, I've estimated, until I master Ruby well enough to do stuff like this. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sharing /usr/local/www
At 10:45 27.05.2006, Beech Rintoul wrote: On Saturday 27 May 2006 00:32, Kyrre Nygard wrote: Hello! I have a team of designers working on web 2.0 like sites. I have added them all to this box, now I'm wondering what's the most convenient way of giving them all access to /usr/local/www? My temporary solution has been to add all users with UID and GID 80, and then ln -s /usr/local/www ~/collabo for each user. If users have their original UID instead of www's then somehow they can't read or write to /usr/local/www. I thought sharing the same GID was sufficient, but obviously it isn't. I find this very strange. Some of them prefer just using FTP, so then being able to click on collabo@ and go straight to /usr/local/www is very convenient for them. But is there a better way? Thanks, Kyrre CVS is your friend. But there are also a ton of php scripts out there to do what you want. Beech -- Yeah I hear a lot of people like CVS. But I fail to realize how it might assist me though. I'm not setting up a code repository, this is an actual WWW root where a lot of different websites are hosted. Please correct me if I'm wrong. And what PHP scripts are you talking about? Thanks a lot, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
textproc: Typesetting holy content
Hello! I hope this is not too off topic. I'm involved in some studies here, on the authority of holy scriptures. I am trying to transcribe The Noble Qur'an, by some said to be the most elegant book ever written, into LaTeX format. That way I can format it the way I wish, and study it at my own premises. I began to wget -m http://www.usc.edu/dept/MSA/quran/ Which gave me 001.qmt.html all the way up to 114.qmt.html. Next, I ran this: for i in `find -s . -name *.html`; do w3m -dump $i ${i%.html}.txt; echo ${i%.html}.txt; done And ended up with 001.qmt.txt all the way up to 114.qmt.txt. Then, I took 001.qmt.txt, which looked like this: -- USC USC Compendium of Muslim Texts Fundamentals Allah Muhammad Qur'an Sunnah Pillars Special Topics Economics History Human Relations Law Misconceptions About Islam Politics Tools Qur'an Search Hadeeth Search Glossary Translations of the Qur'an, Chapter 1: AL-FATIHA (THE OPENING) Total Verses: 7 Revealed At: MAKKA Maududi's introduction --- 001.001 YUSUFALI: In the name of Allah, Most Gracious, Most Merciful. PICKTHAL: In the name of Allah, the Beneficent, the Merciful. SHAKIR: In the name of Allah, the Beneficent, the Merciful. 001.002 YUSUFALI: Praise be to Allah, the Cherisher and Sustainer of the worlds; PICKTHAL: Praise be to Allah, Lord of the Worlds, SHAKIR: All praise is due to Allah, the Lord of the Worlds. 001.003 YUSUFALI: Most Gracious, Most Merciful; PICKTHAL: The Beneficent, the Merciful. SHAKIR: The Beneficent, the Merciful. 001.004 YUSUFALI: Master of the Day of Judgment. PICKTHAL: Master of the Day of Judgment, SHAKIR: Master of the Day of Judgment. 001.005 YUSUFALI: Thee do we worship, and Thine aid we seek. PICKTHAL: Thee (alone) we worship; Thee (alone) we ask for help. SHAKIR: Thee do we serve and Thee do we beseech for help. 001.006 YUSUFALI: Show us the straight way, PICKTHAL: Show us the straight path, SHAKIR: Keep us on the right path. 001.007 YUSUFALI: The way of those on whom Thou hast bestowed Thy Grace, those whose (portion) is not wrath, and who go not astray. PICKTHAL: The path of those whom Thou hast favoured; Not the (path) of those who earn Thine anger nor of those who go astray. SHAKIR: The path of those upon whom Thou hast bestowed favors. Not (the path) of those upon whom Thy wrath is brought down, nor of those who go astray. Sponsored by the MSA. -- And transformed it into LaTeX format: -- \documentclass[11pt,a4paper,oneside,english]{book} \begin{document} \title{The Noble Qur'an} \tableofcontents{} \chapter{AL-FATIHA (THE OPENING)} 001.001 In the name of Allah, Most Gracious, Most Merciful. 001.002 Praise be to Allah, the Cherisher and Sustainer of the worlds; 001.003 Most Gracious, Most Merciful; 001.004 Master of the Day of Judgment. 001.005 Thee do we worship, and Thine aid we seek. 001.006 Show us the straight way, 001.007 The way of those on whom Thou hast bestowed Thy Grace, those whose (portion) is not wrath, and who go not astray. -- Basically what I did manually on the first file is what I intend to do automatically with all the other files. The format remains the same, however the quantity of text will differ. The process, to be done on each of my now *.txt files, would look something like this: 1 Cut out everything before line 27. 2 Take line 27, and embody it. So if line 27 says HELLO, it will become: \chapter{HELLO} 3 Cut out everything preceding line 27 until a NNN.NNN (verse indication) appears. 4 Join the NNN.NNN with the below line and cut out YUSUFALI: 5 Join all lines below the YUSUFALI: line ... 6 Until the PICKTHAL: line appears. Then, delete it and all below lines until the next NNN.NNN appears. The reason is that the University of California compilation displays three different english translations and I'd only be interested in the first one. For instance, this: -- 004.054 YUSUFALI: Or do they envy mankind for what Allah hath given them of his bounty? but We had already given the people of Abraham the Book and Wisdom, and conferred upon them a great kingdom. PICKTHAL: Or are they jealous of mankind because of that which Allah of His bounty hath bestowed upon them? For We bestowed upon the house of Abraham (of old) the Scripture and wisdom, and We bestowed on them a mighty kingdom. SHAKIR: Or do they envy the people for what Allah has given them of His grace? But indeed We have given to Ibrahim's children the Book and the wisdom, and We have given them a grand kingdom. -- Would simply become this, in one line: -- 004.054 Or do they envy mankind for what Allah hath given them of his bounty? but We had already given the people of Abraham the Book and Wisdom, and conferred upon them a great kingdom. -- 7 When the next NNN.NNN appears, treat it like the rest. Thank you! Really! For bearing with me so far! Indeed, this is what I wish to
ffsdrv: Nice tool. Can we fix it?
Hello! http://ffsdrv.sourceforge.net Is a real nice tool for accessing UFS2 harddrives from Windows. It's one of a kind, allowing you to mount and read. However it crashes when dealing with files above 50M. https://sourceforge.net/tracker/?func=browsegroup_id=119016atid=683208 The project looks somewhat abandoned. But the sources are there. Could someone with knowledge maybe find out what's making it crash? Thanks! All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Shell script cannot run on FAT32 partition
At 19:47 18.05.2006, Simon Olofsson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, FAT32 can't distinguish between upper and lowercase. You need to use an intermediate filename to do so. Take a look at lcra: http://membled.com/work/apps/lcra/lcra-1.0.1/lcra HTH Thanks man! I appreciate it! -- Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Shell script cannot run on FAT32 partition
At 21:11 18.05.2006, Lorin Lund wrote: Kyrre Nygard wrote: Hello! I have this nice renaming script here. It sanitizes badly named parts of files and folders. But when I run it on my FAT32, dual boot transition partition (hehe), it causes my computer (Pentium 4, 3,2 GHz) to freeze. I vaguely remember seeing some message before it freezes saying Locking from myself or something like that, this is not recorded into /var/log/messages. It is very annoying actually because to rename a bunch of files I first have to copy them to my UFS2 partition, run the script, and then copy them back to the FAT32 partition. Does this problem sound familiar to anyone? Thanks! Anyway here is the script. FAT32 seems to have some limitations on moving and renaming files. Several years ago I had wrote a program (which ran under Win98) which received files by UDP in pieces. Once fully assembled it would MOVE the files to another director. That process would bog down. When I tried the same application under WinNT on an NTFS drive it worked OK. I don't know if the problem was in Win 98 or if it is a weakness of the FAT32 design. If the problem is in the FAT32 design there could be problems that even show up under FreeBSD. That's my $0.02 To a man of my poverty, $0.02 is a lot more than what it seems :) I guess there' s no way around it. I notice when I copy files, manually one by one, to or from FAT32, the files end up in uppercase. This is also very annoying, but something I guess I have to live with. Take care, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
A neural/distributed FreeBSD network
Hello! Got a weird question here ... I'm a bit curious as to how one can make multiple computers act as one network. I'm not talking merely /etc/hosts and gateways or some VPN where connections are just encrypted, but like something more ... neural, you all feel me? where the operating systems themselves act together in a distributed fashion. Does something like this even exist? Thanks All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Converting a zsh prompt to bash
At 22:48 18.05.2006, Dan Nelson wrote: In the last episode (May 18), Kyrre Nygard said: At 17:02 18.05.2006, Dan Nelson wrote: In the last episode (May 18), Kyrre Nygard said: At 17:04 17.05.2006, Dan Nelson wrote: In the last episode (May 17), Kyrre Nygard said: Do you think this would work? I tried applying your principles, as well as some information design: local a1=01;36m local a2=22;36m local a3=01;30m local b1=01;31m local b2=22;31m local b3=01;30m PROMPT=$'%{$a1}([EMAIL PROTECTED])' PROMPT+=$'%{$a1}('{$a2}%D{%H:%M}%{$a3}+%{$a2}%D{%d/%m}%{$a1})%{$a3}\n' PROMPT+=$'%{$a1}(%{$a2}%#%{$a3}:%{$a2}%~%{$a1})' if [[ `whoami` = root ]] then PROMPT=$'%{$b1}([EMAIL PROTECTED])' PROMPT+=$'%{$b1}(%{$b2}%D{%H:%M}%{$b3}+%{$b2}%D{%d/%m}%{$b1})%{$b3}\n' PROMPT+=$'%{$b1}(%{$b2}%#%{$b3}:%{$b2}%~%{$b1})' fi Note that zsh provides symbolic variables for color setting: autoload -U colors colors echo $fg[blue]$bg[red]blue on red! so you don't have to memorize the numbers. See the zshcontrib manpage, OTHER FUNCTIONS section. If the only difference between your root prompt is color, you can also just set a1,a2,a3 to different values within your if block, then set PROMPT outside of it. if [[ $USER == root ]] ; then a1=%{$fg[cyan]$bg[black]} else a1=%{$fg[red]}$bg[black]} fi PROMPT=$a1 Hey Dan! I can't find a list of what colors are available. Besides I doubt that mine are accounted for. There are only so many ways to combine 8 colors :) From the manpage: colors This function initializes several associative arrays to map color names to (and from) the ANSI standard eight-color terminal codes. These are used by the prompt theme system (see above). You seldom should need to run colors more than once. The eight base colors are: black, red, green, yellow, blue, magenta, cyan, and white. Each of these has codes for fore- ground and background. In addition there are eight intensity attributes: bold, faint, standout, underline, blink, reverse, and conceal. Finally, there are six codes used to negate attributes: none (reset all attributes to the defaults), normal (neither bold nor faint), no-standout, no-underline, no-blink, and no-reverse. I'd be very grateful if you could at least try this prompt out so you know my request: PROMPT=$'%{\e[01;36m%}(%{\e[22;36m%}%n%{\e[01;30m%}@' PROMPT+=$'%{\e[22;36m%}%m%{\e[01;36m%})%{\e[01;36m%}%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;36m%}%D{%d/%m}' PROMPT+=$'%{\e[01;36m%})%{\e[01;30m\e[00m%}\n%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%#%{\e[01;30m%}:%{\e[22;36m%}%~%{\e[01;36m%})' PROMPT+=$'%{\e[01;30m\e[00m%} ' How about something like: autoload -U colors colors if [[ $USER == root ]] ; then c1=%{$fg_no_bold[cyan]%} # base color1 c2=%{$fg_bold[cyan]%}# base color2 c3=%{$fg_bold[black]%} # punctuation else c1=%{$fg_no_bold[red]%} # base color1 c2=%{$fg_bold[red]%}# base color2 c3=%{$fg_bold[black]%} # punctuation fi PROMPT=$c2([EMAIL PROTECTED])($c1%D{%H:%M}$c3+$c1%D{%d/%m}$c2)$'\n' PROMPT+=$c2($c1%#$c3:$c1%~$c2) %{$reset_color%} -- Dan Nelson [EMAIL PROTECTED] Oh man! That is absolutely gorgeous!!! Thank you so much :))) My /etc/zshrc is now worth $10.000 (up from $7.000) Don't sell it on eBay you all: http://paste.husk.org/5717 Just out of curiosity Dan, how does your prompt look like? Mine's strictly functional. User, host, path in left prompt; error status in right prompt. Within screen, I add the window number to the left prompt and the datetime to the right prompt so I know how long I've left a window idle. if [[ $+WINDOW = 1 $TERM = screen* ]] ; then PROMPT=([EMAIL PROTECTED]) %B%/%(#/#/)%b RPROMPT=%(?.. %B%?%b)%t %D{%m/%d} else PROMPT=([EMAIL PROTECTED]) %B%/%(#/#/)%b RPROMPT=%(?..%?) fi -- Dan Nelson [EMAIL PROTECTED] Hey Dan! Your prompt is truly wonderful. It inspired me to grow up, as far as my shell is concerned. Based on your design, I came up with this: if [[ `whoami` = root ]] then a1=%{$fg_bold[red]%} a2=%{$fg_no_bold[red]%} else a1=%{$fg_bold[cyan]%} a2=%{$fg_no_bold[cyan]%} fi if [[ $+WINDOW = 1 $TERM = screen* ]] then PROMPT=$a1([EMAIL PROTECTED]) [$WINDOW] $a2%~ %{$reset_color%} RPROMPT=%D{%H:%M} %D{%d/%m} fi PROMPT=$a1([EMAIL PROTECTED]) $a2%~ %{$reset_color%} RPROMPT=%D{%H:%M} %D{%d/%m} And I think I'm keeping it like that. Unless you have any suggestions on how to simply its setup? It takes up a lot of lines, maybe it could shrink a little. I hope you don't consider me stealing your design. If that's the case I'll revert back to my old one. It's kinda nice though
Re: Converting a zsh prompt to bash
At 22:48 18.05.2006, Dan Nelson wrote: Mine's strictly functional. User, host, path in left prompt; error status in right prompt. Within screen, I add the window number to the left prompt and the datetime to the right prompt so I know how long I've left a window idle. if [[ $+WINDOW = 1 $TERM = screen* ]] ; then PROMPT=([EMAIL PROTECTED]) %B%/%(#/#/)%b RPROMPT=%(?.. %B%?%b)%t %D{%m/%d} else PROMPT=([EMAIL PROTECTED]) %B%/%(#/#/)%b RPROMPT=%(?..%?) fi -- Dan Nelson [EMAIL PROTECTED] This is what I'm now going to settle with. The screen function was really wicked. I've always felt lost while I'm messing about my screens. If you have any advice, please make them regarding this setup: if [[ `whoami` = root ]] then a1=%{$fg_bold[red]%} a2=%{$fg_no_bold[red]%} else a1=%{$fg_bold[cyan]%} a2=%{$fg_no_bold[cyan]%} fi PROMPT=$a1([EMAIL PROTECTED])$a2(%D{%d/%m}+%D{%H:%M})$'\n' PROMPT+=$a2(%~) %{$reset_color%} if [[ $+WINDOW = 1 $TERM = screen* ]] then PROMPT=$a1([EMAIL PROTECTED])$a2($WINDOW)(%D{%d/%m}+%D{%H:%M})$'\n' PROMPT+=$a2(%~) %{$reset_color%} fi Thanks :) Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Some shell scripts; a more elegant approach?
At 17:59 16.05.2006, Atom Powers wrote: It is difficult to understand exactly what you want your script to do without comments. You may get a better response if you can describe what you want your scripts to do. Thanks man, your advice was really helpful! This though: -- for file in `find -s . -type f -name *.txt`; do # This removes CRLF, double or more empty lines # as well as trailing whitespace. # tr -d '\r' $file | cat -s | sed -E -e 's/[[:space:]]+$//' $file.tmp # Creates file blank containing an empty line # echo blank # Add an empty line to the end of $file.tmp # echo $file.tmp # $file now starts with an empty line too # cat blank $file.tmp $file rm -f blank $file.tmp done for file in `find . -type f -name *.txt -size -300c`; do echo $file: Corrupt done -- I'd like to incorporate the 2nd for loop into the first somehow. That last find command finds files that are below 300 bytes. Now I'm sure there's a better way of doing that. Thanks Atom Powers! :) Take care, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Converting a zsh prompt to bash
At 17:04 17.05.2006, Dan Nelson wrote: In the last episode (May 17), Kyrre Nygard said: Do you think this would work? I tried applying your principles, as well as some information design: local a1=01;36m local a2=22;36m local a3=01;30m local b1=01;31m local b2=22;31m local b3=01;30m PROMPT=$'%{$a1}([EMAIL PROTECTED])' PROMPT+=$'%{$a1}('{$a2}%D{%H:%M}%{$a3}+%{$a2}%D{%d/%m}%{$a1})%{$a3}\n' PROMPT+=$'%{$a1}(%{$a2}%#%{$a3}:%{$a2}%~%{$a1})' if [[ `whoami` = root ]] then PROMPT=$'%{$b1}([EMAIL PROTECTED])' PROMPT+=$'%{$b1}(%{$b2}%D{%H:%M}%{$b3}+%{$b2}%D{%d/%m}%{$b1})%{$b3}\n' PROMPT+=$'%{$b1}(%{$b2}%#%{$b3}:%{$b2}%~%{$b1})' fi Note that zsh provides symbolic variables for color setting: autoload -U colors colors echo $fg[blue]$bg[red]blue on red! so you don't have to memorize the numbers. See the zshcontrib manpage, OTHER FUNCTIONS section. If the only difference between your root prompt is color, you can also just set a1,a2,a3 to different values within your if block, then set PROMPT outside of it. if [[ $USER == root ]] ; then a1=%{$fg[cyan]$bg[black]} else a1=%{$fg[red]}$bg[black]} fi PROMPT=$a1 -- Dan Nelson [EMAIL PROTECTED] Hey Dan! I can't find a list of what colors are available. Besides I doubt that mine are accounted for. I'd be very grateful if you could at least try this prompt out so you know my request: PROMPT=$'%{\e[01;36m%}(%{\e[22;36m%}%n%{\e[01;30m%}@' PROMPT+=$'%{\e[22;36m%}%m%{\e[01;36m%})%{\e[01;36m%}%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;36m%}%D{%d/%m}' PROMPT+=$'%{\e[01;36m%})%{\e[01;30m\e[00m%}\n%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%#%{\e[01;30m%}:%{\e[22;36m%}%~%{\e[01;36m%})' PROMPT+=$'%{\e[01;30m\e[00m%} ' if [[ `whoami` = root ]] then PROMPT=$'%{\e[01;31m%}(%{\e[22;31m%}%n%{\e[01;30m%}@' PROMPT+=$'%{\e[22;31m%}%m%{\e[01;31m%})%{\e[01;31m%}%{\e[01;31m%}(' PROMPT+=$'%{\e[22;31m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;31m%}%D{%d/%m}' PROMPT+=$'%{\e[01;31m%})%{\e[01;30m\e[00m%}\n%{\e[01;31m%}(' PROMPT+=$'%{\e[22;31m%}%#%{\e[01;30m%}:%{\e[22;31m%}%~%{\e[01;31m%})' PROMPT+=$'%{\e[01;30m\e[00m%} ' fi Anyway I just went ahead and tested this: local a1=01;36m local a2=22;36m local a3=01;30m local b1=01;31m local b2=22;31m local b3=01;30m PROMPT=$'%{$a1}([EMAIL PROTECTED])' PROMPT+=$'%{$a1}('{$a2}%D{%H:%M}%{$a3}+%{$a2}%D{%d/%m}%{$a1})%{$a3}\n' PROMPT+=$'%{$a1}(%{$a2}%#%{$a3}:%{$a2}%~%{$a1})' if [[ `whoami` = root ]] then PROMPT=$'%{$b1}([EMAIL PROTECTED])' PROMPT+=$'%{$b1}%{$b1}(%{$b2}%D{%H:%M}%{$b3}+%{$b2}%D{%d/%m}%{$b1})%{$b3}\n' PROMPT+=$'%{$b1}(%{$b2}%#%{$b3}:%{$b2}%~%{$b1})' fi But I got: /etc/zshrc:32: parse error near `)' $a1}([EMAIL PROTECTED]) The: if [[ $USER == root ]] ; then a1=%{$fg[cyan]$bg[black]} else a1=%{$fg[red]}$bg[black]} fi PROMPT=$a1 Technique sounds very interesting, but it's getting a bit too advanced for my part. Take care man, and thanks again! All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Shell script cannot run on FAT32 partition
Hello! I have this nice renaming script here. It sanitizes badly named parts of files and folders. But when I run it on my FAT32, dual boot transition partition (hehe), it causes my computer (Pentium 4, 3,2 GHz) to freeze. I vaguely remember seeing some message before it freezes saying Locking from myself or something like that, this is not recorded into /var/log/messages. It is very annoying actually because to rename a bunch of files I first have to copy them to my UFS2 partition, run the script, and then copy them back to the FAT32 partition. Does this problem sound familiar to anyone? Thanks! Anyway here is the script. #!/usr/local/bin/bash # # Rename files and folders in MP3 releases. # $MERHABA: mp3_rename.sh,v 1.0 2007/11/11 15:09:05 kyrre Exp $ # if [ $1 ]; then mv=echo; else mv=mv; fi function do_folders () { for old in *; do if [ -f $old ]; then do_files $old elif [ -d $old ]; then new=`echo $old | tr [:upper:] [:lower:]` new=`echo $new | sed -e s/ /_/g \ -e s/)//g \ -e s/-(/-/g \ -e s/_(/-/g \ -e s/(//g \ -e s/_-_/-/g \ -e s/---*/-/g \ -e s/___*/-/g \ -e s/\./_/g \ -e s/,/-/g \ -e s/'//g \ -e s/___*/_/g \ -e s/_-/-/g \ -e s/-_/-/g \ -e s//and/g \ -e s/\([-_]\)ft[_-]/\1feat_/g \ -e s/\([-_]\)featuring[_-]/\1feat_/g \ -e s/[][]//g` if [ $old != $new ]; then $mv $old $new; fi echo Renaming $old cd $new; do_folders $new; cd .. else echo Directory invalid.; fi done } function do_files () { old=$1 new=`echo $old | tr [:upper:] [:lower:]` if [[ $old == *.* ]]; then extension=${new##*.} new=${new%.*} new=`echo $new | sed -e s/ /_/g \ -e s/)//g \ -e s/-(/-/g \ -e s/_(/-/g \ -e s/(//g \ -e s/_-_/-/g \ -e s/---*/-/g \ -e s/___*/-/g \ -e s/\./_/g \ -e s/,/-/g \ -e s/'//g \ -e s/___*/_/g \ -e s/_-/-/g \ -e s/-_/-/g \ -e s/\/and/g \ -e s/\([-_]\)ft[_-]/\1feat_/g \ -e s/\([-_]\)featuring[_-]/\1feat_/g \ -e s/^\([0-9]\{2,3\}\)_/\1-/g \ -e s/[][]//g` new=`echo $new.$extension` $mv $old $new; fi } do_folders . ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Converting a zsh prompt to bash
At 17:02 18.05.2006, Dan Nelson wrote: In the last episode (May 18), Kyrre Nygard said: At 17:04 17.05.2006, Dan Nelson wrote: In the last episode (May 17), Kyrre Nygard said: Do you think this would work? I tried applying your principles, as well as some information design: local a1=01;36m local a2=22;36m local a3=01;30m local b1=01;31m local b2=22;31m local b3=01;30m PROMPT=$'%{$a1}([EMAIL PROTECTED])' PROMPT+=$'%{$a1}('{$a2}%D{%H:%M}%{$a3}+%{$a2}%D{%d/%m}%{$a1})%{$a3}\n' PROMPT+=$'%{$a1}(%{$a2}%#%{$a3}:%{$a2}%~%{$a1})' if [[ `whoami` = root ]] then PROMPT=$'%{$b1}([EMAIL PROTECTED])' PROMPT+=$'%{$b1}(%{$b2}%D{%H:%M}%{$b3}+%{$b2}%D{%d/%m}%{$b1})%{$b3}\n' PROMPT+=$'%{$b1}(%{$b2}%#%{$b3}:%{$b2}%~%{$b1})' fi Note that zsh provides symbolic variables for color setting: autoload -U colors colors echo $fg[blue]$bg[red]blue on red! so you don't have to memorize the numbers. See the zshcontrib manpage, OTHER FUNCTIONS section. If the only difference between your root prompt is color, you can also just set a1,a2,a3 to different values within your if block, then set PROMPT outside of it. if [[ $USER == root ]] ; then a1=%{$fg[cyan]$bg[black]} else a1=%{$fg[red]}$bg[black]} fi PROMPT=$a1 Hey Dan! I can't find a list of what colors are available. Besides I doubt that mine are accounted for. There are only so many ways to combine 8 colors :) From the manpage: colors This function initializes several associative arrays to map color names to (and from) the ANSI standard eight-color terminal codes. These are used by the prompt theme system (see above). You seldom should need to run colors more than once. The eight base colors are: black, red, green, yellow, blue, magenta, cyan, and white. Each of these has codes for fore- ground and background. In addition there are eight intensity attributes: bold, faint, standout, underline, blink, reverse, and conceal. Finally, there are six codes used to negate attributes: none (reset all attributes to the defaults), normal (neither bold nor faint), no-standout, no-underline, no-blink, and no-reverse. I'd be very grateful if you could at least try this prompt out so you know my request: PROMPT=$'%{\e[01;36m%}(%{\e[22;36m%}%n%{\e[01;30m%}@' PROMPT+=$'%{\e[22;36m%}%m%{\e[01;36m%})%{\e[01;36m%}%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;36m%}%D{%d/%m}' PROMPT+=$'%{\e[01;36m%})%{\e[01;30m\e[00m%}\n%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%#%{\e[01;30m%}:%{\e[22;36m%}%~%{\e[01;36m%})' PROMPT+=$'%{\e[01;30m\e[00m%} ' How about something like: autoload -U colors colors if [[ $USER == root ]] ; then c1=%{$fg_no_bold[cyan]%} # base color1 c2=%{$fg_bold[cyan]%}# base color2 c3=%{$fg_bold[black]%} # punctuation else c1=%{$fg_no_bold[red]%} # base color1 c2=%{$fg_bold[red]%}# base color2 c3=%{$fg_bold[black]%} # punctuation fi PROMPT=$c2([EMAIL PROTECTED])($c1%D{%H:%M}$c3+$c1%D{%d/%m}$c2)$'\n' PROMPT+=$c2($c1%#$c3:$c1%~$c2) %{$reset_color%} -- Dan Nelson [EMAIL PROTECTED] Oh man! That is absolutely gorgeous!!! Thank you so much :))) My /etc/zshrc is now worth $10.000 (up from $7.000) Don't sell it on eBay you all: http://paste.husk.org/5717 Just out of curiosity Dan, how does your prompt look like? All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Converting a zsh prompt to bash
At 19:50 18.05.2006, Eric wrote: Oh man! That is absolutely gorgeous!!! Thank you so much :))) My /etc/zshrc is now worth $10.000 (up from $7.000) Don't sell it on eBay you all: http://paste.husk.org/5717 Just out of curiosity Dan, how does your prompt look like? post a screenshot somewhere =) sounds like you like your new prompt quite a bit =) The prompt is the same however the way of writing it into the zshrc is now, thanks to Mr. Dan Nelson, much better. Why a screenshot? There's no virus in it. Give it a go :) And the best of luck to you, -- Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Converting a zsh prompt to bash
At 18:39 16.05.2006, Parv wrote: in message [EMAIL PROTECTED], wrote Kyrre Nygard thusly... This one, with a real nice color setting: ([EMAIL PROTECTED])(09:58+16/05) (%:~) Requires all this: PROMPT=$'%{\e[01;36m%}(%{\e[22;36m%}%n%{\e[01;30m%}@' PROMPT+=$'%{\e[22;36m%}%m%{\e[01;36m%})%{\e[01;36m%}%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;36m%}%D{%d/%m}' PROMPT+=$'%{\e[01;36m%})%{\e[01;30m\e[00m%}\n%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%#%{\e[01;30m%}:%{\e[22;36m%}%~%{\e[01;36m%})' PROMPT+=$'%{\e[01;30m\e[00m%} ' if [[ `whoami` = root ]] then PROMPT=$'%{\e[01;31m%}(%{\e[22;31m%}%n%{\e[01;30m%}@' PROMPT+=$'%{\e[22;31m%}%m%{\e[01;31m%})%{\e[01;31m%}%{\e[01;31m%}(' PROMPT+=$'%{\e[22;31m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;31m%}%D{%d/%m}' PROMPT+=$'%{\e[01;31m%})%{\e[01;30m\e[00m%}\n%{\e[01;31m%}(' PROMPT+=$'%{\e[22;31m%}%#%{\e[01;30m%}:%{\e[22;31m%}%~%{\e[01;31m%})' PROMPT+=$'%{\e[01;30m\e[00m%} ' fi I was wondering, were I to convert to bash, how would it then look like? All you need to do is replace zsh provided format strings to that of similar bash escape sequences. For example, zsh '%n' (for username) corresponds to bash '\u', '%~' to '\w', and so on. I personally put the color, bold, normal, etc. sequences in a separate file, which is sourced inside the file setting prompt. That gives less of gobbledygook to parse. For zsh, i have somewhere in ~/.zshrc ... # http://www103.pair.com/parv/comp/unix/cf/sh/var/colors . ~/cf/sh/var/colors case $TERM in *xterm* | *rxvt* ) PS1=# ?:%? %j %l ${bold}${yellow_fg}%~${normal}${normal} PS1=$PS1 %n.${bold}${cyan_fg}%m${normal}${normal} PS1= $PS1 (%D{%a %b%d %I%M}) #! export PS1 ;; * ) PS1=# %j [EMAIL PROTECTED] %l ${bold}%3~${normal} # export PS1 ;; esac ... similar thing is done for bash prompt. - Parv -- Hey Parv! This sounds truly fabulous man, I guess there's no need for me to switch to bash after all :) But like in the case of: local Normal=[0m What's with that weird character? Thanks! Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Converting a zsh prompt to bash
At 18:39 16.05.2006, Parv wrote: in message [EMAIL PROTECTED], wrote Kyrre Nygard thusly... This one, with a real nice color setting: ([EMAIL PROTECTED])(09:58+16/05) (%:~) Requires all this: PROMPT=$'%{\e[01;36m%}(%{\e[22;36m%}%n%{\e[01;30m%}@' PROMPT+=$'%{\e[22;36m%}%m%{\e[01;36m%})%{\e[01;36m%}%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;36m%}%D{%d/%m}' PROMPT+=$'%{\e[01;36m%})%{\e[01;30m\e[00m%}\n%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%#%{\e[01;30m%}:%{\e[22;36m%}%~%{\e[01;36m%})' PROMPT+=$'%{\e[01;30m\e[00m%} ' if [[ `whoami` = root ]] then PROMPT=$'%{\e[01;31m%}(%{\e[22;31m%}%n%{\e[01;30m%}@' PROMPT+=$'%{\e[22;31m%}%m%{\e[01;31m%})%{\e[01;31m%}%{\e[01;31m%}(' PROMPT+=$'%{\e[22;31m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;31m%}%D{%d/%m}' PROMPT+=$'%{\e[01;31m%})%{\e[01;30m\e[00m%}\n%{\e[01;31m%}(' PROMPT+=$'%{\e[22;31m%}%#%{\e[01;30m%}:%{\e[22;31m%}%~%{\e[01;31m%})' PROMPT+=$'%{\e[01;30m\e[00m%} ' fi I was wondering, were I to convert to bash, how would it then look like? All you need to do is replace zsh provided format strings to that of similar bash escape sequences. For example, zsh '%n' (for username) corresponds to bash '\u', '%~' to '\w', and so on. I personally put the color, bold, normal, etc. sequences in a separate file, which is sourced inside the file setting prompt. That gives less of gobbledygook to parse. For zsh, i have somewhere in ~/.zshrc ... # http://www103.pair.com/parv/comp/unix/cf/sh/var/colors . ~/cf/sh/var/colors case $TERM in *xterm* | *rxvt* ) PS1=# ?:%? %j %l ${bold}${yellow_fg}%~${normal}${normal} PS1=$PS1 %n.${bold}${cyan_fg}%m${normal}${normal} PS1= $PS1 (%D{%a %b%d %I%M}) #! export PS1 ;; * ) PS1=# %j [EMAIL PROTECTED] %l ${bold}%3~${normal} # export PS1 ;; esac ... similar thing is done for bash prompt. - Parv -- Hello again man! Do you think this would work? I tried applying your principles, as well as some information design: local a1=01;36m local a2=22;36m local a3=01;30m local b1=01;31m local b2=22;31m local b3=01;30m PROMPT=$'%{$a1}([EMAIL PROTECTED])' PROMPT+=$'%{$a1}('{$a2}%D{%H:%M}%{$a3}+%{$a2}%D{%d/%m}%{$a1})%{$a3}\n' PROMPT+=$'%{$a1}(%{$a2}%#%{$a3}:%{$a2}%~%{$a1})' if [[ `whoami` = root ]] then PROMPT=$'%{$b1}([EMAIL PROTECTED])' PROMPT+=$'%{$b1}%{$b1}(%{$b2}%D{%H:%M}%{$b3}+%{$b2}%D{%d/%m}%{$b1})%{$b3}\n' PROMPT+=$'%{$b1}(%{$b2}%#%{$b3}:%{$b2}%~%{$b1})' fi I would appreciate your green light before I test this :) Thanks again, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: makeworld FAILURE on 5.4-STABLE
At 12:50 16.05.2006, David Stanford wrote: Kyrre, How large is your /var slice? If it's large enough to fit /home (or at least the files you'd like to save), maybe try booting into single-user mode, mount /usr and /var, wipe out /var, copy the files from /usr/home to /var, and just remember to document what slice /var was. Then you could just reinstall the base system around it using a 6.1-RELEASE CD, no? Just a shot in the dark... -David What's up David! My /var is about 256M, I don't know how much space it holds. My /usr/home anyway holds about 200G, I saw my friend Donald just wrote a thread following yours, I'll take the advice from both of you and try to make the best of it! Cheers, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: makeworld FAILURE on 5.4-STABLE
At 13:55 16.05.2006, Donald J. O'Neill wrote: On Tuesday 16 May 2006 05:30, Kyrre Nygard wrote: Is /home on a slice of its own. Mine is, for the reason that if I have to blow off the system and reinstall, I can safely do that, as long as I don't make any changes to /home, just remount it as /home. You can do this with sysinstall, very easlily. Send the output from 'df', I can tell from that. Don Hello! Actually, my /home is under /usr ... uh oh huh? No can do then? Thanks for the tip of having /home as a seperate slice though, I'll treasure it for the rest of my days! Peace, Kyrre Not as you have it now. However, I read a possible solution that I think might work, to you from David Stanford. I think it will work, it just needs a couple of suggestions to flesh it out a bit. I'll requote it here: How large is your /var slice? If it's large enough to fit /home (or at least the files you'd like to save), maybe try booting into single-user mode, mount /usr and /var, wipe out /var, copy the files from /usr/home to /var, and just remember to document what slice /var was. Then you could just reinstall the base system around it using a 6.1-RELEASE CD, no? Just a shot in the dark... === Not a bad shot in the dark, I think it will work if you do it this way: 1) Follow what David said above, be sure to document what slice /var is. You're going to need that information when you reinstall with the 6.1-RELEASE disc. 2) boot up the release disc. Use the standard install method. The first thing you come to is fdisk partitioning. The only thing you're going to do here is make an existing partition bootable, don't change anything else, don't make any new partitions, don't delete any. Just make the one partition bootable, then go on to the next step and install the boot manager. 3) BSDlabel is the next step. Since you didn't change any partitions on your disc, the existing slices should come up. You can remove and recreate all of them except the one you had for /var. You're going to mount that one as /home. At this point, you can create your other slices and mount points. Make sure that the slice you now have as /home is not going have 'newfs' run on it, all the others need to have it done, but not /home. Then go on with the installation. Until you go through the disk label step, you haven't changed anything. Once you get through that step, you're committed, and what will be, will be. So, if you need any clarification, ask for it. Just remember, if you make a mistake, it's unpleasant and you'll be kicking yourself in the ass, but it's not the end of the world. Don Hey man, # df Filesystem SizeUsed Avail Capacity Mounted on /dev/ad4s1a248M 35M193M15%/ devfs 1.0K1.0K 0B 100%/dev /dev/ad4s1d248M 80M148M35%/var /dev/ad4s1e248M 10K228M 0%/tmp /dev/ad4s1f142G118G 12G91%/usr Great shot! :) So in my case, can I not first mount /dev/ad4s1f from FreeSBIE maybe, delete everything except my home directory, and then run a FreeBSD 6.1-RELEASE reinstall, skipping the parts that would mess with my /dev/ad4s1f? Hehe, no it would not be the end of the world. But it would put an end to the fruits of a lot of struggle. See you around man, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: makeworld FAILURE on 5.4-STABLE
At 12:29 17.05.2006, David Stanford wrote: Maybe I'm confused as to what you're looking to do. If you're looking to copy data from (or all of) /home to /var, it obviously won't be able to hold anymore than 248MB; and it seems like you have much more data than that. And avoiding the /usr slice won't help with upgrading as you will need to reinstall a new /usr slice anyway using the 6.1-RELEASE disc. Much of the system is located in /usr... If you have more than 248MB worth of data you need to save, and upgrading is absolutely necessary, I would suggest just ponying up the $40.00 and getting an external hard drive to back up the data. Then do a fresh install. I don't know where /var got into the picture, but what I'm trying to do is to reinstall FreeBSD while keeping /usr/home/awad on ad4s1f intact. All files and folders except /usr/home/awad I will have deleted manually. I wonder if this is possible ... Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Kids from Indonesia
At 17:23 17.05.2006, Dean Darmawan wrote: Assalamu'alaikum Wr. Wb. Hi there, I'm Dean Darmawan and still 18y/o. Well, i get interested with Fedora 5, but the main problem are can this distro Linux recognize my internal modem 56k that I ussally use to get connected to the Internet? For that kind of reason, i got confuse and step back!! My modem now is D-Link DFM-562IS HSFi PCI Modem. Thanx, best regard. Wa'alikoumsalaam wa'rahmatoullahi ta'ala wa'barakatuh! This is a FreeBSD, not Fedora. But yes, FreeBSD can recognize. But you must know how to read, then see: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html Good luck. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Reading UFS2 from Windows
At 10:40 16.05.2006, dawnshade wrote: On Tuesday 16 May 2006 12:19, Kyrre Nygard wrote: Hello! I have an awkward setup right here. I have my first harddrive split into one NTFS partition which runs Windows, and one FAT32 partition which serves as a temporary docking station for all my files which I later secure into my 2nd harddrive running FreeBSD. Can I skip this temporary docking station somehow? I was thinking, since UFS2 is an open specification, it shouldn't be impossible creating a Win32 interface that will let me read and write to one. Does anyone know? http://sourceforge.net/projects/ufs2tools http://sourceforge.net/projects/ffsdrv ffsdrv reboots my computer everytime I try to access files above 50MB. ufs2tools doesn't let me access the harddrive, it only attempts to copy. Any idea? Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Kids from Indonesia
At 20:21 17.05.2006, Jerry McAllister wrote: Assalamu'alaikum Wr. Wb. Hi there, I'm Dean Darmawan and still 18y/o. Well, i get interested with Fedora 5, but the main problem are can this distro Linux recognize my internal modem 56k that I ussally use to get connected to the Internet? For that kind of reason, i got confuse and step back!! My modem now is D-Link DFM-562IS HSFi PCI Modem. Thanx, best regard. The first thing you need to realize it that FreeBSD is not LINUX or any flavor or 'distro' of LINUX. FreeBSD is a complete operating system that had its birthing in the BSD (Berkley) UNIX in the wee early days of UNIX. Check on the http://www.freebsd.org/ web site for more information. Second, FreeBSD is a complete OS and as such can talk to modems and nic cards, and most other peripherals. The information is on the FreeBSD web site. FreeBSD is a superior free UNIX. It takes a little extra time to learn, but is worth the effort. Enjoy learning and using FreeBSD. jerry Jerry, did you expect to be understood? :) Mr. Dean's skills in English is yet not that great. The information you provided him with is something he will naturally pick up at a time where he is able to understand. Just saying something like `yes' would suffice. In his case to make him check out FreeBSD, which is the best we can currently hope for. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Reading UFS2 from Windows
Hello! I have an awkward setup right here. I have my first harddrive split into one NTFS partition which runs Windows, and one FAT32 partition which serves as a temporary docking station for all my files which I later secure into my 2nd harddrive running FreeBSD. Can I skip this temporary docking station somehow? I was thinking, since UFS2 is an open specification, it shouldn't be impossible creating a Win32 interface that will let me read and write to one. Does anyone know? Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Converting a zsh prompt to bash
Hello! I have a real nice prompt in zsh however I feel its setting in /etc/zshrc might be a bit too much to just specify a prompt. This one, with a real nice color setting: ([EMAIL PROTECTED])(09:58+16/05) (%:~) Requires all this: PROMPT=$'%{\e[01;36m%}(%{\e[22;36m%}%n%{\e[01;30m%}@' PROMPT+=$'%{\e[22;36m%}%m%{\e[01;36m%})%{\e[01;36m%}%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;36m%}%D{%d/%m}' PROMPT+=$'%{\e[01;36m%})%{\e[01;30m\e[00m%}\n%{\e[01;36m%}(' PROMPT+=$'%{\e[22;36m%}%#%{\e[01;30m%}:%{\e[22;36m%}%~%{\e[01;36m%})' PROMPT+=$'%{\e[01;30m\e[00m%} ' if [[ `whoami` = root ]] then PROMPT=$'%{\e[01;31m%}(%{\e[22;31m%}%n%{\e[01;30m%}@' PROMPT+=$'%{\e[22;31m%}%m%{\e[01;31m%})%{\e[01;31m%}%{\e[01;31m%}(' PROMPT+=$'%{\e[22;31m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;31m%}%D{%d/%m}' PROMPT+=$'%{\e[01;31m%})%{\e[01;30m\e[00m%}\n%{\e[01;31m%}(' PROMPT+=$'%{\e[22;31m%}%#%{\e[01;30m%}:%{\e[22;31m%}%~%{\e[01;31m%})' PROMPT+=$'%{\e[01;30m\e[00m%} ' fi I was wondering, were I to convert to bash, how would it then look like? All suggestions welcome, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: makeworld FAILURE on 5.4-STABLE
At 13:54 15.05.2006, Donald J. O'Neill wrote: On Monday 15 May 2006 04:03, Kyrre Nygard wrote: Hello Don, good old friend :) Yes I am back. I had to change my alias because too many people were after me. And also I'm still stuck on the same problem. I did make a clean 6.1-RELEASE blow at my Pentium 120mhz firewall which needed the buildworld the most. Now it's my Pentium III 3,2ghz workstation that needs it, however it's got too much data on it that I'm currently in no position to back up, not even temporarily, so I'm not sure what to do other than this buildworld. Any suggestions? Oh yeah, I accidentally left the `*' out in chflags -R noschg. Take care, K* I was hoping it be as simple as a missing '*', but I would think there would be error messages showing up about that. Oh, well. Ok, you're stuck in the same place as before, and by that I mean you are failing the 'make buildworld' part of the sequence, correct?. That means that there's something you're either doing or not doing, prior to starting the buildworld that's causing a problem. What's in your /etc/make.conf? Try doing 'make buildworld' with the GENERIC conf file rather than your NINJA one. The problem may be there. If you can get through the upgrade using the GENERIC you've got the upgrade in place and you can find out what's wrong with NINJA. That's the best I can suggest for now. And do the 'make cleandir' twice, as Gerard suggested. It's not irrelevant. Don Hello Don! Yes it's the `make buildworld' as far as I know. The /etc/make.conf contains PERL_VER=5.8.7 and PERL_VERSION=5.8.7. Is it possible, do you think, to use a FreeSBIE CD maybe to clean out everything on my harddrive but my /home/kyrre where all my important files are, and then reinstall the latest FreeBSD without reformatting? It might be risky, let's say I hit the wrong switch and it does format everything, but you get my point right? To just lay a new FreeBSD on top of an empty harddrive? I hope this is possible somehow ... Well, take care Don! -- Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Some shell scripts; a more elegant approach?
Hello! I have a bash script here to clean .txt files. But I want to incorporate a feature where, if the .txt file is less than 300 bytes, it will echo $file: Corrupt. I'm very new to scripting, but I know that this method is not really nice: -- for file in `find -s . -type f -name *.txt`; do mv -f $file $file.tmp tr -d '\r' $file | cat -s | sed -E -e 's/[[:space:]]+$//' $file.tmp echo blank echo $file.tmp cat blank $file.tmp $file rm -f blank $file.tmp done for file in `find . -type f -name *.txt -size -300c`; do echo $file: Corrupt done -- I also have another script here that I'm wondering some about: -- echo Giving files to user $1, group $2. chown -R $1:$2 * echo Setting files to $3, folders to $4. find -s . -type f -exec chmod $3 '{}' \; find -s . -type d -exec chmod $4 '{}' \; -- It mass sets permissions and ownerships. In it, I have to specify $1, $2, $3 and $4. If I just specify let's say $1 and $2, it will error out because the finds in $3 and $4 aren't given anything. How do I avoid this? Thanks people, I apologize for my ignorance, -- Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Reading UFS2 from Windows
At 10:40 16.05.2006, dawnshade wrote: On Tuesday 16 May 2006 12:19, Kyrre Nygard wrote: Hello! I have an awkward setup right here. I have my first harddrive split into one NTFS partition which runs Windows, and one FAT32 partition which serves as a temporary docking station for all my files which I later secure into my 2nd harddrive running FreeBSD. Can I skip this temporary docking station somehow? I was thinking, since UFS2 is an open specification, it shouldn't be impossible creating a Win32 interface that will let me read and write to one. Does anyone know? http://sourceforge.net/projects/ufs2tools http://sourceforge.net/projects/ffsdrv Thanks man! This is very, very cool. Read only though? All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Reading UFS2 from Windows
At 10:40 16.05.2006, dawnshade wrote: On Tuesday 16 May 2006 12:19, Kyrre Nygard wrote: Hello! I have an awkward setup right here. I have my first harddrive split into one NTFS partition which runs Windows, and one FAT32 partition which serves as a temporary docking station for all my files which I later secure into my 2nd harddrive running FreeBSD. Can I skip this temporary docking station somehow? I was thinking, since UFS2 is an open specification, it shouldn't be impossible creating a Win32 interface that will let me read and write to one. Does anyone know? http://sourceforge.net/projects/ufs2tools http://sourceforge.net/projects/ffsdrv I'm fine with having this temporary docking station however since it's FAT32, certain scripts (like rename scripts) make my FreeBSD lock up and freeze. -- Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: makeworld FAILURE on 5.4-STABLE
At 11:12 16.05.2006, Donald J. O'Neill wrote: On Tuesday 16 May 2006 03:30, Kyrre Nygard wrote: Hello Don! Yes it's the `make buildworld' as far as I know. The /etc/make.conf contains PERL_VER=5.8.7 and PERL_VERSION=5.8.7. Is it possible, do you think, to use a FreeSBIE CD maybe to clean out everything on my harddrive but my /home/kyrre where all my important files are, and then reinstall the latest FreeBSD without reformatting? It might be risky, let's say I hit the wrong switch and it does format everything, but you get my point right? To just lay a new FreeBSD on top of an empty harddrive? I hope this is possible somehow ... Well, take care Don! -- Kyrre Is /home on a slice of its own. Mine is, for the reason that if I have to blow off the system and reinstall, I can safely do that, as long as I don't make any changes to /home, just remount it as /home. You can do this with sysinstall, very easlily. Send the output from 'df', I can tell from that. Don Hello! Actually, my /home is under /usr ... uh oh huh? No can do then? Thanks for the tip of having /home as a seperate slice though, I'll treasure it for the rest of my days! Peace, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Has the port collection become to large to handle.
At 20:28 13.05.2006, fbsd wrote: To all question list readers; Now with 14576 ports in the collection where do you draw the line that its too large to be downloading the whole collection when you just use 10 or 20 of them? The port collection is growing at a ever increasing rate per month. The mass majority of the ports are so special purpose that only a very few people have need of them. Sure there are ways to limit the categories you select to download, but still the size of the most used categories is too large and loaded with ports not commonly used by the general user. So people them use the packages. But the problem with the packages is they are not updated every time changes are made to the port they were created from. Also packages that have dependants like php4/php5 or mysql4/mysql5 are not being updated to use the newer versions of those dependants as they come out. I for one think the port/package collection has already grown to large to handle in it's present state. Users are consuming massive bandwidth to download and it consumes a very large chunk of disk space. Saying nothing about the wasted resources consumed to back it up repeatedly. I have gone to using the package version for everything and only downloading the ports config files for packages that I need to compile from scratch to change some add on function. This methodology has worked fine since FreeBSD version 3.0 as I used each new release of FreeBSD up to 6.1. Now in 6.1 there is problems with packages that have not been recreated using the new system make file. This problem is caused by there being no mandatory requirement on the ports maintainers to recreate the packages any time one of the dependants change or when changes are made to the canned make process or when dependants show up as broken. Yes I know what a large task this is and that it requires a lot of run time to accomplish. So my question is how do we users make our needs known to the ports maintainer group so that will seriously address the problem of the packages being outdated? Are there other people on this list who are dissatisfied with the packages and the problems associated with using packages and ports mixed together? What are your thoughts about requesting the ports group to create a new category containing just the ports most commonly used including their dependents and making this general category the default used to download. This would be a much smaller sized download containing everything necessary to build the most used ports. Many of the dependents are used over and over by many different port applications. This new category would them be given priority in keeping their packages up to date. Could even take this idea one step further and say that only ports in this category will have packages built and keep up to date. All ports not in this special category will not have packages built at all. I think this would help the port group to better manager their people resources and serve the needs of the user community better. Another idea I would like to throw out to the list is how about requesting the ports group to add a function to packages so the installer of the package can select what version of the dependent components should be included in the install. Much like make config does in the ports system? The packages system already automatically launches the download of dependent packages so why not give the installer the option to select which version of the dependent to fetch. Like in php4/5 or mysql4/5 or apache 13/20. This way the package is more flexible and the port maintainer does not have to build a different version of the parent package for each version of the dependant which is available. The whole idea behind this post is to give the general users who reads this questions list an opportunity to brainstorm about ways to make the ports/package collection better and easier to use. This may help the ports group in understanding the needs and direction we the users would like to see the management of the collection to take. If we don't speak up they will just think things are ok as they are now. FreeBSD is a public project. The ports group are not the only users who can give input about the direction and policies concerning the future of the ports/package collection. All feedback welcome. Hello! I would just like to direct you to one of my previous threads: http://lists.freebsd.org/pipermail/freebsd-questions/2006-March/115402.html It was not warmly welcomed though. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: makeworld FAILURE on 5.4-STABLE
At 18:16 14.05.2006, Donald J. O'Neill wrote: On Sunday 14 May 2006 07:31, Kyrre Nygard wrote: I believe it should be: chflags -R noschg /usr/obj/usr rm -rf /usr/obj/usr cd /usr/src Yes, the 'make cleandir' statement is run twice. -- Gerard Seibert [EMAIL PROTECTED] Once or twice, it is still irrelevant. Thank you so much though. -- Kyrre Ah, Kristian, I see you're back. And you still can't get past 'buildworld'. And you're still giving kind of flip answers, although with a thank you at the end. What processor are you using? You know, your best bet might be to blow off the 5.4 and do a new install with a 6.1-RELEASE disk. At least then you could get upgraded. Ok, I saw an error in your beginning procedure: cvsup -g -L 2 /etc/cvsupfile cd /usr/obj chflags -R noschg It's right here. You need to use this: chflags -R noschg * rm -rf * cd /usr/src make clean Also, Instead of 'make clean' , run 'make cleandir', twice, as was suggested. Try that and be sure to keep it out of a script. Don Hello Don, good old friend :) Yes I am back. I had to change my alias because too many people were after me. And also I'm still stuck on the same problem. I did make a clean 6.1-RELEASE blow at my Pentium 120mhz firewall which needed the buildworld the most. Now it's my Pentium III 3,2ghz workstation that needs it, however it's got too much data on it that I'm currently in no position to back up, not even temporarily, so I'm not sure what to do other than this buildworld. Any suggestions? Oh yeah, I accidentally left the `*' out in chflags -R noschg. Take care, K* ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The Complete FreeBSD: errata and addenda
See the beauty of http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf -- I have found a problem. I find the design / typesetting to be very unprofessional. It looks like a teenager wrote it, in Microsoft Word, but no offense. You just used the wrong typesetting system. Please check out the LaTeX Project as well as the Memoir class. It will do the typesetting for you, and your book will become a lot more comfortable for all of us to read. Let us know what you think! Good luck, Kyrre At 19:02 05.05.2006, Greg Lehey wrote: The trouble with books is that you can't update them the way you can a web page or any other online documentation. The result is that most leading edge computer books are out of date almost before they are printed. Unfortunately, The Complete FreeBSD, published by O'Reilly, is no exception. Inevitably, a number of bugs and changes have surfaced. The Complete FreeBSD has been through a total of five editions, including its predecessor Installing and Running FreeBSD. Two of these have been reprinted with corrections. I maintain a series of errata pages. Start at http://www.lemis.com/errata-4.html to find out how to get the errata information. Note also that the book has now been released for free download in PDF form. Instead of downloading the changed pages, you may prefer to download the entire book. See http://www.lemis.com/grog/Documentation/CFBSD/ for more information. Have you found a problem with the book, or maybe something confusing? Please let me know: I'm no longer constantly updating it, but I may be able to help Greg ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: makeworld FAILURE on 5.4-STABLE
At 15:37 13.05.2006, Lowell Gilbert wrote: Kyrre Nygard [EMAIL PROTECTED] writes: Hello ... When doing makeworld, and this is my exact procedure: cvsup -g -L 2 /etc/cvsupfile cd /usr/obj chflags -R noschg rm -rf * cd /usr/src make clean make buildworld (this is where it fails) make buildkernel KERNCONF=NINJA make installkernel KERNCONF=NINJA make installworld mergemaster With this error: === usr.sbin/traceroute (all) cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -c version.c cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -c /usr/src/usr.sbin/traceroute/../../contrib/traceroute/traceroute.c cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -c /usr/src/usr.sbin/traceroute/../../contrib/traceroute/ifaddrlist.c cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -c /usr/src/usr.sbin/traceroute/../../contrib/traceroute/findsaddr-socket.c cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -o traceroute version.o traceroute.o ifaddrlist.o findsaddr-socket.o -lipsec traceroute.o(.text+0x7): In function `usage': : undefined reference to `version' *** Error code 1 Stop in /usr/src/usr.sbin/traceroute. *** Error code 1 Stop in /usr/src/usr.sbin. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Does anyone know what I can do to fix it? Did you have sources before you ran cvsup? What did the supfile look like? No, no sources. # cat /etc/cvsupfile *default host=cvsup.no.FreeBSD.org *default base=/usr *default prefix=/usr *default release=cvs tag=RELENG_6 *default delete use-rel-suffix src-all doc-all tag=. Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: makeworld FAILURE on 5.4-STABLE
At 21:09 13.05.2006, Gerard Seibert wrote: Lowell Gilbert wrote: Kyrre Nygard [EMAIL PROTECTED] writes: Hello ... When doing makeworld, and this is my exact procedure: cvsup -g -L 2 /etc/cvsupfile cd /usr/obj chflags -R noschg rm -rf * cd /usr/src make clean make buildworld (this is where it fails) make buildkernel KERNCONF=NINJA make installkernel KERNCONF=NINJA make installworld mergemaster With this error: === usr.sbin/traceroute (all) cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -c version.c cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -c /usr/src/usr.sbin/traceroute/../../contrib/traceroute/traceroute.c cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -c /usr/src/usr.sbin/traceroute/../../contrib/traceroute/ifaddrlist.c cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -c /usr/src/usr.sbin/traceroute/../../contrib/traceroute/findsaddr-socket.c cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -o traceroute version.o traceroute.o ifaddrlist.o findsaddr-socket.o -lipsec traceroute.o(.text+0x7): In function `usage': : undefined reference to `version' *** Error code 1 Stop in /usr/src/usr.sbin/traceroute. *** Error code 1 Stop in /usr/src/usr.sbin. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Does anyone know what I can do to fix it? Did you have sources before you ran cvsup? What did the supfile look like? I believe it should be: chflags -R noschg /usr/obj/usr rm -rf /usr/obj/usr cd /usr/src make cleandir make cleandir Yes, the 'make cleandir' statement is run twice. -- Gerard Seibert [EMAIL PROTECTED] Once or twice, it is still irrelevant. Thank you so much though. -- Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Has the port collection become to large to handle.
At 20:28 13.05.2006, fbsd wrote: To all question list readers; Now with 14576 ports in the collection where do you draw the line that its too large to be downloading the whole collection when you just use 10 or 20 of them? The port collection is growing at a ever increasing rate per month. The mass majority of the ports are so special purpose that only a very few people have need of them. Sure there are ways to limit the categories you select to download, but still the size of the most used categories is too large and loaded with ports not commonly used by the general user. So people them use the packages. But the problem with the packages is they are not updated every time changes are made to the port they were created from. Also packages that have dependants like php4/php5 or mysql4/mysql5 are not being updated to use the newer versions of those dependants as they come out. I for one think the port/package collection has already grown to large to handle in it's present state. Users are consuming massive bandwidth to download and it consumes a very large chunk of disk space. Saying nothing about the wasted resources consumed to back it up repeatedly. I have gone to using the package version for everything and only downloading the ports config files for packages that I need to compile from scratch to change some add on function. This methodology has worked fine since FreeBSD version 3.0 as I used each new release of FreeBSD up to 6.1. Now in 6.1 there is problems with packages that have not been recreated using the new system make file. This problem is caused by there being no mandatory requirement on the ports maintainers to recreate the packages any time one of the dependants change or when changes are made to the canned make process or when dependants show up as broken. Yes I know what a large task this is and that it requires a lot of run time to accomplish. So my question is how do we users make our needs known to the ports maintainer group so that will seriously address the problem of the packages being outdated? Are there other people on this list who are dissatisfied with the packages and the problems associated with using packages and ports mixed together? What are your thoughts about requesting the ports group to create a new category containing just the ports most commonly used including their dependents and making this general category the default used to download. This would be a much smaller sized download containing everything necessary to build the most used ports. Many of the dependents are used over and over by many different port applications. This new category would them be given priority in keeping their packages up to date. Could even take this idea one step further and say that only ports in this category will have packages built and keep up to date. All ports not in this special category will not have packages built at all. I think this would help the port group to better manager their people resources and serve the needs of the user community better. Another idea I would like to throw out to the list is how about requesting the ports group to add a function to packages so the installer of the package can select what version of the dependent components should be included in the install. Much like make config does in the ports system? The packages system already automatically launches the download of dependent packages so why not give the installer the option to select which version of the dependent to fetch. Like in php4/5 or mysql4/5 or apache 13/20. This way the package is more flexible and the port maintainer does not have to build a different version of the parent package for each version of the dependant which is available. The whole idea behind this post is to give the general users who reads this questions list an opportunity to brainstorm about ways to make the ports/package collection better and easier to use. This may help the ports group in understanding the needs and direction we the users would like to see the management of the collection to take. If we don't speak up they will just think things are ok as they are now. FreeBSD is a public project. The ports group are not the only users who can give input about the direction and policies concerning the future of the ports/package collection. All feedback welcome. Hello! I would just like to direct you to one of my previous threads: http://lists.freebsd.org/pipermail/freebsd-questions/2006-March/115402.html It was not warmly welcomed though. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: An FTP alternative ?
At 04:57 13.05.2006, Leo Lapousterle wrote: Hello :) I'm fed up with FTP servers : FTP is great, but I need some admin stuff like privileges (one user can upload but not download, for example) unavailable for FTP... at least for those I've tested. Is there an alternative way for FTP, allowing individual privileges? I found hxd (hotline protocol, I used it 7 years ago!), it's very powerful but quite discontinued... Anybody has another idea? :) Thanks! -- Léo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] http://www.openftpd.org Although, I prefer vsftpd. It's super fast, super secure and super simple. And simple UNIX file permissions decides who gets to upload (write) and not. Good luck! Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
makeworld FAILURE on 5.4-STABLE
Hello ... When doing makeworld, and this is my exact procedure: cvsup -g -L 2 /etc/cvsupfile cd /usr/obj chflags -R noschg rm -rf * cd /usr/src make clean make buildworld (this is where it fails) make buildkernel KERNCONF=NINJA make installkernel KERNCONF=NINJA make installworld mergemaster With this error: === usr.sbin/traceroute (all) cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -c version.c cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -c /usr/src/usr.sbin/traceroute/../../contrib/traceroute/traceroute.c cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -c /usr/src/usr.sbin/traceroute/../../contrib/traceroute/ifaddrlist.c cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -c /usr/src/usr.sbin/traceroute/../../contrib/traceroute/findsaddr-socket.c cc -O2 -fno-strict-aliasing -pipe -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_NET_ROUTE_H=1 -DHAVE_NET_IF_DL_H=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_SETLINEBUF=1 -DHAVE_RAW_OPTIONS=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 -DIPSEC -I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl -o traceroute version.o traceroute.o ifaddrlist.o findsaddr-socket.o -lipsec traceroute.o(.text+0x7): In function `usage': : undefined reference to `version' *** Error code 1 Stop in /usr/src/usr.sbin/traceroute. *** Error code 1 Stop in /usr/src/usr.sbin. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Does anyone know what I can do to fix it? Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pam_userdb.so: Where is it?
At 18:36 10.05.2006, N.J. Thomas wrote: * Kyrre Nygard [EMAIL PROTECTED] [2006-05-10 18:18:23 +0200]: Does anybody know where pam_userdb.so has gone? FreeBSD doesn't appear to have ever had it, so it hasn't gone anywhere. The thread you linked to below suggests exactly that. You could download the source and try and build it. That's a real good advice. I'll see what I can do with it ... Kyrre, More info for you, digging through the archives came up with this: http://lists.freebsd.org/pipermail/freebsd-questions/2006-April/117922.html Quoting: There's no pam_userdb.so available for FreeBSD. You could use pam_pwdfile.so, which is in the ports-collection. Users are added/changed e.g. through htpasswd. Works well if you have not a lot of accounts. a simple vsftpd.pam could look like this: authrequired /usr/local/lib/pam_pwdfile.so pwdfile /etc/vsftpd_login account required /usr/lib/pam_permit.so Just to let you know that worked a treat hth, Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ Thank you so much man. This worked wonders for me :) All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Trimming Whitespace From Beginning and end of Text Lines
At 16:50 12.05.2006, Martin McCormick wrote: This looks like something sed should be able to do, but I haven't had any luck at all. I wanted to remove any whitespace that has accidentally gotten added to the beginning or end of some lines of text. I made a test file that looks like: left justified. lots of spaces. and the best I have done so far is to get rid of about 3 spaces. Attempt 1. #! /usr/bin/sed -f s/ \+//g s/^ //g s/ $//g This looks like it should do the job, but the leading and trailing spaces are still mostly there. I wrote another script. Attempt 2. #! /bin/sh sed 's/^[[:space:]]//g' \ |sed 's/[[:space:]]$//g' If I cat the test file through this script, it also removes one or two spaces, but not all the leading and trailing whitespace I put there. I can write a program in C to do this, but is there a sed script or other native application in FreeBSD that can do this? Thank you. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Network Operations Group What's up man? Here's a script I use to remove trailing whitespace. It also reduces two or more empty lines like this: -- -- To just one: -- -- And it converts ASCII files to UNIX format (that is without ^M). Then for pretty sake, it adds an empty line to the end of each file. -- #!/usr/local/bin/bash # # Remove CRLF, trailing whitespace and double lining. # $MERHABA: ascii_clean.sh,v 1.0 2007/11/11 15:09:05 kyrre Exp $ # for file in `find -s . -type f`; do if file -b $file | grep -q 'text'; then echo $file tr -d '\r' $file | cat -s | sed -E -e 's/[[:space:]]+$//' $file.tmp mv -f $file.tmp $file echo $file: Done fi done -- I'd be interested in knowing if you manage to improve this script. Take care, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: New FreeBSD Logo
At 08:13 10.05.2006, Björn König wrote: Chad Leigh -- Shire.Net LLC schrieb: And doesn't beastie represent the complete *BSD family, not just FreeBSD? I think so. Björn Please take this to the advocacy mailinglist. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pam_userdb.so: Where is it?
Hello! Does anybody know where pam_userdb.so has gone? Linux has it, but apparently FreeBSD does not. I need it to set up virtual users with vsftpd. I've been in contact with others with the same problem: http://lists.freebsd.org/pipermail/freebsd-questions/2005-November/104571.html As well as Freenode #vsftpd. But nobody seems to know what the PAM module for Berkeley DB files is at. Or perhaps somebody can suggest alternate methods? Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: New freeBSD logo on freebsd.org
At 17:42 10.05.2006, Jeff Rollin wrote: Does anyone else think its a logo get over it? When was the last time an IT admin went I installed Win 2k3 becuase it has that cool logo thing that I like for a screensaver? I think it's a bigger problem than that. When was the last time Steve Ballmer responded to a complaint that his shiny new elephant d*ck screensaver crashed the system with the words Go fuck yourself? That's the kind of response some who claim to be high-ups in the FreeBSD community are giving here. That kind of attitude helps no one, least of all FreeBSD's reputation. Freeze! This is the BSDPD. Stop this shit immediately! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pam_userdb.so: Where is it?
At 18:06 10.05.2006, Freminlins wrote: Kyrre, On 5/10/06, Kyrre Nygard mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hello! Does anybody know where pam_userdb.so has gone? FreeBSD doesn't appear to have ever had it, so it hasn't gone anywhere. The thread you linked to below suggests exactly that. Linux has it, but apparently FreeBSD does not. I need it to set up virtual users with vsftpd. I've been in contact with others with the same problem: http://lists.freebsd.org/pipermail/freebsd-questions/2005-November/104571.htmlhttp://lists.freebsd.org/pipermail/freebsd-questions/2005-November/104571.html As well as Freenode #vsftpd. But nobody seems to know what the PAM module for Berkeley DB files is at. Or perhaps somebody can suggest alternate methods? You could download the source ( http://cvs.sourceforge.net/viewcvs.py/pam/Linux-PAM/modules/pam_userdb/http://cvs.sourceforge.net/viewcvs.py/pam/Linux-PAM/modules/pam_userdb/) and try and build it. Thanks, Kyrre Frem. Thanks a lot man! That's a real good advice. I'll see what I can do with it ... All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
PAM for Berkeley DB (for a vsftpd virtual user setup)
Hello! I need to know how to configure PAM for Berkeley DB so that my vsftpd virtual user setup can function: --- /usr/local/etc/vsftpd.conf listen=YES listen_port=5 pasv_min_port=53000 pasv_max_port=55000 background=YES max_clients=5 max_per_ip=1 local_enable=YES write_enable=YES guest_enable=YES guest_username=ftp chroot_local_user=YES ascii_download_enable=NO ascii_upload_enable=NO anonymous_enable=NO xferlog_enable=NO secure_chroot_dir=/home/kyrre/ftp rsa_cert_file=/home/kyrre/ftp/.certificate banner_file=/home/kyrre/ftp/.banner --- /usr/local/etc/vsftpd.pw # db4_load -T -t hash -f vsftpd.pw vsftpd.db # chmod 600 vsftpd.db kyrre p4ssw0rd --- /etc/pam.d/ftpd auth required pam_userdb.so db=/usr/local/etc/vsftpd.db account required pam_userdb.so db=/usr/local/etc/vsftpd.db There is no pam_userdb.so on my box, and the vsftpd documentation doesn't seem to cover anything on FreeBSD. What could I do? Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The Complete FreeBSD: errata and addenda
I have found a problem. I find the design / typesetting to be very unprofessional. It looks like a teenager wrote it, in Microsoft Word, but no offense. You just used the wrong typesetting system. Please check out the LaTeX Project as well as the Memoir class. It will do the typesetting for you, and your book will become a lot more comfortable for all of us to read. Let us know what you think! Good luck, Kyrre At 19:02 05.05.2006, Greg Lehey wrote: The trouble with books is that you can't update them the way you can a web page or any other online documentation. The result is that most leading edge computer books are out of date almost before they are printed. Unfortunately, The Complete FreeBSD, published by O'Reilly, is no exception. Inevitably, a number of bugs and changes have surfaced. The Complete FreeBSD has been through a total of five editions, including its predecessor Installing and Running FreeBSD. Two of these have been reprinted with corrections. I maintain a series of errata pages. Start at http://www.lemis.com/errata-4.html to find out how to get the errata information. Note also that the book has now been released for free download in PDF form. Instead of downloading the changed pages, you may prefer to download the entire book. See http://www.lemis.com/grog/Documentation/CFBSD/ for more information. Have you found a problem with the book, or maybe something confusing? Please let me know: I'm no longer constantly updating it, but I may be able to help Greg ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
A good source for scripts
Hello! I'm searching a good source for various scripts like shell, Ruby, Python etc. A lot of these script sites are more focused on making an income with eyestabbing advertising rather than collecting and redistributing fine scripts. Anyone know of any? Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FTPd recommendation?
It is such a beautiful FTP server. At 15:53 04.05.2006, albi wrote: Noah wrote: What are people using for their ftpd these days? I am looking for something easy to initiailize, configure, and is very secure. http://vsftpd.beasts.org/ /usr/ports/ftp/vsftpd/ not too difficult to configure -- grtjs, albi gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | gpg --import ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: F.B.I. are stealing from suspects
Hahaha damn, that was hillarious :P At 05:56 29.04.2006, james dandey wrote: In the San Francisco/Bay area where the cost of living is high. Some FBI are propping up thier lifestyles by stealing from suspects. - Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Text files going double lined
At 15:33 18.04.2006, [EMAIL PROTECTED] wrote: Stop wrinting code with notepad... If you search or perhaps within the handbook an elegant script file exists will fix your woes. Try searching in Gentoo forums and FreeBSD I can't remeber where I found it. The issue is unix uses carridge returns at the end of line. Windows uses carridge returns and line feeds. Unless your coders' editor allows you to stop this I would suggest the finding of this script to eliminate the extra line feed. I use vim, or Notepad2 in Windows. But hey this is not a carriage return problem. You might like this though: #!/usr/local/bin/bash # # Remove carriage returns and trailing whitespaces. # $NINJA: text_clean.sh,v 1.0 2007/11/11 15:09:05 kyrre Exp $ # for file in `find -s . -type f`; do if file -b $file | grep -q 'text'; then tr -d '\r' $file | sed -E -e 's/[[:space:]]+$//' $file.tmp mv -f $file.tmp $file echo $file: Done fi done Regards, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Text files going double lined
At 15:22 18.04.2006, Jim Stapleton wrote: would this by chance be happening after doing a network file transfer, such as ftp, with said files? Yes, you are most right Mr. Stapleton! All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Text files going double lined
At 15:38 18.04.2006, Derek Ragona wrote: Usually this is a result of the wrong end-of-line characters being used, depending on what the output device expects. In UNIX, end-of-line is just a line-feed, in MS-DOS/Windows end-of-line is a carriage-return line-feed pair. You may need to change the end-of-line characters to suit your needs and output device. -Derek I see, so this is them damn carriage returns after all huh? Damn them! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Text files going double lined
Hello, Does anybody know why text files sometime go double lined? That is, there somehow getting one empty line in between every line. I work with a lot of people across many platforms and I find it very annoying when large pieces of code or language gets doubled up like that. Would anyone happen to know how to then: 1) Reduce all empty single lines to no lines 2) Reduce all empty double lines to a single line To restore things? Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Text files appearing as data (using file)
Hello, I'm used to file(1) determining proper filetypes. However when text files have two cases of carriage returns on each line, file(1) identifies the text files as data. Is there any way to avoid this? Thank you, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]