Sunday, September 29, 2013

[Linux] HOW TO: Compiz in Linux MINT 15.

Hello again!

Today, I show you how to install compiz on your Linux, step by step. It's pretty easy, so let's do this!

(Tested on Linux MINT 15 - MATE 64bit edition)

1) Install compiz!

sudo apt-get install compiz compizconfig-settings-manager compiz-plugins-extra libdecoration0-dev

2) Replace current windowmannager "marco" with "compiz". You have to download dconf-editor:

sudo apt-get install dconf-toolssudo dconf-editor

Now go to org -> mate -> desktop -> session -> required-components. Select "windowmanager" and change it from "marco" to "compiz"

3) Run compiz after startup.

echo "[Desktop Entry]
Exec=compiz --replace
Comment[cs_CZ]=compiz --replace
Comment=compiz --replace" > ~/.config/autostart/compiz.desktop

OR you can manually add command "compiz --replace" into Start-up Applications.

4) Open Compizconfig settings manager(ccsm) and tick everything you want to use. But make sure you tick “window decoration” and “move window” at least! Now go to "gnome compatibility", into commands tab, and replace all gnome-* with mate-*.

5) Reboot. There you go :)

Saturday, September 28, 2013

[Linux] HOW TO: Atheros AR8162, linux drivers. (ALX - Ethernet)

Hi guys! Maybe some of you had problem that your ethernet connection didn't show up in network connection. This should fix it :)

(Tested on Linux MINT 15 - MATE 64bit edition)

Update 6.2.2014: As I noticed that from kernel version 3.10+ drivers not work anymore, I had to update them. In my opinion, those are the ONLY working drivers on kernel > 3.10 at this time! Not found any other fix, or working drivers...

1) Download those drivers.

wget -O- | tar -xz
cd compat-drivers-3.9-rc4-2-su

2) Blacklist old drivers.

sudo sh -c "echo \"blacklist atl1c\" > /etc/modprobe.d/blacklist-ethernet.conf"

3) Select alx driver.

./scripts/driver-select alx

4) Compile and load!

sudo make install
sudo make unload
sudo modprobe alx

5) If not sure, reboot ;)

[Linux] HOW TO: Official NVIDIA drivers installation guide for Optimus graphic cards.

Hello guys, I had a lot of problems, before I managed to install it all properly. So I decided to write this guide for you :)

(Tested on Linux MINT 15 - MATE 64bit edition)

- Xorg   >= 1.13.4
- xrandr >= 1.3.5
- kernel  >= 3.9

UPDATE 9.2.2014: I noticed that this guide is quite deprecated and a lot of people have problems with it. So here is updated guide:

1) Perform a clean install linux.

2) Add repository for X-server updates and install all updates!

sudo apt-add-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get upgrade

3) Update kernel to version 3.9.9

a) for 32bit OS
wget -O
chmod +x
sudo ./
b) for 64bit OS
wget -O
chmod +x
sudo ./

4) Download NVIDIA driver version 319.32 and make it executable. Next add nouveau driver to blacklist!

wget -O
chmod +x
echo "blacklist nouveau" | sudo tee -a /etc/modprobe.d/blacklist-nouveau.conf
sudo update-initramfs -u

5) Download xorg.conf to /etc/X11/ folder.
NOTE: There are already filled PCI numbers! At 90% you have the same, but check it with "lspci | grep vga" and change it, if needed!

sudo wget -O /etc/X11/xorg.conf-new

6) REBOOT system. After boot enter tty1 (Ctrl + Alt + F1). Stop mdm and install NVIDIA drivers.
NOTE: mdm is in Linux MINT. In Ubuntu use gdm instead. In other distributions it can be even lightgdm or kdm.

sudo service mdm stop
sudo ./

7) Move xorg.conf
NOTE: If something goes wrong, and you will have problem running, or this guide will just won't work for you, just remove this xorg.conf file, and reboot. Everything should be OK then.

sudo mv /etc/X11/xorg.conf-new /etc/X11/xorg.conf

8) Get your xrandr IDs. Startx on tty1(you get blackscreen), then switch to tty2 and write down your IDs.

a) tty1:
b) tty2:
xrandr -d :0 --listproviders

You should get output like this:

Provider 0: id: 700 cap: 0x1, Source Output crtcs: 0 outputs: 0 associated providers: 1 name:NVIDIA-0
Provider 1: id: 70 cap: 0x2, Sink Output crtcs: 3 outputs: 4 associated providers: 1 name:modesetting

as you can see, my IDs are 700 for NVIDIA and 70 for intel.

9) Create file .xseesionrc, make it executable and open it for edditing.

touch .xsessionrc
chmod +x .xsessionrc
nano .xsessionrc

10) Write those line into .xsessionrc, but replace my IDs with yours!

xrandr --setprovideroutputsource 70 700
xrandr --auto

11) Now, when you restart, you should get black screen, don't worry there is login screen, so just wait for a sec, write your login, wait another sec, write you pass and hit enter. Now you should see desktop.

Thats it!

To check if NVIDIA is running:

inxi -GSx

you should see something like this:

X.Org: 1.13.4 driver: nvidia Resolution: 1366x768@60.0hz
             GLX Renderer: GeForce GT 630M/PCIe/SSE2 GLX Version: 4.3.0 NVIDIA 325.15 Direct Rendering: Yes
Please let me know, if something goes wrong :)