miércoles, mayo 16, 2012

Instalar Gnome clásico en Ubuntu 12.04


Si aún tenes tus reservas sobre Unity o Gnome shell como escritorio para Ubuntu, y seguís extrañando a Gnome2 te invito a que podas probar el llamado Gnome clásico, te trae la experiencia de ese escritorio que muchos nostálgicos como yo aún recordamos.
Es totalmente sencillo, si usas synaptic buscas el paquete gnome-session-fallback y si lo queres hacer directamente por consola, este es el comando:
sudo apt-get install gnome-session-fallback
Una vez descargado todo, cerramos sesión y en el cuadro del login hacemos clic en el simbolo de Ubuntu y seleccionamos Gnome Classic.

Como cambiar clave al usuario root de mysql sin saber su clave


Bueno despues de haber instalado el servidor con sus aplicaciones cómo php y mysql deje de usar el servidor por mucho tiempo lo que me causo que olvidara la clave de root de mysql, luego de intentar variadas veces y con un resultado negativo por mi memoria de pollo :( tome la determinación de borrar dicha clave y asignar una nueva, lo primero que hice fue :



Detener el servicio mysql
/etc/rc.d/init.d/mysqld stop


Y luego iniciarlo en un modo safe que es como abierto.
Iniciar en modo FULL o abierto
#> mysqld_safe --skip-grant-tables --skip-networking&



Luego me di cuenta que no me funciono, asi que intente ingresar al usuario mysql el cual me arrojo el problema ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO). Bueno este problema no me dejaba acceder a la Base de Datos de mysql por lo tanto me puse a buscar y encontré una solución muy práctica para ello y lo mostraré en las siguientes líneas que tendrán que colocar en la terminal:


1. Detenemos el servicio de MySQL
/etc/init.d/mysql stop


2. Saltamos los privilegios de MySQL
/usr/bin/mysqld_safe --user=mysql --skip-grant-tables


3. Abrimos otra terminal y escribimos
mysql


4. Ya estamos dentro de la Base de Datos por lo tanto usamos la base de datos llamada mysql
use mysql;


5. Actualizamos el campo Password del usuario root de la siguiente manera
UPDATE user SET Password=PASSWORD('nuestro_password') WHERE user='root';


6. Salimos 
exit


7. Iniciamos una nueva sesión en la base de datos desde la terminal
mysql -u root -p


y tendremos que meter nuestro_password y listo.


Los comandos son extractos de otros sitios webs escritos por Sergio Gonzales y Carlos Arango.


Saludos.-

viernes, mayo 11, 2012

Samba en debian 64 bit sin autentificacion

Instalar samba y luego editar el nano /etc/samba/smb.conf

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
   map to guest = bad user

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes
#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares.  This will share each
# user's home directory as \\server\username
;[homes]
;   comment = Home Directories
;   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
;   read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
;   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
;   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.  Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# This might need tweaking when using external authentication schemes
;   valid users = %S




nautilus-share

Extensión de Nautilus para compartir carpetas usando Samba



skype en debian 64 bits


skype:
Hay una versión para la arquitectura amd64 pero, también hay que instalar una serie de librerías para utilizarlo como si fuese un programa de 32 bits y unas cuantas más de QT, que son la interfaz gráfica que utiliza Skype.

sudo aptitude install ia32-libs ia32-libs-gtk
sudo aptitude install libqt4-core libqt4-gui

A continuación, descargamos el programa, en su versión para 64 bits. El hecho de que sea un paquete de Ubuntu no tiene la mayor importancia.

http://www.skype.com/go/getskype-linux-ubuntu-amd64

Instalando debian 6 amd64 Bit con Intel HD 2000/3000


