From d4ea08a2657191fa9d3272c4f9eda335ad187efe Mon Sep 17 00:00:00 2001 From: mazocomp Date: Fri, 12 Jan 2018 17:14:21 +0000 Subject: [PATCH] Move it here now, fix it later. --- docs/handbook/UnixBasics/index.mdwn | 60 ++++++++++++++--------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/docs/handbook/UnixBasics/index.mdwn b/docs/handbook/UnixBasics/index.mdwn index 1a56dc68..c3f23082 100644 --- a/docs/handbook/UnixBasics/index.mdwn +++ b/docs/handbook/UnixBasics/index.mdwn @@ -57,6 +57,36 @@ You should see the message followed by a command prompt: # +### Multiple Consoles + +Running UNIX commands in one console is fine, but DragonFly can run many programs at once. Having one console where commands can be typed would be a bit of a waste when an operating system like DragonFly can run dozens of programs at the same time. This is where virtual consoles can be very helpful. DragonFly can be configured to present you with many different virtual consoles. You can switch from one of them to any other virtual console by pressing a couple of keys on your keyboard. Each console has its own different output channel, and DragonFly takes care of properly redirecting keyboard input and monitor output as you switch from one virtual console to the next. + +Special key combinations have been reserved by DragonFly for switching consoles. You can use **Alt** - **F1** , **Alt** - **F2** , through **Alt** - **F8** to switch to a different virtual console in DragonFly. As you are switching from one console to the next, DragonFly takes care of saving and restoring the screen output. The result is an **illusion** of having multiple **virtual** screens and keyboards that you can use to type commands for DragonFly to run. The programs that you launch on one virtual console do not stop running when that console is not visible. They continue running when you have switched to a different virtual console. + +A fairly technical and accurate description of all the details of the DragonFly console and keyboard drivers can be found in the manual pages of syscons(4), atkbd(4), vidcontrol(1) and kbdcontrol(1). + +### The /etc/ttys File + +The default configuration of DragonFly will start up with eight virtual consoles. This is not a hardwired setting though, and you can easily customize your installation to boot with more or fewer virtual consoles. The number and settings of the virtual consoles are configured in the **/etc/ttys** file. + +You can use the **/etc/ttys** file to configure the virtual consoles of DragonFly. Each uncommented line in this file (lines that do not start with a `#` character) contains settings for a single terminal or virtual console. The default version of this file that ships with DragonFly configures nine virtual consoles, and enables eight of them. They are the lines that start with **ttyv**: + + + # name getty type status comments + # + ttyv0 "/usr/libexec/getty Pc" cons25 on secure + # Virtual terminals + ttyv1 "/usr/libexec/getty Pc" cons25 on secure + ttyv2 "/usr/libexec/getty Pc" cons25 on secure + ttyv3 "/usr/libexec/getty Pc" cons25 on secure + ttyv4 "/usr/libexec/getty Pc" cons25 on secure + ttyv5 "/usr/libexec/getty Pc" cons25 on secure + ttyv6 "/usr/libexec/getty Pc" cons25 on secure + ttyv7 "/usr/libexec/getty Pc" cons25 on secure + ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure + +For a detailed description of every column in this file and all the options you can use to set things up for the virtual consoles, consult the ttys(5) manual page. + ## Users All access to the system is achieved via accounts, and all processes are run by users. There are three main types of accounts: root, daemons and user accounts. @@ -304,36 +334,6 @@ DragonFly also comes with more powerful text editors such as vi(1) as part of **Note:** if you're not familiar with vi(1) or can't (or don't want to) run emacs(1), you might want to install a small, fast, and portable editor called mg(1). It is compatible with emacs(1) because there shouldn't be any reason to learn more editor types than emacs(1) or vi(1). If you don't know how to use it, read **/usr/local/share/doc/mg/tutorial** first. -## Multiple Consoles - -Running UNIX commands in one console is fine, but DragonFly can run many programs at once. Having one console where commands can be typed would be a bit of a waste when an operating system like DragonFly can run dozens of programs at the same time. This is where virtual consoles can be very helpful. DragonFly can be configured to present you with many different virtual consoles. You can switch from one of them to any other virtual console by pressing a couple of keys on your keyboard. Each console has its own different output channel, and DragonFly takes care of properly redirecting keyboard input and monitor output as you switch from one virtual console to the next. - -Special key combinations have been reserved by DragonFly for switching consoles. You can use **Alt** - **F1** , **Alt** - **F2** , through **Alt** - **F8** to switch to a different virtual console in DragonFly. As you are switching from one console to the next, DragonFly takes care of saving and restoring the screen output. The result is an **illusion** of having multiple **virtual** screens and keyboards that you can use to type commands for DragonFly to run. The programs that you launch on one virtual console do not stop running when that console is not visible. They continue running when you have switched to a different virtual console. - -A fairly technical and accurate description of all the details of the DragonFly console and keyboard drivers can be found in the manual pages of syscons(4), atkbd(4), vidcontrol(1) and kbdcontrol(1). - -### The /etc/ttys File - -The default configuration of DragonFly will start up with eight virtual consoles. This is not a hardwired setting though, and you can easily customize your installation to boot with more or fewer virtual consoles. The number and settings of the virtual consoles are configured in the **/etc/ttys** file. - -You can use the **/etc/ttys** file to configure the virtual consoles of DragonFly. Each uncommented line in this file (lines that do not start with a `#` character) contains settings for a single terminal or virtual console. The default version of this file that ships with DragonFly configures nine virtual consoles, and enables eight of them. They are the lines that start with **ttyv**: - - - # name getty type status comments - # - ttyv0 "/usr/libexec/getty Pc" cons25 on secure - # Virtual terminals - ttyv1 "/usr/libexec/getty Pc" cons25 on secure - ttyv2 "/usr/libexec/getty Pc" cons25 on secure - ttyv3 "/usr/libexec/getty Pc" cons25 on secure - ttyv4 "/usr/libexec/getty Pc" cons25 on secure - ttyv5 "/usr/libexec/getty Pc" cons25 on secure - ttyv6 "/usr/libexec/getty Pc" cons25 on secure - ttyv7 "/usr/libexec/getty Pc" cons25 on secure - ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure - -For a detailed description of every column in this file and all the options you can use to set things up for the virtual consoles, consult the ttys(5) manual page. - ## Permissions DragonFly, being a direct descendant of BSD UNIX®, is based on several key UNIX concepts. The first and most pronounced is that DragonFly is a multi-user operating system. The system can handle several users all working simultaneously on completely unrelated tasks. The system is responsible for properly sharing and managing requests for hardware devices, peripherals, memory, and CPU time fairly to each user. -- 2.41.0