Cisco - page breaks

On Router IOS: To stop the page breaks: # terminal length 0 To resume them: # terminal no length 0 (or number ex. 24) On Pix/ASA: To stop the page breaks. # no pager To resume them: # pager 24

13 April 2009 @ 19:14 · Updated: 30 June 2026 @ 03:28 · leo

Cisco - Get & Save config using telnet

Vi è mai capitato di dover salvare delle configurazione da apparati cisco senza avere un tftp a disposizione? In aiuto un piccolo script: #!/bin/bash host=xx.xx.xx.xx port=23 login=user passwd=pass nobreak='terminal length 0' cmd='show running-config all' (echo open ${host} ${port} sleep 1 echo ${login} sleep 1 echo ${passwd} sleep 1 echo ${nobreak} sleep 1 echo ${cmd} sleep 30 echo exit) | telnet sw01.txt

13 April 2009 @ 19:08 · Updated: 30 June 2026 @ 03:28 · leo

Out of Office automatic reply

Thank you for your message. I’m currently out of office, with limited access to e-mail. I will be returning on 22/04 For very urgent issues, you may reach me at +393939878975 Leonardo Rizzi – Leonardo Rizzi - System & Network Architect HostingLab (Skillnet Srl) Viale E. Jenner 30 20159 - Milano Office: +39 025457173 Mobile: +39 3939878975 www.hostinglab.it

10 April 2009 @ 16:00 · leo

Configuring the svnserve daemon

Creating the repositories If you have not created any subversion repositories yet, you can create one with svnadmin: # svnadmin create ~/my-repository Tweaking svnserve.conf Open up and edit the svnserve.conf file located in the $HOME/my-repo/conf/ directory. Sample $HOME/my-repo/conf/svnserve.conf [general] # Path to the file containing svn users and passwords. password-db = $HOME/my-repo/conf/passwd # Authentication realm of the repository. Two repositories using the # same password-db should have the same realm. realm = My-test-repository # Deny all anonymous access anon-access = none # Grant authenticated users read and write privileges auth-access = write Setting up password authentication Open up and edit the password-db file (ie. $HOME/my-repo/conf/passwd). A sample entry might look like this: ...

29 March 2009 @ 12:59 · Updated: 30 June 2026 @ 03:28 · leo

Configuring subversion access over HTTP/DAV

Creating the repository If you have not created any Subversion repositories yet, you can create one with svnadmin: # svnadmin create ~/my-repository Adding mod_dav_svn to your httpd # a2enmod mod\_dav\_svn If you plan to use fine-grained permissions, load mod_authz_svn.so as well: # a2enmod mod_authz_svn Configuring access to repositories HTTP access to your repositories is defined using a <Location> section in your httpd.conf. <Location /myproject> DAV svn SVNPath /home/myself/myrepos/myproject AuthType Basic AuthName "My project" AuthUserFile /home/myself/private/myproject.pw Order deny,allow <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location> This entry would grant read-only access to everyone and write access to every user AuthUserFile. You can use the htpasswd utility to create or update this file, as described here. ...

29 March 2009 @ 12:53 · Updated: 30 June 2026 @ 03:28 · leo

MySQL Change Password

If you have never set a root password for mysql, the server does not require a password at all for connecting as root. To setup root password for first time, use mysqladmin command at shell prompt as follows: # mysqladmin -u root password NEWPASSWORD However, if you want to change (or update) a root password, then you need to use following command # mysqladmin -u root -p oldpassword newpass Enter password: Change MySQL password for other user To change a normal user password you need to type (let us assume you would like to change password for leo): ...

22 March 2009 @ 23:44 · Updated: 30 June 2026 @ 03:28 · leo

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 · Updated: 30 June 2026 @ 03:28 · leo

Fiat Ecodrive - Database

E così ho comprato una 500, come per le macchine di nuova produzione della Fiat a bordo hanno equipaggiato un sistema che si chiama Blue & Me un computer di bordo basato su Windows Mobile for Automotive, che tuttosommato non è neanche una scelta così pessima quando funziona. Questa breve introduzione mi era necessaria per descrivere un software fornito dalla Fiat chiamato Ecodrive installabile sul computer di bordo dell’automobile. Nonostante il nome non è nientaltro che un datalogger dei dati di bordo come velocità, numero di giri del motore, temperature ecc. che salva tutto su una drive collegato alla porta usb della macchina. ...

15 March 2009 @ 23:32 · leo

Windows - Disable automatic update from VBS

Sono stufo di cliccare.. Const AU_DISABLED = 1 Set objAutoUpdate = CreateObject("Microsoft.Update.AutoUpdate") Set objSettings = objAutoUpdate.Settings objSettings.NotificationLevel = AU_DISABLED objSettings.Save

12 February 2009 @ 01:20 · Updated: 30 June 2026 @ 03:28 · leo

Windows - Symlink

Hahahah, I’m burst in laughter when I read this NTFS (under win 2000 or above) specific, obviously Microsoft called with Junction name. Unfortunately, Windows comes with no tools for creating junctions, for use this funtion there’s two additional program: Get Resouce Kit and use “linkd” program Use “junction” program form Sysinternal tool More info: http://support.microsoft.com/?kbid=205524 http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx

8 February 2009 @ 04:34 · Updated: 30 June 2026 @ 03:28 · leo