The usual backports instructions apply. But let’s gather everything in a single place.
Add that to your sources.list:
deb http://backports.debian.org/debian-backports squeeze-backports main
Update your cache:
apt-get update
If you’re interested in just upgrading the usual mesa packages:
apt-get install -t squeeze-backports libgl1-mesa-dri libgl1-mesa-glx
If you want the whole stack, we should distinguish between two cases.
In the usual case, both the xserver-xorg-input-all and xserver-xorg-video-all meta packages were installed, and pulled a lot of packages, which should work for most users. Specifying a few packages to upgrade should pull everything from squeeze-backports.
apt-get install -t squeeze-backports xorg xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-video-all
apt-get install -t squeeze-backports libgl1-mesa-dri libgl1-mesa-glx
In case only the needed packages were installed, like the synaptics input driver and the intel video driver, the following should be sufficient:
apt-get install -t squeeze-backports xorg xserver-xorg xserver-xorg-core xserver-xorg-input-synaptics xserver-xorg-video-intel
apt-get install -t squeeze-backports libgl1-mesa-dri libgl1-mesa-glx
It is probably a very good idea to install the Linux kernel from squeeze-backports as well. It is even required for the nouveau video driver.

Agregando al sourcelist

# Security updates
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
#Contrib Non-free
deb http://ftp.cl.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.cl.debian.org/debian squeeze main contrib non-free
# aMSN
deb http://ppa.launchpad.net/amsn-daily/ppa/ubuntu karmic main
# Wine
deb http://www.lamaresh.net/apt squeeze main
# Debian  package
deb http://www.debian-multimedia.org squeeze main non-free
# Google software
deb http://dl.google.com/linux/deb/ stable non-free main

Its got the Intel HD Graphics 3000.
$ lspci -v | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
 
 $ glxinfo
name of display: :0.0
Unrecognized deviceID 126
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Serial number of failed request:  21
  Current serial number in output stream:  24
 
 $ dpkg -l | grep glx
ii  libgl1-mesa-glx                   7.7.1-4                   A free implementation of the OpenGL API -- GLX runtime
$ dpkg -l | grep video-intel
ii  xserver-xorg-video-intel          2:2.13.0-6                X.Org X server -- Intel i8xx, i9xx display driver
 
 
http://backports-master.debian.org/Instructions/
will tell you how to enable backports.
This will help you find the right kernel
apt-cache search 2.6.39
 
sudo apt-get -t squeeze-backports install linux-image-3.2.0-0.bpo.2-amd64
Reboot into the new kernel, and
sudo apt-get -t squeeze-backports install linux-headers-$(uname -r)
 
Instalando adicionales:
 
Gnome:
Code:
aptitude install gnome-core pulseaudio alsa openoffice.org-writer openoffice.org-calc openoffice.org-impress openoffice.org-l10n-es gcalctool gedit amsn rhythmbox brasero vlc libxine1-ffmpeg phonon-backend-xine evince pavucontrol google-chrome-stable gdm flashplugin-nonfree sun-java6-jre sun-java6-jdk sun-java6-plugin sun-java6-bin wicd os-prober file-roller  unrar zip gdebi -y && aptitude full-upgrade -y && reboot
XFCE:
Code:
aptitude install xorg xfce4 pulseaudio alsa openoffice.org-writer openoffice.org-calc openoffice.org-impress openoffice.org-l10n-es gcalctool emesene brasero vlc libxine1-ffmpeg phonon-backend-xine evince pavucontrol google-chrome-stable gdm flashplugin-nonfree sun-java6-jre sun-java6-jdk sun-java6-plugin sun-java6-bin wicd os-prober file-roller rar unrar zip gdebi -y -&& aptitude full-upgrade -y && reboot
LXDE:
Code:
aptitude install xorg -y && aptitude install --without-recommends lxde -y && aptitude install pulseaudio alsa openoffice.org-writer openoffice.org-calc openoffice.org-impress openoffice.org-l10n-es gcalctool f-spot emesene audacious brasero vlc libxine1-ffmpeg phonon-backend-xine evince pavucontrol google-chrome-stable gdm flashplugin-nonfree sun-java6-jre sun-java6-jdk sun-java6-plugin sun-java6-bin wicd os-prober file-roller rar unrar zip gdebi -y && aptitude full-upgrade -y && reboot
 Bueno, y si quieren instalar programas opcionales, que yo recomiendo:
Code:
aptitude install compiz-gtk compizconfig-settings-manager gparted startupmanager ntfs-config wine gtk-recordmydesktop visualboyadvance-gtk tucan gconf-editor -y