esta es la forma de respaldar una base de datos desde mi maquina y donde la base de datos esta en x servidor:
mysqldump -u usuariodebd -h iphost -p bd > archivo.sql
jueves, 3 de diciembre de 2009
jueves, 26 de noviembre de 2009
Instalar firefox 3.5 en centos 5.3
Primero bajamos la ultima version
Luego la descomprimimos de la siguiente manera
tar -xvf firefox-3.5.5.tar.bz2
Movemos la carpeta ala ruta /opt/
mv firefox /opt/
Cambiamos permisos
chown root /opt/firefox
Creamos la liga a firefox
ln -s /opt/firefox/firefox /usr/bin/firefox
En caso de que ya exista la eliminamos
rm -f /usr/bin/firefox
Intentamos crearla nuevamente
ln -s /opt/firefox/firefox /usr/bin/firefox
Tecleamos en la consola el comando firefox y listo
firefox
Luego la descomprimimos de la siguiente manera
tar -xvf firefox-3.5.5.tar.bz2
Movemos la carpeta ala ruta /opt/
mv firefox /opt/
Cambiamos permisos
chown root /opt/firefox
Creamos la liga a firefox
ln -s /opt/firefox/firefox /usr/bin/firefox
En caso de que ya exista la eliminamos
rm -f /usr/bin/firefox
Intentamos crearla nuevamente
ln -s /opt/firefox/firefox /usr/bin/firefox
Tecleamos en la consola el comando firefox y listo
firefox
Etiquetas:
LINUX
instalar amsn en centos 5.3
Primero bajamos el paquete con la ultima versiòn
Para la instalacion de amsn en centos 5.3
tar -xvjf amsn-0.98.tar.bz2
cd amsn-0.98
./configure
Instalando librerias faltantes de tcl
yum install tcl*
./configure
Si faltan las librerias tk las instalamos de la siguiente manera
yum install tk*
./configure
make
su -c 'make install'
Para la instalacion de amsn en centos 5.3
tar -xvjf amsn-0.98.tar.bz2
cd amsn-0.98
./configure
Instalando librerias faltantes de tcl
yum install tcl*
./configure
Si faltan las librerias tk las instalamos de la siguiente manera
yum install tk*
./configure
make
su -c 'make install'
Etiquetas:
LINUX
lunes, 26 de octubre de 2009
Como cambiar la configuracion regional de Linux Centos desde linea de comandos
Para realizar un cambio efectivo sin utilizacion de interfaz grafica en Linux Centos 5.3 realizar lo siguiente:
primer paso, comprobar que configuraciòn se tiene actualmente, con el comando locale escrito en una consola nos muestra la configuracion por ejemplo la mia tiene la siguiente:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
para lograr dicha configuracion hay que editar el archivo siguiente con algun editor, yo lo hice con el editor nano
nano /etc/sysconfig/i18n
y puse las siguientes lineas en tal archivo
LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"
reinicie mi computadora y listo
primer paso, comprobar que configuraciòn se tiene actualmente, con el comando locale escrito en una consola nos muestra la configuracion por ejemplo la mia tiene la siguiente:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
para lograr dicha configuracion hay que editar el archivo siguiente con algun editor, yo lo hice con el editor nano
nano /etc/sysconfig/i18n
y puse las siguientes lineas en tal archivo
LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"
reinicie mi computadora y listo
Etiquetas:
LINUX
miércoles, 12 de agosto de 2009
Montar ntfs en centos 5.3
NTFS support in CentOS 5.3
April 11, 2009 by Resa
Filed under: Centos, Linux
After my experiences with the installation of msttcorefonts and conky I am starting to get used that installation of certain packages and/or software requires a bit more effort in CentOS. Today I popped in an NTFS formatted USB stick only to get the message that it could not be mounted since NTFS is not supported.
In the (Debian) based distributions I used so far that was resolved by installing ntfs-3g packages and that was it. However, a search through the packages showed no packages available with ntfs in the name and/or description.
So — as usual — I Googled and found the following page in the CentOS wiki: How to mount an NTFS filesystem. The first thing that was indicated is that I should enable the rpmforge repository. Therefore it was suggested to have a look at the page: Installing rpmforge. This page contains clear instructions, summarized the following is required.
First the priorities package needs to be installed. It can be used to enforce ordered protection of repositories, by associating priorities to repositories. It can be installed as root or — as I do — while acting as root.
sudo yum install yum-priorities
After this is installed it has to be confirmed that the /etc/yum/pluginconf.d/priorities.conf file contains the following lines:
[main]
enabled=1
I checked this by opening this file with nano and acting as root with the command:
sudo nano /etc/yum/pluginconf.d/priorities.conf
I did not have to edit the file since the required lines where all installed. Next the /etc/yum.repos.d/.repo file needs to be edited so that the priorities are set. In my case the content is as follows:
[base],[addons],[updates],[extras] ... priority=1
[centosplus],[contrib] ... priority=2
rpmforge ... priority=99
Now that this is done the PGP key for the repo has to be installed, this can be done with the following command:
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
Now you have to download the rpmforge release package that is required for your architecture, therefor download either one of the following:
* i386
* x86_64
For my installation I required the i386 version, so I downloaded it and checked the package with the command:
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
It checked out okay so I installed it with the following command:
sudo rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
After installation I could continue with the installation for NTFS support and as instructed installed the following packages:
yum install fuse fuse-ntfs-3g dkms dkms-fuse
However …. , even after a reboot, I still received the same error when I plugged in the USB stick. So I started up the package manager and searched (again) for ntfs. From the list of packages found I decided to install the following packages:
* dkms-ntfs-2.1.27-2.nodist.rf.noarch
* findntfs-1.3-1.el5.rf.i386
* gnome-vfs2-ntfs-1.13.1-1.el5.rf.i386
* ntfsprogs-1.13.1-1.el5.rf.i386
Which of these packages really solved the issue — my guess is the dkms package — I am not entirely certain, but now my USB stick is recognized and I can browse all directories and files.
CentOS 5.3 USB mounted
CentOS 5.3 USB mounted
April 11, 2009 by Resa
Filed under: Centos, Linux
After my experiences with the installation of msttcorefonts and conky I am starting to get used that installation of certain packages and/or software requires a bit more effort in CentOS. Today I popped in an NTFS formatted USB stick only to get the message that it could not be mounted since NTFS is not supported.
In the (Debian) based distributions I used so far that was resolved by installing ntfs-3g packages and that was it. However, a search through the packages showed no packages available with ntfs in the name and/or description.
So — as usual — I Googled and found the following page in the CentOS wiki: How to mount an NTFS filesystem. The first thing that was indicated is that I should enable the rpmforge repository. Therefore it was suggested to have a look at the page: Installing rpmforge. This page contains clear instructions, summarized the following is required.
First the priorities package needs to be installed. It can be used to enforce ordered protection of repositories, by associating priorities to repositories. It can be installed as root or — as I do — while acting as root.
sudo yum install yum-priorities
After this is installed it has to be confirmed that the /etc/yum/pluginconf.d/priorities.conf file contains the following lines:
[main]
enabled=1
I checked this by opening this file with nano and acting as root with the command:
sudo nano /etc/yum/pluginconf.d/priorities.conf
I did not have to edit the file since the required lines where all installed. Next the /etc/yum.repos.d/.repo file needs to be edited so that the priorities are set. In my case the content is as follows:
[base],[addons],[updates],[extras] ... priority=1
[centosplus],[contrib] ... priority=2
rpmforge ... priority=99
Now that this is done the PGP key for the repo has to be installed, this can be done with the following command:
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
Now you have to download the rpmforge release package that is required for your architecture, therefor download either one of the following:
* i386
* x86_64
For my installation I required the i386 version, so I downloaded it and checked the package with the command:
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
It checked out okay so I installed it with the following command:
sudo rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
After installation I could continue with the installation for NTFS support and as instructed installed the following packages:
yum install fuse fuse-ntfs-3g dkms dkms-fuse
However …. , even after a reboot, I still received the same error when I plugged in the USB stick. So I started up the package manager and searched (again) for ntfs. From the list of packages found I decided to install the following packages:
* dkms-ntfs-2.1.27-2.nodist.rf.noarch
* findntfs-1.3-1.el5.rf.i386
* gnome-vfs2-ntfs-1.13.1-1.el5.rf.i386
* ntfsprogs-1.13.1-1.el5.rf.i386
Which of these packages really solved the issue — my guess is the dkms package — I am not entirely certain, but now my USB stick is recognized and I can browse all directories and files.
CentOS 5.3 USB mounted
CentOS 5.3 USB mounted
Etiquetas:
LINUX
viernes, 3 de julio de 2009
Cambiar formato de archivo windows a formato unix
Cuando intente instalar aqua data studio 6.5 en linux me marco un error ya que no tenia un formato correcto el archivo .sh la solucion era cambiar el formato de este achivo a formato linux con el siguiente comando
dos2unix aquadata.sh
dos2unix aquadata.sh
Etiquetas:
LINUX
Suscribirse a:
Entradas (Atom)