Tuesday, November 30, 2010

Network problem : No ipv6 routers

Problem :

I start my computer and i can't connect to internet.
However, if I did : /sbin/ifconfig, I had an ip correct.
I checked the /var/log/messages and I found that message :
kernel No ipv6 routers


Solution :

I desactivate ipv6 by adding the following line : alias net-pf-10 off
in the file /etc/modprobe.conf.

Monday, November 15, 2010

Boinc on Gentoo

I) Installation :


I installed Boinc 6.10.58-r1 :

emerge sci-misc/boinc

I hava no problem with installation but when I execute Boinc, I had some errors (Buffer OverFlow).I searched on the net but I found no answer at my problem.
So for running Boinc on my computer, I went on Bionc Web Site : (http://boinc.berkeley.edu/download_all.php)
I downloaded ./boinc_6.10.58_i686-pc-linux-gnu.sh.
Then I copied as root in /opt/

chmod +x ./boinc_6.10.58_i686-pc-linux-gnu.sh
./boinc_6.10.58_i686-pc-linux-gnu.sh
cd /opt/Boinc/
./run_manager




II) Boinc as a service

If you want install Boinc as a service, see this link : service

Sunday, July 4, 2010

ASUSP5Q PRO : network configuration

If you want that your network work with ASUSP5Q PRO, you have to do the following in your kernel configuration :

make menuconfig
Device Drivers ->  Network Device Support -> Ethernet (1000 Mbits) and check Atheros L1E Gigabits Ethernet Support




Saturday, April 10, 2010

mount boot unknown filesystem type 'ext2'

Problem :


When I execute : mount /boot/, I have the following :
mount: unknown filesystem type 'ext2'

In my /etc/fstab, I have  :
 /dev/sda1               /boot           ext2            defaults        1 2


Solution :


Add a journal to /dev/sda1 :

tune2fs -O has_journal /dev/sda1

Then modify ext2 en ext3 in /etc/fstab.

 /dev/sda1               /boot           ext3            defaults        1 2

So, now you can make a mount : mount /boot




Link : Solution

Saturday, April 3, 2010

Install Google Chrome on Ubuntu 9.10

I've found a post about installing Chrome on Ubuntu.I test it and it works ! So I put it here :


November 2nd, 2009
This post was written when Chrome was still not available for Linux. Chromium was the only option then. Now that Google Chrome is available, just go to Google's website and download the browser directly.






Add to your sources list.
$ sudo gedit /etc/apt/sources.list
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
You may substitute jaunty, intrepid, hoary for other distributions.

Add the GPG keys.(all in one line)
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5

Run an update.
sudo apt-get update

Finally, install Google Chrome.
sudo apt-get install chromium-browser

Tuesday, March 30, 2010

Kde : PackageKit and Proxy

If use PackageKit and you have a proxy, you have to modify a config file :

sudo vi /etc/PackageKit/PackageKit.conf
ProxyHTTP=proxy.XXX:8080

That's all ! Now you can use PackageKit with a proxy.


Saturday, March 27, 2010

Ubuntu : Installation firefox and proxy

Install of firefox under ubuntu is easy.You just have to do :

sudo apt-get install firefox
 
Note : You have to be careful when you write you proxy in the firefox configuration screen.Don't write the http or else it doesn't works !

Tuesday, March 23, 2010

Kubuntu 9.1

Bonjour à tous !

En ce moment au travail, j'utilise Kubuntu 9.1.Par conséquent, je mettrai quelques articles sur les problème que je rencontre dans la rubrique Ubuntu.

Saturday, March 20, 2010

KDE best shortcuts : Grid View

I learn KDE4 shortcuts and I found one very very cool : It 's the grid view : CTRL + F8, CTRL + F9, CTRL + F10.With theses shortcuts, you can see all you desktop in on view, all you windows in one view !
So try it now !

Saturday, March 13, 2010

Su command permission denied

If you write su with the good password on your terminal and you have always the error "permission denied".It's probably because you user have not the group wheel.
So the only thing you have to do is :

gpassw -a user wheel

Why ?

The wheel group is a group which limits the number of people who are able to su to root. This usually consists of a group named “wheel” and a set of users that are permitted to use the utility ’su’ in order to change to root.

Monday, March 8, 2010

User Help on KDE4

To find help about use of KDE 4 you can use the manual.It will show you important link.
For examples, you can see the kde's wiki : wiki

Saturday, March 6, 2010

Failed to emerge www-client/chromium-5.0.307.9

Problem

During update, I have the following problem :

