System administration: Difference between revisions

Tag: visualeditor-switched
Line 30: Line 30:


= Initial setup (for Ubuntu distribution) =
= Initial setup (for Ubuntu distribution) =
== Composer ==
{{testedon|2022-10-08|Ubuntu 22.04.1 LTS}}
Composer is a PHP package management tool.  Usually needed for setting up web application development environment.
<source lang="console">
$ cd
$ mkdir bin
$ cd bin
$ wget https://private.michaelhan.net/getcomposer.txt
$ mv getcomposer.txt getcomposer
$ chmod u+x getcomposer
$ ./getcomposer
$ mv composer.phar composer
</source>


== SSH keys ==
== SSH keys ==


Create private/public SSH key file using 2048 bit encryption and with a comment. The command creates files under ~/.ssh folder.
{{testedon|2022-10-08|Ubuntu 22.04.1 LTS}}
 
Create private/public SSH key file using the default bit encryption and with a comment. The command creates files under ~/.ssh folder.


<source lang="bash">
<source lang="bash">
$ ssh-keygen -b 2048 -C user@host.domain
$ ssh-keygen -C user@host.domain
</source>
</source>


== SSH config for connection ==
== SSH config for connection ==