Tag - linux

linux swap    2017-03-24 14:07:11    59    0    0
Последнее время я предпочитаю создавать swap не в отдельном разделе, а в файле. На мой взгляд, техника стала достаточно мощной и повседневной необходимости в swap-е нет. Linux редко к нему обращается
linux openvpn server    2017-03-22 16:18:59    93    0    0

Привет!

Потребовалось мне недавно поднять OPVN на хостинге, для объединения сетей. Много всякиой литературы перечитал я, но так и не нашел  подходящего решения (то, которое мне понравиться).

Захот

linux lvm    2017-02-03 12:43:23    62    0    0
  1. Решаем сколько создавать loop девайсов, лучше не больше 10 гигов каждый
  2. Создаем сами файлы:
    • dd if=/dev/zero of=share.03.raw bs=100M count=100
      создаст файлик в 10Г 
  3. Создаем из всех ф
linux nginx lets encrypt ubuntu    2017-02-03 12:42:13    104    0    0

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04

 

Introduction

Let's Encrypt is a new Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. It simplifies the process by providing a software client, letsencrypt, that attempts to automate most (if not all) of the required steps. Currently, the entire process of obtaining and installing a certificate is fully automated only on Apache web servers. However, Let's Encrypt can be used to easily obtain a free SSL certificate, which can be installed manually, regardless of your choice of web server software.

In this tutorial, we will show you how to use Let's Encrypt to obtain a free SSL certificate and use it with Nginx on Ubuntu 16.04. We will also show you how to automatically renew your SSL certificate. If you're running a different web server, simply follow your web server's documentation to l

linux ssh    2017-02-03 12:41:40    37    0    0

На компе, с которого будет поключаться делаем:

  1. ssh-keygen -t rsa
  2. копируем данные на удаленный сервер:
    cat ~/.ssh/id_rsa.pub | ssh backup@remotehost.ru -p 3273 "cat >> ~/.ssh/authorized_keys"
    система запросит пароль
  3. проверяем соединение:
    ssh backup@remotehost.ru -p 3273
  4. Радуемся жисти ;)