Free Ubuntu disk space – What’s eating my disk space?

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get install deborphan

sudo deborphan | xargs sudo apt-get -y remove –purge (2 line)

sudo reboot (or from VNC console)


The command du “summarizes disk usage of each FILE, recursively for directories:
du -hs /path/to/directory

Find the top 10 largest files and directories on Ubuntu:
sudo du -a / | sort -n -r | head -n 10

What’s eating my disk space?

should tell you where the space is consumed: sudo du -x -d1 -h /

Cleaning up Ubuntu 14.10,14.04,13.10 system :


Remove “orphaned” packages

If you want to remove orphaned packages you need to install deborphan package.

Install deborphan in Ubuntu

sudo apt-get install deborphan

Using deborphan

Open Your terminal and enter the following command

sudo deborphan | xargs sudo apt-get -y remove –purge


sudo apt-get autoremove

Ubuntu snippet

Disable apache directory browsing in ubuntu:

sudo a2dismod autoindex
sudo service apache2 restart

Sending mail with Laravel



If you use Postfix on your server you have to change  config > mail.php

// ‘driver’ => ‘smtp’,
‘driver’ => ‘sendmail’,

Install Postfix:


Configure Postfix to Use Gmail SMTP on Ubuntu




[php snippet=1]

Create your / Saját építése

I tried out on Ubuntu Server.

Check this tutorial:

You have to install youtube-dl :
sudo apt-get install youtube-dl

If you have problem with running check this link:

sudo youtube-dl -U

sudo easy_install -U youtube-dl

sudo youtube-dl

My test: sudo youtube-dl – f37 --extract-audio --audio-format mp3 -o "/var/www/mp3 folder/%(title)s.%(ext)s"

f37: audo size setting

… You can set url with PHP:

$validLink = validData($_GET['youtubelink']);

$output = shell_exec('youtube-dl --extract-audio --audio-format mp3 -o "/var/www/mp3 folder/file/%(title)s.%(ext)s" '.$validLink );


Mcrypt PHP extension required.


You know:
The Laravel framework has a few system requirements:PHP >= 5.4, MCrypt PHP Extension

I got this error after deployment to the server: “Mcrypt PHP extension required.”


sudo apt-get install php5-mcrypt
sudo php5enmod mcrypt
sudo service apache2 restart