>> Emerging (3 of 7) www-client/chromium-5.0.307.9
 * Fetching files in the background. To view fetch progress, run
 * `tail -f /var/log/emerge-fetch.log` in another terminal.
 * chromium-5.0.307.9.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...            [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * CPV:  www-client/chromium-5.0.307.9
 * REPO: gentoo
 * USE:  elibc_glibc ffmpeg kernel_linux plugins-symlink userland_GNU x86
 * /dev/shm does not have correct permissions.
 * chromium isn't going to work in that configuration.
 * Please run chmod 1777 /dev/shm and try again.
 * ERROR: www-client/chromium-5.0.307.9 failed:
 *   /dev/shm has incorrect permissions
 *
 * Call stack:
 *                   ebuild.sh, line  54:  Called pkg_setup
 *   chromium-5.0.307.9.ebuild, line  56:  Called die
 * The specific snippet of code:
 *              die "/dev/shm has incorrect permissions"
 *
 * If you need support, post the output of 'emerge --info =www-client/chromium-5.0.307.9',
 * the complete build log and the output of 'emerge -pqv =www-client/chromium-5.0.307.9'.
 * The complete build log is located at '/var/tmp/portage/www-client/chromium-5.0.307.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-5.0.307.9/temp/die.env'.
 * S: '/var/tmp/portage/www-client/chromium-5.0.307.9/work/chromium-5.0.307.9'

Solution


The solution is simple but when you begin it's not always easy to see the solution.You just have to read what is write on the screen :

chmod 1777 /dev/shm
emerge -u world

Saturday, February 27, 2010

Linux 2.6.33 released !

New linux kernel version : Annonce
If you want to have more details see : survey


blocks poppler 0.10.7

I make an update of my gentoo and I have the following message that is blocking my update :


 ebuild  N    ] app-text/poppler-0.12.3-r3  USE="abiword cairo jpeg lcms png qt4 utils xpdf-headers -cjk -debug -doc -exceptions -jpeg2k"
[uninstall    ] app-text/poppler-utils-0.10.7
[blocks b     ] app-text/poppler-utils ("app-text/poppler-utils" is blocking app-text/poppler-0.12.3-r3)
[uninstall    ] dev-libs/poppler-0.10.7
[blocks b     ] dev-libs/poppler ("dev-libs/poppler" is blocking app-text/poppler-0.12.3-r3)
[uninstall    ] dev-libs/poppler-qt4-0.10.7
[blocks b     ] dev-libs/poppler-qt4 ("dev-libs/poppler-qt4" is blocking app-text/poppler-0.12.3-r3)










So to resolve it, I simply uninstall the package poppler 0.10.7 and I install the new poppler :


emerge -C app-text/poppler-utils dev-libs/poppler dev-libs/poppler-qt4
emerge app-text/poppler


So now it's work and I can continue my gentoo's update.

Friday, February 26, 2010

lzma-utils xz-utils blocks packages

Problem

During update, you have the following message :

[blocks B     ] app-arch/lzma-utils ("app-arch/lzma-utils" is blocking app-arch/xz-utils-4.999.9_beta)
[blocks B     ] app-arch/xz-utils ("app-arch/xz-utils" is blocking app-arch/lzma-utils-4.32.7)

Solution


I've read on the web that xz-utils replaced lzma-utils so the only thing to do is :

emerge -C app-arch/lzma-utils
emerge -u world



Thursday, February 25, 2010

Help Gentoo and the opensource !

Hello,

If you wan to help Gentoo, you can donate something or buy a gentoo product.Buy a gentoo's product permit to make a donation and to promote Gentoo and furthermore it's cool to have a gentoo's  product !
So there are official's links :

Official store

Spread Shirt

You can go on the gentoo's official web site if you want to see others vendors : Gentoo's official website.

If you have buy gentoo's products and you were happy or sad with theses products.Please tell us in a comment ! It's always good to know which product are good or bad !

My wife has buy to me a gentoo's tee-shirt ... Daaaarling Where have you buy the tee-shirrrt ? I will add the answer .... be patient ... DAAAARRRRLLLIINNNGGGG
So the anwer is Cafe Press.I can tell you that I have no problem and I'm happy whith my tee-shirt

Wednesday, February 24, 2010

Monday, February 22, 2010

Android blog

In this time, I prepare a blog about android.In this blog we will learn together android.I don't know android.So I will learn with you and I will put all my notes on my android blog : androidKillerApps

Friday, February 12, 2010

Apply SDK doesn't work on android eclipse

I've met a small problem during my android installation on Eclipse.
The Apply button has no effect.It was impossible to add an SDK in windows -> preferrences -> android

I can't see something like :


To resolve the problem, I make this :

cd android-sdk-linux/tools/
echo "export PATH=$(pwd):\${PATH}" >> ~/.bashrc
. ~/.bashrc
android update sdk

Then, I've met ssl error ... So I tried with Eclipse.
I go on windows -> Android SDK and AVD Manager
and I click Installed Package then Update All.
I obtain :




When I return windows-> preferrences -> android -> SDK, I have a good result :




Wednesday, January 27, 2010

How to protect your Linux ? netstat and lsof

Netstat

"Netstat" is a tooll we use in defense.It shows existing connexions

netstat -taupe | sort



