Re: ufsstat - testers / feedback wanted!
Eric Anderson wrote: I've just finished the first version of ufsstat, a tool to show local filesystem statistics much like nfsstat does for NFS. The patch and tool is against 6.0, but it will probably apply and work fine under -CURRENT and possibly 5.x as well. I'm looking for bug reports, comments/suggestions on style(9), and anything else, since this is my first C project, and of course first real FreeBSD contribution. :) To use it, do this: cd /tmp fetch http://www.googlebit.com/software/ufsstat/ufsstat-20051011.tar.gz cd /usr tar xvzf /tmp/ufsstat-20051011.tar.gz patch ./ufsstats.patch add: OPTIONSUFSSTAT to your kernel. Rebuild and install world/kernel. Correction to the above: add: OPTIONS UFS_STAT to your kernel. Eric -- Eric AndersonSr. Systems AdministratorCentaur Technology Anything that works is better than anything that doesn't. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portmanager
Michael C. Shultz wrote: if ( getenv(TERM) ) { . . . } Anyway you should use code like that for the cases: char *term; term = getenv(TERM); And check the variable afterwards. It much better than call getenv() twice. And the first condition would be: if( term !strncmp( term, xterm, 5 ) isatty(fileno(stdout)) ) And some people not recomend use '!' with str[n]cmp(). Using '== 0' is better. It was someting about a code style. -- Sem. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portmanager
On Thursday 13 October 2005 04:37, you wrote: Michael C. Shultz wrote: if ( getenv(TERM) ) { . . . } Anyway you should use code like that for the cases: char *term; term = getenv(TERM); And check the variable afterwards. It much better than call getenv() twice. And the first condition would be: if( term !strncmp( term, xterm, 5 ) isatty(fileno(stdout)) ) And some people not recomend use '!' with str[n]cmp(). Using '== 0' is better. It was someting about a code style. Thanks for the good advice! I'll clean it up for the next change. -Mike ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: SPAM: Score 5.0: Re: Bind within src-contrib
From: Remko Lodder [mailto:[EMAIL PROTECTED] A system without resolver libraries and applications simply is not maintainable by default. If you have no resolving applications in your base system you will not be able to install a port or anything at all that requires remote access. Why? because your machine cannot map the www.freebsd.org host (example) to an ip address. Without being able to do so, it simply cannot find the ip address of the host where the files might live resulting in a failre to obtain the files. And well without files it will be difficult to install something... For my own edification, are you saying that you need a local bind in order to access a remote nameserver? I thought a nameserver entry in resolv.conf was sufficient for this, allowing the resolver library to use the services of a remote nameserver to resolve names. I also didn't realize that the resolver library needed these applications to function. Why are they installed in /usr/bin instead of /bin? David ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
building a glade2 app
i'm just trying to compile a simple hello world using a glade2 created interface. i'm following directions by running autogen.sh and it yells about all kinds of things regarding the auto* tools. Has anyone successfully built an app using glade2 and if so what changes did you have to make to your environment to get this to work. FYI, it's just gtk+ not gnome. -Tom ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: portmanager
Just a comment from an on-looker to this post. From the getenv The getenv() function obtains the current value of the environment vari- able, name. If the variable name is not in the current environment, a null pointer is returned. So it could potentially be passing in a null pointer to strncmp which is not good. Is that the problem you're seeing. Easy enough to test the return from getenv before using it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael C. Shultz Sent: 10/12/2005 1:43 PM To: Michael Lednev; freebsd-questions@freebsd.org; [EMAIL PROTECTED] Subject: Re: portmanager On Sunday 09 October 2005 07:53, Michael Lednev wrote: Hello, freebsd-questions. anyone tried to run portmanager from crontab? as for me it just coredumps, what am i doing wrong? its simply 0 0 * * * portmanager -s I'm not sure how to fix it but I've found where portmanager crashes when run from cron, the code is: if( !strncmp( getenv(TERM), xterm, 5 ) isatty(fileno(stdout)) ) { stringSize = strlen( id ) + 1 + strlen( VERSION ) + 1; xtermTitle = malloc( stringSize ); xtermTitle[0] = 0; strcat( xtermTitle, id ); strcat( xtermTitle, ); strcat( xtermTitle, VERSION ); printf( %c]0;%s%c, '\033', xtermTitle, '\007' ); free( xtermTitle ); } This is used to put information in the xterm title screen while portmanager is running, I don't know enough about cron to have a clue how to fix this except to remove it and I don't want to do that. Anyone have any ideas? This particualr code snippet is from portmanager/portmanager.c around line 137 -Mike ps. I've cross posted this to freebsd-hackers because it is a coding problem, so you may want to remove freebsd-questions from any replies. . ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: portmanager
-Original Message- From: Sergey Matveychuk [mailto:[EMAIL PROTECTED] Sent: 10/13/2005 5:38 AM To: Michael C. Shultz Cc: Mark J. Sommer; [EMAIL PROTECTED]; RW Subject: Re: portmanager Michael C. Shultz wrote: if ( getenv(TERM) ) { . . . } Anyway you should use code like that for the cases: char *term; term = getenv(TERM); And check the variable afterwards. It much better than call getenv() twice. And the first condition would be: if( term !strncmp( term, xterm, 5 ) isatty(fileno(stdout)) ) And some people not recomend use '!' with str[n]cmp(). Using '== 0' is better. It was someting about a code style. -- Sem. Completely agree! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sata
On Thursday 13 October 2005 01:29, rusel wrote: Hello, does any FreeBSD relase supports Intel`s SATA Controller? 1) You should have been able to find this out on your own. Specifically here: http://www.freebsd.org/releases/5.4R/hardware-i386.html (which is linked to from the Release Information page of the main FreeBSD website) and here: http://www.freebsd.org/cgi/man.cgi?query=atasektion=4manpath=FreeBSD+5.4-RELEASE (which is linked to from the above link, among other places) 2) Even if you couldn't find this info on your own, this is entirely the wrong mailing list. -questions or -stable might have been more appropriate. 3) Which Intel SATA controller are you asking about? 4) The answer is probably yes. The ata driver in FreeBSD 6.0 supports every mainstream Intel ATA controller I'm aware of, up to and including ICH6 (ICH5 for FreeBSD 5.4 according to the manpage above). JN ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
libarchive vs. libtool
Tim Kientzle wrote: Log: 1) Use GNU libtool to build shared libraries on non-FreeBSD systems (or on FreeBSD systems when using ports). 2) Overhaul the versioning logic. Does anyone on this list think they understand libtool? I've been talking to someone using Debian who is trying to figure out why Debian produces a libarchive.so.1.2.36 and FreeBSD produces a libarchive.so.3 from the exact same build system. The discussion of version numbering in info libtool is quite baffling. Tim ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: libarchive vs. libtool
On Thu, 2005-10-13 at 08:17 -0700, Tim Kientzle wrote: Tim Kientzle wrote: Log: 1) Use GNU libtool to build shared libraries on non-FreeBSD systems (or on FreeBSD systems when using ports). 2) Overhaul the versioning logic. Does anyone on this list think they understand libtool? I've been talking to someone using Debian who is trying to figure out why Debian produces a libarchive.so.1.2.36 and FreeBSD produces a libarchive.so.3 from the exact same build system. The discussion of version numbering in info libtool is quite baffling. The problem lies in the fact that somewhere somehow the libtool people apparently thought it would be funny to make the way the library version numbering works FreeBSD different from the way they do it on Linux. (At least that's my understanding of the matter). You may want to check the freebsd-gnome@ list and do a search for ltverhack. It is my understanding that it is the intention to have this bogon fixed in ports post 6.0. -- Pascal Hofstee [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: building a glade2 app
Tom Grove [EMAIL PROTECTED] writes: i'm just trying to compile a simple hello world using a glade2 created interface. i'm following directions by running autogen.sh and it yells about all kinds of things regarding the auto* tools. you need to install devel/gnu-{autoconf,automake,libtool} DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
system password's file
Hi all, I want to migrate from linux to freebsd. My linux box (mail server) have alot of user (hundreds) --this is the problem. I dont know which file which the password's file. I dont want typing user name and its password one by one. Beside of that, thereis possibly my users change their passwords. How can I do this migrating ? (save) I'm sorry my English is not good. Thanks before. regrds. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: system password's file
On Fri, 14 Oct 2005 05:07:42 -0500, [EMAIL PROTECTED] wrote: Hi all, I want to migrate from linux to freebsd. My linux box (mail server) have alot of user (hundreds) --this is the problem. I dont know which file which the password's file. I dont want typing user name and its password one by one. Beside of that, thereis possibly my users change their passwords. How can I do this migrating ? (save) I'm sorry my English is not good. Read the whole thread: http://lists.freebsd.org/pipermail/freebsd-isp/2004-February/001780.html Cheers, Mezz Thanks before. regrds. -- [EMAIL PROTECTED] - [EMAIL PROTECTED] FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: system password's file
Try /etc/passwd and /etc/shadow User id and basic stuff in passwd, the encrypted passwords in shadow. I don't know if the encryption algorithms are compatible between linux and bsd or not. hth Simon --- [EMAIL PROTECTED] wrote: Hi all, I want to migrate from linux to freebsd. My linux box (mail server) have alot of user (hundreds) --this is the problem. I dont know which file which the password's file. I dont want typing user name and its password one by one. Beside of that, thereis possibly my users change their passwords. How can I do this migrating ? (save) I'm sorry my English is not good. Thanks before. regrds. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions. Naguib Mahfouz __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: system password's file
On 10/14/05, Simon Roberts [EMAIL PROTECTED] wrote: Try /etc/passwd and /etc/shadow User id and basic stuff in passwd, the encrypted passwords in shadow. I don't know if the encryption algorithms are compatible between linux and bsd or not. hth Simon Make sure you don't have 16 chars username before migrating. FreeBSD doesn't support really long usernames. Jiawei -- Without the userland, the kernel is useless. --inspired by The Tao of Programming ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: system password's file
Hi, I would suggest you to try the below and make sure this works 1 ) Install a new freebsd server 2 ) create a user on your linux machine say with username freebsd and some password 3 ) now copy the data in your /etc/passwd file of linux machine to freebsd machine 4 ) Also copy the /etc/shadow file to freebsd server and renmae it as /etc/master.passwd 5 ) Also copy /etc/groups 6 ) Now try to login to freebsd machine with the new user created on the linux machine. Note : Please create a copy of the original file on freebsd machine before you change the real file If the test is successful. I suppose you can migrate from linux to freebsd with all the users and their passwords. Also while coping the file make sure that the default enteries are there. That just transfer the user details and not the system user details On 10/14/05, Jiawei Ye [EMAIL PROTECTED] wrote: On 10/14/05, Simon Roberts [EMAIL PROTECTED] wrote: Try /etc/passwd and /etc/shadow User id and basic stuff in passwd, the encrypted passwords in shadow. I don't know if the encryption algorithms are compatible between linux and bsd or not. hth Simon Make sure you don't have 16 chars username before migrating. FreeBSD doesn't support really long usernames. Jiawei -- Without the userland, the kernel is useless. --inspired by The Tao of Programming ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: system password's file
Thanks for you all, I will do this step. regards. Hi, I would suggest you to try the below and make sure this works 1 ) Install a new freebsd server 2 ) create a user on your linux machine say with username freebsd and some password 3 ) now copy the data in your /etc/passwd file of linux machine to freebsd machine 4 ) Also copy the /etc/shadow file to freebsd server and renmae it as /etc/master.passwd 5 ) Also copy /etc/groups 6 ) Now try to login to freebsd machine with the new user created on the linux machine. Note : Please create a copy of the original file on freebsd machine before you change the real file If the test is successful. I suppose you can migrate from linux to freebsd with all the users and their passwords. Also while coping the file make sure that the default enteries are there. That just transfer the user details and not the system user details On 10/14/05, Jiawei Ye [EMAIL PROTECTED] wrote: On 10/14/05, Simon Roberts [EMAIL PROTECTED] wrote: Try /etc/passwd and /etc/shadow User id and basic stuff in passwd, the encrypted passwords in shadow. I don't know if the encryption algorithms are compatible between linux and bsd or not. hth Simon Make sure you don't have 16 chars username before migrating. FreeBSD doesn't support really long usernames. Jiawei -- Without the userland, the kernel is useless. --inspired by The Tao of Programming ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] -- Iwan Binanto Divisi Support-BAPSI Universitas Sanata Dharma Yogyakarta ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]