Saturday, March 8, 2014

Konsole 2.11.3 bug under KDE 4.11.5

Konsole 2.11.3 has an annoying bug.Cursor moved forward some pixel from your line.So, you can't use Konsole ( for any person only ).
That's why I decided to test Guake terminal. To now, I find this simple and it works.

If you want to test it : emerge guake

Sunday, February 16, 2014

Kde-4.11.5 today

Today, I update mygentoo and I saw lot of KDE update : the Kde-4.11.5 version.
Apparently, don't worry about this update :
"This release only contains bugfixes and translation updates and will be a safe and pleasant update for everyone."

See also : http://www.kde.org/announcements/announce-4.11.5.php

Sunday, January 12, 2014

nvidia driver 314.X for Geforce 9800 GT and kernel module

I had some problem with new nvidia-driver (314.X)  and my card Geforce 9800 GT.
So, to avoid problem again, I change the driver.Now, I use the open source driver for nvidia : nouveau
It works and it's easy to configure : http://wiki.gentoo.org/wiki/Nouveau

Sunday, January 5, 2014

kde console and azerty

If you launch your KDE and the console mode is QWERTY, you can easily change it with interface System Configuration of KDE.
Click on Input Devices.Then choose keyboard and go on the Layouts tabs.
Click on the configure layouts checkbox.
Then you have to click Apply.
If you restart your KDE console, the mode should be change.


Note : I used KDE 4.11.2.


Tuesday, December 31, 2013

eth0 does not exist ( renamed in enp2s0 )

I upgraded my gentoo and I had a problem with internet connection.
The following command told me that eth0 didn't exist :

/etc/init.d/net.eth0 restart

I checked if my network card exists by making :

dmsg -v | less

It exists because I had a line similary to:

02:00:00 Ethernet controller : .....

So, I checked all my network interface  :

ls /sys/class/net 

In the result list, there was no eth0 interface. However, there was enp2s0 interface.
I solved my problem by creating a symbolic link ( you could see this good wiki : https://wiki.archlinux.org/index.php/Dhcpcd#Dynamic_IP_address )

ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules

Friday, September 20, 2013

emerge and less

When you use emerge, you want cetainly use less.
But, if you want it work, you have to do the following :

emerge -p system 2>&1 | less

Monday, June 3, 2013

Mysql install on Gentoo

I've tried to install Mysql with emerge but without success. That's why, I install it manually by following the install file in the binary distribution :

  • shell> groupadd mysql
  • shell> useradd -r -g mysql mysql
  • shell> cd /usr/local
  • shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
  • shell> ln -s full-path-to-mysql-VERSION-OS mysql
  • shell> cd mysql
  • shell> chown -R mysql .
  • shell> chgrp -R mysql .
  • shell> scripts/mysql_install_db --user=mysql
I have the following error :

Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

To solve this issue , I install libaio with emerge dev-libs/libaio

  • shell> chown -R root .
  • shell> chown -R mysql data
  • shell> cp support-files/my-medium.cnf /etc/my.cnf
  • shell> bin/mysqld_safe --user=mysql &
In the file monfichier.err which is located in  /usr/local/mysql/data/ I have the following error : Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

I solve the problem with mysql_install_db --user=mysql --ldata=/usr/local/mysql/data/


Note :

I have the same error with :
GRANT ALL ON tbl.* TO 'user'@'localhost' IDENTIFIED BY 'tbl';
==> Error Mysql.User doesn't exist

In fact, I have an old version of Mysql on my computer. So, I unstall it and I type the following :

./scripts/mysql_install_db --user=mysql --ldata=/usr/local/mysql/data/
Installing MySQL system tables...2013-06-03 13:28:20 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2013-06-03 13:28:20 7779 [Note] InnoDB: The InnoDB memory heap is disabled
2013-06-03 13:28:20 7779 [Note] InnoDB: Mutexes and rw_locks use InnoDB's own implementation
2013-06-03 13:28:20 7779 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-06-03 13:28:20 7779 [Note] InnoDB: Using Linux native AIO
2013-06-03 13:28:20 7779 [Note] InnoDB: Not using CPU crc32 instructions
2013-06-03 13:28:20 7779 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2013-06-03 13:28:20 7779 [Note] InnoDB: Completed initialization of buffer pool
2013-06-03 13:28:20 7779 [Note] InnoDB: Highest supported file format is Barracuda.
2013-06-03 13:28:20 7779 [Note] InnoDB: The log sequence numbers 1600614 and 1600614 in ibdata files do not match the log sequence number 1601046 in the ib_logfiles!
2013-06-03 13:28:20 7779 [Note] InnoDB: Database was not shutdown normally!
2013-06-03 13:28:20 7779 [Note] InnoDB: Starting crash recovery.
2013-06-03 13:28:20 7779 [Note] InnoDB: Reading tablespace information from the .ibd files...
2013-06-03 13:28:20 7779 [Note] InnoDB: Restoring possible half-written data pages
2013-06-03 13:28:20 7779 [Note] InnoDB: from the doublewrite buffer...
2013-06-03 13:28:20 7779 [Note] InnoDB: 128 rollback segment(s) are active.
2013-06-03 13:28:20 7779 [Note] InnoDB: Waiting for purge to start
2013-06-03 13:28:20 7779 [Note] InnoDB: 5.6.11 started; log sequence number 1601046
2013-06-03 13:28:24 7779 [Note] Binlog end
2013-06-03 13:28:24 7779 [Note] InnoDB: FTS optimize thread exiting.
2013-06-03 13:28:24 7779 [Note] InnoDB: Starting shutdown...
2013-06-03 13:28:25 7779 [Note] InnoDB: Shutdown completed; log sequence number 1626426
OK

Filling help tables...2013-06-03 13:28:25 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2013-06-03 13:28:25 7804 [Note] InnoDB: The InnoDB memory heap is disabled
2013-06-03 13:28:25 7804 [Note] InnoDB: Mutexes and rw_locks use InnoDB's own implementation
2013-06-03 13:28:25 7804 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-06-03 13:28:25 7804 [Note] InnoDB: Using Linux native AIO
2013-06-03 13:28:25 7804 [Note] InnoDB: Not using CPU crc32 instructions
2013-06-03 13:28:25 7804 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2013-06-03 13:28:25 7804 [Note] InnoDB: Completed initialization of buffer pool
2013-06-03 13:28:25 7804 [Note] InnoDB: Highest supported file format is Barracuda.
2013-06-03 13:28:25 7804 [Note] InnoDB: 128 rollback segment(s) are active.
2013-06-03 13:28:25 7804 [Note] InnoDB: Waiting for purge to start
2013-06-03 13:28:25 7804 [Note] InnoDB: 5.6.11 started; log sequence number 1626426
2013-06-03 13:28:25 7804 [Note] Binlog end
2013-06-03 13:28:25 7804 [Note] InnoDB: FTS optimize thread exiting.
2013-06-03 13:28:25 7804 [Note] InnoDB: Starting shutdown...
2013-06-03 13:28:27 7804 [Note] InnoDB: Shutdown completed; log sequence number 1626436
OK


...
Finished !