Cheat Code Knoppix

     CHEATCODES AND HINTS FOR KNOPPIX V5.0.1 ============================================================================== (last update: 12.05.2006)  These options (can be combined) work from the ISOLINUX bootprompt:  knoppix lang=ch|cn|de|da|es|fr|it   specify language/keyboard knoppix lang=nl|pl|ru|sk|tr|tw|us   specify language/keyboard knoppix gmt                         Use GMT-based time knoppix tz=Europe/Berlin            Use this timezone for TZ knoppix desktop=fluxbox|gnome|icewm Use specified WM instead of KDE (1) knoppix desktop=kde|lg3d|larswm     Use specified WM instead of KDE (2) knoppix desktop=openbox|twm         Use specified WM instead of KDE (3) knoppix desktop=wmaker|xfce|xfce4   Use specified WM instead of KDE (4) knoppix screen=1280x1024            Use specified Screen resolution for X knoppix xvrefresh=60 (or vsync=60)  Use 60 Hz vertical refresh rate for X knoppix xhrefresh=80 (or hsync=80)  Use 80 kHz horizontal refresh rate for X knoppix xserver=XFree86|XF86_SVGA   Use specified X-Server knoppix xmodule=ati|fbdev|i810|mga  Use specified XFree4-Module (1) knoppix xmodule=nv|radeon|savage|s3 Use specified XFree4-Module (2) knoppix xmodule=radeon|svga|i810    Use specified XFree4-Module (3) knoppix 2                           Runlevel 2, Textmode only knoppix floppyconfig                Run "knoppix.sh" from a floppy knoppix myconf=/dev/sda1            Run "knoppix.sh" from a partition knoppix myconf=scan (or config=scan) Try to find "knoppix.sh" automatically knoppix home=/mnt/sda1/knoppix.img  Mount loopback file as /home/knoppix knoppix home=scan                   Automatic search for knoppix homedir knoppix no{apic,agp,apm,audio,ddc}  Skip parts of HW-detection (1) knoppix no{dhcp,fstab,firewire}     Skip parts of HW-detection (2) knoppix no{pcmcia,scsi,swap,udev}   Skip parts of HW-detection (3) knoppix nousb                       Skip parts of HW-detection (4) knoppix nousb2                      Disable USB 2.x extension knoppix noideraid                   Disable IDE-Raiddisk detection knoppix pnpbios=off                 No PnP Bios initialization knoppix acpi=off                    Disable ACPI Bios completely knoppix acpi=force                  FORCE ACPI Bios initialization failsafe                            Boot with (almost) no HW-detection knoppix pci=irqmask=0x0e98          Try this, if PS/2 mouse doesn't work *) knoppix pci=bios                    Workaround for bad PCI controllers knoppix ide2=0x180 nopcmcia         Boot from PCMCIA-CD-Rom (some notebooks) knoppix mem=128M                    Specify Memory size in MByte knoppix dma                         Enable DMA accelleration for ALL IDE-Drives knoppix noeject                     Do NOT eject CD after halt knoppix noprompt                    Do NOT prompt to remove the CD knoppix vga=normal                  No-framebuffer mode, but X knoppix blind                       Start Braille-Terminal (no X) knoppix brltty=type,port,table      Parameters for Braille device knoppix wheelmouse                  Enable IMPS/2 protocol for wheelmice knoppix nowheelmouse                Force plain PS/2 protocol for PS/2-mouse fb1280x1024                         Use fixed framebuffer graphics (1) fb1024x768                          Use fixed framebuffer graphics (2) fb800x600                           Use fixed framebuffer graphics (3) knoppix keyboard=us xkeyboard=us    Use different keyboard (text/X) knoppix splash                      Boot with fancy background splashscreen + animations + progress bar **) knoppix toram                       Copy CD to RAM and run from there knoppix tohd=/dev/hda1              Copy CD to HD partition and run from there knoppix fromhd                      Skip checking for Knoppix on CD-ROM knoppix fromhd=/dev/hda1            Boot from previously copied CD-Image knoppix bootfrom=/dev/hda1          Access Image then boot from previously copied CD-Image (enables booting from NTFS / ReiserFS) ***) knoppix bootfrom=/dev/hda1/KNX.iso  Access image, boot from ISO-Image. ***) knoppix knoppix_dir=KNOPPIX         Directory to search for on the CD. knoppix knoppix_name=KNOPPIX        Cloop-File to search for on the CD. knoppix testcd                      Check CD data integrity and md5sums expert                              Interactive setup for experts debug                               Debug boot process  Hint: Using the default DE-bootimage, SYSLINUX boots with german keyboard layout. The '=' letter is located at Shift-0 on this keyboard (just in case you want to change keyboard and language with lang=us).  *) Try "knoppix pci=irqmask=0x0e98" if (you have a notebook and) your PS/2 mouse doesn't work. (Possibly caused by a BIOS-flaw on your board, BIOS updates can help.) Sometimes, switching to the text console with Control-Alt-F1 and back to the X-screen with Control-F5 solves the problem without rebooting, since the X server reinitializes the mouse driver during that procedure.  **) You can also have your own splash-screen in putting an executable shell- script to /cdrom/KNOPPIX/splash.sh. For an example how to do this see: /usr/bin/splash-knoppix.sh. (Feature added by Fabian Franz.)  ***) Bootfrom needs access to a running Knoppix-System with the same Kernel as the Bootkernel, before it is able to mount the partition / ISO-Image. This should allow a poor mans install from NTFS-Partitions and makes it also possible to boot an ISO-Image directly. You can also use wildcards in the ISO-Filename, but it must be unique. So: If you have just one KNOPPIX.iso on /dev/hda1 you can access it as: bootfrom=/dev/hda1/K*.iso, but if there are several, you need to make clear, which one you want. (Feature added by Fabian Franz.)  If your KNOPPIX CD makes strange noises during boot, or you see frequent errors like "cloop: read error", or programs on your KDE desktop keep crashing randomly, then your CD image is probably defective or incomplete, or your CD-burner created a defective CD due to wrong writing speed or bad media. This is the most common error reported. Please boot with "knoppix testcd" to check if the CD is OK, and/or even better, verify the MD5 checksums that are present on the mirrors before writing the CD. In some cases, defective IDE controllers cause this error if you have DMA enabled. Also, please read the KNOPPIX-FAQ.  In case of a failing hardware autodetection, try booting with any of the "no-" options as shown in the table above, like in knoppix noagp noaudio noapm noapic acpi=off nodma nopcmcia noscsi nousb to skip some critical parts of the autodetection system.  The "noswap" option is useful for a forensic analysis without touching existing swap partitions.  Some Boards apparently don't pass the proper memory size to the linux-kernel. It may cause the message "Panic: cannot mount root file system" and the system hangs. Use "knoppix mem=128M" to solve that problem if your system has 128MByte memory for example (caution: you MUST use a capital "M" here).  The "expert" mode provides a very simple interface to loading additional Kernel modules from floppy disks (ext2 or vfat), plus interactive configuration of mouse/keyboard/soundcard/xserver. "expert" mode supports the same boot options as "knoppix".  The "floppyconfig" or "(my)config=/dev/partition" options allow you to reconfigure the system after autoconfiguration by running a bourne shell script called "knoppix.sh" from the root directory on the given device (or floppy). There is a GUI to create such a configuration floppy disk calles "saveconfig" (also located in the KDE menu under "KNOPPIX", but experts also know how to do this by creating their own shellscripts. From Version 2.1 and up, a file called "knoppix.sh", if located in the toplevel KNOPPIX directory on CD, will also be executed at startup. This makes ist easier to create customized versions without having to change anything on the compressed filesystem KNOPPIX/KNOPPIX.  SCSI-Emulation is active for all CD-Roms (unless you switch it off by using the "atapicd" option), so IDE CD-Writers should work with the installed versions of cdrecord and cdrdao (or the graphical frontends thereof, k3b for example).  If your BIOS does not support "no emulation boot" from CD, you can create two bootable floppy disks by issuing (from Knoppix running on a different machine) the command "mkbootfloppy", which will create a bootable Kernel-disk plus a disk containing the initial ramdisk, which will be prompted for at boottime.  If you wish to remaster the CD, please don't forget to specify -no-emul-boot -boot-load-size 4 -boot-info-table  -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat as option to mkisofs. Otherwise your CD won't be bootable. The directory KNOPPIX, containig the compressed filesystem file "KNOPPIX", must be located in the top level directory of the CD.  Caution: X-Screensaver: Don't start xlock or any screensaver that requires a password. There are no default passwords on KNOPPIX, i.e. all accounts are LOCKED unless you explicitly set a password. See also README_Security.txt about this issue. If you accidentially hit the screensaver button in KDE, switch to one of the textconsoles by Control-Alt-F1 and kill the screensaver (or just set a password for the knoppix user).  If you would like to edit your X-Server configuration manually (/etc/X11/XF86Config-4 for XFree86 V4.x), use "knoppix 2" to boot into runlevel 2 (textmode only) and, after changing the X configuration, start the X environment with "init 5". Note that you can always leave the graphical environment with "init 2", and restart it later with "init 5".   

