Re: Newbie: offline package use / XFCE.

2009-01-25 Thread Manolis Kiagias
Thomas W. Holloway wrote:
> On Tue, 20 Jan 2009 18:16:45 -0500, Manolis Kiagias
>  wrote:
>
>> As a side note, I have a machine specifically for building packages and
>> it just happens that I finished a complete build run today (for FreeBSD
>> 7.1 32bit). This includes XFCE, Xorg, Gnome + power tools + fifth toe,
>> KDE4 (4.1 actually) and few other things. More than 1.5G of packages.  I
>> could possibly upload just the XFCE + dependencies packages somewhere so
>> you can download them and use them. Contact me directly if you wish to
>> go down that route.
>
> Let me take this opportunity to express my sincere thanks to Mr.
> Kiagias for his (offline) assistance with this. In the process, we
> seem to have uncovered a small bug: pkg_add -n apparently does not
> check properly for _local_ dependencies. Being a newb, I leave any bug
> reporting to Mr. Kiagias.
>
> Thanks again to Mr. Kiagias and the list.
>
> regards,
>
> Tom Holloway
>
Thanks Tom.
Problem report submitted already!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Newbie: offline package use / XFCE.

2009-01-25 Thread Thomas W. Holloway
On Tue, 20 Jan 2009 18:16:45 -0500, Manolis Kiagias  
 wrote:



As a side note, I have a machine specifically for building packages and
it just happens that I finished a complete build run today (for FreeBSD
7.1 32bit). This includes XFCE, Xorg, Gnome + power tools + fifth toe,
KDE4 (4.1 actually) and few other things. More than 1.5G of packages.  I
could possibly upload just the XFCE + dependencies packages somewhere so
you can download them and use them. Contact me directly if you wish to
go down that route.


Let me take this opportunity to express my sincere thanks to Mr. Kiagias  
for his (offline) assistance with this. In the process, we seem to have  
uncovered a small bug: pkg_add -n apparently does not check properly for  
_local_ dependencies. Being a newb, I leave any bug reporting to Mr.  
Kiagias.


Thanks again to Mr. Kiagias and the list.

regards,

Tom Holloway


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Newbie: offline package use / XFCE.

2009-01-20 Thread Peter Ulrich Kruppa

Thomas W. Holloway schrieb:


I would like to install XFCE on a FreeBSD 7.1 box that is and will 
remain (for now) offline. No network connection at all. If I have read 
correctly, this means downloading the appropriate package(s) and using 
pkg_add. So far, so good (I haven't done it, but it seems clear enough).
The simpliest way would be to install from one of the three 
Release-CD's or from the Release-DVD (via /usr/sbin/sysinstall).
But I have no idea if XFCE4 is contained in them. Perhaps someone 
could look this up for you?


Greetings,

Uli.



The package for XFCE4, as listed here

  http://www.freebsd.org/ports/xfce.html

is a "meta-port" (I believe I understand the idea), which seems to have 
about one hundred (100) dependencies. Of course, some of those will have 
dependencies of their own, and so on. My question is this:


In order to "download/ftp the package" for XFCE4, I would have to obtain 
all hundred (or so) of the listed files _and_ any dependencies they may 
have so as to point pkg_add at them locally. Is this correct?  If not 
correct, what have I missed (a pointer to what I've missed should be 
sufficient).


I've also looked at it from the XFCE side, where there is a nice, 
detailed doc by Benedikt Meurer, here


  
http://www.os-works.com/documentation/xfce-installers/4.2.1/xfce-installer/


This strongly implies that I can bypass the pkg_add procedure entirely. 
Might be worth trying, but I'd still like to know if I've understood 
what the package listing above is saying.


Editorial comment and/or general advice on XFCE is not unwelcome. It's 
just secondary to the question.


Thanks in advance, and

regards,

Tom Holloway.

PS: I almost forgot the traditional "PLEASE HELP!!!"   ;)  But this is 
not for work and I am not on any deadline whatever.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"freebsd-questions-unsubscr...@freebsd.org"


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Newbie: offline package use / XFCE.

