From owner-freebsd-questions@FreeBSD.ORG Fri May 20 01:47:09 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BB19106566C for ; Fri, 20 May 2011 01:47:09 +0000 (UTC) (envelope-from xnooby@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id DDEDD8FC0C for ; Fri, 20 May 2011 01:47:08 +0000 (UTC) Received: by bwz12 with SMTP id 12so3655891bwz.13 for ; Thu, 19 May 2011 18:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=YI5toI1dRvxBlBLrbDovpNIGYmUgKlm4Yl1zyyPViWc=; b=TdnSCUzmr3qnvoZhSD/GGeRfJeAMKkNr8D7lJPe1j0jz0LE8BUvdfbnrxXArse6GRp abNdHReJ3HfT3OhB7A5QjdIEgfV/yu7wxwFj6koGc+5JG2/+g7z3AR05dN2HpeO2biBq C8ybyIB5l3DgUNxQz3B4ojIlmQq/gyfzl0/J8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=O1I67P/Rzl+hZfsI24jyaV1DJOJr2ClfTxUM/YlGgChcReWHOybJ17Izl/HVYpUF+9 DNJwmXohv4OkxsksTBCtcWYa+LX5I4+XSQWaXOsz2Bc37vhPswNhWC5WvP/5VMArZ+CS +ohDTywoH0pnbQF1vCLCflTIz7IkirkQLtw1Q= MIME-Version: 1.0 Received: by 10.204.145.18 with SMTP id b18mr3453896bkv.26.1305854582328; Thu, 19 May 2011 18:23:02 -0700 (PDT) Received: by 10.204.25.78 with HTTP; Thu, 19 May 2011 18:23:02 -0700 (PDT) Date: Thu, 19 May 2011 21:23:02 -0400 Message-ID: From: Xn Nooby To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Over-whelmed by ports and package tools X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 01:47:09 -0000 It is hard for me to tell what tools I should be using to work with ports and packages. I was trying to set up a 64bit 8.2 machine as a desktop environment, with Firefox 4 and Flash installed. It looked like I was going to need to track the 8.x stable branch in order to get a Firefox package, and I was having some problems pinning down which version of Flash I should use (they have a new version since 8l2 was released). I decided to stop and just make sure I understood how I was supposed to be working with ports and packages. I've have been reading about cvsup, freebsd-update, portsnap, portupgrade, and portmaster. In general, I think I would like to use packages when possible, since I expect to be doing some installs on low-powered machines (my old laptops). I don't want to build everything from the ports tree (unless I have to). I know that I can set the environment variable PACKAGESITE in order to get packages from 8.x instead of 8.2, and the packages would at worst be a month old. I have also read portupgrade can be used to upgrade ports (obvious enough). What I have not really seen yet, is an explanation of when you might want to use the different tools. I have read some tools don't need certain other things installed, but I don't know why that is significant. Perhaps some of the tools are only used in rare situations, and I don't need to consider using them. I also don't know how mutually exclusive they are. I am working on a script to automatically load up all the software I want on my desktop, below are some of the sub-routines that show what I am trying to do. I think the script worked when 8.2 was new, but things seemed to have changed and it no longer works so well. I want to make it change-proof. loadPorts() { echo loadPorts... freebsd-update fetch install portsnap fetch extract } loadFF() { echo loadFF... pkg_add -r firefox echo 'sem_load="YES"' >> /boot/loader.conf } loadApps() { echo loadApps... apps="bash unzip p7zip vlc xmms subversion mplayer openbox icewm cmdwatch xfe miro filezilla" for x in $apps do pkg_add -r $x done } loadFonts() { echo loadFonts... cd /usr/ports/x11-fonts/webfonts make install clean pkg_add -r dejavu cd sed ' /Section "Module"/ a\ Load "freetype"\ Load "type1" ' /etc/X11/xorg.conf > /etc/X11/xorg.conf.sed cp /etc/X11/xorg.conf.sed /etc/X11/xorg.conf sed ' /Section "Files"/ a\ FontPath "/usr/local/lib/X11/fonts/webfonts/"\ FontPath "/usr/local/lib/X11/fonts/dejavu/" ' /etc/X11/xorg.conf > /etc/X11/xorg.conf.sed cp /etc/X11/xorg.conf.sed /etc/X11/xorg.conf fc-cache -f -v } loadFlash() { echo loadFlash... kldload linux pkg_add -r linux_base-f10 echo 'linux_enable="YES"' >> /etc/rc.conf echo 'linproc /usr/compat/linux/proc linprocfs rw 0 0' >> /etc/fstab mount -a pkg_add -r nspluginwrapper cd /usr/ports/www/linux-f10-flashplugin10 mkdir -p /usr/ports/distfiles/flashplugin/10.1r53 scp me@192.168.200.2:install_flash_player_10_linux.tar.gz /usr/ports/distfiles/flashplugin/10.1r53/ make install clean cd mkdir /usr/local/lib/browser_plugins ln -s /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so /usr/local/lib/browser_plugins/ # read -p "pausing" rehash }