Installation automatisée Karmic Koala par preseed

Objectifs

  • Le fichier preseed permet l’installation automatisĂ©e d’une distribution comme Debian ou Ubuntu.
  • L’avantage Ă©tant de prĂ©-remplir les options d’installation (paramĂ©trages rĂ©seaux, rĂ©gionaux, paquets Ă  installer, partitionnement,…)

Configurations

Installation Karmic Koala Desktop depuis les dépôts officiels

  • Le fichier proposĂ© ci-dessous propose l’installation de la distribution Karmic Desktop depuis les dĂ©pĂ´ts officiels :
#
# Configuration du fichier preseed :
#
# Configuration reseau (obsolete en si utilisation du DHCP)
#d-i netcfg/get_hostname string unassigned-hostname
#d-i netcfg/get_domain string unassigned-domain
#d-i netcfg/get_hostname seen true
#d-i netcfg/get_domain seen true
#
# Choix du noyau a installer
# Dans le cas d'un serveur 9.10, installer linux-generic-pae :
#d-i     base-installer/kernel/override-image    string linux-generic-pae
#
# Source d'installation (miroir)
#
d-i	mirror/country		string fr
d-i mirror/http/countries   select fr
d-i	mirror/protocol select	http
d-i	mirror/http/hostname	string fr.archive.ubuntu.com
d-i	mirror/http/directory	string /ubuntu
# Nom de la distribution installée
d-i	mirror/suite		string karmic
# Choix des miroirs security :
d-i apt-setup/services-select multiselect security
d-i apt-setup/security_host string fr.archive.ubuntu.com
d-i apt-setup/security_path string /ubuntu
d-i	mirror/http/proxy	string
#
# horloge
#
d-i clock-setup/utc boolean true
d-i time/zone string Europe/Paris
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server ntp.free.fr
#
# partitionnement
#
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
#d-i partman-auto/purge_lvm_from_device boolean true # pour les anciennes versions, en 8.04 cf ligne ci-dessous
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select
# Terminer le partitionnement et appliquer les changements
d-i partman/confirm boolean true
#
# Détermine le type d'installation
#
tasksel tasksel/first multiselect ubuntu-desktop
#tasksel tasksel/first multiselect standard
#tasksel tasksel/first multiselect ubuntu-desktop
#tasksel tasksel/first multiselect kubuntu-desktop
#tasksel tasksel/first multiselect edubuntu-desktop
#tasksel tasksel/first multiselect xubuntu-desktop
#tasksel tasksel/first multiselect dns-server
#tasksel tasksel/first multiselect lamp-server ##(installation d'un serveur avec Apache, MySQL et PHP)
#
# Creation des comptes utilisateur/root
#
#d-i passwd/root-login boolean true
# Mot de passe root en clair (insecure) :
#d-i passwd/root-password password insecure
#d-i passwd/root-password-again password insecure
# Mot de passe root crypté en MD5 :
#d-i passwd/root-password-crypted password $1$hHHfJXII$0eStKtVO310d1RyvnCYdQ0
#
# Création du compte local : Toto
# Si le compte root est déjà créé, l'utilisateur ne pourra pas faire de sudo
#
d-i passwd/make-user boolean true
d-i passwd/user-fullname string Toto
d-i passwd/username string toto
#d-i passwd/user-password password insecure
#d-i passwd/user-password-again password insecure
d-i passwd/user-password-crypted password $1$hHHfJXII$0eStKtVO310d1RyvnCYdQ0
#d-i passwd/user-password-again-crypted password $1$hHHfJXII$0eStKtVO310d1RyvnCYdQ0
#
# Pour éviter le dernier message disant que l'installation est terminée :
d-i finish-install/reboot_in_progress note
#
# Politique pour l'application des mises à jour. Réglé sur :
#  - "none" (pas de mise Ă  jour automatique)
#  - "unattended-upgrades" (installation des mises à jour de sécurité automatiquement)
#  - "landscape" (mise à jour gérées depuis Landscape)
d-i pkgsel/update-policy select unattended-upgrades
# Permet d'encrypter le répertoire home (ne fonctionne pas pour les versions antérieures a Intrepid) :
d-i user-setup/encrypt-home boolean false
#
# Apt setup.
#
# Configure les branches qui seront actives multiverse, universe, security
base-config	apt-setup/uri_type	select http
#base-config	apt-setup/country	select enter information manually
base-config	apt-setup/hostname	string fr.archive.ubuntu.com
base-config	apt-setup/directory	string /ubuntu
base-config	apt-setup/another	boolean true
base-config	apt-setup/universe	boolean true
base-config	apt-setup/multiverse	boolean true
base-config	apt-setup/security-updates	boolean true
#
# paquets supplémentaires qui seront installés :
#
d-i pkgsel/include string libpam-mount
d-i pkgsel/include string curl
d-i pkgsel/include string debconf-utils
d-i pkgsel/include string openssh-server
d-i pkgsel/include string vim
d-i pkgsel/include string ssh
#
# Dernière commande :
# Permet de lancer une derniere commande : ici le telechargement et le lancement d'un script pour la post install
d-i preseed/late_command string wget -q -O - http://monserveureb/postinstall.sh | chroot /target /bin/bash

