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 !

Friday, April 19, 2013

CONFIG_DEVTMPFS: is not set when it should be


Problem

emerge  sys-fs/udev

* Messages for package sys-fs/udev-200:

 *   CONFIG_DEVTMPFS:    is not set when it should be.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.


Solution

 You have to check the following  option in your kernel config :

 Device Drivers-> Generic Driver 
* Maintain a devtmpfs filesystem to mount at /dev.  

 For getting the devfs automatically mounted at boot time it makes sense to also enable the option  
* Automount devtmpfs at /dev


Thursday, April 18, 2013

Chromium 26.0.1410.43 Failed

Problème


I tried to build this Chromium version : 26.0.1410.43 but whithout success.



Solution



The only solution I found it's to downgrade package :



 vi /etc/portage/package.mask.
 >www-client/chromium-23.0.1271.97






Merci à http://mindspill.net/computing/linux-notes/gentoo/how-to-downgrade-a-gentoo-package/

Sunday, April 14, 2013

CONFIG_DM_CRYPT: is not set (required for cryptsetup)

Problem

* Messages for package sys-fs/cryptsetup-1.4.3:

*   CONFIG_DM_CRYPT:   is not set (required for cryptsetup)
*
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* This ebuild introduces a new set of scripts and configuration
* than the last version. If you are currently using /etc/conf.d/cryptfs
* then you *MUST* copy your old file to:
* /etc/conf.d/dmcrypt
* Or your encrypted partitions will *NOT* work.
* Please see the example for configuring a LUKS mountpoint
* in /etc/conf.d/dmcrypt
*
* If you are using baselayout-2 then please do:
* rc-update add dmcrypt boot
* This version introduces a command line arguement 'key_timeout'.
* If you want the search for the removable key device to timeout
* after 10 seconds add the following to your bootloader config:
* key_timeout=10
* A timeout of 0 will mean it will wait indefinitely.
*
* Users using cryptsetup-1.0.x (dm-crypt plain) volumes must use
* a compatibility mode when using cryptsetup-1.1.x. This can be
* done by specifying the cipher (-c), key size (-s) and hash (-h).
* For more info, see http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions#6._Issues_with_Specific_Versions_of_cryptsetup


Solution

- Update kernel
- Check device drivers -> Multiple devices driver support (RAID and LVM) -> Crypt target support 
- emerge sys-fs/cryptsetup

See foolowing links :

Saturday, March 9, 2013

sys-apps/sysvinit-2.88-r4" is blocking sys-apps/util-linux-2.22.2


Problème :

emerge -p system
[blocks B      ] <sys-apps/sysvinit-2.88-r4 ("<sys-apps/sysvinit-2.88-r4" is blocking sys-apps/util-linux-2.22.2)


Solution :

It means that older version of sys-apps/sysvinit is blocking sys-apps/util-linux.
So you have to upgrade sys-apps/sysvinit before sys-apps/util-linux.
Or you can make the following :

emerge -uDv1 sysvinit util-linux



See http://forums.gentoo.org/viewtopic-t-952770-start-0-postdays-0-postorder-asc-highlight-.html?sid=39638f320d5e82ad9f36be3479918c87

Tuesday, January 15, 2013

Problem emerging firefox-10.0.11 with libpng


Problem :


I had the following problem when I builded firefox 10.0.11 :

[i]checking for png_get_acTL in -lpng... yes
configure: error: --with-system-png requested but no working libpng found
*** Fix above errors and then restart with               "make -f client.mk build"
make[2]: *** [configure] Error 1
make[2]: Leaving directory `/var/tmp/portage/www-client/firefox-10.0.11/work/mozilla-esr10'
make[1]: *** [obj-i686-pc-linux-gnu/Makefile] Error 2
make[1]: Leaving directory `/var/tmp/portage/www-client/firefox-10.0.11/work/mozilla-esr10'
make: *** [build] Error 2
emake failed
 * ERROR: www-client/firefox-10.0.11 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 7029:  Called die
 * The specific snippet of code:
 *           CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" MOZ_MAKE_FLAGS="${MAKEOPTS}" emake -f client.mk || die "emake failed";
 *
 * If you need support, post the output of `emerge --info '=www-client/firefox-10.0.11'`,
 * the complete build


Solution :

There were a conflict with an old version of libpng.To solve the problem, I had to delete libpng files in  /usr/local/include and /usr/local/lib. Thanks to ssuominen for the solution :  http://forums.gentoo.org/viewtopic-p-7215412.html#7215412

Thursday, January 10, 2013

Enlightenment 0.17 installation

If you want to install the last version of Enlightenment (0.17), you could go on the website of Gentoo-fr.It 's a very good documentation (in french) : http://www.gentoo-fr.org/projects/gentoo-fr/wiki/Enlightenment