This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add-apt-repository ppa:pitti/postgresql | |
aptitude update | |
aptitude install postgresql-9.0 pgadmin3 postgresql-doc-9.0 postgresql-contrib-9.0 postgresql-server-dev-9.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ln -sf /usr/share/zoneinfo/America/Caracas /etc/localtime | |
date | |
ó | |
dpkg-reconfigure tzdata | |
(risturiz) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ID=$1 | |
IP=$2 | |
DNS=$3 | |
NAME=$4 | |
DISK=$5 | |
PASS=$6 | |
vzctl create $ID --ostemplate debian-6.0-i386-minimal | |
vzctl set $ID --ipadd $IP --save | |
vzctl set $ID --nameserver $DNS --save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /etc/apache2/ssl | |
export RANDFILE=/dev/random | |
openssl req $@ \ | |
-new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem \ | |
-keyout /etc/apache2/ssl/apache.pem | |
chmod 600 /etc/apache2/ssl/apache.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aptitude install nautilus-clamscan nautilus-image-converter nautilus-open-terminal nautilus-pastebin nautilus-wallpaper tortoisehg-nautilus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Scripts de Instalacion de Paquetes para Ubuntu 11.04 (basado en el de Ubuntu 10) | |
# William Yanez - 26/06/11 | |
# | |
####################### FUNCIONES DE INSTALACION ############################### | |
#USUARIO GENERAL | |
function user_common(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Two arguments | |
# $1 Youtube URL | |
# $2 You name for the video | |
wget -c --no-check-certificate --user-agent="" $1 -qO- | sed "s/\\u0026/\&/g" | \ | |
awk '/fmt_url_map/{gsub(/[\|\"]/,"\n");print}' | \ | |
sed -n "/^fmt_url_map/,/videoplayback/p" | sed -e :a -e '$q;N;2,$D;ba' | tr -d "\n" | sed -e "s/\(.*\),\(.\)\{1,3\}/\1/;s/\\\//g" | \ | |
wget -c --no-check-certificate --user-agent="" -i - -O $2.flv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Scripts de Instalacion de Paquetes para Debian Squezze/Wheezy (basado en el de Ubuntu 11.04) | |
# William Yanez - 26/07/11 (Actualizado a Septiembre 2012) | |
# | |
####################### FUNCIONES DE INSTALACION ############################### | |
#USUARIO GENERAL | |
function user_common(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host nombre_logico | |
Hostname 192.168.10.1 | |
User usuario | |
Port 22 | |
# Nota: Este archivo vá en: ~/.ssh/config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Si al hacer un hg | |
$ hg clone https://192.168.10.205/hg/sas_2011 | |
abort: error: _ssl.c:497: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed | |
1) Ejecutamos esta linea en la consola: | |
$echo quit |openssl s_client -connect 192.168.10.205:443 2>/dev/null|awk '/---BEG/,/--END/' |openssl x509 -fingerprint -noout | |
2) y obtenemos: | |
SHA1 Fingerprint=64:A4:7F:0C:39:A4:81:00:81:BC:44:75:18:31:32:22:3F:EB:E8:BE |