Oct 2, 2009

Como entrar em contato com o Mercadolivre

O Mercadolivre é um bom local para se vender de tudo. Porém o serviço de atendimento é desrespeitoso. É impossível falar com eles e isso é assim de propósito.

Achei um formulário de contato no site. O endereço é:
http://www.mercadolivre.com.br/jm/ml.faqs.portalFaqs.FaqsController?axn=frmContact&faqId=6031&categId=PDEN

Vale a pena ligar para o 0800-8911897 só pra criar algum transtorno. É o telefone de uma empresa que presta serviço de cobrança para o MercadoLivre. Eles devem receber ligações de pessoas iradas porque nem o nome eles dizem. Veja o meu roteiro para pertubá-los. Sendo muito educado e polido, fale com a voz mais macia que você tiver:
1 - Ligue o 0800-8911897
2 - Pergunte o nome do atendente
3 - Pergunte o nome da empresa
4 - Pergunte como entrar em contato com o Mercadolivre. O atendente vai te dizer que tem um formulário no site.
5 - Peça ajuda ao atendente. Diga que você já encontrou o formulário mas que não há forma de entrar em contato. O atendente vai te dar alguma ajuda.
6 - Pergunte como a empresa do atendente entra em contato com o Mercadolivre.
7 - Peça uma sugestão sobre o que você deve fazer para entrar em contato com o Mercadolivre.

Se umas 500 pessoas seguirem este roteiro todos os dias, talvez alguma coisa mude.

Jun 25, 2009

Installing Sunray II server software on Centos 5.3

I spent many weeks trying to install Sunray server software on Linux.

I was NOT able to make it work with Centos 5.3 x86_64. Maybe this is related somehow to GDM package but it did not work.

It worked when using i386 version of Centos.

See the step by step guide.

1 - Install Centos 5.3 i386
1.1 - If you have more than 3GB of installed RAM, run as root: yum -y install kernel-PAE

2 - Run as root:
yum -y update
reboot

3 - Download:
srss_4.1_linux.zip from http://www.sun.com/software/sunray/getit.jsp
jre-6u13-linux-i586-rpm.bin from http://www.java.com
apache-tomcat-5.5.27.tar.gz from http://tomcat.apache.org/

4 - run as root:
yum install glib dhcp openldap-clients openldap tftp-server libXp openmotif22 openssl compat-libstdc++-33 libusb-devel compat-openldap
yum groupinstall "Development Tools"
yum install kernel-devel

5 - run as root:
cd /usr/lib
ln -sf libldap-2.3.so.0.2.31 libldap.so.199
ln -sf libgdbm.so.2.0.0 libgdbm.so.3
ln -sf liblber-2.3.so.0.2.31 liblber.so.199

6 - install jre that you have downloaded. Run as root:
sh jre-6u13-linux-i586-rpm.bin

7 - install tomcat that you have downloaded. Run as root:
cd /opt
tar xvzf apache-tomcat-5.5.27.tar.gz
ln -sf apache-tomcat-5.5.27 apache-tomcat

8 - Add tomcat as a service. copy and past above code to /etc/init.d/tomcat

#!/bin/sh
#
# Tomcat Server
#
# chkconfig: 345 96 30
# description: Java servlet container

JAVA_HOME=/usr/java/latest/

PATH=${JAVA_HOME}/bin:${PATH}

TOMCAT_START=/opt/apache-tomcat/bin/startup.sh

TOMCAT_STOP=/opt/apache-tomcat/bin/shutdown.sh

export JAVA_HOME PATH

start()
{
if [ -x ${TOMCAT_START} ]; then
echo "Starting tomcat server..."
${TOMCAT_START} &
else
echo "Cannot start tomcat server"
fi
}

stop()
{
if [ -x ${TOMCAT_STOP} ]; then
echo "Stopping tomcat server..."
${TOMCAT_STOP} &
else
echo "Cannot stop tomcat server"
fi
}

restart()
{
stop
sleep 10
start
}

status()
{
echo "No status available for tomcat server"
}

