19/12/14

Mover Perfil de usuario en Chrome Browser a otro directorio

https://support.google.com/chrome/answer/142059?hl=es-419
https://productforums.google.com/forum/#!topic/chrome/9bqidhQLwHg

directorio:
  • Windows XP%USERPROFILE%\Local Settings\Application Data\Google\Chrome\User Data\
  • Windows Vista/ Windows 7/ Windows 8%LOCALAPPDATA%\Google\Chrome\User Data\
C:\path-to-chrome-executable\chrome.exe --user-data-dir=c:\some-directory-here


The default profile is here on Windows XP: 
C:\Documents and Settings\bob\Local Settings\Application Data\Google\Chrome\User Data\Default 

You can copy the content of that Default folder into lets say C:\Profiles\bob 

Now to use this profile with Chrome, create a shortcut to this address: 

"C:\Documents and Settings\bob\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --user-data-dir="C:\Profiles\bob" 

Of course replace bob with your windows username.

12/12/14

Revisar Servidor / Server Check



lastlog
last | grep root | less
ls -l /var/log
iptables -L
netstat -ntlpu
cat /etc/passwd
yum -v repolist | less

/var/log/message: General message and system related stuff
/var/log/auth.log: Authenication logs
/var/log/kern.log: Kernel logs
/var/log/cron.log: Crond logs (cron job)
/var/log/maillog: Mail server logs
/var/log/qmail/ : Qmail log directory (more files inside this directory)
/var/log/httpd/: Apache access and error logs directory
/var/log/lighttpd: Lighttpd access and error logs directory
/var/log/boot.log : System boot log
/var/log/mysqld.log: MySQL database server log file
/var/log/secure: Authentication log
/var/log/utmp or /var/log/wtmp : Login records file
/var/log/yum.log: Yum log files

9/12/14

DNS SOA

http://www.zytrax.com/books/dns/ch8/soa.html

formato de SOA

define los tiempos de la zona.

owner-name  ttl class rr    name-server email-addr  (sn ref ret ex min)
example.com.    IN    SOA   ns.example.com. hostmaster.example.com. (
                              2003080800 ; sn = serial number
                              172800     ; ref = refresh = 2d
                              900        ; ret = update retry = 15m
                              1209600    ; ex = expiry = 2w
                              3600       ; nx = nxdomain ttl = 1h
                              )
; the following are also valid using @ and blank 
@               IN    SOA   ns.example.com. hostmaster.example.com. (
                IN    SOA   ns.example.com. hostmaster.example.com. (
NOTE: We are reliably informed that while a blank is a perfectly
      valid format certain DNSSEC signing tools may choke on this format.

Obtener UUID de Disco duro

http://liquidat.wordpress.com/2007/10/15/short-tip-get-uuid-of-hard-disks/

Obtener el UUID de un disco para identificarlo a la hora de montarlo, es un identificador único que prácticamente  no se repite..

1 trillion UUIDs would have to be created every nanosecond for 10 billion years to exhaust the number of UUIDs. 

Obtener el UUID

$ ls -l /dev/disk/by-uuid
lrwxrwxrwx 1 root root 10 11. Okt 18:02 53cdad3b-4b01-4a6c-a099-be1cdf1acf6d -> ../../sda2


$ blkid /dev/sda1
/dev/sda1: LABEL="/" UUID="ee7cf0a0-1922-401b-a1ae-6ec9261484c0" SEC_TYPE="ext2" TYPE="ext3"