blog SSH

Transfer files with SSH from one server to another

Pulling: Let’s say you have a terminal on your host open, you could do:

scp user@ /tmp/files/myfile

This way you are creating a “second tunnel” towards your server.

Pushing: (The other way around) so from your server to your host (essentially it is now a tunnel in your original tunnel):

scp /tmp/myfile user@
blog Let's Encrypt Nginx SSH SSL ubuntu

Quick Secure Nginx with Let’s Encrypt on Ubuntu 14.04

cd /opt/letsencrypt
./letsencrypt-auto certonly -a webroot --webroot-path=/usr/share/nginx/html -d -d
sudo ls -l /etc/letsencrypt/live/your_domain_name
sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
sudo ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/

Set Up Auto Renewal

/opt/letsencrypt/letsencrypt-auto renew
blog Elementary OS Linux

dmg file to iso in terminal

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install dmg2img

Once installed, run the following command:

dmg2img <file_name>.dmg

That will convert the .dmg to ,img file in ISO format. Then just run

mv <file_name>.img <file_name>.iso
blog Elementary OS Linux teamviewer

teamviewer ubuntu

sudo dpkg --add-architecture i386

sudo apt-get update


sudo dpkg -i teamviewer_linux.deb

sudo apt-get install -f
blog Elementary OS Linux

waiting #elementaryos Freya Beta 2

Its been a day 🙂 …waiting #elementaryos Freya Beta 2


blog Linux OS X

WebDev Drive Me Crazy

Again webdev become headache. macbook air freezing with loading screen and  ubuntu helpless.