level currently running in the operating system. This level ranges from 1 to 6 and has different functions. Different runtime levels are defined as follows: (refer to/etc/inittab in Red Hat Linux) #0-stop (do not set initdefault to 0) #1-single-user mode #2-multi-user, no NFS #3-full multi-user mode (standard operation level) #4-not used #5-X11 (xwindow) #6-restart (do not set initdefault to 6) these levels are specified in the/etc/inittab file. This file is the main file found by the init prog
-full multi-user mode (standard operation level)#4-useless#5-X11 multi-user graphic mode (xwindow)#6-restart (do not set initdefault to 6)These levels are specified in the/etc/inittab file. This file is the main file found by the init program. The first service to run is the file stored in the/etc/rc. d Directory. In most Linux releases, the startup script is located in/etc/rc. d/init. d. These scripts are connected to the/etc/rc. d/rcn. d Directory b
"Setting Up W9":13th line of Default.prop file in Out/target/product/sdkdemo/rootRO.PRODUCT.MODEL=RK2818SDK Change to Ro.product.model=w911 recordings are displayed without hours. Requirements Increase:Packages/apps/soundrecorder/src/com/android/soundrecorder(1) Soundrecorder.java: private void Updatetimerview ()Put String timestr = String.Format (Mtimerformat, TIME/60, time%60);instead: Long hour=time/3600;String timestr = String.Format (Mtimerformat, Hour, (time-hour*3600)/60, time%60);(2)/re
/lsnrctl start"
Chmod a + x/etc/init. d/start_oracle.sh
Vi stop_oracle.sh (stop the oracle database script before shutdown ):
#! /Bin/bash
# This script is used to stop the oracle
Su-oracle-c "/u01/oracle/product/11.2.0/dbhome_1/bin/lsnrctl stop"
Su-oracle-c "/u01/oracle/product/11.2.0/dbhome_1/bin/dbshut"
Chmod a + x/etc/init. d/stop_oracle.sh
4. Create a link with system startup and shutdown:
Add the Automatic startup Link under/etc/rc2.d. The command is as follows:
Ln-s/etc/init. d/start_orac
startup script under the "/etc/rcS. d/" directory is first executed, and then the "/etc/rcN. d/" directory. For example, if you set the running level to 3, the corresponding startup directory is "/etc/rc3.d /".
4. Start the Xwindow server "xorg" according to the script in the "/etc/rcS. d/" folder"
Xwindow is a graphical user interface system in Linux.
5. Start the logon manager and wait for the user to log on.
By default, you can log on to the s
commands yet. How can I change the settings? How can I establish a connection between ln-s and rcN. d ......
Then I thought of the/etc/inittab file. Although it is no longer necessary, it is okay to look at it:
# Inittab is no longer used when using systemd.
#
# Adding configuration here will have no effect on your system.
#
# Ctrl-Alt-Delete is handled by/etc/systemd/system/ctrl-alt-del.target
#
# Define EMD uses 'targets' instead of runlevels. By d
1. Click the button to appear in the small window (response event)How to configure:Activity_main.xml file: In the Mainactivity.java file:public void test1 (view view) {Toast.maketext (Mainactivity.this, "Contents of small Window", toast.length_shcrt (length of time shown)). Show ();}With each click, the button moves to the right 10 units (code below):Dynamic mode:Reusable mode (when multiple buttons are used to demonstrate their advantages):Compare with HTML: Click Generate Small window2. Click
of the folder?The system loaded Chinese name configuration file is Res\values-zh-rcn\string.xml, you can see the system by default loaded two folders named "System Tools" and "recommended".Therefore, we can modify the folder name here, or add a custom file name.2) How do I add a program apk to a folder?Launcher:container is the ID of the folder, which is numbered by default starting at 1.By observing Launcher:x and launcher:y, we find that Y is fixed
recovery_l10n directory, for example.For example, in the Simplified Chinese environment, we will be "cleaning ..." modified to "in the purge ..." How to do?First we need to find the corresponding country code resources, here is Values-zh-rcn/strings.xml, as follows:Modify the "Purging ..." button above directly to "purging ...". Of course if we want to add a new supported language, we just recreate a resource directory in the format res/values-countr
not started at any running level by default, use-to replace the running level. The second line describes the service. you can use the \ cross-line comment. For example, random. init contains three lines: # chkconfig: 2345 20 80 # description: Saves and restores system entropy pool for \ # higher quality random number generation. example: chkconfig -- list # list all system services chkconfig -- add httpd # add httpd service chkconfig -- del httpd # delete httpd service chkconfig -- level 2345 h
. What should I call it ?, More importantly, how to test it?
Answer 6: ver x. y. Zzz from @ Stephen _wang_7971
Associated answer 6: the realm of using this practice is already higher than that of the RC two-storey building. Only a very small number of companies can build any version at a time as a potential release version, and Microsoft has not yet done so.
If not, what should I do?
Answer 7: Build XXXX. The number is from the version management system. From @ Stephen _ wang_7971
Reply @ steph
management chapter. 2. Load the system kernel and start the INIT process. The INIT process is the root process of Linux, and all system processes are its sub-processes. 3. The INIT process reads the information in the "/etc/inittab" file, enters the preset running level, and runs the scripts in the corresponding folder of the running level in sequence. The script is usually started with the "Start" parameter and points to a program in the system. Generally, the startup script under the "/etc/RC
Pack (including Hong Kong, Macao, Taiwan and the mainland), and values-ZH-RCN is a simplified Chinese Language Pack (only including the Mainland ), values-ZH-RTW is a Chinese Traditional Language Pack (Hong Kong, Macao and Taiwan ). In addition, language packs in other regions are simplified objects.In the values folder, there are usually arrays. XML, strings. xml and other language files. To make Chinese files, you must modify these files. Sometimes
On weekends, you can modify bugs and add features for the last software release.
1. Added multi-language support.
Add the values-zh-rCN directory corresponding to values. The internal xml file is the same as the values file, but the file name is named "s", such as strings -----> string
The system automatically selects the configuration file based on the region selected by the user. The same is true for resolution.
2. Join Sina Weibo to share and displ
decode it by unpackaging it. The following tasks need to unpack and package the APK. Here is only a rough introduction. Please go to the detailed operation methods and tutorials.
1) Chinese APK SoftwareIn the res folder, we can see that there are many values-*** folders, which are language packs. Values is an English Language Pack, values-ZH is a Chinese Language Pack (including Hong Kong, Macao, Taiwan and the mainland), and values-ZH-RCN is a simpl
difficult to switch the language system by yourself. first look at the engineering structure:
The content of values/strings. XML is the same as that of XML/English. xml; the content of values-ZH-RCN/strings. XML is the same as that of XML/Chinese. xml. The reason for this redundancy is that when the APK is generated, all the content in values hits RASC and cannot be read.The following considerations must be taken into account to achieve the transform
obtain these resources respectively.Dimens. XML definitionDimension value ). Use resources. getdimension () to obtain these resources.Strings. XML definitionString value. Use resources. getstring () or resources. gettext () to obtain these resources. Gettext () retains the Rich Text styles applied on the UI string.Styles. XML definitionStyle object.Multi-language, composed of the suffix of values-xxx. For example, simplified Chinese: Res/Values-ZH-RCN
Start Process
==========
To start a Linux system, follow these steps:
1. Read the MBR information and start the Boot Manager.
In Windows, NTLDR is used as the Boot Manager. If multiple versions of Windows are installed in your system, you need to select the system to enter from NTLDR.
Linux usually uses the powerful and flexible GRUB configuration as the Boot Manager. We will introduce how to use it in the startup management chapter.
2. Load the system kernel and start the init process.
The ini
. If the kernel cannot find init, it will try to run/bin/sh. If the run fails, the system will also fail to start.Ii. Operation LevelSo what is the runtime level?Simply put, the running level is the function level currently running in the operating system. This level ranges from 1 to 6 and has different functions.Different runtime levels are defined as follows:#0-stop (never set initdefault to 0)#1-single-user mode # s init S = init 1#2-multiple users without NFS#3-full multi-user mode (Standard
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.