Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: haiku/website
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bb6a18e84537
Choose a base ref
...
head repository: haiku/website
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e5b8b66660aa
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Aug 1, 2021

  1. Update netservices.md and installation-guide (#542)

    * 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.
    Coldfirex authored Aug 1, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e5b8b66 View commit details
Showing with 21 additions and 20 deletions.
  1. +1 −1 content/get-haiku/installation-guide.html
  2. +20 −19 content/guides/daily-tasks/netservices.md
2 changes: 1 addition & 1 deletion content/get-haiku/installation-guide.html
Original file line number Diff line number Diff line change
@@ -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>

39 changes: 20 additions & 19 deletions content/guides/daily-tasks/netservices.md
Original file line number Diff line number Diff line change
@@ -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:
@@ -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 user@192.168.1.200
@@ -49,9 +54,5 @@ user@192.168.1.200'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>