Re: Newbie question about pkg_add
Jeremy Chadwick wrote: On Wed, Oct 29, 2008 at 11:14:34AM +0800, Canhua wrote: Hi, good day all. I am new to FreeBSD. I tried to pkg_add -r a package (py-networkx), which tell me that: Error: FTP Unable to get ftp://ftp.freebsd.org/pub/ FreeBSD/ports/i386/packages-7.0-release/Latest/py-networkx.tbz: File unavailable (e.g., file not found, no access) although I know that py-network does exist in /usr/ports. Actually I could go to /usr/ports/math/py-networkx and make install using ports means. Then I could learn from this that there are softwares that could be install from ports while not able to be added from package system? Am I right? Correct -- not every port has a package. ports-mgmt/portupgrade is a useful tool for easily getting packages and ports, it includes the tool portinstall which does what it says it does. By running portinstall -P pkgname, it will install a port and dependencies with packages if available, otherwise they are built from source. portsman and portmanager are some other frontend tools that can help with package administration, it's really up to your own tastes. -Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Errors with pkg_add
Phusion [EMAIL PROTECTED] writes: I am running FreeBSD 7.0-STABLE i386 and am having problems with pkg_add. I can install packages as the root user without problems. - pkg_add -r packages, works when running as root - pkg_add -r packages, errors out when using sudo % sudo pkg_add -r openssl Error: FTP Unable to get ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/openssl.tbz: Syntax error, command unrecognized pkg_add: unable to fetch 'ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/openssl.tbz' by URL % cat /usr/local/etc/sudoers Defaultsenv_keep += PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR Defaultsenv_keep += PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF rootALL=(ALL) ALL %wheel ALL=(ALL) NOPASSWD: ALL This user is a member of the wheel group so no password is required. Both this user and root user are using the csh with the following in .cshrc. setenv PACKAGESITE ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/ Let me know if you have any ideas. Thanks. sudo may not be setting up the environment correctly. I seem to recall it recently changed defaults to wiping out more of the caller's environment than had previously been the case. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Errors with pkg_add
I am running FreeBSD 7.0-STABLE i386 and am having problems with pkg_add. I can install packages as the root user without problems. - pkg_add -r packages, works when running as root - pkg_add -r packages, errors out when using sudo % sudo pkg_add -r openssl Error: FTP Unable to get ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/openssl.tbz: Syntax error, command unrecognized pkg_add: unable to fetch 'ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/openssl.tbz' by URL % cat /usr/local/etc/sudoers Defaultsenv_keep += PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR Defaultsenv_keep += PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF rootALL=(ALL) ALL %wheel ALL=(ALL) NOPASSWD: ALL This user is a member of the wheel group so no password is required. Both this user and root user are using the csh with the following in .cshrc. setenv PACKAGESITE ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/ Let me know if you have any ideas. Thanks. Phusion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Errors with pkg_add
On Wed, 4 Jun 2008 17:27:09 -0500 Phusion [EMAIL PROTECTED] wrote: - pkg_add -r packages, works when running as root - pkg_add -r packages, errors out when using sudo i found something similar. i think this may be because the sudo only works to execute the pkg_add, but not handle subsequent matters that requires root access. i don't know if there is a way around it. -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add goofiness in 7.0
[EMAIL PROTECTED] wrote: ... extract: execute '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports add linuxdoc/catalog' xmlcatmgr: unbalanced arguments for `add' action pkg_add: command '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports add linuxdoc/catalog' failed ... That looks like a warning from xmlcatmgr which may or may not be important, but the package apparently added itself completely (no errors were reported by pkg_add). It may not make a lot of difference, but I am now wondering how to recognize an error reported by pkg_add since this: pkg_add: command '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports add linuxdoc/catalog' failed looks like one to me, but apparently it isn't. /usr/local/* files are installed by a package, in this case run as part of a particular package installation script, and this failure is dutifully reported by pkg_add. Just taking the xmlcatmgr message at face value, it looks as if some addition that linuxdoc intended to make in some catalog did not get done. Anything following that step in the postinstall script may also not have gotten done. My gut suspicion is that there is something wrong with the linuxdoc postinstall script -- or perhaps linuxdoc has an unstated dependency which I don't happen to have installed -- rather than something wrong with xmlcatmgr. PR time, I guess :( Yes, that is the next step. It works for many others though, so the problem is likely to be more subtle than it is completely broken. Krs ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add goofiness in 7.0
[EMAIL PROTECTED] wrote: I believe this is the same as the error message I saw originally (when I had not specified -v, so it wasn't buried among a pile of other stuff): xmlcatmgr: unbalanced arguments for `add' action # pkg_add -Kv linuxdoc* Requested space: 36624 bytes, free space: 774946816 bytes in /var/tmp/instmp.CfA0bH Package 'linuxdoc-1.1_1' depends on 'xmlcatmgr-2.2' with 'textproc/xmlcatmgr' origin. - already installed. Package 'linuxdoc-1.1_1' depends on 'iso8879-1986_2' with 'textproc/iso8879' origin. - already installed. extract: Package name is linuxdoc-1.1_1 extract: CWD to /usr/local extract: /usr/local/share/sgml/linuxdoc/README extract: /usr/local/share/sgml/linuxdoc/catalog extract: execute '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports add linuxdoc/catalog' xmlcatmgr: unbalanced arguments for `add' action pkg_add: command '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports add linuxdoc/catalog' failed extract: /usr/local/share/sgml/linuxdoc/freebsd-1.0.dtd extract: /usr/local/share/sgml/linuxdoc/freebsd-1.1.dtd extract: /usr/local/share/sgml/linuxdoc/linuxdoc.dec extract: /usr/local/share/sgml/linuxdoc/original.dtd extract: CWD to . Running mtree for linuxdoc-1.1_1.. mtree -U -f +MTREE_DIRS -d -e -p /usr/local /dev/null Attempting to record package into /var/db/pkg/linuxdoc-1.1_1.. Trying to record dependency on package 'xmlcatmgr-2.2' with 'textproc/xmlcatmgr' origin. Trying to record dependency on package 'iso8879-1986_2' with 'textproc/iso8879' origin. Package linuxdoc-1.1_1 registered in /var/db/pkg/linuxdoc-1.1_1 That looks like a warning from xmlcatmgr which may or may not be important, but the package apparently added itself completely (no errors were reported by pkg_add). You should look into the xmlcatmgr documentation, or talk to the port maintainer, to find out what that warning means and if it is important. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add goofiness in 7.0
... extract: execute '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports add linuxdoc/catalog' xmlcatmgr: unbalanced arguments for `add' action pkg_add: command '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports add linuxdoc/catalog' failed ... That looks like a warning from xmlcatmgr which may or may not be important, but the package apparently added itself completely (no errors were reported by pkg_add). It may not make a lot of difference, but I am now wondering how to recognize an error reported by pkg_add since this: pkg_add: command '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports add linuxdoc/catalog' failed looks like one to me, but apparently it isn't. You should look into the xmlcatmgr documentation, or talk to the port maintainer, to find out what that warning means and if it is important. I didn't find anything pertinent in the (minimal) installed documentation. Just taking the xmlcatmgr message at face value, it looks as if some addition that linuxdoc intended to make in some catalog did not get done. Anything following that step in the postinstall script may also not have gotten done. My gut suspicion is that there is something wrong with the linuxdoc postinstall script -- or perhaps linuxdoc has an unstated dependency which I don't happen to have installed -- rather than something wrong with xmlcatmgr. PR time, I guess :( ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pkg_add goofiness in 7.0
The first time I tried to add linuxdoc-1.1_1.tbz to a new-from-CD 7.0 installation, it complained about a missing dependency that was on the other CD. OK, I switched CDs and installed that, then switched back and retried linuxdoc-1.1_1.tbz, and it gave me some sort of error about an unbalanced add operation. (I didn't try to copy down all the details, figuring instead to retry with a script(1) active so as to capture them.) Upon that retry, it now tells me that the package is already installed, even though the prior attempt failed. What is going on? # uname -a FreeBSD fbsd70.uucp 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 # ls -l linuxdoc* -r--r--r-- 1 root wheel 9156 Feb 24 08:18 linuxdoc-1.1_1.tbz # pkg_add -Kv linuxdoc* Requested space: 36624 bytes, free space: 774981632 bytes in /var/tmp/instmp.3DBbHN pkg_add: package 'linuxdoc-1.1_1' or its older version already installed pkg_add: 1 package addition(s) failed ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add goofiness in 7.0
[EMAIL PROTECTED] wrote: The first time I tried to add linuxdoc-1.1_1.tbz to a new-from-CD 7.0 installation, it complained about a missing dependency that was on the other CD. OK, I switched CDs and installed that, then switched back and retried linuxdoc-1.1_1.tbz, and it gave me some sort of error about an unbalanced add operation. (I didn't try to copy down all the details, figuring instead to retry with a script(1) active so as to capture them.) Upon that retry, it now tells me that the package is already installed, even though the prior attempt failed. What is going on? # uname -a FreeBSD fbsd70.uucp 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 # ls -l linuxdoc* -r--r--r-- 1 root wheel 9156 Feb 24 08:18 linuxdoc-1.1_1.tbz # pkg_add -Kv linuxdoc* Requested space: 36624 bytes, free space: 774981632 bytes in /var/tmp/instmp.3DBbHN pkg_add: package 'linuxdoc-1.1_1' or its older version already installed pkg_add: 1 package addition(s) failed No idea, you'll have to recreate the failure and show us. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add goofiness in 7.0
[trying to install linuxdoc-1.1_1.tbz] it gave me some sort of error about an unbalanced add operation. (I didn't try to copy down all the details, figuring instead to retry with a script(1) active so as to capture them.) Upon that retry, it now tells me that the package is already installed, even though the prior attempt failed. ... # ls -l linuxdoc* -r--r--r-- 1 root wheel 9156 Feb 24 08:18 linuxdoc-1.1_1.tbz # pkg_add -Kv linuxdoc* Requested space: 36624 bytes, free space: 774981632 bytes in /var/tmp/instmp.3DBbHN pkg_add: package 'linuxdoc-1.1_1' or its older version already installed pkg_add: 1 package addition(s) failed No idea, you'll have to recreate the failure and show us. Which failure are you referring to? The original one with the unbalanced add message, or the new one where it claims the package is already installed even though the previous installation reportedly failed? I can recreate the second one any number of times, but absent some specific suggestion it's not going to produce any more output than shown above. (I'm already specifying -v.) Short of wiping the drive and starting completely over, I have no idea how to go about reproducing the original failure without first fixing the newer one. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add goofiness in 7.0
[EMAIL PROTECTED] wrote: [trying to install linuxdoc-1.1_1.tbz] it gave me some sort of error about an unbalanced add operation. (I didn't try to copy down all the details, figuring instead to retry with a script(1) active so as to capture them.) Upon that retry, it now tells me that the package is already installed, even though the prior attempt failed. ... # ls -l linuxdoc* -r--r--r-- 1 root wheel 9156 Feb 24 08:18 linuxdoc-1.1_1.tbz # pkg_add -Kv linuxdoc* Requested space: 36624 bytes, free space: 774981632 bytes in /var/tmp/instmp.3DBbHN pkg_add: package 'linuxdoc-1.1_1' or its older version already installed pkg_add: 1 package addition(s) failed No idea, you'll have to recreate the failure and show us. Which failure are you referring to? The original one with the unbalanced add message, or the new one where it claims the package is already installed even though the previous installation reportedly failed? I can recreate the second one any number of times, but absent some specific suggestion it's not going to produce any more output than shown above. (I'm already specifying -v.) Short of wiping the drive and starting completely over, I have no idea how to go about reproducing the original failure without first fixing the newer one. What you showed does not indicate a failure. If you are saying that the package wasn't actually installed completely, then pkg_delete it and retry. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add goofiness in 7.0
What you showed does not indicate a failure. If you are saying that the package wasn't actually installed completely, then pkg_delete it and retry. I am not saying that the package was installed incompletely, incorrectly, or something else because I don't know which of those applies. *The package installation itself* threw an error message, with no instructions for recovery, and left the package database corrupted (incorrectly showing the package as installed). pkg_delete was only partially successful, perhaps because it was unable to completely clean up the corruption. Now what? # pkg_delete -v linuxdoc-1.1_1 Trying to remove dependency on package 'xmlcatmgr-2.2' with 'textproc/xmlcatmgr' origin. Trying to remove dependency on package 'iso8879-1986_2' with 'textproc/iso8879' origin. Change working directory to /usr/local Delete file /usr/local/share/sgml/linuxdoc/README Execute '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports remove linuxdoc/catalog' xmlcatmgr: enabling compatibility mode; removing ALL matching entries xmlcatmgr: no matching entry for `linuxdoc/catalog' of any type pkg_delete: unexec command for '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports remove linuxdoc/catalog' failed Delete file /usr/local/share/sgml/linuxdoc/catalog Delete file /usr/local/share/sgml/linuxdoc/freebsd-1.0.dtd Delete file /usr/local/share/sgml/linuxdoc/freebsd-1.1.dtd Delete file /usr/local/share/sgml/linuxdoc/linuxdoc.dec Delete file /usr/local/share/sgml/linuxdoc/original.dtd Delete directory /usr/local/share/sgml/linuxdoc Change working directory to . pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add goofiness in 7.0
[EMAIL PROTECTED] wrote: What you showed does not indicate a failure. If you are saying that the package wasn't actually installed completely, then pkg_delete it and retry. I am not saying that the package was installed incompletely, incorrectly, or something else because I don't know which of those applies. *The package installation itself* threw an error message, with no instructions for recovery, and left the package database corrupted (incorrectly showing the package as installed). Fine, but there is nothing I can do to help you without knowing what the error was. pkg_delete was only partially successful, perhaps because it was unable to completely clean up the corruption. Now what? # pkg_delete -v linuxdoc-1.1_1 Trying to remove dependency on package 'xmlcatmgr-2.2' with 'textproc/xmlcatmgr' origin. Trying to remove dependency on package 'iso8879-1986_2' with 'textproc/iso8879' origin. Change working directory to /usr/local Delete file /usr/local/share/sgml/linuxdoc/README Execute '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports remove linuxdoc/catalog' xmlcatmgr: enabling compatibility mode; removing ALL matching entries xmlcatmgr: no matching entry for `linuxdoc/catalog' of any type pkg_delete: unexec command for '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports remove linuxdoc/catalog' failed Delete file /usr/local/share/sgml/linuxdoc/catalog Delete file /usr/local/share/sgml/linuxdoc/freebsd-1.0.dtd Delete file /usr/local/share/sgml/linuxdoc/freebsd-1.1.dtd Delete file /usr/local/share/sgml/linuxdoc/linuxdoc.dec Delete file /usr/local/share/sgml/linuxdoc/original.dtd Delete directory /usr/local/share/sgml/linuxdoc Change working directory to . pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) As I said, now try to repeat the original problem. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add goofiness in 7.0
I believe this is the same as the error message I saw originally (when I had not specified -v, so it wasn't buried among a pile of other stuff): xmlcatmgr: unbalanced arguments for `add' action # pkg_add -Kv linuxdoc* Requested space: 36624 bytes, free space: 774946816 bytes in /var/tmp/instmp.CfA0bH Package 'linuxdoc-1.1_1' depends on 'xmlcatmgr-2.2' with 'textproc/xmlcatmgr' origin. - already installed. Package 'linuxdoc-1.1_1' depends on 'iso8879-1986_2' with 'textproc/iso8879' origin. - already installed. extract: Package name is linuxdoc-1.1_1 extract: CWD to /usr/local extract: /usr/local/share/sgml/linuxdoc/README extract: /usr/local/share/sgml/linuxdoc/catalog extract: execute '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports add linuxdoc/catalog' xmlcatmgr: unbalanced arguments for `add' action pkg_add: command '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.ports add linuxdoc/catalog' failed extract: /usr/local/share/sgml/linuxdoc/freebsd-1.0.dtd extract: /usr/local/share/sgml/linuxdoc/freebsd-1.1.dtd extract: /usr/local/share/sgml/linuxdoc/linuxdoc.dec extract: /usr/local/share/sgml/linuxdoc/original.dtd extract: CWD to . Running mtree for linuxdoc-1.1_1.. mtree -U -f +MTREE_DIRS -d -e -p /usr/local /dev/null Attempting to record package into /var/db/pkg/linuxdoc-1.1_1.. Trying to record dependency on package 'xmlcatmgr-2.2' with 'textproc/xmlcatmgr' origin. Trying to record dependency on package 'iso8879-1986_2' with 'textproc/iso8879' origin. Package linuxdoc-1.1_1 registered in /var/db/pkg/linuxdoc-1.1_1 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Using ports and pkg_add over HTTP
Hi all, is there any possible way to use the FreeBSD package management over HTTP? I can't access FTP from my network. As I know I can install over HTTP, but how can I use pkg_add -r and ports over HTTP? Thanks, Attila ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using ports and pkg_add over HTTP
On Tuesday 04 March 2008 13:20:05 Attila GOLONCSER wrote: is there any possible way to use the FreeBSD package management over HTTP? I can't access FTP from my network. As I know I can install over HTTP, but how can I use pkg_add -r and ports over HTTP? By setting PACKAGESITE to one of the http mirrors (there aren't that many). For example: env PACKAGESITE=http://ftp2.de.freebsd.org/pub/FreeBSD/ports/packages/All/ pkg_add -r your_package-ver.si.on.tbz To make this permanent, add PACKAGESITE variable to root's .profile and/or .login. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using ports and pkg_add over HTTP
On Tue, 4 Mar 2008 14:22:20 +0100 Mel [EMAIL PROTECTED] wrote: On Tuesday 04 March 2008 13:20:05 Attila GOLONCSER wrote: is there any possible way to use the FreeBSD package management over HTTP? I can't access FTP from my network. As I know I can install over HTTP, but how can I use pkg_add -r and ports over HTTP? By setting PACKAGESITE And for ports, you can add the following in make.conf to make the ports prefer http servers for distfiles: MASTER_SORT_REGEX?= ^http:// (Incidentally I used to do this because my ISP favoured http over ftp in its traffic shaping) If you have direct access to an http proxy (webcache), you can also try setting http_proxy in the environment. This allows ftp urls to be requested over http, if the proxy supports it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: passive ftp transfer with pkg_add
Norman Maurer wrote: Am Montag, den 28.01.2008, 07:19 +0100 schrieb Zbigniew Szalbot: Hello, I have been trying to install KDE by using pkg_add -r kde but the download is always failing. Reading man pkg_add I see a reference to change the FTP mode to passive if the download constantly fails. However, man does not say which file should be edited to change it. I tried pkgtools.conf but I have not found anything about FTP transfer mode in there. Can you advise which file needs to be edited? Also: Note: If you wish to use passive mode ftp in such transfers, set the variable FTP_PASSIVE_MODE to some value in your environment. What value should be set for FTP_PASSIVE_MODE? Any value? Many thanks! Zbigniew Szalbot Yes just do something like that: # export FTP_PASSIVE_MODE=true Note that this is set automatically for the default login class (/etc/login.conf). If you are not seeing it then either that file is not up-to-date or your user account is not in the default login class (see passwd(5)). Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: passive ftp transfer with pkg_add
Hi there, 2008/1/28, Kris Kennaway [EMAIL PROTECTED]: Norman Maurer wrote: Am Montag, den 28.01.2008, 07:19 +0100 schrieb Zbigniew Szalbot: Hello, I have been trying to install KDE by using pkg_add -r kde but the download is always failing. Reading man pkg_add I see a reference to change the FTP mode to passive if the download constantly fails. However, man does not say which file should be edited to change it. I tried pkgtools.conf but I have not found anything about FTP transfer mode in there. Can you advise which file needs to be edited? Also: Note: If you wish to use passive mode ftp in such transfers, set the variable FTP_PASSIVE_MODE to some value in your environment. What value should be set for FTP_PASSIVE_MODE? Any value? Many thanks! Zbigniew Szalbot Yes just do something like that: # export FTP_PASSIVE_MODE=true Note that this is set automatically for the default login class (/etc/login.conf). If you are not seeing it then either that file is not up-to-date or your user account is not in the default login class (see passwd(5)). I do not have an access to this machine right now but I would think I should have the default login class. However, I ran pkg_add -rvK kde and I saw that while logging to the ftp server, the mode was set to Active because at some point I saw a message that I may want to set it to passive (I believe it was response from the FreeBSD FTP server). I'll check when I get home. Anyway, I could not complete the download of qt-3.3.38.tbz if I remember correctly (and I tried many times). Interestingly enough, when I typed wget LINK TO FILE, I downloaded it pretty fast. I then moved the file to /var/tmp but when I ran pkg_add -r kde, it did not seem to notice the file has been downloaded before and stopped again. I am going to try to install kde from an iso CD. Am I right in thinking that installing KDE via ports would take an awful lot of time on a humble PIII 866 512RAM machine? Thanks again! Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
passive ftp transfer with pkg_add
Hello, I have been trying to install KDE by using pkg_add -r kde but the download is always failing. Reading man pkg_add I see a reference to change the FTP mode to passive if the download constantly fails. However, man does not say which file should be edited to change it. I tried pkgtools.conf but I have not found anything about FTP transfer mode in there. Can you advise which file needs to be edited? Also: Note: If you wish to use passive mode ftp in such transfers, set the variable FTP_PASSIVE_MODE to some value in your environment. What value should be set for FTP_PASSIVE_MODE? Any value? Many thanks! Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: passive ftp transfer with pkg_add
Am Montag, den 28.01.2008, 07:19 +0100 schrieb Zbigniew Szalbot: Hello, I have been trying to install KDE by using pkg_add -r kde but the download is always failing. Reading man pkg_add I see a reference to change the FTP mode to passive if the download constantly fails. However, man does not say which file should be edited to change it. I tried pkgtools.conf but I have not found anything about FTP transfer mode in there. Can you advise which file needs to be edited? Also: Note: If you wish to use passive mode ftp in such transfers, set the variable FTP_PASSIVE_MODE to some value in your environment. What value should be set for FTP_PASSIVE_MODE? Any value? Many thanks! Zbigniew Szalbot Yes just do something like that: # export FTP_PASSIVE_MODE=true bye Norman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: passive ftp transfer with pkg_add
Hello, 2008/1/28, Norman Maurer [EMAIL PROTECTED]: Am Montag, den 28.01.2008, 07:19 +0100 schrieb Zbigniew Szalbot: Hello, I have been trying to install KDE by using pkg_add -r kde but the download is always failing. Reading man pkg_add I see a reference to change the FTP mode to passive if the download constantly fails. However, man does not say which file should be edited to change it. I tried pkgtools.conf but I have not found anything about FTP transfer mode in there. Can you advise which file needs to be edited? Also: Note: If you wish to use passive mode ftp in such transfers, set the variable FTP_PASSIVE_MODE to some value in your environment. What value should be set for FTP_PASSIVE_MODE? Any value? Many thanks! Zbigniew Szalbot Yes just do something like that: # export FTP_PASSIVE_MODE=true Thank you very much! When I want to revert it, will it suffice to type: export FTP_PASSIVE_MODE=false ? Thank you again! Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: passive ftp transfer with pkg_add
Thank you very much! When I want to revert it, will it suffice to type: export FTP_PASSIVE_MODE=false unset FTP_PASSIVE_MODE will unset the variable. Regards, Josh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pkg_add: remote install (-r) broken
Hi all, At some point after my original installation of v.7-BETA3 in late November and a subsquent upgrade to BETA4 with Colin Percival's freebsd-update, installing packages remotely with pkg_add on my system broke. For example: $ sudo pkg_add -vr rtorrent scheme: [ftp] user: [] password: [] host: [ftp.freebsd.org] port: [0] document: [/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz] --- ftp.freebsd.org:21 looking up ftp.freebsd.org connecting to ftp.freebsd.org:21 220 ftp.FreeBSD.org NcFTPd Server (licensed copy) ready. USER anonymous 331 Guest login ok, send your complete e-mail address as password. PASS [EMAIL PROTECTED] 230-You are user #181 of 1000 simultaneous users allowed. 230- 230 Logged in anonymously. PWD 257 / is cwd. CWD pub/FreeBSD/ports/i386/packages-7-current/Latest 250 /pub/FreeBSD/ports/i386/packages-7-current/Latest is new cwd. MODE S 200 Mode okay. TYPE I 200 Type okay. binding data socket PORT 172,19,3,3,209,68 200 PORT command successful. initiating transfer RETR rtorrent.tbz 550 Cannot connect to 78.27.2.208:53572 - Unknown error: 0. Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz' by URL pkg_add: 1 package addition(s) failed Now, I *know* the package and host are online; I can copy and paste the URL from the screen to grab it with wget: wget ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz This works. What could be going wrong with add_pkg here? As I indicate above, I am currently at 7.0-BETA4 Thanks. -- Colin Brace Amsterdam http://lim.nl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add: remote install (-r) broken
Colin Brace wrote: Hi all, At some point after my original installation of v.7-BETA3 in late November and a subsquent upgrade to BETA4 with Colin Percival's freebsd-update, installing packages remotely with pkg_add on my system broke. For example: 550 Cannot connect to 78.27.2.208:53572 - Unknown error: 0. I guess that is your IP. You have a firewall and are not using passive mode FTP? It should be the default unless you edited your login.conf. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Philosophy of default pkg_add -r PACKAGESITE?
First off, thanks to Kris and Mel for the previous definitive answers. Let me see if I can summarize this correctly... 1) It's important that administrators who are taking advantage of pre-compiled packages (like me) use packages that have been compiled for their particular base system. 2) For users running a release base system, there is set of pre-compiled packages provided for use with their particular release. These are the packages found on the FTP site in the release folders on the FTP site. 3) The default behavior for pkg_add -r on RELEASE systems is to source it's pre-compiled packages from the release directory matching the underlying base-system's release. For a 6.2-RELEASE base system (for i386), pkg_add -r will source packages from... /pub/FreeBSD/ports/i386/packages-6.2-release 4) Those release packages are never updated for any reason. The list of available packages neither increases nor decreases, the versions of the packages made available doesn't change, and (presumably) the packages are never recompiled once the release has occurred. It's a static list of packages compiled (and tested) for a particular release and then never touched again. 5) If an admin wants to install pre-compiled packages that are not present in the default release directory, they can configure pkg_add -r to source packages from one of the other package directories by setting the PACKAGESITE environment variable to point to one of the other package directories. 6) Care should be taken when re-pointing PACKAGESITE as it would then be possible for you to install a package that's been compiled against a different version of some base-system library than you are currently running. How'd I do? Assuming I did well, a couple of more questions... 1) Regardless of what base-system version you install, eventually the base system will need to be updated (in the least, to apply security updates). So generally one important decision is what version of FreeBSD you're going to track when doing updates. Security? Stable? Current? So what's the recommended application install-procedure if you start with a release system and then track security via freebsd-update? (A common scenario, I presume.) It would seem that pkg-add -r is a no-go in this case. If you leave pkg_add -r pointing to it's default source, it'll grab packages compiled against the release system which, while unlikely, may have libraries incompatible with your new base system that's tracking security. If you change pkg-add -r to source from stable or release you're getting packages compiled against a base-system even more different than your own security base system. As far as I can tell there is not set of pre-compiled packages that have been compiled against the secure track. 2) How does pkg_add -r know it's on a release system? The handbook says that pkg_add -r will download from either the current, stable, or release package directories as appropriate. How does it know I have a release system and not a stable system? Particularly since my system is not *really* a release system once I do my first freebsd-update, right?. At that point it becomes a system tracking secure, right? Thanks again for the input so far. The package thing is making way more sense, hopefully a few more clarifications and I'll grok it. Thanks, - Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Philosophy of default pkg_add -r PACKAGESITE?
Gary Affonso wrote: If I do, it seems to me that the absolute first thing I should do after installing a release version would be to change where pkg_add -r is sourcing packages from. Either to current if I like to live on the edge or stable if I want to be a more conservative. No, stable and current here refer to the branches of FreeBSD that the packages are compiled to run with, there are no other differences in the contents of the packages themselves. I'm curious, why does pkg_add -r point to the release snapshot of ports by default? Is the idea that a release is well-tested and that any deviation from that (even security or bug-fix changes) is an unknown that new users need to be shielded against when grabbing packages with pkg_add -r? Seems to me it would be better to have pkg_add -r point to stable (which, if I understand things correctly, does get updated packages). -release packages have gone through an extensive period of testing with that release, so you have more confidence they will work. The up-to-date packages may not work, may not even be present on the FTP site, and in general are not suitable for users who just want a working system without having to fiddle with it. i.e. defaulting to the packages that came with the release is a conservative step that is appropriate for users who just want packages that work, and don't care about always having the latest versions. For the rest of you, you're going to be doing a lot more hands on admin anyway, so setting one env variable is not a heavy burden. And how does one go about *permanently* changing the pkg_add -r target. You can set the PACKAGESITE variable in the shell which will work on a user-by-user basis but isn't there a way to centrally change PACKAGESITE without relying on each user to have properly config'd their individual shells? In the typical configuration only root can add packages, so just add it there. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Philosophy of default pkg_add -r PACKAGESITE?
I'm curious, why does pkg_add -r point to the release snapshot of ports by default? Is the idea that a release is well-tested and that any deviation from that (even security or bug-fix changes) is an unknown that new users need to be shielded against when grabbing packages with pkg_add -r? Seems to me it would be better to have pkg_add -r point to stable (which, if I understand things correctly, does get updated packages). -release packages have gone through an extensive period of testing with that release, so you have more confidence they will work. The up-to-date packages may not work, may not even be present on the FTP site, and in general are not suitable for users who just want a working system without having to fiddle with it. i.e. defaulting to the packages that came with the release is a conservative step that is appropriate for users who just want packages that work, and don't care about always having the latest versions. For the rest of you, you're going to be doing a lot more hands on admin anyway, so setting one env variable is not a heavy burden. Do the -release packages get updates for security (and only for security) reasons? I ask because I don't find any information about this on the FBSD webpages. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Philosophy of default pkg_add -r PACKAGESITE?
Gueven Bay wrote: I'm curious, why does pkg_add -r point to the release snapshot of ports by default? Is the idea that a release is well-tested and that any deviation from that (even security or bug-fix changes) is an unknown that new users need to be shielded against when grabbing packages with pkg_add -r? Seems to me it would be better to have pkg_add -r point to stable (which, if I understand things correctly, does get updated packages). -release packages have gone through an extensive period of testing with that release, so you have more confidence they will work. The up-to-date packages may not work, may not even be present on the FTP site, and in general are not suitable for users who just want a working system without having to fiddle with it. i.e. defaulting to the packages that came with the release is a conservative step that is appropriate for users who just want packages that work, and don't care about always having the latest versions. For the rest of you, you're going to be doing a lot more hands on admin anyway, so setting one env variable is not a heavy burden. Do the -release packages get updates for security (and only for security) reasons? I ask because I don't find any information about this on the FBSD webpages. No, we don't have the resources. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Philosophy of default pkg_add -r PACKAGESITE?
In the last episode (Sep 04), Kris Kennaway said: Gary Affonso wrote: I'm curious, why does pkg_add -r point to the release snapshot of ports by default? Is the idea that a release is well-tested and that any deviation from that (even security or bug-fix changes) is an unknown that new users need to be shielded against when grabbing packages with pkg_add -r? Seems to me it would be better to have pkg_add -r point to stable (which, if I understand things correctly, does get updated packages). -release packages have gone through an extensive period of testing with that release, so you have more confidence they will work. The up-to-date packages may not work, may not even be present on the FTP site, and in general are not suitable for users who just want a working system without having to fiddle with it. i.e. defaulting to the packages that came with the release is a conservative step that is appropriate for users who just want packages that work, and don't care about always having the latest versions. For the rest of you, you're going to be doing a lot more hands on admin anyway, so setting one env variable is not a heavy burden. Also, packages from the -stable directory may have different/conflicting dependencies compared to existing packages on your system. Imagine installing 6.2 before the x.org-7 update, then trying to pkg_add -r a package from the -stable directory that depends on an xorg-7 feature. pkg_add just isn't smart enough to realize that you really need to upgrade all of X, and will probably fail the install at some point. Ideally one would install 6.2 from a CD, select the packages they initially want, then pull an updated /usr/ports tree and update their system from that using their favorite tools from the ports/port-mgmt directory. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Philosophy of default pkg_add -r PACKAGESITE?
On Tuesday 04 September 2007 16:40:27 Dan Nelson wrote: Also, packages from the -stable directory may have different/conflicting dependencies compared to existing packages on your system. Imagine installing 6.2 before the x.org-7 update, then trying to pkg_add -r a package from the -stable directory that depends on an xorg-7 feature. pkg_add just isn't smart enough to realize that you really need to upgrade all of X, and will probably fail the install at some point. The same applies to a 6.2-STABLE before x.org-7 update, no difference there. It's not about port dependencies, it's about base-system dependencies. It doesn't happen often that within a minor release update a library gets a version bump, but binary incompatibilities may still occur. For -RELEASE you are expected to upgrade from source. Typical behavior being that ports only get upgraded when portaudit reports them unsafe. -- Mel People using reply to all on lists, must think I need 2 copies. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pkg_add question
Over the weekend in trying to build xorg and kde from packages, none of the various options for the package tree seemed to work. Plus the meta port for kde was not available. If one goes to /pub/FreeBSD/ports/i386/packages-6-stable/kde (1) /pub/FreeBSD/ports/i386/packages-6.2-release/kde (2) there does not seems to be a kde meta port in (1). In (2) there is: kde-3.5.4.tbz - ../All/kde-3.5.4.tbz In general all packages seem to be a symlink to ../All/.. I had assumed this was the same directory and there was really one instance of the ports tree per major release of FreeBSD. so I never (knowingly) distinguished between -n-stable and -n.x-release. Is there a difference. Is there a working kde package in -6-stable? Thanks _ Douglas Denault http://www.safeport.com [EMAIL PROTECTED] Voice: 301-469-8766 Fax: 301-469-0601 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add question
[EMAIL PROTECTED] wrote: Over the weekend in trying to build xorg and kde from packages, none of the various options for the package tree seemed to work. Plus the meta port for kde was not available. If one goes to /pub/FreeBSD/ports/i386/packages-6-stable/kde (1) /pub/FreeBSD/ports/i386/packages-6.2-release/kde (2) there does not seems to be a kde meta port in (1). In (2) there is: kde-3.5.4.tbz - ../All/kde-3.5.4.tbz In general all packages seem to be a symlink to ../All/.. I had assumed this was the same directory and there was really one instance of the ports tree per major release of FreeBSD. so I never (knowingly) distinguished between -n-stable and -n.x-release. Is there a difference. Is there a working kde package in -6-stable? I'm using 6.2-release and there is the x11/kde3 meta port. Bahman PS: I've upgraded ports on Aug 14th; but logically the kde3 metaport should have had been there before the upgrade. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add question
On Tuesday 04 September 2007 18:32:15 [EMAIL PROTECTED] wrote: Over the weekend in trying to build xorg and kde from packages, none of the various options for the package tree seemed to work. Plus the meta port for kde was not available. If one goes to /pub/FreeBSD/ports/i386/packages-6-stable/kde (1) /pub/FreeBSD/ports/i386/packages-6.2-release/kde (2) there does not seems to be a kde meta port in (1). In (2) there is: kde-3.5.4.tbz - ../All/kde-3.5.4.tbz In general all packages seem to be a symlink to ../All/.. That's how packages are stored. The real package in All/ and symlinks in the various categories that the package belongs to, plus a symlink in Latest, indicating the latest version of said package. There are packages for kde-3.5.7 in 6-stable. Kde-3.5.7 is the present version in ports. What exactly did you try and how did it fail? -- Mel People using reply to all on lists, must think I need 2 copies. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add question
[EMAIL PROTECTED] wrote: On Tue, 4 Sep 2007, Bahman M. wrote: [EMAIL PROTECTED] wrote: Over the weekend in trying to build xorg and kde from packages, none of the various options for the package tree seemed to work. Plus the meta port for kde was not available. If one goes to /pub/FreeBSD/ports/i386/packages-6-stable/kde (1) /pub/FreeBSD/ports/i386/packages-6.2-release/kde (2) there does not seems to be a kde meta port in (1). In (2) there is: kde-3.5.4.tbz - ../All/kde-3.5.4.tbz In general all packages seem to be a symlink to ../All/.. I had assumed this was the same directory and there was really one instance of the ports tree per major release of FreeBSD. so I never (knowingly) distinguished between -n-stable and -n.x-release. Is there a difference. Is there a working kde package in -6-stable? I'm using 6.2-release and there is the x11/kde3 meta port. Bahman PS: I've upgraded ports on Aug 14th; but logically the kde3 metaport should have had been there before the upgrade. Thanks. Using ftp.safeport.com via a browser does indeed show .../packages-6.2-release/Latest/kde.tbz -- ../All/kde-3.5.4.tbz .../packages-6-stable/Latest/ does not have a kde.tbz .../packages-6-stable/All/ has kde-3.5.7.tbz Under these conditions, should I use PACKAGESITE = ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-6-/Latest/ ?? After setting PACKAGESITE running 'pkg_add -rvn kde' gives you the idea as it does not actually install a package, just reports the steps that would be taken if it was (quote from 'man 1 pkg_add'). HTH, Bahman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Philosophy of default pkg_add -r PACKAGESITE?
Here's one thing I've never quite understood about FreeBSD and I was hoping somebody could provide some enlightenment... I've got 6.2-release installed. By default (as you all probably know) pkg_add -r fetches packages from the release directory: ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release Now here's where it gets weird for me. If I understand the FreeBSD release methodology , that release is a frozen-in-time snapshot of a particular release (6.2 in my case) that gets no future updates. As we move farther and farther beyond a particular releases debut-date, that snapshot (and the packages it contains) gets increasingly stale. Do I have that right? If I do, it seems to me that the absolute first thing I should do after installing a release version would be to change where pkg_add -r is sourcing packages from. Either to current if I like to live on the edge or stable if I want to be a more conservative. I'm curious, why does pkg_add -r point to the release snapshot of ports by default? Is the idea that a release is well-tested and that any deviation from that (even security or bug-fix changes) is an unknown that new users need to be shielded against when grabbing packages with pkg_add -r? Seems to me it would be better to have pkg_add -r point to stable (which, if I understand things correctly, does get updated packages). And how does one go about *permanently* changing the pkg_add -r target. You can set the PACKAGESITE variable in the shell which will work on a user-by-user basis but isn't there a way to centrally change PACKAGESITE without relying on each user to have properly config'd their individual shells? I know a lot of thought has gone into the current system so I'm thinking that these questions are due to the fact that I'm just not grok'ing something important about the philosophy behind all this. Any help would be greatly appreciated. - Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pkg_add -r from 6-stable instead of 6.2-release
occasionally I feel like a total idiot asking a really dumb question, but I'm pretty much out of ideas and I've wasted hours messing with PKGROOT, changing the 'options' in sysinstall, and I can't seem to get things I can see right in 6-stable. I'd just fetch it myself, but it has about 100 dependancies... Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add -r from 6-stable instead of 6.2-release
On Tue, Aug 07, 2007 at 10:15:11AM -0700, Steve Franks wrote: occasionally I feel like a total idiot asking a really dumb question, but I'm pretty much out of ideas and I've wasted hours messing with PKGROOT, changing the 'options' in sysinstall, and I can't seem to get things I can see right in 6-stable. I'd just fetch it myself, but it has about 100 dependancies... See pkg_add(1). PACKAGESITE is probably what you want. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add -r from 6-stable instead of 6.2-release
On Tuesday 07 August 2007 12:39:36 Kris Kennaway wrote: On Tue, Aug 07, 2007 at 10:15:11AM -0700, Steve Franks wrote: occasionally I feel like a total idiot asking a really dumb question, but I'm pretty much out of ideas and I've wasted hours messing with PKGROOT, changing the 'options' in sysinstall, and I can't seem to get things I can see right in 6-stable. I'd just fetch it myself, but it has about 100 dependancies... See pkg_add(1). PACKAGESITE is probably what you want. Kris ive used PACKAGESITE recently as well, i used it like this: setenv PACKAGESITE ftp://ftp.ussg.iu.edu/pub/FreeBSD/ports/i386/packages-6-stable/Latest/ you have to specify it as far as the directory you want it to pull the files from. ../All/ would also be acceptable. now that im about to click send, i actually cant recall if i specified the trailing slash or not... so be prepared to reset and try again. good luck, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add -r from 6-stable instead of 6.2-release
I think I was missing the '/latest'. Thanks for the example. Sometimes that's key. Steve On 8/7/07, Jonathan Horne [EMAIL PROTECTED] wrote: On Tuesday 07 August 2007 12:39:36 Kris Kennaway wrote: On Tue, Aug 07, 2007 at 10:15:11AM -0700, Steve Franks wrote: occasionally I feel like a total idiot asking a really dumb question, but I'm pretty much out of ideas and I've wasted hours messing with PKGROOT, changing the 'options' in sysinstall, and I can't seem to get things I can see right in 6-stable. I'd just fetch it myself, but it has about 100 dependancies... See pkg_add(1). PACKAGESITE is probably what you want. Kris ive used PACKAGESITE recently as well, i used it like this: setenv PACKAGESITE ftp://ftp.ussg.iu.edu/pub/FreeBSD/ports/i386/packages-6-stable/Latest/ you have to specify it as far as the directory you want it to pull the files from. ../All/ would also be acceptable. now that im about to click send, i actually cant recall if i specified the trailing slash or not... so be prepared to reset and try again. good luck, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Steve Franks, KE7BTE Staff Engineer La Palma Devices, LLC http://www.lapalmadevices.com (520) 312-0089 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
difficulty using pkg_add on 6.0 system
Greetings, Sorry if this has been asked before, I did search the archives but couldn't find the information I need. I have a 6.0 system that was installed with the minimum of optional packages. I want to install cvsup so that I can update my ports tree. Trying to use pkg_add to install cvsup, I get the following message: Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/wget.tbz: File unavailable Looking at ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/ I see that there is no longer a directory for 6.0-release. What do I need to do to get an updated ports tree? Should I set PACKAGESITE so that pkg_add can work? And if so, what value should I give it? Or do I need to go in another direction? Thanks in advance. -- Thank you, Lewis Kapell Computer Operations Seton Home Study School ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: difficulty using pkg_add on 6.0 system
On Thu, 24 May 2007 15:34:25 -0400 Lewis Kapell [EMAIL PROTECTED] wrote: Greetings, Sorry if this has been asked before, I did search the archives but couldn't find the information I need. I have a 6.0 system that was installed with the minimum of optional packages. I want to install cvsup so that I can update my ports tree. Trying to use pkg_add to install cvsup, I get the following message: ... Note that there is a utility called csup in the base system, which is a drop-in replacement for the no-gui version of cvsup. It's a rewrite in C to avoid cvsup's modula2 compiler dependency. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: difficulty using pkg_add on 6.0 system
It (csup) is only included in the base system starting with 6.2. It's not present on my system. Thank you, Lewis Kapell Computer Operations Seton Home Study School RW wrote: Note that there is a utility called csup in the base system, which is a drop-in replacement for the no-gui version of cvsup. It's a rewrite in C to avoid cvsup's modula2 compiler dependency. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: difficulty using pkg_add on 6.0 system
On Thu, 24 May 2007 16:12:17 -0400 Lewis Kapell [EMAIL PROTECTED] wrote: It (csup) is only included in the base system starting with 6.2. It's not present on my system. You will have portsnap though. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: difficulty using pkg_add on 6.0 system
On Thu, May 24, 2007 at 03:34:25PM -0400, Lewis Kapell wrote: Greetings, Sorry if this has been asked before, I did search the archives but couldn't find the information I need. I have a 6.0 system that was installed with the minimum of optional packages. I want to install cvsup so that I can update my ports tree. Trying to use pkg_add to install cvsup, I get the following message: Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/wget.tbz: File unavailable Looking at ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/ I see that there is no longer a directory for 6.0-release. What do I need to do to get an updated ports tree? Should I set PACKAGESITE so that pkg_add can work? And if so, what value should I give it? Or do I need to go in another direction? Yes, you need to set PACKAGESITE. Look for a mirror site that still carries the old 6.0 packages (maybe ftp-archive). Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Help with pkg_add
Figured it out. need -r option in the command pgk_add -r ytree Sorry -Original Message- From: Bob [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 1:34 PM To: [EMAIL PROTECTED] ORG Subject: Help with pkg_add Trying to execute pkg_add ytree and get this message under Freebsd 6.2 Can't stat package file 'ytree' It does not even try to connect to server first. What is this cryptic message trying to tell me ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Help with pkg_add
Trying to execute pkg_add ytree and get this message under Freebsd 6.2 Can't stat package file 'ytree' It does not even try to connect to server first. What is this cryptic message trying to tell me ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cannot pkg_add linux-flashplugin7
On March 31, 2007, [EMAIL PROTECTED] wrote: I have tried to a couple of times to install a Micromedia-alike flash plugin for FreeBSD but failed. So far I have successfully installed the linux-pluginwrapper as a requirement at /usr/ports/www/linuxpluginwrapper. So I tried /usr/ports/www/linux-flashplugin7 and issued the command pkg-add -r linux-flashplugin7. The system attempted to download the file from ftp site but came back saying the file linux-flashplugin7 did not exist. Any idea what I may be doing wrong? Hi. I think it would be correct to install it using the port. Sometimes the system cannot download the file; namely I had the same problem with this port. You can download the file manually, and then replace the temporary file created in /usr/ports/distfiles/flashplugin7xxx/... with the correct one. Then go to /usr/ports/www/linux-flashplugin7 and issue make install clean again. The system checks first whether the file is in the distfiles; if it is not the case, it will fetch it. Andriy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cannot pkg_add linux-flashplugin7
On 3/31/07, Joseph Marah [EMAIL PROTECTED] wrote: I have tried to a couple of times to install a Micromedia-alike flash plugin for FreeBSD but failed. So far I have successfully installed the linux-pluginwrapper as a requirement at /usr/ports/www/linuxpluginwrapper. So I tried /usr/ports/www/linux-flashplugin7 and issued the command pkg-add -r linux-flashplugin7. The system attempted to download the file from ftp site but came back saying the file linux-flashplugin7 did not exist. Any idea what I may be doing wrong? [...] You are confusing between the ports system, and the pre-compiled packages available on FreeBSD. In a nutshell, ports allow you to download, build and install applications from source, while packages are pre-compiled binaries for your particular platform. To add it through ports, you need to do (as root): # cd /usr/ports/www/linux-flashplugin7 # make install clean Reading the relevant section (6.2.4) of the handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html) will help. Best, Amarendra ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cannot pkg_add linux-flashplugin7
Hi, I have tried to a couple of times to install a Micromedia-alike flash plugin for FreeBSD but failed. So far I have successfully installed the linux-pluginwrapper as a requirement at /usr/ports/www/linuxpluginwrapper. So I tried /usr/ports/www/linux-flashplugin7 and issued the command pkg-add -r linux-flashplugin7. The system attempted to download the file from ftp site but came back saying the file linux-flashplugin7 did not exist. Any idea what I may be doing wrong? The answer that you receive is just because it doesn't exist it like a package on the ftp server that your are fetching from. Try to install it via ports way, typing make install clean on /usr/ports/www/linux-flashplugin7, as described in the manual http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html Hope this help. __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cannot pkg_add linux-flashplugin7
Hi Joseba, you are right the file does not exist. I tried the port way but got the same. Did some searching in -FreeBSD ports and found out that the file /linux-flashplugin7 has been updated to /linux-flashplugin9. This one worked fine as a port. Joseba Sanchez [EMAIL PROTECTED] wrote: Hi, I have tried to a couple of times to install a Micromedia-alike flash plugin for FreeBSD but failed. So far I have successfully installed the linux-pluginwrapper as a requirement at /usr/ports/www/linuxpluginwrapper. So I tried /usr/ports/www/linux-flashplugin7 and issued the command pkg-add -r linux-flashplugin7. The system attempted to download the file from ftp site but came back saying the file linux-flashplugin7 did not exist. Any idea what I may be doing wrong? The answer that you receive is just because it doesn't exist it like a package on the ftp server that your are fetching from. Try to install it via ports way, typing make install clean on /usr/ports/www/linux-flashplugin7, as described in the manual http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html Hope this help. __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Cannot pkg_add linux-flashplugin7
I have tried to a couple of times to install a Micromedia-alike flash plugin for FreeBSD but failed. So far I have successfully installed the linux-pluginwrapper as a requirement at /usr/ports/www/linuxpluginwrapper. So I tried /usr/ports/www/linux-flashplugin7 and issued the command pkg-add -r linux-flashplugin7. The system attempted to download the file from ftp site but came back saying the file linux-flashplugin7 did not exist. Any idea what I may be doing wrong? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fwd: IPF (ftp - pkg_add) help requested
On Fri, Mar 02, 2007 at 09:12:31AM -0500, Don Munyak wrote: How do I set|view env for root?..., specifically FTP_PASSIVE_MODE=YES See su(1), specifically the -l option. See the man page for whatever shell you run as root. OT... Kelley, btw...Baxter is cool :) I had a Pekingese once. For Halloween, I shaved off all her hair except for a 2 mohawk head-2-tail. I'll have to find the picture to send you some day. Yeah, he's a good pup, my daughter dressed him up for the superbowl. I bet your peek wasn't real happy with you. g -- Kelly D. Grills [EMAIL PROTECTED] pgpnMiIhhf1x9.pgp Description: PGP signature
Re: Fwd: IPF (ftp - pkg_add) help requested
On 3/1/07, Kelly D. Grills [EMAIL PROTECTED] wrote: On Thu, Mar 01, 2007 at 04:10:11PM -0500, Don Munyak wrote: As I hinted at in my original response, If you'd rather keep your firewall rules tighter, pkg_add(1) says: Note: If you wish to use passive mode ftp in such transfers, set the variable FTP_PASSIVE_MODE to some value in your environment. ahh... now I see what your saying. I have my server setup to disallow root login from console. I login as user, then su to root. When I run # printenv |sort, This dispalys the env varibale for me, not root. How do I set|view env for root?..., specifically FTP_PASSIVE_MODE=YES -- OT... Kelley, btw...Baxter is cool :) I had a Pekingese once. For Halloween, I shaved off all her hair except for a 2 mohawk head-2-tail. I'll have to find the picture to send you some day. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
IPF (ftp - pkg_add) help requested
I am building a FreeBSD box to function as a FAMP server (LAMP) and hopefully replace our existing mail server. I am having an issue with IPF that I can't seem to figure out. *** When IPF is enabled, I can't run # pkg_add -r package name. {...snip from local console..} p0069# pkg_add -rv bash looking up ftp.freebsd.org connecting to ftp.freebsd.org:21 setting passive mode opening data connection Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/bash.tbz: Network is unreachable pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/bash.tbz' by URL pkg_add: 1 package addition's) failed {...end-snip..} *** When I disable ipf -D, all works fine. IPF was compiled in the kernel when I did a buildworld. p0069# uname -a FreeBSD p0069.bm.local 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #0: Thu Feb 8 13:55:26 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WEBSERVER i386 p0069# When I issue ipfstat -ho, after pkg_add -r, the following lines increment - pass out quick on em0 proto tcp from any to any port = 21 flags S keep state - pass out quick on em0 proto udp from any to any port = 53 keep state - block out log first quick on em0 all # -- # /etc/ipf.rules # logged to /var/log/firewall.log # 02/28/2007 # -- # -- # EGRESS filtering # -- # No restriction on Loopback Adapter pass in quick on lo0 all pass out quick on lo0 all # DHCP Bootp # pass out quick on em0 proto udp from any to any port = 67 keep state # pass out quick on em0 proto udp from any to any port = 68 keep state # ICMP pass out quick on em0 proto icmp from any to any keep state # Allow out http pass out quick on em0 proto tcp from any to any port = 80 flags S keep state pass out quick on em0 proto tcp from any to any port = 443 flags S keep state # Allow ftp out pass out quick on em0 proto tcp from any to any port = 20 flags S keep state pass out quick on em0 proto tcp from any to any port = 21 flags S keep state # Allow mail out pass out quick on em0 proto tcp from any to any port = 110 flags S keep state pass out quick on em0 proto tcp from any to any port = 143 flags S keep state pass out quick on em0 proto tcp from any to any port = 25 flags S keep state # Allow SSH Out pass out quick on em0 proto tcp from any to any port = 22 flags S keep state # Allow DNS pass out quick on em0 proto udp from any to any port = 53 keep state pass out quick on em0 proto tcp from any to any port = 53 flags S keep state # Allow CVSUP pass out quick on em0 proto tcp from any to any port = 5999 flags S keep state # Keeping time pass out quick on em0 proto tcp from any to any port = 37 flags S keep state pass out quick on em0 proto tcp from any to any port = 123 flags S keep state # Allow whois pass out quick on em0 proto tcp from any to any port = 43 flags S keep state # Razor Spamassasin # more later # Block and Log the first occurance of everything else block out log first quick on em0 all # - # INGRESS Filtering # # Block all inbound traffic from non-routable or reserved networks # block in quick on em0 from 192.168.0.0/16 to any block in quick on em0 from 172.16.0.0/12 to any block in quick on em0 from 10.0.0.0/8 to any block in quick on em0 from 127.0.0.0/8 to any block in quick on em0 from 0.0.0.0/8 to any block in quick on em0 from 169.254.0.0/16 to any # block in quick on em0 from 192.0.2.0/24 to any block in quick on em0 from 204.153.64.0/23 to any block in quick on em0 from 224.0.0.0/3 to any # Block in Nasties # stuff I don't want logged block in quick on em0 proto icmp all icmp-type 8 block in quick on em0 all with frags block in quick on em0 all with ipopts block in quick on em0 all with short # block return-rst in quick on em0 proto tcp all flags FUP # block return-rst in quick on em0 proto tcp from any to any # block return-icmp-as-digest(port-unr) in quick on em0 proto udp from any to any # Block all Netbios server. 137=name, 138=datagram, 139=session block in log first quick on em0 proto tcp/udp from any to any port = 137 block in log first quick on em0 proto tcp/udp from any to any port = 138 block in log first quick on em0 proto tcp/udp from any to any port = 139 block in log first quick on em0 proto tcp/udp from any to any port = 81 # Allow in http/https pass in quick on em0 proto tcp from any to any port = 80 flags S keep state pass in quick on em0 proto tcp from any to any port = 443 flags S keep state # allow incoming SSH pass in quick on em0 proto tcp from any to any port = 22 flags S keep state # SMTP/POP/IMAP pass in quick on em0 proto tcp from any to any port = 25 flags S keep state pass in quick on em0 proto tcp from any to any port = 110 flags S keep state pass in quick on em0 proto tcp from any to any port = 143 flags S keep state # Anit-Virus # more later # All the rest block in log first quick on em0 all # - EOF
Re: IPF (ftp - pkg_add) help requested
I'd start by upgrading to 6.2 Don Munyak wrote: I am building a FreeBSD box to function as a FAMP server (LAMP) and hopefully replace our existing mail server. I am having an issue with IPF that I can't seem to figure out. *** When IPF is enabled, I can't run # pkg_add -r package name. p0069# uname -a FreeBSD p0069.bm.local 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #0: Thu Feb 8 13:55:26 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WEBSERVER i386 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Fwd: IPF (ftp - pkg_add) help requested
Apart from up dating to newer version, I don't see how upgrading to 6.2 will make a difference. Anyway, thanks for taking the time to reply. However, the solution is as follows. Incidentally, this had nothing to do with pkg_add And everything to do with FTP and IPFILTER. === Diagnosis... {IPMON results} # ipmon 01/03/2007 15:03:39.112348 em0 @0:17 b 192.168.222.69,63507 - 204.152.184.73,63471 PR tcp len 20 48 -S OUT 01/03/2007 15:04:09.128610 em0 @0:17 b 192.168.222.69,57187 - 62.243.72.50,59250 PR tcp len 20 48 -S OUT 01/03/2007 15:04:17.756186 em0 @0:17 b 192.168.222.69,59469 - 204.152.184.73,55984 PR tcp len 20 48 -S OUT 01/03/2007 15:04:23.832928 em0 @0:17 b 192.168.222.69,62647 - 62.243.72.50,58387 PR tcp len 20 48 -S OUT My server was opening an additional session using ports 1024, which I was not initially allowing. ipf was blocking outbound due to this rule. This is a known issue with ftp client sessions using active mode when behind a firewall. # Block and Log the first occurance of everything else block out log first quick on em0 all Solution http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipf.html section 26.5.21.1 IPNAT Rules {or} section 26.5.21.2 IPNAT FTP Filter Rules I chose 26.5.21.2 for simplicity. This proabably isn't a major issue for me, since the server will be located behind a border (LAN) firewall. Basically changed: # Allow ftp out pass out quick on em0 proto tcp from any to any port = 20 flags S keep state pass out quick on em0 proto tcp from any to any port = 21 flags S keep state { to...} # Allow ftp out pass out quick on em0 proto tcp from any to any port = 21 flags S keep state pass out quick on em0 proto tcp from any to any port 1024 flags S keep state { and added } #Allow Active mode data channel from ftp server pass in quick on em0 proto tcp from any to any port = 20 flags S keep state For good reading {Official IPF home page} http://coombs.anu.edu.au/~avalon/ip-filter.html Don ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fwd: IPF (ftp - pkg_add) help requested
Ahh, totally makes sense. Sorry for the misguided reply, it was late and I thought there had been kernel changes with ipf in 6.2 but in fact that was ipfw. Glad to hear you figured this out! - Chris Don Munyak wrote: Apart from up dating to newer version, I don't see how upgrading to 6.2 will make a difference. Anyway, thanks for taking the time to reply. However, the solution is as follows. Incidentally, this had nothing to do with pkg_add And everything to do with FTP and IPFILTER. === Diagnosis... {IPMON results} # ipmon 01/03/2007 15:03:39.112348 em0 @0:17 b 192.168.222.69,63507 - 204.152.184.73,63471 PR tcp len 20 48 -S OUT 01/03/2007 15:04:09.128610 em0 @0:17 b 192.168.222.69,57187 - 62.243.72.50,59250 PR tcp len 20 48 -S OUT 01/03/2007 15:04:17.756186 em0 @0:17 b 192.168.222.69,59469 - 204.152.184.73,55984 PR tcp len 20 48 -S OUT 01/03/2007 15:04:23.832928 em0 @0:17 b 192.168.222.69,62647 - 62.243.72.50,58387 PR tcp len 20 48 -S OUT My server was opening an additional session using ports 1024, which I was not initially allowing. ipf was blocking outbound due to this rule. This is a known issue with ftp client sessions using active mode when behind a firewall. # Block and Log the first occurance of everything else block out log first quick on em0 all Solution http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipf.html section 26.5.21.1 IPNAT Rules {or} section 26.5.21.2 IPNAT FTP Filter Rules I chose 26.5.21.2 for simplicity. This proabably isn't a major issue for me, since the server will be located behind a border (LAN) firewall. Basically changed: # Allow ftp out pass out quick on em0 proto tcp from any to any port = 20 flags S keep state pass out quick on em0 proto tcp from any to any port = 21 flags S keep state { to...} # Allow ftp out pass out quick on em0 proto tcp from any to any port = 21 flags S keep state pass out quick on em0 proto tcp from any to any port 1024 flags S keep state { and added } #Allow Active mode data channel from ftp server pass in quick on em0 proto tcp from any to any port = 20 flags S keep state For good reading {Official IPF home page} http://coombs.anu.edu.au/~avalon/ip-filter.html Don ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fwd: IPF (ftp - pkg_add) help requested
On Thu, Mar 01, 2007 at 04:10:11PM -0500, Don Munyak wrote: My server was opening an additional session using ports 1024, which I was not initially allowing. ipf was blocking outbound due to this rule. This is a known issue with ftp client sessions using active mode when behind a firewall. As I hinted at in my original response, If you'd rather keep your firewall rules tighter, pkg_add(1) says: Note: If you wish to use passive mode ftp in such transfers, set the variable FTP_PASSIVE_MODE to some value in your environment. Otherwise, the more standard ACTIVE mode may be used. If pkg_add consistently fails to fetch a package from a site known to work, it may be because you have a firewall that demands the usage of passive mode ftp. -- Kelly D. Grills [EMAIL PROTECTED] pgpzSYEkjLW0T.pgp Description: PGP signature
Re: pkg_add problems
there is no such package bash. there's only bash-someversionofbashport for example bash-3.1.16 get a look at tp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/ to see what version of bash is available On Tue, 27 Feb 2007, Don Munyak wrote: I am having trouble using pkg_add -r some package. I keep getting the following error. --- p0069# pkg_add -r bash Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/bash.tbz: Network is unreachable pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/bash.tbz' by URL p0069# - I don't know if this has anything to do with it, but - I have rebuilt the kernel successfully - p0069# uname -a FreeBSD p0069.bm.local 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #0: Thu Feb 8 13:55:26 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WEBSERVER i386 - And there is no ports tree installed.. ie /usr/ports does not exist. - I can ping ftp.freebsd.org - I can also ftpopen ftp.freebsd.org Any thoughts on trouble shooting this would be appreciated. Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add problems
On Wed, Feb 28, 2007 at 12:02:30PM +0100, Wojciech Puchar wrote: there is no such package bash. there's only bash-someversionofbashport Au contraire: [EMAIL PROTECTED]/ $ pkg_add -r bash Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/bash.tbz... Done. pkg_add: package 'bash-3.1.17' or its older version already installed [EMAIL PROTECTED]/ $ uname -v FreeBSD 6.2-RELEASE #0: Sun Jan 28 15:04:56 CST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SRV2 -- Kelly D. Grills [EMAIL PROTECTED] pgpn99V5gUFSo.pgp Description: PGP signature
Re: pkg_add problems
Thanks everyone. The issue seems to be related to IPF, which I am trying to sort out. Basically when ipf is enabled, the connectivity fails, although my pass out rule for ftp includes ports 20 21. With ipf -D disabled, no problems. I'll probably post to a new thread after I've tried some more first. Thanks again. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pkg_add problems
I am having trouble using pkg_add -r some package. I keep getting the following error. --- p0069# pkg_add -r bash Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/bash.tbz: Network is unreachable pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/bash.tbz' by URL p0069# - I don't know if this has anything to do with it, but - I have rebuilt the kernel successfully - p0069# uname -a FreeBSD p0069.bm.local 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #0: Thu Feb 8 13:55:26 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WEBSERVER i386 - And there is no ports tree installed.. ie /usr/ports does not exist. - I can ping ftp.freebsd.org - I can also ftpopen ftp.freebsd.org Any thoughts on trouble shooting this would be appreciated. Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add problems
Don Munyak wrote: I am having trouble using pkg_add -r some package. I keep getting the following error. --- p0069# pkg_add -r bash Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/bash.tbz: The file does or doesn't exist? (I've not checked, we'll leave it in your court) ;-) Network is unreachable Network troubleshooting...? pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/bash.tbz' by URL p0069# - I don't know if this has anything to do with it, but - I have rebuilt the kernel successfully - p0069# uname -a FreeBSD p0069.bm.local 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #0: Thu Feb 8 13:55:26 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WEBSERVER i386 - And there is no ports tree installed.. ie /usr/ports does not exist. - I can ping ftp.freebsd.org - I can also ftpopen ftp.freebsd.org So, some network troubleshooting is done. Can you actually download anything from the server, though? FTP runs on two channels, and needs to connect to a CONTROL port and a DATA port. Possible that CONTROL is open and DATA is blocked? Any thoughts on trouble shooting this would be appreciated. Thanks Those are mine. Good luck! Kevin Kinsey -- You may get an opportunity for advancement today. Watch it! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add problems
On Tue, Feb 27, 2007 at 02:26:30PM -0500, Don Munyak wrote: I am having trouble using pkg_add -r some package. I keep getting the following error. --- p0069# pkg_add -r bash Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/bash.tbz: Network is unreachable pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/bash.tbz' by URL p0069# - I don't know if this has anything to do with it, but - I have rebuilt the kernel successfully - p0069# uname -a FreeBSD p0069.bm.local 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #0: Thu Feb 8 13:55:26 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WEBSERVER i386 - And there is no ports tree installed.. ie /usr/ports does not exist. - I can ping ftp.freebsd.org - I can also ftpopen ftp.freebsd.org Any thoughts on trouble shooting this would be appreciated. Perhaps verbose output (-v argument) might yield a clue: pkg_add -rv some_pkg Are you behind a firewall? You might try using passive mode ftp. See pkg_add(1) -- Kelly D. Grills [EMAIL PROTECTED] pgpnYSzxg8GLO.pgp Description: PGP signature
RE: where are packeges after pkg_add -r zzz stored
Try pkg_add -K zzz It will store all packages in pkgdir if it is defined or in current dir as a default (quota from man pkg_add ;] ) Hope I helped, GregZX -Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd- [EMAIL PROTECTED] On Behalf Of Amer H. Alhabsi Sent: Wednesday, January 31, 2007 5:19 AM To: freebsd-questions@freebsd.org Subject: where are packeges after pkg_add -r zzz stored Hi, I have a slow Internet connection at home and a fast one in the office. I want to download a package and ALL dependencies from office PC then take them and install them at home. My question is where are the packages stored after being downloaded with pkg_add -r zzz. Thanks, Amer, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
where are packeges after pkg_add -r zzz stored
Hi, I have a slow Internet connection at home and a fast one in the office. I want to download a package and ALL dependencies from office PC then take them and install them at home. My question is where are the packages stored after being downloaded with pkg_add -r zzz. Thanks, Amer, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: where are packeges after pkg_add -r zzz stored
I have a slow Internet connection at home and a fast one in the office. I want to download a package and ALL dependencies from office PC then take them and install them at home. My question is where are the packages stored after being downloaded with pkg_add -r zzz. From man pkg_add: -K Keep any downloaded package in PKGDIR if it is defined or in cur- rent directory by default. Josh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add/delete questions
Mark Jayson Alvarez [EMAIL PROTECTED] writes: I have several questions: 1. If I install a particular package, its dependencies will be installed as well. Now if I remove it later using pkg_delete, only that package will be removed and not the dependencies. The reason I guess is because some other packages may be dependent on those dependencies as well. Is there a way to remove a particular package and all of its dependencies (given that no other package is dependent on those dependencies)? Is the pkg_cutleaves port what you're looking for? 2. Is it possible to tell pkg_add to just fetch the package and not install them? My goal is to use my Internet conn pkg_add(1) can't do that, but the ports makefiles have enough of the logic that putting that together should be quite practical. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add/delete questions
On Monday 23 October 2006 16:15, Lowell Gilbert wrote: Mark Jayson Alvarez [EMAIL PROTECTED] writes: I have several questions: 1. If I install a particular package, its dependencies will be installed as well. Now if I remove it later using pkg_delete, only that package will be removed and not the dependencies. The reason I guess is because some other packages may be dependent on those dependencies as well. Is there a way to remove a particular package and all of its dependencies (given that no other package is dependent on those dependencies)? Is the pkg_cutleaves port what you're looking for? If you build anything from ports, portmanager does a better job as it it takes account of build dependencies. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add/delete questions
RW wrote: On Monday 23 October 2006 16:15, Lowell Gilbert wrote: Mark Jayson Alvarez [EMAIL PROTECTED] writes: I have several questions: 1. If I install a particular package, its dependencies will be installed as well. Now if I remove it later using pkg_delete, only that package will be removed and not the dependencies. The reason I guess is because some other packages may be dependent on those dependencies as well. Is there a way to remove a particular package and all of its dependencies (given that no other package is dependent on those dependencies)? Is the pkg_cutleaves port what you're looking for? If you build anything from ports, portmanager does a better job as it it takes account of build dependencies. portmaster has an -s switch that will remove ports no longer needed by any other ports, so what you can do is say uninstall port A then run portmaster -s and it will pick up any ports that port A required but nothing else does and offer to remove them. it is an alternate to portmanager, so you will not need both. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add/delete questions
On Monday 23 October 2006 03:07, Jonathan Horne wrote: On Sunday 22 October 2006 20:52, Mark Jayson Alvarez wrote: Hi, I have several questions: 1. If I install a particular package, its dependencies will be installed as well. Now if I remove it later using pkg_delete, only that package will be removed and not the dependencies. The reason I guess is because some other packages may be dependent on those dependencies as well. Is there a way to remove a particular package and all of its dependencies (given that no other package is dependent on those dependencies)? 2. Is it possible to tell pkg_add to just fetch the package and not install them? My goal is to use my Internet conn this query would be easily answered by 'man pkg_add' and 'man pkg_delete'. ill hint you that you are looking for -r and a -n. Unfortunately the meaning of -r is inverted in the system package tools with respect to portupgrade and its associated package tools, so pkg_delete -r isn't much use. Portupgrade's pkg_deinstall does support this. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add/delete questions
On Monday 23 October 2006 20:48, Eric wrote: RW wrote: On Monday 23 October 2006 16:15, Lowell Gilbert wrote: Mark Jayson Alvarez [EMAIL PROTECTED] writes: I have several questions: 1. If I install a particular package, its dependencies will be installed as well. Now if I remove it later using pkg_delete, only that package will be removed and not the dependencies. The reason I guess is because some other packages may be dependent on those dependencies as well. Is there a way to remove a particular package and all of its dependencies (given that no other package is dependent on those dependencies)? Is the pkg_cutleaves port what you're looking for? If you build anything from ports, portmanager does a better job as it it takes account of build dependencies. portmaster has an -s switch that will remove ports no longer needed by any other ports, so what you can do is say uninstall port A then run portmaster -s and it will pick up any ports that port A required but nothing else does and offer to remove them. it is an alternate to portmanager, so you will not need both. As I said: portmanager does a better job [than pkg_cutleaves] as it it takes account of build dependencies. Portmaster also only works with runtime dependencies. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pkg_add/delete questions
Hi, I have several questions: 1. If I install a particular package, its dependencies will be installed as well. Now if I remove it later using pkg_delete, only that package will be removed and not the dependencies. The reason I guess is because some other packages may be dependent on those dependencies as well. Is there a way to remove a particular package and all of its dependencies (given that no other package is dependent on those dependencies)? 2. Is it possible to tell pkg_add to just fetch the package and not install them? My goal is to use my Internet conn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add/delete questions
On Sunday 22 October 2006 20:52, Mark Jayson Alvarez wrote: Hi, I have several questions: 1. If I install a particular package, its dependencies will be installed as well. Now if I remove it later using pkg_delete, only that package will be removed and not the dependencies. The reason I guess is because some other packages may be dependent on those dependencies as well. Is there a way to remove a particular package and all of its dependencies (given that no other package is dependent on those dependencies)? 2. Is it possible to tell pkg_add to just fetch the package and not install them? My goal is to use my Internet conn this query would be easily answered by 'man pkg_add' and 'man pkg_delete'. ill hint you that you are looking for -r and a -n. cheers, jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pkg_add question
Generally -- is it OK to do a 'pkg_add' from 'packages-6-stable' to a 5.4 system? Specifically, I think I need to update 'fetchmail.' What I've read *seems* to indicate it's OK, but... Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add question
V.I.Victor wrote: Generally -- is it OK to do a 'pkg_add' from 'packages-6-stable' to a 5.4 system? Specifically, I think I need to update 'fetchmail.' What I've read *seems* to indicate it's OK, but... Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Well I guess it works, but why not just cvsup your ports ( or use portsnap ) and use portupgrade to update your ports ? In general that would be the best Idea -- -Frank Staals ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add question
V.I.Victor wrote: Generally -- is it OK to do a 'pkg_add' from 'packages-6-stable' to a 5.4 system? Specifically, I think I need to update 'fetchmail.' What I've read *seems* to indicate it's OK, but... Well I guess it works, but why not just cvsup your ports ( or use portsnap ) and use portupgrade to update your ports ? In general that would be the best Idea -- -Frank Staals This is a small machine that is only used as an email front-end. When I built it I didn't install 'ports' -- sorry, I should have mentioned that in the original post. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add question
Am 09.08.2006 um 15:43 schrieb V.I.Victor: Generally -- is it OK to do a 'pkg_add' from 'packages-6-stable' to a 5.4 system? No. You might get away with putting a 6-stable package on a 6.1 system, but only if you're lucky. Packages compiled for newer releases will never* work on older releases. You need to build from ports. Stefan * There's trivial software that might work, but there is absolutly no guaranty. -- Stefan Bethke [EMAIL PROTECTED] Fon +49 170 346 0140 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add question
Am 09.08.2006 um 16:02 schrieb V.I.Victor: This is a small machine that is only used as an email front-end. When I built it I didn't install 'ports' -- sorry, I should have mentioned that in the original post. Install portsnap from your 5.4 CD, then use it to download the current version of the ports tree. If you haven't done so already, install sysutils/portupgrade; that makes it easy to upgrade the ports that are installed on your system. Stefan -- Stefan Bethke [EMAIL PROTECTED] Fon +49 170 346 0140 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add question
V.I.Victor wrote: Generally -- is it OK to do a 'pkg_add' from 'packages-6-stable' to a 5.4 system? Specifically, I think I need to update 'fetchmail.' What I've read *seems* to indicate it's OK, but... Not a good idea. 6.x packages are going to want libc.so.6 and other 6.x shlibs, which won't be available on your 5.5 box. You can, in principle, install packages from any of the 5.x releases or from 5.x-STABLE on a 5.x box, and modulo problems sorting out dependencies, everything should be able to work. However, you'll find it's a lot less effort in the end to just grab the latest ports tree using cvsup or portsnap and update that way. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: pkg_add question
On Wed, Aug 09, 2006 at 01:43:10PM +, V.I.Victor wrote: Generally -- is it OK to do a 'pkg_add' from 'packages-6-stable' to a 5.4 system? Absolutely not. Specifically, I think I need to update 'fetchmail.' What's wrong with using packages-5-stable? :-) What I've read *seems* to indicate it's OK, but... Where did you read this, so we can try to correct the bogus advice? Kris pgpvemMjDxsKZ.pgp Description: PGP signature
Re: pkg_add question
-Original Message- From: Kris Kennaway [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 9, 2006 03:02 PM On Wed, Aug 09, 2006 at 01:43:10PM +, V.I.Victor wrote: Generally -- is it OK to do a 'pkg_add' from 'packages-6-stable' to a 5.4 system? Absolutely not. Specifically, I think I need to update 'fetchmail.' What's wrong with using packages-5-stable? :-) Probably nothing! I (wrongly) thought that *all* 5.x package/paths had the same version of 'fetchmail' and when I found the new 'fetchmail' in 6.x I figured that was where I had to get it. I'll try a 'pkg_add' from packages-5-stable as soon as I can stop the system for a while. Thanks for the pointer! Although I should probably have installed ports during the original install -- I didn't. Now, it seems a long way to go just to see if the newest version of 'fetchmail' fixes its problem (I'm not confident it will) What I've read *seems* to indicate it's OK, but... Where did you read this, so we can try to correct the bogus advice? Hard to say. I did 6-8 Google searches with various keys trying to find some specifics for adding packages between FreeBSD versions. The *seems*...OK I mentioned may have been in relation to simple programs. I don't know. Since I was unable to find anything solid, I asked here! Again -- Thank-you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add is driving me NUTS!
Remington L schrieb: I have two servers, exact same hardware, exact same version of FreeBSD, in this case 4.10. When I run pkg_add blah.tbz on one machine, it takes between 2-8 hours, on the other 8-10 minutes. These machines are quad-Intel 2.8Xeons, with 4GB of memory. Ive done everything from running make world, to md5ing pkg_add, bzip2, and tar, there identical. I noticed on the one thing, on the machine that takes forever, bzip2 is only using 1-3% load, while the other, which does work, takes 100%. I have SMP compiled into the kernel, well actually, there both using the exact same kernconf. Anyone have ideas?? I would try to encircle the problem. Try to compress and decompress idendical random data with bzip2 on both machines. Try also the GENERIC kernel without SMP. At a glance I would assume that there is a hardware fault. Björn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add is driving me NUTS!
On Thursday 22 June 2006 10:22, Björn König wrote: Remington L schrieb: I have two servers, exact same hardware, exact same version of FreeBSD, in this case 4.10. When I run pkg_add blah.tbz on one machine, it takes between 2-8 hours, on the other 8-10 minutes. These machines are quad-Intel 2.8Xeons, with 4GB of memory. Ive done everything from running make world, to md5ing pkg_add, bzip2, and tar, there identical. I noticed on the one thing, on the machine that takes forever, bzip2 is only using 1-3% load, while the other, which does work, takes 100%. I have SMP compiled into the kernel, well actually, there both using the exact same kernconf. Anyone have ideas?? I would try to encircle the problem. Try to compress and decompress idendical random data with bzip2 on both machines. Try also the GENERIC kernel without SMP. At a glance I would assume that there is a hardware fault. Yes that, or perhaps medium problems? anything interesting from dmesg(8)? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add is driving me NUTS!
On 6/22/06, Nikos Vassiliadis [EMAIL PROTECTED] wrote: On Thursday 22 June 2006 10:22, Björn König wrote: Remington L schrieb: I have two servers, exact same hardware, exact same version of FreeBSD, in this case 4.10. When I run pkg_add blah.tbz on one machine, it takes between 2-8 hours, on the other 8-10 minutes. These machines are quad-Intel 2.8Xeons, with 4GB of memory. Ive done everything from running make world, to md5ing pkg_add, bzip2, and tar, there identical. I noticed on the one thing, on the machine that takes forever, bzip2 is only using 1-3% load, while the other, which does work, takes 100%. I have SMP compiled into the kernel, well actually, there both using the exact same kernconf. What about the default nice levels, what is top reporting the nice levels are on both the servers? Are other processes hogging the CPU? Have profiles been modified at all on either machine? (/etc/login.conf) Try doing nice -n -19 pkg_add .. Monitor iostat -c9 diskdev to see what speed they're reading from the disk at ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pkg_add is driving me NUTS!
I have two servers, exact same hardware, exact same version of FreeBSD, in this case 4.10. When I run pkg_add blah.tbz on one machine, it takes between 2-8 hours, on the other 8-10 minutes. These machines are quad-Intel 2.8Xeons, with 4GB of memory. Ive done everything from running make world, to md5ing pkg_add, bzip2, and tar, there identical. I noticed on the one thing, on the machine that takes forever, bzip2 is only using 1-3% load, while the other, which does work, takes 100%. I have SMP compiled into the kernel, well actually, there both using the exact same kernconf. Anyone have ideas?? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
installing MySQL with FreeBSD pkg_add
Hi, I am happy to have FreeBSD 6.1-RELEASE and KDE running on my intel box. I am now trying to install MySQL. I logged in as root and ran the following commands # pkg_add -r msql41-server Added group mysql Added user mysql # pkg_add -r mysql41-client mysql-client-4.1.18_1 or its older version already installed # mysql -uroot ERROR 2002 (HY000): Can't connect to local MySQL server through socket 'tmp/mysql.sock' (2) What to do? Thanks, Peter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: installing MySQL with FreeBSD pkg_add
Peter, cp /usr/local/share/my-small.cnf /var/db/mysql/my.cnf. Have a look at your new config in /var/db/mysql and make any necessary adjustments. There's some other configs in /usr/local/share so if you need something other than the small configuration file copy that one over. All depends on what you're doing with it. -John Peter Michaux wrote: Hi, I am happy to have FreeBSD 6.1-RELEASE and KDE running on my intel box. I am now trying to install MySQL. I logged in as root and ran the following commands # pkg_add -r msql41-server Added group mysql Added user mysql # pkg_add -r mysql41-client mysql-client-4.1.18_1 or its older version already installed # mysql -uroot ERROR 2002 (HY000): Can't connect to local MySQL server through socket 'tmp/mysql.sock' (2) What to do? Thanks, Peter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: installing MySQL with FreeBSD pkg_add
The pkg_add -r msql41-server auto installs mysql41-client as a dependaent so when you ran pkg_add -r mysql41-client it found it was all ready there just like it should. This is not an error. Next you have to do rehash command or reboot box so system can find those new modules. Then run mysql_install_db --user=mysql from the command line to tell mysql to create its internel control db. Then mysql -u root should work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Peter Michaux Sent: Saturday, May 20, 2006 11:58 AM To: freebsd-questions@freebsd.org Subject: installing MySQL with FreeBSD pkg_add Hi, I am happy to have FreeBSD 6.1-RELEASE and KDE running on my intel box. I am now trying to install MySQL. I logged in as root and ran the following commands # pkg_add -r msql41-server Added group mysql Added user mysql # pkg_add -r mysql41-client mysql-client-4.1.18_1 or its older version already installed # mysql -uroot ERROR 2002 (HY000): Can't connect to local MySQL server through socket 'tmp/mysql.sock' (2) What to do? Thanks, Peter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: installing MySQL with FreeBSD pkg_add
Peter Michaux wrote: # mysql -uroot ERROR 2002 (HY000): Can't connect to local MySQL server through socket 'tmp/mysql.sock' (2) What to do? The server isn't running. Start it, and this message will go away. If the port/package is correctly installed, then $ /usr/local/etc/rc.d/mysql-server.sh start as root should do the trick. To have mysql-server start automagically, add: mysql_enable=YES to the file /etc/rc.conf BTW, shouldn't there be a space between the -u and the root ? Probably just a c-n-p error. KDK -- We are all in the gutter, but some of us are looking at the stars. -- Oscar Wilde ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pkg_add gnuplot
Hey, I'm trying to add the package gnuplot, and when I do, it goes and tries to add another necessary package pdflib. The issue is that it cannot find pdflib. I get the following: pkg_add -r gnuplot Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/gnuplot.tbz... Done. Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/All/pdflib-6.0.1_2.tbz: File unavailable (e.g., file not found, no access) pkg_add: can't open dependency file '/var/db/pkg/pdflib-6.0.1_2/+REQUIRED_BY '! dependency registration is incomplete For some reason the file does not exist on the server. Is there another method that I can get pdflib that pkg_add will recognize for when I pkg_add -r gnuplot again? Thanks, Jon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add gnuplot
On Friday 05 May 2006 13:00, Jonathan Herriott wrote: Hey, I'm trying to add the package gnuplot, and when I do, it goes and tries to add another necessary package pdflib. The issue is that it cannot find pdflib. I get the following: pkg_add -r gnuplot Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/gn uplot.tbz... Done. Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/All/pdfli b-6.0.1_2.tbz: File unavailable (e.g., file not found, no access) pkg_add: can't open dependency file '/var/db/pkg/pdflib-6.0.1_2/+REQUIRED_BY '! dependency registration is incomplete For some reason the file does not exist on the server. Is there another method that I can get pdflib that pkg_add will recognize for when I pkg_add -r gnuplot again? google pdflib to find some available .tbz :-) Good luck -- Best Regards Yuan, Jue @ www.yuanjue.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add gnuplot
On Fri, May 05, 2006 at 05:00:46AM +, Jonathan Herriott wrote: Hey, I'm trying to add the package gnuplot, and when I do, it goes and tries to add another necessary package pdflib. The issue is that it cannot find pdflib. I get the following: pkg_add -r gnuplot Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/gnuplot.tbz... Done. Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/All/pdflib-6.0.1_2.tbz: File unavailable (e.g., file not found, no access) pkg_add: can't open dependency file '/var/db/pkg/pdflib-6.0.1_2/+REQUIRED_BY '! dependency registration is incomplete For some reason the file does not exist on the server. Is there another method that I can get pdflib that pkg_add will recognize for when I pkg_add -r gnuplot again? pdflib packages may not be distributed according the license on the software. Sorry, you need to compile it yourself from the port. Kris pgpQd0m8wdRWI.pgp Description: PGP signature
Re: pkg_add -r openoffice Error: FTP Unable to get ftp:
Thanks but: pkg_add -r openoffice.org pkg_add: can't stat package file 'openoffice.org' that was the logical and first thing I tried. On Mon, 1 May 2006, Kris Kennaway wrote: On Sun, Apr 30, 2006 at 11:04:32PM -0400, [EMAIL PROTECTED] wrote: pkg_add -r openoffice.org-2.0.2.tbz You don't use the full versioned package name, you use the name in the Latest/ directory, which is probably something like openoffice.org. Error: FTP Unable to get ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/openoffice.org-2.0.2.tbz: Kris _ Douglas Denault http://www.safeport.com [EMAIL PROTECTED] Voice: 301-469-8766 Fax: 301-469-0601 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add -r openoffice Error: FTP Unable to get ftp:
On Mon, 2006-05-01 at 03:12 -0400, [EMAIL PROTECTED] wrote: Thanks but: pkg_add -r openoffice.org pkg_add: can't stat package file 'openoffice.org' that was the logical and first thing I tried. On Mon, 1 May 2006, Kris Kennaway wrote: On Sun, Apr 30, 2006 at 11:04:32PM -0400, [EMAIL PROTECTED] wrote: pkg_add -r openoffice.org-2.0.2.tbz You don't use the full versioned package name, you use the name in the Latest/ directory, which is probably something like openoffice.org. Error: FTP Unable to get ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/openoffice.org-2.0.2.tbz: Kris _ Douglas Denault http://www.safeport.com [EMAIL PROTECTED] Voice: 301-469-8766 Doug, With open office, you need to chose the major revision, both 1.0 and 2.0 are listed. You may need to add the major version number ie pkg_add -r openoffice.org-2.0 may work. Rob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add -r openoffice Error: FTP Unable to get ftp:
On Monday 01 May 2006 02:31, robert wrote: On Mon, 2006-05-01 at 03:12 -0400, [EMAIL PROTECTED] wrote: Thanks but: pkg_add -r openoffice.org pkg_add: can't stat package file 'openoffice.org' that was the logical and first thing I tried. On Mon, 1 May 2006, Kris Kennaway wrote: On Sun, Apr 30, 2006 at 11:04:32PM -0400, [EMAIL PROTECTED] wrote: pkg_add -r openoffice.org-2.0.2.tbz You don't use the full versioned package name, you use the name in the Latest/ directory, which is probably something like openoffice.org. Error: FTP Unable to get ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-6-stable/ Latest/openoffice.org-2.0.2.tbz: Kris _ Douglas Denault http://www.safeport.com [EMAIL PROTECTED] Voice: 301-469-8766 Doug, With open office, you need to chose the major revision, both 1.0 and 2.0 are listed. You may need to add the major version number ie pkg_add -r openoffice.org-2.0 may work. Rob I don't understand what the problem is that you all are having. Yes I do, you're not using a procedure that works well. If you want the latest Openoffice binary package, which is 2.0.2, you trundle your web browser over to here: http://www.openoffice.org/ Click on the green box that says: Get openoffice.org version 2.0.2 which redirects you to: http://download.openoffice.org/2.0.2/index.html. When you get to this page, you click on the box that says: Download OpenOffice.org which gets you to a page where you select your language, OS, and download site. If you did it correctly, that download site clickdown box will have FreeBSD page in it when selected. This will take you to another page, here you select the Continue to Download box which takes you to the actual site where you get to pick what you want to download. Maybe you can go straight to it by using this URL: http://porting.openoffice.org/freebsd/ Once you get there, download the darn thing and install it using pkg_add whatever the name is or using pkg_add -v whatever the name is. Oh, I almost forgot, this is how you get a binary package that was built for Freebsd 5.5 or 6.1 Don ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add -r openoffice Error: FTP Unable to get ftp:
One of benefits of the BSD's at least my BSD, the Free one, is anyone can get a pretty cool workstation by doing: pkg_add -r xorg pkg_add -r kde[-lite] pkg_add -r anything-else-that-strikes-my-fancy with a couple of configuration commands in between. I suspect the Linux people that use RPM will have the same comment. Frankly it never occurred to me to do anything else. If there is a package link from the FreeBSD site, in the future, that is what I will use, and deal with any problems that arise. This because I trust that the FreeBSD port/package maintainers will have taken care of any platform differences. Over the years, the committers have certainly earned that trust. I have no such confidence with OOo. Unlike X[org] I do not have to have it so, if after I learn to use it, on going installs are more trouble that I deem them to be worth, I will lose it. My only comments were to thank the poster who mentioned the package, perhaps he got it from the approved site; and to suggest to the FreeBSD maintainers OOo would get more use if there was a wrapper port (named per chance openoffice) that would just do the right thing. There have been a few products that were so good they overcame all obstacles to their use. Perhaps OOo is one. I do not mean this to be rant, it is just my opinion with a mild plea to the FreeBSD package maintainers. This thread dies here. I just felt I should explicitly explain what I tried to say the first time and to thank the folks that tried to guide me to the correct package. On Mon, 1 May 2006, Donald J. O'Neill wrote: I don't understand what the problem is that you all are having. Yes I do, you're not using a procedure that works well. If you want the latest Openoffice binary package, which is 2.0.2, you trundle your web browser over to here: http://www.openoffice.org/ Click on the green box that says: Get openoffice.org version 2.0.2 which redirects you to: http://download.openoffice.org/2.0.2/index.html. When you get to this page, you click on the box that says: Download OpenOffice.org which gets you to a page where you select your language, OS, and download site. If you did it correctly, that download site clickdown box will have FreeBSD page in it when selected. This will take you to another page, here you select the Continue to Download box which takes you to the actual site where you get to pick what you want to download. Maybe you can go straight to it by using this URL: http://porting.openoffice.org/freebsd/ Once you get there, download the darn thing and install it using pkg_add whatever the name is or using pkg_add -v whatever the name is. Oh, I almost forgot, this is how you get a binary package that was built for Freebsd 5.5 or 6.1 Don _ Douglas Denault http://www.safeport.com [EMAIL PROTECTED] Voice: 301-469-8766 Fax: 301-469-0601 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pkg_add -r openoffice Error: FTP Unable to get ftp:
On Mon, May 01, 2006 at 03:12:14AM -0400, [EMAIL PROTECTED] wrote: Thanks but: pkg_add -r openoffice.org pkg_add: can't stat package file 'openoffice.org' that was the logical and first thing I tried. So look on the FTP site below and see what it's really called. Kris On Sun, Apr 30, 2006 at 11:04:32PM -0400, [EMAIL PROTECTED] wrote: pkg_add -r openoffice.org-2.0.2.tbz You don't use the full versioned package name, you use the name in the Latest/ directory, which is probably something like openoffice.org. Error: FTP Unable to get ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/openoffice.org-2.0.2.tbz: Kris _ Douglas Denault http://www.safeport.com [EMAIL PROTECTED] Voice: 301-469-8766 Fax: 301-469-0601 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] pgpuWsiMYNfIo.pgp Description: PGP signature
Re: pkg_add -r openoffice Error: FTP Unable to get ftp:
Installing the openoffice port is truly an odyssey and one I did not successfully complete. Following the advise earlier in this thread, I abandoned that effort and installed the package. The names for pkg_add are a mystery to me as well. In an effort to get the correct name I walked the trees on ftp.FreeBSD.org and ftp2.FreeBSD.org not finding a package on either. Name (ftp2.FreeBSD.org:doug): anonymous 331 Guest login ok, send your email address as password. Password: 230 Guest login ok, access restrictions apply. Remote system type is UNIX. Using binary mode to transfer files. ftp cd pub/FreeBSD/ports/i386/packages-6-stable/Latest/ 250 CWD command successful. ftp ls openoffice* 229 Entering Extended Passive Mode (|||51506|) 150 Opening ASCII mode data connection for '/bin/ls'. ftpd: openoffice*: No such file or directory 226 Transfer complete. ftp ls | grep open usage: ls [remote-path [local-file]] ftp ls openoffice.org 229 Entering Extended Passive Mode (|||55255|) 150 Opening ASCII mode data connection for '/bin/ls'. ftpd: openoffice.org: No such file or directory 226 Transfer complete. So I downloaded the package linked to by the ports page pkg_add openoffice.org-2.0.2.tbz pkg_add: could not find package linc-1.0.3_5 ! pkg_add: could not find package howl-1.0.0_1 ! pkg_add: could not find package ORBit2-2.12.5_2 ! pkg_add: could not find package libbonobo-2.10.1_3 ! pkg_add: could not find package gnomemimedata-2.4.2 ! pkg_add: could not find package gconf2-2.12.1_1 ! pkg_add: could not find package gnomevfs2-2.12.2_2 ! pkg_add -r openoffice.org-2.0.2.tbz Error: FTP Unable to get ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/openoffice.org-2.0.2.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/openoffice.org-2.0.2.tbz' by URL An answer is fairly easy but tedious, doing pkg_add on each of the above requirements. I would hope I missed something (easy?) here. If openoffice wants to supplant MS Office, or in my case koffice, a somewhat less esoteric install is required I think. After trying the openoffice.org-1.1 port, registering a JDK, installing same, and eventually, 3 hours later on my 1.8GHz system with 1GB memory, the build failed and happily I found this thread. The end result of all this is: openoffice.org javaldx: Could not find a Java Runtime Environment! I18N: Operating system doesn't support locale en_US In testing so far, I can not see what I am missing and I like this much better than koffice. However I found the install to beyond using vi, more like using ed. I think I am going to like OOo a lot and wish the project much success. The install seems a work in progress. _ Douglas Denault http://www.safeport.com [EMAIL PROTECTED] Voice: 301-469-8766 Fax: 301-469-0601 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]