Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: garmada 31 Října 2008, 11:03:36
-
Plz poradte ako vytvorit script alebo balik ktory nainstaluje programy ktore chcem.
A tiez kde su ulozene .deb balicky a ako pomocou programu reconstructor pridam do live cd dalsie programy, myslim ze je to pri tom kroku pridat alebo odobrat software.
Prave som zistil ze k tomu treba urobit moduly ktore sa potom nacitaju a stiahnu a nainstaluju baliky.
Tu je priklad:#!/bin/sh
#
# Reconstructor Module - Aria
# Copyright (c) 2006 Reconstructor Team <http://reconstructor.aperantis.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
RMOD_ENGINE=1.0
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Networking'
RMOD_NAME='Aria'
RMOD_AUTHOR='TheeMahn'
RMOD_VERSION=0.1
RMOD_DESCRIPTION='Installs Aria download manager software.'
RMOD_RUN_IN_CHROOT=True
RMOD_UPDATE_URL='http://reconstructor.aperantis.com/update/modules/'
echo Running $RMOD_NAME...
apt-get update
apt-get install -y aria
# clean cache
apt-get clean
apt-get autoclean
echo $RMOD_NAME Finished...
Mam len otazku ako to funguje, myslim tym ze na instalaciu asi treba mat pripojenie na internet, nedalo by sa to spravit tak aby sa instalovali programy z deb balikov?