summaryrefslogtreecommitdiffstats
path: root/perl-install/install/interactive.pm
blob: 3aa66a65704e94b3b908dd888758e177f01b5c51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package install::interactive; # $Id$

use diagnostics;
use strict;

use common;
use detect_devices;
use install::steps;
use log;


sub tellAboutProprietaryModules {
    my ($o) = @_;
    my @l = detect_devices::probe_name('Bad') or return;
    $o->ask_warn('', formatAlaTeX(
N("Some hardware on your computer needs ``proprietary'' drivers to work.
You can find some information about them at: %s", join(", ", @l))));
}

sub upNetwork {
    my ($o, $b_pppAvoided) = @_;
    my $_w = $o->wait_message('', N("Bringing up the network"));
    install::steps::upNetwork($o, $b_pppAvoided);
}
sub downNetwork {
    my ($o, $b_pppOnly) = @_;
    my $_w = $o->wait_message('', N("Bringing down the network"));
    install::steps::downNetwork($o, $b_pppOnly);
}



1;
sudo never build or run DrakX as root; install package sudo, and set up relevant permissions; the following should be enough: (in your /etc/sudoers) gc ALL=(root) NOPASSWD:/usr/bin/patch,NOPASSWD:/bin/rpm,NOPASSWD:/bin/mount,NOPASSWD:/bin/cp,NOPASSWD:/bin/umount,NOPASSWD:/usr/bin/install,NOPASSWD:/bin/rm,NOPASSWD:/bin/mv,NOPASSWD:/bin/tar,NOPASSWD:/bin/cpio,NOPASSWD:/bin/chown,NOPASSWD:/bin/mkdir,NOPASSWD:/usr/bin/strip,NOPASSWD:/bin/mknod (4) boot kernel you need one or more kernels and (all?) their modules. it's located in subdirectory "all.kernels" in DrakX-*.src.rpm ; if you ever grab (or build) another boot kernel, replace or add an entry in "all.kernels" as: (a) create your modules subdir (useful to describe the VERSION_RELEASE) and untar your kernel [gc@obiwan ~/cvs/gi/all.kernels] mkdir 2.4.1-BOOTcustom [gc@obiwan ~/cvs/gi/all.kernels] cd 2.4.1-BOOTcustom [gc@obiwan ~/cvs/gi/all.kernels/2.4.1-BOOTcustom] tar jxvf ~/mycustomkernel.tar.bz2 [gc@obiwan ~/cvs/gi/all.kernels/2.4.1-BOOTcustom] ls boot/ cardmgr/ lib/ (c) build kernel/modules stuff for stage1 and stage2 [gc@obiwan ~/cvs/gi] ./update_kernel (5) pray [gc@obiwan ~/cvs/gi] make --------------------------------------------------------------------------- The comments written with #- are automatically stripped out at install. --------------------------------------------------------------------------- testing all: go to the perl-install directory and execute ./g_auto_install --test You should be able to test the whole thing in a non-destructive way. NEVER compile and/or execute DrakX as root! Here is how I (dams) made it work on my computer. ------------------------------------------------- - get the sources - install the librairies needed included newt-devel gtk+-devel popt-devel popt gtk-engines - cd path/to/gi - make - mkdir /usr/share/gtk - ln -s path/to/gi/perl-install/share/themes /usr/share/gtk - ln -s path/to/gi/perl-install/share/step-* /usr/share - ln -s path/to/gi/perl-install/share/help.xpm /usr/share - ln -s path/to/gi/perl-install/share/isdn* /etc/sysconfdir/network-scripts - have a cd architecture linked on /export - ln -s /export /tmp/rhimage - export PERL_INSTALL_TEST=1 - cd path/to/gi/perl-install - gendistrib --noclean --distrib /export - ./install2 in root (dangerous) or chmod a+r /dev/hd* and ./install2 in user address all bugreports to dave@null.com