tilde.club/docs/server.org

138 lines
2.6 KiB
Org Mode
Raw Permalink Normal View History

2014-10-02 20:48:32 +00:00
#+TITLE: Server Configuration
2014-10-19 19:36:33 +00:00
2014-10-07 02:24:48 +00:00
* Preface
This is a literate shell program written. The formatting is pretty
straightforward. You can have documentation and code mixed up and make
2014-10-07 02:33:32 +00:00
nice PDFs but also spit out code. It's good for public projects. It
2020-09-22 00:53:20 +00:00
looks okay on Github.
2014-10-07 02:24:48 +00:00
Let's set up a tilde.club server!
2014-10-02 20:48:32 +00:00
* Base machine
2020-09-22 00:53:20 +00:00
- A standard unix server, Ubuntu or Fedora or Centos.
2014-10-07 02:24:48 +00:00
- [TK explain servers and server math]
* TODO Getting started
- [ ] Add apropos descriptions for each application?
We need to start by installing some basics.
First we automatically upgrade the system
#+begin_src bash
echo "Installing basics"
2020-09-22 00:53:20 +00:00
dnf update
dnf upgrade
reboot
2014-10-07 02:24:48 +00:00
#+end_src
And we remove Java; it's a beast and it takes a lot of memory and is
generally a pretty bad citizen on machines that many people share.
#+begin_src bash
echo "Removing java"
2020-09-22 00:53:20 +00:00
dnf uninstall java
2014-10-07 02:24:48 +00:00
#+end_src
2014-10-17 01:47:05 +00:00
* Shells
#+begin_src bash
2020-09-22 00:53:20 +00:00
dnf install zsh
dnf install csh
dnf install fish
2014-10-17 01:47:05 +00:00
#+end_src
* Data
#+begin_src bash
2020-09-22 00:53:20 +00:00
dnf install rrdtool
dnf install jq
2014-10-17 01:47:05 +00:00
#+end_src
* Games
#+begin_src bash
2020-09-22 00:53:20 +00:00
dnf install frotz
dnf install mlmmj
2014-10-17 01:47:05 +00:00
#+end_src
* Editors
#+begin_src bash
2020-09-22 00:53:20 +00:00
dnf install mg vile zile nano vim
2014-10-17 01:47:05 +00:00
#+end_src
* Usenet
#+begin_src bash
2020-09-22 00:53:20 +00:00
dnf install slang slang-devel slang-static slang-slsh
2014-10-17 01:47:05 +00:00
#+end_src
2014-10-19 19:35:27 +00:00
Then download slrn and do a manual install
2020-09-22 00:53:20 +00:00
#+begin_src bash
dnf install slrn
#+end_src
2014-10-19 19:35:27 +00:00
Same with tin
2014-10-19 19:36:33 +00:00
#+begin_src bash
2020-09-22 00:53:20 +00:00
dnf install tin
#+end_src
2014-10-17 01:47:05 +00:00
2014-10-07 02:24:48 +00:00
* Servers
Now we install servers, which allow client software to connect and
issue commands. Each server is like a small computer unto itself.
The first server we fetch is Webmin, which is a systems administration
tool that you can use from the web.
#+begin_src bash
echo "Installing servers"
2020-09-22 00:53:20 +00:00
echo "2) nginx"
dnf install nginx
2014-10-07 02:24:48 +00:00
echo "3) Unix Talk"
2020-09-22 00:53:20 +00:00
dnf install talk-server
2014-10-15 03:31:34 +00:00
echo "4) postfix mail server"
2020-09-22 00:53:20 +00:00
dnf install postfix
echo "5) dovecot IMAP server"
dnf install dovecot
2014-10-07 02:24:48 +00:00
#+end_src
* Applications
#+begin_src bash
2020-09-22 00:53:20 +00:00
dnf install emacs
dnf install tmux
dnf install htop
dnf install elinks
dnf install nail # [?why did I did this]
dnf install lynx
dnf install links
dnf install figlet
dnf install ImageMagick
dnf --enablerepo=epel install -y mosh
2014-10-07 02:24:48 +00:00
# Irc clients
2020-09-22 00:53:20 +00:00
dnf install ScrollZ
dnf install irssi
dnf install alpine
dnf install pico
dnf install readline
dnf install tig
dnf install sbcl
dnf install fortune-mod
dnf install tidy
dnf install jq
dnf install git-core
dnf --enablerepo=epel install nodejs
dnf --enablerepo=epel install npm
2014-10-07 02:24:48 +00:00
#+end_src
* Development Tools
2014-10-11 05:31:17 +00:00
#+begin_src bash
2020-09-22 00:53:20 +00:00
dnf groupinstall "Development Tools"
dnf install gcc
2014-10-07 02:24:48 +00:00
chmod 700 /usr/bin/gcc*
chmod 700 /usr/bin/cc*
2014-10-11 05:31:17 +00:00
#+end_src
2014-10-07 02:24:48 +00:00
* Add other things
2014-10-07 02:24:48 +00:00
- Get the right racket for the box at http://racket-lang.org/download/