Shaare your links...
78 links
Interesting Links Home Login RSS Feed ATOM Feed Tag cloud Picture wall Daily
Links per page: 20 50 100
◄Older
page 1 / 2
  • Récupérer la nomenclature ETHX sur la nouvelle Ubuntu (>=16.04)
    Pour ce faire c'est simple, suivez ces étapes :

       Éditez le fichier /etc/default/grub,
       A la ligne GRUBCMDLINELINUX ajoutez net.ifnames=0 biosdevname=0 entre les guillemets,
       Sauvegardez le fichier,
       Entrez la commande grub-mkconfig -o /boot/grub/grub.cfg
       Redémarrez le serveur avec la commande reboot.
       ifup eth0 devrait à nouveau fonctionner, faites un ping google.com pour vérifier le résultat.

    https://danux.be/posts/le-reseau-sur-ubuntu-1604-esxi-et-onlinenet
    Tue 19 Jul 2016 12:09:12 PM UTC - permalink -
    - http://about:newtab
    Bidouille Informatique Linux
  • Migrer de XFCE 4.10 à 4.12 sur Xubuntu 14.04/10
    http://tipsonubuntu.com/2015/03/14/upgrade-xfce-4-12-xubuntu-14-04linux-mint-17/
    http://ubuntuportal.com/2015/03/how-to-upgrade-xfce-4-10-to-xfce-4-12-in-xubuntu-14-04-and-xubuntu-14-10.html
    Tue 24 Mar 2015 09:29:03 AM UTC - permalink -
    - ?zi5r_Q
    Bidouille Informatique Linux
  • Raspberry pi/Arduino/Domotique
    Tout plein de petit tutos...
    Tue 27 Jan 2015 12:10:19 PM UTC - permalink -
    - http://blog.idleman.fr/sommaire-raspberry-pi-arduino-domotique-robotique-et-pleins-de-trucs-en-ique/
    Arduino Bidouille Pi Raspberry
  • Obtenir le dernier fichier d'un dossier en terminal
    ls -lt | head -2 | tail -1 | awk '{print $NF}'
    Mon 08 Dec 2014 03:27:39 PM UTC - permalink -
    - ?SZ_p8A
    Bash Bidouille Linux
  • Utiliser du Bash dans du Python via Subprocess
    ------------------------------------------------------------------------------------------------
    import subprocess

    def bash_command(cmd):
       subprocess.Popen(cmd, shell=True, executable='/bin/bash')

    bash_command('a="Apples and oranges" && echo "${a/oranges/grapes}"')
    ------------------------------------------------------------------------------------------------

    Sortie:
    ------------------------------------------------------------------------------------------------
    Apples and grapes
    ------------------------------------------------------------------------------------------------

    OU si probleme:

    ------------------------------------------------------------------------------------------------
    import subprocess

    def bash_command(cmd):
       subprocess.Popen(['/bin/bash', '-c', cmd])
    ------------------------------------------------------------------------------------------------

    Source 1:
    http://www.saltycrane.com/blog/2011/04/how-use-bash-shell-python-subprocess-instead-binsh/
    Source 2:
    http://jimmyg.org/blog/2009/working-with-python-subprocess.html
    Mon 08 Dec 2014 10:05:30 AM UTC - permalink -
    - ?n_pyBA
    Bash Linux Programmation Python
  • Downgrading Nexus 7
    1) Trouver le bon firmware
    https://developers.google.com/android/nexus/images

    La décompresser dans un dossier.

    2) Télécharger les utilitaires:
    ADB: http://developer.android.com/sdk/index.html#download
    Fastboot: http://forum.xda-developers.com/showthread.php?t=2588979

    ( http://www.androidpit.fr/installer-drivers-android-adb-fastboot-windows )

    3) Mettre la nexus en mode bootloader
    - Eteindre
    - Allumer en appuyant sur Power + Vol down.

    4) Vérifier la connectivité:
    "fastboot devices"
    Si ça retourne un numéro c'est OK.

    5) Se placer dans le dossier de la rom et utiliser le fichier bat: "flash-all.bat"

    6) Une fois fait, relocker la nexus: "fastboot oem lock"
    Mon 01 Dec 2014 09:02:15 AM UTC - permalink -
    - ?aSSvKg
    Android Bidouille Nexus
  • Sainte trinité micro4/3 Olympus
    "la Sainte Trinité olympus ", c'est à dire les :
    - M.ZUIKO DIGITAL ED 12mm F2.0
    - M.ZUIKO DIGITAL 45mm F1.8
    - M.ZUIKO DIGITAL ED 75mm F1.8
    Manque donc chez l'ami Olympus, un 20 ou 25 mm 1.8 dans le même esprit, va falloir aller chez pana ou le LUMIX G 20mm F1.7 ASPH pancake est, parait-il, une quasi-perfection.
    Sat 22 Nov 2014 04:32:44 PM UTC - permalink -
    - ?lJtU8Q
    Photo
  • Partage de dossier facile sous Ubuntu&Co
    sudo apt-get install gnome-system-tools
    gksu shares-admin

    http://doc.ubuntu-fr.org/shares-admin
    Sun 26 Oct 2014 12:22:52 PM UTC - permalink -
    - ?NsCELw
    Installation Linux
  • Adobe Flash manquant sur Chromium - Ubuntu 14.04
    Résolution:
    sudo apt-get install pepperflashplugin-nonfree
    sudo update-pepperflashplugin-nonfree --install

    Source: http://itsfoss.com/fix-flash-player-issue-chromium-in-ubuntu-14-04/
    Sun 26 Oct 2014 11:25:13 AM UTC - permalink -
    - ?KhN9sA
    Informatique Linux
  • Cacher le code d'un script bash avec SHC
    Utiliser SHC.
    1) Le télécharger: http://www.datsi.fi.upm.es/~frosal/sources/
    2) make
    3) make install

    Pour faire un script utilisable à l'extérieur de la machine initiale, utiliser l'option -r exemple: shc -r -f monscript .

    Dépendances: make automake autoconf gcc (gcc++)/build-essential(debian like)

    Sources:
    http://www.thegeekstuff.com/2012/05/encrypt-bash-shell-script/
    http://www.linux-magazine.com/Online/Features/SHC-Shell-Compiler
    http://adiriswan.blogspot.be/2012/11/how-to-install-shc-on-your-linux-system.html
    Wed 22 Oct 2014 07:17:52 AM UTC - permalink -
    - ?KuveUQ
    Bidouille Linux Programmation
  • Activer CTRL+BCKSPC+DEL
    All possibilities:
    > Am 06.07.2011 16:06, schrieb Reindl Harald:
    >> [root at rh:/etc/X11/xorg.conf.d]$ cat 02-dont-zap.conf
    >> Section "ServerFlags"
    >>         Option    "DontZap"    "false"
    >> EndSection
    >
    > this does all not work and it needs ubuntu-users for help
    > http://www.ubuntugeek.com/how-to-enabledisable-ctrlaltbackspace-in-ubuntu-9-10-karmic.html
    >
    >> This is due to the fact that “DontZap” is no longer an option in the X server and
    >> has become an option in XKB instead
    >
    > "/etc/X11/xinit/xinitrc.d/dont-zap.sh" needs chmod 755
    >
    > [root at rh:~]$ cat /etc/X11/xinit/xinitrc.d/dont-zap.sh
    > #!/bin/sh
    > setxkbmap -option terminate:ctrl_alt_bksp
    Tue 21 Oct 2014 07:31:34 PM UTC - permalink -
    - ?TPmKEg
    Bidouille Linux
  • Comparer rapidement le contenu de deux variables en ligne de commande sous Linux
    diff <( echo "$var1" ) <( echo "$var2" )
    Tue 21 Oct 2014 12:30:41 PM UTC - permalink -
    - ?S--mqQ
    Bidouille Linux Programmation
  • Connaitre le temps d'execution d'une commande/script bash en seconde.
    /usr/bin/time --format='la commande a duré %e secondes' ta_commande


    Source: http://forum.ubuntu-fr.org/viewtopic.php?id=1103771
    Thu 16 Oct 2014 10:54:51 AM UTC - permalink -
    - ?kd9Mug
    Bidouille Linux Programmation
  • Définition/Résolution(dpi,pixel)
    Résolution - "la finesse de l'image"
    -----------------------------------------
    La résolution d'une image composée de points est définie par la densité des points par unité de surface. La résolution permet de définir la finesse de  l'image. Plus la résolution est grande, plus la finesse de l'image est grande.
    Les points d'une image ont différents noms dependant du média. Sur les écrans on parle de pixel, les médias imprimés parlent de points où dots.
    Par conséquent la résolution dans le domaine de l'écran est ppi - pixels per inch (PPP en francais: pixels par pouce). La résolution dans le domaine des médias imprimés est dpi - dots per inch.
    D'un certain point de vue la résolution n'est pas une caractéristique de l'image mais celle d'un péripherique (ex : imprimante). Dans la plupart des cas c'est le péripherique qui limite la résolution:

    écrans:   72ppi[1]
    Imprimantes à jet d'encre: 300 dpi[2]

    Une résolution trop elevée est donc déconseillée pour une utilisation sur le web, car une résolution plus élevée signifie une taille plus élevée et donc un taux de transfert plus long qui ne paye pas au dessus de 72 ppi, parce-que c'est la limite de résolution des écrans. Sur l'écran toutes les images ont la même résolution (celle de l'écran). C'est la définition qui détérminera la taille physique sur l'écran.


    Définition - “Le poids de l'image”:
    ------------------------------------------
    La définition d'une image est le nombre de pixels total, c'est-à-dire sa "dimension informatique" (le nombre de colonnes de l'image que multiplie son nombre de lignes). Une image possedant 640 pixels en largeur et 480 en hauteur aura une définition de 640 pixels par 480, notée 640x480 = 307x200 pixel. Puisqu'un pixel = 3 octets, cette image pèse 921x600 octets (ca 1 Mio)[3].
    Fri 05 Sep 2014 12:35:10 PM UTC - permalink -
    - ?m3nb2A
  • Backup différentielle RSYNC
    rsync -auv –delete –ignore-errors –stats SOURCES USER@IP:PATH 2>&1 >> PATH/LOG

    Descriptif des options :
    a : pour faire un backup (prend en compte plusieurs options : récursivité notamment)
    u : update (ne copie pas les fichiers « qui n’ont pas changés »)
    v : verbose (pour ceux qui veulent des traces dans leur logs)
    –delete : supprime les fichiers qui sont dans le répertoire de destination et pas dans le répertoire source
    –ignore-errors : force cette suppression
    –stats : génère un mini rapport à la fin de la synchronisation
    Mon 01 Sep 2014 09:01:45 AM UTC - permalink -
    - ?gT6m1A
    backup linux rsync sauvegarde
  • Synchroniser ecriture/lecture Thunderbird et Lightning avec Google Agenda
    Prérequis:
    Extension Lightning
    Extension Fournisseur pour Google Agenda
    Lien XML privé du calendrier de l'agenda Google.

    Tuto:
    https://support.mozilla.org/fr/kb/utilisez-lightning-avec-agenda-google
    Thu 21 Aug 2014 06:08:16 AM UTC - permalink -
    - ?nPWfmw
    Agenda Bidouille Google
  • Rechercher et monter partition RAID, rechercher un LVM
    sudo mdadm --assemble --scan

    Regarder si un LVM est disponible:
    lvdisplay

    Examiner un RAID
    mdadm --examine /dev/sdaXY
    Tue 05 Aug 2014 02:02:47 PM UTC - permalink -
    - ?7tCjBg
    Administration Linux
  • Chromium NightBuilt
    Racine: http://commondatastorage.googleapis.com/chromium-browser-continuous/index.html

    WIN Last Change:
    http://commondatastorage.googleapis.com/chromium-browser-continuous/Win/LAST_CHANGE
    Fri 18 Jul 2014 07:15:12 AM UTC - permalink -
    - ?ONRYEQ
    Internet Navigateur
  • Lier un disque physique directement dans une machine virtuelle
    ---------------------LINUX

    Création de l’image VMDK

    Si l’hôte est Linux:

    Pour pouvoir manipuler le disque réel, il faut que que l’utilisateur du système fasse parti du groupe disk, ouvrez un terminal et tapez la commande suivante en tant que root

    # usermod -G disk -a nom d'utilisateur
    exemple: usermod -G disk -a machin (machin étant le nom de login de la session linux)

    Puis créez un répertoire où sera stockée l’image. Pour ma part j’ai créé un répertoire DiskV directement dans le répertoire d’installation de VirtualBox dans mon Home ~/.VirtalBox/DiskV , tapez la commande en mode utilisateur
    $ mkdir ~/.VirtualBox/DiskV

    Maintenant allons dans le répertoire nouvellement créé
    $ cd ~/.VirtualBox/DiskV

    Si vous souhaitez donner l’accès à un disque entier,  tapez la commande suivante:
    $ VBoxManage internalcommands createrawvmdk -filename image.vmdk -rawdisk /dev/sdx
    Remplacez le x de sdx par la lettre correspondant à votre disque.

    Si vous souhaitez donner l’accès à une ou plusieurs partition, il suffit de rajouter l’argument -partitions (n° de la ou des partitions) tapez
    $ VBoxManage internalcommands createrawvmdk -filename image.vmdk -rawdisk /dev/sdx -partitions 2
    Dans ce cas, la deuxième partition du disque sera accessible.

    Une fois que la commande est fini d’exécutée vous devez obtenir ceci:
    RAW host disk access VMDK file image.vmdk created successfully.


    ---------------------WINDOWS

    Si l’hôte est Windows:

    Puis créez un répertoire où sera stockée l’image. Pour ma part j’ai créé pour mon test un répertoire c:\DiskV\ directement sous la racine du disque C:

    Ouvrez le terminal et entrez dans le répertoire nouvellement créé.
    cd DiskV

    Si vous souhaitez donner l’accès à un disque entier,  tapez la commande suivante:
    VBoxManage internalcommands createrawvmdk -filename image.vmdk -rawdisk \.PhysicalDrive0
    Remplacez le 0 de Drive0 par le numéro correspondant à votre disque.

    Si vous souhaitez donner accès à une ou plusieurs partition, il suffit de rajouter l’argument -partitions (n° de la ou des partitions) tapez
    VBoxManage internalcommands createrawvmdk -filename image.vmdk -rawdisk \.PhysicalDrive0 -partitions 2
    Dans ce cas, la deuxième partition du disque sera accessible.

    Une fois que la commande est fini d’exécutée vous devez obtenir ceci:
    RAW host disk access VMDK file image.vmdk created successfully.

    Ouvrir le fichier image.vmdk avec un éditeur de texte (bloc note ou notepad) et supprimer les lignes ‘RW’ contenant la valeur ‘ZERO’

    Le ‘disque’ est maintenant prêt à être exploité.

    Pour VirtualBox la position du disque est nommé Drive avec un chiffre à la suite, 0 représentant le premier disque. Pour connaître la position de vos disques et de vos partitions selon le concept utilisé par VirtaulBox, tapez dans un terminal la commande suivante pour chaque disque.
    VBoxManage internalcommands listpartitions -rawdisk \.PhysicalDrivex

    Voici le résultat avec un de mes disques en l’occurrence mon 2ème

    # Number  Type   StartCHS       EndCHS      Size (MiB)  Start (Sect)
    1       0xde  0   /1  /1   13  /254/63           109           63
    2       0x07  14  /5  /56  109 /161/52           750       225280
    3       0x07  109 /161/53  1023/254/63        196597      1761280
    5       0x06  1023/254/63  1023/254/63         40959    404393984

    Référez vous à la taille indiquée par la colonne size pour déterminer le disque et les partitions. Ici j’ai 5 partitions sur le disque 2.

    ---------------------SOURCES

    http://g.auvity.free.fr/wordpress/index.php/2014/01/31/virtualbox-acces-direct-au-disque-physique-de-lhote-avec-une-vm/

    http://sanbarrow.com/vmdk-basics.html#cidchain

    http://www.matrix44.net/blog/?p=590
    Wed 16 Jul 2014 08:32:25 AM UTC - permalink -
    - ?hZJmdw
    Bidouille Informatique Linux VirtualBox Virtualisation Windows
  • Download APK
    http://apps.evozi.com/apk-downloader/

    http://www.appsapk.com/
    Wed 16 Jul 2014 08:31:01 AM UTC - permalink -
    - ?34_5xg
    Bidouille Téléphone
  • Test matériel
    http://www.notebookcheck.biz
    Wed 16 Jul 2014 08:27:32 AM UTC - permalink -
    - http://about:newtab
    Bidouille Informatique
  • Être alerté quand vos parents ou votre copine / copain arrive à la maison « Korben
    http://korben.info/wifinder.html

    https://github.com/mpescimoro/WiFinder
    Fri 04 Jul 2014 10:08:55 AM UTC - permalink -
    - http://korben.info/wifinder.html
    Bidouille GNU/Linux Informatique
  • Bleachbit
    BleachBit est un logiciel sous licence libre (GPL v3) qui permet de libérer de l'espace disque et de protéger la vie privée en effaçant les fichiers inutiles et temporaires du système. Il nettoie facilement le système (APT, bash, thumbs.db, corbeille, documents récents, ..) mais aussi les logiciels : Epiphany, Mozilla Firefox, Google Chrome, Opera, Adobe Flash, Java, Google Earth, OpenOffice.org, aMule, Transmission, Pidgin, Emesene, XChat, et bien d'autres…

    apt-get install bleachbit
    pacman -S bleachbit

    Utiliser gksudo bleachbit pour avoir full listing des application de l'utilisateur.

    Paramètrage spécifique à nettoyer possible via CleanerML.


    Sources:
    http://doc.ubuntu-fr.org/bleachbit
    http://bleachbit.sourceforge.net/documentation/cleanerml
    https://github.com/az0/bleachbit
    Fri 11 Apr 2014 06:49:48 AM UTC - permalink -
    - ?anmAQw
  • TreeSize Linux Script
    #/bin/sh
    du -k --max-depth=1 | sort -nr | awk '
        BEGIN {
           split("KB,MB,GB,TB", Units, ",");
        }
        {
           u = 1;
           while ($1 >= 1024) {
              $1 = $1 / 1024;
              u += 1
           }
           $1 = sprintf("%.1f %s", $1, Units[u]);
           print $0;
        }
       '

    http://blog.aclarke.eu/a-simple-treesize-shell-script-for-linux/
    Fri 28 Mar 2014 04:50:53 AM UTC - permalink -
    - ?wEvl6A
    Bash GNU/Linux Informatique Programmation
  • Arduino Starter Kit
    http://www.pobot.org/Les-starter-kits-pour-Arduino.html

    TOP -> http://www.zartronic.fr/kit-atelier-de-d%C3%A9marrage-zartronic-v33-p-206.html
    Tue 28 Jan 2014 02:07:06 PM UTC - permalink -
    - ?-AFG0w
    Arduino Bidouille RPi
  • Créer un listing de fichiers images au format PNG
    Installer le package: imagemagick
    Utiliser la commande: montage

    Exemple avec montage:
    montage -label '%t' "<folder>/<files>"-size 15x15 -auto-orient -frame 1 -tile 5 <output_file>.png

    Avec une séparation entre chaque fichier:
    montage -label '%t' "<folder>/<files>" -size 15x15+0+10 -auto-orient -frame 1 -tile 5 <output_file>.png

    Options
    -tile : nombre de fichier par ligne
    -frame : fond gris
    -size : <largeur>x<longeur>x<espacement-gauche>x<espacement-droite>

    Source: http://www.imagemagick.org/Usage/montage/
    Mon 27 Jan 2014 02:50:40 PM UTC - permalink -
    - ?Oypfew
    GNU/Linux Images
  • Installer TrueCrypt sur Debian
    1) Télécharger le script d'installation sur :  http://www.truecrypt.org/downloads

    2) Décompresser le script d'installation

    tar -xzvf truecrypt-*-linux-*.tar.gz

    3) Vérifier les dépendances(Wheezy): libfuse2 fuse libdevmapper1.02.1

    4) Donner les accès d’exécution au script(chmod +x) et lancer le script en terminal (sudo ou root) (./file) .
    Wed 15 Jan 2014 09:08:12 AM UTC - permalink -
    - ?U_cG3Q
    GNU/Linux Informatique Sécurité
  • Edition du boot sur Windows.
    Bcdedit is a really powerful tool that Windows Vista and Windows 7 uses to manage the boot loader entries.
    BCDEDIT needs a boot loader file to boot your system.

    A boot loader is a file that contains necessary information that instruct the system how to boot/start an operating system.

       Windows 7 and Vista bootloader file is \bootmgr
       Windows XP bootloader file is \ntldr

    BCDEDIT can support other bootloaders too, like grub for linux. You just have to place the bootloader file on the root of the boot manager partition. e.g. \grldr and you have a grub boot loader enabled.

    Bcdedit edits a file called bcd , which is located in Windows 7's hidden partition under \boot\bcd.
    In Vista, its located under C:\boot\bcd.
    Tue 14 Jan 2014 12:19:20 PM UTC - permalink -
    - http://www.sevenforums.com/tutorials/2676-bcdedit-how-use.html
    Bidouille Informatique Windows
  • Listing des package d'un système Linux
    Varie selon la distribution:
     -----------------
    | EN FONCTION |
     -----------------
    Red Hat/Fedora Core/CentOS Linux ( /var/log/yum.log )
    # rpm -qa | less
    # yum list installed

    Debian Linux ( /var/lib/dpkg | /var/lib/apt/lists/ )
    # dpkg --get-selections

    Ubuntu Linux ( /var/lib/dpkg | /var/lib/apt/lists/ | MIEUX: /var/lib/apt/extended_states )
    # sudo dpkg --get-selections

    FreeBSD
    # pkg_info | less
    # pkg_info apache
    # pkg_version | less
    # pkg_version | grep 'lsof'

    OpenBSD
    # pkg_info | less
    # pkg_info apache
    Tue 14 Jan 2014 08:33:20 AM UTC - permalink -
    - ?dgsY2A
    Bidouille GNU/Linux Informatique
  • Réparateurs Apple indépendants en Belgique
    Sur Bruxelles: http://iclinique.be/

    Sur La Louvière: http://www.fixinet.be/

    Sur Jemappes: http://mirepair.be/
    Mon 13 Jan 2014 08:39:39 AM UTC - permalink -
    - ?UgwYow
    Hardware Téléphone
  • Utilisation d'NMAP
    Source: http://www.tux-planet.fr/utilisation-de-nmap-et-outil-de-detection-des-scans-de-ports/

    Utilisation principal de nmap

    Voir tous les ports TCP ouverts sur une machine, utilisation de messages SYN, donc pas de log sur la machine cible :

    nmap -sS 127.0.0.1

    La même chose mais avec l'option -F (fast scan) et -n (sans résolution DNS) :

    nmap -F -n -sS 127.0.0.1

    Voir tous les ports UDP ouverts sur une machine :

    nmap -sU 127.0.0.1

    Voir si une machine est sur le réseau (scan Ping) :

    nmap -sP 127.0.0.1

    Scanner une plage d'adresses. Ici toutes les adresses de 192.168.0 à 192.168.255 :

    nmap 192.168.0-255

    Connaitre le système d'exploitation de la machine (TCP/IP fingerprint) :

    nmap -O 127.0.0.1

    Si nmap n'arrive pas à determiner la version, on pourra lui demander de nous donner une liste des systèmes qui pourraient potentiellement correspondre :

    nmap -O --osscan-guess 127.0.0.1

    Scanner un port précis. Ici, c'est le port http :

    nmap -p 80 127.0.0.1

    Scanner une plage de ports. Ici on scan du port 0 au 80 et tous ceux supérieurs à 60000 ) :

    nmap -p 0-80,60000 127.0.0.1

    Scanner des serveurs web au hasard sur le réseau :

    nmap -v -sS -iR 0 -p 80

    Désactiver la résolution DNS inverse des hôtes, augmente la rapidité :

    nmap -n 127.0.0.1

    Scan par rebon ftp, permet de demander à un serveur FTP de scanner les ports à votre place (envoie des fichiers pour tester les ports ouverts). Cette fonctionnalité est souvent désactivée des serveurs FTP afin d'éviter les abus. Ici on passe par le serveur ftp qui a pour adresse 127.0.0.1 pour scanner une plage d'adresses ip :

    nmap -b 127.0.0.1 192.168.0,.0-255

    Usurper l'adresse ip source. Ici on scan 127.0.0.1, par l'interface réseau eth0, en se faisant passer pour 10.0.0.0 depuis le port 80 :

    nmap -S 10.0.0.0 -g 80 -e eth0 -P0 127.0.0.1

    Usurper l'adresse MAC :

    nmap --spoof-mac 01:02:03:04:05:06 127.0.0.1
    nmap --spoof-mac Cisco 127.0.0.1

    Choisir un fichier de sortie pour y ecrire les résultats du scan :

    nmap -oN resultat 127.0.0.1
    nmap -oX resultat.xml 127.0.0.1

    Trace les paquets et les données envoyés et reçus. Pratique pour verifier qu'une usurpation fonctionne :

    nmap --packet-trace -S 10.0.0.0 -eth0 127.0.0.1

    3. Solution

    Enpêcher le balayage des ports d'une machine reste assez difficile en soi. En effet, même en rajoutant des règles à iptables, les techniques de scan étant tellement diverses, cela ne sera ne fonctionnera pas à 100%.

    En revanche, on peut très bien utiliser des outils spécialisés dans la détection de ces derniers comme scnalogd par exemple.

    Pour s'en servir, nous allons devoir récupérer les sources sur le site officel et lancer les commandes suivantes :

    cd /usr/local/src/
    tar zxvf scanlogd-*.tar.gz
    rm -f scanlogd-*.tar.gz
    cd scanlogd-*/
    make linux
    adduser scanlogd

    On pourra ensuite le lancer manuellement, via la commande scanlogd. Toutes les tentatives de scan sur la machine seront alors visibles dans le fichier /var/log/messages :

    # tailf /var/log/messages | grep scanlogd
    Dec 3 17:54:43 localhost scanlogd: 192.168.0.188 to 192.168.0.175 ports 80, 554, 256, 21, 22, 23, ..., TOS 00, TTL 64 @18:54:43
    Sat 11 Jan 2014 08:17:52 PM UTC - permalink -
    - ?BHtzGw
    Bidouille GNU/Linux Réseaux
  • Savoir si votre(vos) lecteur(s) optique(s) est(sont) reconnu(s) sous GNU/Linux
    Méthode simple:
    ~]$ dmesg | egrep -i --color 'cdrom|dvd|cd/rw|writer'

    Pour disposer des informations propres au(x) lecteur(s)
    ~]$ cd-drive
    Sat 11 Jan 2014 08:01:30 PM UTC - permalink -
    - ?aY6ZLw
    GNU/Linux Hardware
  • Xubuntu + Whisker + "Apparence W7"
    Xubuntu: http://xubuntu.org/
    Whisker: http://gottcode.org/xfce4-whiskermenu-plugin/
    Apparence W7: http://askubuntu.com/questions/292639/how-to-make-latest-ubuntu-look-like-windows-7

    Installation de Whisker:
    sudo add-apt-repository ppa:gottcode/gcppa
    sudo apt-get update
    sudo apt-get install xfce4-whiskermenu-plugin

    Installation de l'apparence W7:
    sudo apt-get install gtk2-engines-aurora
    wget https://launchpad.net/~upubuntu-com/+archive/gtk3/+files/win2-7_0.1_all.deb  
    sudo dpkg -i win2-7_0.1_all.deb  
    gsettings set org.gnome.desktop.wm.preferences theme 'Win2-7-theme'
    Applications -> Settings Manager -> Appearance -> Select “Win2-7-theme” in both Style and Icons tab.

    Paramétrages complémentaires:
    Windows 7 start orb image on Google Images (PNG transparent) ( http://taylorrockhill.files.wordpress.com/2012/02/windows_7_orb_icon_by_skyangels.png )
    Pannel: \usr\share\themes\Win2-7-theme\gtk-2.0\Panel\

    Avoir le texte en noir sur les tableaux de bords:
    Editez le fichier ~/.gtkrc-2.0, ou créez-le s'il n'existe pas.
    Y entrez le texte suivant :
    style "panel"
    {
    fg[NORMAL]    = "#FFFFFF"  
    fg[SELECTED]    = "#FFFFFF"
    fg[ACTIVE]    = "#FFFFFF"
    fg[PRELIGHT]    = "#FFFFFF"
    }
    widget_class "*Panel*" style "panel"
    #FFFFFFF = BLANC et 000000 = NOIR
    Thu 09 Jan 2014 01:40:01 PM UTC - permalink -
    - ?yOR99A
    Bidouille GNU/Linux
  • Gestion Joystick Linux
    Visiblement XBOX 360 USB directement reconnu O_o' comble de l'ironie ça!

    Sinon programme "facile" (je n'ai pas envie de passer 100ans à parametrer le tout! Surtout pour le peu de fois où je vais jouer:
    http://www.ryochan7.com/projects/antimicro/

    http://doc.ubuntu-fr.org/antimicro

    Dans les AUR sur Archlinux!
    Fri 03 Jan 2014 02:02:51 PM UTC - permalink -
    - ?CF4ohA
    Bidouille Games GNU/Linux
  • Emulation sur Linux
    http://www.unixmen.com/how-to-install-gaming-emulators-in-linux/

    http://blackwingdroid.blogspot.be/search/label/nintendo%20SNES
    Tue 31 Dec 2013 09:08:10 PM UTC - permalink -
    - ?zSWnQg
    Emulator Games GNU/Linux
  • Pick up pattern from Source Code of a webpage
    You need: lynx package (pcman -S lynx / apt-get install lynx)

    Here all 720 quality(if the quality is in the title) mp4 from different webpage with incrementation:

    for ((i=MIN ; $i <= MAX ; i++))
    do
       geturlmp4=$(lynx -source URL/webpage$i.html | egrep -oe "http://.*_720p.mp4";)
       echo $geturlmp4 >> Listing_MP4.txt
    done
    Sat 28 Dec 2013 08:07:54 PM UTC - permalink -
    - ?Cp1pKw
    Bash Bidouille GNU/Linux Programmation
  • Changer le port web d'un DNS-320
    1) telnet/ssh login to the DNS-320 box. (see ffp tutorials) and run the following command

    cp /etc/lighttpd/lighttpd.conf /ffp/lighttpd_portmod.conf


    2) Now edit the /ffp/lighttpd_portmod.conf file and change the following line to lets say 8888 and save the file.

    server.port = 8888


    3) edit the fun_plug script and add the following lines between fun_plug.local and FFP_RC if conditions.

    # run fun_plug.local, if present
    if [ -x /ffp/etc/fun_plug.local ]; then
       echo "* Running /ffp/etc/fun_plug.local ..."
       /ffp/etc/fun_plug.local
    fi

    #*** start Mods for different http port for webadmin tool
    echo "killing  lighttpd-angel"
    kill -9 `pidof lighttpd-angel`
    echo "killing  lighttpd"
    kill -9 `pidof lighttpd`

    echo "Restart  lighttpd-angel with different port"
    /usr/sbin/lighttpd-angel -D -m /usr/local/lib -f /ffp/lighttpd_portmod.conf &
    #*** end Mods different http port

    # run commands
    if [ -x $FFP_RC ]; then
       echo "* Running $FFP_RC ..."
       $FFP_RC
       echo "*  OK"
    else
       echo "$FFP_RC: Not found or not executable"
    fi


    4) Now reboot it.

    5) Look at ffp.log to make sure you see the following lines.

    killing  lighttpd-angel
    killing  lighttpd
    Restart  lighttpd-angel with different port


    6) Now open the browser and try http://<ipaddress>:8888/ should take you to the web config tool.

    7) Now you can port forward 8888 in your router, and port forward 80 to web server.
    Tue 03 Dec 2013 07:46:14 AM UTC - permalink -
    - http://dns323.kood.org/dns-320
    Bidouille GNU/Linux Réseaux
  • HTML URL Encode Reference
    URL encoding converts characters into a format that can be transmitted over the Internet.
    Mon 04 Nov 2013 02:20:12 PM UTC - permalink -
    - http://www.w3schools.com/tags/ref_urlencode.asp
    HTML Programmation Reference
  • Disposition de clavier personnalisé
    Demande de ma grand-mère: "Est-il possible d'avoir un clavier en ABCD" ... réalisation aisée sous linux ( http://doc.ubuntu-fr.org/tutoriel/comprendre_la_configuration_du_clavier ).

    Mais sous windows beaucoup moins par défaut!!
    Après quelques recherches:

    http://bepo.fr/wiki/Pilote_Windows

    --> http://msdn.microsoft.com/en-us/goglobal/bb964665.aspx ( http://www.microsoft.com/en-us/download/details.aspx?id=22339 )

    Réalisation d'un ABDC sur base du layout français belge: http://dr4leg.free.fr/abcd/be-abcd.zip
    Ne reste qu'à inter-changer les touches!
    Mon 28 Oct 2013 12:28:59 PM UTC - permalink -
    - ?RpXyFw
    Bidouille Informatique Windows
  • Erreur TrueCrypt (Linux): Failed to set up a loop device
    Failed to set up a loop device

    If you get a message "Failed to set up a loop device" when trying to create/mount a TrueCrypt volume, it may be because you updated your kernel recently without rebooting. Rebooting should fix this error.

    Otherwise, check if loop has been loaded as kernel module:
    $ lsmod | grep loop

    If not listed, retry the TrueCrypt command after "modprobe loop".

    Should it work, consider to add loop to the modules in /etc/modules-load.d:
    # tee /etc/modules-load.d/truecrypt.conf <<< "loop"
    Sun 20 Oct 2013 12:51:54 PM UTC - permalink -
    - ?f_gs4Q
    Bidouille GNU/Linux Sécurité
  • Example syntax for Secure Copy (scp)
    What is Secure Copy?

    scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh.
    Examples
    ---------------------
    remote esume:
    # copy a single file to your server
    scp mylocalfile.html root@myserverip:/var/www/html/
    # copy a whole directory to your server
    scp -r mylocaldirectory root@myserverip:/var/www/html/
    -----------------------------------
    Copy the file "foobar.txt" from a remote host to the local host

       $ scp your_username@remotehost.edu:foobar.txt /some/local/directory

    Copy the file "foobar.txt" from the local host to a remote host

       $ scp foobar.txt your_username@remotehost.edu:/some/remote/directory

    Copy the directory "foo" from the local host to a remote host's directory "bar"

       $ scp -r foo your_username@remotehost.edu:/some/remote/directory/bar

    Copy the file "foobar.txt" from remote host "rh1.edu" to remote host "rh2.edu"

       $ scp your_username@rh1.edu:/some/remote/directory/foobar.txt \
       your_username@rh2.edu:/some/remote/directory/

    Copying the files "foo.txt" and "bar.txt" from the local host to your home directory on the remote host

       $ scp foo.txt bar.txt your_username@remotehost.edu:~

    Copy the file "foobar.txt" from the local host to a remote host using port 2264

       $ scp -P 2264 foobar.txt your_username@remotehost.edu:/some/remote/directory

    Copy multiple files from the remote host to your current directory on the local host

       $ scp your_username@remotehost.edu:/some/remote/directory/\{a,b,c\} .

       $ scp your_username@remotehost.edu:~/\{foo.txt,bar.txt\} .

    scp Performance

    By default scp uses the Triple-DES cipher to encrypt the data being sent. Using the Blowfish cipher has been shown to increase speed. This can be done by using option -c blowfish in the command line.

       $ scp -c blowfish some_file your_username@remotehost.edu:~

    It is often suggested that the -C option for compression should also be used to increase speed. The effect of compression, however, will only significantly increase speed if your connection is very slow. Otherwise it may just be adding extra burden to the CPU. An example of using blowfish and compression:

       $ scp -c blowfish -C local_file your_username@remotehost.edu:~

    source: http://www.hypexr.org/linux_scp_help.php
    Mon 14 Oct 2013 07:29:42 PM UTC - permalink -
    - ?UcyM2Q
    GNU/Linux Réseaux SSH Sécurité
  • Fun_Plug 0.7 on DNS-320
    un_plug is essentially a technique to stepwise turn a NAS with fixed out-of-the-box functionality into an open Linux machine on which you can install additional software packages and, if you want, learn a bit about Linux.
    Wed 02 Oct 2013 01:27:21 PM UTC - permalink -
    - http://nas-tweaks.net/371/hdd-installation-of-the-fun_plug-0-7-on-nas-devices/
    Bidouille GNU/Linux NAS Réseaux
  • ExplainShell
    This site contains 29761 parsed manpages from sections 1 and 8 found in Ubuntu's manpage repository. A lot of heuristics were used to extract the arguments of each program, and there are errors here and there, especially in manpages that have a non-standard layout.
    Thu 12 Sep 2013 11:37:18 AM UTC - permalink -
    - http://explainshell.com/
    Cheat GNU/Linux Informatique Terminal
  • SSID et base de registre windows
    Mon 26 Aug 2013 02:23:41 PM UTC - permalink -
    - http://www.forensicfocus.com/a-forensic-analysis-of-the-windows-registry
    Bidouille Informatique Windows
  • Script de copie automatique de carte SD.
    Copying photos from the SD card of my camera is a very common task. And always the same pattern. Take the card out of the camera, put it into the sd card reader, wait for the automount popup, browse to the picture directory, select all images, cut all images, browse to my photo directory, create a new folder, name the folder, move to the folder, paste the pictures into it, wait for the finished job.

    Sound boring? Sure, it is!

    Now, how to make this one a little smarter? Maybe scripting some of those steps is a cool idea. So how would this work in a perfect world?
    Mon 26 Aug 2013 08:41:48 AM UTC - permalink -
    - http://larsmichelsen.com/open-source/photo-autocopy-from-sd-card/
    Bidouille GNU/Linux Informatique Photo
  • MultiTouch sur linux avec un Dell Latitude e6530
    Download psmouse-alps-1.3: http://www.dahetral.com/public-download/alps-psmouse-dlkm-for-3-2-and-3-5/view Then (using sudo / root):

    Extract the folder psmouse-alps-1.3 to /usr/source
    cd to /usr/source
    dkms add psmouse-alps-1.3
    dkms autoinstall
    rmmod psmouse && modprobe psmouse

    Bam! Working multitouch! :-)

    (See also https://bugs.launchpad.net/ubuntu/+source/linux/+bug/606238/) - Tested on Dell M4700, Xubuntu 12.04

    source: http://askubuntu.com/questions/50491/detect-touchpad-as-touchpad/258513#258513
    Wed 21 Aug 2013 12:12:34 PM UTC - permalink -
    - ?ldDqzw
    Bidouille GNU/Linux Hardware Informatique
  • PinGuin.LU
    Wed 21 Aug 2013 11:54:13 AM UTC - permalink -
    - https://www.pinguin.lu/
  • Les données exif sous linux
    Utiliser le paquet: perl-image-exiftool (peut être aussi appelé: libimage-exiftool-perl sous ubuntu/debian par exemple)

    Pour voir toutes les données:
    Utiliser la commande: exiftool -a -u <fichier>.<ext>
    http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#reading_examples

    Pour effacer toutes les données:
    Utiliser la commande une fois dans le dossier contenant l'image: exiftool -all= <fichier>.<ext>
    Pour plusieurs fichiers (exemple jpg): exiftool -all= *.jpg
    http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#writing_examples

    Sources: http://www.sno.phy.queensu.ca/~phil/exiftool/
    Sat 10 Aug 2013 05:05:47 PM UTC - permalink -
    - ?zY6YDA
    Images Informatique Metadonnées
  • ISO officiels de Windows
    Windows 7: http://www.touspourun.org/besoin-dune-iso-officielle-de-windows-seven-7063#more-7063

    Windows XP: http://www.microsoft.com/fr-be/download/details.aspx?id=25129
    Tue 06 Aug 2013 06:33:02 AM UTC - permalink -
    - ?64r9Rw
    Informatique Microsoft Windows
  • How to Fix Google Play :Error RPC:S-5:AEC-0
    1) supprimer le compte google.
    2) effacer les données de l'application Google Play
    3) effacer les données de l'application Service Google Play
    4) (un redémarrage peut être envisager) allumer Play Store et réinsérer son compte.

    Normalement c'est ok.
    Mon 05 Aug 2013 04:14:12 PM UTC - permalink -
    - http://www.gottabemobile.com/2013/07/15/how-to-fix-google-play-apps-wont-download-error-rpcs-5aec-0/
    Android Bidouille GSM Informatique Smartphone Téléphone
Links per page: 20 50 100
◄Older
page 1 / 2
Shaarli 0.0.41 beta - The personal, minimalist, super-fast, no-database delicious clone. By sebsauvage.net. Theme by idleman.fr.