the lost linux commands – part 1
Often we forgotten a useful and necessary command in linux , in this series of articles we’re going to discover it… the power of shell!!!
in this first articole we see:
mesg
tee
uniq
(continua…)
Ti serve un programmatore sistemista freelance…contattami!
Often we forgotten a useful and necessary command in linux , in this series of articles we’re going to discover it… the power of shell!!!
in this first articole we see:
mesg
tee
uniq
(continua…)
Cos’è Debian GNU/kFreeBSD ?
Debian GNU/kFreeBSD è un sistema operativo per Debian, che usa il kernel di FreeBSD invece del kernel Linux (da qui il nome). Verrà il giorno in cui la maggior parte delle applicazioni esisterà sia in Debian GNU/kFreeBSD sia in Debian GNU/Linux.
Cos’è ZFS?
ZFS è un nuovo tipo di file system che fornisce una semplice amministrazione, una approccio transazionale, una integrità del dato “end-to-end” e una immensa scalabilità (128-bit). ZFS non è un miglioramento “incrementale” alla tecnologia esistente, ma è un nuovo approccio alla gestione dei dati creato eliminando alcune assunzioni di base che risalevano a 20 anni fa.
Come si installa?
1) download della iso solo con supporto amd64 di debian kfreebsd per esempio cosi
curl -C – -L -O http://ftp.nl.debian.org/debian/dists/squeeze/main/installer-kfreebsd-amd64/current/images/netboot/mini.iso
2) far partire l’installazione di defualt (si sono pigro)

3) seguire i passi per lingua , mirror , configurazione di rete , user e password, nel virtual machine allegata ( user root password ferzip , e utente user con password ferzip )

4) attenzione in macchine virtuali durante l’installazione potrebbe presentarsi un errore di di svuotamento cache del disco

5) procedere poi con la formattazione del disco , attenzione se si usa la procedura guidata personalizzare la partizione selezionando il filesistem ZFS come da slide qua sotto
6) procedere con la normale installazione e quando richiesto selezione l’evemenent prescelto

7) continuare con la procedura guidata fino alle fine

TATA ecco il nuovo sistema installato
user@ferzip-freeBSD-zfs:~$ uname -a
GNU/kFreeBSD ferzip-freeBSD-zfs 8.1-1-amd64 #0 Wed Oct 19 14:57:54 CEST 2011 x86_64 amd64 Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz GNU/kFreeBSD
user@ferzip-freeBSD-zfs:~$ mount
ferzip-freeBSD-zfs-ad0s1 on / (zfs, local)
devfs on /dev (devfs, local, multilabel)
linprocfs on /proc (linprocfs, local)
linsysfs on /sys (linsysfs, local)
fdescfs on /dev/fd (fdescfs)
tmpfs on /lib/init/rw (tmpfs, local, nosuid)
The new vmware workstation have a problem whit ( vmnic ) network interface and kernel 3.x version this patch fix it
(continua…)
In some cases you might want to compile your own kernel that suits your needs better than the standard kernel that comes with your distribution. I will describe how to do this on a Debian like machine , ( ubuntu family) in only 10 easy step!
(continua…)
1) installare il plug-in http://www.readynas.com/?p=4203
2) accedere via ssh come root
3) modificare
vi /etc/network/interfaces
=============================== esempio =================
# This file is auto-generated. Do not modify!
auto lo
iface lo inet loopback
auto bond0
iface bond0 inet static
address 10.3.6.4
netmask 255.255.0.0
gateway 10.3.0.1
auto bond0:1
iface bond0:1 inet static
address 172.30.8.2
netmask 255.255.0.0
gateway 10.3.0.1
auto eth0
iface eth0 inet static
address 10.3.6.4
netmask 255.255.0.0
gateway 10.3.0.1
auto eth1
iface eth1 inet static
address 10.3.6.5
netmask 255.255.0.0
gateway 10.3.0.1
============================================================
4) riavviare il network
/etc/init.d/networking restart
5) bloccare il file in sola lettura
chattr +i /etc/network/interfaces
6) editare il file
/etc/rc2.d/S01readynas_startup
aggiungendo come ultima riga
/etc/init.d/networking restart
NB con questa modifica non sarà più possibile modificare le impostazione di rete da interfaccia web
ma bisogna accedere via ssh e dare
chattr -i /etc/network/interfaces
poi sarà di nuovo modificabile
I wrote a simple shell script to find a open proxy, basicaly it analize the log of webserver , extract the source ip client and try if on this ip have a proxy( only some standard port 80,8080,3128).This script don’t have “memory” if in log find more than one istance of ip, retry the check every time.
Only the ip who running an open proxy is strored in a file call “result.log”, to run this script yun need only curl.
(continua…)