System administration: Difference between revisions

Jump to navigation Jump to search
Line 23: Line 23:
[[Category:System administration]]
[[Category:System administration]]


= System administration =
= Initial setup (for Ubuntu distribution) =


== Initial setup (for Ubuntu distribution) ==
== 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.
Create private/public SSH key file using 2048 bit encryption and with a comment. The command creates files under ~/.ssh folder.
Line 35: Line 33:
</source>
</source>


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


The config file ~/.ssh/config stores information about various SSH connections, and allows the definition of hostname, username, ports, and other settings.
The config file ~/.ssh/config stores information about various SSH connections, and allows the definition of hostname, username, ports, and other settings.
Line 46: Line 44:
</source>
</source>


=== Adding a user to sudoers list ===
== Adding a user to sudoers list ==


<code>#includedir /etc/sudoers.d</code> should be at the end of /etc/sudoers file.
<code>#includedir /etc/sudoers.d</code> should be at the end of /etc/sudoers file.
Line 56: Line 54:
Run <code>$ chmod 0440 filename</code> afterwards.
Run <code>$ chmod 0440 filename</code> afterwards.


=== Enable color prompt ===
== Enable color prompt ==


On Ubuntu distribution of GNU/Linux, you can uncomment force_color_prompt = yes line to use color prompts. The following is my personal favorite color configuration for the prompt.
On Ubuntu distribution of GNU/Linux, you can uncomment force_color_prompt = yes line to use color prompts. The following is my personal favorite color configuration for the prompt.
Line 64: Line 62:
</source>
</source>


=== Enable byobu ===
== Enable byobu ==


<source lang="bash">
<source lang="bash">
Line 70: Line 68:
</source>
</source>


=== Update .vimrc ===
== Update .vimrc ==


<source lang="vim">
<source lang="vim">
Line 101: Line 99:
</source>
</source>


=== Set up environment for web development ===
== Set up environment for web development ==


Install the LAMP stack
Install the LAMP stack
Line 115: Line 113:
</source>
</source>


==== .gitconfig ====
=== .gitconfig ===
<source lang="html5">
<source lang="html5">
[core]
[core]

Navigation menu