the permanent TODO

March 29, 2010

posfix with debian

Filed under: Uncategorized — Tags: , — {Francisco,François} Varas @ 9:00 am

apt-get install postfix

http://wiki.debian.org/Postfix

http://www.debian-administration.org/articles/243

With an edited sample of my /etc/aliases
# /etc/aliases
root: user1@dragon-tortuga.net #all mail sento to root@dragon-tortuga.net will end in my mailbox
mailer-daemon: postmaster #all mail sent to mail-daemon will go to postmaster, wich is root which is user1 (me)
postmaster: root
hostmaster: root
webmaster: root
www: root
ftp: root
abuse: root
user1: user1@dragon-tortuga.net
my.name: user1 #an alias to have more a more formal mail address
user2: user2@sutercnologico.net
user2.realname: user2
user3: user3@dragon-tortuga.net
—————
once you have finished editting this file, run
newaliases
invoke-rc.d postfix reload

This is a very basic set up that uses system accounts with all pros and cons.

March 20, 2010

let’s make things clear

Filed under: Uncategorized — Tags: , , — {Francisco,François} Varas @ 7:03 pm

I publish this blog just for fun, and most of the information you will find comes from my google research and some of the books I have at home. I’m not intending to explain things, only make available the results of things i’ve done and tested for my own personal use.

If this method offends a certain “over qualified” audience, the only effort to assume is to avoid reading this blog.
I’ve not studied anything related to informatics, I’m a self taught Linux user. In my beginnings I had to face unix systems with little or no idea of what I was doing and my only intention with this blog it to make it easier (event a the cost of misleading imprecisions) for people that is discovering this particular and remarkably amazing world of OSes.

Have a nice day.

March 18, 2010

Enabling 6to4 with debian (now nobody will now what this post is about)

Filed under: tech — Tags: , , — {Francisco,François} Varas @ 11:08 am

ipv6 is about ten years old, and it is well and largely supported by most operating systems.
So, coming back to Debian, if you want to enable ipv6 in your machines, here’s how to:

You will need:

  • an editor (a real one, like vi)
  • ifconfig’s output
  • ipv6calc (exists as a debian package)
  • two ipv6 enabled machines

go to root, use ifconfig, read the output carefully.
let’s say your IP is 10.0.10.68
Edit /etc/network/interfaces with your favourite vi version


auto tun6to4
iface tun6to4 inet6 v4tunnel #tun6to4 can be changed by any other name
address 2002:a00:144::1 #to obtain this value, see below
netmask 16
gateway ::192.88.99.1
endpoint any
local 10.0.1.68

Calculating ipv6 address
ipv6calc --quiet --action conv6to4 10.0.1.68
this will give the the prefix, you can add a “1″ at the end, like I did. (if you want to know why: ipv6 )

If you are brave enough, try this script. It will give you your ipv4 and ipv6 IPs
8<-----------------------------------------------

#!/bin/sh
echo “your ipv4 ip is: ”
a=$(/sbin/ifconfig | grep eth. -C 2 | grep “inet addr” | sed s/[a-z,:]//g | awk -F ‘ ‘ ‘{print $1}’)
echo $a
if [ -e /usr/bin/ipv6calc ]
then
echo “your ipv6 ip is:”
printf `ipv6calc –quiet –action conv6to4 $a`”1\n”
else
echo “ipv6calc is not installed, please install it”
fi

8<-----------------------------------------------
Now do the same for the second machine, and try ssh or ping6
Good Luck!

March 8, 2010

uncommenting a code block with Vim

Filed under: Uncategorized — {Francisco,François} Varas @ 9:30 am

Note: I use the set number option by default.
To uncomment a block beginning with the character “#” from line 9 to line 13

Use:
:9,13s/^//g

March 1, 2010

commenting a code block with Vim

Filed under: Uncategorized — {Francisco,François} Varas @ 9:30 am

Note: I use the set number option by default.
To comment a block with the character “#” from line 9 to line 13

Use:
:9,13s/^/#/g

and so on…

Powered by WordPress