Ajout d’un Wiki pour toutes les infos que je peux récolter sur Unix / Linux etc … http://www.bibiche.fr Ajout d’un Wiki pour toutes les infos que je peux récolter sur Unix / Linux etc …...
Sécurité sous Linux...
posted by manu
Quelques liens sur la sécurité Linux avec des exemples.Sécurité Linux : – Prelude – Snort – Portsentry – Tcplogd – Nmap – Nessus – Sara Prelude : Mon Prelude à moi … je l’ai arrété car j’ai un routeur qui fonctionne tellement bien qu’aucunes attaques ne s’est fait ressentir sur le serveur …. et la base de prelude commençait à grossir pour rien ….. d’ou son...
Liens Solaris
posted by manu
Quelques sites sur Sun SOlarisFree Solaris Software Free Solaris Software Sun website Solstice DiskSuite / Solaris Volume Manager Free Solaris Links Solaris Admin Pack Jass security Solaris 9 Data Encryption Solaris hints tips and tricks Solaris Cluster Patch Sun Manager Mailing List Sun Free Software Open Source Solaris Sun Pkg-get Free Sun Pkg-get Free Software SunFreeware List for SPARC and Solaris...
Création de sites web...
posted by manu
Quelques liens sur la création/gestion de sites websApache pour Windows en danger {Webhosting}{Cpanel}{Reseller}{Fantastico}{PHP} $10 Cheap Web Hosting Directory – Top 10 Reviews, Search Compare – PHP MySQL FrontPage Nukefr Nukefrance PHP-Nuke FRANCE Cheap web hosting – CGI & FrontPage support Dépôt de nom de domaine en .com .net Host Ultra WebD – Outils webmasters professionnels Plan Features Disipal Designs midPhase – The Best Value in Web...
Nagios : tests
posted by manu
Quelques tests sur NagiosNagios : Mon Nagios a moi … Il a été necessaire de compiler nagios pour solaris 9 sans ssl, ainsi que de recréer un éxé sans ssl aussi sur le serveur nagios FC3. J”ai été aussi obligé pour les besoins de certaines commandes de rajouter LANG=C ds les variables...
Cfengine
posted by manu
Petit Démarrage de Cfengine par une configuration simpleToujours en fonction des variables et des actions !!!! ——————————————–root@solaris10:# more cf.actionsgroups: any:: tp_always = ( any ) alerts: zone1:: "ZONE ONE" alerts: zone2:: "ZONE TWOOOOOOOOOOO" alerts: sol_10:: "les 2 solaris" solaris:: " solaris defauult"> /var/cfengine/master———————————————root@solaris10:# more cf.sunactions##############################################################groups: sol_10:: sys_ntpdate = ( tp_always ) ############################################################## ———————————————root@solaris10:# more cf.variablesgroups: sol_10:: sys_ntpdate = ( tp_always )———————————————root@solaris10:# more cfservd.conf########################################################### This is a cfd config file#control: domain = ( lookit.org ) AllowConnectionsFrom = ( 192.168.0.0/24 ) AllowUsers = ( root ) TrustKeysFrom = ( 192.168.0.0/24 ) any:: ChecksumDatabase = ( /tmp/testDATABASEcache ) IfElapsed = ( 1 ) MaxConnections = ( 100 ) ######################################################### admit: # or grant: # Autorisation de transferts de fichiers du serveur vers les clients sur les reseaux ip suivants:/var/cfengine/master 192.168.0.*————————————————-root@solaris10:# more cf.groupsgroups: zone_one = ( zone1 ) zone_two = ( zone2 ) sol_10 = ( solaris10 zone1 zone2 )———————————————root@solaris10:# more cfagent.conf################################################################## cfagent.conf basique, tout juste fonctionnel.# Le même qui nous a servi à étudier la syntaxe de cfengine.################################################################# control: domain = ( lookit.org ) timezone = ( CET ) actionsequence = ( checktimezone shellcommands ) sysadm = ( nsl@free.fr ) any:: Access = ( root ) schedule = ( Min00_05 ) IfElapsed = ( 5 ) ExpireAfter = ( 60 ) EditfileSize = ( 80000 ) shellcommands: "/bin/cp /var/cfengine/inputs/conf/resolv.conf_other /etc/resolv.conf" "/bin/cp /var/cfengine/inputs/conf/profile /.profile" "/bin/cp /var/cfengine/inputs/conf/profile /.bashrc" "/bin/cp /var/cfengine/inputs/conf/profile /etc/profile" import: any:: cf.variables cf.sunsystem cf.groups cf.actions cf.sunactions———————————————root@solaris10:# more update.confcontrol: domain = ( lookit.org ) actionsequence = ( copy ) policyhost = ( solaris10 ) masterdir = ( /var/cfengine/master ) localdir = ( /var/cfengine ) AllowRedefinitionOf = ( SplayTime ) SplayTime = ( 55 ) TrustKeysFrom = ( solaris10 ) sysadm = ( root@localhost ) smtpserver = ( localhost ) workdir = (...
Sun Solaris Zones
posted by manu
Un tutorial sur les ZONES de Solaris 10http://www.blastwave.org/articles/DMC-0002/index.html How to setup your very own zone! Creating zone complete and not with shared directory : zonecfg -z name create -b Installing package on zone : pkgadd -g NAME : install it only on globale zone … pkgadd NAME : on all zones. The first step here is to get a piece of hardware to test with. You can use an Intel or AMD Opteron unit or a UltraSparc server. For my testing and playing I choose one of many Netra T1 UltraSparc units that I have in a rack. I download the CDROM ISO files from Sun. I then use lofiadm and a few other steps to create a jumpstart server for network booting. Simply put, I did the entire process remotely, from home, with a laptop and a modem. Like I said, Solaris is really slick. Most admins that work with Solaris are very aware of how to boot a server from across the net and perform an install. That is what I did. After the initial install of Solaris 10 build 51 I had the following config here at blastwave.org :bash-2.05b# uname -aSunOS zoner 5.10 s10_51 sun4u sparc SUNW,UltraSPARC-IIi-cEngine bash-2.05b# prtconf -v | grep MemoryMemory size: 320 Megabytes The file system layout looks like so : bash-2.05b# df -akFilesystem kbytes used avail capacity Mounted on/dev/dsk/c0t0d0s0 371137 74357 259667 23% //devices 0 0 0 0% /devices/dev/dsk/c0t0d0s6 3009594 1708386 1241017 58% /usrproc 0 0 0 0% /procmnttab 0 0 0 0% /etc/mnttabfd 0 0 0 0% /dev/fd/dev/dsk/c0t0d0s1 740495 73752 607504 11% /varswap 1262208 48 1262160 1% /var/runswap 1262160 0 1262160 0% /tmp/dev/dsk/c0t0d0s5 1375228 693 1319526 1% /opt/dev/dsk/c0t0d0s7 2055705 30 1994004 1% /export/home-hosts 0 0 0 0% /netauto_home 0 0 0 0% /homezoner:vold(pid489) 0 0 0...
Veritas FS
posted by manu
Petit tutorial sur Veritas FS, gestion du file system de VERITAS.Last Updated: Thu May 10 14:23:37 CDT 2001 A1000 Dual Port Setup and Configuration with Veritas Volume Manager and Filesystem ———————————————————– Overview: The following tutorial documents the steps used to configure a singleA1000 array to be shared between two hosts. It then documents thesteps used to create simple Veritas volumes and filesystems on eachof the logical array drives, as well as the steps necessary to deportand import the volumes between the two hosts. This tutorial is based on an actual install of the configuration usedin the examples. Hardware configs: Sun StorEdge A1000 – SCSI Target ID 1 w/ 7 18GB disk drives d0 d1 d2 HS d0 d1 d2 ———————————————– | 2,0 2,1 2,2 2,3 | 1,0 1,1 1,2 | ———————————————– | | | controller 1 | controller 1 | | ————– ————- | E220R | | E220R | ————– ————- node1 node2 | | c0t0d0 c0t0d0 Internal root drive c0t1d0 c0t1d0 Internal root mirror – Both E220R's have a dual-channel Differential Ultra-SCSI card, with the first port (controller 1) connected to the A1000 array. – The A1000 array was configured as 3 logical drives, plus one hot spare. The logical drives consist of 2 18GB disk drives mirrored (RAID 1). – The A1000 logical drives are seen as: c1t1d0, c1t1d1, c1t1d2 – Final configs are setup as: Internal Drives: Boot drive c0t0d0 encapsulated as rootdisk and mirrored to disk01 (c0t1d0) A1000 Drives are all simple (concatenated) veritas volumes with vxfs filesystems: /mh = disk02 = c1t1d0 = RAID 1 hardware mirror using array drives 1,0 and 2,0 /ms = disk03 = c1t1d1 = RAID 1 hardware mirror using array drives 1,1 and 2,1 /amt = disk04 = c1t1d2 = RAID 1 hardware mirror...
Sun Solaris ZFS
posted by manu
Petit tutorial sur Sun Solaris ZFS, gestion du nouveau file system de SUN. ZFS is easy, so let's get on with it! It's time to create your first pool: # zpool create tank c1t2d0 You now have a single-disk storage pool named tank, with a single filesystem mounted at /tank. There is nothing else to do. If you want mirrored storage for mail and home directories, that's easy too: Create the pool: # zpool create tank mirror c1t2d0 c2t2d0 Create the /var/mail filesystem: # zfs create tank/mail # zfs set mountpoint=/var/mail tank/mail Create home directories, and mount them all in /export/home/<username>: # zfs create tank/home # zfs set mountpoint=/export/home tank/home # zfs create tank/home/ahrens # zfs create tank/home/billm # zfs create tank/home/bonwick # zfs create tank/home/eschrock … Filesystems in ZFS are hierarchical: each one inherits properties from above. In this example, the mountpoint property is inherited as a pathname prefix. That is, tank/home/ahrens is automatically mounted at /export/home/ahrens because tank/home is mounted at /export/home. You don't have to specify the mountpoint for each individual user — you just tell ZFS the pattern. This is how we actually set up home directory and mail service on zion.eng, which has been running ZFS for over a year and a half. But wait, there's more! ZFS provides built-in compression. To compress all home directories: # zfs set compression=on tank/home To give ahrens a 10G quota: # zfs set quota=10g tank/home/ahrens To give bonwick a 100G reservation (membership has its privileges): # zfs set reservation=100g tank/home/bonwick To automatically NFS-export all home directories read/write: # zfs set sharenfs=rw tank/home To scrub all disks and verify the integrity of all data in the pool: # zpool scrub tank To replace a flaky disk: # zpool replace tank c2t2d0 c4t1d0 To...
Sun Solaris SVM-SDS
posted by manu
Petit tutorial sur Sun Solaris Volume Manager, gestion RAID de Sun. En cas de 2 disques : rajouter : set md:mirrored_root_flag=1 dans /etc/system , à partir de 3 non( corum ) Raid 0 : concatenation : on rempli A puis B Stripping : on partage data sur A et B Raid 1:mirroring, plexing Raid 0+1 : bof :a_b_c+a_b_cstripping + mirroring 00 1 Raid 1+0 : bon : a_ab_bc_c 111 0 Raid 2 :a + b + c = p_abc Raid 3 :a_d + b_e + c_f = p_abc + p_def Raid 4 : pareil que raid 3 : asynchrome Raid 5 :pareil que raid 3_4 : gestion des priorités : partage Raid 6 : Double parité Raid soft :solaris + svm + VM V Bus scsi V ( Disks ) ou ( disks + cache) Raid Hard : solaris ( c1t3… ) V Bus scsi 1 ( ou plusieurs Bus scsi en miroir ) VV Controleur raid > avec disks ( appelés LUN ou DEVICE ) Raid Soft + Hard : plaiding ( miroir ) entre 2 controleur raid. SVM: – 3 databases minimum. – Nécessaire pour booter au minimum : la moitié + 1 db ( notre paramétrable ds /etc/system ) – Si la moitié tombe : c’est ok … Si < à la moitié : PROBLEME – Jusqu'à Sol8 inclus : infos des metadbs ds /etc/system – Les devices sont créés ds md.cf /dev/md/rdsk* et /dev/md/dsk* – BACKUP a faire avant crash : /etc/vfstab, /etc/system, backup des prtvtoc, backup de la conf SVM – NE PAS TOUCHER AUX FICHIERS : /etc/lvm/mddb.cf, /etc/lvm/md.cf, /kernel/drv/md.conf ( config de SUN ). – ON PEUT TOUCHER : /etc/lvm/md.tab. – metaparam : paramétrer : l’ordre de synchro des disques, méthode d’écriture/lecture...
Veritas VxVM Volume Manager...
posted by manu
Petit tutorial sur Veritas VxVM, gestion du raid de VERITAS. Veritas Volume Manager 1. Volume ManagerObjects 1.1 Disks 1.2 Disk groups 1.3 Volume Manager disks 1.4 Subdisks 1.5 Plexes 1.6 Volumes 1.7 Volume Manger Objects & their Relationship 2. Volume Manager Configuration ( options menu) 2.1 Add or initialize one or more disks 2.2 Encapsulate one or more disks 2.3 Remove a disk 2.4 Remove a disk for replacement 2.5 Replace a failed or removed disk 2.6 Mirror volumes on a disk 2.7 Move volumes from a disk 2.8 Enable access to (import) a disk group 2.9 Remove access to (deport) a disk group 2.10 Enable (online) a disk device 2.11 Disable (offline) a disk device 2.12 Mark a disk as a spare for a disk group 2.13 Turn off the spare flag on a disk About Veritas volume manager : Veritas Volume Manager is a software product from veritas Inc. and it is used to manage disk storage . The main features of volume manager are following : 1. Allows creation of logical volumes spanning over multiple disks. This overcomes the physical limit of the disk . 2. Provides high availability storage solutions through RAID ,Mirroring of disks . 3. Provides fail over features by providing transferable disk group ownership between systems. 4. Dynamic reconfiguration of disk storage in an online system state. what is veritas volume manager . The following article describes the volume manager objects and configuration of these objects using a text menu based utility called vxdiskadm . 1.0 Volume ManagerObjects Disks Disks are referred in volumemanager by two terms – device name and disk name . The device namespecifies controller , target id and slice of the disk . Disk name is the commonname given to the device name...
Veritas VxVM Suite : Vxassist...
posted by manu
Petit tutorial sur Veritas VxVM, gestion du raid de VERITAS. vxassist General 1. Creating a Volume 1.1 Creating a Concatenated Volume 1.2 Creating a Striped Volume 1.3 Creating a RAID-5 Volume 2. Extending a Volume 2.1 Extending a volume up to certain length, 2.2 Extending by a Given Length 3. Shrinking a Volume 3.1 Shrinking to a Given Length 3.2 Shrinking by a Given Length 4. Removing a Volume 5. Mirroring a Volume 5.1 Creating & Mirroring a New Volume 5.2 Mirroring an Existing Volume 5.3 Mirroring All Volumes 6. Removing a Mirror 7. Adding a RAID-5 Log 8. Adding a DRL Log 9. Removing a RAID-5 Log 10.Preparing a Volume for Online Backup 11.Displaying Volume Configuration Information General The vxassist utility in Veritas Volume Manager is used to create volumes, add mirrors and logs to existing volumes, extend and shrink existing volumes, provides for the migration of data from a specified set of disks, and provides facilities for the on-line backup of existing volumes. The default behavior of vxassist is to create volumes in the rootdg diskgroup if diskgroup is not specified . The default length is taken as number of blocks but this can be specified in Kilobytes orMegabytes or Gigabytes. vxassist command syntax : vxassist volume_name [attributes] Commonly used options are given below (See man vxassist for complete list of supported options) -g for specifying diskgroups -b for background operation -d file containing defaults for vxassist if not specified /etc/default/vxassist is used Keywords used are make , mirror , move , growto ,growby ,shrintto ,shirnkby ,snapstart , snapshot ,snapwait Attributes specify volumes layout disks controllar to include exclude etc Device Nodes : Default rootdg disk group. Block Device Node /dev/vx/dsk/volume_name Raw Device Node /dev/vx/rdsk/volume_name Other DiskGroups Block Device Node /dev/vx/dsk/diskgroup_name/volume_name Raw...
Perl par la pratique
posted by manu
Petit tutorial PERLCOURS PERL :http://www.med.univ-rennes1.fr/~poulique/cours/perl/ —————————————– #!/usr/bin/perl# af – about files print "Please enter file name " if (-t STDIN);chop ($name = <STDIN>); @fdata = stat($name);@text = ("device","inode","mode","links", "user id", "group id","device id","size", "accessed", "modified","changed","blocksize", "block count"); foreach $k(0..$#text) { printf "%-12s",$text[$k]; print $fdata[$k],"n"; } ———————————————-#!/usr/bin/perluse Archive::Tar;use Net::FTP; $date=time();my $ftp_html = Net::FTP->new('server',Passive=>1,Timeout=>30000),"n";$ftp_html->login('login','passwd'); $ftp_html->cwd('/'),"n"; my @fileList2 = $ftp_html->ls('*.gz'); foreach my $file2 (@fileList2) { $ftp_html->delete($file2) } $ftp_html->cwd('/CPNgroupe'),"n";my @fileList = $ftp_html->ls('*.bak');foreach my $file (@fileList) { $mois="2678400"; $datef=$ftp_html->mdtm($file),"n"; $sous= $date – $datef; if ( $sous > $mois ) { $ftp_html->delete($file); }} $ftp_html->quit;——————————————-$rep= "/test" ;opendir R, $rep or die "impossible d'ouvrir le rép. $rep";@liste=readdir(R);foreach $f (@liste) { next if $f eq "." or $f eq ".."; $file= "$rep/$f"; if (-f $file) { (undef,undef,undef,undef,undef,undef,undef,$size,undef,$mtime)= stat($file); print "$file $mtime $sizen"; $date=time(); $sous= $date – $mtime; print "$sous"; $huit= "850"; if ( $sous > $huit ) { print "OUAISSSS"; } }}closedir R;——————————————-use Archive::Tar;use File::DosGlob 'glob';use Net::FTP; #my @fileList = $ftp_html->ls('/info/*.gz');i#$ftp_html = Net::FTP->new('server',Passive=>1);#$ftp_html->login(logint',passwordc');#$ftp_html->binary();#$ftp_html->get("d:/datap/*.gz","1.gz");#$ftp_html->quit; # $ftp_html->get($file,fp/$file");# $ftp_html->get($file,"/datuipe/$file");# $ftp_html->delete($file); # my @fileList = $ftp_html->ls('*.*');# foreach my $file (@fileList) {# $test = $ftp_html->mdtm($file);# print "$file";# } my $ftp_html = Net::FTP->new('server',Passive=>1); $ftp_html->login('login','password'); $ftp_html->binary(); $ftp_html->cwd('/ls'),"n"; $ftp_html->ls('*.*'),"n"; print $ftp_html->ls('*.*'),"n";$ftp_html->quit; —————————————–cd /data/rm -fr * ncftp -u COMPTE -p 'PASSWORD' SERVER << TESTbin#set confirm-close nocd test/get *.*rm *.*quitTEST...
Tip & Tricks Sun Solaris...
posted by manu
Quelques trucs et astuces pour Sun Solaris Sites Web SUN : http://www.adminschoice.com/http://sysunconfig.net/unixtips/solaris.htmlhttp://opensolaris.org/os/community/dtrace/http://www.tech-recipes.com/solaris.htmlhttp://www.kempston.net/solaris/http://www.solaris4you.dk/sunsolaris.html SDS : http://www.adminschoice.com/docs/solstice_disksuite.htmhttp://colin.bitterfield.com/Articles/disksuitemirrors.htmlhttp://www.ncell.com/~russj/DiskSuite-mirror-root.htmlhttp://sunportal.sunmanagers.org/pipermail/summaries/2003-March/003336.htmlhttp://sunportal.sunmanagers.org/pipermail/summaries/2003-March/003336.html metastat : visu totale sdsmetastat -p : seulement les disquesmetattach d0 d2metattach d10 d12metattach d20 d22metattach d30 d32* metadb -i* metadb -d : suppr* ajouter metadb : metadb -a -c Nbr cxtxdxsx *metaoffline pour chq ss miroir*metastatSUNWmdxSUNWmduSUNWmdr Changer HOSTNAME :/etc/hosts /etc/nodename/etc/hostname.xxn (xxn = network interface, such as hme0)/etc/net/ticlts/hosts /etc/net/ticots/hosts/etc/net/ticotsord/hosts/etc/inet/ipnodes Liste Fichiers des packages SUN :/var/sadm/install/contents Network Configuration card NDD :http://www.brandonhutchinson.com/Solaris_NIC_speed_and_duplex_settings.htmlndd /dev/hme ?ndd /dev/tcp ?forcer 100 Mo/usr/sbin/ndd -set /dev/qfe instance 0/usr/sbin/ndd -set /dev/qfe adv_autoneg_cap 0 JUMPSTART :http://www.manucomp.com/solaris_tips/jumpstart_preparation_steps.html http://www.amorin.org/professional/jumpstart.phphttp://hvdkooij.xs4all.nl/docs-inst-sol-net.cmshttp://www.docbert.org/Solaris/Jumpstart/http://www.docbert.org/Solaris/Jumpstart/linux.htmlhttp://www.docbert.org/Solaris/http://www.adminschoice.com/docs/jumpstart_solaris.htmhttp://www.manucomp.com/solaris_tips/jumpstart_client_setup.htmlhttp://eradman.com/app/article?code=jumpstart1http://www.amorin.org/professional/jumpstart.phphttp://www.manucomp.com/solaris_tips/jumpstart.htmlhttp://eradman.com/app/printarticle?code=jumpstart1http://www.transposed.org/techstuff/linux-jumpstart.htmlhttp://www.znark.com/tech/solarisinstall.htmlhttp://www.znark.com/tech/netbootsparc.htmlhttp://www.adminschoice.com/docs/jumpstart_solaris.htmhttp://www.bu.edu/systems-support/admin/network/sol/bootserver.html VERITAS VOLUME MANAGER :http://www.manucomp.com/solaris_tips/veritas_volume_manager.html SOLARIS EXPLORER :http://sunsolve.sun.com/pub-cgi/show.pl?target=explorer/explorer PACKAGES SUN – PATCHES:http://ftp.ximian.com/pub/ximian-gnome/solaris-9-sun4/ftp://rpm.rutgers.edu/http://www.sunfreeware.com/pkgadd.htmlhttp://www.die.net/doc/linux/HOWTO/RPM-for-Unix-HOWTO-9.htmlhttp://www.sunfreeware.com/pkgadd.htmlhttp://www.blastwave.org/pkg-get.phphttp://www.tech-recipes.com/solaris_system_administration_tips132.htmlpkginfo -l packagepkgadd -d . Rep_pack Sol6 : 106292-14 pkgadd pbSol8 : 110380-06 // 110934-24 // 108989-02 pkgadd pb SUN CLUSTER PATCH :http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-accessshowrev -p : liste des patches TEST INTERFACE RESEAU :netstat -rn -I qfe0 -i 5 NAGIOS :configurer check_nrpe –disable-ssl sur le serveur nagioset pareil sur le client solaris VMWARE :http://www.samag.com/documents/s=9338/sam0410j/0410j.htm http://www.tools.de/solaris/xf86/ http://www.vmware.com/support/guestnotes/doc/guestos_solaris10.htmlhttp://chitchat.at.infoseek.co.jp/vmware/soltips.html kmdconfig : XorgMonitor 1280×102450-90 HzVESA GENERIC VESAchoix 7 : 16 SOLARIS 10 :ftp://sunfreeware.scarlet.be/pub/freeware/intel/10/ http://mirrors.xmission.com/sunfreeware/intel/10/http://www.sunfreeware.com/indexintel10.html CHANGE IP ADDRESS :http://www.filibeto.org/pipermail/solaris-users/2003-June/000085.htmlhttp://unix.ittoolbox.com/groups/groups.asp?v=SOLARIS-L&i=54052http://www.dbaoncall.net/references/ht_change_ip_sun.htmlhttp://docs.sun.com/app/docs/doc/816-4554/6maoq01n0?a=view NETWORK MASKS :http://docs.sun.com/app/docs/doc/816-4554/6maoq01lk?a=view/etc/netmasks CONSOLE :configurer hyper terminal en liaison série9600 bps, 8 bitspas de parté1 bit de stopGO ? rscwatch-net allshow-netsdevaliasnvalias variable datasetenv local-mac-address? = false : pour le jumpstart INFO SYSTEM :prtdiaginq : liste des disques presentsdrvconfig : check des disques existants ARCHITECTURE SOLARIS :psrinfo -visainfo PACKAGES :http://www.geocities.com/arndike/creating_solaris_packages.htmlhttp://bwachter.lart.info/solaris/solpackaging.htmlhttp://www.brandonhutchinson.com/Creating_Solaris_packages.htmlhttp://www.sunfreeware.com/pkgadd.html DNS :nscd : process dns a relancer en cas de pb de resolution LIBRARY 32 et 64 Bits :– crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/local/lib:/opt/alct/lib– crle -64 -c /var/ld/64/ld.config -l /usr/lib/64:/opt/alct/lib/sparcv9 SCSI :inquire : commande pour lister les periph scsi … EEPROM :http://www.sunmanagers.org/archives/1998/1203.htmlChanger param boot à partir du shell :eepromprtconf -vp | grep disk>>>boot-device=disk mirror>>>nvramrc=devalias disk /pci@1f,0/pci@1,1/ide@3/disk@0,0devalias mirror /pci@1f,0/pci@1,1/ide@3/disk@1,0>>>diag-device=disk mirror CLAVIER FRANCAIS :# eeprom kbd-type=French$ loadkeys /usr/share/lib/keytables/type_6/france$ kbd -ltype=6layout=8 (0x08)delay(ms)=500rate(ms)=40 Copier coller...
Unix Tips & Tricks...
posted by manu
Unix Tips & Tricks SWAP CONFIGURATION :http://forum.sun.com/thread.jspa?threadID=25317&tstart=0http://docs.sun.com/app/docs/doc/816-1048/6m7gaddij?a=view /dev/dsk/c………. – – swap – yes – ds /etc/vfstabswap -a /dev/dsk/c……swap -lswap -sswap -d /dev/dsk/c0……… GESTION CENTRALISE PARC INFO LINUX/UNIX :http://www.int-evry.fr/mci/user/doutrele/linux/http://thierrylhomme.developpez.com/cfengine.htmlhttp://www.int-evry.fr/mci/user/procacci/Doc/cfengine/cfengine.html http://www.sysnav.com/index.php?id=49,85,0,0,1,0http://www.sun.com/bigadmin/features/articles/cfengine_part1.html?feed=RSShttp://www.sun.com/bigadmin/features/articles/cfengine_part2.html?feed=RSSwww.cfengine.orgcfagent -qKv : reinstallation et check des conf sur le client SSh A DISTANCE : ssh Client " commande locale << cat /tmp/resultat "ssh Client ls / > /tmp/1.testRSYNC WEB :http://www.delafond.org/traducmanfr/man/man1/rsync.1.html ORACLE BASE DE DONNEES :http://cyril-gruau.developpez.com/uml/tutoriel/ConceptionBD/http://etudiant.univ-mlv.fr/~idernaul/projetbdd/index.htmlhttp://www.ac-grenoble.fr/ecogest/pedago/administration/prodpeda/mcd.htm http://osx.freshmeat.net/projects/tora/http://gbriard.club.fr/technique/21.htmhttp://www.puschitz.com/ : install fedora core 3 oracle 10http://staff.in2.hr/denis/oracle/10g1install_fedora3_en.htmlhttp://www.informatics.sussex.ac.uk/users/bernhard/db2003/datastudio.pdfhttp://www.aquafold.com/downloads.htmlhttp://download.oracle.com/otn/linux/oracle10g/ship.db.lnx32.cpio.gzhttp://download.oracle.com/otn/nt/oracle10g/htmldb/htmldb_1.6.zip http://www.oracletoolbox.org/http://www.oracle-base.com/articles/9i/Oracle9iInstallationOnRedHatAS3.phphttp://www.oracle-base.com/articles/10g/OracleDB10gInstallationOnFedora1.phphttp://www.pagux.com/oracle9ionfedora3.htmlhttp://www.oracle-base.com/articles/10g/OracleDB10gInstallationOnFedora3.phphttp://www.aquafold.com/downloads.html NMAP :nmap IP_test -P0 EXPORT DISPLAY :export DISPLAY="corail:0.0" : de la ou est lance le programmebash-2.05$ xhost + :::: machine qui va initier le lancement 2 IPs ON ONE NETWORK : http://www.adminschoice.com/discus/messages/1/172.html?1100850818http://unix.ittoolbox.com/groups/groups.asp?v=SOLARIS-L&i=39259 LOGWATCH SWATCH : http://home.gagme.com/greg/linux/protect-ssh.php#other TRIPWIRE : http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/ref-guide/ch-tripwire.html MOUNT WINDOWS SHARE : mount -F cifs //computername/share /mnt/somedirectory TUNNEL SSH : http://forum.hardware.fr/hardwarefr/OSAlternatifs/connecte-utilisant-connexion-httptunnel-sujet-41117-1.htmssh -R 10033:localhost:22 user@ip10.5.216.84ssh -X -p 10033 localhost SIGNATURE ASCII, CADRES : http://boxes.thomasjensen.com/http://www.nog.net/~tony/warez/cowsay.shtmlfiglet dag HTACCESS EN URL : parametre htaccess via urloui index.htm vide : url via le site alohttp: //login:mdp@site/fichierEQUIVALENCE : LINUX, WINDOWS : http://bhami.com/rosetta.htmlhttp://linuxshop.ru/linuxbegin/win-lin-soft-en/table.shtml QUELQUES MOULINETTES : for user in `ls`;do echo `ypcat passwd |grep $user |awk -F":" '{print $5}' |awk -F";" '{print $1}'`" – "`ypcat aliases |grep $user |uniq`;done BITTORENT : http://torrent.linux.duke.edu/NAGIOS RRDTOOL MRTG : http://martybugs.net/linux/hddtemp.cgi http://dag.wieers.com/packages/nagios/http://dag.wieers.com/packages/nagios/nagios-1.2-1.1.fc3.rf.i386.rpmhttp://dag.wieers.com/packages/nagios/nagios-devel-1.2-1.1.fc3.rf.i386.rpmhttp://www.supinfo-projects.com/fr/2004/monitoring_unix/2/http://www.linagora.org/rubrique39.htmlhttp://www.fedora-france.org/modules/newbb/viewtopic.php?topic_id=1023&forum=16http://docs.guill.net/article.php3?id_article=2 http://www.linux-sottises.net/en_mrtg.php http://www.joepverhaeg.nl/rrdtemp/ http://silverwraith.com/papers/freebsd-snmp.php http://www.espace-groupware.com/supervision/nagios/http://www-igm.univ-mlv.fr/~dr/XPOSE2004/nchaveron/Nagios.html http://www.swelltech.com/support/webminguide/ch01.htmlhttp://nagmin.sourceforge.net/http://dag.wieers.com/packages/webmin/webmin-1.190-1.1.fc3.rf.noarch.rpm http://nagiosplug.sourceforge.net/developer-guidelines.htmlhttp://nagiosplug.sourceforge.net/http://nagiosplug.sourceforge.net/projects/sourceforge.php http://www.onlamp.com/pub/a/onlamp/2002/09/05/nagios.html http://www.onlamp.com/pub/a/onlamp/2002/09/26/nagios.html PART 2 Nagios : ICMP, mailing list : NAGAThttp://www.nagios.org/download/extras.phphttps://gna.org/projects/nagat/livre nagioshttp://docs.guill.net/article.php3?id_article=2http://archil.nerim.net/nagios/index.html http://archil.nerim.net/nagios/index.htmlhttp://www.oreon.org/oreon.php?p=2http://sf.gds.tuwien.ac.at/n/na/nagiostat/http://linuxfr.org/~alenvers/13845.htmlhttp://forums.cacti.net/about1843.htmlhttp://www.nagiosexchange.org/Charts.42.0.htmlhttp://www.hannes-schulz.de/?doc=proj&proj=nagioshttp://apan.sourceforge.net/http://sourceforge.net/projects/nagiosgraph/http://www.nagiosexchange.org/Charts.42.0.html?&tx_netnagext_pi1[p_view]=195http://nagios.sourceforge.net/docs/1_0/notifications.htmlhttp://sourceforge.net/projects/nagiostathttp://people.via.ecp.fr/~alexis/formation-linux/centericq.htmlhttp://www.int-evry.fr/mci/user/procacci/Doc/nagios/nagios.htmlhttp://www.espace-groupware.com/supervision/nagios/http://www-igm.univ-mlv.fr/~dr/XPOSE2004/nchaveron/Nagios.html http://mathias-kettner.com/nagios_plugins.html : cacti et nagiosttp://www.trustonme.net/didactels/191.htmlhttp://www.cacti.net/downloads/docs/html/install_unix.htmlhttp://esaracco.free.fr/Nagios/création script nagios :Ecrire des plugins>> Nous avons vu qu’il était possible d’écrire ses propres plugins. Nous>> avons tenté l’expérience, à partir de la commande nmap, pour détecter>> le type d’OS tournant sur la machine testée.>> Nous avons tout simplement repris un plugin de type>> non-binaire,check_sensors, et nous l’avons adapté en changeant la>> section spécifique au plugin. Nous l’avons remplacée par les quelques>> lignes suivantes :>> nmap -O $1>/usr/local/nagios/libexec/tmp>> toto=`cat /usr/local/nagios/libexec/tmp|grep "linux"|wc -l`>> if test "$toto"...
Linux Tips & Tricks...
posted by manu
Linux Tips & Tricks FEDORA :http://www.fedoratracker.org/http://fr.rpmfind.net/linux/RPM/Fedora_Core.htmlhttp://www.fedorafaq.org/ http://www.pycs.net/lateral/stories/32.htmlhttp://dries.studentenweb.org/rpm/mirrors.html LINUX RAID MIRROR :http://www.solutioninnovators.com/docs/linux-raid.htmlhttp://lea-linux.org/admin/admin_fs/raid.html http://www-igm.univ-mlv.fr/~dr/XPOSE2002/ExposeMirroring/rapport-raidtool.html http://www.pegland.net/mirrorLinuxOSdisk.html http://reseau.univ-aix.fr/doctech/raid1.html http://www.linux-france.org/prj/support/outils/mdlinear.html http://fy.chalmers.se/~appro/linux/HOWTO-mirror-root.html http://web.mit.edu/rhel-doc/4/RH-DOCS/rhel-ig-s390-multi-fr-4/s1-s390info-raid.htmlhttp://www.networknewz.com/2003/0113.htmlhttp://www.linuxhomenetworking.com/linux-adv/raid.htmhttp://www.redhat.com/archives/fedora-list/2005-April/msg03843.htmlhttp://people.redhat.com/~heinzm/sw/dmraid/rpm/i386/http://people.redhat.com/~heinzm/sw/dmraid/readmehttp://acd.ucar.edu/~fredrick/linux/fedoraraid/http://nickdafish.com/public/HowToRaidhttp://www.bigwebmaster.com/General/Howtos/Software-RAID-HOWTO-5.htmlhttp://www.megalinux.net/archives/000413.htmlmdadm –misc /dev/md0 –readwrite mdadm –create /dev/md0 –level=1 –raid-devices=2 /dev/hdb1 /dev/sda1 mdadm -S /dev/md0 mdadm –manage /dev/md0 -r mdadm –detail /dev/md0 more /proc/mdstat PROBLEME BASE RPM : virer les fichier –db…….. qui sont ds / var/lib/rpm / LINUX ON LAPTOP :http://inventiveworks.com/linuxonxpsgen2/http://www.linux-on-laptops.com/dell.html FEDORA TIPS TRICKS :http://home.gagme.com/greg/linux/fc3-tips.phphttp://www.fedorafaq.org/http://tldp.org/HOWTO/Fedora-Multimedia-Installation-HOWTO/index.htmlhttp://stanton-finley.net/fedora_core_3_installation_notes.html LOAD BALANCING FEDORA :http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-modules-ethernet.htmlalias bond0 bonding : /etc/modprobe.conf[root@nsl3 ~]# more /etc/sysconfig/network-scripts/ifcfg-bond0DEVICE=bond0BOOTPROTO=noneONBOOT=yesNETWORK=192.168.0.0NETMASK=255.255.255.0IPADDR=192.168.0.8USERCTL=noGATEWAY=192.168.0.1DNS=192.168.0.1[root@nsl3 ~]# more /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0IPADDR=192.168.0.8NETMASK=255.255.255.0NETWORK=192.168.0.0# If you're having problems with gated making 127.0.0.0/8 a martian,# you can change this to something else (255.255.255.255, for example)BROADCAST=192.168.0.255ONBOOT=yesNAME=eth0GATEWAY=192.168.0.1DNS=192.168.0.1BOOTPROTO=noneTYPE=EthernetUSERCTL=noPEERDNS=yesIPV6INIT=noMASTER=bond0SLAVE=yes[root@nsl3 ~]# more /etc/sysconfig/network-scripts/ifcfg-eth1# 3Com Corporation 3c905B 100BaseTX [Cyclone]DEVICE=eth1ONBOOT=yesBOOTPROTO=noneIPADDR=192.168.0.7NETMASK=255.255.255.0GATEWAY=192.168.0.1HWADDR=00:01:02:1A:5D:B2MASTER=bond0SLAVE=yes NVIDIA FEDORA :http://www.fedoraforum.org/forum/showthread.php?t=22681 SCANNER PORT SERIE :wvdialconf /etc/wvdial.conf KERNEL et KERNEL NTFS :http://www.linuxant.com/driverloader/wlan/full/downloads-fc3-kernel-i586.php http://www.fedora-france.org/modules/wfsection/article.php?articleid=73http://frontier.eas.asu.edu/updates/heidelberg/SRPMS/http://linux-ntfs.sourceforge.net/rpm/rpmsrc.html STAT RESEAU LINUX :ifstat DEBIAN IP ADDRESS :http://perso.limsi.fr/zabeth/debian/ip.php PLUGIN JAVA FIEFOX :ln -s /usr/java/jdk1.5.0_01/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-1.0.2/plugins/ WIFI LINUX :http://sourceforge.net/projects/ndiswrapper/http://www.gidforums.com/t-4390.htmlMADWIFI DWL-650 FEDORAhttp://madwifiwiki.thewebhost.de/wiki/FedoraCore1OnDellInspironhttp://hpl.hp.com/personal/Jean_Tourrilhes/Linux/Wireless.htmlhttp://ndiswrapper.sourceforge.net/http://hostap.epitest.fi/wpa_supplicant/http://www.ituprising.com/howto/dlink_dwlg650.htmlhttp://www.linuxquestions.org/questions/archive/41/2004/12/2/265682http://www.linuxquestions.org/hcl/showproduct.php?product=627 <u><i><b>SPEED FAN :</b></i></u>http://www.cloneshit.hu/index.php?p=1759http://www.fedoraforum.org/forum/archive/index.php/t-21137.html SENSORS LINUX :asus it87 fan controlsmartguardianhttp://atrpms.net/dist/fc3/lm_sensors/http://forums.gentoo.org/viewtopic.php?t=101573&start=0&postdays=0&postorder=asc&highlight=lmsensorshttp://archives.andrew.net.au/lm-sensors/msg08048.htmlhttp://www2.lm-sensors.nu/~lm78/cvs/browse.cgi/lm_sensors2/kernel/chips/it87.chttp://atrpms.net/dist/fc3/ MULTIBOOT LINUX :http://www.winimage.com/bootpart.htmhttp://members.aol.com/bellamyjc/fr/multiboot.htmlhttp://guide.andesi.org/html/kgrub.htmlhttp://elle.epfl.ch/article.php3?id_article=89http://jc.bellamy.free.fr/fr/pratiquemultiboot.htmlhttp://elle.epfl.ch/article.php3?id_article=90http://elle.epfl.ch/article.php3?id_article=79http://elle.epfl.ch/article.php3?id_article=85 VIDEO LINUX FEDORA :http://lea-linux.org/logi/rub.12.html VERSION LINUX :cat /etc/*releasecat /etc/issue | grep "^$" | head...