Installation Karmic Koala Desktop depuis un dépôt local

  • Pour l’installation du client depuis un miroir local, il suffit de copier le fichier prĂ©cĂ©dent en modifiant les trois lignes suivantes :
  1. d-i mirror/http/hostname string
  2. d-i apt-setup/security_host string
  3. base-config apt-setup/hostname string
# Source d'installation (miroir)
##~~~~ paramètres ~~~~##
d-i	mirror/http/hostname	string mirror.test.lan
##~~~~ paramètres ~~~~##
# Source d'installation (miroir)
##~~~~ paramètres ~~~~##
d-i apt-setup/security_host string mirror.test.lan
##~~~~ paramètres ~~~~##
# Apt setup.
##~~~~ paramètres ~~~~##
base-config	apt-setup/hostname	string mirror.test.lan
##~~~~ paramètres ~~~~##

Installation Karmic Koala Server depuis un dépôt local

  • Enfin, pour l’installation d’un serveur de base, il faut modifier ces deux directives :
  1. d-i base-installer/kernel/override-image string linux-generic-pae
  2. tasksel tasksel/first multiselect standard
##~~~~ paramètres ~~~~##
# Choix du noyau a installer
# Dans le cas d'un serveur 9.10, installer linux-generic-pae :
d-i     base-installer/kernel/override-image    string linux-generic-pae
##~~~~ paramètres ~~~~##
# Détermine le type d'installation :
#
tasksel tasksel/first multiselect standard
##~~~~ paramètres ~~~~##