case "$1" in
'start')
start
;;
'stop')
stop
;;
'restart')
restart
;;
'status')
status
;;
*)
echo "Please supply an argument [start|stop|restart]"
esac

9 - To complete tomcat installation, do not forget to:
chmod +x /etc/init.d/tomcat
chkconfig tomcat on
service tomcat start

10 - Unzip the Sunray Server Software that you have downloaded:
unzip srss_4.1_linux.zip
cd srss_4.1
./utinstall
reboot

11 - First Sunray Server Software configuration step:
cd /opt/SUNWut/sbin
./utconfig
reboot

12 - Second Sunray Server Software configuration step:
This is the only dificult step. The utadm uses a logic that I haven't understood about /etc/hosts. The only way to make it works on my scenario is to edit /etc/hosts before running utadm.

The trick is to add an entry to /etc/hosts that contain the real ip address of your server and to comment the 127.0.0.1 entry. See the example above:

Before editing:
vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost #Comment this line
::1 localhost6.localdomain6 localhost6

After editing:
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
10.0.0.115 localhost localhost.localdomain

Now just run as root:

cd /opt/SUNWut/sbin
./utadm -a eth0

And undo the changes YOU MADE on /etc/hosts. Do not remove the line added by utadm. See how it should look like after you undo your changes:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
#10.0.0.115 localhost localhost.localdomain
192.168.128.1 localhost-eth0.localdomain # SUNRAY ADD - DO NOT MODIFY

Now run as root: reboot

And enjoy it.

May 17, 2009

Download Centos DVD iso

Looking for a place to download Centos DVD iso without bittorrent?

Check: http://mirror.switch.ch/ftp/mirror/centos/

Click on the desired version, then on isos, and choose the arch.

For example version 5.3 dvd isos are at:
http://mirror.switch.ch/ftp/mirror/centos/5.3/isos/i386/CentOS-5.3-i386-bin-DVD.iso
http://mirror.switch.ch/ftp/mirror/centos/5.3/isos/x86_64/CentOS-5.3-x86_64-bin-DVD.iso

Apr 5, 2009

Installing Moodle on Centos 5

I assume that both apache(http) and mysql(database) are on the same server. This is not needed.

1 - Go to moodle.org and download latest moodle*.tgz.
cd /tmp
wget http://download.moodle.org/stable19/moodle-weekly-19.tgz #Do not use this link. Get latest file from http://www.moodle.org/

2 - As root:
yum install php php-mysql httpd mysqlclient10 mysql-server php-gd php-mbstring php-xmlrpc

3 - If your mysql installation is fresh, you will need to assign a root password to it.

service mysqld start

/usr/bin/mysqladmin -u root password 'newpassword'

may assign newpassword as the new mysql root password. Replace newpassword to a safer password.

4 - Start services and be sure that it will be started automatically.
service httpd start
service mysqld start
chkconfig httpd on
chkconfig mysqld on

5 - Create a user moodle with a good password that has all privileges on the table moodle. I suggest that you download and install PhpMyAdmin to do it. Try the latest 2.xx.x.x version as it will work on Centos 5. To use PhpMyAdmin, you will need to create a file named config.inc.php inside PhpMyAdmin instalation folder (/var/www/html/phpmyadmin) with mysql information like root password defined on step 3.

config.inc.php example:

<?
$i = 1;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'newpassword';
?>

After configure PhpMyAdmin, open your favorite browser, point to PhpMyAdmin installation path and:

Privileges -> Add a new user -> Fill the form -> Click on "Create database with same name and grant all privileges" -> Go

Be sure to protect the access to your PhpMyAdmin as it will probably grant root access to anyone that knows its URL. It is a good idea to remove the entire directory after all is working as it is very easy to install it back. Password protect the directory may be good idea too.

6 - Extract files from moodle*.tgz at /var/www/html/moodle.
mkdir /var/www/html/moodle
cd /var/www/html/moodle
tar xvzf /tmp/moodle-weekly-19.tgz

7 - Start your favorite browser and point to your server /moodle directory. Follow installation instructions.