1
0
Fork 0

ajout et mise à jour des outils

This commit is contained in:
Daniel Tartavel 2021-09-29 14:27:51 +02:00
parent 1e9d4d3448
commit a39315e9db
14 changed files with 1303 additions and 0 deletions

515
8_auto_inst.cfg.pl Executable file
View File

@ -0,0 +1,515 @@
#!/usr/bin/perl -cw
#
# You should check the syntax of this file before using it in an auto-install.
# You can do this with 'perl -cw auto_inst.cfg.pl' or by executing this file
# (note the '#!/usr/bin/perl -cw' on the first line).
$o = {
'X' => {
'monitors' => [
{
'VendorName' => 'Plug\'n Play',
'manually_chosen' => 1
}
],
'resolution_wanted' => 'x'
},
'authentication' => {
'sha512' => 1,
'shadow' => 1
},
'autoExitInstall' => '1',
'default_packages' => [
'acpi',
'acpid',
'akonadi',
'akonadi-import-wizard',
'akregator-handbook',
'aoss',
'aria2',
'ark',
'ark-handbook',
'autocorr-fr',
'baloo',
'baloo-widgets',
'basesystem',
'bash-completion',
'bc',
'bind-utils',
'bluedevil',
'bluez-firmware',
'bluez-qt',
'breeze',
'breeze-common',
'breeze-gtk',
'cdrkit-genisoimage',
'chrony',
'clementine',
'comgt',
'coreutils-doc',
'cpupower',
'cronie-anacron',
'dconf',
'dcraw',
'dhcp-client',
'dmraid',
'dnf',
'dnf-plugins-core',
'dnf-yum',
'dracut',
'dragon-handbook',
'drakconf',
'drakguard',
'drakx-net',
'drakx-net-applet',
'drakxtools',
'drakxtools-curses',
'dump',
'dvdauthor',
'enchant',
'enscript',
'eventviews',
'faad2',
'ffmpeg',
'ffmpeg2theora',
'ffmpegthumbs',
'file',
'filezilla',
'firefox',
'firefox-fr',
'flac',
'flash-player-plugin',
'fonts-ttf-decoratives',
'fonts-ttf-west_european',
'frei0r',
'ghostscript',
'ghostscript-common',
'ghostscript-module-X',
'giftrans',
'gimp',
'gimp-help-fr',
'glib2.0-common',
'gnupg',
'gnupg2',
'gphoto2',
'gpm',
'grub-doc',
'grub2',
'grub2-common',
'grub2-mageia-theme',
'gstreamer1.0-a52dec',
'gstreamer1.0-amrnb',
'gstreamer1.0-cdio',
'gstreamer1.0-dv',
'gstreamer1.0-faad',
'gstreamer1.0-farstream',
'gstreamer1.0-flac',
'gstreamer1.0-gme',
'gstreamer1.0-gsm',
'gstreamer1.0-lame',
'gstreamer1.0-mms',
'gstreamer1.0-mpeg',
'gstreamer1.0-neon',
'gstreamer1.0-ofa',
'gstreamer1.0-plugins-ugly',
'gstreamer1.0-pulse',
'gstreamer1.0-rtmp',
'gstreamer1.0-soup',
'gstreamer1.0-speex',
'gstreamer1.0-twolame',
'gstreamer1.0-wavpack',
'gstreamer1.0-x264',
'gstreamer1.0-x265',
'gvfs-archive',
'gvfs-fuse',
'gvfs-goa',
'gvfs-gphoto2',
'gvfs-iphone',
'gvfs-mtp',
'gvfs-smb',
'gwenview',
'gwenview-handbook',
'harddrake',
'hawkey-man',
'hdparm',
'hexedit',
'hplip-model-data',
'html2text',
'hunspell',
'hunspell-en',
'icedtea-web',
'icewm-i18n',
'icewm-light',
'icu58-data',
'imagemagick',
'incidenceeditor',
'info',
'iproute2',
'irqbalance',
'iwlwifi-firmware',
'java-1.8.0-openjdk',
'json-glib',
'kaccounts-integration',
'kactivities',
'kaddressbook',
'kalarm',
'kamera',
'kamera-handbook',
'kcalc',
'kcalc-handbook',
'kcharselect',
'kcharselect-handbook',
'kcmutils',
'kcolorchooser',
'kcron',
'kcron-handbook',
'kde-cli-tools',
'kde-l10n-fr',
'kded',
'kdegraphics-mobipocket',
'kdegraphics-thumbnailers',
'kdenlive',
'kdeplasma-addons',
'kdesu',
'kdnssd',
'kdoctools',
'kernel-desktop-latest',
'kernel-firmware-nonfree',
'kfilemetadata',
'kgamma5',
'kglobalaccel',
'kholidays',
'khtml',
'kidletime',
'kinfocenter',
'kio',
'kio5-sieve',
'kipi-common',
'kipi-plugins',
'kipi-plugins-facebook',
'kipi-plugins-flashexport',
'kipi-plugins-flickr',
'kipi-plugins-kmlexport',
'kipi-plugins-piwigo',
'kipi-plugins-printimages',
'kipi-plugins-rajceexport',
'kipi-plugins-sendimages',
'kipi-plugins-smug',
'kipi-plugins-vkontakte',
'kipi-plugins-yandexfotki',
'kjobwidgets',
'kjots',
'kldap',
'kldap-handbook',
'kleopatra-handbook',
'kmail',
'kmailtransport',
'kmailtransport-handbook',
'kmenuedit',
'kmozillahelper',
'knotes-handbook',
'knotifyconfig',
'kolourpaint',
'kolourpaint-handbook',
'konsole-doc',
'kontact',
'kontact-handbook',
'kontactinterface',
'konversation',
'korganizer',
'kpeople',
'kross',
'krunner',
'kscreen',
'kscreenlocker',
'kservice',
'ksysguard',
'ktexteditor',
'ktexteditor-plugins',
'ktextwidgets',
'ktimer',
'ktimer-handbook',
'ktorrent',
'kwallet',
'kwallet-pam',
'kwalletmanager',
'kwalletmanager-handbook',
'kwin',
'kwrite-handbook',
'ladspa',
'lame',
'ldetect',
'ldetect-lst',
'lftp',
'libreoffice',
'libreoffice-langpack-fr',
'locales',
'lsof',
'lvm2',
'lynx',
'mageia-gfxboot-theme',
'mageia-theme-screensavers',
'mageiawelcome',
'mailimporter',
'man-pages',
'man-pages-fr',
'mandi-ifw',
'marble',
'marble-handbook',
'mariadb-common',
'mariadb-common-core',
'mc',
'mencoder',
'meta-task',
'mgaonline',
'microcode',
'microcode_ctl',
'mjpegtools',
'mkxauth',
'mlocate',
'monitor-edid',
'mp3gain',
'mpeg2dec',
'mpgtx',
'mplayer',
'msec',
'msec-gui',
'mtools',
'nano',
'ncurses',
'net_monitor',
'netprofile-plugin-firewall',
'netprofile-plugin-network',
'netprofile-plugin-proxy',
'netprofile-plugin-services',
'netprofile-plugin-urpmi',
'nmap',
'notification-daemon-engine-nodoka',
'nss',
'nss-myhostname',
'ntfs-3g',
'numlock',
'okular-handbook',
'open',
'openssh',
'openssh-clients',
'openssl',
'os-prober',
'oxygen-icons5',
'p7zip',
'patch',
'perl-Time-HiRes',
'perl-XML-LibXML',
'perl-doc',
'phonon4qt5',
'phonon4qt5-vlc',
'pidgin-plugins',
'pinentry-gnome3',
'plasma-integration',
'plasma-pa',
'plasma-workspace',
'plymouth-system-theme',
'poppler-data',
'preload',
'procmail',
'psutils',
'pulseaudio-module-gconf',
'pulseaudio-module-zeroconf',
'python',
'python3-dnf-plugins-core',
'python3-rpm',
'python3-smbc',
'qttools5',
'qttools5-assistant',
'radeon-firmware',
'ralink-firmware',
'rdist',
'readahead',
'recode',
'recordmydesktop',
'rfkill',
'rootcerts',
'rootcerts-java',
'rpm',
'rsync',
's2u',
'sane-backends-iscan',
'screen',
'scribus',
'sddm',
'sddm-kcm',
'seahorse',
'sectool',
'shadow-utils',
'sharutils',
'shorewall-ipv6',
'skrooge',
'solid',
'sonnet',
'sound-scripts',
'soundwrapper',
'spectacle',
'speex',
'sqlite3-tools',
'strace',
'sudo',
'symlinks',
'system-config-printer',
'systemd',
'systemsettings',
'task-codec-audio',
'task-codec-video',
'task-lalis',
'task-plasma5-minimal',
'task-pulseaudio',
'telepathy-haze',
'telepathy-idle',
'telepathy-kde-common-internals-core',
'telepathy-kde-desktop-applets',
'telepathy-kde-send-file',
'telepathy-salut',
'tmpwatch',
'tree',
'twolame',
'ufraw-gimp',
'unar',
'usbutils',
'vim-enhanced',
'vim-minimal',
'vlc',
'vlc-plugin-common',
'vlc-plugin-flac',
'vlc-plugin-lua',
'vlc-plugin-pulse',
'vlc-plugin-speex',
'vlc-plugin-theora',
'vorbis-tools',
'vorbisgain',
'wget',
'wireless-tools',
'words',
'x11-driver-input',
'x11-driver-video',
'x11-driver-video-vboxvideo',
'x11-font-bh-type1',
'x11-server-xorg',
'x264',
'xdg-utils',
'xdm',
'xev',
'xorg-x11-75dpi-fonts',
'xorriso',
'yelp',
'zeroconf-ioslave',
'zip'
],
'enabled_media' => [
'Core Release',
'Core Updates',
'Nonfree Release',
'Nonfree Updates',
'Tainted Release',
'Tainted Updates'
],
'interactiveSteps' => [
'doPartitionDisks',
'formatPartitions',
'summary'
],
'keyboard' => {
'GRP_TOGGLE' => '',
'KEYBOARD' => 'fr'
},
'locale' => {
'IM' => undef,
'country' => 'FR',
'lang' => 'fr',
'langs' => {
'fr' => 1
},
'utf8' => 1
},
'miscellaneous' => {
'numlock' => 1,
'HDPARM' => 1
},
'mouse' => {
'EmulateWheel' => undef,
'MOUSETYPE' => 'ps/2',
'Protocol' => 'ExplorerPS/2',
'device' => 'input/mice',
'evdev_mice' => [
{
'HWheelRelativeAxisButtons' => '7 6',
'device' => '/dev/input/by-id/usb-noserial-event-mouse'
}
],
'evdev_mice_all' => [
{
'HWheelRelativeAxisButtons' => '7 6',
'device' => '/dev/input/by-id/usb-noserial-event-mouse'
}
],
'name' => 'Any PS/2 & USB mice',
'nbuttons' => 7,
'synaptics' => undef,
'type' => 'Universal',
'wacom' => []
},
'net' => {
'PROFILE' => 'default',
'ethernet' => {},
'ifcfg' => {
},
'net_interface' => '',
'network' => {
'CRDA_DOMAIN' => 'FR',
'FORWARD_IPV4' => 'false',
'GATEWAY' => '',
'NETWORKING' => 'yes'
},
'resolv' => {
'DOMAINNAME' => undef,
'DOMAINNAME2' => undef,
'DOMAINNAME3' => undef,
'dnsServer' => undef,
'dnsServer2' => undef,
'dnsServer3' => undef
},
'type' => 'ethernet',
'wireless' => {},
'zeroconf' => {}
},
'bootloader' => {
'method' => 'grub2-graphic',
'boot' => '/dev/sda',
'timeout' => 5,
'crushMbr' => 1,
},
'security' => 1,
'security_user' => undef,
'superuser' => {
'gid' => '0',
'home' => '/root',
'pw' => '$6$4olYuu4o35YoPivZ$jJVF1JHdP9g2rMRivkHywyPZfHe/b/d9RtD09/0p8NBRmCgTQy0x5rgHcBm18D66Dqf0HSZcd8QjSAgiAaV1/1',
'realname' => 'root',
'shell' => '/bin/bash',
'uid' => '0'
},
'timezone' => {
'UTC' => 0,
'ntp' => 'pool.ntp.org',
'timezone' => 'Europe/Paris'
},
'users' => [
{
'gid' => '500',
'groups' => [],
'icon' => 'default',
'name' => 'lalis',
'password' => 'lalis',
'realname' => undef,
'shell' => '/bin/bash',
'uid' => '500'
}
]
};

