Subject: RE: Trouble installing KDE on NetBSD 1.6 (call for help)
To: None <netbsd-help@netbsd.org>
From: sucho2 <sucho2@vt.edu>
List: netbsd-help
Date: 02/06/2003 14:04:32
>===== Original Message From sucho2 <sucho2@vt.edu> =====
Good afternoon, Mr. Jonathon Ireland.
I'm sorry about my KDE3 Mail producing all the "=D3" stuff in the netbsd
posting site. I could never figure out why KMail produces such letters. This
one should be okay since I am sending it from school webmail. Yes, you have
to pint the cdrom to the directory in cdrom where "All" is. I have fast
connection to internet so I automate it by running my small "pkg_add.kde.sh"
program. Here's what my "pkg_add.kde.sh" look like:
--------------------
#!/bin/sh
cd /usr/pkgsrc/pkgtools/pkg_install
make update && make CLEANDEPENDS=yes clean && make distclean
cd /
export PKG_TMPDIR=/usr/pkgsrc/tmp
export PKG_PATH=ftp://netbsd.stevens-tech.edu/pub/NetBSD/packages/1.6/i386/All
pkg_add -v kde
# THE END
----------------------
If I were to install it from the local cdrom drive, I would relpace the line
above "export
PKG_PATH=ftp://netbsd.stevens-tech.edu/pub/NetBSD/packages/1.6/i386/All" with
"export PKG_PATH=/mnt/cdrom/All"
Please note that in my /etc/fstab files, cdrom has a mount point at
/mnt/cdrom. If you cdrom mount point is at /cdrom, you should replace
"mnt/cdrom/All" with "/cdrom/All" etc.
Also, for the line above "export PKG_TMPDIR=/usr/pkgsrc/tmp", you have to make
sure the directory /usr/pkgsrc/tmp exists. The reason I added this line was
because my /var directory is only 50M in size, therefore not big enough for
KDE3 install. If you wish, you can creat a tmp directory in /usr and replace
the line "export PKG_TMPDIR=/usr/pkgsrc/tmp" with "export
PKG_TMPDIR=/usr/tmp".
Anyhow, follow the lines below:
Do this as a super user (root):
1) sh # Makesure for csh, you can still use sh or bash
2) mkdir -p /usr/pkgsrc/tmp # You may replace this with /usr/tmp
3) cd /usr/pkgsrc/pkgtools/pkg_install # Update pkgtools
4) make update && make CLEANDEPENDS=yes clean && make distclean
5) export PKG_TMPDIR=/usr/pkgsrc/tmp # Set pkg_tmpdir (default is /var/tmp)
# You can set this to /usr/tmp (see line 2)
6) export PKG_PATH=/mnt/cdrom/packages/1.6/i386/All
# I am not sure in which forlde inside cdrom packages are located.
You may have to replace this so that it points to All directory in cdrom.
Please note that cdrom mount point is the one in the /etc fstab. In this
case, mine is in /mnt/cdrom. If yours is in /cdrom, then replace with /cdrom
etc.
7) pkg_add -v kde # Install latest version of KDE
Done
If you are using csh, then do as a super user (root):
1) csh # Makesure for csh, you can still use sh or bash
2) mkdir -p /usr/pkgsrc/tmp # You may replace this with /usr/tmp
3) cd /usr/pkgsrc/pkgtools/pkg_install # Update pkgtools
4) make update && make CLEANDEPENDS=yes clean && make distclean
5) setenv PKG_TMPDIR /usr/pkgsrc/tmp # Set pkg_tmpdir (default is /var/tmp)
# You can set this to /usr/tmp (see line 2)
6) setenv PKG_PATH /mnt/cdrom/packages/1.6/i386/All
# I am not sure in which forlde inside cdrom packages are located. You may
have to replace this so that it points to All directory in cdrom. Please note
that cdrom mount point is the one in the /etc fstab. In this case, mine is in
/mnt/cdrom. If yours is in /cdrom, then replace with /cdrom etc.
7) pkg_add -v kde # Install latest version of KDE
Done
......................
Here's what my /etc/fstab looks like:
------------------
/dev/wd0a / ffs rw,softdep 1 1
/dev/wd0b none swap sw 0 0
/dev/wd0e /var ffs rw,softdep 1 2
/dev/wd0f /usr ffs rw,softdep 1 2
/dev/wd0g /usr/pkgsrc ffs rw,softdep 1 2
/dev/wd0h /usr/src ffs rw,softdep 1 2
/dev/wd0i /home ffs rw,softdep 1 2
/dev/cd0a /mnt/cdrom cd9660 ro,noauto 0 0
/dev/sd0h /mnt/zipdrive ffs rw,noauto 0 0
/dev/fd0a /mnt/floppy ffs rw,noauto 0 0
swap /tmp mfs rw,-s=24m 0 0
------------------
Please note that my cdrom mount point is /mnt/cdrom
Here's what my /etc/mk.conf look like:
-------------------------
# Sung's mk.conf file
#
###################################################
# Make sure to install /usr/pkgsrc/devel/cpuflags #
###################################################
.sinclude "/usr/pkg/share/mk/cpuflags.mk"
COPTS+=-pipe
CFLAGS+=-pipe
BSDSRCDIR=/usr/src
PKGSRCDIR=/usr/pkgsrc
WRKOBJDIR=/usr/pkgsrc/tmp
DISTDIR?=/usr/src/distfiles
PACKAGES?=/usr/src/packages
DIST_PATH=/mnt/cdrom/0/distfiles:/mnt/cdwriter/0/distfiles
OBJHOSTNAME=sncho
PKGSRC_LOCKTYPE?=sleep
PKGSRC_SLEEPSEC?=60
ACCEPTABLE_LICENSES+=IDEA-licence
ACCEPTABLE_LICENSES+=adobe-acrobat-license
ACCEPTABLE_LICENSES+=amiwm-license
ACCEPTABLE_LICENSES+=astrolog-license
ACCEPTABLE_LICENSES+=citrix_ica-license
ACCEPTABLE_LICENSES+=csound-license
ACCEPTABLE_LICENSES+=cyrus-imapd-license
ACCEPTABLE_LICENSES+=emiclock-license
ACCEPTABLE_LICENSES+=fee-based-commercial-use
ACCEPTABLE_LICENSES+=graphviz-license
ACCEPTABLE_LICENSES+=jdk-license
ACCEPTABLE_LICENSES+=jdk13-license
ACCEPTABLE_LICENSES+=kermit-license
ACCEPTABLE_LICENSES+=limited-redistribution
ACCEPTABLE_LICENSES+=majordomo-license
ACCEPTABLE_LICENSES+=maude-license
ACCEPTABLE_LICENSES+=mosaic-license
ACCEPTABLE_LICENSES+=ms-ttf-license
ACCEPTABLE_LICENSES+=mush-license
ACCEPTABLE_LICENSES+=nntpclnt-license
ACCEPTABLE_LICENSES+=no-commercial-use
ACCEPTABLE_LICENSES+=no-profit
ACCEPTABLE_LICENSES+=opera-license
ACCEPTABLE_LICENSES+=palmos-sdk-license
ACCEPTABLE_LICENSES+=pine-license
ACCEPTABLE_LICENSES+=portsentry-license
ACCEPTABLE_LICENSES+=shareware
ACCEPTABLE_LICENSES+=srp_client-license
ACCEPTABLE_LICENSES+=sun-jsdk20-license
ACCEPTABLE_LICENSES+=sun-swing-license
ACCEPTABLE_LICENSES+=trn-license
ACCEPTABLE_LICENSES+=unarj-license
ACCEPTABLE_LICENSES+=unrar-license
ACCEPTABLE_LICENSES+=zoo-license
USA_RESIDENT=yes
BASH_STATIC=yes
-----------------------------
If you wish to run my automated program "pkg_add.kde.sh",
use this attached sh script. Do as a super user (root)
./pkg_add.kde.sh or sh pkg_add.kde.sh
You may have to modify the lines in pkg_add.kde.sh to work for you. In
particular, the lines:
export PKG_TMPDIR=/usr/pkgsrc/tmp
export PKG_PATH=ftp://netbsd.stevens-tech.edu/pub/NetBSD/packages/1.6/i386/All
You should replace the last line with cdrom's All directory, not
steven-tech's. Also, you are going to use the first line, make sure the
directory /usr/pkgsrc/tmp exists before you run the script.
Lastly, please review your /etc/fstab and /etc/mk.conf with mine. You may
need taylor it according to your /etc/fstab and /etc/mk.conf layout.
Hope this helps.
Yours sincerely,
S. N. Cho,
Thursday, Feb. 06, 2003.
--
Sung N. Cho
Dept. of Physics, VPI&SU
Blacksburg, VA. 24061
U.S.A