Fedora15 terminal settings record

Source: Internet
Author: User

Although I have never been interested in Linux other than Ubuntu,

But work needs to be done. By the way, we need to study the correctness of ubuntu cognition...

Some settings are required for the fedora used in the work. First, record the settings to prevent future failures.

1. How to Set fedora 15 to enable it to enter the text interface?

This problem is found in many ancient books and is a basic problem in Linux. The original method is

Sudo nano/etc/inittab

Change ": 3/5:", but now the times have changed, and Fedora has changed,

Although I am not familiar with systora's systemd innovation, it is good to understand it with changes ..

Sudo RM/etc/systemd/system/default.tar get

Sudo ln-S/lib/systemd/system/graphical.tar get/etc/systemd/system/default.tar get (graphic interface)

Sudo ln-S/lib/systemd/system/multi-user/graphical.tar get/etc/systemd/system/default.tar get (text interface)

2. Enabling fedora to log on automatically is too insecure for Linux systems,

However, many applications must automatically enter the system.

Since I installed the KDE interface of fedora15, it is inevitable that KDM is the window manager, while gnome is the gmt1. this is also a basic problem,

I just haven't operated on these files for a long time, so I 'd better wait.

A tool is available in the graphic interface, but the Linux feature is configurable. Any function can be implemented through configuration.

Choose system> Management> logon screen ". 2. Select "user tag" and add your user name to "include. 3. Select "security", "Enable Automatic Logon", and select the user account you want to automatically log on.

The key to the so-called configuration is to find the desired file.

Sudo nano/etc/KDE/KDM/kdmrc

Nano and Pico are the same text editors. In the impression, Pico is based on Nano,

Search for login and <Ctrl + W> to find the configuration item to be changed.

Allowrootlogin = true

Allownullpasswd = true

Allowconsole = true

Autologinenable = true

Autologinuser = dill <your name>

Autologinpass = dill <your password>

You can,

Other settings

[XDMCP] is similar to Remote Desktop in windows ..

Enable = true

Port = 177

Keyfile...

[Default]

Startup =...

This file is still very important. Please study it carefully.

 

3. automatically execute the program at startup

Automatic startup is actually to find a special folder, the path of the program that is automatically enabled by Fedora

/Usr/share/autostart <mainly desktop>
~ /. Kde4/aautostart <script should be available>

/Etc/rc. Local

Every user should go to the bash_profile, bashrc,

Test code

/* Test. sh *

#! /Bin/sh

Echo Hello world!

*/

Sudo nano ~ /. Bashrc

Add the last line

Sh test. Sh (note the path of the execution Program)

Then restart and you can see the effect.


4. scheduled task execution

The well-known command is crontab, and its principle and use of the Internet are many or not mentioned.

Directly use the crontab command to edit
The cron Service provides the crontab command to set the cron service. The following are some parameters and descriptions of this command:
Crontab-u // set a user's cron service. Generally, the root user needs this parameter when executing this command.
Crontab-l // list the details of a user's cron Service
Crontab-r // Delete the cron service of no user
Crontab-E // edit a user's cron Service
For example, to view your cron settings as root: crontab-u root-l
For another example, Root wants to delete Fred's cron settings: crontab-u Fred-R


There is a shell script to execute test. Sh at every day

Crontab-e can enter the editing mode, VI operation habits ..

At the beginning, I wrote

30 12 *** sh/home/dill/test. Sh

Wait until the terminal output is lost... Always wondering, you should be able to guess,

Because

30 12 *** sh/home/dill/test. Sh> test.txt

In this case, we can output data from test.shprint to test.txt, which is an output problem. It is depressing !!!

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.