549
8_auto_inst.cfg_fullauto.pl Executable file
View File

@ -0,0 +1,549 @@
#!/usr/bin/perl -cw
#
# You should check the syntax of this file before using it in an auto-install.
# You can do this with 'perl -cw auto_inst.cfg.pl' or by executing this file
# (note the '#!/usr/bin/perl -cw' on the first line).
$o = {
'X' => {
'monitors' => [
{
'VendorName' => 'Plug\'n Play',
'manually_chosen' => 1
}
],
'resolution_wanted' => 'x'
},
'authentication' => {
'sha512' => 1,
'shadow' => 1
},
'autoExitInstall' => '0',
'default_packages' => [
'acpi',
'acpid',
'akonadi',
'akonadi-import-wizard',
'akregator-handbook',
'aoss',
'aria2',
'ark',
'ark-handbook',
'autocorr-fr',
'baloo',
'baloo-widgets',
'basesystem',
'bash-completion',
'bc',
'bind-utils',
'bluedevil',
'bluez-firmware',
'bluez-qt',
'breeze',
'breeze-common',
'breeze-gtk',
'cdrkit-genisoimage',
'chrony',
'clementine',
'comgt',
'coreutils-doc',
'cpupower',
'cronie-anacron',
'dconf',
'dcraw',
'dhcp-client',
'dmraid',
'dnf',
'dnf-plugins-core',
'dnf-yum',
'dracut',
'dragon-handbook',
'drakconf',
'drakguard',
'drakx-net',
'drakx-net-applet',
'drakxtools',
'drakxtools-curses',
'dump',
'dvdauthor',
'enchant',
'enscript',
'eventviews',
'faad2',
'ffmpeg',
'ffmpeg2theora',
'ffmpegthumbs',
'file',
'filezilla',
'firefox',
'firefox-fr',
'flac',
'flash-player-plugin',
'fonts-ttf-decoratives',
'fonts-ttf-west_european',
'frei0r',
'ghostscript',
'ghostscript-common',
'ghostscript-module-X',
'giftrans',
'gimp',
'gimp-help-fr',
'glib2.0-common',
'gnupg',
'gnupg2',
'gphoto2',
'gpm',
'grub-doc',
'grub2',
'grub2-common',
'grub2-mageia-theme',
'gstreamer1.0-a52dec',
'gstreamer1.0-amrnb',
'gstreamer1.0-cdio',
'gstreamer1.0-dv',
'gstreamer1.0-faad',
'gstreamer1.0-farstream',
'gstreamer1.0-flac',
'gstreamer1.0-gme',
'gstreamer1.0-gsm',
'gstreamer1.0-lame',
'gstreamer1.0-mms',
'gstreamer1.0-mpeg',
'gstreamer1.0-neon',
'gstreamer1.0-ofa',
'gstreamer1.0-plugins-ugly',
'gstreamer1.0-pulse',
'gstreamer1.0-rtmp',
'gstreamer1.0-soup',
'gstreamer1.0-speex',
'gstreamer1.0-twolame',
'gstreamer1.0-wavpack',
'gstreamer1.0-x264',
'gstreamer1.0-x265',
'gvfs-archive',
'gvfs-fuse',
'gvfs-goa',
'gvfs-gphoto2',
'gvfs-iphone',
'gvfs-mtp',
'gvfs-smb',
'gwenview',
'gwenview-handbook',
'harddrake',
'hawkey-man',
'hdparm',
'hexedit',
'hplip-model-data',
'html2text',
'hunspell',
'hunspell-en',
'icedtea-web',
'icewm-i18n',
'icewm-light',
'icu58-data',
'imagemagick',
'incidenceeditor',
'info',
'iproute2',
'irqbalance',
'iwlwifi-firmware',
'java-1.8.0-openjdk',
'json-glib',
'kaccounts-integration',
'kactivities',
'kaddressbook',
'kalarm',
'kamera',
'kamera-handbook',
'kcalc',
'kcalc-handbook',
'kcharselect',
'kcharselect-handbook',
'kcmutils',
'kcolorchooser',
'kcron',
'kcron-handbook',
'kde-cli-tools',
'kde-l10n-fr',
'kded',
'kdegraphics-mobipocket',
'kdegraphics-thumbnailers',
'kdenlive',
'kdeplasma-addons',
'kdesu',
'kdnssd',
'kdoctools',
'kernel-desktop-latest',
'kernel-firmware-nonfree',
'kfilemetadata',
'kgamma5',
'kglobalaccel',
'kholidays',
'khtml',
'kidletime',
'kinfocenter',
'kio',
'kio5-sieve',
'kipi-common',
'kipi-plugins',
'kipi-plugins-facebook',
'kipi-plugins-flashexport',
'kipi-plugins-flickr',
'kipi-plugins-kmlexport',
'kipi-plugins-piwigo',
'kipi-plugins-printimages',
'kipi-plugins-rajceexport',
'kipi-plugins-sendimages',
'kipi-plugins-smug',
'kipi-plugins-vkontakte',
'kipi-plugins-yandexfotki',
'kjobwidgets',
'kjots',
'kldap',
'kldap-handbook',
'kleopatra-handbook',
'kmail',
'kmailtransport',
'kmailtransport-handbook',
'kmenuedit',
'kmozillahelper',
'knotes-handbook',
'knotifyconfig',
'kolourpaint',
'kolourpaint-handbook',
'konsole-doc',
'kontact',
'kontact-handbook',
'kontactinterface',
'konversation',
'korganizer',
'kpeople',
'kross',
'krunner',
'kscreen',
'kscreenlocker',
'kservice',
'ksysguard',
'ktexteditor',
'ktexteditor-plugins',
'ktextwidgets',
'ktimer',
'ktimer-handbook',
'ktorrent',
'kwallet',
'kwallet-pam',
'kwalletmanager',
'kwalletmanager-handbook',
'kwin',
'kwrite-handbook',
'ladspa',
'lame',
'ldetect',
'ldetect-lst',
'lftp',
'libreoffice',
'libreoffice-langpack-fr',
'locales',
'lsof',
'lvm2',
'lynx',
'mageia-gfxboot-theme',
'mageia-theme-screensavers',
'mageiawelcome',
'mailimporter',
'man-pages',
'man-pages-fr',
'mandi-ifw',
'marble',
'marble-handbook',
'mariadb-common',
'mariadb-common-core',
'mc',
'mencoder',
'meta-task',
'mgaonline',
'microcode',
'microcode_ctl',
'mjpegtools',
'mkxauth',
'mlocate',
'monitor-edid',
'mp3gain',
'mpeg2dec',
'mpgtx',
'mplayer',
'msec',
'msec-gui',
'mtools',
'nano',
'ncurses',
'net_monitor',
'netprofile-plugin-firewall',
'netprofile-plugin-network',
'netprofile-plugin-proxy',
'netprofile-plugin-services',
'netprofile-plugin-urpmi',
'nmap',
'notification-daemon-engine-nodoka',
'nss',
'nss-myhostname',
'ntfs-3g',
'numlock',
'okular-handbook',
'open',
'openssh',
'openssh-clients',
'openssl',
'os-prober',
'oxygen-icons5',
'p7zip',
'patch',
'perl-Time-HiRes',
'perl-XML-LibXML',
'perl-doc',
'phonon4qt5',
'phonon4qt5-vlc',
'pidgin-plugins',
'pinentry-gnome3',
'plasma-integration',
'plasma-pa',
'plasma-workspace',
'plymouth-system-theme',
'poppler-data',
'preload',
'procmail',
'psutils',
'pulseaudio-module-gconf',
'pulseaudio-module-zeroconf',
'python',
'python3-dnf-plugins-core',
'python3-rpm',
'python3-smbc',
'qttools5',
'qttools5-assistant',
'radeon-firmware',
'ralink-firmware',
'rdist',
'readahead',
'recode',
'recordmydesktop',
'rfkill',
'rootcerts',
'rootcerts-java',
'rpm',
'rsync',
's2u',
'sane-backends-iscan',
'screen',
'scribus',
'sddm',
'sddm-kcm',
'seahorse',
'sectool',
'shadow-utils',
'sharutils',
'shorewall-ipv6',
'skrooge',
'solid',
'sonnet',
'sound-scripts',
'soundwrapper',
'spectacle',
'speex',
'sqlite3-tools',
'strace',
'sudo',
'symlinks',
'system-config-printer',
'systemd',
'systemsettings',
'task-codec-audio',
'task-codec-video',
'task-lalis',
'task-plasma5-minimal',
'task-pulseaudio',
'telepathy-haze',
'telepathy-idle',
'telepathy-kde-common-internals-core',
'telepathy-kde-desktop-applets',
'telepathy-kde-send-file',
'telepathy-salut',
'tmpwatch',
'tree',
'twolame',
'ufraw-gimp',
'unar',
'usbutils',
'vim-enhanced',
'vim-minimal',
'vlc',
'vlc-plugin-common',
'vlc-plugin-flac',
'vlc-plugin-lua',
'vlc-plugin-pulse',
'vlc-plugin-speex',
'vlc-plugin-theora',
'vorbis-tools',
'vorbisgain',
'wget',
'wireless-tools',
'words',
'x11-driver-input',
'x11-driver-video',
'x11-driver-video-vboxvideo',
'x11-font-bh-type1',
'x11-server-xorg',
'x264',
'xdg-utils',
'xdm',
'xev',
'xorg-x11-75dpi-fonts',
'xorriso',
'yelp',
'zeroconf-ioslave',
'zip'
],
'enabled_media' => [
'Core Release',
'Core Updates',
'Nonfree Release',
'Nonfree Updates',
'Tainted Release',
'Tainted Updates'
],
'interactiveSteps' => [
'summary'
],
'keyboard' => {
'GRP_TOGGLE' => '',
'KEYBOARD' => 'fr'
},
'locale' => {
'IM' => undef,
'country' => 'FR',
'lang' => 'fr',
'langs' => {
'fr' => 1
},
'utf8' => 1
},
'miscellaneous' => {
'numlock' => 1,
'HDPARM' => 1
},
'mouse' => {
'EmulateWheel' => undef,
'MOUSETYPE' => 'ps/2',
'Protocol' => 'ExplorerPS/2',
'device' => 'input/mice',
'evdev_mice' => [
{
'HWheelRelativeAxisButtons' => '7 6',
'device' => '/dev/input/by-id/usb-noserial-event-mouse'
}
],
'evdev_mice_all' => [
{
'HWheelRelativeAxisButtons' => '7 6',
'device' => '/dev/input/by-id/usb-noserial-event-mouse'
}
],
'name' => 'Any PS/2 & USB mice',
'nbuttons' => 7,
'synaptics' => undef,
'type' => 'Universal',
'wacom' => []
},
'net' => {
'PROFILE' => 'default',
'ethernet' => {},
'ifcfg' => {
},
'net_interface' => '',
'network' => {
'CRDA_DOMAIN' => 'FR',
'FORWARD_IPV4' => 'false',
'GATEWAY' => '',
'NETWORKING' => 'yes'
},
'resolv' => {
'DOMAINNAME' => undef,
'DOMAINNAME2' => undef,
'DOMAINNAME3' => undef,
'dnsServer' => undef,
'dnsServer2' => undef,
'dnsServer3' => undef
},
'type' => 'ethernet',
'wireless' => {},
'zeroconf' => {}
},
'bootloader' => {
'method' => 'grub2-graphic',
'boot' => '/dev/sda',
'timeout' => 5,
'crushMbr' => 1,
},
'partitioning' => {
'auto_allocate' => '1',
'clearall' => 1,
'eraseBadPartitions' => 0,
'no_bad_drives' => 0,
},
'partitions' => [
{
'fs_type' => 'ext4',
'hd' => 'sda',
'mntpoint' => '/boot',
'options' => 'relatime,acl',
'size' => 1562500
},
{
'fs_type' => 'ext4',
'hd' => 'sda',
'mntpoint' => '/',
'options' => 'relatime,acl',
'size' => 39062500
},
{
'fs_type' => 'swap',
'hd' => 'sda',
'mntpoint' => 'swap',
'options' => 'defaults',
'size' => 7812500
},
{
'fs_type' => 'ext4',
'hd' => 'sda',
'mntpoint' => '/home',
'options' => 'relatime,acl',
'ratio' => 100
},
],
'security' => 1,
'security_user' => undef,
'superuser' => {
'gid' => '0',
'home' => '/root',
'pw' => '$6$4olYuu4o35YoPivZ$jJVF1JHdP9g2rMRivkHywyPZfHe/b/d9RtD09/0p8NBRmCgTQy0x5rgHcBm18D66Dqf0HSZcd8QjSAgiAaV1/1',
'realname' => 'root',
'shell' => '/bin/bash',
'uid' => '0'
},
'timezone' => {
'UTC' => 0,
'ntp' => 'pool.ntp.org',
'timezone' => 'Europe/Paris'
},
'users' => [
{
'gid' => '500',
'groups' => [],
'icon' => 'default',
'name' => 'lalis',
'password' => 'lalis',
'realname' => undef,
'shell' => '/bin/bash',
'uid' => '500'
}
]
};