Sources

Créer son miroir local Ubuntu Karmic Koala

Architecture système

  • PrĂ© requis : apt-mirror, apache2 et +/- 70 Go d’espace disque (varie en fonction des branches sĂ©lectionnĂ©es).
  • Un serveur 9.10 virtualisĂ© avec deux disques (le premier de 10Go environ pour le système, le deuxième de 80Go pour accueillir les dĂ©pĂ´ts).

Disques Capacité Répertoires montés
sda1 10Go / (système)
sdb1 80Go /mirror (dépôts)

  • L’avantage de cet architecture permet de dĂ©monter les dĂ©pĂ´ts indĂ©pendamment du système.
  • Initialiser un disque dur

Installation du miroir

apt-get install apache2 apt-mirror
  • CrĂ©ation des rĂ©pertoires accueillant les paquets :
    mkdir -p /mirror/{mirror,skel,var}

    Préparation

    • Copie et Ă©dition du fichier de configuration :
    cp /etc/apt/mirror.list /mirror/apt-mirror.conf
    gedit /mirror/apt-mirror.conf &
    • Modifier les valeurs suivant votre configuration :
    ############# config ##################
    #
    set base_path    /mirror
    #
    # if you change the base path you must create the directories below with write privileges
    #
    set mirror_path  $base_path/mirror
    set skel_path    $base_path/skel
    set var_path     $base_path/var
    set cleanscript $var_path/clean.sh
    set defaultarch  i386
    # set postmirror_script $var_path/postmirror.sh
    set run_postmirror 0
    set nthreads     20
    set _tilde 0
    set limit_rate 50k
    #
    ############# end config ##############
    
    deb http://archive.ubuntu.com/ubuntu karmic main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu karmic-security main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu karmic-updates main restricted universe multiverse
    #deb http://archive.ubuntu.com/ubuntu karmic-proposed main restricted universe multiverse
    #deb http://archive.ubuntu.com/ubuntu karmic-backports main restricted universe multiverse
    
    #deb-src http://archive.ubuntu.com/ubuntu karmic main restricted universe multiverse
    #deb-src http://archive.ubuntu.com/ubuntu karmic-security main restricted universe multiverse
    #deb-src http://archive.ubuntu.com/ubuntu karmic-updates main restricted universe multiverse
    #deb-src http://archive.ubuntu.com/ubuntu karmic-proposed main restricted universe multiverse
    #deb-src http://archive.ubuntu.com/ubuntu karmic-backports main restricted universe multiverse
    
    clean http://archive.ubuntu.com/ubuntu

    Récupération des paquets

    • On lance la commande apt-mirror avec notre fichier de configuration en argument :
    apt-mirror /mirror/apt-mirror.conf
    • Un long processus commence :
    Downloading 84 index files using 20 threads...
    Begin time: Sun Oct  4 19:51:48 2009
    [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]...

    Rendre accessible les paquets sur le réseau

    • Le serveur web aura la fonction de mettre Ă  disposition les dĂ©pĂ´ts depuis le rĂ©seau :
      ln -s /mirror/mirror/archive.ubuntu.com/ubuntu/ /var/www/ubuntu

      Utilisation du miroir depuis un poste client

      • Pour utiliser votre mirroir depuis votre poste client, il faut modifier le fichier **/etc/apt/source.list** :
      • Sauvegarder tout d’abord le fichier **/etc/apt/sourcelist** :
      cp /etc/apt/sources.list /etc/apt/sources.list.ori
      • Editer ce fichier en inscrivant l’adresse pour atteindre les dĂ©pĂ´ts :

      Méthode avec SED

      sed -i "s,fr.archive.ubuntu.com/ubuntu,srv-deb910.home.lan/ubuntu/mirror/archive.ubuntu.com/ubuntu,g" /etc/apt/sources.list
      apt-get update
      apt-get upgrade -y

      Méthode manuelle

      • Editer le fichier et modifier l’adresse du serveur suivant votre configuration :
      vi /etc/apt/sources.list
      #deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)]/ karmic main restricted
      # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
      # newer versions of the distribution.
      
      deb http://fr.archive.ubuntu.com/ubuntu/ karmic main restricted
      deb-src http://fr.archive.ubuntu.com/ubuntu/ karmic main restricted
      
      ## Major bug fix updates produced after the final release of the
      ## distribution.
      deb http://fr.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
      deb-src http://fr.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
      
      ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
      ## team. Also, please note that software in universe WILL NOT receive any
      ## review or updates from the Ubuntu security team.
      deb http://fr.archive.ubuntu.com/ubuntu/ karmic universe
      deb-src http://fr.archive.ubuntu.com/ubuntu/ karmic universe
      deb http://fr.archive.ubuntu.com/ubuntu/ karmic-updates universe
      deb-src http://fr.archive.ubuntu.com/ubuntu/ karmic-updates universe
      
      ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
      ## team, and may not be under a free licence. Please satisfy yourself as to
      ## your rights to use the software. Also, please note that software in
      ## multiverse WILL NOT receive any review or updates from the Ubuntu
      ## security team.
      deb http://fr.archive.ubuntu.com/ubuntu/ karmic multiverse
      deb-src http://fr.archive.ubuntu.com/ubuntu/ karmic multiverse
      deb http://fr.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
      deb-src http://fr.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
      
      ## Uncomment the following two lines to add software from the 'backports'
      ## repository.
      ## N.B. software from this repository may not have been tested as
      ## extensively as that contained in the main release, although it includes
      ## newer versions of some applications which may provide useful features.
      ## Also, please note that software in backports WILL NOT receive any review
      ## or updates from the Ubuntu security team.
      # deb http://fr.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
      # deb-src http://fr.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
      
      ## Uncomment the following two lines to add software from Canonical's
      ## 'partner' repository.
      ## This software is not part of Ubuntu, but is offered by Canonical and the
      ## respective vendors as a service to Ubuntu users.
      # deb http://archive.canonical.com/ubuntu karmic partner
      # deb-src http://archive.canonical.com/ubuntu karmic partner
      
      deb http://security.ubuntu.com/ubuntu karmic-security main restricted
      deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
      deb http://security.ubuntu.com/ubuntu karmic-security universe
      deb-src http://security.ubuntu.com/ubuntu karmic-security universe
      deb http://security.ubuntu.com/ubuntu karmic-security multiverse
      deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse

      Explication

      • En rĂ©sumĂ©, les trois branches devant ĂŞtre sĂ©lectionnĂ©es :
      deb http://mirrors.kernel.org/ubuntu intrepid main main/debian-installer restricted restricted/debian-installer
      deb http://mirrors.kernel.org/ubuntu intrepid-updates main restricted
      deb http://security.ubuntu.com/ubuntu karmic-security main restricted universe multiverse
      
      clean http://mirrors.kernel.org/ubuntu
      • Le rĂ©pertoire de base :
      set base_path    /mirror/
      • On ne prend que pour l’architecture i386 :
      set defaultarch  i386
      • Rajouter cette directive dans le fichier de configuration pour limiter la consommation de la bande passante, 50K * 10 = 500Kilos
      set limit_rate 50k

      Sources

      Pour aller plus loin

      Problèmes rencontrés

      apt-mirror is already running, exiting at /usr/bin/apt-mirror line 187.

      • La solution sur la version 9.10, est de supprimer le fichier **apt-mirror.lock**
      rm /mirror/var/apt-mirror.lock

