Sunday, August 30, 2009

#yahoo 9 and wine on #ubuntu #jaunty x64

I wanted to test if yahoo mess starts with wine , I saw that on winedb is getting close to bronze medal
Well i updated my wine to latest 1.1.28 , all the setup went ok and the login to only when i try to write a message it crashes quite baddly (seems some not implemented yet functions)

http://paste.ubuntu.com/262184/


Ps:Seems that winehq repository seems to be down for about 2 days , I used the ppa wine from ubuntu

Tuesday, August 25, 2009

Tell me that centos doesn't suck on desktop

do you want gnome > 2.22 as required by some software please be prepared to compile gnome with garnome
And i'm not the only one that knows that sucks on the desktop side
Here is what Caitlyn Martin has to say
"Look, stop trying to convince me. I've removed CentOS from my netbook and I'm about to explain why. As far as I am concerned it's good riddance to bad rubbish. CentOS is a wonderful server OS clone. On the desktop I have no use for it."



18 Years ago Linus started the Revolution

Do you Remember 18 years ago when Linux was conceived? , and look now the biggest threat to Microsoft. Finally it has grown up! http://www.wired.com/thisdayintech/2009/08/0825-torvalds-starts-linux I just can wisper some words to them : Ubuntu , Android , Netbooks (yah they defeated us on that one) , Nokia Maemo , PalmOS ... Ohh and i forgot Google . I still can read and run the assemmbler/C code from linux 0.0.1 and the starting point code was good in the sense that it worked and it was inspired by good concepts from Unix , Of course linux is not unix is something else alive and with good future.It's funny to read the comments about the portability and that it works only on his 386/harddrive , Look now i have an Android phone with Linux on and i'm free to modify it and do whatever is in my mind no one stops, try that with Iphone or windows CE devies . It's all about the freedom to hack (in good sense) and give back

Friday, August 14, 2009

The Designos Now in HQ

The designos - a fake trailer for a real design department, showcasing wiseguys that ain't afraid to get down and dirty with the photoshop

Here is the reea's design team :) watch them how they are working
The Designos from 2007 now in HQ

Thursday, August 13, 2009

Mysql 5.1.x from source on Ubuntu Jaunty Server x64

I needed to run mysql5.1.x compiled from source , the version from ubuntu is old 5.0.x
and for this i had to do following steps
Follow the download link for mysql

http://dev.mysql.com/downloads/mysql/5.1.html#source

$ sudo apt-get build-dep mysql-server

Download the last source code archives for the mysql :
$ wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.37.tar.gz/from/http://gd.tuwien.ac.at/db/mysql/


$ tar -zxf mysql-5.1.37.tar.gz


$ sudo ./configure --prefix=/opt/mysql5.1.x --localstatedir=/opt/mysql5.1.x --with-plugins=innobase --without-debug --with-mysqld-user=mysql --with-unix-socket-path=/tmp/mysql5.1.x.sock

Create a non-privileged group and user for the database server, as below:

$ sudo groupadd mysql
$ sudo useradd -g mysql mysql

count the number of cpus you have

$ cat /proc/cpuinfo | grep -c processor

4 is in my case (quad core) so i will use it for make argument

$ make -j4

Create data directory and set the right permission on it:

sudo mkdir -p /var/lib/mysql5.1.x
sudo chown mysql.mysql /var/lib/mysql5.1.x

sudo make install
cd /opt/mysql5.1.x/bin/


sudo ./mysql_install_db --datadir=/var/lib/mysql5.1.x --user=mysql

Copy the init script from to the source directory mysql-5.1.37

sudo cp support-files/mysql.server /etc/init.d/mysql-5.1.x

modify this variable
datadir=/var/lib/mysql5.1.x
in the start-up script

$sudo pico /etc/init.d/mysql-5.1.x

add the script at startup

$ cd /etc/init.d
$ sudo chmod +x mysql-5.1.x
$ sudo update-rc.d mysql-5.1.x defaults

Start mysql server
$sudo /etc/init.d/mysql-5.1.x start

Connect to mysql server
/opt/mysql5.1.x/bin/mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.37 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>


Set password for root user

/opt/mysql5.1.x/bin/mysql -u root
mysql> UPDATE mysql.user SET Password = PASSWORD('newpwd')
-> WHERE User = 'root';
mysql> FLUSH PRIVILEGES;


Remove the anonymous accounts

mysql> use mysql
mysql> delete from user where user='';

Tuesday, August 11, 2009

sorting directories by disk usage

I needed to sort directories by disk usage using du and sort , but there was a problem with dirs that start with "-"

$du -s *

gives this error "du: invalid option --"

So i had to put the directory list result in a file:

$ find . -maxdepth 1 -type d -name '*' -print0 >file_list.lst

then i used the --files0-from

$ du -sm --files0-from file_list.lst | sort -n

seems that i needed to show the timestamp --time and maybe to exclude the "thumbs.db" from the report --exclude="thumbs.db"

$ du -sm --exclude="thumbs.db" --time --files0-from file_list.lst | sort -n