4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:linux — newest first
  • r/ricing: Desktop customization advice and information
    • https://jie-fang.github.io/blog/basics-of-ricing

    Si j'avais le temps, ca me plairait bien !

    February 10, 2022 - permalink - https://www.reddit.com/r/ricing
    custom desktop linux rice ricing
  • Learn just enough Linux to get things done — petralia

    for beginners ;)

    November 17, 2017 - permalink - http://alexpetralia.com/posts/2017/6/26/learning-linux-bash-to-get-things-done
    linux
  • Which is the fastest method to delete files in Linux

    wtf?

    cd dir
    time perl -e 'for(<*>){((stat)[9]<(unlink))}'

    July 3, 2017 - permalink - http://www.slashroot.in/which-is-the-fastest-method-to-delete-files-in-linux
    delete dir linux perl
  • [Linux] Petite astuce pour une tâche de fond - Liens en vrac de sebsauvage

    nice! (ahah)

    November 16, 2016 - permalink - http://sebsauvage.net/links/?PfISxw
    background linux nice
  • Using SS tool for network troubleshooting » IT Tips and Tricks

    Keepalive Notes

    A keepalive packet generally has a TCP ACK configured with a sequence number set to one less than the current number used on the connection. Any machine receiving a nudge from such a packet will simply respond with the correct sequence number and, Frankenstein jokes aside, announce that it is indeed alive.

    These types of packets are sometimes empty and generally have three associated parameters. The retry parameter will declare how many times to send a packet before coming to the conclusion that the other end of the connection has given up the ghost. The time setting is configured as the frequency of the checks, and finally the interval dictates the length of time between two sent packets if no response is received.

    Inside the kernel, you can alter these settings by editing these values in the eye-watering pseudo-filesystem known and loved as /proc. One file, in this case, is /proc/sys/net/ipv4/tcp_keepalive_time, and you can edit it

    November 7, 2016 - permalink - https://tipstricks.itmatrix.eu/using-ss-tool-for-network-troubleshooting/
    keepalive linux network
  • thombashi/tcconfig: Simple tc command wrapper. Easy to setup traffic control of network bandwidth/latency/packet-loss to a network interface.
    March 9, 2016 - permalink - https://github.com/thombashi/tcconfig
    linux network qos traffic tt
  • Linux Kernel Module Management 101 | Linux.com

    lsmod
    rmmod
    modprobe

    January 8, 2016 - permalink - https://www.linux.com/learn/tutorials/396770:linux-kernel-module-management-101
    kernel linux module
  • Recommandations de sécurité relatives à un système GNU/Linux | Agence nationale de la sécurité des systèmes d'information

    à feuilleter

    January 5, 2016 - permalink - http://www.ssi.gouv.fr/guide/recommandations-de-securite-relatives-a-un-systeme-gnulinux/
    anssi linux
  • wavemon

    wavemon

    December 20, 2015 - permalink - https://links.infomee.fr/shaare/qLYEYQ
    linux tool wifi
  • doger.io - wow such container
    October 7, 2015 - permalink - http://doger.io/
    container docker linux lxc
  • dstat

    dstat -lrvn 10

    via arnaudb

    September 29, 2015 - permalink - https://links.infomee.fr/shaare/qi1ILw
    htop io linux stat system top
  • avidemux

    edition video sous linux basique

    September 24, 2015 - permalink - https://links.infomee.fr/shaare/-4Pa1w
    linux video virtualdub
  • SysAdvent: So Server, Tell Me About Yourself — An Intro to Facter, Osquery & Sysdig | Puppet Labs
    January 18, 2015 - permalink - https://puppetlabs.com/blog/sysadvent-so-server-tell-me-about-yourself-intro-facter-osquery-sysdig?ls=social-media&ccn=twitter-product-20141222&cid=701G0000000F68P
    debug facter linux osquery sysdig
  • proc(5) — Linux manual pages
    • https://www.kernel.org/doc/Documentation/filesystems/proc.txt
    January 18, 2015 - permalink - http://manpages.courier-mta.org/htmlman5/proc.5.html
    linux proc
  • sysadvent: Day 6 - Debugging for Systems Engineers
    January 18, 2015 - permalink - http://sysadvent.blogspot.fr/2014/12/day-6-debugging-for-systems-engineers.html
    debug linux
  • LINUX System Call Quick Reference
    January 18, 2015 - permalink - http://www.digilife.be/quickreferences/qrc/linux%20system%20call%20quick%20reference.pdf
    call linux system
  • Top 8 Tools For Linux / Unix Memory Forensics Analysis

    LiME
    Draugr
    Volatilitux
    Memfetch
    Crash utility from Red Hat, Inc
    Memgrep
    Memdump
    foriana

    January 18, 2015 - permalink - http://www.cyberciti.biz/programming/linux-memory-forensics-analysis-tools/
    debug linux memory
  • What are useful command-line network monitors on Linux - Xmodulo

    plein d'outils network linux
    + nload

    via arnaub

    January 10, 2015 - permalink - http://xmodulo.com/useful-command-line-network-monitors-linux.html
    linux network
  • Linux Tune Network Stack (Buffers Size) To Increase Networking Performance
    January 1, 2015 - permalink - http://www.cyberciti.biz/faq/linux-tcp-tuning/
    linux sysctl
  • Un peu de réseau et de debug udp

    Prenons une application ouvre une socket UDP : pour chaque paquet qui arrive, elle va le traiter et passer au suivant. Si le traitement est plus cours que la cadence de reception, tout va bien, on peut travailler en "flux tendu". Pour éviter de perdre des paquets si l'application est trop lente, le kernel entretien des buffers qui ont une taille par defaut et une taille max.

    Pour consulter :

    sysctl net.core.rmem_default

    sysctl net.core.rmem_max

    sysctl net.ipv4.udp_mem

    net.core.netdev_max_backlog

    En cas de probleme, on peut augmenter la taille de ce buffer. (temporairement avec commande ou /proc/... et définitivement avec /etc/systcl.d/
    sysctl -w net.core.rmem_default=20000000
    sysctl -w net.core.rmem_max=30000000
    sysctl -w net.ipv4.udp_mem='262144 327680 393216'
    sysctl -w net.core.netdev_max_backlog=2000

    Comment savoir qu'on a des drop udp ?

    netstat -su

    Sinon il y a /proc/net/udp qui contient une ligne par socket udp avec le port (attention en hexadecimal), la taille du buffer utilisé, (s'inquiéter si rxqueue est différent de zéro) et enfin la dernière colonne, les drops !

    alors si vous avez des drops, il faut revoir l'application,.
    Augmenter la taille du buffer est utile seulement si ces drops sont du à des "burst" (des pics d'activité qui n'arrivent pas souvent), un plus grand buffer permettra d'absorber ces pics !

    En encore plus interactif : netstat -c --udp -an

    todo : trouver les commandes équivalentes avec ss

    https://github.com/etsy/statsd/issues/318
    https://www.assembla.com/spaces/LogZillaWiki/wiki/UDP_Buffers
    http://answers.splunk.com/answers/7001/udp-drops-on-linux.html

    December 10, 2014 - permalink - https://links.infomee.fr/shaare/AyHsGA
    drop kernel linux network networking nomarkdown reseau udp
  • Russell91/sshrc · GitHub

    wow could be useful

    via skunnyk

    September 19, 2014 - permalink - https://github.com/Russell91/sshrc
    dotconf dotrc linux rc ssh
  • unix - How can I pretty-print JSON? - Stack Overflow

    How to pretty print a json string :

    cat pref.json | python -m json.tool

    for uuoc nazi ;) :

    < pref.json python -m json.tool
    or
    python -m json.tool < pref.json

    September 3, 2014 - permalink - http://stackoverflow.com/questions/352098/how-can-i-pretty-print-json
    commandline json linux pretty print python
  • How to rename all folders and files to lowercase on Linux? - Stack Overflow

    Merci à ce mec, il m'a fait gagner du temps ^^

    find my_root_dir -depth -exec rename 's/(.)\/([^\/])/$1\/\L$2/' {} \;

    July 22, 2014 - permalink - http://stackoverflow.com/questions/152514/how-to-rename-all-folders-and-files-to-lowercase-on-linux
    linux lowercase rename
  • Mise aux poings sur systemd
    July 11, 2014 - permalink - http://linuxfr.org/news/mise-aux-poings-sur-systemd
    linux systemd
  • Improved default settings for Linux machines
    July 11, 2014 - permalink - http://tobert.github.io/post/2014-06-24-linux-defaults.html
    linux settings
  • Ucarp — Wikipédia

    via arnaudb

    June 19, 2014 - permalink - http://fr.wikipedia.org/wiki/Ucarp
    ha linux
  • Un ecrit sur les rootkit

    rkhunter chkrootkit tripwire AIDE

    June 4, 2014 - permalink - http://www.sans.org/reading-room/whitepapers/linux/linux-rootkits-beginners-prevention-removal-901
    linux rootkit security
  • ▶ "Linux Sucks" - 2014 - YouTube

    ya du vrai la dedans :D

    May 13, 2014 - permalink - https://www.youtube.com/watch?v=5pOxlazS3zs
    conf linux sys
  • rgrep grep -r et grep -R

    rgrep et grep -r sont équivalents : on cherche récursivement

    grep -R est légerement différent dans le sens où il va suivre les liens symboliques ce qui peut être plus pratique..

    April 29, 2014 - permalink - https://links.infomee.fr/shaare/xsOUWg
    grep linux
  • /proc/sys/net/ipv4/conf/

    La doc des propriétés : https://github.com/torvalds/linux/blob/master/Documentation/networking/ip-sysctl.txt

    Ensuite on peut les définir dans le dossier spécifique à l'interface, exemple : /proc/sys/net/ipv4/conf/eth0/
    Ou dans le dossier all : /proc/sys/net/ipv4/conf/all

    Exemple :

    La valeur pour ehto concernant la propriété arp_filter ne dépend pas seulement de /proc/sys/net/ipv4/conf/eth0/arp_filter mais aussi de /proc/sys/net/ipv4/conf/all/arp_filter
    D'après la doc, arp_filter est un boolean (0 ou 1)

    D'après ces liens :
    http://marc.info/?l=linux-kernel&m=123606366021995&w=2
    https://github.com/torvalds/linux/blob/master/include/linux/inetdevice.h (ligne 123 : #define IN_DEV_ARPFILTER(in_dev) IN_DEV_ORCONF((in_dev), ARPFILTER))

    On utilise un OR pour déterminer la valeur finale : il suffit qu'un des deux arp_filter soit à 1.

    Si la propriété n'est pas un boolean mais un integer qui peut prendre 0,1,2,etc... la valeur choisie entre le "all" et le "eth0" sera la valeur MAX d'après ce que j'ai compris.

    On retrouve ce fonctionnement dans d'autres dossiers :
    /proc/sys/net # find . -type d -name eth0
    ./ipv4/neigh/eth0
    ./ipv4/conf/eth0
    ./ipv6/neigh/eth0
    ./ipv6/conf/eth0

    Pour consulter :
    sysctl -a | grep arp_filter
    Pour modifier :
    à la volée :
    echo "1" > /proc/sys/net/ipv4/conf/...
    ou sysctl -w net.ipv4.conf.eth1.arp_filter=1
    persistant au reboot :
    /etc/sysctl.conf
    /etc/init.d/procps restart

    à notre un truc vicieux :
    /etc/init.d/procps restart n'a pas le meme effet qu'un reboot complet
    si on set une propriété à la volée à 1 comme net.ipv4.conf.eth1.arp_filter par exemple
    elle va rester à 1 apres un /etc/init.d/procps restart
    par contre elle se remet bien à 0 apres un reboot

    April 2, 2014 - permalink - https://links.infomee.fr/shaare/ztr7EA
    ipv4 linux sys sysctl
  • suckless.org dwm - dynamic window manager
    April 2, 2014 - permalink - http://dwm.suckless.org/
    linux window_manager
  • about - awesome window manager
    April 2, 2014 - permalink - http://awesome.naquadah.org/
    linux window_manager
  • https://github.com/torvalds/linux/blob/master/Documentation/networking/ip-sysctl.txt

    Documentation sysctl

    April 2, 2014 - permalink - https://github.com/torvalds/linux/blob/master/Documentation/networking/ip-sysctl.txt
    documentation kernel linux sysctl
  • Operation Windigo: Linux malware campaign that infected 500,000 Computers Worldwide - The Hacker News

    Oh shit

    March 18, 2014 - permalink - http://thehackernews.com/2014/03/operation-windigo-linux-malware.html
    linux malware security virus
  • Optimiser son SSD sous Linux - P3ter.fr

    Au cas ou un jour je passe mon desktop sous linux.

    via arnaudb

    February 25, 2014 - permalink - http://p3ter.fr/article53/optimiser-son-ssd-sous-linux
    linux ssd
  • Drop Caches - linux-mm.org Wiki
    February 13, 2014 - permalink - http://linux-mm.org/Drop_Caches
    cache linux
  • Using fastpath software to boost performance of Linux-based home network routers | Embedded
    February 13, 2014 - permalink - http://www.embedded.com/design/programming-languages-and-tools/4425631/Using-fastpath-software-to-boost-performance-of-Linux-based-home-network-routers
    linux routing
  • Distributions GNU Linux orientées sécurité | Cypherpunk

    Tiens je connaissais pas ce blog de bluetouff

    February 11, 2014 - permalink - http://cypherpunk.fr/distributions-gnu-linux-orientees-securite/
    blog hack linux security
  • A Unix Utility You Should Know About: lsof - good coders code, great reuse

    Exemples d'utilisation de lsof

    February 7, 2014 - permalink - http://www.catonmat.net/blog/unix-utilities-lsof/
    file linux lsof socket
  • Command line one-liners | Arturo Herrero

    Sympa tous ces one liners ! il y a même un repo dans lequel on peut ajouter les siens : https://github.com/fxn/tkn

    Mes préférés :
    $ echo "!!" > script.sh
    $ cp file.txt{,.bak}
    $ (cd /tmp && ls)
    $ nc -l 5566 > data-dump.sql
    $ nc 5566 < data-dump.sql

    via Olivier

    January 22, 2014 - permalink - http://arturoherrero.com/2013/11/29/command-line-one-liners/
    bash commandline linux
  • linux - ulimit nofiles and lsof - Super User

    pour voir les limites d'un user : ulimit -a
    Pour setter définitivement : voir fichier /etc/security/limits.conf et limits.d
    Pour setter on the fly, par exemple pour les open files : ulimit -n 32000

    January 7, 2014 - permalink - http://superuser.com/questions/579692/ulimit-nofiles-and-lsof
    files linux ulimit
  • The Best Screen Capture Tool for Linux

    Parce qu'avec l'outil par défaut proposé par gnome3, on ne peut pas faire d'annotation.

    January 5, 2014 - permalink - http://lifehacker.com/5889994/the-best-screen-capture-tool-for-linux
    gnome linux screenshot soft tools
  • Inter-process communication - Wikipedia, the free encyclopedia
    • http://en.wikipedia.org/wiki/Unix_domain_socket+
    • http://en.wikipedia.org/wiki/Named_pipe
    January 3, 2014 - permalink - http://en.wikipedia.org/wiki/Inter-process_communication
    communication fifo ipc linux pipe process socket unix
  • namei - Linux Command - Unix Command

    Une commande qu'elle est bien :

    namei /path/to/the/deepest/file

    Affiche toutes les permissions + les owners de toute l'arborescence jusqu'au fichier.

    via nicolasc

    December 27, 2013 - permalink - http://linux.about.com/library/cmd/blcmdl1_namei.htm
    arbo droit linux permissions right
  • Valve dévoile la distribution GNU/Linux SteamOS - LinuxFr.org

    :D

    December 16, 2013 - permalink - http://linuxfr.org/news/valve-devoile-la-distribution-gnu-linux-steamos
    linux steam
  • Elegantly dropping priviledge in an /etc/cron.daily script » Mike / Michael Fogel

    A mettre au début d'un script qui se trouve dans un des dossiers /etc/cron.xxxx pour qu'il soit éxécuté par un utilisateur autre que root.

    !/bin/sh

    USER='some-low-privilege-user'
    if [ whoami != "$USER" ]; then
    sudo -u $USER "$0"
    exit
    fi

    ... rest of the script ...

    December 9, 2013 - permalink - http://www.fogel.ca/2010/08/07/elegantly-dropping-priviledge-in-an-etccron-daily-script/
    crontab debian linux
  • Faster Grepping in Vim

    Parait que ça va plus vite que ack
    à tester

    November 28, 2013 - permalink - http://robots.thoughtbot.com/faster-grepping-in-vim/
    ack grep linux vim
  • Ncdu Manual

    Outils en ligne de commande pour trouver ce qui occupe de la place, bien pratique

    November 26, 2013 - permalink - http://dev.yorhel.nl/ncdu/man
    backup file files linux space tools
  • nmon for Linux | Main / HomePage

    Tools de monitoring à tester

    via ArnaudB

    November 26, 2013 - permalink - http://nmon.sourceforge.net/pmwiki.php
    linux monitoring
  • linux - How do I prevent accidental rm -rf /*? - Server Fault

    Sympa le trick pour éviter de rm /*
    via http://links.hoa.ro/

    November 21, 2013 - permalink - http://serverfault.com/questions/337082/how-do-i-prevent-accidental-rm-rf
    linux rf rm shell
▼ Load 50 more