2009-01-20 Thread Polytropon
On Wed, 21 Jan 2009 01:16:45 +0200, Manolis Kiagias  
wrote:
> In short, yes.  And this will be quite difficult to get right. *Unless*
> the machine you actually use to get the packages is also running
> FreeBSD.   You could then pkg_add -r xfce4 on it  and then recreate  all
> the required packages and transfer them to the target machine. To
> recreate the packages:
> 
> [...]
> 
> The same applies also if you decide to build xfce from Ports.  You could
> still create packages in the same way.
> Simply copy the packages to a CD or USB drive, and pkg_add on the target
> machine (note you will not use '-r' on it as all the packages are local)

Just as a friendly sidenote: I need to put emphasize on the fact that
you will need to install XFCE 4 on the machine with Internet access
in order to follow this procedure. If you don't mind doing this or
of you intend to run XFCE on that machine anyway, stop reading now. :-)



If you intentionally DON'T want to install XFCE 4 on the machine
you want to use to get the packages, how about trying this dirty
script?



###



#!/bin/sh
#
# pkg_download.sh 2008-08-19
# ===
#
# fetch a precompiled package as well as its dependencies
# for further installation

if [ "$1" = "" ]; then
echo "$0 "
exit 1
fi

echo -n "fetching $1 ... "
if [ -f $1.tbz ]; then
echo "$1.tbz already there"
exit 1
fi

pkg_add -fKnrv $1 > $1.txt 2>&1

echo "done"

for DEP in `cat $1.txt | grep $1 | grep "depends on" | cut -d "'" -f 6 | cut -d 
"/" -f 2`; do
echo "dependency for $1 is ${DEP}"
$0 ${DEP}
done

rm $1.txt

exit 0



###



Put this content into a file pkg_download.sh, chmod it +x and then run

% ./pkg_download.sh xfce4

And yes, it's a very dirty solution, needlessly complicated,
untidy and unfriendly to use, but it will work and bypass the
need to install XFCE 4 on the machine to fetch. The script
does not compile anything, it relies on the pkg_add -r mechanism
and the presence of the proper packages on the default server.

But please note that it will download any dependency needed
recursively, which may lead you to a huge pile of tbz files.
Just think about what Gtk 2 will need...

I wrote this script in order to achieve the same goal as it
has been requested initially.





-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Newbie: offline package use / XFCE.