Installer un serveur Ubuntu Karmic Koala 9.10

Installation

  1. TĂ©lĂ©chargement de l’iso Ă  l’adresse : ubuntu-9.10-server-i386.iso. Graver votre cd et booter dessus.
  2. SĂ©lectionner la langue du programme d’installation (français) et valider Installer Ubuntu Server
  3. Choix de la langue d’installation (France)
  4. DĂ©tection de l’agencement du clavier (oui)
  5. Test de la disposition du clavier (touches y et w)
  6. Touche Ĺ“ (oui)
  7. Clavier type latin9 (oui)
  8. Détection du réseau
  9. Choix du nom d’hĂ´te
  10. Partitionnement
  11. Nouvel utilisateur
  12. Mot de passe
  13. Chiffrement du dossier personnel (non)
  14. Serveur mandataire pour l’application apt (non)
  15. Mise à jour (installer les mises à jour de sécurité automatiquement)
  16. Sélection des logiciels (openssh server)
  17. Installation terminée

Mise Ă  jour et purge des paquets inutiles

apt-get update && apt-get upgrade -y && apt-get autoclean && apt-get autoremove

Configuration

Paramétrage réseau
La personnalisation du bashrc

Services

SNMP
Bind

Astuces

  • ConnaĂ®tre la version d’Ubuntu sur laquelle vous vous trouvez :
  • lsb_release -a
    • Comment faire pour savoir quel noyau que vous utilisez
    • uname -r

