When copying a large file on Linux transfer hangs at the end… And you want to f**king kill someone.

There’s an annoying bug in almost every Linux distribution I’ve worked with. When your copying a large file to usb device (pendrive etc.) it hangs at the end (I mean it haaaaaaaaaaaaangs).

I’ve found a solution that works on Elementary and Ubuntu (at least).

Simply paste this two commands in your terminal:

sudo sh -c 'echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes'
sudo sh -c 'echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes'

Add this to some kind of startup script and forget about transfer problems…

How to install Google Chrome and fix the goddamn icon after it?

  1. Navigate to: https://www.google.pl/chrome/browser/desktop/index.html
  2. Download deb file using Download Chrome button.
  3. Run terminal and type:
    cd ~/Downloads
    sudo dpkg -i google-chrome-stable_current_amd64.deb
    sudo apt-get update && sudo apt-get -f upgrade
    
  4. If you don’t have proper icon in your menu nor plank:
    sudo nano /usr/share/applications/google-chrome.desktop
  5. Find [Desktop Action NewWindow] and add text below after all language declarations:
    Icon=google-chrome
  6. Press both CTRL + X and save your changes. That’s it 🙂

How to install Spotify on Loki 0.4.1?

Run terminal and type:

sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-add-repository "deb http://repository.spotify.com stable non-free"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59 D2C19886
sudo apt-get update
sudo apt-get install spotify-client

In case of a problem please comment below. Official instruction can be found here (it was incomplete at the moment of writing).