Skip to content

Commit

Permalink
Update netservices.md and installation-guide (#542)
Browse files Browse the repository at this point in the history
* Update netservices.md
Add telnetd section, update wording, add clarifications, and switch steps to GUI as the services config file does not contain those items anyways unless you manually enable the services via the GUI.

* edits to netservices.md and installation guide
To match the partition sizes from the Beta 3 release notes and add a note about 64-bit.
  • Loading branch information
Coldfirex authored Aug 1, 2021
1 parent bb6a18e commit e5b8b66
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion content/get-haiku/installation-guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<h3>Preparing a Partition for Haiku</h3>

<p>Currently, Haiku cannot resize existing partitions; therefore, you either need to already have an empty partition where you can install Haiku, or you need to create one using a third party tool. If your current OS comes with a partitioning tool, try to use that. Otherwise, you can use specialized tools like the freely available <a href="http://gparted.sourceforge.net/livecd.php">GParted LiveCD</a>. A standard install of Haiku requires about 700MB of disk space, so the partition doesn't need to be huge. However, you may want to leave some room for stuff, so 2GB may be an appropriate partition size.</p>
<p>Currently, Haiku cannot resize existing partitions; therefore, you either need to already have an empty partition where you can install Haiku, or you need to create one using a third party tool. If your current OS comes with a partitioning tool, try to use that. Otherwise, you can use specialized tools like the freely available <a href="http://gparted.sourceforge.net/livecd.php">GParted LiveCD</a>. A standard 32-bit install of Haiku requires about 1.3 GiB of disk space (64-bit install is about double), so the partition doesn't need to be huge. However, you may want to leave some room for stuff, so 3 GiB+ is the recommended partition size.</p>

<p>Whenever your disk has multiple partitions, you will also need a boot loader such as <a href="http://www.gnu.org/software/grub/manual/grub.html">GRUB</a> to be able to boot into Haiku (and any other systems that you may have installed in the remaining partitions). In some cases, it is also possible to use the Haiku Boot Manager.</p>

Expand Down
39 changes: 20 additions & 19 deletions content/guides/daily-tasks/netservices.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ date = "2010-05-11T15:29:32.000Z"
tags = []
+++

The basic installation of Haiku contains several standard system network utilities including SSH and Telnet
The basic installation of Haiku contains several standard system network services including an FTP, Telnet, and SSH server.

<h3>Setting your user password</h3>
<p>A good first step is to set the password for your user account, in order to secure your system before opening it to the world.
<p>A good first step is to set the password for your user account (default name is 'user'), in order to secure your system before opening it to the world.

<pre class="terminal">~> passwd
new password:
Expand All @@ -18,29 +18,34 @@ repeat new password:</pre></p>
Haiku's default hostname is shredder. If shredder doesn't resolve, you can simply launch the
<span class='app'>Network</span> preference applet to find your system's network address.
You can change the hostname by editing /system/settings/network/hostname.</div>
<br>

<h3>ftpd - an FTP server daemon</h3>
<h3>ftpd - FTP server daemon</h3>
Haiku can easily be made to listen for incoming FTP connections to serve its files.

<h4>Start ftpd at boot</h4>
<p>Haiku will automatically start its FTP server daemon at boot if you remove the comment hashes (#) from the service ftp section of /boot/system/settings/network/services.
DISCLAIMER: ftpd does not support SFTP or FTPS so network traffic is unencrypted.

<h4>Start ftpd manually</h4>
<p>To start the FTP server daemon manually, simply execute ftpd.</p>
<p>To start the FTP server open the Network preferences, select **`FTP server`** from its list of services and click **`Enable`**.</p>
<br>
<h3>telnetd - Telnet server daemon</h3>
Haiku can easily be made to listen for incoming telnet connections.

<h3>sshd - the secure shell daemon</h3>
DISCLAIMER: telnet traffic is unencrypted.

<p>To start the Telnet server open the Network preferences, select **`Telnet server`** from its list of services and click **`Enable`**.</p>
<br>
<h3>sshd - Secure shell daemon</h3>
SSH is a network protocol that allows for data to be exchanged using a secure channel between two networked devices. The most common use is shell access.

Starting the SSH server daemon in Haiku is easy:
The SSH server daemon is set to start automatically on a default Haiku install, but it does not allow connections until configured.
<ol>
<li>Add the SSH server user: <pre class="terminal">useradd sshd</pre></li>
<li>Edit /system/settings/ssh/sshd_config and add the following option: <pre class="terminal">PermitRootLogin yes</pre></li>
<li>Start the SSH server daemon: <pre class="terminal">/boot/system/bin/sshd</pre></li>
<li>Edit /system/settings/ssh/sshd_config, uncomment the following option, and set the value to yes: <pre class="terminal">PermitRootLogin yes</pre></li>
<li>Restart Haiku or kill the existing sshd process.</li>
</ol>

After starting sshd, we should now be able to verify that the daemon is indeed running:
We should now be able to verify that the daemon is indeed running:
<pre class="terminal">ps | grep sshd | grep -v grep
/boot/system/bin/sshd 237 1 0 0</pre>
/bin/sshd 237 1 0 0</pre>

In the example above, sshd has the process id of 237 and is running. We can now connect to Haiku with the username of 'user' and the password which you set at the beginning of this article:
<pre class="terminal">alex@leenux-desktop:~$ ssh [email protected]
Expand All @@ -49,9 +54,5 @@ [email protected]'s password:
Welcome to the Haiku shell.

~> uname -a
Haiku shredder 1 r36769 May 8 2010 20:58:31 BePC Haiku
~> gcc -v
using priority 5
Reading specs from /packages/gcc-2.95.3_2013_08_15-2/.self/develop/tools/lib/gcc-lib/i586-pc-haiku/2.95.3-haiku-2013_08_15/specs
gcc version 2.95.3-haiku-2013_08_15
Haiku shredder 1 hrev55181+52 Jul 27 2021 08:11: x86_64 x86_64 Haiku
~> </pre>

0 comments on commit e5b8b66

Please sign in to comment.