Installer Ubuntu depuis un serveur de dépôts (miroir)

Objectifs

  • Pouvoir installer une distribution Ubuntu (9.10, Karmic Koala) depuis le rĂ©seau local sans aucune intervention extĂ©rieure.
  • Le principe :
  • Boot PXE -> Lecture du fichier de prĂ©-configuration -> installation automatisĂ©e depuis votre serveur de dĂ©pĂ´ts local

Pré-requis

  1. Bind
  2. DHCP
  3. PXE
  4. Miroir local Ubuntu
  5. Installation automatisée par fichier Preseed

Ajouter les référentiels à votre mirroir

vi /mirror/apt-mirror.conf
# Miroir Karmic Installer
deb http://archive.ubuntu.com/ubuntu/ karmic           main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
deb http://archive.ubuntu.com/ubuntu/ karmic-updates   main/debian-installer
#deb http://archive.ubuntu.com/ubuntu/ karmic-backports
deb http://archive.ubuntu.com/ubuntu/ karmic-security  main/debian-installer
deb http://archive.ubuntu.com/ubuntu/ karmic-proposed main/debian-installer
  • Mettre Ă  jour le serveur de dĂ©pĂ´ts :
apt-mirror /mirror/apt-mirror.conf

Sources

Ajouter les l’option de boot Ă  votre PXE

  • Editer le fichier default :
