• How to setup L2TP over IPSec VPN server (Ubuntu 16.04 – 20.04)

    How to setup L2TP over IPSec VPN server (Ubuntu 16.04)

    # (optional, need to check ) apt-get install ppp libgmp3-dev bison flex

    Edit /etc/ipsec.conf

    Edit /etc/ipsec.secrets

    Edit /etc/ppp/options.xl2tpd

    Edit /etc/xl2tpd/xl2tpd.conf

    And finally add password to the /etc/ppp/chap-secrets file

    Everything should work fine!

    Upd. 2022.01


  • lxd and adjusting size of root device

    That’s normal. With LXD 2.9 and the storage pool changes, LXD stopped generating automatic «root» devices for the containers, instead relying on inheritance from the default profile.

    So in LXD < 2.9, every container had a local «root» device which you could then set properties directly on. With those LXD versions, adding a «root» device to your default profile would be entirely ignored as all containers would override it.

    In LXD > 2.9, containers don’t have any devices by default, they instead rely on inheritance. Meaning that if you want to override it, you have to add a new device to the container with the same name so that it overrides the one coming from the profiles.

    «lxc config show NAME» vs ” lxc config show –expanded NAME ” is pretty useful to see how this all works.

    © https://discuss.linuxcontainers.org/u/stgraber


  • macOs / Linux ssh autocomplete hint


  • ubuntu git install and tips

    # update packages

    # install gitolite server

    # rename (not necessary) user gitolite3 to git

    # clone git admin dir to your home account

    # make changes in gitolite.conf — add new repo

    # show status

    # add files to repo

    # commit your changes

    # for use simple git push

    # push changes to repo

    All done, your repo is ready.

    Now go to dir with your app.

    # initialize dir for git

    # add url of «remote» repo

    # check it

    # commit and push your repo

    # clone repo on desktop


  • chroot ssh linux user

    /etc/ssh/sshd_config:

    /etc/passwd: