Utilisateur:Sbrunner/Pense bête
Un article de Wikipédia, l'encyclopédie libre.
{| class="wikitable" | cell 1 || cell 2 |}
=>
cell 1 | cell 2 |
[modifier] Autre
- <br style="clear:both;">
[modifier] Gestion de paquets
[modifier] Compilation de modules sous Debian-Ubuntu
Télécharger les sources
sudo apt-get install 'module'-source
Compile et installe le module
sudo module-assistant prepare # May not be needed sudo module-assistant get 'module' sudo module-assistant build 'module' sudo module-assistant install 'module'
Ou plus simplement
sudo module-assistant auto-install 'module'
[modifier] GPG
gpg --keyserver subkeys.pgp.net --recv-keys 3BC2083F gpg --export --armor 3BC2083F | sudo apt-key add -
[modifier] Commandes utile pour créer un système identique au premier
Pour obtenir les paquets installé (dans le fichier liste) :
dpkg --get-selections > liste
ou
COLUMNS=300 && dpkg -l | grep ^ii | awk '{print $2}'
Pour les installer :
sudo dpkg --set-selections < liste && sudo apt-get dselect-upgrade
ou
sudo apt-get install `cat liste`
Repris de : http://forum.ubuntu-fr.org/viewtopic.php?id=8137, http://forum.ubuntu-fr.org/viewtopic.php?pid=96937#p96937
[modifier] APT-dpkg
apt-cache search outlook
Build
sudo apt-get build-dep package apt-get -b source package
https://linuxfr.org/tips/19.html http://www.fr.debian.org/doc/manuals/apt-howto/index http://www.fr.debian.org/doc/manuals/apt-howto/ch-search.fr.html#s-apt-file http://www.fr.debian.org/doc/manuals/apt-howto/ch-sourcehandling.fr.html
Script de désinstallation
/var/lib/dpkg/info/*.prem
Liste des fichiers d'un paquet
dpkg -L paquet
Appartenance d'un fichier à un paquet
dpkg -S fichier
Enlever les résidus de configuration
sudo dpkg --purge `dpkg -l | grep ^rc | awk '{print $2}'`
[modifier] Shell script
- http://madchat.org/coding/sh/write_a_shell_script-fr.htm
- http://lea-linux.org/cached/index/Dev-shell_script.html
- http://cybersdf.org/2006/01/21/172-guide-survie-en-ligne-de-commande
- http://www.linuxfocus.org/Francais/September2001/article216.shtml
- Commandes UNIX
- http://www.shellunix.com/csh.html
Start ksh
exec ksh
[modifier] Sed
Find-replace
sed 's/find/replace/g' file
Enlève ligne vide
sed '/^[[:space:]]*$/d' file
Paramètres
sed 's/find/pre\1post/g' file
Voir aussi :
[modifier] find
Lister les fichiers java :
find . -name *.java -print | while read f; do echo $f done
[modifier] détachement du terminal
- screen
screen cmd Ctrl+a d to detach screen -d -r to re-attache
auto start : http://taint.org/wk/RemoteLoginAutoScreen
- nohup
[modifier] bach
!! refait la dernière commande !cmd refait la dernière commande commençant par cmd !cmd:p permet de visualiser la dernière commande commençant par cmd
[modifier] Autre
nb lignes
wc -l
fichiers ouvert
lsof
[modifier] Réseau
Nom à partir de l'adresse IP
host 192.168.1.1
Adresse IP à partir d'un nom
host sun4
Port utiliser
tcpdump
Lister les services lancés et les ports qu'ils utilisent
nmap -p 1-10000 localhost lsof -i netstat -tlnp : process tcp en mode listenning netstat -ulnp : process udp en mode listenning netstat -lnp : process en mode listenning netstat -anp : tous les process ouverts
Mac adresse
ping -c 2 server arp -a
[modifier] NFS
http://www.bxlug.be/articles/200
showmount -e 192.168.1.40
192.168.1.40:/home/Share /mnt/iomega_NAS_100 nfs user,rsize=8192,wsize=8192,timeo=14,intr,noauto 0 0
nosuid ?
Voir aussi :
[modifier] Désactive IPV6
Editer le fichier :
/etc/modprobe.d/aliases
Rechercher la ligne :
alias net-pf-10 ipv6
Remplace par :
alias net-pf-10 off
Sauve reboot.
Source : http://ubuntuforums.org/showthread.php?t=6841
[modifier] LDAP
- http://www.pascalou.org/linux/doc/authentification-ldap.html
- http://www-sop.inria.fr/semir/personnel/Laurent.Mirtain/ldap-livre.html
[modifier] Securité
[modifier] Hoax
[modifier] Monitoring
Zabbix
Oreon
[modifier] Proxy
[modifier] ProFTP
- http://www.proftpd.org/docs/directives/linked/config_ref_Anonymous.html
- http://www.coagul.org/article.php3?id_article=184
[modifier] Disk
Test d'integrité
e2fsck -Stpf
Correct system size _?
tune2fs -s1
Mesure vitesse :
sudo hdparm -Tt /dev/hdc
Partitions
sudo fdisk -l
debugfs ...
[modifier] Vidéo
ffmpeg -i pubCDP2006.avi -ab 40 -ar 44100 -b 60 -r 15 -s 160x120 -f flv pubCDP2006-100.flv ffmpeg -i pubCDP2006.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv pubCDP2006-256.flv ffmpeg -i pubCDP2006.avi -ab 96 -ar 44100 -b 400 -r 15 -s 320x240 -f flv pubCDP2006-496.flv
ffmpeg -i pubCDP2006.avi -ab 56 -b 500 -r 15 -s 320x240 -f flv pubCDP2006.flv ffmpeg -i pubCDP2006.avi -ab 56 -b 200 -r 15 -s 320x240 -f flv pubCDP2006s.flv
Voir aussi :
[modifier] Informations sur le système (uname)
Version complette du kernel
uname -r
Nom de la machine
uname -n
[modifier] USB view
cat /proc/bus/usb/devices
[modifier] Debian
gforge : alioth.debian.org
- Debian-np
- debian-multimadia
- debian-desctup
- http://bugs.debian.org/Bugs
- http://db.debian.oeg
- http://packages.debian.org
[modifier] Extentions
http://www.endungen.de/index.php/en/
[modifier] Documentation
Installing Debian Sarge from a USB memory stick (USB key) : http://d-i.pascal.at/
accsess :
- http://mdbtools.sourceforge.net/
- http://fr.openoffice.org/Documentation/How-to/indexht.html
- http://fr.openoffice.org/Documentation/How-to/Bdd/04migrfr.pdf
- http://www.kexi-project.org/
- http://www.knoda.org/
Debian : Formation : http://people.via.ecp.fr/~alexis/formation-linux/formation-linux.html
[modifier] fr-ch
- http://iacs.epfl.ch/~prudhomm/
- http://doc.domainepublic.net/linux/faq_debian-user/debfr-liste.html
- http://www.debian.org/international/French
- http://packages.qa.debian.org/
[modifier] Windows
ext2
sécurité
- http://sourceforge.net/project/showfiles.php?group_id=64424&package_id=76046&release_id=144640 (CodeSeeker)
- http://sourceforge.net/projects/tdifw/ (TDI FireWall)
xpy est un petit logiciel permettant de sécuriser Windows : http://www.framasoft.net/article2903.html
[modifier] Matériel
portable sans windows https://linuxfr.org/2004/05/13/15986.html
- http://ataria.errex.net/
- http://www.xbook-computer.com/catalog/product_info.php?cPath=40_74&products_id=135
- http://d-i.alioth.debian.org/manual/fr.i386/ch02.html
[modifier] Ménagerie
- http://ydegoyon.free.fr/pidip.html
- http://mcs.hackitectura.net/tiki-index.php
- http://subsignal.org/pakt/
- http://www.constantvzw.com/
- http://garbure.org/ratatouille/?el=Download
- http://wiki.frimouvy.org/wakka.php?wiki=VideoSousLinux&show_comments=1
- Pitivi - http://www.pitivi.org/
- openVIP - http://openvip.sourceforge.net/
- cinelerra - deb http://www.kiberpipa.org/~minmax/cinelerra/builds/sid/ ./
[modifier] VI
SHIFT | v | selectionne ligne |
v | selectionne caractaires | |
CTRL | v | selectionne zone |
SHIFT ! | => cmd | |
! cmd | insert dans la selection (grep, sort, ...) | |
u | undo | |
CTRL | r | redo |
y | copy | |
p | past | |
~ | change case | |
* | hight light | |
/text | search | |
n | next | |
SHIFT | n | previous |
q name | record | |
@ name | exec | |
. | redo last cmd |
[modifier] RegExp
. tout caractère
* repette n fois
[] block de choix
\s escpace
\w 0-9a-zA-z, ...
^ début de ligne
$ fin de ligne
[modifier] Servers
Webmin : https://localhost:10000
[modifier] Apple
netatalk
[modifier] Sécurité
- http://www.pcflank.com/test1.htm
- http://firestarter.sourceforge.net/
- http://www.archilinux.org/securit/secu.html
- http://www.shorewall.net/standalone_fr.html
- http://arnofear.free.fr/linux/shorewall-1.php
[modifier] OutLook
autre solution : tu exportes en eml et tu utilises eml2mbox que tu peux trouver sur http://www.broobles.com/eml2mbox/
autre solution 2 : tu peux peut-etre passer par l'import/export de mozilla outlook -> mozilla -> evolution
[modifier] Man
Konqueror: man:/ls apache: man2html
- http://www.oscommerce.org/
- http://www.xfld.org/Xfld/en/index.html
- http://c-arbre.pacageek.org/ressources/pages/features/
[modifier] Link
[modifier] Live CD
antivirus :
- http://antesis.org/rubrique.php3?id_rubrique=2&lang=fr
- http://www.bitdefender.com/bd/site/products.php?p_id=40
Multimedia :
[modifier] Sound
Enemy etrritory artsdsp -m et
[modifier] Musique
- http://lilypond.org/web/switch/tour.html
- http://agnula.org
- DeMuDi
- TerminatorX
- Gjay
- Jack (drivers audio)
- jack-rack
[modifier] PDF
extendedPDF
[modifier] Conversion de table de caractères
iconv --from-code=ISO-8859-1 --to-code=UTF-8 < old_file > new_file
[modifier] Tools
mtools fuser ps aux
[modifier] GetText
http://www.mandragor.org/tutoriels/gettext/3
Compile
msgfmt -o /usr/share/locale/fr/LC_MESSAGES/message.mo message.po
[modifier] Copy on ssh
cd /source/dir/ tar cf - . | ssh destmach "(cd /dest/dir/ ; tar xf -)"
pour copier à distance.
et bien sûr :
cd /source/dir/ tar cf - . | (cd /dest/dir/ ; tar xf -)
en local.
Ca marche aussi avec dump/restore (sous Linux, mais aussi Solaris, Tru64, etc) :
cd /sourcemp dump 0f - . | (cd /dest/dir/ ; restore xf -)
[modifier] Sonorisation
Spectroscopic Toolkit
- http://kmt.hku.nl/~pieter/SOFT/ST/html/index.html
- http://www.hitsquad.com/smm/linux/SPECTRUM_ANALYZERS/
XSpectrum
- http://www.hitsquad.com/smm/programs/Sonogram_visible_linux/
- http://www.dfki.de/~clauer/programming.html
- http://www.dfki.de/~clauer/sonogram/
Sonasound (Debian)
[modifier] Firefox
Linkification http://www.tom-cat.com/mozilla/