You are not logged in.
Pages: 1
how can I make this work , I have tried everything , this is a nice option to keep the base small and just add the modules you want for that session.
# Install all packages in /home/boot/packages. In live CD and
# USB mode the option home= mounts the device on /home, so we
# already have a boot directory with the Kernel and rootfs.
if [ -d "/home/boot/packages" ]; then
for pkg in /home/boot/packages/*.tazpkg
do
tazpkg install $pkg
done
fi ;;
Offline
I guess it doesn't work since you forgot about dependencies. If the desired package needs ithers, it will try to tazpkg get-install them. If you don't have a working connection, that won't work and the package might be installed but not working.
I chose a similar way, installing small to medium packages just in time when i need them instead of at boot time. I added some specific sudo-rights for my user and added a script in /usr/bin which is called by symbolic links that identify the desired package. I put all packages incl. dependencies in a directory, relink /var/cache/tazpkg there and tazpkg GET-install the package. Since it already resides in the (linked) cache, it's installed without being downloaded again.
For bigger packages (Acroread, Skype, OpenOffice, Thunderbird, Seamonkey, Java), I put together the package with some of the needed libraries and put them together in a squashfs-file, which I simply mount and start the package from. By that, no timeconsuming installation is required but the package works out of the box....
Offline
Here's the necessary /etc/sudoers file (which somehow isn't accepted as a file by this forum):
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
user1 slitaz=(root)NOPASSWD:/bin/mv /var/cache/tazpkg /var/cache/tazpkg.orig
user1 slitaz=(root)NOPASSWD:/bin/ln -s /mnt/Slitaz_common/tazpkg /var/cache/tazpkg
user1 slitaz=(root)NOPASSWD:/usr/bin/tazpkg get-install mplayer
user1 slitaz=(root)NOPASSWD:/usr/bin/tazpkg get-install smplayer
user1 slitaz=(root)NOPASSWD:/usr/bin/tazpkg get-install gparted
user1 slitaz=(root)NOPASSWD:/usr/bin/tazpkg get-install vlc
user1 slitaz=(root)NOPASSWD:/usr/bin/tazpkg get-install wvdial
user1 slitaz=(root)NOPASSWD:/bin/rm /var/cache/tazpkg
user1 slitaz=(root)NOPASSWD:/bin/mv /var/cache/tazpkg.orig /var/cache/tazpkg
user1 slitaz=(root)NOPASSWD:/bin/umount /mnt
user1 slitaz=(root)NOPASSWD:/bin/mount /tmp/mnt
user1 slitaz=(root)NOPASSWD:/bin/umount /tmp/mnt
user1 slitaz=(root)NOPASSWD:/bin/umount /usr/lib/java
user1 slitaz=(root)NOPASSWD:/bin/umount /usr/lib/firefox
user1 slitaz=(root)NOPASSWD:/bin/umount /usr/lib/thunderbird
user1 slitaz=(root)NOPASSWD:/bin/umount /usr/lib/seamonkey
user1 slitaz=(root)NOPASSWD:/bin/umount /usr/lib/skype
user1 slitaz=(root)NOPASSWD:/bin/umount /usr/lib/openoffice
user1 slitaz=(root)NOPASSWD:/bin/umount /usr/lib/acroread
user1 slitaz=(root)NOPASSWD:/bin/umount /usr/share/mplayer
Offline
Pages: 1
[ Generated in 0.020 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]