Basic Cisco

My knowledge of Cisco is basic at best but having spent a few days configuring one I decided to write down some aspects, more for future reference than anything else. Configuring the interfaces The Cisco I was working on had several physical FastEthernet ports. The first 2 where used and I was supposed to configure the 3’rd: FastEthernet2. Setting an IP to the FastEthernet2 cannot be done directly but instead it is done by creating a Vlan....

January 30, 2008 · len

Python locale problems

I must recognize I use a lot of python scripting for various tasks. Some of them, just stopped working: First problem ./my_script.py<br></br> File "./my_script.py", line 53<br></br>SyntaxError: Non-ASCII character '\xc3' in file ./my_script.py on line 53, <br></br>but no encoding declared; see http://www.python.org/peps/pep-0263.html <br></br>for details The solution Just add the following at the beginning of the script #!/usr/bin/env python<br></br># -*- coding: UTF-8 -*- Second problem Traceback (most recent call last):<br></br> File "./my_script.py", line 8, in <module><br></br> locale....

January 25, 2008 · len

Crepes, clatite

Crepes with jam (clatite cu marmelada) After looking at too many nice, baked recipe photos I’ve decided some measures had to be taken to satisfy the baking cravings so I combined this with some old crepes desires as so there was: jam filled crepes. Clatite (photo updated 2012-01-08) Ingredients 2 eggs milk 2 tbs of oil flour rum or in my case cherry angeli various flavors of jam and some inspiration Preparation beat the eggs with 2 tbs of flour and the oil until the composition is completely uniform add more flour and milk....

January 20, 2008 · len

Old/new I8000 #2

Wireless support Ok, now there is an Ubuntu system installed on the old Dell Inspiron 8000. Only one thing remains: some kind of wireless support. So, to this end, I have bought an Edimax wireless usb stick: EW-7318Ug. Gutsy default By default Gutsy loads the rt73usb module when the usb stick is inserted but I was not able to use this configuration in order to connect to the wireless network even if I have tried various things....

January 18, 2008 · len

Old/new I8000 #1

I have 2 old Dell Inspiron 8000 laptops which even if they are around 6 years old still have some nice features: 1600×1200 screen resolution very good quality sound card compared to the one of my new D820 (maestro3 versus intel_hda) Both of them are running linux since a very long time but I wanted to install a fresh/clean new version on one of them in order to be used as a music, internet station at home since I am afraid that backpack carrying the D820 each day on a bicycle will finally prove fatal to it....

January 18, 2008 · len

Wireless router

I would not normally write such an article but I came across the same question from different sources with the same wrong answer twice in the last week. The question was: I have bought a new wireless router and wish to connect my wireless laptop to the existing network? Obvious enough? Well not quite. First choice (complicated) What those asking me that question did was something similar to the following diagram:...

January 15, 2008 · len

Awstats

Awstats apt-get install awstats copy configuration files and cached data (old statistics) from old machine (the cached data will have to be copied once again exactly before moving to production) mkdir /var/cache/awstats ln -s /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl apt-get install libgeo-ipfree-perl libgeo-ip-perl geoip-bin #(required for the geoip plugin for awstats) Build the stats files using: AWSTATS=/usr/lib/cgi-bin/awstats.pl $AWSTATS -config=nemesisit.ro -update awstats_buildstaticpages.pl -config=nemesisit.ro -dir=/data/www/data/analyze/awstats -awstatsprog=$AWSTATS Not so simple At first everything seemed ok and I was even dumb enough to not check the results in detail but after a while I realized they did not worked:...

January 13, 2008 · len

dhcp and djbdns

DHCP Installing a dhcp server was quite simple. # apt-get install dhcp3-server Then I just had to modify the /etc/dhcp/dhcpd.conf the configuration file did not changed almost at all from the previous versions so I could just copy it with very small modifications. The only interesting thing in this file is how to make a server boot from the network: host X { #next-server X.X.X.1; #filename "/tftpboot/pxelinux.0"; hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address X....

January 8, 2008 · len

Asterisk (it’s a bug’s life)

Asterisk migration from 1.2.13 to 1.4.10. Edited to Asterisk (it’s a bug’s life after reverting to 1.2.26) To the end the asterisk installation was a bit disappointing as I lost a lot of time for a stupid issue. I started optimistic with a: apt-get install asterisk and then with the migration/merging of the configuration files. My configuration was as following: IAX clients connecting to asterisk which forwards calls to a sip box connected to a phone line....

January 8, 2008 · len

vqadmin and qmailadmin permissions

I later found out that I changed the permissions of the vqadmin and qmailadmin cgi-bin folders thus making the applications not work. There was no effective error but I was unable to login to the qmailadmin interface and the vqadmin showed a lot of strange errors such as: missing domains, domain has no postmaster, etc. In order to fix these problems the simplest way is to go to their respective source folder and do a make install-strip again....

January 8, 2008 · len