Re: fetchmail and plain text password
On Mon, Dec 28, 2009 at 06:35:15PM +0100, Roland Smith wrote: On Mon, Dec 28, 2009 at 03:15:53PM +, Anton Shterenlikht wrote: I use fetchmail http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-fetchmail.html to download all my mail from the Uni mail server to my fbsd box. I typically run it in daemon mode, which requires having my mail server password in plain text in .fetchmailrc I'm a little worried about the security of having my password in plain text on the system. chown you:yourgroup ~/.fetchmailrc chmod 400 ~/.fetchmailrc With these changes, only you and the superuser can read that file. yes, an attacker gaining superuser access is my worry. I'm reading Garfinkel and Spafford (1996) Practical UNIX internel security (a bit out of date, I know. I ordered the 3rd edition, 2003), and I realised there are a lot of potential security issues, of which I wasn't aware. Things like SUID/SGID files could be an issue, and lots of other things. Is there a more secure arrangement that would still allow running fetchmail in daemon mode? I'd be more worried that your password is sent as plaintext over the network using e.g. POP3. You should use the --ssl option if your mailserver allows it. it looks like it doesn't allow ssl. Or maybe there is another software solution alltogether? Presumably you are running a mailserver on your box. You can ask the administrator to forward mail to your machine by making an MX record for it. not sure I understand you here. I run sendmail daemon just for sending mail out of the box, and delivery of internal mail inside the box. Sendmail doesn't listen for any incoming connections. Could you please elaborate, or give a link. many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fetchmail and plain text password
Anton Shterenlikht wrote: I use fetchmail http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-fetchmail.html to download all my mail from the Uni mail server to my fbsd box. I typically run it in daemon mode, which requires having my mail server password in plain text in .fetchmailrc I'm a little worried about the security of having my password in plain text on the system. If your Uni mail server supports Kerberos, the only line in your ~/.fetchmailrc could be something like poll mail.yourserver.edu auth gssapi And you have to periodically refresh the Kerberos ticket. Works for me (I download mail from a Communigate Pro mail server). Of course root can have access to your Kerberos credentials cache, but I think it would be of more limited use than a plain text password. Actually my complete ~/.fetchmailrc is defaults protocol pop3 mda /usr/local/bin/procmail -d %T nokeep fetchall set syslog poll mail.sibptus.tomsk.ru auth gssapi -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:suda...@sibptus.tomsk.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
controller SUN STK RAID int on Sun Server X4140 issue
Hi We have installed FreeBSD 7.2 on Sun Server X4140 having the below controller Controller Kernel v5.2 build 16732 Adapter Raid Bios V5.2-0 Buil [16732] STK RAID INT Each time we power cycle the server, the server may or may not come up. Below are the messages from the log file: GEOM_LABEL: Label ufsid/4b2901e4f7f2e8a7 removed. WARNING: /local/cd_0 was not properly dismounted GEOM_LABEL: Label ufsid/4b2906a3d7dd8dc4 removed. WARNING: /local/cd_1 was not properly dismounted GEOM_LABEL: Label ufsid/4b2907343b10adba removed. .. aac0: COMMAND 0xe8023562 TIMEOUT AFTER 27915 SECONDS aac0: WARNING! Controller is no longer running! code=0xbc6201 Do you have any idea about the issue we are facing? Regards, Daniel Dawalibi System Engineer e-mail:daniel.dawal...@idm.net.lb Jisr Al Bacha P.O. Box 11-316 Beirut Lebanon tel +961 1 512513 ext. 366| fax +961 1 510474 tech support 1282 | http://www.idm.net.lb/ http://www.idm.net.lb http://www.idm.net.lb/ PLEASE CONSIDER THE ENVIRONMENT BEFORE YOU PRINT THIS E-MAIL Confidentiality Notice: The information in this document and attachments is confidential and may also be legally privileged. It is intended only for the use of the named recipient. Internet communications are not secure and therefore IDM does not accept legal responsibility for the contents of this message. If you are not the intended recipient, please notify us immediately and then delete this document. Do not disclose the contents of this document to any other person, nor take any copies. Violation of this notice may be unlawful. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fetchmail and plain text password
On Tue, Dec 29, 2009 at 11:11:50AM +, Anton Shterenlikht wrote: With these changes, only you and the superuser can read that file. yes, an attacker gaining superuser access is my worry. I'm reading Garfinkel and Spafford (1996) Practical UNIX internel security (a bit out of date, I know. I ordered the 3rd edition, 2003), and I realised there are a lot of potential security issues, of which I wasn't aware. Things like SUID/SGID files could be an issue, and lots of other things. If an attacker gains superuser privilege, you're screwed. But remote attacks are the least of your worries, IMHO. If an attacker has physical access to your machine, he can simply rip out the harddisk an peruse its contents at his leasure. That is why you need disk encryption. Or he could put a hardware keylogger between your keyboard and the computer to gat your passwords. So, 1) Make sure that the room where your machine is located can be and is locked when you are away, denying attackers physical access. 2) Encrypt those partitions that contain sensitive data using geli(8), in case (1) fails. After that you can start worrying about remote attacks. 3) Activate a firewall that is set up to deny incoming connections be default, unless they go to a port that is allowed. 4) If you need to run servers, consider running them in a jail(8) or at least in a chroot(8) environment. Look e.g. how it is done for named(8), see /etc/rc.d/named. I'd be more worried that your password is sent as plaintext over the network using e.g. POP3. You should use the --ssl option if your mailserver allows it. it looks like it doesn't allow ssl. Does it allow SSH connections to the mail machine, so you can tunnel fetchmail over ssh? Look at the ssh(1) manpage, specifically the '-L' port forwarding option. Or maybe there is another software solution alltogether? Presumably you are running a mailserver on your box. You can ask the administrator to forward mail to your machine by making an MX record for it. not sure I understand you here. I run sendmail daemon just for sending mail out of the box, and delivery of internal mail inside the box. Sendmail doesn't listen for any incoming connections. Could you please elaborate, or give a link. Your mail admin should set up the uni's MTA so that mail for you is sent to the MTA on your machine. You should set up your MTA and firewall so that your MTA will and can listen for incoming connections and process them. If the uni's mailserver holds on to mail and tries to deliver it at intervals, this is called batched SMTP or bSMTP, if it tries to deliver immediately, it is just SMTP. Note that for SMTP to work, your machine had best be on 24/7. The details of how this is done depend on the MTA that you and the university are using, and e.g. if address rewriting is used and if so, how. The most common scenario would be that when an e-mail for you arrives at the uni mailserver, it re-writes the address from me...@bristol.ac.uk to me...@yourmachine.bristol.ac.uk, where 'yourmachine' is the hostname of your machine on the university network. It would then forward the mail to the MTA on yourmachine.bristol.ac.uk. An opposite rewrite should be done when your MTA pushes stuff to the uni webserver. But whether your MTA should do that or the uni's MTA is a question of policy. In short: for details, talk to a mail/network administrator. :-) Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpWvuTxPrs4V.pgp Description: PGP signature
Re: fetchmail and plain text password
On Tue, 29 Dec 2009 11:11:50 + Anton Shterenlikht me...@bristol.ac.uk replied: On Mon, Dec 28, 2009 at 06:35:15PM +0100, Roland Smith wrote: On Mon, Dec 28, 2009 at 03:15:53PM +, Anton Shterenlikht wrote: I use fetchmail http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-fetchmail.html to download all my mail from the Uni mail server to my fbsd box. I typically run it in daemon mode, which requires having my mail server password in plain text in .fetchmailrc I'm a little worried about the security of having my password in plain text on the system. I ran across this URL: http://www.faqs.org/docs/Linux-mini/Secure-POP+SSH.html It might be what you are looking for. -- Jerry ges...@yahoo.com |=== |=== |=== |=== | Justice always prevails ... three times out of seven! Michael J. Wagner ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fetchmail and plain text password
Anton Shterenlikht writes: I'd be more worried that your password is sent as plaintext over the network using e.g. POP3. You should use the --ssl option if your mailserver allows it. it looks like it doesn't allow ssl. It is my understanding ISPs - at least those in the U.S. oriented to the home user - rarely do, It's a non-trivial amount of work to get working and then monitor for correct behavior and possible breaches. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: controller SUN STK RAID int on Sun Server X4140 issue
On Tue, Dec 29, 2009 at 01:27:00PM +0200, Daniel Dawalibi wrote: Hi We have installed FreeBSD 7.2 on Sun Server X4140 having the below controller Controller Kernel v5.2 build 16732 Adapter Raid Bios V5.2-0 Buil [16732] STK RAID INT Each time we power cycle the server, the server may or may not come up. Below are the messages from the log file: GEOM_LABEL: Label ufsid/4b2901e4f7f2e8a7 removed. You can ignore these GEOM_LABEL messages. They're harmless. WARNING: /local/cd_0 was not properly dismounted This is just what it says; the filesystem /local/cd_0 wasn't umount-ed before reboot. Maybe it was still in use by some process when the system tried to dismount it. Have a look at when/how it is mounted, and which programs are using it. aac0: COMMAND 0xe8023562 TIMEOUT AFTER 27915 SECONDS aac0: WARNING! Controller is no longer running! code=0xbc6201 Not a clue as to what this is. Have a look at the aac(4) manual page. Maybe enhancing the debug level will produce more informative messages. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpuWorRFxD4z.pgp Description: PGP signature
Re: fetchmail and plain text password
On Tue, Dec 29, 2009 at 08:03:53AM -0500, Robert Huff wrote: Anton Shterenlikht writes: I'd be more worried that your password is sent as plaintext over the network using e.g. POP3. You should use the --ssl option if your mailserver allows it. it looks like it doesn't allow ssl. It is my understanding ISPs - at least those in the U.S. oriented to the home user - rarely do, It's a non-trivial amount of work to get working and then monitor for correct behavior and possible breaches. Agreed. Which is exactly why I like xs4all so much. :-) They do provide these kinds of services. But I would expect a university network (which I understand what the OP is talking about) to offer something more sophisticated than plain POP3. I would expect at least bSMTP. Bristol seems to have a computer science department. That's at least a pool of warm bodies to train as sysadmins. :-P Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpVXsqLAWV8g.pgp Description: PGP signature
Re: fetchmail and plain text password
On Tue, Dec 29, 2009 at 02:22:09PM +0100, Roland Smith wrote: U.S. oriented to the home user - rarely do, It's a non-trivial amount of work to get working and then monitor for correct behavior and possible breaches. Agreed. Which is exactly why I like xs4all so much. :-) They do provide these kinds of services. But I would expect a university network (which I understand what the OP is talking about) to offer something more sophisticated than plain POP3. I would expect at least bSMTP. Bristol seems to have a computer science department. That's at least a pool of warm bodies to train as sysadmins. :-P it doesn't work like that.. I think it's an imap server. Anyway, I'm trying to get in touch with them. One of the problems is that the Uni are trying to implement a system where mail is never downloaded from the main mail servers at all. At least this is what I gather. So when users launch their mulberry (a typical Uni mail client) they connect to the mail servers, read and reply and whatever, but the data is just viewed on PCs and not stored there. I might be wrong, but that's my understanding. So programs like fetchmail that actually connect to their imap server and download mail to local boxes are probably not very welcome. many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Salvage files from harddrive
On Fri, Oct 07, 2011 at 04:07:51AM -0700, jeffry killen wrote: I have a hard drive that contains the /var file system in a system that will not boot. In single user mode I can mount /var. I want to take this disk and put it in another FreeBSD system and try to copy the files I need off of it to a safe place. The system I will plug it into will also have a separate disk with /var. Is there going to be a conflict with the labels and how would I best go about this? I've changed the size of the disk slices by copying files over to a nother disk, boot from that one and later back. I would suggest using 'rsync -aHW source dest And later remove with 'chflags -R noschg source; rm -rf source' -- Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: New user - small file server questions and quick GUI question
On Mon, Dec 28, 2009 at 11:49:31PM +0200, Kaya Saman wrote: Hi guys, I attempted an install of 7.2 stable on my laptop and subsequently installed X11also. Now I didn't have any Xorg.conf file but each time I tried to start X from the CLI using the normal startx command (read the documentation through fully beforehand) but I didn't manage to get the mouse or keyboard to even work let alone starting the Gnome2 interface. Beside the two daemons others refered to, you sould also edit ~/.initrc and ~/xsession. For me both have the line: 'exec startkde'. Thats the command to start kde. I am looking to setup a small file server which I will use as DNS and NTP server also. The reason for selecting FreeBSD is that the system I about to install onto doesn't have much memory (not sure how much but probably in the region of 300-500MB perhaps) and although Linux would definitely suite this kind of system as Solaris needs round 2GB or so for OpenSolaris, I am quite interested to learn FreeBSD but also take advantage of the ZFS file system which is standard now in version 8. I would stick with UFS of UFS2. The latter if you don't intent to share them with *BSD. As I understand ZFS uses quite a lot more resources. If I wanted to something with RAID I might still use it, but even so still would use UFS to the system slices. If you low on disk space you can reduce this. I have used 256M for / in the past but would advise against this. You would need something like 8G for /usr. But may need to raise that by 5G if you build ports. I have larger /temp of 7G, but also build ports there. If you build Java it would need a least 4G. I won't be installing a GUI on this machine since it is going to be a server so I would like to know if BSD has a small footprint memory and CPU wise for me to run on the machine in question which is a PIV? It's not a problem. The footprint depends more on the ports you like to run. Also just to make sure: NFS, Samba, NTPd, and ISC's Bind are all supported on FreeBSD aren't they?? Some come with the system, others you have to install. -- Alex Please copy the original recipients, otherwise I may not read your reply. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
What port contains libxcb.so.2, and hoow could I figure this out?
One of my machines is suddenly complaining that it can't find libxcb.so.2. This is probably an issue related to a recent attempt to update the software on this machine, so I figured I'd just rebuild the port that provides this library, but I can't figure out how to determine which on that would be. I have the feeling that I should be able to use pkg_info for this, but I can't seem to figure out how to accomplish this. Is this the right tool? If so, how do I use it for this, if not, what is the correct tool? Thanks. -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fetchmail and plain text password
On Tue, Dec 29, 2009 at 02:22:09PM +0100, Roland Smith wrote: On Tue, Dec 29, 2009 at 08:03:53AM -0500, Robert Huff wrote: Anton Shterenlikht writes: I'd be more worried that your password is sent as plaintext over the network using e.g. POP3. You should use the --ssl option if your mailserver allows it. it looks like it doesn't allow ssl. It is my understanding ISPs - at least those in the U.S. oriented to the home user - rarely do, It's a non-trivial amount of work to get working and then monitor for correct behavior and possible breaches. Agreed. Which is exactly why I like xs4all so much. :-) They do provide these kinds of services. But I would expect a university network (which I understand what the OP is talking about) to offer something more sophisticated than plain POP3. I would it's IMAP-4 server, whatever that means.. -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: New user - small file server questions and quick GUI question
On Mon, Dec 28, 2009 at 04:20:10PM -0600, Adam Vande More wrote: On Mon, Dec 28, 2009 at 3:49 PM, Kaya Saman kayasa...@optiplex-networks.com Running with no xorg.conf is fine, but you need to make sure dbus and hal are started at boot. Follow the handbook for best results. http://www.freebsd.org/doc/en/books/handbook/x-config.html How come? The keybord and mouse work for me without on a simple shell. -- Alex Please copy the original recipients, otherwise I may not read your reply. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fetchmail and plain text password
On Tue, Dec 29, 2009 at 01:44:21PM +, Anton Shterenlikht wrote: it doesn't work like that.. I think it's an imap server. Anyway, I'm trying to get in touch with them. One of the problems is that the Uni are trying to implement a system where mail is never downloaded from the main mail servers at all. At least this is what I gather. So when users launch their mulberry (a typical Uni mail client) they connect to the mail servers, read and reply and whatever, but the data is just viewed on PCs and not stored there. I might be wrong, but that's my understanding. So programs like fetchmail that actually connect to their imap server and download mail to local boxes are probably not very welcome. Fetchmail can use the IMAP protocol, and therefore should be just as welcome as any other IMAP client. And if you can read a message , it _is_ downloaded. The advantage of IMAP is that it allows you to partially download message. If I read the [IMAP page] and [IMAP RFC] correctly, the latter mandates the use of authentication. Quoting the latter; Note: a server implementation MUST implement a configuration in which it does NOT permit any plaintext password mechanisms, unless either the STARTTLS command has been negotiated or some other mechanism that protects the session from password snooping has been provided. In other words, a proper IMAP server does not permit plaintext passwords. [IMAP page]: http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol [IMAP RFC]: http://tools.ietf.org/html/rfc3501 Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp9bd4iK3ErD.pgp Description: PGP signature
Re: New user - small file server questions and quick GUI question
On Mon, Dec 28, 2009 at 05:04:52PM -0600, Adam Vande More wrote: On Mon, Dec 28, 2009 at 4:42 PM, Kaya Saman samank...@netscape.net wrote: Also if something goes wrong with the filesystem what are the tools to check the drive and repair errors as in Linux I use e2fsck followed by device ID. Example after a dirty shutdown: fsck -y FreeBSD 7 and up is able to do a lot of this on the background: fsck -yB Adding the line 'fsck_y_enable=YES' to /etc/rc.conf will run fsck -y if the initial preen fails -- Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What port contains libxcb.so.2, and hoow could I figure this out?
On Tue, Dec 29, 2009 at 8:08 AM, stan st...@panix.com wrote: One of my machines is suddenly complaining that it can't find libxcb.so.2. This is probably an issue related to a recent attempt to update the software on this machine, so I figured I'd just rebuild the port that provides this library, but I can't figure out how to determine which on that would be. I have the feeling that I should be able to use pkg_info for this, but I can't seem to figure out how to accomplish this. Is this the right tool? If so, how do I use it for this, if not, what is the correct tool? Thanks. it# pkg_info -W /usr/local/lib/libxcb.so.2 /usr/local/lib/libxcb.so.2 was installed by package libxcb-1.5 -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
fpc on FreeBSD?
Hi to .. any old Turbo Pascal hackers out there, who've used fpc on FreeBSD. I have some astronomy and sound related code from last century that I want to resume working on. Mostly lots of float number-crunching and file processing, no gui stuff till the underlying processing all goes. I've tried some other languages, but can only really think straight into Pascal, to fully declare my disability - please don't try to cure me :) Is fpc's IDE usable, like good ol' TP6 and 7, never mind Delphi? Docs seem vast, I'm wondering if there's a simple guide to basic compilation, but basically I'd just like to hear that it's working ok for someone and is worth the learning curve? cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fetchmail and plain text password
On Tue, 29 Dec 2009 15:21:30 +0100 Roland Smith rsm...@xs4all.nl wrote: In other words, a proper IMAP server does not permit plaintext passwords. No, it MUST be implemented, but only SHOULD be used. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
pkg_info fails with leave_playpen: can't chdir back to ''
If I run pkg_info as root it fails as shown below. But if I run it as a normal user I get a list of all 708 packages without any error. curlew:/root# uname -a FreeBSD curlew.lan 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #0: Sun Dec 13 15:40:42 GMT 2009 r...@curlew.lan:/usr/obj/usr/src/sys/GENERIC i386 curlew:/root# pkg_info -Ia GraphicsMagick-1.1.15_1,1 Fast image processing tools based on ImageMagick ORBit2-2.14.17 High-performance CORBA ORB with support for the C language OpenEXR-1.6.1_2 A high dynamic-range (HDR) image file format a2ps-a4-4.13b_4 Formats an ascii file for printing on a postscript printer aalib-1.4.r5_4 An ascii art library adobe-cmaps-20051217_1 Adobe CMap collection pkg_info: leave_playpen: can't chdir back to '' -- Mike Clarke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: New user - small file server questions and quick GUI question
Alex de Kruijff wrote: On Mon, Dec 28, 2009 at 05:04:52PM -0600, Adam Vande More wrote: On Mon, Dec 28, 2009 at 4:42 PM, Kaya Saman samank...@netscape.net wrote: Also if something goes wrong with the filesystem what are the tools to check the drive and repair errors as in Linux I use e2fsck followed by device ID. Example after a dirty shutdown: fsck -y FreeBSD 7 and up is able to do a lot of this on the background: fsck -yB Adding the line 'fsck_y_enable=YES' to /etc/rc.conf will run fsck -y if the initial preen fails Many thanks guys for all the advice :-) It is really appreciated! Sorry haven't snipped more stuff into this mail but things are a bit hectic here but what I will say is this; in a few hours once the BSD 8 DVD ISO comes in I will attempt an install and have a look at what's what. The server will be constructed first and then I will look at the GUI environment with Vbox. I reckon the proposed disk usage spec from the FreeBSD hand book should suffice though shouldn't it?? With a larger HD I would normally do something like 15 - 25GB / (root) partition and the rest for /home with round 1.5 - 3GB for swap. Now my HD is round 40GB so I will do a minimal install and try to maximize the /home slice! As result only services I will run are DNS, NTP, SAMBA and NFS. I suppose I could get away with something like 2GB for / which would then contain /tmp, /etc, /root, /boot etc. Only 2 machines will be connected, my uncles Win XP box and my Linux/Solaris system. --Kaya ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: xorg 7.4 questions
On Tue, 29 Dec 2009, d...@safeport.com wrote: [xdm slow startup] The answer appears to be to add an empty LISTEN statement to /usr/local/lib/X11/xdm/Xaccess. The xdm package issues a IPV6 DHCP request. While the xdm man page suggests this is not needed: To disable listening for XDMCP connections altogther, a line of LISTEN with no addresses may be specified, or the previously supported method of setting DisplayManager.requestPort to 0 may be used. This seems not to be the case as adding this line gets rid of the long delay and suppresses the IPV6 DHCP request. The DisplayManager.requestPort is set to 0 in the default configuration. This solves the long start (I am pretty sure). Thank you for your suggestions that pushed me to find this. Hmm. That sounds like a bug (maybe IPV6 support being added but the feature to disable it being forgotten). Does having an IPV6 localhost defined in /etc/hosts (::1 localhost) have the same effect? I am also pretty sure my hardware just does not work with hal and dbus. What keyboard and mouse do you have? Also, which version of FreeBSD are you using? -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: New user - small file server questions and quick GUI question
On Tue, Dec 29, 2009 at 05:19:54PM +0200, Kaya Saman wrote: Many thanks guys for all the advice :-) It is really appreciated! Sorry haven't snipped more stuff into this mail but things are a bit hectic here but what I will say is this; in a few hours once the BSD 8 DVD ISO comes in I will attempt an install and have a look at what's what. The server will be constructed first and then I will look at the GUI environment with Vbox. I reckon the proposed disk usage spec from the FreeBSD hand book should suffice though shouldn't it?? IMO the root slice is too small in the handbook. You should make it 2GB, since you've got the space. With a larger HD I would normally do something like 15 - 25GB / (root) partition and the rest for /home with round 1.5 - 3GB for swap. Now my HD is round 40GB so I will do a minimal install and try to maximize the /home slice! As result only services I will run are DNS, NTP, SAMBA and NFS. What is not unusual is to symlink /home e.g: # ln -s /usr/home /home ditto for /tmp. i.e you remove all the stuff that uses up space from the root partition. So the only slices you need are /, /usr, /var and swap. How I'd slice up the disk: 2GB for / 2GB for swap 2GB for /var 34GB for /usr I suppose I could get away with something like 2GB for / which would then contain /tmp, /etc, /root, /boot etc. Should be OK but /tmp symlinked to /usr/tmp as some things can really fill up /tmp. For example, IIRC OpenOffice needs gigs of temp space to build. Only 2 machines will be connected, my uncles Win XP box and my Linux/Solaris system. Should work fine. Just remember to make your /home and /tmp symlinks as soon as you first boot up. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What port contains libxcb.so.2, and hoow could I figure this out?
On Tue, Dec 29, 2009 at 08:33:41AM -0600, Adam Vande More wrote: On Tue, Dec 29, 2009 at 8:08 AM, stan st...@panix.com wrote: One of my machines is suddenly complaining that it can't find libxcb.so.2. This is probably an issue related to a recent attempt to update the software on this machine, so I figured I'd just rebuild the port that provides this library, but I can't figure out how to determine which on that would be. I have the feeling that I should be able to use pkg_info for this, but I can't seem to figure out how to accomplish this. Is this the right tool? If so, how do I use it for this, if not, what is the correct tool? Thanks. it# pkg_info -W /usr/local/lib/libxcb.so.2 /usr/local/lib/libxcb.so.2 was installed by package libxcb-1.5 Thanks, I missed the -W switch when I scaned the man page. -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fpc on FreeBSD?
At 15:35 29/12/2009, you wrote: Hi to .. any old Turbo Pascal hackers out there, who've used fpc on FreeBSD. I have some astronomy and sound related code from last century that I want to resume working on. Mostly lots of float number-crunching and file processing, no gui stuff till the underlying processing all goes. I've tried some other languages, but can only really think straight into Pascal, to fully declare my disability - please don't try to cure me :) Is fpc's IDE usable, like good ol' TP6 and 7, never mind Delphi? Docs seem vast, I'm wondering if there's a simple guide to basic compilation, but basically I'd just like to hear that it's working ok for someone and is worth the learning curve? Yes, it is usable, but there are other ides. You can try Lazarus, f.ex. Also, you can ask at the fpc lists, where there are better chances of help. cheers, Ian -- Usefule Acronyms: EMFE = Excuse My For English ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What port contains libxcb.so.2, and hoow could I figure this out?
On Tue, 29 Dec 2009, stan wrote: One of my machines is suddenly complaining that it can't find libxcb.so.2. This is probably an issue related to a recent attempt to update the software on this machine, so I figured I'd just rebuild the port that provides this library, but I can't figure out how to determine which on that would be. I have the feeling that I should be able to use pkg_info for this, but I can't seem to figure out how to accomplish this. Is this the right tool? If so, how do I use it for this, if not, what is the correct tool? pkg_which will do it if you can provide the full path to the missing file. Which is easy if you already have the file installed and can find the full path (locate libxcb.so.2), but not so easy if it's missing. Sometimes, a simple whereis will help: % whereis libxcb libxcb: /usr/ports/x11/libxcb If the port is missing or outdated, pkgdb -F ought to let you install it. And of course there's always crushing brute force: % find /usr/ports -name pkg-plist -exec grep libxcb.so.2 {} + /usr/ports/x11/libxcb/pkg-plist:lib/libxcb.so.2 -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Checksum mismatch -- will transfer entire file
In the last episode (Dec 29), Victor Sudakov said: Nikos Vassiliadis wrote: Are you sure you understand me? I was talking about mirroring the whole repository with cvsup/cvsupd protocol, that's where the Checksum mismatch -- will transfer entire file error occurs. Sorry, I missed the part of conversation about cvs mode in cvsup. I thought you were talking about cvs not working... If subversion could be used to mirror whole repositories I will consider switching to it. You can use the svnsync command to fetch a local copy of the FreeBSD svn repository, but that will only cover the base source tree. The ports tree and web pages are still CVS-only, so you would need to keep using cvsup for them. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: New user - small file server questions and quick GUI question
[...] What is not unusual is to symlink /home e.g: # ln -s /usr/home /home ditto for /tmp. i.e you remove all the stuff that uses up space from the root partition. So the only slices you need are /, /usr, /var and swap. How I'd slice up the disk: 2GB for / 2GB for swap 2GB for /var 34GB for /usr Ah so BSD is slightly different from Linux in the fact that it needs to have /var and /usr filesystems separate?? I guess it must be similar to the way Solaris handles things when UFS based (not ZFS). The /home partition then is very similar to Solaris in that /export/home is considered the user directory. Means BSD stores /home in /usr/home?? Should be OK but /tmp symlinked to /usr/tmp as some things can really fill up /tmp. For example, IIRC OpenOffice needs gigs of temp space to build. OpenOffice or IIRC is for GUI based usage and not CLI. Since this will be a simple server no GUI or work will be done on the machine itself in terms of keyboard/mouse setup. Normally I work through SSH so will be much easier once I have network connectivity up and running after initial install :-) Should work fine. Just remember to make your /home and /tmp symlinks as soon as you first boot up. Regards, Thanks!!! --Kaya ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
mplayer / bash question
I'm trying to batch-rip audio files from a bunch of video files. I have a directory full of *.vob files: ls *.vob 01.vob 03.vob 05.vob 07.vob 09.vob 11.vob 13.vob 02.vob 04.vob 06.vob 08.vob 10.vob 12.vob So I wrote a little command line script to rip wave files from all the vob's: ls *.vob | while read f do mplayer -ao pcm:file=`basename $f .vob`.wav $f done the first 01.wav file is created successfully; but then the whole sh'bang exits without ripping the rest of the vob's: Exiting... (End of file) $ == What did you do? the man holding the flashlight asked. I put down a spider, he said, wondering why the man didn't see; in the beam of yellow light the spider bloated up larger than life. So it could get away. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fetchmail and plain text password
On Tue, 29 Dec 2009 13:44:21 + Anton Shterenlikht me...@bristol.ac.uk wrote: I might be wrong, but that's my understanding. So programs like fetchmail that actually connect to their imap server and download mail to local boxes are probably not very welcome. You probably are wrong, it's more a case of your not using it's full potential. I'm not really sure why you are doing it this way, I do something simailar, but only because I'm interested in spam-filtering. Why not just point your preferred mail client at the imap server? That way you can access your mail from anywhere (probably via webmail too) Some imap clients, such as thunderbird and kmail, will let you store your server passworks encrypted to a master-password, so even root can't read them. The IMAP server is probably more reliable too. If you want a local copy, or use a client with poor imap support, then offlineimap is pretty good. BTW personally I use getmail instead of fetchmail, I've not used fetchmail much, but I've read a lot of bad things about it - some of which are mentioned here: http://pyropus.ca/software/getmail/faq.html#faq-about-why ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fpc on FreeBSD?
On Tue, 29 Dec 2009 11:16:29 -0500, Eduardo Morras emor...@xroff.net wrote: Is fpc's IDE usable, like good ol' TP6 and 7, never mind Delphi? Docs seem vast, I'm wondering if there's a simple guide to basic compilation, but basically I'd just like to hear that it's working ok for someone and is worth the learning curve? Yes, it is usable, but there are other ides. You can try Lazarus, f.ex. Also, you can ask at the fpc lists, where there are better chances of help. Lazarus is like Delphi 5 or 7. I actually used it 4 or 5 years ago to port some Delphi code to FreeBSD and it worked pretty well. I used Lazarus and FPC to create a GUI cd burner for FreeBSD and a front end to a mysql db for tracking my album collection - but I moved to python so haven't used it in 4 years or so. Rod -- if i was cool and a mindless slave to trends and fashion, this would be sent from my iPhone, but it's not. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: New user - small file server questions and quick GUI question
On Tue, 29 Dec 2009, Kaya Saman wrote: How I'd slice up the disk: 2GB for / 2GB for swap 2GB for /var 34GB for /usr Ah so BSD is slightly different from Linux in the fact that it needs to have /var and /usr filesystems separate?? It's not required, it's just nice to do if the disk space is available. You can allocate the whole disk to /. With all the free space in one filesystem, that's useful for small disks (under 8G, I'd say). Keeping the filesystems separate provides some versatility at the expense of splitting up the free space. dump(8)ing a 300M / or a 100M /var is a lot easier than a 100G whole disk. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mplayer / bash question
In the last episode (Dec 29), Neil Short said: I'm trying to batch-rip audio files from a bunch of video files. I have a directory full of *.vob files: ls *.vob 01.vob 03.vob 05.vob 07.vob 09.vob 11.vob 13.vob 02.vob 04.vob 06.vob 08.vob 10.vob 12.vob So I wrote a little command line script to rip wave files from all the vob's: ls *.vob | while read f do mplayer -ao pcm:file=`basename $f .vob`.wav $f done the first 01.wav file is created successfully; but then the whole sh'bang exits without ripping the rest of the vob's: Try this instead: for f in *.vob ; do mplayer -ao pcm:file=${f%.vob}.wav $f done Uses the shell's native file globbing to expand the *.vob wildcard, and the shell's native string processing functions to remove a suffix. If that still doesn't work, run the script with sh -x to turn debugging on, and see what your variables are expanding to as the script runs. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: New user - small file server questions and quick GUI question
On Tue, Dec 29, 2009 at 06:37:25PM +0200, Kaya Saman wrote: [...] What is not unusual is to symlink /home e.g: # ln -s /usr/home /home ditto for /tmp. i.e you remove all the stuff that uses up space from the root partition. So the only slices you need are /, /usr, /var and swap. How I'd slice up the disk: 2GB for / 2GB for swap 2GB for /var 34GB for /usr Ah so BSD is slightly different from Linux in the fact that it needs to have /var and /usr filesystems separate?? You can have /var on the same slice but because it's a filesystem that's constantly being read written to it's usual to keep it separate from your static partitions. I guess it must be similar to the way Solaris handles things when UFS based (not ZFS). The /home partition then is very similar to Solaris in that /export/home is considered the user directory. Means BSD stores /home in /usr/home?? Again, it's just a common practice. Due to the PC BIOS, IIRC you're restricted to 4 slices. Should be OK but /tmp symlinked to /usr/tmp as some things can really fill up /tmp. For example, IIRC OpenOffice needs gigs of temp space to build. OpenOffice or IIRC is for GUI based usage and not CLI. Since this will be a simple server no GUI or work will be done on the machine itself in terms of keyboard/mouse setup. Normally I work through SSH so will be much easier once I have network connectivity up and running after initial install :-) OK. You may want to make /tmp a separate slice. You can always make it a symlink into /usr at a latter date if you repurpose the machine. You would find that FreeBSD works quite well as a workstation even with that limited hardware. Should work fine. Just remember to make your /home and /tmp symlinks as soon as you first boot up. Regards, Thanks!!! BTW, you mentioned you were going to use packages. If I were you I'd build from source. It's less problematic in my experience and since FreeBSD multitasks so well it's not much of a pain. You've got plenty of room for the ports tree. Best of luck with your installation! Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fetchmail and plain text password
On Tue, Dec 29, 2009 at 04:53:24PM +, RW wrote: On Tue, 29 Dec 2009 13:44:21 + Anton Shterenlikht me...@bristol.ac.uk wrote: I might be wrong, but that's my understanding. So programs like fetchmail that actually connect to their imap server and download mail to local boxes are probably not very welcome. You probably are wrong, it's more a case of your not using it's full potential. I'm not really sure why you are doing it this way, I do something simailar, but only because I'm interested in spam-filtering. Why not just point your preferred mail client at the imap server? That way you can access your mail from anywhere (probably via webmail too) Some imap clients, such as thunderbird and kmail, will let you store your server passworks encrypted to a master-password, so even root can't read them. The IMAP server is probably more reliable too. Are you saying I can make mutt read mail directly from the imap server? Without fetchmail? If you want a local copy, or use a client with poor imap support, then offlineimap is pretty good. BTW personally I use getmail instead of fetchmail, I've not used fetchmail much, but I've read a lot of bad things about it - some of which are mentioned here: http://pyropus.ca/software/getmail/faq.html#faq-about-why interesting.. none of this is mentioned in the handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-fetchmail.html -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: New user - small file server questions and quick GUI question
On Tue, Dec 29, 2009 at 04:27:11PM +, Frank Shute wrote: On Tue, Dec 29, 2009 at 05:19:54PM +0200, Kaya Saman wrote: Many thanks guys for all the advice :-) It is really appreciated! ... I reckon the proposed disk usage spec from the FreeBSD hand book should suffice though shouldn't it?? IMO the root slice is too small in the handbook. You should make it 2GB, since you've got the space. First of all, you are mixing up your terminology. You do not mean 'slice' here. The unit used for root or any other filesystem in a non-dangerously-dedicated disk is called a partition. Partitions divisions of slices and are identified as a..h with c reserved for the system and by convention (and expectation of some pieces of software) 'a' is for the bootable OS partition (root) and 'b' is used for swap. In FreeBSD, partitions reside inside of slices. A slice is essentially the same thing as a DOS primary partition and is the initial (primary) division of a disk. A disk drive may have up to four slices identified as 1..4 and each may be made bootable or not and contain different OSen or OS versions. If a disk is only to be used for a single installation of FreeBSD, it is most common to define just one slice which encompasses the whole drive, leaving the other three slices empty and unused. (It is also common to define a 'dangerously dedicated' disk, but that is a different discussion issue than that being addressed here) In FreeBSD, slices are defined and created by the FreeBSD fdisk program, though a number of other partition management utilities can be used and FreeBSD seems to be moving to a new one too. In FreeBSD, one uses bsdlabel(8) to create partitions within a slice. Each slice can have up to 8 identified as a..h, but the 'c' partition is reserved and must be left unused. We use common names associated with partitions, such as / (root) /usr, /var, /home, etc. Those are essentially directories that are 'linked' to a partition by the mount system. You create a mount point using the mkdir(1) command and then link using mount(8). The 'a' partition becomes root because it gets mounted to the / mount point. Now, on to divvying up the disk. I agree that the root partition listed in the handbook is anciently too small. But, I don't see what you need 2GB for unless you put everything (/usr, /var, etc) in it. Since you are defining those separately, root really only needs about a half GigaByte. I am running a little low on one machine with 1/3 GB in root, but still going. I also create a partition for /tmp to keep it isolated from the other filesystems, in case something runs wild. With a larger HD I would normally do something like 15 - 25GB / (root) partition and the rest for /home with round 1.5 - 3GB for swap. Now my HD is round 40GB so I will do a minimal install and try to maximize the /home slice! As result only services I will run are DNS, NTP, SAMBA and NFS. What is not unusual is to symlink /home e.g: # ln -s /usr/home /home ditto for /tmp. i.e you remove all the stuff that uses up space from the root partition. So the only slices you need are /, /usr, /var and swap. How I'd slice up the disk: 2GB for / 2GB for swap 2GB for /var 34GB for /usr I suppose I could get away with something like 2GB for / which would then contain /tmp, /etc, /root, /boot etc. My suggestion is more like: partition mount point Size a/ 512 MegaBytes (1/2 GByte) bswap 2048 MBytes (2 GBytes) d/tmp 512 MBytes e/usr 4096 MBytes f/var 4096 MBytes g/home 29 GB (eg all of the rest of the disk) If you are running a database, you will want /var to be larger or to move things in to that /home file system. I actually use a different mount point name than /home because /home is assumed for other things in some howto-s hanging around. I also move and symlink /usr/local /usr/ports /usr/src and sometimes /var/spool in to that '/home' filesystem and then make the actual /usr and /var only half the above sizes and increase the space in '/home' (33 GB) so they can grow there more easily. Things in a well running system do not grow so much in /tmp and if something does go wild and spew out a lot of stuff, you really want to notice it before it gobbles up 30GB of space, so you need enough /tmp to run easily, but do not want huge amounts. Thus, putting /tmp in its own limited partition is a bit of a protection. All users' login (home) directories and web content go in that '/home' filesystem too, where they can grow without having to redo disk later. In spite of the name that seems to suggest it, I never put users' home directories in /usr. It may have begun that way back in the
Re: New user - small file server questions and quick GUI question
On Tue, Dec 29, 2009 at 06:37:25PM +0200, Kaya Saman wrote: [...] What is not unusual is to symlink /home e.g: # ln -s /usr/home /home ditto for /tmp. i.e you remove all the stuff that uses up space from the root partition. So the only slices you need are /, /usr, /var and swap. How I'd slice up the disk: 2GB for / 2GB for swap 2GB for /var 34GB for /usr Ah so BSD is slightly different from Linux in the fact that it needs to have /var and /usr filesystems separate?? It doesn't _need_ to have separate filesystems. It is just convenient. If you want to stick everything (apart from swap) on a single / partition, you can do so. If that is wise is another thing. :-) If your server will never hold much data (e.g. just a router/firewall) it would probably be fine. It depends on the use you want to put the machine to, and if/where you expect to store a lot of stuff. For my desktop I tend to put /home on a separate partition because that is where most of my data is. For a server I would put the big directories where the data is stored on separate partitions. E.g. the DocumentRoot for your Apache webserver. Or whereever the place is where an SQL server stores its data. The /home partition then is very similar to Solaris in that /export/home is considered the user directory. Means BSD stores /home in /usr/home?? If you don't make a separate /home partition, sysinstall will indeed default to making /home a symlink to /usr/home, AFAIK. For my desktop, with around 450 ports installed, I have the following lay-out; Filesystem SizeUsed Avail Capacity Mounted on /dev/ad4s1a484M 93M353M21%/ /dev/ad4s1g.eli373G168G175G49%/home /dev/ad4s1e 48G198K 45G 0%/tmp /dev/ad4s1f 19G5.8G 12G32%/usr /dev/ad4s1d1.9G226M1.6G12%/var For swap space (/dev/ad4s1b), I reserved 2x the size of the RAM. The 'Used' column should give you an idea of the minimum space needed for different filesystems. Keep in mind that disk space is relatively cheap, and it is much better to have lots of free space then to run out of space! This division makes it easy to use dump(8) for backup purposes of /, /usr and /var. I do this so it is easy to restore(8) to a functioning system, and keep the size of the dumps reasonably small, although /usr is getting prtty big. Maybe next time I will split off /usr/local (for ports) into a separate filesystem. For big filesystems dump(8) takes a long time and needs a lot of space. I prefer to back those up with rsync(1). Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpNOmODLW3A3.pgp Description: PGP signature
Re: fetchmail and plain text password
On Tue, Dec 29, 2009 at 05:26:42PM +, Anton Shterenlikht wrote: Why not just point your preferred mail client at the imap server? That way you can access your mail from anywhere (probably via webmail too) Some imap clients, such as thunderbird and kmail, will let you store your server passworks encrypted to a master-password, so even root can't read them. The IMAP server is probably more reliable too. Are you saying I can make mutt read mail directly from the imap server? Without fetchmail? Here you go: http://mutt.sourceforge.net/imap/ Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp4CKMkHXos9.pgp Description: PGP signature
Re: fetchmail and plain text password
On Tue, 29 Dec 2009 16:53:24 + RW rwmailli...@googlemail.com articulated: BTW personally I use getmail instead of fetchmail, I've not used fetchmail much, but I've read a lot of bad things about it - some of which are mentioned here: http://pyropus.ca/software/getmail/faq.html#faq-about-why That article is grossly out of date. Furthermore, D. J. Bernstein created an MTA that was a back-scatters dream. Then, he abandoned it. -- Jerry ges...@yahoo.com ____ _.--. # Jerry \`.|\.....-'` `-._.-'_.-'` # ges...@yahoo.com / ' ` , __.--' # )/' _/ \ `-_, /# Just saying no prevents teenage `-' `\_ ,_.-;_.-\_ ', fsc/as # pregnancy the way Have a nice day _.-'_./ {_.' ; / # cures chronic depression. {_.-``-' {_/# ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: New user - small file server questions and quick GUI question
On Tue, Dec 29, 2009 at 06:37:25PM +0200, Kaya Saman wrote: [...] What is not unusual is to symlink /home e.g: # ln -s /usr/home /home ditto for /tmp. i.e you remove all the stuff that uses up space from the root partition. So the only slices you need are /, /usr, /var and swap. How I'd slice up the disk: 2GB for / 2GB for swap 2GB for /var 34GB for /usr Ah so BSD is slightly different from Linux in the fact that it needs to have /var and /usr filesystems separate?? No, it doesn't. In fact, technically you can put everything all in / (root), except for swap and you can even create a file in / for that in root if you have the bad judgement to do it that way. It is just a good idea to separate them if those filesystems are likely to grow a lot, such as when installing ports (/usr in /usr/ports and /usr/local) and when building a database (/var in /var/db) or something that spools a lot (/var in /var/spool). It provides a small amount of additional protection for the system. I guess it must be similar to the way Solaris handles things when UFS based (not ZFS). The /home partition then is very similar to Solaris in that /export/home is considered the user directory. Means BSD stores /home in /usr/home?? You can put it where you like. Just do your own links or make your own mounts in /etc/fstab. Should be OK but /tmp symlinked to /usr/tmp as some things can really fill up /tmp. For example, IIRC OpenOffice needs gigs of temp space to build. OpenOffice or IIRC is for GUI based usage and not CLI. Since this will be a simple server no GUI or work will be done on the machine itself in terms of keyboard/mouse setup. Normally I work through SSH so will be much easier once I have network connectivity up and running after initial install :-) So, use 'vi' or install 'vim' from ports and us it. Since 'vi' is always available, it becomes important to learn it and then it is second nature to use it. (actually, vi is not available in single user mode if you do not have /usr mounted, but I usually just put a copy in /bin and then it is always available) jerry Should work fine. Just remember to make your /home and /tmp symlinks as soon as you first boot up. Regards, Thanks!!! --Kaya ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Starting sshd, ssh connections
On a newly installed FreeBSD7.2, when booting it takes a long time to get past Starting sshd.. I'm using the PC only in a private network. The IP of the PC is 192.168.75.8 # ssh r...@192.168.75.8 or # ssh r...@127.0.0.1 take both 15 seconds to display Password: ... At setup, I did specify a hostname, a domainname, a default_router (192.168.75.14) and DNS server 192.168.254.100 (in the future to be replace by non-private IPs), but since I am testing only in a private network and only with IP adresses (no hostnames) these are not used. So what is causing that delay at Start of sshd and use of ssh? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Starting sshd, ssh connections
On Tue, Dec 29, 2009 at 07:04:24PM +0100, n dhert wrote: On a newly installed FreeBSD7.2, when booting it takes a long time to get past Starting sshd.. I'm using the PC only in a private network. The IP of the PC is 192.168.75.8 # ssh r...@192.168.75.8 or # ssh r...@127.0.0.1 take both 15 seconds to display Password: ... At setup, I did specify a hostname, a domainname, a default_router (192.168.75.14) and DNS server 192.168.254.100 (in the future to be replace by non-private IPs), but since I am testing only in a private network and only with IP adresses (no hostnames) these are not used. So what is causing that delay at Start of sshd and use of ssh? Reverse DNS lookup. Make sure you have PTR entries for all IPs in use. -- Jonathan Chen j...@chen.org.nz -- Irrationality is the square root of all evil - Douglas Hofstadter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: New user - small file server questions and quick GUI question
Many thanks again for all suggestions! :-) [...] For my desktop, with around 450 ports installed, I have the following lay-out; Filesystem SizeUsed Avail Capacity Mounted on /dev/ad4s1a484M 93M353M21%/ /dev/ad4s1g.eli373G168G175G49%/home /dev/ad4s1e 48G198K 45G 0%/tmp /dev/ad4s1f 19G5.8G 12G32%/usr /dev/ad4s1d1.9G226M1.6G12%/var [...] Hmm... lot's of different pieces of advice rolling in now! I guess what I will do as I have a small hard disk for what I want to do which is to get rid of my music and few movies which are stored on my laptop currently, is create separate /, /tmp, /usr and /var. I propose which is similar to what Frank has suggested: / ~500M /tmp ~2GB /var ~2GB /usr ~2GB /home the rest but then Jerry has already suggested: partition mount point Size a/ 512 MegaBytes (1/2 GByte) bswap 2048 MBytes (2 GBytes) d/tmp 512 MBytes e/usr 4096 MBytes f/var 4096 MBytes g/home 29 GB (eg all of the rest of the disk) This could be ok I reckon as the 4GB partitions should be there as everyone has suggested for me to use ports and build from source! The reason why I preferred to use package manager was that on say Solaris it's pretty a much a pain having to install all the dependencies from Sun Freeware site. I mean what I will be installing if completely base install with just OS and nothing more like I mentioned before is Samba, NFS server/client, NTP, Nano as the quote below from Jerry using vi or vim is not my preferred text editor as I find them extremely difficult and a real pain to use. In addition I do not think this machine has a DVD drive either although I haven't fired up the Win build yet to transfer files but from what the drive says on the front of 52x looks like it's CD only :-( This means that I will need to download the minimal install CD and install the packages from there! For this reason the discussed packages above will need to be downloaded and installed my best guess is from source. Meaning I will need extra space in one of the filesystems but am unsure where the source gets stored?? My best guess would be /usr? Have setup the machine now and am almost at the point of attempted an install! :-) Guys the support has been really awsome and I highly appreciate everyones efforts to assist me! [quote] So, use 'vi' or install 'vim' from ports and us it. Since 'vi' is always available, it becomes important to learn it and then it is second nature to use it. (actually, vi is not available in single user mode if you do not have /usr mounted, but I usually just put a copy in /bin and then it is always available) [/quote] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Starting sshd, ssh connections
Jonathan Chen wrote: On Tue, Dec 29, 2009 at 07:04:24PM +0100, n dhert wrote: On a newly installed FreeBSD7.2, when booting it takes a long time to get past Starting sshd.. I'm using the PC only in a private network. The IP of the PC is 192.168.75.8 # ssh r...@192.168.75.8 or # ssh r...@127.0.0.1 take both 15 seconds to display Password: ... At setup, I did specify a hostname, a domainname, a default_router (192.168.75.14) and DNS server 192.168.254.100 (in the future to be replace by non-private IPs), but since I am testing only in a private network and only with IP adresses (no hostnames) these are not used. So what is causing that delay at Start of sshd and use of ssh? Reverse DNS lookup. Make sure you have PTR entries for all IPs in use. Or, in the case of an internal-only IP scheme, where configuring rDNS entries is not possible/not feasible, you can disable DNS lookups in the /etc/ssh/sshd_config file by uncommenting and setting: UseDNS no Restart the sshd daemon for the change to take effect. Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
gutenprint / cups
There have been updates to cups and gutenprint. I now have # pkg_info | grep guten gutenprint-base-5.2.4 GutenPrint Printer Driver gutenprint-cups-5.2.4 GutenPrint Printer Driver But an # lpstat -t shows for my printers: Unable to start filter rastertogutenprint.5.1 - No such file or directory. Maybe I need to do a restart or stop/start of the printer queues ? In the older cups In the webpages of http://localhost:631 There was a button to do a restart of a printer queue, but I don't see such a button in the new layout of the webpages... Can I use a command line command to do a restart or stop/start of a printer queue, or how to solve this ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Starting sshd, ssh connections
On Tue, Dec 29, 2009 at 08:19:03PM +0100, n dhert wrote: There is an entry in /etc/hosts for the hostname and hostnam.domainname for its IP So far this is the only IP used (besides 127.0.0.1). /etc/resolv.conf containts the domainname and a nameserver line (nameserver 192.168.254.100) What else would be needed? I suspect your problem is that 192.168.75.8 doesn't resolve to a hostname. You could possibly put that into /etc/hosts, or put a PTR entry for it in your DNS. -- Jonathan Chen j...@chen.org.nz -- If you're right 90% of the time, why quibble about the remaining 3%? On Tue, Dec 29, 2009 at 07:04:24PM +0100, n dhert wrote: On a newly installed FreeBSD7.2, when booting it takes a long time to get past Starting sshd.. I'm using the PC only in a private network. The IP of the PC is 192.168.75.8 # ssh r...@192.168.75.8 or # ssh r...@127.0.0.1 take both 15 seconds to display Password: ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: the system does not boot
2009/12/28 Diego F. Arias R. dak@gmail.com On Mon, Dec 28, 2009 at 1:51 PM, gianrico.lam...@lamia.infm.it wrote: Dear Sir, I have installed BSD 7.2 release. All the installation worked fine till the first re-boot of the system. The reboot gos fine until the end where it breaks: Warning: /usr was not properly dismounted. Mounting /etc/fstab filesystems failed, startup aborted ERROR: ABORTING BOOT (sendingSIGTERM to parent)! Dec 28 19:43:06 init /bin/sh on /etc/rc terminated abnormally, going to single user mode Enter full pathname of shell or RETURN for /bin/sh: when I press return it displaysthe prompt #_ the command xstart freezes and I have no desktop and to shut down I have to press Ctrl Alt canc the machine is : Philips freevents X59, intel core 2 duo, 1G ram, 100 G hard disk. I have chose the partioning suggested from the installation. What should I do??? thnk you in advance for your help Gianrico Lamura I ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Try runing fsck -y /usr, is nothing wrong just a dirty Filesystem. -- mmm, interesante. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org or foobared fstab ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: New user - small file server questions and quick GUI question
On Tue, Dec 29, 2009 at 12:25:48PM -0500, Jerry McAllister wrote: On Tue, Dec 29, 2009 at 04:27:11PM +, Frank Shute wrote: On Tue, Dec 29, 2009 at 05:19:54PM +0200, Kaya Saman wrote: Many thanks guys for all the advice :-) It is really appreciated! ... I reckon the proposed disk usage spec from the FreeBSD hand book should suffice though shouldn't it?? IMO the root slice is too small in the handbook. You should make it 2GB, since you've got the space. First of all, you are mixing up your terminology. You do not mean 'slice' here. The unit used for root or any other filesystem in a non-dangerously-dedicated disk is called a partition. Partitions divisions of slices and are identified as a..h with c reserved for the system and by convention (and expectation of some pieces of software) 'a' is for the bootable OS partition (root) and 'b' is used for swap. You're correct. I thought they used a separate slice for the root partition. They don't. I usually do. In FreeBSD, partitions reside inside of slices. A slice is essentially the same thing as a DOS primary partition and is the initial (primary) division of a disk. A disk drive may have up to four slices identified as 1..4 and each may be made bootable or not and contain different OSen or OS versions. If a disk is only to be used for a single installation of FreeBSD, it is most common to define just one slice which encompasses the whole drive, leaving the other three slices empty and unused. (It is also common to define a 'dangerously dedicated' disk, but that is a different discussion issue than that being addressed here) In FreeBSD, slices are defined and created by the FreeBSD fdisk program, though a number of other partition management utilities can be used and FreeBSD seems to be moving to a new one too. In FreeBSD, one uses bsdlabel(8) to create partitions within a slice. Each slice can have up to 8 identified as a..h, but the 'c' partition is reserved and must be left unused. We use common names associated with partitions, such as / (root) /usr, /var, /home, etc. Those are essentially directories that are 'linked' to a partition by the mount system. You create a mount point using the mkdir(1) command and then link using mount(8). The 'a' partition becomes root because it gets mounted to the / mount point. Now, on to divvying up the disk. I agree that the root partition listed in the handbook is anciently too small. But, I don't see what you need 2GB for unless you put everything (/usr, /var, etc) in it. Since you are defining those separately, root really only needs about a half GigaByte. I am running a little low on one machine with 1/3 GB in root, but still going. I also create a partition for /tmp to keep it isolated from the other filesystems, in case something runs wild. I'm struggling with a 1GB / here: /dev/ad0s2a984524 657068 24869673%/ That's having removed /boot/kernel.old/ after running out of space during upgrading to 8.0 I can't see anything else I can delete. /home and /var are not on that slice. So I think it depends on how you upgrade your machine. E.g less room needed if you use freebsd-update (?) With a larger HD I would normally do something like 15 - 25GB / (root) partition and the rest for /home with round 1.5 - 3GB for swap. Now my HD is round 40GB so I will do a minimal install and try to maximize the /home slice! As result only services I will run are DNS, NTP, SAMBA and NFS. What is not unusual is to symlink /home e.g: # ln -s /usr/home /home ditto for /tmp. i.e you remove all the stuff that uses up space from the root partition. So the only slices you need are /, /usr, /var and swap. How I'd slice up the disk: 2GB for / 2GB for swap 2GB for /var 34GB for /usr I suppose I could get away with something like 2GB for / which would then contain /tmp, /etc, /root, /boot etc. My suggestion is more like: partition mount point Size a/ 512 MegaBytes (1/2 GByte) bswap 2048 MBytes (2 GBytes) d/tmp 512 MBytes e/usr 4096 MBytes f/var 4096 MBytes g/home 29 GB (eg all of the rest of the disk) If you are running a database, you will want /var to be larger or to move things in to that /home file system. I actually use a different mount point name than /home because /home is assumed for other things in some howto-s hanging around. I also move and symlink /usr/local /usr/ports /usr/src and sometimes /var/spool in to that '/home' filesystem and then make the actual /usr and /var only half the above sizes and increase the space in '/home' (33 GB)
Re: New user - small file server questions and quick GUI question
On Tue, Dec 29, 2009 at 09:06:09PM +0200, Kaya Saman wrote: lot's of different pieces of advice rolling in now! I guess what I will do as I have a small hard disk for what I want to do which is to get rid of my music and few movies which are stored on my laptop currently, is create separate /, /tmp, /usr and /var. If you can afford it, and if your laptop has a USB port, buy one of those external harddisks. Plenty of room for music and movies... Also great for backups! I propose which is similar to what Frank has suggested: / ~500M /tmp ~2GB /var ~2GB /usr ~2GB /home the rest I would make /usr greater. See below. but then Jerry has already suggested: partition mount point Size a/ 512 MegaBytes (1/2 GByte) bswap 2048 MBytes (2 GBytes) d/tmp 512 MBytes e/usr 4096 MBytes f/var 4096 MBytes g/home 29 GB (eg all of the rest of the disk) This could be ok I reckon as the 4GB partitions should be there as everyone has suggested for me to use ports and build from source! I'd make /usr bigger. 5-10 GiB, if you can spare it. The reason why I preferred to use package manager was that on say Solaris it's pretty a much a pain having to install all the dependencies from Sun Freeware site. Realize that not all software is available as packages because of e.g. licensing restrictions. And some ports you can customize via so-called options. If you install from packages, you're stuck with the (default) options used when building the packages. The FreeBSD ports system is _so_ convenient. It's one of the great features of FreeBSD, as is the user community. I mean what I will be installing if completely base install with just OS and nothing more like I mentioned before is Samba, NFS server/client, NTP, Nano as the quote below from Jerry using vi or vim is not my preferred text editor as I find them extremely difficult and a real pain to use. The ee(1) editor is part of the base system. This is a _lot_ friendlier than vi! Give it a try, you might not even need nano. In addition I do not think this machine has a DVD drive either although I haven't fired up the Win build yet to transfer files but from what the drive says on the front of 52x looks like it's CD only :-( Good enough for installing. :-) For this reason the discussed packages above will need to be downloaded and installed my best guess is from source. Installing from source is the most flexible method. How is your internet connection? Meaning I will need extra space in one of the filesystems but am unsure where the source gets stored?? My best guess would be /usr? In /usr/ports to be exact. The source code tarballs are also stored there, under /usr/ports/distfiles. On my system, /usr/ports/distfiles is now 799 MiB (450 ports, remember!). The rest of /usr/ports is 543 MiB. Realize that ports will be compiled under /usr/ports as well! Good luck! Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpuZAoQom2xG.pgp Description: PGP signature
Re: gutenprint / cups
On Tue, Dec 29, 2009 at 08:34:08PM +0100, n dhert wrote: There have been updates to cups and gutenprint. I now have # pkg_info | grep guten gutenprint-base-5.2.4 GutenPrint Printer Driver gutenprint-cups-5.2.4 GutenPrint Printer Driver But an # lpstat -t shows for my printers: Unable to start filter rastertogutenprint.5.1 - No such file or directory. Maybe I need to do a restart or stop/start of the printer queues ? Have you restarted the whole CUPS system after the upgrade? Try runnind '/usr/local/etc/rc.d/cupsd restart' as root. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpwxZckeU7Pg.pgp Description: PGP signature
Re: New user - small file server questions and quick GUI question
Roland: If you can afford it, and if your laptop has a USB port, buy one of those external harddisks. Plenty of room for music and movies... Also great for backups! Can't afford :-( I have many disks like that where I bought really cool enclosures and the drives separately but currently am in a really bad situation financially. In UK in my parents house I have round 3.2TB or so with 1.7TB dedicated to music and movies. Out here though I only have my 320GB drive on my laptop which has 9 OS's on it including VM's. 160GB for Linux which I have Fedora 10 and Kubuntu on the other side I run OpenSolaris and Belenix in different ZFS pools. Laptop is cool 6GB memory too :-) ~# fdisk -l Disk /dev/sda: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x34f7742e Device Boot Start End Blocks Id System /dev/sda1 1 19453 156256191 bf Solaris /dev/sda2 19454 2370934186320 83 Linux /dev/sda3 * 23710 2553414659312+ 83 Linux /dev/sda4 25535 38913 107466817+ 5 Extended /dev/sda5 25535 38665 105474726 83 Linux /dev/sda6 38666 38913 1992028+ 82 Linux swap / Solaris ~# df -h FilesystemSize Used Avail Use% Mounted on /dev/sda2 33G 11G 21G 34% / tmpfs 2.9G 4.0K 2.9G 1% /lib/init/rw varrun2.9G 240K 2.9G 1% /var/run varlock 2.9G 4.0K 2.9G 1% /var/lock udev 2.9G 180K 2.9G 1% /dev tmpfs 2.9G 708K 2.9G 1% /dev/shm lrm 2.9G 2.5M 2.9G 1% /lib/modules/2.6.28-17-generic/volatile /dev/sda5 100G 93G 1.2G 99% /home /dev/sda3 14G 9.6G 3.6G 74% /mnt/tmp I propose which is similar to what Frank has suggested: / ~500M /tmp ~2GB /var ~2GB /usr ~2GB /home the rest I would make /usr greater. See below. but then Jerry has already suggested: partition mount point Size a/ 512 MegaBytes (1/2 GByte) bswap 2048 MBytes (2 GBytes) d/tmp 512 MBytes e/usr 4096 MBytes f/var 4096 MBytes g/home 29 GB (eg all of the rest of the disk) This could be ok I reckon as the 4GB partitions should be there as everyone has suggested for me to use ports and build from source! I'd make /usr bigger. 5-10 GiB, if you can spare it. Err I will try 4GB because I need to dump round 10-15GB here clogging up my disks. In fact I just partitioned the drive using FreeBSIE and I think it's only a 30GB on this desktop which I can always look into getting a new one in time. But slightly stuck for now! Realize that not all software is available as packages because of e.g. licensing restrictions. And some ports you can customize via so-called options. If you install from packages, you're stuck with the (default) options used when building the packages. The FreeBSD ports system is _so_ convenient. It's one of the great features of FreeBSD, as is the user community. I just the packages I mentioned before that's it! If I can do that it will be really cool. The ee(1) editor is part of the base system. This is a _lot_ friendlier than vi! Give it a try, you might not even need nano. I will try it out thanks for that! :-) In addition I do not think this machine has a DVD drive either although I haven't fired up the Win build yet to transfer files but from what the drive says on the front of 52x looks like it's CD only :-( Good enough for installing. :-) For this reason the discussed packages above will need to be downloaded and installed my best guess is from source. Installing from source is the most flexible method. How is your internet connection? Hahahah the biggest joke of 2k9 is my internet as it's 512kbps :-( That's what happens when you move country to a developing one things slow down to a halt. In UK I had 20Mbps h I really miss it! Meaning I will need extra space in one of the filesystems but am unsure where the source gets stored?? My best guess would be /usr? In /usr/ports to be exact. The source code tarballs are also stored there, under /usr/ports/distfiles. On my system, /usr/ports/distfiles is now 799 MiB (450 ports, remember!). The rest of /usr/ports is 543 MiB. Realize that ports will be compiled under /usr/ports as well! Ah ok I will look at this once my install progresses, I just hope that 4GB is enough for this! I really need to maximize space for /home where all my stuff will be deposited to for the moment as I don't trust the drive either as it really grinds like crazy but then it might be MS Win doing that? Good luck! Roland Many
HP NC373i unsupported..?
Hi folks, I just got a HP Proliant DL380 G5 and I've installed FreeBSD 8.0 on it. The nic won't come up however. dmesg shows: bce0: HP NC373i Multifunction Gigabit Server Adapter (B0) mem 0xf800-0xf9ff irq 16 at device 0.0 on pci3 bce0: /usr/src/sys/dev/bce/if_bce.c(836): Unsupported controller revision (B0)! device_attach: bce0 attach returned 19 bce1: HP NC373i Multifunction Gigabit Server Adapter (B0) mem 0xfa00-0xfbff irq 17 at device 0.0 on pci5 bce1: /usr/src/sys/dev/bce/if_bce.c(836): Unsupported controller revision (B0)! device_attach: bce0 attach returned 19 pciconf -lv: b...@pci0:3:0:0:class=0x02 card=0x7038103c chip=0x164c14e4 rev=0x10 hdr=0x00 vendor = 'Broadcom Corporation' device = 'Broadcom NetXtreme II Gigabit Ethernet Adapter (BCM5708)' class = network subclass = ethernet b...@pci0:5:0:0:class=0x02 card=0x7038103c chip=0x164c14e4 rev=0x10 hdr=0x00 vendor = 'Broadcom Corporation' device = 'Broadcom NetXtreme II Gigabit Ethernet Adapter (BCM5708)' class = network subclass = ethernet Is there a way to fix this ? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Midnight Commander - Where is the subshell?
Hi Daemons, I have just installed the brandnew mc 4.7 - now there is still an old little annoyance: Being root I can switch away the mc-commander and use the shell, CTRL+o does the trick. But as a normal user CTRL+o blanks the screen, no shell prompt appears and hitting a key just shows mc again. The subshell support must be working, all is fine if I am root. What is wrong there, anyone knows the trick using the subshell as a normal user?? Thanks! herb langhans -- sprachtraining langhans herbert langhans, warschau http://www.langhans.com.pl herbert dot raimund at gmx dot net +0048 603 341 441 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
how do i fix this undef'd reference? trying to build audacity on tao
Folks, I'm missing *something* in the shared memory arena, because trying to build audacity fails on my desktop as follows: -lsndfile -lFLAC++ -lFLAC -lid3tag -lexpat -L/usr/local/lib -ltwolame -L/usr/local/lib -ltag -pthread -L/usr/local/lib -ljack -lm -lpthread /usr/local/lib/libjack.so: undefined reference to `shm...@fbsd_1.1' gmake[1]: *** [../audacity] Error 1 gmake[1]: Leaving directory `/usr/ports/audio/audacity-devel/work/audacity-src-1.3.10/src' gmake: *** [audacity] Error 2 *** Error code 1 I am trying to build audacity to tune an audio file. Given that I know almost nothing about audio, i figued audacity might serve better than sox. tia, gary PS: I ran into much the same undefined reference to 'shmctl' on ethic while doing a portupgrade. Might here on both platforms. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Adding an alias to .cshrc
Hi all, happy holidays! I want to add an alias to my .cshrc file: alias srm find . -name *~ | xargs rm ...so that I have an easy way to remove the temp files left by svn. After adding the alias, logging out and then back in, I get an error stating: acct-dev: ISP-RADIUS % srm srm: Command not found. I thought that perhaps the file wasn't being read upon login, so I appended a new alias underneath: alias srm find . -name *~ | xargs rm alias sll ls -lA ...which works fine when called after re-login. I even went as far as to prefix the find/xargs command with full paths, to no avail. Is this a problem with the pipe in the alias directive? The command works on the CLI, as I literally copy/pasted it into the .cshrc file. Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Adding an alias to .cshrc
Hi, Is this a problem with the pipe in the alias directive? The command works on the CLI, as I literally copy/pasted it into the .cshrc file. I would think so. What about: alias srm /usr/bin/find . -name *~ -delete Best regards, Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Adding an alias to .cshrc
Hi Steve On Tue, Dec 29, 2009 at 7:50 PM, Steve Bertrand st...@ibctech.ca wrote: Hi all, happy holidays! I want to add an alias to my .cshrc file: alias srm find . -name *~ | xargs rm Try enclosing it in quotes, such as: alias srm find . -name \*~\ | xargs rm Regards, -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Adding an alias to .cshrc
Glen Barber wrote: Hi Steve On Tue, Dec 29, 2009 at 7:50 PM, Steve Bertrand st...@ibctech.ca wrote: Hi all, happy holidays! I want to add an alias to my .cshrc file: alias srm find . -name *~ | xargs rm Try enclosing it in quotes, such as: alias srm find . -name \*~\ | xargs rm This works. Instead of escaping, I just encapsulated within single-quotes: acct-dev: ISP-RADIUS % grep srm /home/steve/.cshrc alias srm '/usr/bin/find . -name *~ | /usr/bin/xargs rm' Olivier: I didn't test your theory, but thanks for the tip. I've just become accustomed over the years to use xargs when making bulk rm's ;) Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mplayer / bash question
--- On Tue, 12/29/09, Dan Nelson dnel...@allantgroup.com wrote: From: Dan Nelson dnel...@allantgroup.com Subject: Re: mplayer / bash question To: Neil Short nesh...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Tuesday, December 29, 2009, 10:10 AM In the last episode (Dec 29), Neil Short said: I'm trying to batch-rip audio files from a bunch of video files. I have a directory full of *.vob files: ls *.vob 01.vob 03.vob 05.vob 07.vob 09.vob 11.vob 13.vob 02.vob 04.vob 06..vob 08.vob 10.vob 12.vob So I wrote a little command line script to rip wave files from all the vob's: ls *.vob | while read f do mplayer -ao pcm:file=`basename $f .vob`.wav $f done the first 01.wav file is created successfully; but then the whole sh'bang exits without ripping the rest of the vob's: Try this instead: for f in *.vob ; do mplayer -ao pcm:file=${f%.vob}.wav $f done Uses the shell's native file globbing to expand the *.vob wildcard, and the shell's native string processing functions to remove a suffix. If that still doesn't work, run the script with sh -x to turn debugging on, and see what your variables are expanding to as the script runs. -- Dan Nelson dnel...@allantgroup.com Thanks! It actually works. I need to get me a good book on the shell. The man pages are ... . ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Midnight Commander - Where is the subshell?
On Tue, Dec 29, 2009 at 11:37 PM, herbert langhans herbert.raim...@gmx.net wrote: Hi Daemons, I have just installed the brandnew mc 4.7 - now there is still an old little annoyance: Being root I can switch away the mc-commander and use the shell, CTRL+o does the trick. But as a normal user CTRL+o blanks the screen, no shell prompt appears and hitting a key just shows mc again. The subshell support must be working, all is fine if I am root. What is wrong there, anyone knows the trick using the subshell as a normal user?? Thanks! herb langhans -- sprachtraining langhans herbert langhans, warschau http://www.langhans.com.pl herbert dot raimund at gmx dot net +0048 603 341 441 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Hello, Check your directory permissions on ~home/.mc -- Yes, Gmail is great! My local time is PDT or UTC/GMT Offset -7 hours. davidf...@gmail.com or dave4...@verizon.net end. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Adding an alias to .cshrc
On Tue, Dec 29, 2009 at 07:50:21PM -0500, Steve Bertrand wrote: I want to add an alias to my .cshrc file: alias srm find . -name *~ | xargs rm No need for xargs: alias srm find . -name '*~' -exec rm {} + or alias srm find . -name '*~' -delete ...so that I have an easy way to remove the temp files left by svn. After adding the alias, logging out and then back in, I get an error stating: Use the builtin(1) 'source' command. No need to log out/log in. acct-dev: ISP-RADIUS % srm srm: Command not found. I'm sure someone more knowledgable about csh (I rely on bash) can help you debug what exactly happens and why, but quoting your alias command in .cshrc is all that's required. I thought that perhaps the file wasn't being read upon login, so I appended a new alias underneath: Easier to check your aliases by typing 'alias', no? alias srm find . -name *~ | xargs rm alias sll ls -lA ...which works fine when called after re-login. I even went as far as to prefix the find/xargs command with full paths, to no avail. Is this a problem with the pipe in the alias directive? The command works on the CLI, as I literally copy/pasted it into the .cshrc file. Again, quoting what's being aliased will suffice. Why that's not necessary during interactive use, I don't know, but I'd get into the habit of quoting such things regardless. -- George ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Linux-realplayer
While attempting to install Linux-realplayer on an 8.0 box I get this error message: pango-1.22.3-1.fc10.i386.rpm 100% of 374 kB 133 kBps === Extracting for linux-f10-pango-1.22.3 = MD5 Checksum OK for rpm/i386/fedora/10/pango-1.22.3-1.fc10.i386.rpm. = SHA256 Checksum OK for rpm/i386/fedora/10/pango-1.22.3-1.fc10.i386.rpm. === linux-f10-pango-1.22.3 depends on file: /usr/local/bin/rpm2cpio - found === Patching for linux-f10-pango-1.22.3 === Configuring for linux-f10-pango-1.22.3 === Installing for linux-f10-pango-1.22.3 === linux-f10-pango-1.22.3 depends on file: /compat/linux/etc/fedora-release === linux-f10-pango-1.22.3 depends on file: /compat/linux/usr/lib/libcairo.s === linux-f10-pango-1.22.3 depends on file: /compat/linux/lib/libexpat.so.1 === linux-f10-pango-1.22.3 depends on file: /compat/linux/usr/lib/libfontcon === linux-f10-pango-1.22.3 depends on file: /compat/linux/usr/lib/libpng.so. === linux-f10-pango-1.22.3 depends on file: /compat/linux/usr/lib/libXrandr. === Generating temporary packing list === Checking if x11-toolkits/linux-f10-pango already installed cd /usr/tmp/usr/ports/x11-toolkits/linux-f10-pango/work /usr/bin/find * -typ cd /usr/tmp/usr/ports/x11-toolkits/linux-f10-pango/work /usr/bin/find * ! -t 1748 blocks *** Signal 8 Stop in /usr/ports/x11-toolkits/linux-f10-pango. *** Error code 1 Stop in /usr/ports/x11-toolkits/linux-f10-gtk2. *** Error code 1 Stop in /usr/ports/multimedia/linux-realplayer. root@ /usr/ports/multimedia/linux-realplayer: Can someone give me a heads up on this one, please. Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
questions about superpages
I poked around in the stuff in /sys/i386/vm looking for the threshholds of process memory size for promotion to 4 MB pages and for demotion back to 4 KB pages, but didn't see them. Can someone tell me what those threshholds are? I'm assuming there must be a larger threshhold for promotion than for demotion on the basis that hysteresis is necessary to keep the VM system continual oscillation of processes with memory requirements close to the promotion thresshold. If someone who knows can also point me toward the place that these values appear in the source code, I'd appreciate that, too. Thanks in advance! Scott Bennett, Comm. ASMELG, CFIAG ** * Internet: bennett at cs.niu.edu * ** * A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army. * *-- Gov. John Hancock, New York Journal, 28 January 1790 * ** ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: questions about superpages
A short while ago, I wrote: I poked around in the stuff in /sys/i386/vm looking for the threshholds That should have said, /sys/vm, not what I wrote. Sorry for any confusion. of process memory size for promotion to 4 MB pages and for demotion back to 4 KB pages, but didn't see them. Can someone tell me what those threshholds are? I'm assuming there must be a larger threshhold for promotion than for demotion on the basis that hysteresis is necessary to keep the VM system continual oscillation of processes with memory requirements close to the promotion thresshold. If someone who knows can also point me toward the place that these values appear in the source code, I'd appreciate that, too. Thanks in advance! Scott Bennett, Comm. ASMELG, CFIAG ** * Internet: bennett at cs.niu.edu * ** * A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army. * *-- Gov. John Hancock, New York Journal, 28 January 1790 * ** ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
After installing a ZFS only build, machine won't complete POST
Has anyone seen this? I've just installed a ZFS only build following the instructions at (http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot). After rebooting after the install, the POST won't complete (it appears to be looking at the disks for something). If I unplug the drives and reboot, POST completes. If I then destroy the GPT partitions and install MBR, I can now get past POST (but with a corrupted installation that won't boot). Some info: Motherboard: MSI Neo2 Disks: 2x 500GB Seagates (I created a mirrored pool during installation). Could this just be a crappy BIOS issue? I'd hate to have to scrap GPT/ZFS and go back to MBR/UFS. Any ideas? Thanks. -John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: After installing a ZFS only build, machine won't complete POST
In the last episode (Dec 29), John Terrell said: Has anyone seen this? I've just installed a ZFS only build following the instructions at (http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot). After rebooting after the install, the POST won't complete (it appears to be looking at the disks for something). If I unplug the drives and reboot, POST completes. If I then destroy the GPT partitions and install MBR, I can now get past POST (but with a corrupted installation that won't boot). Some info: Motherboard: MSI Neo2 Disks: 2x 500GB Seagates (I created a mirrored pool during installation). Could this just be a crappy BIOS issue? Possibly. Unless your BIOS is very new it's unlikely to support GPT. I'd hate to have to scrap GPT/ZFS and go back to MBR/UFS. ZFS works just fine inside an MBR partition, as long as your disks fit the 2TB limit (yours do). -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
how does the C pre-processor interface with make?
Hey folks, I was wondering how the C pre-processor interfaces with make. Let's suppose that I have a little C program, something along the lines of: #include stdio.h int main() { #ifdef FOO fprintf(stdout, Hi, my name is foo.\n); #endif #ifdef BAR fprintf(stdout, Hi, my name is bar.\n); #endif fprintf(stdout, I am always here.\n); return(1-1); } It is easy to control the pre-processor in the above code by defining the respective terms or leaving them out, however, I am trying to control the conditionals from out of a makefile. This is essentially the way in which the kernel sources are compiled. Any suggestions? Thanks Oliver ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org