User Tools

Site Tools


usersguide:postinstallation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
usersguide:postinstallation [2016/01/23 22:19]
andytanenbaum [Getting OpenSSH]
usersguide:postinstallation [2016/03/14 19:35]
ad001 Added a link to network configuration to the hostname section.
Line 40: Line 40:
  
 The same is true if you disable the running of the DHCP client at system initialization time and instead manually assign a static IP address (see boot(8) for more information). So if you know what the IP address will be and wish to assign a name to your MINIX host, enter the address/​name pair into /etc/hosts (see hosts(5) for specific information about the format of that file). The same is true if you disable the running of the DHCP client at system initialization time and instead manually assign a static IP address (see boot(8) for more information). So if you know what the IP address will be and wish to assign a name to your MINIX host, enter the address/​name pair into /etc/hosts (see hosts(5) for specific information about the format of that file).
 +
 +For further information on post-installation network configuration see [[usersguide:​networkconfiguration|here]].
  
 ===== Installing Binary Packages ===== ===== Installing Binary Packages =====
Line 45: Line 47:
 See [[UsersGuide:​InstallingBinaryPackages]] on how to install prebuilt packages from the network or from the installation CD. This is one of the first things you should do because the system you get after finishing setup is a barebones system. Using pkgin, you can choose from a large number of packages to tailor the system to your requirements. See [[UsersGuide:​InstallingBinaryPackages]] on how to install prebuilt packages from the network or from the installation CD. This is one of the first things you should do because the system you get after finishing setup is a barebones system. Using pkgin, you can choose from a large number of packages to tailor the system to your requirements.
  
-===== Getting and logging ​in with OpenSSH ​===== +===== Adding Users ===== 
-The PKGSRC OpenSSH package contains both the client (ssh) and the daemon (sshd). To install it after you have done pkgin update, type: pkgin install openssh. Then type: reboot to start the daemon. We recommend installing this, as it allows ssh access from another host, which improves greatly the user experience in the absence of X11.+Always logging in as root is usually a bad idea, so it is highly recommended to set up at least one other user as soon as possible. For directions on how to do that please see: [[.:​managinguseraccounts|Managing User Accounts]] 
 + 
 +===== Getting ​OpenSSH ​and Logging ​in Remotely ​with It ===== 
 +The PKGSRC OpenSSH package contains both the client (ssh) and the daemon (sshd). To install it after you have done pkgin update, type: pkgin install openssh. Then type: reboot to start the daemon. We recommend installing this, as it allows ssh access from another host, which improves greatly the user experience in the absence of X11. If you are planning to install the common packages (see next section), then you need not install ssh separately since it is part of the first set.
  
 If you installed MINIX in a virtual machine, please refer to the [[usersguide:​start | Virtualization]] chapter for your virtual machine monitor of this user guide for further instructions on how to enable network access to the MINIX guest. If you installed MINIX in a virtual machine, please refer to the [[usersguide:​start | Virtualization]] chapter for your virtual machine monitor of this user guide for further instructions on how to enable network access to the MINIX guest.
  
-To access MINIX 3 via ssh, proceed as follows:​\\ +To access MINIX 3 via ssh, note the IP address in the prompt, sayaaa.bbb.ccc.ddd, and proceed as follows:​\\ 
-  * Note the IP address in the prompt, say aaa.bbb.ccc.ddd + 
-  ​* ​pkgin update +<​code>​ 
-  ​* ​pkgin openSSH +pkgin update 
-  ​* ​user add -m mary +pkgin install openssh 
-  ​* ​shutdown -r now+user add -m mary 
 +shutdown -r now 
 +</​code>​
  
 where "​mary"​ is the name of the user you want to log in as (if it does not already exist). Then on a different computer, type: \\ where "​mary"​ is the name of the user you want to log in as (if it does not already exist). Then on a different computer, type: \\
 <​code>​ <​code>​
-ssh mary@aaa.bbb.ccc.ddd+ssh mary@aaa.bbb.ccc.ddd
 </​code>​ </​code>​
 +
 +If you want to enable ssh login as root (dangerous),​ edit /​usr/​pkg/​etc/​ssh/​sshd_config and change the line that reads \\ #​PermitRootLogin prohibit-password\\ to \\ PermitRootLogin yes
 +
 +===== Installing Common Packages =====
 +A script is available to install about 700 commonly used packages, organized in three sets. To install them, type the following commands and answer Y each time you are asked about a set.
 +<​code>​
 +pkgin update
 +pkgin_sets
 +</​code>​
 +Note that don't have to run pkgin update every time you run pkgin. Just before the first use.
 +
 +
 ===== Using Virtual Terminals ===== ===== Using Virtual Terminals =====
 MINIX 3 supports four virtual terminals. You can switch between them using ALT+F1 through ALT+F4. This could be useful, for example, if you type a command to install many packages and want to do something while it is installing. You can just switch to a different virtual terminal, log in there, and do other work. MINIX 3 supports four virtual terminals. You can switch between them using ALT+F1 through ALT+F4. This could be useful, for example, if you type a command to install many packages and want to do something while it is installing. You can just switch to a different virtual terminal, log in there, and do other work.
  
- 
-===== Adding Users ===== 
-Always logging in as root is usually a bad idea, so it is highly recommended to set up at least one other user as soon as possible. For directions on how to do that please see: [[.:​managinguseraccounts|Managing User Accounts]] 
  
  
Line 85: Line 101:
  
  
-===== Running the test sets =====+===== Running the Test Sets =====
 After installing MINIX, you can check the status of your system by running different tests. After installing MINIX, you can check the status of your system by running different tests.
  
Line 129: Line 145:
  
 See [[DevelopersGuide:​TrackingCurrent]]. See [[DevelopersGuide:​TrackingCurrent]].
- 
usersguide/postinstallation.txt · Last modified: 2017/05/25 14:59 by clarkleach