Herramientas de usuario

Herramientas del sitio


notas:start

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
Próxima revisiónAmbos lados, revisión siguiente
notas:start [2014/06/25 19:01] – [Sistema Operativo] cayunotas:start [2014/10/21 14:33] – [Sistema Operativo] cayu
Línea 50: Línea 50:
 | | |  L  |-| LINUX |-| UPGRADE_SUSE |LINUX=Linux|UPGRADE_SUSE=[[notas:linux:Actualizar SuSE Linux]] | | |  L  |-| LINUX |-| UPGRADE_SUSE |LINUX=Linux|UPGRADE_SUSE=[[notas:linux:Actualizar SuSE Linux]]
 </diagram> </diagram>
 +
 +[[notas:linux:Medición de velocidad de cambio en filesystems en un sistema Linux (físico o virtual)]]
  
 ===== Hardware ===== ===== Hardware =====
Línea 271: Línea 273:
 To use this program, both /dev/sd* and /dev/sg* need to be accessible. To use this program, both /dev/sd* and /dev/sg* need to be accessible.
 High-level formatting is usually needed after using this program(ex. mkfs.vfat -I /dev/sda). High-level formatting is usually needed after using this program(ex. mkfs.vfat -I /dev/sda).
-</code> 
- 
- 
-=== Postfix Error === 
- 
-Error :  
- 
-<code> 
-postfix/postdrop[13652]: warning: unable to look up public/pickup: No such file or directory 
-</code> 
- 
-Solución 
- 
-<code> 
-sudo mkfifo /var/spool/postfix/public/pickup 
-sudo /etc/init.d/postfix restart 
 </code> </code>
  
Línea 763: Línea 749:
 Ref: http://elrincondetolgalen.wordpress.com/2009/11/12/script-de-nautilus-para-anadir-una-marca-de-agua-a-una-imagen/ Ref: http://elrincondetolgalen.wordpress.com/2009/11/12/script-de-nautilus-para-anadir-una-marca-de-agua-a-una-imagen/
  
-===== Ver el dmesg en formato humano ===== 
- 
-==== Alternativa I ==== 
- 
- 
-<code perl> 
-#!/usr/bin/perl 
-  
-use strict; 
-use warnings; 
-  
-my @dmesg_new = (); 
-my $dmesg = "/bin/dmesg"; 
-my @dmesg_old = `$dmesg`; 
-my $now = time(); 
-my $uptime = `cat /proc/uptime | cut -d"." -f1`; 
-my $t_now = $now - $uptime; 
-  
-sub format_time { 
- my @time = localtime $_[0]; 
- $time[4]+=1;    # Adjust Month 
- $time[5]+=1900;    # Adjust Year 
- return sprintf '%4i-%02i-%02i %02i:%02i:%02i', @time[reverse 0..5]; 
-} 
-  
-foreach my $line ( @dmesg_old ) 
-{ 
- chomp( $line ); 
- if( $line =~ m/\[\s*(\d+)\.(\d+)\](.*)/i ) 
- { 
- # now - uptime + sekunden 
- my $t_time = format_time( $t_now + $1 ); 
- push( @dmesg_new , "[$t_time] $3" ); 
- } 
-} 
-  
-print join( "\n", @dmesg_new ); 
-print "\n"; 
-</code> 
- 
-==== Alternativa II ==== 
- 
-<code perl> 
-#!/usr/bin/perl -wn 
-use strict; 
-  
-foreach my $line (<>) { 
-    my ($uptime) = (do { local @ARGV='/proc/uptime';<>} =~ /^(\d+)\./); 
-    $line=~/^\[\s*(\d+)\.\d+\](.+)/;  
-    printf "[%s]%s\n", scalar localtime(time - $uptime + $1), $2; 
-} 
-</code>