sexta-feira, 29 de maio de 2009
Gnome com cara do XP
Link:
- Download - http://ubuntu.online02.com/files/XpGnome.tar.gz
terça-feira, 27 de janeiro de 2009
MySQL: “Access denied for user ‘debian-sys-maint’@'localhost’”
For all you Ubuntu/MySQL developers out there, have you ever seen the following?
- $ sudo /etc/init.d/mysql restart
* Stopping MySQL database server mysqld [fail]
* Starting MySQL database server mysqld [ OK ]
/usr/bin/mysqladmin: connect to server at ‘localhost’ failed
error: ‘Access denied for user ‘debian-sys-maint’@'localhost’ (using password: YES)’
So, what is this “debian-sys-maint” user? Well, this MySQL user is created for the Ubuntu to be able to start/stop the database and to carry out other maintenance operations.
Sounds well enough, but then why do I keep running into the “access denied” problem for this user? Well, the issue is that with each update to MySQL, the user’s password in the database is overwritten. Ubuntu seems to go to the file /etc/mysql/debian.cnf in order to find this user’s password, but obviously the password is out of sync after the update has been applied.
As a result of this behaviour, I’ll run into the “access denied” problem every so often. Thankfully, the solution to this issue is fairly simple.
First, list the contents of the /etc/mysql/debian.cnf file:
- $ sudo cat /etc/mysql/debian.cnf
The contents of the file should look something like the following:
- # Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = n4aSHUP04s1J32X5
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
user = debian-sys-maint
password = n4aSHUP04s1J32X5
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
See that password? That’s what we’re looking for!
Next, we want to issue a command to MySQL that tells it to grant the debian-sys-maint user all necessary privileges using the new password.
Login to your mysql server using your root account and the root password you had originally set:
- $ mysql -u root -p
Issue the GRANT command now to grant those permissions:
- mysql> GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY 'n4aSHUP04s1J32X5';
If you restart MySQL, you’ll find that you should no longer be getting the “access denied” error message.
- $ sudo /etc/init.d/mysql restart
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.
segunda-feira, 19 de janeiro de 2009
Liberar o MySql para conexões externas no Linux
- Para alterar o IP é preciso é preciso configurar o arquivo my.cnf:
$ sudo gedit /etc/mysql/my.cnf
- Encontre a linha bind-address e substitua o IP 127.0.0.1 pelo IP do seu servidor(ip do PC que esta instalado o Mysql).
- Reinicie o mysql:
$ sudo /etc/init.d/mysql restart
- Pronto, agora podemos acessar o banco de dados Mysql de um outro PC na rede
terça-feira, 6 de janeiro de 2009
Como gerar senhas MD5 no Linux
$ echo -n "senha" | md5sum
NautilusSVN - cliente SVN para LINUX equivalente ao TORTOISESVN
- Checkout
- Commit
- Revert
- Diff (usando Meld ou gvimdiff)
- Log Viewer
- Revision e SVN User por colunas
- Ícones que mostram status (embora muito beta)
- Autenticação SSL (embora muito beta)
- Username e password com caixa de diálogo
- Propriedades editáveis
Quer saber mais sobre o projeto, acesse:
http://code.google.com/p/nautilussvn/
Para instalação, acesse:
segunda-feira, 5 de janeiro de 2009
Reinstalar grub apos instalacao do windows
$ sudo grub
grub> root (hd0,1) # lugar onde estah o menu.lst
grub> setup (hd0) # lugar para instalar o grub
grub> exit
domingo, 4 de janeiro de 2009
MySQL Workbench no Ubuntu 8.04
Adicione as 2 linhas em seu sources.list:
$ sudo gedit /etc/apt/sources.list
deb ftp://ftp.mysql.com/pub/mysql/download/gui-tools/ubuntu/ binary/
deb-src ftp://ftp.mysql.com/pub/mysql/download/gui-tools/ubuntu/ source/
Atualize os pacotes:
$ sudo apt-get update
Faça a instalação:
$ sudo apt-get install mysql-workbenche pronto, ele já deve estar disponível.
segunda-feira, 29 de dezembro de 2008
Aumentar tempo da sessão do Phpmyadmin
$cfg['LoginCookieValidity'] = 7200;
neste caso o valor é alterad para 7200 segundo.
Instalar LAMP no Ubuntu
Mysql:
$ sudo apt-get install mysql-server mysql-client libmysqlclient15-dev
Apache php:
$ sudo apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
Modulos php:
$ sudo apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl phpmyadmin
Teclado Banco do Brasil (BB) no Ubuntu 8.04
$ sudo apt-get remove openjdk-6*
$ sudo apt-get install sun-java6-plugin sun-java6-jre
Dual head Ubuntu 8.04
Abra um terminal e digite:
$ sudo displayconfig-gtk
Na aba tela selecione a tela 2 e configure da maneira que achar melhor(a direita, resolução e etc).
Reinicie o X (ctrl + alt + backspace)
Pode ser que sua tela principal fique com resolução errada. Volte ao displayconfig-gtk ou edite manualmente o arquivo /etc/X11/xorg.conf