Kde screensaver configuration file


















UPDATE : It appears that 5 minutes timeout is default as well and if the timeout is set to five minutes and locker is enabled, the whole [Daemon] section could be missing.

I didn't find a way how to handle that situation with sed easily but here is an awk command which handles that:. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How do I programmatically disable the KDE screen locker?

Ask Question. Asked 5 years, 5 months ago. Active 4 years, 9 months ago. Viewed 4k times. Improve this question. Mark Dominus Mark Dominus 4 4 silver badges 13 13 bronze badges. Add a comment. Active Oldest Votes. This opens the Applications window. Compare the entries to what you see in your Applications menu. They should be nearly identical. My version is shown in Figure Use the Office icon to open a window that shows the current items in the Office submenu.

Right-click in the menu and select Create Launcher from the pop-up menu. In the Create Launcher window, enter the information associated with the application. In the Comment text box, enter a name that will be shown when the user hovers the pointer over the menu item.

If you know the name of the file, the dpkg -S packagename or rpm -ql packagename commands list all files installed from the package.

Click Icon to see options for icons you can link to this entry. Alternatively, click Browse to find the icon you prefer. When you click OK to exit from the Create Launcher window, the item is added to the menu and is ready for use.

The activities in this section do not actually install KOffice Write, of course; you must do that separately. Default permissions vary slightly by distribution. If you choose to edit these files, back them up first! Not all applications are picked up by the KDE desktop. Start this tool with the kappfinder command. To do so, take the following steps:. As a regular user, run the kmenuedit command. Note how the lefthand pane matches what you see when you click the K Menu button in the lower-left corner of your desktop.

This opens the New Item window, where you can enter the name you want to see in the K Menu. Here, I use XWhois. Click OK. You can now add a Description and Comment of your choice in the respective text boxes. In the Command text box, enter the path to the application. If you want an icon for this application, click on the icon to the right of the Name and Description text boxes.

The actual icon files may be deep in this sudirectory. KDE saves the changes to the applications-kmenuedit. Now you can share your changes with other systems configured to use KDE.

All you need to do is share the applications-kmenuedit. As with GNOME, you need to adapt to each distribution in adding changes to the home directories of existing users. Back the files up first in case you make a mistake. After editing them, you can copy them to the other systems on your network. One thing many managers like is consistency. In many organizations, that starts with what everyone sees at the beginning of the day, the login menu.

But first, you need to select a standard login manager for your workstations. Set the preferred variable to the display manager of your choice, such as gdm or kdm. There are other login managers available.

Some people prefer the X Login Manager, also known as xdm. You can always return to this section and configure a different preferred login manager for your systems. The location of this directory varies by distribution. As of this writing, it is:. As distributions evolve, these directories may change.

To find the directory on your distribution, run one of the following commands:. This opens the Login Screen Setup window shown in Figure It includes a wide variety of options that go beyond the scope of what I can cover in this annoyance.

The General tab defines the basic settings associated with the GNOME Display Manager login screen and allows you to configure several options, which are described in Table This is all right for a system dedicated to a single user in an environment, such as laptop or home office, where intruders are not expected to meddle with it. It also is a good choice for a locked-down public terminal offering a guest account.

It should be disabled otherwise. Standard or Graphical greeter for local logins the Standard greeter provides a default login screen; the Graphical greeter is more customizable with pictures or other graphics; for details, see the following subsections. If checked, time is shown in a hour instead of a standard U. Supports automatic logins to a standard account; a reasonable option for public terminals or some single-user systems. Linux distributions include several optional themes, and you can configure your own.

In fact, this is one way to create a customized look and feel for your organization. You can use the current themes as a model for your own. With a little trial and error, you can replace the. Of course, you can create your own, using one of the many models available.

The Security tab includes several options, described in Table I recommend you disable this setting to discourage administrators from logging in with the root account. I strongly recommend disabling this setting, as it would transmit the root password over the network, without encryption.

XDMCP is inherently insecure. A potentially more secure option for remote access to your GUI applications is the Secure Shell protocol. I describe its use for GUI applications in Chapter Sets the maximum number of requests from remote displays; can vary from maximum remote sessions. Sets the maximum number of requests from remote displays that do not have a display manager. Limits the time a request from a system without a display manager can wait; may help if the network is slow.