82
8_auto_inst.cfg_upgrade.pl Executable file
View File

@ -0,0 +1,82 @@
#!/usr/bin/perl -cw
#
# You should check the syntax of this file before using it in an auto-install.
# You can do this with 'perl -cw auto_inst.cfg.pl' or by executing this file
# (note the '#!/usr/bin/perl -cw' on the first line).
$o = {
'X' => {
'monitors' => [
{
'VendorName' => 'Plug\'n Play',
'manually_chosen' => 1
}
],
'resolution_wanted' => 'x'
},
'authentication' => {
'sha512' => 1,
'shadow' => 1
},
'autoExitInstall' => '1',
'default_packages' => [
],
'enabled_media' => [
'Core Release',
'Core Updates',
'Nonfree Release',
'Nonfree Updates',
'Tainted Release',
'Tainted Updates'
],
'interactiveSteps' => [
'summary'
],
'keyboard' => {
'GRP_TOGGLE' => '',
'KEYBOARD' => 'fr'
},
'locale' => {
'IM' => undef,
'country' => 'FR',
'lang' => 'fr',
'langs' => {
'fr' => 1
},
'utf8' => 1
},
'miscellaneous' => {
'numlock' => 1,
'HDPARM' => 1
},
'net' => {
'PROFILE' => 'default',
'ethernet' => {},
'ifcfg' => {
},
'net_interface' => '',
'network' => {
'CRDA_DOMAIN' => 'FR',
'FORWARD_IPV4' => 'false',
'GATEWAY' => '',
'NETWORKING' => 'yes'
},
'resolv' => {
'DOMAINNAME' => undef,
'DOMAINNAME2' => undef,
'DOMAINNAME3' => undef,
'dnsServer' => undef,
'dnsServer2' => undef,
'dnsServer3' => undef
},
'type' => 'ethernet',
'wireless' => {},
'zeroconf' => {}
},
'security' => 1,
'security_user' => undef,
'timezone' => {
'UTC' => 0,
'ntp' => 'pool.ntp.org',
'timezone' => 'Europe/Paris'
},
};

