numask

Discover numask, include the articles, news, trends, analysis and practical advice about numask on alibabacloud.com

Create an ARM root file system and an arm root file

M 0 0# Automatic mounting when the mount-a command is executed4.3 create a file/Etc/inittabContent:: Sysinit:/etc/init. d/rcS: Askfirst:/bin/sh# TtyS0: 2345: respawn:/sbin/getty 115200 ttyS0 # I haven't figured it out yet: Ctrlaltdel:/sbin/reboot: Shutdown:/bin/umount-a-r: Restart:/sbin/init# Init process execution4.4 create a file/Etc/init. d/rcSContent:#! /Bin/shPATH =/bin:/sbin:/usr/bin:/usr/sbinRunlevel = SPrevlevel = NUmask 022Export PATH runlev

"Reprint" Mini2440 Boot configuration file description

{New_init_action (Ctrlaltdel, "reboot", "" ");New_init_action (SHUTDOWN, "Umount-a-R", "");if (Enable_swaponoff)New_init_action (SHUTDOWN, "swapoff-a", "" ");New_init_action (RESTART, "Init", "");New_init_action (Askfirst, Bb_default_login_shell, "");Todo:vc_1 instead of "" "?", "is console, Cttyproblems, angry usersNew_init_action (Askfirst, Bb_default_login_shell, vc_2);New_init_action (Askfirst, Bb_default_login_shell, vc_3);New_init_action (Askfirst, Bb_default_login_shell, vc_4);New_init_ac

Transplantation of linux-2.6.32 on mini2440 Development Board (19) yaffs2 File System

=/sbin:/bin:/usr/sbin:/usr/binRunlevel = sPrevlevel = NUmask 022Export path runlevel prevlevelEcho "---------- munt all ----------------"Mount-Echo/sbin/mdev>/proc/sys/kernel/hotplugMdev-SEcho "************************************** *********"Echo "***************** studying arm ******************** *"Echo "kernel version: linux-2.6.29.1"Echo "Student: Huang Xiaohai"Echo "Date: 2009.10.1"Echo "************************************** *********"/Bin/hos

Creation of mini6410 file systems

path of the compiler here. (2) configure and compile the kernel module You can copy the friendly built-in configuration file in the kernel. Then execute: make menuconfigmake zImage (3) Compile the kernel module make modules ARCH=arm CROSS_COMPILE=arm-linux- (4) install the kernel module make modules_install ARCH=arm INSTALL_MOD_PATH=/opt/FriendlyARM/mini6410/rootfs 10. Create a configuration file under the etc directory A. Create the ETC/mdev. conf file. The content is blank.B. Copy the passwd

Build your own Linux 3 (providing network functions, etc)

Build your own Linux 3 Preliminary improvement (providing network functions) 1 add profile file # Ash profile # VIM: syntax = sh # No core files by default # ulimit-s-c 0>/dev/null 2> 1 # user = "'id-UN'" // not supported yet user Login function, user = "root" LOGNAME = $ userps1 = '[$ user @ $ hostname $ PWD] #' // prompt Path = $ PATH hostname = '/ bin/hostname' // host name Export user LOGNAME PS1 path // export the environment variable2. Enrich the RFM File #! /Bin/sh Path =/sbin:/bin:/us

ARM-Linux boot settings-mini2440 Development Board

PATH =/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:Runlevel = SPrevlevel = NUmask 022Export PATH runlevel prevlevel ## Trap CTRL-C c only in this shell so we can interrupt subprocesses.#Trap ":" INT QUIT TSTP/Bin/hostname FriendlyARM /Bin/mount-n-t proc none/proc/Bin/mount-n-t sysfs none/sys/Bin/mount-n-t usbfs none/proc/bus/usb/Bin/mount-t ramfs none/dev Echo/sbin/mdev>/proc/sys/kernel/hotplug/Sbin/mdev-s/Bin/hotplug# Mounting file system specified

Build a basic embedded linux root file system

/lib$ CP-D/home/mxzh/smartphone/ww21/pxalinux/toolchain/arm-linux-4.1.1/ARM-iwmmxt-Linux-gnueabi/lib/LD *./$ CP/home/mxzh/smartphone/ww21/pxalinux/toolchain/arm-linux-4.1.1/ARM-iwmmxt-Linux-gnueabi/lib/libc. so.6 ./In this way, you can. (4) add commands and initialization scripts Copy the bin and sbin directories under the _ install directory generated by the compilation of busybox to the directory of the file system. For linuxrc, it is just a link instead of a copy. Add the/etc/init. d/RCS fil

Production of Linux file system without interface based on Topeer 4412 Development Board

$GatewayFiecho nameserver $DNS >/etc/resolv.confElseIf Grep-q "^/dev/root/nfs"/ETC/MTAB; ThenEcho-n NFS root ... >/dev/ttysac2Else/sbin/ifconfig eth0 192.168.253.12 netmask 255.255.255.0 upFiFiecho Done >/dev/ttysac2:Then save and exit Ifconfig-eth0 and use the chmod command to modify the Ifconfig-eth0 permissions: VimThen use the VI command under the INIT.D folder to create the RCS file:/home/cym/system/etc/init.dThen enter the following content in the RCS file:#! /bin/shPath=/sbin:/bin:/usr/s

[Embedded Development Primer]4412 Development Board build Linux minimum system from zero

Init.d folder, create a Ifconfig-eth0 file under the Init.d folder, and then enter the following content in the Ifconfig-eth0 file. Save and exit, modify the Ifconfig-eth0 file's permission bit 755.#!/bin/shEcho-n Try to bring eth0 interface Up......>/dev/ttysac2if [-f/etc/eth0-setting]; ThenSource/etc/eth0-settingIf Grep-q "^/dev/root/nfs"/ETC/MTAB; ThenEcho-n NFS root ... >/dev/ttysac2ElseIfconfig eth0 Downifconfig eth0 hw ether $MACIfconfig eth0 $IP netmask $Mask upRoute add default GW $Gate

"Go" embedded Linux file system startup script and Analysis

restarting the shutdown:: Shutdown:/bin/umount-a-R3. Execute the/etc/init.d/rcs fileThis is a script file where you can add commands that you want to run automatically. The contents are as follows:#! /bin/shPath=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:Runlevel=sPrevlevel=nUmask 022Export PATH runlevel Prevlevel# Network Configuration Script. /etc/init.d/network.sh# load Zlg_fsInsmod/bin/zlg_fs.koInsmod/bin/zlg_ffs.koMKNOD/DEV/ZLG_FSA B 125 0MKNO

Using BusyBox to build the root file system

The contents of the Etc/inittab file are: :: Sysinit:/etc/init.d/rcsS3c2410_serial0::askfirst:-/bin/sh:: Ctrlaltdel:-/sbin/reboot:: Shutdown:/bin/umount-a-R:: Restart:/sbin/init The contents of the Etc/profile file are: # Ash Profile# Vim:syntax=sh# No core Files by defaultUlimit-s-C 0 >/dev/null 2>1User= "' Id-un '"Logname= $USERPs1= ' [\u@\h \w]\# 'Path= $PATHHostname= '/bin/hostname 'Export USER LOGNAME PS1 PATHExport Ld_library_path=lib:/usr/l

Linux Security Hardening Scripts

/serviceschmod 600/etc/securitychmod 750/etc/#启动了nscd服务导致设置权限以后无法登陆chmod 750/ETC/RC6.Dchmod 750/tmpchmod 750/etc/rc0.d/chmod 750/etc/rc1.d/chmod 750/etc/rc2.d/chmod 750/etc/rc4.dchmod 750/etc/rc5.d/chmod 750/etc/rc3.dchmod 750/etc/rc.d/init.d/chmod 600/etc/grub.confchmod 600/boot/grub/grub.confchmod 600/etc/lilo.conf#检查用户umask设置Sed-i '/umask/s/002/077/'/ETC/CSH.CSHRCSed-i '/umask/s/002/077/'/ETC/BASHRCSed-i '/umask/s/002/077/'/etc/profilecsh_login=cat /etc/csh.login | grep -i "umask"If [-z] $csh

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.