ProFTP(D) - Ident Lookups

Visto che mi è capitato e mi dimentico sempre, proftpd nell’installazione standard (Debian per capirci) è attivo di defaultl l’ident del client, quindi colpa del reverse o colpa dei dns mal configurati la connessione risulta parecchio lenta nella fase di autenticazione. Per risolvere: #/etc/proftpd/proftpd.conf IdentLookups no

17 March 2009 @ 22:20 · leo

Linux - Iftop

iftop command listens to network traffic on a named network interface, or on the first interface it can find which looks like an external interface if none is specified, and displays a table of current bandwidth usage by pairs of hosts. iftop is a perfect tool for remote Linux server over ssh session. iftop must be run by the root or the user who has sufficient permissions to monitor all network traffic on the network interface. Type iftop command at tge shell prompt to display traffic: ...

26 January 2009 @ 03:34 · leo

Linux - Send mail from command line

The Linux command line can be very powerful once you know how to use it. You can parse data, monitor Mutt: One of major drawbacks of using the mail command is that it does not support the sending of attachments. mutt, on the other hand, does support it. I’ve found this feature particularly useful for scripts that generate non-textual reports or backups which are relatively small in size which I’d like to backup elsewhere. Of course, mutt allows you to do a lot more than just send attachments. It is a much more complete command line mail client than the “mail” command. Right now we’ll just explore the basic stuff we might need often. Here’s how you would attach a file to a mail: ...

26 January 2009 @ 03:28 · leo

Debian - Service startup

Under Debian Linux startup files are stored in /etc/init.d/ directory and symbolic linked between /etc/rcX.d/ directory exists. Debian Linux uses System V initialization scripts to start services at boot time from /etc/rcX.d/ directory. Debian Linux comes with different utilities to remove unwanted startup file Using rcconf: This tool configures system services in connection with system runlevels. It turns on/off services using the scripts in /etc/init.d/. Rcconf works with System-V style runlevel configuration. It is a TUI(Text User Interface) frontend to the update-rc.d command. ...

26 January 2009 @ 03:23 · leo

Debian - Change installation language

# dpkg-reconfigure locales

26 January 2009 @ 03:21 · leo

CentOS - Asterisk

Brevemente, come installare Asterisk su CentOS usando yum. Partiamo dal indicare che ufficialmente CentOS nei sui repository non ha i pacchetti di asterisk, quindi è necessario utilizzarne degli altri, in particolare quelli di Trixbox che come ben sapere è basata su questa distribuzione. Per primo, installare il plug-in che ci permette di gestire le priorità [root@server ~]# yum install yum-priorities Creare un file con il seguente contenuto e posizionarlo in /etc/yum.repos.d/ nominandolo con estensione .repo ...

3 January 2009 @ 16:00 · leo

Debian - PXE installation

Dato che ultimamente è più facile per me avere a portata di mano un portatile o dispositivo simile e non i cd che vanno innesorabilmente persi, mi sono deciso a mettere un sistema di boot PXE sul notebook per effettuare l’installazioni dei server. Ecco quello che serve per partire, è necessario avere questi 3 pacchetti: Il server TFTP dove risiederanno le immagini di boot. Il server DHCP per distribuire gli indirizzi e i parametri PXE Il dnsmasq questo servirà ad installazione avviata per recuperare i pacchetti dal repository Quindi prima cosa installiamo: root@tardis:~/apt-get install tftpd-hpa dhcp3-server dnsmasq ...

15 November 2008 @ 16:09 · leo

Debian - debian-sys-maint

Se per sbaglio durante un restore di un database mysql cancellaste l’utente di sistema debian-sys-maint Potete ripristinarlo usando la password generata e scritta in chiaro in questo file: /etc/mysql/debian.cnf Questo è necessario se usate il sitema APT per gestire gli aggiornamenti dei servizi, in caso contrario non ha senso di esistere.

12 November 2008 @ 20:06 · leo

Tool - Make Self

Segnalo un tool per creare gli eseguibili autoestraenti sui sistemi *nix sempre utile per ogni evenienza. http://megastep.org/makeself/

11 November 2008 @ 10:47 · leo

VPS Linux - TUN/TAP Device

Se aquistato una vps con Debian basata su XEN ricordatevi che nella maggio parte dei casi mancano tools per gestire i moduli quindi per utilizzare un qualsiasi modulo in questo caso particolare tun/tap occorre installarli: # apt-get install module-init-tools #modprobe tun # mkdir /dev/net # mknod /dev/net/tun c 10 200 A questo punto è tutto pronto. Per riconoscere se è questo il vostro problema è facile incorrere in questo errore: ...

10 November 2008 @ 12:08 · leo