linux

When you are running out of space on your server

an easy way to extend your disc space on VM

…in most cases you have 2 options. Because we are living in Cloud and VPS era – it’s not a big deal. You can always bump up your volume and after while you can enjoy bigger more expensive instance with more space. But sometimes you need just a space for a while or… just something for a backup ? You can always use s3cmd , gsutil or another tool. Imagine that you have just regular folder on your drive, with almost unlimited space.
FFmpeg on AMI Linux and CentOS the easy way

FFmpeg on AMI Linux and CentOS the easy way

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. All you need to do is just install one more repository: http://rpmfusion.org/Configuration wget http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm sudo rpm -Uhv rpmfusion-free-release-6-1.noarch.rpm wget http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm sudo rpm -Uhv rpmfusion-nonfree-release-6-1.noarch.rpm sudo yum install ffmpeg Done. ffmpeg version 0.10.15 Copyright (c) 2000-2014 the FFmpeg developers built on Aug 30 2014 15:49:19 with gcc 4.4.7 20120313 (Red Hat 4.4.7-3) Obviously there is no fun with FFmpeg if you don’t have anything to convert.
PHP 5.4.x on CentOS 6.5

PHP 5.4.x on CentOS 6.5

Quick copy and paste list of commands to get PHP 5.4 on CentOS boxes wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm Enable remi repo sudo nano /etc/yum.repos.d/remi.repo Update sudo yum update sudo yum info php Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirror.optus.net * epel: fedora.mirror.serversaustralia.com.au * extras: ftp.swin.edu.au * remi: remi.kazukioishi.net * updates: ftp.swin.edu.au Available Packages Name : php Arch : x86_64 Version : 5.
Sending emails from commandline

Sending emails from commandline

Pretty easy but annoying task. Especially when you want to send email using specific SMTP server, or from GMAIL using SSL or add some attachment, or send RAW emails. Solution is there – mailsend . Extremely simple command line tool for Linux, Mac OS X and even Windows ;). Compile / download binary and you can enjoy freedom of sending emails from command line.

CentoOS 7 NFS support

CentoOS 7 NFS support

CentOS is pretty new, and some default stuff is just missing. Like NFS suport out of the box. We have to install package called nfs-utils yum -y install nfs-utils we can mount using standard mount 192.168.1.15:/c/share mount -a to make it parmament edit /etc/fstab 192.168.1.15:/c/share /mnt/nfs nfs defaults 0 0