# netstat -taupe | sort

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode
PID/Program name
tcp 0 0 192.168.0.12:36932 ey-in-f191.1e100.n:http ESTABLISHED toto 11436
4490/firefox-bin
tcp 0 0 192.168.0.1:netbios-ssn *:* LISTEN root 6851 3997/smbd
tcp 0 0 192.168.0.:microsoft-ds *:* LISTEN root 6850 3997/smbd
tcp 0 0 localhost:microsoft-ds *:* LISTEN root 6852 3997/smbd
tcp 0 0 localhost:netbios-ssn *:* LISTEN root 6853 3997/smbd
udp 0 0 *:bootpc *:* root 6576 3856/dhcpcd
udp 0 0 *:netbios-dgm *:* root 6875 4007/nmbd
udp 0 0 *:netbios-ns *:* root 6874 4007/nmbd
udp 0 0 192.168.0.12:netbios-ns *:* root 6878 4007/nmbd

udp 0 0 192.168.0.1:netbios-dgm *:* root 6879 4007/nmb


In my case, i saw that firefox is running and also samba and dhcp.I use samba juste a little so i prefer to stop it.It's better to stop process that you don't use and that you use only sometimes :


# rc-update del samba
* 'samba' removed from the following runlevels: default
# /etc/init.d/samba stop
* samba -> stop: smbd
...
[ ok ]
* samba -> stop: nmbd ...



To have a safe system, a good approach it to stop unused process because a hacker will want to check which process is running to hack them.So if the process is stop, it can't do anything.



lsof

This tool will you show which files is open on your linux



emerge sys-process/lsof

lsof -Pi | sort




# lsof -Pi | sort
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dhcpcd 3856 root 7u IPv4 6576 0t0 UDP *:68

firefox-b 4490 toto 13u IPv4 11436 0t0 TCP 192.168.0.12:36932->ey-in-f191.1e100.net:80
(ESTABLISHED)

nmbd 4007 root 6u IPv4 6874 0t0 UDP *:137

nmbd 4007 root 7u IPv4 6875 0t0 UDP *:138

nmbd 4007 root 8u IPv4 6878 0t0 UDP 192.168.0.12:137

nmbd 4007 root 9u IPv4 6879 0t0 UDP 192.168.0.12:138

smbd 3997 root 19u IPv4 6850 0t0 TCP 192.168.0.12:445 (LISTEN)

smbd 3997 root 20u IPv4 6851 0t0 TCP 192.168.0.12:139 (LISTEN)

smbd 3997 root 21u IPv4 6852 0t0 TCP localhost:445 (LISTEN)

smbd 3997 root 22u IPv4 6853 0t0 TCP localhost:139 (LISTEN)


netstat wikipedia
netstat command

Wednesday, January 20, 2010

How to protect your Linux ? Delete dangerous command

Some tools are known to present security problems.For example rlogin,rsh ...
So you have to delete this package :

emerge -C net-misc/netkit-rsh

You can replace this tool with ssh.You have also ftp package which presents security warnings.It's better to use SCP (cp with ssh).

Wednesday, January 13, 2010

How to protect your Linux ? password

Goal: In this article, we will check that your password are present in the good file and we will test the strength of your password.


Step 1 : Be sure that your password are in the correct file

If you open /etc/passwd, they should be like that
:

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false

daemon:x:2:2:daemon:/sbin:/bin/false

adm:x:3:4:adm:/var/adm:/bin/false

toto:x:500:100::/home/damitux:/bin/bash



The "x" confirms that password are in other file : /etc/shadow.If you didn't see x but some strange characters, you have to use pwconv.


Note : The format of this file is username:password:userid:groupeid:account_name:user_directory:shell


It's /etc/shadow which contents password :

root:$6$/oxwgEtd$8qxL1XfoR5QW7xtduZyaopknIV6ETEBj5fDvGjdPvDO3TYlTRQOQkYvWrJoiPtyjYfYYkgLyJHpT6oq0nAvef.:14583:0:::::

bin:!!:9797:0:::::

daemon:!!:9797:0:::::

toto:$1$u1fuA5jK$wZFULlHT/Sd8FhBv9GZhi1:14213:0:::::0



You can see severeal fields but only two interest us :
- First field contents the user name.

- The second contents the password.


You can note that password begin with $chiffre$.It permits to say which encryption is used :

SHA-512 == $6$

MD5 == $1$

SHA-256 == $5$



Etape 2 : Check password strength

To test your password, you can use John the ripper


emerge app-crypt/johntheripper

unshadow /etc/passwd /etc/shadow > testpwdmd5

john --show testpwdmd5



Note :
- You have to hit enter to check what it's doing.
- When it finishs it writes you user and password if it finds it.
- It will not search root password because the encryption of it is
$6$ SHA-512.So you have to look on web site JohnTheRipper if there are patchs.

How to protect your Linux ?

The goal of these article is to teach you thta you have to do to protect your Linux.In these articles we will answer at questions like :

- What can i check to be sure that my system is safe ?
- Which are services running ? Is that normal ?
- Is there someone on my computer ?
- ...

Thursday, January 7, 2010

Good year

This year we will see Gentoo optimisation, KDE4, Gentoo security and tips and many many things ...

Good year and good Gentoo !