Kronosnet: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
Line 19: Line 19:
make install
make install
</source>
</source>
Create a user and group for kronosnet to run as.
<source lang="bash">
groupadd -r kronosnetadm
groupmems -g kronosnetadm -a root
useradd kronosnet -b /etc -M -r -s /bin/bash -g kronosnetadm
</source>
Set a password for the new <span class="code">kronosnet</span>.
<source lang="bash">
passwd kronosnet
</source>
<source lang="text">
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
</source>
For the sake of this tutorial, we'll use the password <span class="code">justatest</span>.


= Configure =
= Configure =
Create the following file.
<source lang="bash">
vim /etc/pam.d/kronosnet
</source>
<source lang="text">
#%PAM-1.0
auth      include password-auth
account    required pam_nologin.so
account    include password-auth
session    include password-auth
</source>
= Run the Daemon =
There is currently no <span class="code">init.d</span> script for <span class="code">kronosnetd</span>, so it will need to be started manually.
<source lang="bash">
kronosnetd
</source>
There is no output from that command, and it will daemonized and return you to the shell. You can check that it is running with <span class="code">ps</span>.
= Network Setup =
In this tutorial, we'll use four nodes, each with three network cards.
* an-node03
* an-node04
* an-node05
* an-node06
To log in for the first time, use <span class="code">telnet</span> to connect to the <span class="code">localhost</span> on [[TCP]] port <span class="code">50000</span>.
<source lang="bash">
telnet localhost 50000
</source>
<source lang="text">
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Welcome to kronosnetd 0.1 (built Nov 28 2010 13:32:00)
login:
</source>
At this point, you can login using the <span class="code">kronostnet</span> user name and <span class="code">justatest</span> password. Once logged in successfully, you should see the <span class="code">knet</span> prompt.
<source lang="bash">
login:kronosnet
Password:
Welcome kronosnet (::1) on vty(0)
knet#
</source>
To quit at any time, simply enter the telnet escape code. This is usually <span class="code">^]</span> (<span class="code"><ctrl></span> + <span class="code">]</span>)
<source lang="text">
</source>




<span class="code"></span>
<source lang="bash">
</source>
<source lang="text">
</source>


{{footer}}
{{footer}}

Revision as of 23:43, 28 November 2010

 AN!Wiki :: Kronosnet

Locate

Install

cd ~
yum -y groupinstall "Development Tools"
yum -y install pam-devel
git clone git://github.com/fabbione/kronosnet
cd kronosnet
./autogen.sh
./configure
make
make install

Create a user and group for kronosnet to run as.

groupadd -r kronosnetadm 
groupmems -g kronosnetadm -a root
useradd kronosnet -b /etc -M -r -s /bin/bash -g kronosnetadm

Set a password for the new kronosnet.

passwd kronosnet
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.

For the sake of this tutorial, we'll use the password justatest.

Configure

Create the following file.

vim /etc/pam.d/kronosnet
#%PAM-1.0
auth       include	password-auth
account    required	pam_nologin.so
account    include	password-auth
session    include	password-auth

Run the Daemon

There is currently no init.d script for kronosnetd, so it will need to be started manually.

kronosnetd

There is no output from that command, and it will daemonized and return you to the shell. You can check that it is running with ps.

Network Setup

In this tutorial, we'll use four nodes, each with three network cards.

  • an-node03
  • an-node04
  • an-node05
  • an-node06

To log in for the first time, use telnet to connect to the localhost on TCP port 50000.

telnet localhost 50000
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Welcome to kronosnetd 0.1 (built Nov 28 2010 13:32:00)

login:

At this point, you can login using the kronostnet user name and justatest password. Once logged in successfully, you should see the knet prompt.

login:kronosnet
Password: 

Welcome kronosnet (::1) on vty(0)

knet#

To quit at any time, simply enter the telnet escape code. This is usually ^] (<ctrl> + ])


 

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.