We are still actively working on the spam issue.

Difference between revisions of "Home server Original"

From InstallGentoo Wiki
Jump to: navigation, search
(Setting Up an SSH Server)
Line 45: Line 45:
 
You can use mumble-server (free), ventrilo or teamspeak (non-free)
 
You can use mumble-server (free), ventrilo or teamspeak (non-free)
  
==Setting Up an SSH Server==
+
== Setting Up an SSH Server ==
===On Windows===
+
 
*Download [http://cygwin.com/install.html Cygwin]
+
=== On [[Windows]] ===
*Choose "Install From Internet"
+
 
*Choose a mirror to download from
+
* Download [http://cygwin.com/install.html Cygwin]
*When you get to the "Select Packages" screen, search SSH
+
* Choose "Install From Internet"
*Choose to install the "Bin" version of the "openssh" package
+
* Choose a mirror to download from
*Download all dependencies and wait for setup to complete
+
* When you get to the "Select Packages" screen, search SSH
*Open Cygwin and wait for the initial setup to complete
+
* Choose to install the "Bin" version of the "openssh" package
*Type "ssh-host-config" without the quotes
+
* Download all dependencies and wait for setup to complete
*Say yes when you get asked about privilege separation
+
* Open Cygwin and wait for the initial setup to complete
*Say yes when asked to create a local user named sshd
+
* Type "ssh-host-config" without the quotes
*Say yes when asked to install sshd as a service
+
* Say yes when you get asked about privilege separation
*When you see "CYGWIN=", type "ntsec tty" without the quotes ([http://www.chinese-watercolor.com/LRP/printsrv/cygwin-sshd.html this guide]explains why)
+
* Say yes when asked to create a local user named sshd
*You should be done now setting up the SSH server. To start it, type "net start sshd" without the quotes.
+
* Say yes when asked to install sshd as a service
 +
* When you see "CYGWIN=", type "ntsec tty" without the quotes ([http://www.chinese-watercolor.com/LRP/printsrv/cygwin-sshd.html this guide]explains why)
 +
* You should be done now setting up the SSH server. To start it, type "net start sshd" without the quotes.
  
 
If you see:
 
If you see:
Line 68: Line 70:
 
Then everything went correctly. If not, you should Google the error.
 
Then everything went correctly. If not, you should Google the error.
  
===On OSX===
+
=== On [[OS X]] ===
 +
 
 
Simply go into sharing permissions and enable fucking everything.
 
Simply go into sharing permissions and enable fucking everything.
  
===GNU or BSD based systems:===
+
=== GNU or BSD based systems ===
1. You usually enable the ssh server during the installation. if possible do this, it is the simplest way of ssh'ing.
 
 
 
2. If you did not setup sshd to auto start you can type /etc/rc.d sshd start
 
 
 
3. If that does not work you need to install sshd, it will be in your package manager.
 
  
 +
1. You usually enable the ssh server during the installation. Do this if possible, it is the simplest way.
  
 +
2. If you did not setup sshd to auto start you can type:
  
 +
:* <code>/etc/rc.d sshd start</code>, if you use System V init.
 +
:* <code>systemctl enable sshd.service && systemctl start sshd</code>, if you use systemd.
  
 +
3. If that does not work, you need to install <code>sshd</code> with your package manager.
  
for Debian, and Debian based distros simply type '''apt-get install ssh.'''
+
=== Post-setup ===
  
===Post-Setup===
+
* Forward port 22 to the server ([http://portforward.com/ Here's a guide if you don't know how])
*Forward port 22 to the server ([http://portforward.com/ Here's a guide if you don't know how])
+
* OPTIONAL: Assign the server an address, so you can type ''server.com'' instead of XXX.XXX.XXX.XXX ([http://lifehacker.com/software/web-publishing/geek-to-live--how-to-assign-a-domain-name-to-your-home-web-server-124804.php Read this])
*OPTIONAL: Assign the server an address, so you can type ''server.com'' instead of XXX.XXX.XXX.XXX ([http://lifehacker.com/software/web-publishing/geek-to-live--how-to-assign-a-domain-name-to-your-home-web-server-124804.php Read this])
 
  
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]

Revision as of 05:19, 17 February 2014

Imbox move.png
Imbox move.png
MOVE CANDIDATE
This page is being proposed to be moved to somewhere else. Relevant discussion may be found on the talk page. Reason: Merge with Setting up a Server

Please note: If you are going to run ANY services that can be accessed from the external internet, beyond the confines of your home, please secure your system per Setting up a Server.

Operating systems

You should run Debian, RHEL or CentOS if you want GNU/Linux, or any *BSD that you like.

Ubuntu usually does retarded things with their packages and versions (lib*-ubuntu1.l2), and pulls unstable software from Debian Sid.

Rolling release distros (Arch, Fedora) are not really good for a server, because it's supposed to stay working, and it shouldn't break/change it's behavior on updates.

Gentoo is usually too much trouble to be worth it, but it's ok.

You should also consider a NAS-centric operating system for a home server - FreeBSD-based FreeNAS or NAS4Free are common choices. Both are free software and have simple GUIs to set up your services.

Centralized storage

One option is to set it up with NFS (Linux-centric, can be used on windows but it's shit) or samba, so you can watch your chinese cartoons on any device and keep your documents/whatever synchronized.

You may want to consider a RAID array for long-term file storage. RAID is not backup, but will protect your files in case of drive failure. NAS4Free allows you to easily set up RAID arrays using UFS or ZFS.

Remote access

Setting up SSH access enables you to:

Tunneling

Create a tunnel and use it as a proxy for environments that block certain DNS requests or pages and to encrypt your data

Wake on LAN

Turn on a PC on your LAN Arch Wiki guide

Web hosting

Host webpages, use nginx or apache debian nginx guide

Proxy

You can use a proxy guide

Compression

Ziproxy (Opera style web compression, including images)

Media automation

Torrenting

Use a daemon like transmission or deluge

TV Series

You can use a daemon like Sickbeard

Movies

You can use a daemon like Couchpotato

Music

You can use a daemon like Headphones

VoIP

You can use mumble-server (free), ventrilo or teamspeak (non-free)

Setting Up an SSH Server

On Windows

  • Download Cygwin
  • Choose "Install From Internet"
  • Choose a mirror to download from
  • When you get to the "Select Packages" screen, search SSH
  • Choose to install the "Bin" version of the "openssh" package
  • Download all dependencies and wait for setup to complete
  • Open Cygwin and wait for the initial setup to complete
  • Type "ssh-host-config" without the quotes
  • Say yes when you get asked about privilege separation
  • Say yes when asked to create a local user named sshd
  • Say yes when asked to install sshd as a service
  • When you see "CYGWIN=", type "ntsec tty" without the quotes (this guideexplains why)
  • You should be done now setting up the SSH server. To start it, type "net start sshd" without the quotes.

If you see:

The CYGWIN sshd service is starting. 
The CYGWIN sshd service was started successfully.

Then everything went correctly. If not, you should Google the error.

On OS X

Simply go into sharing permissions and enable fucking everything.

GNU or BSD based systems

1. You usually enable the ssh server during the installation. Do this if possible, it is the simplest way.

2. If you did not setup sshd to auto start you can type:

  • /etc/rc.d sshd start, if you use System V init.
  • systemctl enable sshd.service && systemctl start sshd, if you use systemd.

3. If that does not work, you need to install sshd with your package manager.

Post-setup