Three Display Manager configurations in xwindows

Source: Internet
Author: User
Display Manager

The Display Manager in X-window can automatically go to graphical logon management when the system starts. Now there are three, xdm, kdm, andNT. I call them DM's three siblings, but in fact they are not exactly the same. Although the boss xdm is ugly, it is easy-to-use. When it comes to the boss, KDM is standard and has a temper similar to that of the boss.NTHe looks outstanding and always looks cool. He doesn't like to take care of others, but he is honest when he encounters a tough problem. Let's get to know the DM three brothers of FreeBSD's 5.1 Family.

0. Preface

After obtaining FreeBSD 5.1, I quickly installed it. The compatibility and hardware support of Version 5.1 are indeed good, and it was successfully installed on my computer.

Since I plan to use FreeBSD as a development workstation, the graphical interface is naturally easier to use. I installed the bottom-Layer Support for X-window, and the two Window managers, Kde and gnome. By setting the ". xinitrc" file, you can also switch between KDE and gnome. But it is not so natural and thorough. After reading the window interface of the Linux release edition and knowing the Display Manager, I started to know the three brothers of DM. If you have installed X-server, Kde, and gnome, they are already in your system. No ,....

1. xdm

As mentioned above, xdm is easygoing. We can modify the/etc/TTYs file and put the following line:

Code:
Ttyv8 "/usr/x11r6/bin/xdm-nodaemon" xterm off secure

Switch off to on.

Code:
Ttyv8 "/usr/x11r6/bin/xdm-nodaemon" xterm on secure

After the system is restarted, the system automatically enters the xdm, and enters the account and password to enter the KDE or GNOME Desktop you have set.

Xdm is really ugly. I believe no one wants to look at it. Referee, new!

2. KDM

To enable the launch of the second kdm, I modified the/etc/TTYs file again. Or that line, this time changed:

Code:
Ttyv8 "/usr/local/bin/KDM-nodaemon" xterm on secure

To enable KDM to automatically switch between KDE and gnome, modify the file "/usr/x11r6/lib/X11/xdm/xsession ". Put the text in the middle,

Code:
Case $ # In

1)

Case $1 in

Failsafe)

Exec xterm-geometry 80x24-0-0

;;

Esac

Esac

This is the case,

Code:
Case $ # In

1)

Case $1 in

KDE)

Exec startkde

;;

Gnome)

Exec gnome-session

;;

Failsafe)

Exec xterm-geometry 80x24-0-0

;;

Esac

Esac

So the target recognition has been loaded. Let's start over.

Slow down. You need to modify the settings. Use root to enter KDE and find "Login manager". In "New Type" on the "sessions" page, the "KDE" item already exists. To add "gnome ", by the way, adjust the order.

Okay. How do I feel when I restart the system again? KDM is still very competent.

3.NT

LaosanNTI have heard of it, and I have seen it in Linux, But I have invited it to FreeBSD's house. It took me three nights to knock on the door for countless times to reveal the truth. The following are the conditions it puts forward.

First,NTGood money requires a special system account, which is said to be for security.

Code:
PW groupadd-G 42-nNT

PW useradd-CNT-D/var/NT-S/bin/sh-u 42-nNT

In this way, a newNTGroup, GID is 42,NTThe UID is 42. GID and uid must be not used by other accounts in the system. If they are used, use other accounts less than 1000.

Second,NTIf you need a single room with a security door, you have to transfer the ownership to it.

Code:
Mkdir/var/NT

Chmod 0750/var/NT

ChownNT:NT/Var/NT

Third, pull the relationship and make proper configuration. Modify "/usr/x11r6/share/gnome/NT/NT. Conf,

Code:
Servauthdir =/usr/x11r6/share/gnome/NT

Changed:

Code:
Servauthdir =/var/NT

Change again

Code:
Greeter =/usr/x11r6/bin/gdmlogin

Is:

Code:
Greeter =/usr/x11r6/bin/gdmgreeter

In addition, the following three rows are true or false.

Code:
Showgnomechoosersession = true

Showgnomefailsafesession = true

Showxtermfailsafesession = true

"NTThe other part of. conf is not clear yet.

Fourth, gnome and KDE must be supported.NTIt's from gnome. It's okay to support gnome. To support the KDE session, we should be a bit wordy. Write the following command in the EE editor,

Code:
#! /Bin/sh

Exec/usr/x11r6/lib/X11/xdm/xsession KDE

Save as file "/usr/x11r6/share/gnome/NT/Sessions/KDE ", and then modify the attributes,

Code:
Chmod-W + x/usr/x11r6/share/gnome/NT/Sessions/KDE

"/Usr/x11r6/share/gnome/NTOther files in the/sessions directory can be removed except gnome and xsession.

Fifth, we should give way to the third party now. UseNTReplace kdm, and change the value in "/etc/TTYs ".

Code:
Ttyv8 "/usr/local/bin/KDM-nodaemon" xterm on secure

Is:

Code:
Ttyv8 "/usr/x11r6/bin/NT-Nodaemon "xterm on secure



After completing the above work, restart the system. FinallyNTFinally, I gave my face and opened the beautiful veil.NTNo wonder she is not him. I can't help but look at it.

The hard work started with the beautiful DM. It's a good mood!

(After writing the above, I didn't want to post it to the Forum now. Because after multiple testsNTThere are still some minor issues with KDE,NTStill a little confused. However, if you think about it, let's talk about it first. I will try to solve the problem myself. Once the result is reached, I will add it .)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.