Categories
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@192.168.1.100:/tmp/myfile /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@192.168.1.5:/tmp/files/myfile
Categories
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 example.com -d www.example.com
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/example.com.conf /etc/nginx/sites-enabled/example.com.conf

Set Up Auto Renewal

/opt/letsencrypt/letsencrypt-auto renew
Categories
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
Categories
blog Elementary OS Linux teamviewer

teamviewer ubuntu

sudo dpkg --add-architecture i386

sudo apt-get update

wget http://www.teamviewer.com/download/teamviewer_linux.deb

sudo dpkg -i teamviewer_linux.deb

sudo apt-get install -f
Categories
blog Elementary OS Linux

waiting #elementaryos Freya Beta 2

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

v2

Categories
blog Linux OS X

WebDev Drive Me Crazy

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