Sunday, June 14, 2009

Configurar Webcam genius eye 110 en Debian Lenny

Si le damos un lsusb

Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 093a:2472 Pixart Imaging, Inc.
Bus 001 Device 001: ID 0000:0000

Lo primero que hacemos es descargar el siguiente programa

apt-get install build-essential linux-headers-$(uname -r)
wget http://debian.lcs.mit.edu/debian/pool/main/g/gspca/gspca-source_01.00.20-1_all.deb
dpkg -i gspca-source_01.00.20-1_all.deb
cd /usr/src
ls -l
     -rw-r–r–  1 root root 170815 2008-01-09 05:47 gspca.tar.bz2 
tar jxvf gspca.tar.bz2
cd modules/
cd gspca/
m-a prepare
m-a a-i gspca
modprobe gspca
lsmod |grep gspca
ls /dev/vid*
    /dev/video0
y Listo ya tenemos nuestra camara web funcionando :-D

Tomado de:
http://contenidosdidacticos.com/index.php?option=com_content&task=view&id=241&Itemid=28

Sunday, May 3, 2009

Greek font in MAXIMA

Acquiring and installing a Greek font on your system is an important addition — it allows all those Greek characters, common in mathematical expressions, to be displayed properly. Here is a link to a free font:
SPIonic.ttf

For Windows systems, place this font in the directory \Windows\Fonts. For Linux, place it in /usr/share/fonts (there may be some distribution-dependent variations in this location). Next, for all platforms, run wxMaxima and go to the menu item "Edit ... Configure ... Style tab", select "Use Greek Font", then click the "Greek" button, navigate to and select the font you have just installed.

The change should take effect immediately. To test the ability of wxMaxima to render correctly, type examples of Greek characters in wxMaxima using this notation:

%Omega;
Ω
%omega;
ω
The results shown above indicate success. If your typed strings reappear in the output unchanged, something went wrong — go over the instructions above and repeat any steps you missed.

Thereafter activate this font in wxMaxima, from Edit>Configure>Style>Use greek font

Sunday, March 22, 2009

How to play a DVD video iso

To rip it simply type:
$ cat /dev/dvd/ > $HOME/video.iso

To play it
$ kaffeine dvd:$HOME/video.iso

Wednesday, March 18, 2009

dyndns.org

The following is an extension to https://www.dyndns.com/services/dns/dyndns/howto.html

In order to have a dynamic dns address, do the following:

- Open an account at http://www.dyndns.com/

- Now we have to install a client to update the ip address everytime we have a new IP address: in this case from synaptic I chose ddclient (see also http://www.dyndns.com/support/clients/ )
# sudo apt-get install ddclient

To configure ddclient, edit the file /etc/ddclient.conf and run
the tool in https://www.dyndns.com/support/tools/clientconfig.html
In the webpage of ddclient: http://ddclient.wiki.sourceforge.net/ you can learn how to configure it.
A tutorial for configuring ddclient in dyndns.org is https://www.dyndns.com/support/kb/using_ddclient_with_dyndns_services.html


Another tools for linux are
- ndyndns >> http://code.google.com/p/ndyndns/
- and the ones in https://www.dyndns.com/support/clients/unix.html


In order to check if ddclient is working...
$ nslookup earendil.dyndns.org
You can also try to go to
https://www.dyndns.com/support/tools/dnsquery.html
and in the field Query and Record Type: write down earendil.dyndns.org


OPEN THE PORTS IN THE ROUTER... PORT FORWARDING
http://portforward.com/
https://www.dyndns.com/support/kb/routers_and_port_forwarding.html

To see if you can access the computer from outside, check that the ports are open with https://www.dyndns.com/support/tools/openport.html


Finally, install OPENVPN ( https://www.dyndns.com/support/kb/using_openvpn_with_dyndns.html )



NOTES
If I want to create a web server check
  • - https://www.dyndns.com/support/kb/cat_web_server.html
  • - https://www.dyndns.com/support/kb/dynamic_dns_apache_and_windows.html


Some links that might be useful in case of troubles
  • https://www.dyndns.com/support/kb/why_cant_i_connect_to_my_server.html
  • https://www.dyndns.com/support/kb/dns_caching.html
  • https://www.dyndns.com/support/kb/loopback_connections.html
  • http://dyndnscommunity.com/forum/


Other pages that provide similar services to dyndns.org are
  • http://www.no-ip.com/
  • https://www.opendns.com/start/
  • http://www.dnsadvantage.com/index.html
  • And the 40 listed at http://www.dmoz.org/Computers/Internet/Protocols/DNS/DNS_Providers/Dynamic_DNS/
  • http://www.everydns.com/

Friday, March 13, 2009

Iceweasel as Firefox

Everybody knows Iceweasel is actually Firefox 3, everyboby except Google. When you visit http://gears.google.com, an ugly message says “your browser is not supported”.

The solution is easy: trivial user agent cheating

  1. Point your iceweasel to “about:config”.
  2. Find a key called “general.useragent.extra.firefox” and edit to “Firefox/3.0.5”

Monday, March 9, 2009

Red prompt when ROOT

edit /root/.bashrc and add

function setprompt
{
local RED="\[$(tput setaf 1)\]"
local RESET="\[$(tput sgr0)\]"
if [ `id -u` = 0 ] # check if user is root
then
PS1="$RED[\u@\h:\W]$RESET "
else
PS1="[\u@\h:\W]$RESET "
fi
}
setprompt

Thursday, March 5, 2009

Installling LINUX at UNAL

DHCP hostname: manizales.unal.edu.co

Proxy: http://192.168.100.3:8888/

Install the basic programs only.

Write down in the console
export ftp_proxy=http://192.168.100.3:8888/
export http_proxy=http://192.168.100.3:8888/
export https_proxy=http://192.168.100.3:8888/

Then
# apt-get install desktop kde-desktop

Remove kdetoys kdegames kdeaccesibility kdeedu


http://docking.ncl.ac.uk/proxy/linux/


You can also write down in your ~/.bashrc
export ftp_proxy=http://192.168.100.3:8888/
export http_proxy=http://192.168.100.3:8888/
export https_proxy=http://192.168.100.3:8888/

Tambien podría eventualmente funcionar:
export http_proxy="http://168.176.195.227:8888/"
export https_proxy="http://168.176.195.227:8888/"
export ftp_proxy="http://168.176.195.227:8888/"


Add to .bashrc the following lines
export ftp_proxy=http://192.168.100.3:8888/
export http_proxy=http://192.168.100.3:8888/



To configure aptitude, add to /etc/apt/apt.conf the line
Acquire::http::Proxy "http://192.168.100.3:8888/";




Configure Firefox:
Edit/Preferences/Advanced/Network
Connection-Settings
Check Manual proxy configuration
HTTP proxy 192.168.100.3
Port 8888
Check: USE THIS PROXY SERVER FOR ALL PROTOCOLS
No proxy on: localhost, 127.0.0.1, 168.176.*, .unal.edu.co




Control Center-> Proxy
Manually specify the proxy settings
Servers
HTTP: http://192.168.100.3 PORT: 8888
Check Use the same proxy server for all protocols
Servers
HTTP: http://192.168.100.3 PORT: 8888
Check Use the same proxy server for all protocols