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