22
cp-task-lalis.sh Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/bash
MIRRORPATH=/mnt/lalis/mirror/mageia/lalis/
for X in 7 8
{
rsync -aP SRPMS/*mga$X* $MIRRORPATH/$X/SRPMS/core/
if [ $? -ne 0 ]; then
echo "error rsync : $LINENO"
#exit 1
fi
for ARCH in x86_64 i586 #aarch64 armv7hl
{
rsync -aP RPMS/noarch/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/
if [ $? -ne 0 ]; then
echo "error rsync : $LINENO"
#exit 1
fi
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir --mediacfg $MIRRORPATH/$X/$ARCH/media/media_info/media.cfg $MIRRORPATH/$X/$ARCH
}
}
chmod a+rX -R .

5
git_task-lalis.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
cd /mnt/lalis/data/develop/task-lalis
git pull git@git.labolyon.fr:DTux/task-lalis.git
bm -al

10
kill_ssh.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/sh
for x in `ps h -u ssh -o pid`
do
echo $x "=>"
grep ssh /proc/$x/status
if [ $? -eq 0 ]; then
kill $x
fi
done

10
kill_ssh_daniel.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/sh
for x in `ps h -u daniel -o pid`
do
echo $x "=>"
grep ssh /proc/$x/status
if [ $? -eq 0 ]; then
kill $x
fi
done

10
list_ssh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/sh
for x in `ps h -u ssh -o pid`
do
echo $x "=>"
grep ssh /proc/$x/status
if [ $? -eq 0 ]; then
echo $x
fi
done

8
mount+chroot Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
mount -B /dev $1/dev
mount -B /sys $1/sys
mount -B /proc $1/proc
chroot $1
umount $1/dev
umount $1/sys
umount $1/proc

62
sauvegarde.sh Executable file
View File

@ -0,0 +1,62 @@
#!/bin/bash
# Script de sauvegarde
# Daniel Tartavel (lalis.fr)
# directory to backup
npid=0
npid=`pidof -o %PPID -x sauvegarde.sh`
echo "#$npid#"
if [ -n "$npid" ]; then exit; fi
REP="journaliere"
if [ "$1" = "mensuelle" ]; then
REP=$1
fi
MSG='Content-Type: text/plain ;charset="utf-8"\nContent-Transfer-Econding: 8bit\n\n'
DDIR="dtux.ddns.net::save/serveur_lalis/$REP"
SDIRX=("/mnt/lalis" "/var/www" "/etc" "/var/lib/mysql" "/var/lib/tftpboot" "/usr/local/bin" "/mnt/nextcloud_data")
#SDIRX=("/var/www" "/etc" "/var/lib/mysql" "/var/lib/tftpboot" "/usr/local/bin")
FLAG=0
# excludes file - this contains a wildcard pattern per line of files to exclude
EXCLUDES=excludes.lst
INCLUDES=includes.lst
########################################################################
BACKUPFILE=`date +%g%m%d%H%M`
OPTS="--port 8073 --blocking-io --force --ignore-errors --delete-excluded --delete --backup --backup-dir=../deleted_$REP --suffix=$BACKUPFILE -alogtpxAX --delete-after --progress --relative --bwlimit=30M "
export PATH=$PATH:/bin:/usr/bin:/usr/local/bin
for SDIR in ${SDIRX[*]}; do
if [ -a $SDIR/$EXCLUDES ]; then
OPTS=$OPTS" --exclude-from=$SDIR/$EXCLUDES "
elif [ -a /etc/sauvegarde/$EXCLUDES ]; then
OPTS=$OPTS" --exclude-from=/etc/sauvegarde/$EXCLUDES "
fi
if [ -a $SDIR/$INCLUDES ]; then
OPTS=$OPTS" --include-from=$SDIR/$INCLUDES "
elif [ -a /etc/sauvegarde/$INCLUDES ]; then
OPTS=$OPTS" --include-from=/etc/sauvegarde/$INCLUDES "
fi
echo "rsync $OPTS $SDIR $DDIR/"
MSG=$MSG"rsync $OPTS $SDIR $DDIR/ => "
rsync $OPTS $SDIR $DDIR/
RET=$?
if [ $RET -ne 0 ]; then
MSG=$MSG"Erreur, code de retour : $RET\r\n"
FLAG=1
else
MSG=$MSG"OK, code de retour : $RET\r\n"
fi
done
if [ $FLAG -eq 1 ]; then
OBJ="Subject: [LALISNO] Problème lors de la sauvegarde\n"
else
OBJ="Subject: [LALISOK] Sauvegarde réussie\n"
fi
printf "$OBJ\n$MSG" | sendmail -f contact@lalis.fr contact@lalis.fr

12
sauvegarde_bases.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
echo "sauvegarde bases serveur Lalis"
mysqldump --default-character-set=utf8mb4 -u root -pLalis_toor -Aa -h localhost -r /mnt/lalis/sauvegarde/bases/`date +%g%m%d-%H%M`lalis.sql
echo "nettoyage dossier bases"
find /mnt/lalis/sauvegarde/bases/ -mtime +31 -exec rm -f {} ";"
echo "sauvegarde config nexcloud"
rsync -avP /var/www/html/laliscloud/config /mnt/lalis/sauvegarde/nextcloud/
echo "sauvegarde config dolibarr"
rsync -avP /var/www/dolibarr/htdocs/conf /mnt/lalis/sauvegarde/dolibarr/

2
sauvegarde_mensuelle.sh Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/bash
/usr/local/bin/sauvegarde.sh mensuelle

12
send_sms Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
param=`echo "$1" | sed -e s/" "/%20/g`
text="user=19452708&pass=ZF8300U7iKyc9b&msg=$param"
TEMP=/tmp/send_sms.$USER
#echo "parameters : $param"
wget -O $TEMP "https://smsapi.free-mobile.fr/sendmsg?$text" -o /var/log/send_sms.log
if [ $? -eq 8 ];then
cat $TEMP
echo -e "Subject: sms not sent\n$text\n" >> $TEMP
cat /var/log/send_sms.log >> $TEMP
/usr/sbin/sendmail -f contact@lalis.fr -i contact@lalis.fr <$TEMP
fi

4
updatemirror Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/sh
mirror_mageia p
mirror_mageia o
mirror_mageia c