vi /var/lib/tftboot/pxelinux.cfg/default
  • Ajouter les lignes suivantes :
label Karmic Koala server Lan
MENU LABEL      Karmic Koala Desktop ^lan
kernel karmic/netboot.i386/linux
#karmic/install/netboot/ubuntu-installer/i386/linux
append vga=normal initrd=karmic/netboot.i386/initrd.gz ramdisk_size=16464 root=/dev/rd/0 rw preseed/url=http://monserveur.domain.tld/ubuntu/preseed/910.desktop.lan.cfg locale=fr_FR bootkbd=fr console-setup/layoutcode=fr console-setup/variantcode=nodeadkeys DEBCONF_DEBUG=5 netcfg/get_hostname=net-install netcfg/get_domain=workgroup--

Création du fichier preseed

  • A mettre depuis un endroit accessible par le serveur PXE (Sources) :
#
d-i mirror/suite string karmic
#
# Configuration reseau (obsolete si présence d'un DHCP)
##d-i netcfg/get_hostname string unassigned-hostname
##d-i netcfg/get_domain string unassigned-domain
##d-i netcfg/get_hostname seen true
##d-i netcfg/get_domain seen true
#
# Install source
d-i	mirror/country		string fr
d-i     mirror/http/countries   select fr
d-i	mirror/protocol select	http
d-i	mirror/http/hostname	string monserveur.domain.tld
d-i	mirror/http/directory	string /ubuntu
d-i	mirror/suite		string karmic
# Choix des mirroirs
d-i apt-setup/services-select multiselect security
d-i apt-setup/security_host string monserveur.domain.tld
d-i apt-setup/security_path string /ubuntu
d-i	mirror/http/proxy	string
#
# horloge
d-i clock-setup/utc boolean true
d-i time/zone string Europe/Paris
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server ntp.free.fr
#
# partitionnement
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
#d-i partman-auto/purge_lvm_from_device boolean true <- anciennes versions, en 8.04 cf ligne ci-dessous
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select
#
# select Terminer le partitionnement et appliquer les changements
d-i partman/confirm boolean true
tasksel tasksel/first multiselect ubuntu-desktop
#
# Creation des comptes utilisateur/root
#
d-i passwd/root-login boolean true
# Root password, either in clear text
d-i passwd/root-password password insecure
d-i passwd/root-password-again password insecure
# Compte local, utilisateur toto :
#
d-i passwd/make-user boolean true
d-i passwd/user-fullname string Toto
d-i passwd/username string toto
d-i passwd/user-password password insecure
d-i passwd/user-password-again password insecure
d-i finish-install/reboot_in_progress       note
d-i pkgsel/update-policy select unattended-upgrades
# Ne fonctionne pas pour les versions antérieures a Intrepid
d-i user-setup/encrypt-home boolean false
#
# Apt setup.
base-config	apt-setup/uri_type	select http
# If you choose ftp or http, you'll be asked for a country and a mirror.
#base-config	apt-setup/country	select enter information manually
base-config	apt-setup/hostname	string monserveur.domain.tld
base-config	apt-setup/directory	string /ubuntu
base-config	apt-setup/another	boolean true
base-config	apt-setup/universe	boolean true
base-config	apt-setup/multiverse	boolean true
base-config	apt-setup/security-updates	boolean true
#
# paquets supplémentaires
d-i pkgsel/include string openssh-server build-essential rsync less firmware-qlogic sudo cron-apt ntp host debsums devscripts pciutils ethtool