As the GNOME Login Manager is system-wide instead of specific to each user, associated settings depend on standard configuration files in the distribution-dependent directories defined earlier. Just copy the files in the noted directories from system to system to implement the changes on the desired computers.

In any case, the key file is kdmrc , which you can edit directly. You can also run the kcmshell kdm command. Either action opens the Login Screen Setup window shown in Figure The options under the Appearance tab allow you to customize the overall look and feel of the KDE Login Manager, as described in Table Defines the location of the upper-left corner of the main screen, relative to the upper-left corner of the display.

Defines the number of asterisks displayed for each keystroke when typing in your password. There are three categories and one other option, as described in Table Font for the Greeting, as defined in Table The options under the Background tab allow you to customize the display behind the main part of the KDE Login Manager. While details go beyond the level of annoyances, the impact is that you can add the picture or slideshow of your choice.

You may use this tab to customize the login screen with a corporate or organizational seal. By default, all users are allowed to shut down or reboot the local computer using the KDE Login Manager. I recommend that you disable this option for most systems with the possible exception of single-user workstations because no password is required. I believe this is a bad default.

I recommend that you disable this setting by deselecting the Show List option. I define a standard desktop as one with a consistent look and feel after login. In general, desktop settings are the sum of their parts. I address some of the other components of a standard desktop desktop resolution, a consistent program menu, a standard menu bar, a custom login screen, and a uniform group of icons in different annoyances.

One benchmark in a consistent organizational image is what people see when they walk through your offices.

Everyone has different items on their desks, such as family photos, personal souvenirs, etc. However, almost everyone has a computer with a monitor.

Personally, I think people should be able to put what they want with the possible exception of obscene words and pictures on their monitor desktops and screensavers at work.

The foundation of a consistent look and feel on the desktop is a consistent background. If you want to customize the background on a KDE desktop, run the kcmshell background command to open the Configure - Background window.

This applet is surprisingly versatile; it allows you to configure the image or even a slideshow of images. If you want to customize the background on a GNOME desktop, run the gnome-background-properties command to open the Desktop Background Preferences window.

This applet is simple; it allows you to select the image of your choice for a desktop background. Any changes are saved to the backgrounds. If you want to keep users from changing their backgrounds, you can disable regular user access to the gnome-background-properties applet.

What I do is limit executable access to the root user with the following command:. In a secure environment, you may not want customers or visiting rivals or anyone who might be considered a security risk to see what your users are doing.

With password protection on their screensavers, you can help protect any critical or confidential information. In addition, screensavers are one more opportunity to set up a consistent look and feel in your office environment. The GNOME desktop environment takes advantage of a group of standard screensavers available to all Linux systems, part of the xscreensaver package.

This opens the Screensaver Preferences window. There are a substantial number of things you can configure in the Screensaver Preferences window. Specifies the amount of time before a screensaver activates. If you want to keep your systems secure after a user walks away, you should keep this to a minimum; I suggest one minute. Sets the amount of time, after the screensaver starts, after which a password is required to dismiss the screensaver and start work again.

This should also be kept to a reasonable minimum; zero minutes is probably too short, as it would make users enter a password each time they turn away from the computer for a few seconds.

Alternatively, you can restart the daemon from the command line. First, find the Process Identifier PID associated with the xscreensaver daemon with the following command:. The PID is the number in the second column.

For example, if the PID is , you can restart the daemon with the following command:. To start the KDE screensaver tool, run the kcmshell screensaver command.

If available, select the XScreensaver and then click Setup. Alternatively, if you want to use one of the KDE screensavers, the menu is straightforward. For system security, two settings are critical:.

Sets the time, after the screensaver starts, after which a password is required. There are lots of things you can do to customize each desktop environment. If you want to keep a standard environment for your users, take away the tools that they can use to change their environment.

Remove or limit permissions to use key configuration tools. For example, you could limit use of the KDE Control Center to the root administrative user with the following command:. Creating and locking GUI desktop icons is a straightforward process and is one more thing that you can do to configure a consistent look and feel for the GUI desktops in your office.

You can then create the desktop icon that you need from the properties menu that appears. To create a desktop icon from the command-line interface, use a procedure such as the following. Essentially, you will use an existing text file that configures a desktop application as the model for one customized for your new application.