2009-01-20 Thread Manolis Kiagias
Thomas W. Holloway wrote:
> Greetings from newbie land.
>
> I have what I hope is a simple question about using packages offline,
> with particular reference to XFCE if that matters. I am not so much
> asking "how do I do this?" as I am "Do I understand this correctly?"
>
> I have read the appropriate sections of the Handbook, Lehey's
> _Complete FreeBSD_ (both paragraphs :) ), and Lucas' _Absolute FreeBSD
> (2nd ed.). I have googled and done some searching of this list's
> archives, and couldn't tease the answer out of them. As you will see,
> it would be a LOT of work to "just try it", so I don't feel too bad
> about asking before diving in.
>
> I would like to install XFCE on a FreeBSD 7.1 box that is and will
> remain (for now) offline. No network connection at all. If I have read
> correctly, this means downloading the appropriate package(s) and using
> pkg_add. So far, so good (I haven't done it, but it seems clear enough).
>
> The package for XFCE4, as listed here
>
>   http://www.freebsd.org/ports/xfce.html
>
> is a "meta-port" (I believe I understand the idea), which seems to
> have about one hundred (100) dependencies. Of course, some of those
> will have dependencies of their own, and so on. My question is this:
>
> In order to "download/ftp the package" for XFCE4, I would have to
> obtain all hundred (or so) of the listed files _and_ any dependencies
> they may have so as to point pkg_add at them locally. Is this correct?

In short, yes.  And this will be quite difficult to get right. *Unless*
the machine you actually use to get the packages is also running
FreeBSD.   You could then pkg_add -r xfce4 on it  and then recreate  all
the required packages and transfer them to the target machine. To
recreate the packages:

# cd /usr/ports
# mkdir packages
# cd packages
# pkg_create -Rb xfce-x.y.z

(hint: use pkg_info -Ix xfce to get the exact name of the xfce metaport
to use with pkg_create)

The same applies also if you decide to build xfce from Ports.  You could
still create packages in the same way.
Simply copy the packages to a CD or USB drive, and pkg_add on the target
machine (note you will not use '-r' on it as all the packages are local)

>   If not correct, what have I missed (a pointer to what I've missed
> should be sufficient).
>
> I've also looked at it from the XFCE side, where there is a nice,
> detailed doc by Benedikt Meurer, here
>
>  
> http://www.os-works.com/documentation/xfce-installers/4.2.1/xfce-installer/
>
>

This document refers to an older version of XFCE and may not be
applicable to the current one. I've never used this, I definitely prefer
to build my own packages from the official port.

> This strongly implies that I can bypass the pkg_add procedure
> entirely. Might be worth trying, but I'd still like to know if I've
> understood what the package listing above is saying.
>
> Editorial comment and/or general advice on XFCE is not unwelcome. It's
> just secondary to the question.
>

XFCE is nice, I've been using it on almost all my FreeBSD desktops. It
is a no frills desktop. The default look is somewhat blunt, but it is
easy to customize to taste.  I also usually install ristretto (picture
viewer) thunar-volman-plugin (for mounting USB drives etc) and a few
other xfce utilities. It compiles rather quickly on my humble Pentium IV.


As a side note, I have a machine specifically for building packages and
it just happens that I finished a complete build run today (for FreeBSD
7.1 32bit). This includes XFCE, Xorg, Gnome + power tools + fifth toe,
KDE4 (4.1 actually) and few other things. More than 1.5G of packages.  I
could possibly upload just the XFCE + dependencies packages somewhere so
you can download them and use them. Contact me directly if you wish to
go down that route.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Newbie: offline package use / XFCE.

2009-01-20 Thread Thomas W. Holloway

Greetings from newbie land.

I have what I hope is a simple question about using packages offline, with  
particular reference to XFCE if that matters. I am not so much asking "how  
do I do this?" as I am "Do I understand this correctly?"


I have read the appropriate sections of the Handbook, Lehey's _Complete  
FreeBSD_ (both paragraphs :) ), and Lucas' _Absolute FreeBSD (2nd ed.). I  
have googled and done some searching of this list's archives, and couldn't  
tease the answer out of them. As you will see, it would be a LOT of work  
to "just try it", so I don't feel too bad about asking before diving in.


I would like to install XFCE on a FreeBSD 7.1 box that is and will remain  
(for now) offline. No network connection at all. If I have read correctly,  
this means downloading the appropriate package(s) and using pkg_add. So  
far, so good (I haven't done it, but it seems clear enough).


The package for XFCE4, as listed here

  http://www.freebsd.org/ports/xfce.html

is a "meta-port" (I believe I understand the idea), which seems to have  
about one hundred (100) dependencies. Of course, some of those will have  
dependencies of their own, and so on. My question is this:


In order to "download/ftp the package" for XFCE4, I would have to obtain  
all hundred (or so) of the listed files _and_ any dependencies they may  
have so as to point pkg_add at them locally. Is this correct?  If not  
correct, what have I missed (a pointer to what I've missed should be  
sufficient).


I've also looked at it from the XFCE side, where there is a nice, detailed  
doc by Benedikt Meurer, here


  http://www.os-works.com/documentation/xfce-installers/4.2.1/xfce-installer/

This strongly implies that I can bypass the pkg_add procedure entirely.  
Might be worth trying, but I'd still like to know if I've understood what  
the package listing above is saying.


Editorial comment and/or general advice on XFCE is not unwelcome. It's  
just secondary to the question.


Thanks in advance, and

regards,

Tom Holloway.

PS: I almost forgot the traditional "PLEASE HELP!!!"   ;)  But this is not  
for work and I am not on any deadline whatever.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"