Tutoriels

Ajouter des boutons dans le menu d’Ă©dition de Dokuwiki

J’avais besoin d’un bouton pour appeler la balise code et voici Ă  dispo mon plugin : http://www.cymea.net/download/dokuwiki/plugins/abte.zip

Il est inspiré du plugin note et il est possible de modifier directement le fichier script.js, un template est à disposition.

Fonctionnel, simple et efficace :o)

Arguments pour le démarrage de Counter Strike Source

Arguments pour le client steam

Arguments pouvant ĂŞtre ajoutĂ©s au lancement de Counter Strike par l’intermĂ©diaire de Steam :

-noforcemaccel -noforcemparms -noforcemspd -w xxx -32bpp
-heapsize xxxxxx -freq xxx -dxlevel xx -nojoy
-applaunch xx -gl -full -noipx
Fill in the x's with one of the proper choices listed below.
512MB System Memory: -heapsize 262144
1GB System Memory: -heapsize 524288
2GB System Memory: -heapsize 1048576
Dedicated Server: -applaunch 5
Counter-Strike: -applaunch 10
Team Fortress Classic: -applaunch 20
Day of Defeat: -applaunch 30
Half-Life: -applaunch 70
Half-Life High Definition: -applaunch 96
Condition Zero: -applaunch 80
Condition Zero Deleted Scenes: -applaunch 100
Source Dedicated Server: -applaunch 210
Source SDK: -applaunch 211
Half-Life 2: -applaunch 220
Half-Life 2 Deathmatch: -applaunch 321
Half-Life 2 Lost Coast: -applaunch 340
Counter-Strike: Source: -applaunch 240
Half-Life Source: -applaunch 280
Day of Defeat: Source: -applaunch 300
Darwinia: -applaunch 1500
640x480 = -w 640 -h 480
800x600 = -w 800 -h 600 (Recommended)
1024x768 = -w 1024 -h 768
etc...
-freq xxx (Recommend 100Hz);Changes the Hertz while playing
on the HL engine.
-refresh xxx (Recommend 100Hz);Changes the Hertz while
playing on the HL2/Source engine.
-gl ; Enables OpenGL rendering mode.
-nojoy ; Disables joystick to reduce memory usage.
-32bpp ; Enables 32Bit rendering.
-16bpp ; Enables 16Bit rendering. (Not Recommended)
DirectX 9: -dxlevel 90
DirectX 8.1: -dxlevel 81
DirectX 8: -dxlevel 80
DirectX 7: -dxlevel 70

Interface openoffice en anglais Ubuntu

Pour rĂ©soudre le problème de l’interface d’openoffice en anglais sur Ubuntu, vĂ©rifier que le paquet openoffice.org-l10n-fr est installĂ©.
Sinon :
apt-get install openoffice.org-l10n-fr

Source : http://forum.ubuntu-fr.org/viewtopic.php?id=218022

Configurer sa carte réseau sur Linux

auto eth0
iface eth0 inet dhcp

Adresse IP Fixe

  • Editer le fichier /etc/network/interfaces

/etc/network/interfaces
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx

wireless_keymode open
wireless_mode managed
wireles_nick Laptop
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1
wireless-essid 9T_B800A
wireless-key XXXXXXXXXXXXXXXXXXXXXXXXXX
wireless-channel 11

  • RedĂ©marrer l'interface configurĂ©e :


ifdown eth0
ifup eth0

Dokuwiki on wordpress

Articles dokuwiki sur wordpress

  • Pour ceux qui voudraient intĂ©grer des articles depuis Dokuwiki vers Wordpress, il existe un plugin assez sympa : WP-Dokuwiki

Titre 1

Titre 2

Voici un extrait d'un code dokuwiki sur wordpress

apt-get install dokuwiki

Sources

Haut de Page