Update server.org
This commit is contained in:
parent
e220e42ac6
commit
2551877f19
134
docs/server.org
134
docs/server.org
|
@ -1,22 +1,16 @@
|
||||||
#+TITLE: Server Configuration
|
#+TITLE: Server Configuration
|
||||||
|
|
||||||
* Pre-preface
|
|
||||||
|
|
||||||
Org-mode is amazing but not great for everyone. I will be migrating
|
|
||||||
these docs into markdown in the future.
|
|
||||||
|
|
||||||
* Preface
|
* Preface
|
||||||
|
|
||||||
This is a literate shell program written. The formatting is pretty
|
This is a literate shell program written. The formatting is pretty
|
||||||
straightforward. You can have documentation and code mixed up and make
|
straightforward. You can have documentation and code mixed up and make
|
||||||
nice PDFs but also spit out code. It's good for public projects. It
|
nice PDFs but also spit out code. It's good for public projects. It
|
||||||
looks okay on Github. I'll set it up so that it automatically exports
|
looks okay on Github.
|
||||||
a companion shell script in time.
|
|
||||||
|
|
||||||
Let's set up a tilde.club server!
|
Let's set up a tilde.club server!
|
||||||
|
|
||||||
* Base machine
|
* Base machine
|
||||||
- A standard unix server, Ubuntu or CentOS.
|
- A standard unix server, Ubuntu or Fedora or Centos.
|
||||||
- [TK explain servers and server math]
|
- [TK explain servers and server math]
|
||||||
|
|
||||||
* TODO Getting started
|
* TODO Getting started
|
||||||
|
@ -28,7 +22,9 @@ First we automatically upgrade the system
|
||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
echo "Installing basics"
|
echo "Installing basics"
|
||||||
yum upgrade
|
dnf update
|
||||||
|
dnf upgrade
|
||||||
|
reboot
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
And we remove Java; it's a beast and it takes a lot of memory and is
|
And we remove Java; it's a beast and it takes a lot of memory and is
|
||||||
|
@ -36,63 +32,50 @@ generally a pretty bad citizen on machines that many people share.
|
||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
echo "Removing java"
|
echo "Removing java"
|
||||||
yum uninstall java
|
dnf uninstall java
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Shells
|
* Shells
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
yum install zsh
|
dnf install zsh
|
||||||
yum install csh
|
dnf install csh
|
||||||
yum-config-manager --add-repo http://fishshell.com/files/linux/RedHat_RHEL-6/fish.release:2.repo
|
dnf install fish
|
||||||
yum install fish
|
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Data
|
* Data
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
yum install rrdtool
|
dnf install rrdtool
|
||||||
yum install jq
|
dnf install jq
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
* Games
|
* Games
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
yum install frotz
|
dnf install frotz
|
||||||
yum install mlmmj
|
dnf install mlmmj
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
I also downloaded and installed nethack. which was a terrible pain and requires much configuration. When we move to Ubuntu it won't be necessary since there's a package so I'm ignoring it for now.
|
|
||||||
|
|
||||||
* Editors
|
* Editors
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
yum install mg vile zile
|
dnf install mg vile zile nano vim
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Usenet
|
* Usenet
|
||||||
Slrn is a pain to get working on CentOS.
|
|
||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
yum install slang slang-devel slang-static slang-slsh
|
dnf install slang slang-devel slang-static slang-slsh
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Then download slrn and do a manual install
|
Then download slrn and do a manual install
|
||||||
|
#+begin_src bash
|
||||||
|
dnf install slrn
|
||||||
|
#+end_src
|
||||||
|
|
||||||
Same with tin
|
Same with tin
|
||||||
|
|
||||||
Download tin and do a manual install
|
|
||||||
No special config
|
|
||||||
|
|
||||||
* Languages
|
|
||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
yum install R
|
dnf install tin
|
||||||
chmod 700 /usr/bin/java*
|
#+end_src
|
||||||
#=end_src bash
|
|
||||||
|
|
||||||
R is a huge, shitty install that requires, like LaTeX. And Java. And
|
|
||||||
AWS wants Java too. Rather than fight the Java virus I just made it
|
|
||||||
700 root.
|
|
||||||
|
|
||||||
|
|
||||||
* Servers
|
* Servers
|
||||||
Now we install servers, which allow client software to connect and
|
Now we install servers, which allow client software to connect and
|
||||||
|
@ -103,59 +86,50 @@ tool that you can use from the web.
|
||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
echo "Installing servers"
|
echo "Installing servers"
|
||||||
echo "1) Webmin"
|
echo "2) nginx"
|
||||||
yum install perl-Net-SSLeay # (so that webmin uses HTTPS rather than HTTP)
|
dnf install nginx
|
||||||
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.710-1.noarch.rpm
|
|
||||||
rpm -U webmin-1.710-1.noarch.rpm
|
|
||||||
echo "2) HTTPD/Apache"
|
|
||||||
yum install httpd
|
|
||||||
echo "3) Unix Talk"
|
echo "3) Unix Talk"
|
||||||
yum install talk-server
|
dnf install talk-server
|
||||||
echo "4) postfix mail server"
|
echo "4) postfix mail server"
|
||||||
yum install postfix
|
dnf install postfix
|
||||||
|
#+end_src
|
||||||
|
echo "5) dovecot IMAP server"
|
||||||
|
dnf install dovecot
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** TODO Is postfix even necessary?
|
|
||||||
|
|
||||||
- [ ] We could just do maildrop.
|
|
||||||
- [ ] I do not know.
|
|
||||||
|
|
||||||
** TODO Log into webmin and set things up?
|
|
||||||
|
|
||||||
* Applications
|
* Applications
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
yum install emacs
|
dnf install emacs
|
||||||
yum install tmux
|
dnf install tmux
|
||||||
yum install htop
|
dnf install htop
|
||||||
yum install elinks
|
dnf install elinks
|
||||||
yum install nail # [?why did I did this]
|
dnf install nail # [?why did I did this]
|
||||||
yum install lynx
|
dnf install lynx
|
||||||
yum install figlet
|
dnf install links
|
||||||
yum install ImageMagick
|
dnf install figlet
|
||||||
yum --enablerepo=epel install -y mosh
|
dnf install ImageMagick
|
||||||
# Irc clients
|
dnf --enablerepo=epel install -y mosh
|
||||||
yum install ScrollZ
|
|
||||||
yum install irssi
|
|
||||||
yum install alpine
|
|
||||||
yum install pico
|
|
||||||
yum install readline
|
|
||||||
yum install tig
|
|
||||||
yum install sbcl
|
|
||||||
yum install fortune-mod
|
|
||||||
yum install tidy
|
|
||||||
yum install jq
|
|
||||||
yum install git-core
|
|
||||||
yum --enablerepo=epel install nodejs
|
|
||||||
yum --enablerepo=epel install npm
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** TODO Figure out mosh ports
|
# Irc clients
|
||||||
** TODO Decided if we want mailman for internal private mailing lists. Probably so!
|
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
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Development Tools
|
* Development Tools
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
yum groupinstall "Development Tools"
|
dnf groupinstall "Development Tools"
|
||||||
yum install gcc
|
dnf install gcc
|
||||||
chmod 700 /usr/bin/gcc*
|
chmod 700 /usr/bin/gcc*
|
||||||
chmod 700 /usr/bin/cc*
|
chmod 700 /usr/bin/cc*
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
Loading…
Reference in New Issue