Ubuntu Server Guide Changes, errors and bugs


Prepare client config for bridging


Download 1.27 Mb.
Pdf ko'rish
bet181/286
Sana20.12.2022
Hajmi1.27 Mb.
#1035308
1   ...   177   178   179   180   181   182   183   184   ...   286
Bog'liq
ubuntu-server-guide

Prepare client config for bridging
The only difference on the client side for bridged mode to what was
outlined above is that you need to edit /etc/openvpn/client.conf and set tap mode:
dev tap
; dev tun
Finally, restart openvpn:
sudo s y s t e m c t l r e s t a r t o p e n v p n @ c l i e n t
You should now be able to connect to the full remote LAN through the VPN.
References
• EasyRSA
• OpenVPN quick start guide
• Snap’ed version of openvpn easy-openvpn
• Debians OpenVPN Guide
220


Installing a gitolite server
Gitolite provides a traditional source control management server for git, with multiple users and access rights
management. gitolite can be installed with the following command:
sudo apt i n s t a l l g i t o l i t e 3
Gitolite configuration
Configuration of the gitolite server is a little different that most other servers on Unix-like systems, in that
gitolite stores its configuration in a git repository rather than in files in /etc/. The first step to configuring
a new installation is therefore to allow access to the configuration repository.
First of all, let’s create a user for gitolite to use for the service:
sudo a ddu ser −−system −− s h e l l / b i n / bash −−group −−d i s a b l e d −password −−home /
home/ g i t g i t
Now we want to let gitolite know about the repository administrator’s public SSH key. This assumes that the
current user is the repository administrator. If you have not yet configured an SSH key, refer to openssh-keys
in this manual.
cp ~ / . s s h / i d _ r s a . pub /tmp/ $ ( whoami ) . pub
Let’s switch to the git user and import the administrator’s key into gitolite.
sudo su − g i t
g l −s e t u p /tmp / * . pub
Gitolite will allow you to make initial changes to its configuration file during the setup process. You can now
clone and modify the gitolite configuration repository from your administrator user (the user whose public
SSH key you imported). Switch back to that user, then clone the configuration repository:
e x i t
g i t c l o n e git@$IP_ADDRESS : g i t o l i t e −admin . g i t
cd g i t o l i t e −admin
The gitolite-admin contains two subdirectories, “conf” and “keydir”. The configuration files are in the conf
dir, and the keydir directory contains the list of user’s public SSH keys.

Download 1.27 Mb.

Do'stlaringiz bilan baham:
1   ...   177   178   179   180   181   182   183   184   ...   286




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling