: ic_lock_idle_charging.png
14. The percentage of charge displayed when the screen lock is removed is as follows:
Content and brackets in lockscreen_plugged_in of strings. xml in frameworks/base/core/res/values-zh-rCN !!
15. Remove the dynamic desktop background option:
AndroidManifest. xml in packages/wallpapers/Basic, such as the galaxy comment out the following:
Android: label = "@ string/wallpaper_galaxy"
Android: name = "com. android. wallpaper.
vsftpd at each execution level:
$chkconfig --list vsftpd
3. Disable the vsftpd system service when the execution level is 3 or 5:
$chkconfig --level 35 vsftpd off
4. Enable the vsftpd System Service for levels 2, 3, and 5:
$chkconfig --level 235 vsftpd on
5. Disable services that you do not need:
If no printer is available:
$chkconfig --level 235 cups off
If there is no LAN:
$chkconfig --level 235 smb off
If you do not need remote user logon:
$chkconfig --level 235 sshd off
If you d
used by ln commands to connect to the/etc/rc. d/rcn. d directory. (Here n is the running level 0-6) for example/etc/rc. the S10network under d/rc2.d is connected to/etc/rc. d/init. d. Therefore, we can know that the files under rc2.d are related to Operation Level 2. "S" at the beginning of the file indicates that "start" indicates that the service is started, and "10" indicates the order in which the service is started. For example, in the same dire
Android 4.0 default setting modification, android4.01. Modify the default Wallpaper:Frameworks/base/core/res/drawable-xlarge-nodpi/default_wallpaper.jpg. Change the image at the same speed to default_wallpaper.jpg.2. If you want to add your own wallpaper.Packages/apps/Launcher2/res/values-sw600dp/wallpapers. xml add our modified wallpaper in it3. added the "never sleep" option:1) set def_screen_off_timeout to-1 in frameworks/base/packages/SettingsProvider/res/values/defaults. xml );2) Modify pac
Ubuntu system update-rc.d commands, ubuntuupdate-rc.d
Update-rc.d commands in Ubuntu or Debian systems are scripts used to update system startup items. The links of these scripts are located in the/etc/rcN. d/directory, and the corresponding scripts are located in the/etc/init. d/directory. Before learning about update-rc.d commands, you need to know the main startup steps for Linux and the running level in Ubuntu.1. Linux system main startup Step 2.
to the/etc/rc. d/rcN. d directory. (Here N is the running level 0-6)For example, the s10network under/etc/rc. d/rc2.d is connected to the network script under/etc/rc. d/init. d.Therefore, we can know that the files under rc2.d are related to Operation Level 2.
"S" at the beginning of the file indicates that "start" indicates that the service is started, and "10" indicates the order in which the service is started. For example, in the same directory,
, ext3, swap, auto, devpts, tmpfs, Proc, and sysfs.
Parameters: file system parameters, such as async/Sync, auto/noauto, RW/Ro, exec/noexec, user/nouser, SUID/nosuid, usrquota, kgquota, and ults: RW, SUID, Dev, exec, auto, nouser, async)
Dump: Select whether to back up the partition. 0 indicates no dump backup, 1 indicates dump backup, 2 indicates dump backup, but the partition is less important than 1.
Fsck: whether to use fsck to check the partition. 0 indicates not to check, 1 indicates to ch
String in the format of ZH-RCN
Locale code of the current user
Optional. Default Value: Unknown-runknown.
PS:
Each interface must contain the following common parameters in addition to the parameters required by its own business logic.
Authentication rules:
Calculate the signature value:Api_sig = MD5 ("api_key" + @ api_key + "+" nonce "+ @ nonce +" timestamp "+ @ timestamp +" uniquely_code "+ @ uniquely_code +Api_secret)
Send request:T
.
7. How to add a service: Take mysqld as an Example(1) Service scripts must be stored in the/etc/init. d/directory;(2), chkconfig -- add mysqld # add service, add this service in the chkconfig tool service list, the service will be in/etc/rc. d/rcN. d. Assign the K/S entry;(3), chkconfig -- level 35 mysqld on # modify the default Service Startup level.
Ii. Service Startup/Shutdown
1. System Service: a service that is always running in the memory and
specific service status at each running level is put in/etc/rc. d/rcn. d (n = 0 ~ 6) All files in the directory are linked to/etc/init. d file; 4. key sequence settings; 5. script definition for UPS; 6. start the virtual terminal/sbin/mingetty; 7. run X on runlevel 5.Configuration File:/etc/inittab; each line defines an action and the corresponding processId: runlevels: action: process; id: the identifier of a task. runlevels: the level at which the
, you need to use chkconfig ?? Addservicename to add this service to the chkconfig tool service list. in this case, the service will be assigned a K/S entry in/etc/rc. d/rcN. d.Finally, you can modify the default startup level of the service as instructed above.
2. in Linux, how does one automatically start MySQL?
First, make sure that/etc/rc. d/init. d/MysqlD exists. if the service is usedMysqlD start can be started normally, indicating that the serv
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 files stored in the/etc/rc. d Directory. In most Linux releases,/etc/rc. d/init. d is started. These scripts are used by ln commands to connect to the/etc/rc. d/rcn. d Directory. (Here n is the running level 0-6) for example/etc/rc. the S10network under d/rc2.d is connected to/etc/rc. d/init. d. Therefore, we can know th
default startup running level and the priority of start and stop. If a service is 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, crond contains three rows:
# Chkconfig: 2345 90 60
# Description: cron is a standard UNIX program that runs user-specified \
# Programs at periodic scheduled times. vixie cron adds \
# Number of features to the basic UNIX cron, including better \
#
-line comment.
For example, random. init contains three rows:
# Chkconfig: 2345 20 80
# Description: Saves and restores system entropy pool \
# Higher quality random number generation.
Example:
Chkconfig -- list # list all System Services
Chkconfig -- add httpd # add httpd service
Chkconfig -- del httpd # Delete the httpd service
Chkconfig -- level httpd 2345 on # sets httpd to on when the running level is 2, 3, 4, or 5.
Chkconfig -- list # list all system startup statuses
Chkconfig -- list mys
the priority of start and stop. If a service is 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
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 order. The script is usually started with the start parameter and points to a program in the system. Generally, the startup script in the/etc/rcS. d/directory is executed first, and then the/etc/rcN. d/directory. For example, if you set the running level to 3, the corresponding Startup direct
You can change the Linux auto-start item in/Etc/rc. dConfigureLinux boot corresponds to 7 boot levels, which are 0 ~ 6, while in/etc/rc. rcN. D corresponds to the startup items of different levels of the system. Generally, the level of the system startup Item is 5, that is, starting in graphic mode. Therefore, if you want to modify the startup items in this level of mode, accessible/TEC/RC. in the D/rd5.d directory, the items listed in the directory a
, you can enter the runlevel command to find the previous renlevel and current runlevel. If the system runlevel is not changed, the output result of the command is the number followed by the runlevel after the capital N. Here, the N indicates that there is no front runlevel. To change the runlevel, you can use the init command, followed by the number of runlevel to be used. For example, if init 6 is input, the system is restarted, or init 1 enters the single-user mode.
The configuration of runl
script/etc/rc. d/init. d/cvslockd with the following content :#! The attributes of the/bin/bash/usr/local/bin/cvslockd setting file are executable: # chmod + x/etc/rc. d/init. d/cvslockd 2. view the computer running level. In the file/etc/inittab, the system running level is 5. 3. in the/etc/rc5.d directory, make a soft connection to the executable file you want to execute, and start with the uppercase letter "S" when naming the file, the number size after S indicates the order of execution. Th
Comments from multiple countries:
Create a values file with different tokens under res object names to use different runtime packages.The summary of the Values file is as follows:Chinese (China): values-zh-rCN Chinese (Taiwan): values-zh-rTWChinese (Hong Kong): values-zh-rHKUK (US): values-en-rUSEnglish region (UK): values-en-rGBEnglish (Australia): values-en-rAUEnglish (Canada): values-en-rCAEnglish: values-en-rIEEnglish (India): values-en-rINEnglish
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.