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
28 results for tags GNU/Linux x
  • Ê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
  • 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
  • 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é
  • 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
  • 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
  • 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
  • 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
  • Utilisation des disques, répertoires, fichiers
    Petit tutoriel linux avec les commandes pour savoir la taille occupées sur une partition par un dossier/fichier .
    Wed 24 Jul 2013 02:10:43 PM UTC - permalink -
    - http://www.tuteurs.ens.fr/unix/place_disque.html
    Bidouille GNU/Linux Informatique Terminal
  • RaspberryPI et Owncloud
    Transformer son RaspBerry PI en serveur Cloud
    Fri 19 Jul 2013 08:28:19 PM UTC - permalink -
    - http://maison-de-geek.com/2013/06/test-transformer-son-raspberry-pi-en-serveur-cloud/
    Bidouille GNU/Linux Informatique RPi
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.