Jerz fr
Compilation de motules sous Debian-Ubuntu
modifierTélécharge 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'
Commandes utile pour cérer un systeme identique au premier
modifierPour obtenir les paquets installé (dans le fichier liste) :
COLUMNS=300 dpkg -l | grep '^ii' | awk '{print $2}' > liste
Pour les installer :
apt-get install `cat liste`
Repris de : http://forum.ubuntu-fr.org/viewtopic.php?pid=96937#p96937
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 :
NFS
modifierhttp://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 :
ext3
modifiere2fsck -Stpf
tune2fs -s1
debugfs ...
Vidéo
modifierffmpeg -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 :
Informations sur le système (uname)
modifierVersion complette du kernel
uname -r
Nom de la machine
uname -n
Reseau
modifiertable arp
arp -a
Start ksh
modifierexec ksh
USB view
modifiercat /proc/bus/usb/devices
Debian
modifiergforge : alioth.debian.org
- Debian-np
- debian-multimadia
- debian-desctup
- http://bugs.debian.org/Bugs
- http://db.debian.oeg
- http://packages.debian.org
Extentions
modifierDocumentation
modifierInstalling 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
LDAP
modifierHoax
modifierSecurité
modifierMonitoring
modifierZabbix
Oreon
fr-ch
modifierWindows
modifierext2 : http://ext2fsd.sourceforge.net/index.htm 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
Matériel
modifierportable sans windows https://linuxfr.org/2004/05/13/15986.html
Proxy
modifierProFTP
modifierMénagerie
modifier- 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/ ./
VI
modifierSHIFT 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
RegExp
modifier. tout caractère * repette n fois [] block de choix \s escpace \w 0-9a-zA-z, ... ^ début de ligne $ fin de ligne
bach
modifiernohup détachement du terminal !! 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
completion: https://linuxfr.org/tips/174.html Une astuce toute bête mais utile si on n'a pas fait attention. Les packages bash de la Debian (à vérifier pour les autres distrib) possèdent déjà plein de raccourcis pour la complétion sous bash. Pour les activer, il suffit de décommenter les 3 dernières lignes du fichier /etc/bash.bashrc. Toutes les completions sont définies dans le fichier /etc/bash_completion et les complétions plus complexes sont dans le répertoire /etc/bash_completion.d
APT
modifierapt-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
Réseau
modifierExiste-t-il une commande qui donne le nom à partir de l'adresse IP ? Existe-t-il une commande qui donne l'adresse IP à partir d'un nom ?
la commande host
tcpdump
Mac adresse ! ping -c 2 server arp
Servers
modifierApple
modifiernetatalk
Sécurité
modifierOutLook
modifierautre 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
Man
modifierKonqueror: man:/ls apache: man2html
Link
modifierLive CD
modifierantivirus :
- http://antesis.org/rubrique.php3?id_rubrique=2&lang=fr
- http://www.bitdefender.com/bd/site/products.php?p_id=40
Multimedia :
Sound
modifierEnemy etrritory artsdsp -m et
Musique
modifier- http://lilypond.org/web/switch/tour.html
- http://agnula.org
- DeMuDi
- TerminatorX
- Gjay
- Jack (drivers audio)
- jack-rack
extendedPDF
Conversion de table de caractères
modifiericonv --from-code=ISO-8859-1 --to-code=UTF-8 < old_file > new_file
Tools
modifiermtools fuser ps aux
Copy on ssh
modifiercd /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 -)
https://linuxfr.org/tips/199.html Voir aussi : http://www.shadlen.org/sl/linux/remote/scp.htm
Sonorisation
modifierSpectroscopic 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)
Firefox
modifierLinkification http://www.tom-cat.com/mozilla/
Ports
modifierLister 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