the permanent TODO

September 2, 2010

PulseAudio + Gnome in Debian

Filed under: Debian, tech — Tags: , , , — {Francisco,François} Varas @ 10:01 am

From the pulseaudio wiki + some googling:

$ apt-get install pulseaudio libao-common paprefs libpulse-mainloop-glib0 pulseaudio-module-jack pavucontrol alsaplayer-alsa pulseaudio-module-hal pulseaudio-module-x11 libgstreamer-plugins-base0.10-0 pulseaudio-module-lirc pulseaudio-utils pulseaudio-module-zeroconf libasound2-plugins padevchooser paman pulseaudio-module-gconf libgconfmm-2.6-1c2 libpulse-browse0 pavumeter libglademm-2.4-1c2a pulseaudio-esound-compat libpulse0 libpulse-dev

$ ln -sf /usr/local/bin/esdcompat /usr/bin/esd

Then, you launch gnome and eerything works!

links:

http://forums.debian.net/viewtopic.php?t=12497

http://pulseaudio.org/wiki/PerfectSetup#GNOME

August 7, 2010

vlmc VideoLan Movie Creator on debian

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

I have taken this information from other blogs/websites + my experiencie with debian.
how to compile vlmc on debian:
install those libraries:

libavcodec-dev
libpostproc-dev
libmpeg2-4-dev

# cd /usr/local/src
# apt-get install automake1.11
be sure that you install at least version 1.11 or you will have lots of errors and you will not be able to build.
be sure to uninstall you current vlc version
#apt-get remove vlc
install the dependencies for vlc:
#apt-get build-dep vlc
#apt-get install libtool build-essential git-core libqt4-dev qt4-qmake liblua5.1-dev libswscale-dev cmake

  • Download VLC source from GIT: git clone git://git.videolan.org/vlc.git
  • Download VLMC from GIT: git clone git://github.com/VLMC/vlmc.git

first build VLC:
#cd vlc
#./bootstrap
create a build directory to avoid messing the source code
#mkdir build
# cd build/
#../configure (I will not suggest any options here, but you should take a look)
#make && make install && make clean
#ldconfig
#cd /usr/local/src/vlmc/
#echo "LIBS = -L/usr/local/lib -lvlc" >> vlmc.pro
#cmake .
#make

references:
http://www.frenssen.be/content/install-vlmc-video-editor-ubuntu
http://wiki.videolan.org/UnixCompile
http://wiki.videolan.org/Building_VLMC

May 24, 2010

Installing a VPN

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

Here I will explain how i’ve manageed to have a functional VPN with running Debian as server.
I have Linux and Mac OS X clients(Tunnelblick).
What you will need

  • A public IP
  • debian
  • an editor (vi or vim)
  • this howto
  • frustration proof patienece


- to launch the server:
openvpn --config /etc/openvpn/server.conf --script-security 2 --daemon

- to launch a Linux client:
openvpn --config /etc/openvpn/client.conf --script-security 2 --daemon (Debian, Ubuntu)

- to launch a Mac OS X:
Download and install Tunnelblick

- How to generate client certificates:
one installed, to generate a VPN

#cd /etc/openvpn/easy-rsa/2.0/
#./build-key <client_name>
#cd /etc/openvpn/easy-rsa/2.0/keys/
you will find 3 files named:
- <client_name>.crt
- <client_name>.csr
- <client_name>.key (chmod 500 if not )

make a tarball with those files + ca.crt

This post is not complete. By now, you can follow the open VPN howto.

May 18, 2010

twisted web file server for ignorant cowboys

Filed under: tech — Tags: , , , — {Francisco,François} Varas @ 1:05 pm

To serve files over http, you can install Twisted

apt-get install python-twisted

To launch the web server:
twistd web –path /var/www/ –port 80

To stop the web server:
kill `cat twistd.pid` (on the same directory you launched it)

You will find complete doc at:

http://twistedmatrix.com/documents/current/web/howto/using-twistedweb.html

April 26, 2010

squirrelmail with postfix – debian

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

apt-get install courier-imap

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

Thing 1:

http://www.squirrelmail.org/docs/admin/admin-3.html

Thing 2:
/usr/share/squirrelmail/config/conf.pl

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…

Older Posts »

Powered by WordPress