View previous topic :: View next topic |
Author |
Message |
kubark42 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Feb 2004 Posts: 44
|
Posted: Fri Jul 30, 2004 9:15 am Post subject: LTSP 4.1_beta ebuild [Need testers] |
|
|
Here it is. Since it's my first ebuild, I'm a bit scared about putting it into the portage tree instantly, especially since ltsp 4.1 causes some problems vis-a-vis version numbers and automatic updating. I'd like to resolve these problems before putting it into the portage tree. It seems to work for me, but you have to point the dhcp.conf to /opt/ltsp/pxeboot.0. Can someone else run it and see if it doesn't hose their system?
Now, on to my problems. 1) The LTSP developers have made a perl script which will automatically download the necessary files and install them for you. Moreover, the script will always download the latest versions. Does this mean that there won't be any more release notices? I'm of a mind to say, "Yes." Especially since, normally, there is no way to download the files directly from the sourceforge server. I found them tucked away on www.ltsp.org/ltsp-4.1. The only reason I even found them is because the ltsp manual has a screenshot of a program that's downloading the packages. There's no link on the main site to these files.
This causes problems with the ebuild as it will have to be manually updated in order to reflect the newer versions of individual packages that LSTP might not announce. I'm open to any and all solutions. I could just insert the perl scripts into the ebuild so that it always updates the ebuild automatically, but wouldn't this violate the rules of versioning?
2) I've provided an option to not install the kernel files for those who would like to roll their own, especially for open-mosix users. The problem here is that by default the "kernel" USE flag is deactivated. It there a way inside the ebuild to use the "kernel" flag by default? I think that this would avoid a lot of confusion. I don't want to force users to download the kernel packages because they're heavy (7.4MB).
4) Lastly, I've installed all the files into /opt/ltsp, including the pxe boot and kernel files. This breaks with tradition a little, especialy with the secure tftp idea, but it seems to work. Am I making a mistake here?
=========================
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
#This ebuild is a little less more a direct copy of the ltsp-core-4.0
#ebuild and a little less than a "from1 scratch" ebuild. Certain things
#I didn't understand and copied verbatim.
#Sadly, at this moment there is no way, inside the ebuild, to ensure
#that the files to be downloaded are the latest files from2 LTSP.
DESCRIPTION="LTSP - Linux Terminal Server Project. Runs multiple diskless terminals off of one central server"
HOMEPAGE="http://www.ltsp.org/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="kernel X admin debug" #I decided to give the user a choice of whether
#to download the kernel files or compile
#his/her own. Good Idea/Bad Idea?
DEPEND="app-arch/tar
virtual/gzip"
RDEPEND="X? ( virtual/x11 )
admin? dev-perl/libwww-perl
virtual/tftp
sys-apps/xinetd
net-misc/dhcp
net-fs/nfs-utils
net-nds/portmap"
LTSP_CORE="ltsp-ltsptree-1.7-0-i386.tgz
ltsp-glibc-1.0-0-i386.tgz
ltsp-audiofile-1.0-0-i386.tgz
ltsp-aumix-1.0-0-i386.tgz
ltsp-bash-1.0-0-i386.tgz
ltsp-busybox-1.0-0-i386.tgz
ltsp-devfsd-1.0-0-i386.tgz
ltsp-e2fsprogs-1.1-0-i386.tgz
ltsp-esd-1.0-0-i386.tgz
ltsp-freetype-1.0-0-i386.tgz
ltsp-getltscfg-1.2-0-i386.tgz
ltsp-haltsys-1.0-0-i386.tgz
ltsp-libgcc_s-1.0-0-i386.tgz
ltsp-libpng-1.0-0-i386.tgz
ltsp-libvncserver-1.0-0-i386.tgz
ltsp-localdev-1.0-0-i386.tgz
ltsp-lp_server-1.1-0-i386.tgz
ltsp-ltspinfod-1.1-0-i386.tgz
ltsp-modutils-1.0-0-i386.tgz
ltsp_nasd-1.1-0-i386.tgz
ltsp-ncurses-1.0-0-i386.tgz
ltsp-net-tools-1.0-0-i386.tgz
ltsp-open-1.1-0-i386.tgz
ltsp-openssl-1.0-0-i386.tgz
ltsp-pam-1.0-0-i386.tgz
ltsp-pci_scan-1.0-0-i386.tgz
ltsp-popt-1.1-0-i386.tgz
ltsp-portmap-1.0-0-i386.tgz
ltsp-prep_swap-1.0-0-i386.tgz
ltsp-rdesktop-1.3-0-i386.tgz
ltsp-samba-1.0-0-i386.tgz
ltsp-snmpd-1-0-i386.tgz
ltsp-ssh-1.0-0-i386.tgz
ltsp-startsess-1.1-0-i386.tgz
ltsp-sysvinit-1.0-0-i386.tgz
ltsp-tcp_wrappers-1.0-0-i386.tgz
ltsp-util-linux-1.0-0-i386.tgz
ltsp-vidlist-1.1-0-i386.tgz
ltsp-xinetd-1.0-0-i386.tgz
ltsp-ypbind-1.0-0-i386.tgz
ltsp-zlib-1.0-0-i386.tgz"
LTSP_X="ltsp-x-core-1.2-0-i386.tgz
ltsp-x-fonts-1.0-0-i386.tgz
ltsp-x-fonts-100dpi-1.0-0-i386.tgz
ltsp-x336_3DLabs-1.0-0-i386.tgz
ltsp-x336_8514-1.0-0-i386.tgz
ltsp-x336_AGX-1.0-0-i386.tgz
ltsp-x336_I128-1.0-0-i386.tgz
ltsp-x336_Mach32-1.0-0-i386.tgz
ltsp-x336_Mach64-1.0-0-i386.tgz
ltsp-x336_Mach8-1.0-0-i386.tgz
ltsp-x336_Mono-1.0-0-i386.tgz
ltsp-x336_P9000-1.0-0-i386.tgz
ltsp-x336_S3_S3V-1.0-0-i386.tgz
ltsp-x336_SVGA-1.0-0-i386.tgz
ltsp-x336_VGA16-1.0-0-i386.tgz
ltsp-x336_W32-1.0-0-i386.tgz"
LTSP_KERNEL="ltsp_kernel-1.3-0-i386.tgz
ltsp_modules-1.2-0-i386.tgz"
LTSP_ADMIN="ltsp-utils-0.5.tgz"
LTSP_DEBUG="ltsp-gdb-1.0-0-i386.tgz
ltsp-strace-1.0-0-i386.tgz"
for FILE in ${LTSP_CORE}
do
SRC_URI="${SRC_URI} http://www.ltsp.org/ltsp-4.1/${FILE}"
done
for FILE in ${LTSP_X}
do
SRC_URI="${SRC_URI} X? ( http://www.ltsp.org/ltsp-4.1/${FILE} )"
done
for FILE in ${LTSP_KERNEL}
do
SRC_URI="${SRC_URI} kernel? ( http://www.ltsp.org/ltsp-4.1/${FILE} )"
done
for FILE in ${LTSP_ADMIN}
do
SRC_URI="${SRC_URI} mirror://sourceforge/ltsp/${FILE}"
done
for FILE in ${LTSP_DEBUG}
do
SRC_URI="${SRC_URI} debug? ( http://www.ltsp.org/ltsp-4.1/${FILE} )"
done
S={WORKDIR}/ltsp
pkg_setup() {
if `has_version ltsp-core`; then
ewarn "Due to a bug in portage, you must first unemerge your old ltsp package before upgrading."
die
fi
}
src_unpack() { #nothing to unpack
echo ""
}
src_install() {
#unpack the files
#first the core...
dodir /opt/ltsp
dodir /tftpboot/lts
exeinto /usr/sbin
einfo "Installing core packages"
for FILE in ${LTSP_CORE}
do
tar -xzf ${DISTDIR}/${FILE} -C ${D}/opt/ltsp 2>/dev/null
done
#... then the X packages
if use X; then
einfo "Installing X packages"
for FILE in ${LTSP_X}
do
tar -xzf ${DISTDIR}/${FILE} -C ${D}/opt/ltsp 2>/dev/null
done
fi
#... then the kernel packages
if use kernel; then
einfo "Installing kernel packages"
for FILE in ${LTSP_KERNEL}
do
tar -xzf ${DISTDIR}/${FILE} -C ${D}/tftpboot/lts 2>/dev/null
done
fi
#... then the admin packages
if use admin; then
einfo "Installing admin packages"
for FILE in ${LTSP_ADMIN}
do
tar -xzf ${DISTDIR}/${FILE} -C ${D} 2>/dev/null
done
doexe ${D}/ltsp-utils/ltspadmin
doexe ${D}/ltsp-utils/ltspcfg
doexe ${D}/ltsp-utils/ltspinfo
rm -Rf ${D}/ltsp-utils
else
for FILE in ${LTSP_ADMIN}
do
tar -xzf ${DISTDIR}/${FILE} -C ${D} 2>/dev/null
done
doexe ${D}/ltsp-utils/ltspcfg
doexe ${D}/ltsp-utils/ltspinfo
rm -Rf ${D}/ltsp-utils
fi
#... then the debug packages
if use debug; then
einfo "Installing debug packages"
for FILE in ${LTSP_DEBUG}
do
tar -xzf ${DISTDIR}/${FILE} -C ${D}/opt/ltsp 2>/dev/null
done
fi
}
pkg_postinst() {
if use !kernel; then
einfo
einfo "WARNING: you did not choose to install the kernel packages with this emerge."
einfo "Please follow instructions for how to roll your own diskless kernel at: "
einfo " http://www.techsburg.com/gentoo/docs/ltspdoc.html"
fi
if use kernel; then
einfo
einfo "Either use ltspcfg to configure ltsp or follow the guide at gentoo.org:"
einfo " http://www.gentoo.org/doc/en/ltsp.xml"
einfo
fi
}
================ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vegebyte n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 Sep 2004 Posts: 2
|
Posted: Thu Sep 02, 2004 10:23 am Post subject: |
|
|
I'm giving it a go now
The automatic updates are a pain. Since you created the ebuild, ltsp-localdev has gone from 1.0-0 to 1.1-0, and worse, the project have taken the 1.0 version off their site
I'm new to Gentoo and Portage, but I managed to edit the ebuild to change the version number and update the digest.
---
It's just installed, but ltspadmin fails:
Code: | shuttle portage # ltspadmin
Can't locate URI.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.8.2/i686-linux /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.2/i686-linux /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.2/i686-linux /usr/lib/perl5/5.8.2 /usr/local/lib/site_perl .) at /usr/sbin/ltspadmin line 54.
BEGIN failed--compilation aborted at /usr/sbin/ltspadmin line 54. |
Sounds to me like I'm missing a Perl module, so the dependencies need looking at. However, ltspcfg works so I should be alright
Thanks for making the ebuild!
Cheers
Andy |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
borchi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1895872271424336aa8b741.jpg)
Joined: 05 Dec 2002 Posts: 44
|
Posted: Thu Sep 02, 2004 4:19 pm Post subject: |
|
|
i also needed to change the localdev version to 1.1.0 in ebuild.
everything is fine except that i can't get localdev to work with workstation's floppy in cdrom devices.
i followed the guide to localdev on http://www.ltsp.org/localdev.txt.
anyone with working localdev here? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
borchi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1895872271424336aa8b741.jpg)
Joined: 05 Dec 2002 Posts: 44
|
Posted: Thu Sep 02, 2004 5:03 pm Post subject: |
|
|
got localdev working. it was a typo in /etc/autofs/auto.misc ![Embarassed :oops:](images/smiles/icon_redface.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cloc3 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/39525275142a0fd302dc7e.gif)
Joined: 13 Jan 2004 Posts: 4810 Location: http://www.gentoo-users.org/user/cloc3/
|
Posted: Sun Sep 19, 2004 10:14 pm Post subject: |
|
|
Please change:
Code: |
use audiofile && LTSP_SOUND="${LTSP_SOUND} ltsp-audiofile-1.0-0-i386.tgz"
use esd && LTSP_SOUND="${LTSP_SOUND} ltsp-esd-1.0-0-i386.tgz"
use nas && LTSP_SOUND="${LTSP_SOUND} ltsp_nasd-1.1-0-i386.tgz"
|
with:
Code: |
use audiofile && LTSP_SOUND=${LTSP_SOUND}"ltsp-audiofile-1.0-0-i386.tgz "
use esd && LTSP_SOUND=${LTSP_SOUND}"ltsp-esd-1.0-0-i386.tgz "
use nas && LTSP_SOUND="${LTSP_SOUND}"ltsp_nasd-1.1-0-i386.tgz "
|
And add all other instructions to unpack and install LTSP_SOUND files. _________________ vu vu vu
gentù
mi piaci tu |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
robfish Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/511877967410592759c0f5.jpg)
Joined: 25 Nov 2002 Posts: 137 Location: New Zealand
|
Posted: Sun Sep 26, 2004 12:59 am Post subject: |
|
|
Today emerge -uU world updated LTSP to version 4.1-r1 and now my LTSP does not work.
After changing /etc/dhcp/dhcpd.conf to point to vmlinuz-2.4.26-ltsp-2 I seem to start booting but then it hangs on various other messages.
EDIT:
The Howto at http://www.gentoo.org/doc/en/ltsp.xml should be changed for this version.
What I did to get it working again:-
Code: | nano -w /etc/exports
#/opt/ltsp/i386 192.168.1.0/255.255.255.0(ro,no_root_squash,async)
/opt/ltsp-4.1/i386 192.168.1.0/255.255.255.0(ro,no_root_squash,async)
/var/opt/ltsp/swapfiles 192.168.1.0/255.255.255.0(rw,no_root_squash,async)
nano -w /etc/dhcp/dhcpd.conf
#option root-path "192.168.1.2:/opt/ltsp/i386";
option root-path "192.168.1.2:/opt/ltsp-4.1/i386"; |
_________________ RobFish |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|