Category Archives: floss

iTerm

Sono finito per caso su una recensione di iTerm. Finalmente un emulatore terminale decente per per OSX: multi tab, full screen, copy-on-selection, ma soprattutto emula correttamente vt100/xterm e si comporta egregiamente in ssh sui miei server linux!!!

Installato. Invertiti i colori (come si fa’ a lavorare in nero su bianco?!), aggiustati font ed encoding (Courier New, 13pt senza antialiasing) e il Terminal.app può finire nel cestino.

smaneggio-fonino


# uname -a
Darwin iPhone 9.0.0d1 Darwin Kernel Version 9.0.0d1: Fri Jun 22 00:38:56 PDT 2007; root:xnu-933.0.1.178.obj~1/RELEASE_ARM_S5L8900XRB iPhone1,1 Darwin
# mount
/dev/disk0s1 on / (hfs, local, noatime)
devfs on /dev (devfs, local)
/dev/disk0s2 on /private/var (hfs, local, noexec, noatime)
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/disk0s1 300M 191M 107M 65% /
devfs 18K 18K 0 100% /dev
/dev/disk0s2 7.3G 37M 7.3G 1% /private/var
# ls /dev
bpf0 disk0s1 ptyp2 rdisk0s2 ttyp2 uart.iap
bpf1 disk0s2 ptyp3 sdio ttyp3 urandom
btreset h5.baseband ptyp4 tty ttyp4 vn0
console klog ptyp5 tty.baseband ttyp5 vn1
cu.baseband mrvl868x0 ptyp6 tty.bluetooth ttyp6 zero
cu.bluetooth null ptyp7 tty.debug ttyp7
cu.debug ptmx random tty.iap uart.baseband
cu.iap ptyp0 rdisk0 ttyp0 uart.bluetooth
disk0 ptyp1 rdisk0s1 ttyp1 uart.debug
# ls /bin
[ cp df kill ls ps sh tcsh zsh
bash csh echo launchctl mkdir pwd sleep test
cat date expr link mv rm stty true
chmod dd hostname ln printf rmdir sync unlink
# ls /usr/bin
awk env join od sftp tail vi
banner expand less passwd simulatecrash tar vim
basename false login paste sort tee wc
bbupdater find logname pathchk split top which
chgrp fmt mesg pico srelay touch who
cksum fold minicom pr ssh tr whoami
comm grep mkfifo printenv ssh-add tsort xargs
crontab groups more readlink ssh-agent tty yes
csplit gzip nano renice ssh-keygen uname
curl head nc rsync ssh-keyscan unexpand
cut hexdump nice sar stat uniq
dirname iUnlock nl scp su uptime
ditto id nohup sed sum users
# ls /sbin
fsck fstyp ifconfig kextunload md5 mount ping route
fsck_hfs fstyp_hfs kextload launchd mknod mount_hfs reboot
# ls /usr/sbin
BTServer configd iostat notifyd screen tcpdump
BlueTool cron kextstat nvram sshd update
arp daily mDNSResponder pppd sysctl vipw
chown fdisk mediaserverd racoon syslogd vpnd
chroot ioreg netstat racoonctl system_profiler
# ifconfig -a
lo0: flags=8049 mtu 16384
inet 127.0.0.1 netmask 0xff000000
en0: flags=8863 mtu 1500
inet 10.39.2.126 netmask 0xffffff00 broadcast 10.39.2.255
ether 00:1c:b3:17:ed:e4
ip1: flags=8011 mtu 1500
ip2: flags=8011 mtu 1500
launchd% list
PID Status Label
- 0 16
- 0 com.openssh.sshd
25 - com.apple.mediaserverd
24 - com.apple.ptpd
23 - com.apple.update
22 - com.apple.syslogd
26 - com.apple.notifyd
21 - com.apple.mobile.lockdown
20 - com.apple.mDNSResponder
19 - com.apple.iapd
- 0 com.apple.daily
18 - com.apple.cron
17 - com.apple.crashreporterd
16 - com.apple.configd
172 - com.apple.SpringBoard
- 0 com.apple.DumpPanic
13 - com.apple.CommCenter
12 - com.apple.BTServer
- 0 com.apple.launchd.readconfig

Configurazione CISCO per ADSL Alice Business

Il mese scorso ho dovuto configurare delle ADSL di telecomitalia che ci sono state fornite “naked” ovvero senza router. Fortuna che ho recuperato in giro qualche cisco 800 abbandonato (come spesso accade) in precedenti installazioni :-/ …password recovery e via.

Non ho una grande esperienza sui cisco percui ho certcato online una configurazione pronta per il classico contratto Alice Business in cui ti assegnano 8 ip statici, ma nulla. Riporto la configurazione funzionante, magaria a qualcuno può far comodo.

Gli ip pubblici assegnati erano: 85.40.101.240-247. Il punto-punto: 88.55.9.226.
La lan è una 192.168.1.0/24 nattata sul primo ip pubblico.

!
version 12.3
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname inter-adsl
!
enable secret 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
!
no aaa new-model
ip subnet-zero
no ip source-route
ip domain name inter.it
ip name-server 151.99.125.1
no ip dhcp conflict logging
ip dhcp excluded-address 192.168.1.1 192.168.1.99
!
ip dhcp pool inter
   network 192.168.1.0 255.255.255.0
   domain-name inter.it
   dns-server 151.99.125.1 
   default-router 192.168.1.1 
!
!
ip audit notify log
ip audit po max-events 100
no ftp-server write-enable
!
!
! 
!
!
!
!
interface Ethernet0
 ip address 85.40.101.241 255.255.255.248 secondary
 ip address 192.168.1.1 255.255.255.0
 ip nat inside
 no keepalive
 hold-queue 100 out
!
interface ATM0
 no ip address
 no atm ilmi-keepalive
 dsl operating-mode auto
!
interface ATM0.1 point-to-point
 ip address 88.55.9.226 255.255.255.252
 ip nat outside
 pvc 8/35 
  oam-pvc manage
  oam retry 5 5 1
  encapsulation aal5snap
 !
!
interface FastEthernet1
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet2
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet3
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet4
 no ip address
 duplex auto
 speed auto
!
ip nat pool inter 85.40.101.241 85.40.101.241 netmask 255.255.255.248
ip nat inside source list 50 pool inter overload
ip classless
ip route 0.0.0.0 0.0.0.0 ATM0.1
no ip http server
no ip http secure-server
!
access-list 50 permit 192.168.1.0 0.0.0.255
snmp-server community public RO
snmp-server enable traps tty
!
line con 0
 exec-timeout 240 0
 password inter
 login
 no modem enable
line aux 0
line vty 0 4
 exec-timeout 240 0
 password inter
 login
 length 0
!
scheduler max-task-time 5000
!
end

BTW, per quel che riguarda i punto-punto ho scoperto che se sono terminati (lato centrale) su apparati cisco ti configurano una rete /30 (netmask 255.255.255.252) e fin quì nessun problema. Se invece ci sono apparati diversi usano una fake classe C che sul router vanno impostate appunto come /24 (netmask 255.255.255.0); da notare che sulla scheda di attivazione la netmask impostata in questo caso era 255.255.255.255.

Quindi l’interfaccia ATM risulterebbe:

interface ATM0.1 point-to-point

ip address 88.55.41.63 255.255.255.0