For this example, I added a desktop icon for the OpenOffice. I opened the newly created OpenOffice Writer. The minimum directives I needed to change to make the file work for a new application were:. The file containing the icon to be displayed. I saved my changes. You may need to log out and log back in to KDE to see the changes.

Test your new icon. The location of kdesktoprc varies by distribution. Whatever your selection, check the result. The next time you start the KDE Desktop, right-click on the screen.

Notice how the pop-up menu has changed. Right-click on an icon. See how that pop-up menu has changed. For example, I added a desktop icon for OpenOffice. In the Name text box, I entered OpenOffice. In the Command text box, I added the full path to the command that starts the OpenOffice.

However, I could have set the type to a directory, a link, or a filesystem device FSDevice for directories mounted on specific devices. The other options in this drop-down box are not used. Now it was time to configure this launcher with an icon to be shown on the desktop. So I clicked on the icon and navigated to the associated location. When successful, the icon is shown in the Create Launcher window. I clicked OK and saw the OpenOffice. I can click on this icon to open the word processor.

Once complete, I froze the configuration. The following command takes ownership, and the ability to change any files contained within, from any regular user. Now, if I try deleting any icon, I get an error message. While users can still right-click to change permissions, this helps preserve a standard desktop. Other issues are discussed in the following section. I could do so with a command similar to:.

SUSE presents special problems for custom desktop icons. You can then keep users from changing the permissions on their icons, courtesy of the immutable flag. Yes, more dots do mean a higher level of resolution, which is important in many applications. However, as I type this chapter, I much prefer bigger letters. While I could increase font sizes on a higher-resolution screen, that means additional work to customize applications, desktop icons, and more. You can configure the resolution directly in the associated X configuration file.

But even most Linux geeks use tools to help. After all, people work more efficiently with screens set to the resolution that is most comfortable for their eyes. However, if you do want to disable those tools for individual users, use the techniques described in the " My Users Mess Up Their Desktops " annoyance in this chapter. You can configure your GUI from the command-line interface.

Because of licensing issues, most Linux distributions have recently converted from the XFree86 to the X. This also affects the associated utilities; for example, the xf86config and xf86cfg utilities may be known by new names, such as xorgconfig and xorgcfg. Before you change any configuration file, you should back it up in a secure location such as your home directory.

Many tools do back up the X configuration file. The X configuration file is split into several sections. If you prefer to configure your X configuration files directly, you need to know at least how these sections interact. If you need to know how each directive in your X configuration file works, refer to the online documentation for that server, either XFree86 or X.

The GUI versions of this utility are xf86cfg and xorgcfg , respectively. If this utility is not available on your distribution, you should be able to install the RPM or DEB package of the same or similar name. Otherwise, to run this utility, use the following steps:. Run the xorgconfig or for XFree86 servers, the xf86config command. Read the associated warning.

Assuming you know your video card, memory, and associated chipset, continue to the next step. Specify the protocol most appropriate for your mouse or pointing device. The latest versions of this utility support auto-detection.

Accept auto-detection option 1 when auto-detection is available or enter the number associated with the protocol. If you specified a mouse-related protocol and have a two-button mouse, you can now support emulation of a third button pressing the left and right buttons simultaneously produces the same effect as pressing the middle button on a three-button mouse.

Now, specify the device associated with the mouse. Next, select the keyboard most closely related to what you have. The utility scrolls through the available options. In the following step, you can specify a language associated with your keyboard.

As before, if you press Enter without making a selection, the utility scrolls through the available options. Now enter the name of your choice. If you face some issues you might use a Lua script to manually disable the screensaver. The above script will call xscreensaver-command -deactivate every 30 seconds.

Formerly you could use the heartbeat-cmd configuration option, but that is no longer present in newer versions of mpv. Kodi has no native support to disable XScreenSaver it uses its own screensaver. Another script based solution would be firefox-dpms-git AUR which makes use of PulseAudio output detection of Firefox and thus also works in windowed mode but not without audio playback.

One can run xscreensaver in the background, just like a wallpaper. First, kill any process that is controlling the background the root window. Xresources :.

Namespaces Page Discussion. Views Read View source View history. Discuss in Talk:XScreenSaver.



0コメント

  • 1000 / 1000