lunes, 28 de julio de 2008

Avertv on Ubuntu

http://www.linuxtv.org/downloads/firmware/dvb-usb-avertv-a800-02.fw

http://ubuntuforums.org/showthread.php?t=173778&highlight=dvb-t+usb


Well, this question is 3 weeks old but maybe it could help someone (it would help me). This was tested on Ubuntu 6.06 (final release).
First download firmware from here.
Copy it to /lib/firmware/number_of_your_kernel/
Code:
sudo cp dvb-usb-avertv-a800-02.fw /lib/firmware/number_of_your_kernel/
Plug the device in USB port (if it's plugged then unplug it first )
Blue light on device should light up.

Hardware is working but we need to see some pictures
Install dvb-utils
Code:
sudo apt-get install dvb-utils
make channels.conf
Adopt this line for your place
Code:
scan /usr/share/doc/dvb-utils/examples/scan/dvb-t/uk-Oxford > channels.conf
install mplayer (xine would be better for this but it dont work for me in dapper)
Code:
sudo apt-get install mplayer
copy channels.conf to mplayer config directory
Code:
cp channels.conf ~/.mplayer/
and watch
Code:
mplayer dvb://name_of_your_station

miércoles, 16 de julio de 2008

Posibles fallos en procesadores Intel podrían hacerlos vulnerables a virus

«Kaspersky pretende demostrar ataques remotos a fallos de los microprocesadores Intel Core 2, con Javascript o paquetes TCP/IP, sin importar el sistema operativo instalado (Windows, Linux, BSD, y posiblemente Mac, totalmente actualizados). La demostración será en una conferencia de seguridad de Malasia, en octubre, y pretende demostrar que los errores del procesador pueden ser explotados utilizando ciertas secuencias de instrucciones y conocimientos de cómo funcionan los compiladores Java, permitiendo al atacante tomar control. Los chicos de BSD ya se dieron cuenta.»

jueves, 19 de junio de 2008

Como recuperar archivos borrados en Linux

Alguna vez has borrado archivos desde la consola en linux???

como sabrás normalmente ese proceso no tiene vuelta atrás, es decir si borras algo ya no ahí forma de recuperar lo....."Pero ya no mas"

Existe una herramienta llamada libtrash que funciona como una papelera para los archivos que has borrado, de manera que si te arrepientes de haber borrado algo puedes recuperarlo.

Para instalarlo en Ubuntu ejecuta este comando:

sudo aptitude install libtrash

Después debes añadir en tu fichero de usuario .bashrc una nueva variable de entorno LD_PRELOAD "esto carga en memoria la librería dinámica que le indiquemos" con la ruta de la librería.

echo "export LD_PRELOAD=/usr/lib/libtrash/libtrash.so.2.4" >> ~/.bashrc

Ahora puedes cerrar y abrir la consola de nuevo para grabar los cambios o ejecutar

source ~/.bashrc

Ahora proveemos que funcione todo:

echo "kaeltasblog" > kaeltasblog.txt

y ahora lo borramos

rm kaeltasblog.txt

el archivo debe de estar ahora en Trash en nuestro directorio HOME, que es nuestra papelera.

Además:
libtrash tiene un archivo de configuración que nos permite indica el directorio a utilizar como papelera, entre otras cosas.

Si le indicamos .Trash, que es el archivo que usa Gnome como papelera, ¡cuando borremos un archivo este ira a parar a la papelera de Gnome y podremos borrarlo desde allí de forma gráfica!

echo "TRASH_CAN = .Trash" > ~/.libtrash

lunes, 16 de junio de 2008

USB devices in Linux VMWare Server

mount -t usbfs none /proc/bus/usb

Restarting VMWare server gave me back my USB devices.

lunes, 9 de junio de 2008

Install VMware Server 1.0.6 on Ubuntu 8.04 “Hardy”

Downloading the Requirements


The first step, of course, is to download VMware Server 1.0.6. You’ll want to download the .tar.gz version. This command can be used for a direct download:

wget -c http://download3.vmware.com/software/vmserver/VMware-server-1.0.6-91891.tar.gz

The second step is to install some development tools that we’ll need to
get things running. Use the following command or click the package
names to install the requirements:

sudo aptitude install build-essential linux-kernel-devel linux-headers-generic xinetd


sudo aptitude install linux-headers-server
sudo aptitude install linux-headers-generic


Installation and Configuration


Let’s unpack the VMware archive that we downloaded and run the VMware installer.


tar xf VMware-server-1.0.6-*.tar.gz

cd vmware-server-distrib

sudo ./vmware-install.pl

The Last Step


If you attempt to run vmware at this point you might notice that it
spits out some nasty errors and complains at you. There is one more
thing we need to setup.


Basically VMware is missing and complaining about some cairo
libraries and gcc. So, the simple fix for this is to point to them by
using a symbolic link:


sudo ln -sf /usr/lib/gcc/i486-linux-gnu/4.2.3/libgcc_s.so /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1

sudo ln -sf /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0


lunes, 2 de junio de 2008

OpenLDAP + Samba Domain Controller On Ubuntu 7.10

Guia Paso a Paso..

http://www.howtoforge.com/openldap-samba-domain-controller-ubuntu7.10

jueves, 29 de mayo de 2008

miércoles, 28 de mayo de 2008

The Perfect Desktop - Ubuntu 8.04 LTS (Hardy Heron)

En este link esta en el Perfect Setup de Ubuntu Hardy Desktop

http://www.howtoforge.com/the-perfect-desktop-ubuntu-8.04-lts-hardy-heron

Outlook 2002 and 2003 cannot query some OpenLDAP Servers

Please visit this page before http://support.microsoft.com/kb/256986 continuing.

For Outlook 2003, you must manually modify the Microsoft Windows registry directly:
1. Quit all Office programs.
2. Click Start, and then click Run.
3. In the Open box, type regedit, and then click OK.
4. Click the following key for Outlook XP:
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\LDAP
For Outlook 2003, the key is:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\LDAP
5. With the LDAP key selected, point to New on the Edit menu, and then click DWORD Value.
6. Type DisableVLVBrowsing, and then press ENTER.
7. With the DisableVLVBrowsing DWORD Value selected, click Modify on the Edit menu.
8. In the Value data box, type 1 and then click OK.
9. On the File menu, click Exit
10. Restart the computer

Mirror Data on Linux con Rsync

On first Server:

ssh-keygen -t dsa

(press enter twice to give a blank password)

cd
vi .ssh/.config

Press "i" to enter insert mode and copy this into the file:

Host remotehost
User remoteuser
Compression yes
Protocol 2
RSAAuthentication yes
StrictHostKeyChecking no
ForwardAgent yes
ForwardX11 yes
IdentityFile /home/localuser/.ssh/id_remotehost_dsa


Do NOT change the last line - it is supposed to say remotehost (not an actual host name). Now,

(save and exit vi)

chmod 700 .ssh
vi .ssh/id_dsa.pub

It should look like this:

ssh-dss AAAA..............v root@HOSTNAMEOFSRV01

On Second Server:

cd
vi .ssh/authorized_keys

Enter insert mode (press i) and paste the key, again ensuring that there are no spare newlines or spaces. Save the file and exit vi (press :wq then return, as above). Now you just need to set some permissions otherwise SSH will ignore the files you just created:

chmod 700 .ssh
chmod 644 .ssh/authorized_keys

Testing passwordless SSH

Rsync Replication:

rsync -e ssh -avz --delete /home/folder1/ srv02hostname:/home/folder2

Clonar Linux PC

En la pc de referencia:
dpkg --get-selections>miseleccion.txt


En la pc nueva:

dpkg --set-selectionsapt-get dselect-upgrade

Despues restaurar el home directory del usuario con las carpetas ocultas