jueves, 17 de julio de 2008

Commands...

seq - print a sequence of numbers

local@debian:~$ for n in `seq 11 15`; do echo $n; done
11
12
13
14
15



split - split a file into pieces

local@debian:~$ ls -1 | split -5



watch - execute a program periodically, showing output fullscreen

local@debian:~$ watch -n 5 uptime

o

local@debian:~$ while sleep 5 ; do uptime ; done



pidof -- find the process ID of a running program.

local@debian:/bin$ pidof ssh
3875 3830 3822 3818 3815 3812 3809 3806





column - columnate lists


local@debian:/tmp$ ls | column -c 1
gconfd-local
keyring-TdbxsI
LDAP1.0_RT3.tar.gz
LDAP_RT3




stat - display file or file system status


local@debian:/tmp$ ls -l x
-rw-r--r-- 1 local local 135273 2008-08-11 16:41 x
local@debian:/tmp$ stat -c %a x
644



chattr - change file attributes on a Linux second extended file system


debian:/home2/local# chattr +i dir_inmutable

inmutable = root can't delete the file


lsattr - list file attributes on a Linux second extended file system


debian:/home2/local# lsattr -d dir_inmutable/
----i------------- dir_inmutable/


fdupes - finds duplicate files in a given set of directories

local@debian:~$ cp marcela_alegria.tex x.txt
local@debian:~$ fdupes .
./marcela_alegria.tex
./x.txt


Source: http://www.debian-administration.org/articles/605

[root@benito2 DPX]# netstat -tunlp

miércoles, 16 de julio de 2008

Debian en Mac G5

Para no variar queria experimentar Debian en una Mac G5. He aqui mi historia.

Instalacion:

Use un CDROM, pero debo confesar que no conozco mucho del mundo Mac asi que tuve que investigar como bootear desde la unidad de CD ( ya aprendi es encender el equipo y presionar la tecla Option-alt ).

Despues de haber logrado bootear desde cdrom, pense que seria en el prompt de boot, el clasico install, pero resulto que si lo hacia me aparecia este error:


opening display /pci@0, f0000000/NVDA,parent@10/NVDA,Display-A@0... ok
copying 0F device tree...done
Initializing fake screen: NVDA,Display-B
Calling quiesce ...
returning 0x01400000 from prom_init

Invalid memory access at %SRR0: 00000000.01403b88 %SRR1: 10000000.00083030

Apple Powermac 7,2 5.1.5f2 BootROM built on 09/21/04 at 11:58:53
Copyright 1994-2004 Apple Computer, Inc.
All Rights Reserved

Welcome to Open Firmware, the system time and date is 22:46:07 10/27/2004

To continue booting, type 'mac-boot' and press return
To shut down, type 'shut-down' and press return

Release keys to continue!



Leyendo un poco en la red encontre que se soluciona usando en el boot: expert64 video=ofonly

Despues otra que sucedio es que particione segun considere necesario, pero mas adelante en la instalacion me aparecio un error que decia:

No NewWorld boot partition was found. The yaboot boot loader requires an Apple_Bootstrap partition at least 819200 bytes in size, using the HFS Macintosh ...

Por lo que entendi, es que debia tener una particion para poner el boot loader. Creandola es suficiente.


Operacion:

Tan bella como siempre en un Debian ;)