项目

一般

简介

A9 Linux主机配置过程.txt

韦 士飞, 2016-07-01 09:04

 
1

    
2

    
3
1. ??ԭA6??/binĿ¼?µ???setup??β?ļ????Ƶ?/binĿ¼?£????޸?goaheadsetup?ļ???./goahead ǰ???ӡ?wr ?????޸ĺ????????£?
4
#!/bin/sh
5
cd /usr/local/goahead
6
wr ./goahead --log /opt/log.txt:2 /NandFlash/www/wwwpub &
7

    
8

    
9

    
10

    
11
2. ??ԭA6??/etc/Ŀ¼?µ?net.conf??net2.conf?ļ????Ƶ?/etc/Ŀ¼??
12

    
13
3. ??ԭA6??/etc/init.d/Ŀ¼?µ?ifconfig-eth0??ifconfig-eth1?ļ????Ƶ?/etc/init.d/Ŀ¼?£??????????޸ģ?
14
	??1??ע??ifconfig-eth0?ļ??еģ?ifconfig eth0 hw ether $MAC
15
	??2??ע??ifconfig-eth1?ļ??еģ?ifconfig eth1 hw ether $MAC
16

    
17
	
18
	
19
4. ?޸?/etc/init.d/S40network?ļ??????????޸ģ?
20
	??1???? ??ifconfig eth0 "192.168.1.136" netmask 255.255.255.0 up?? ??Ϊ ??/etc/init.d/ifconfig-eth0??
21
	??2???? ??ifconfig eth1 "192.168.2.136" netmask 255.255.255.0 up?? ??Ϊ ??/etc/init.d/ifconfig-eth1??
22
	
23
	
24
5. ??/etc/init.d/Ŀ¼?????? S90omapp ?ļ????ļ????????£?
25
#!/bin/sh
26

    
27
source /etc/profile
28

    
29
sleep 10
30
rm -rf /opt/tmp/omappsu.log.ini
31
rm -rf /opt/tmp/omsuw.log.ini
32
/bin/omappsusetup
33

    
34
sleep 10
35
/bin/goaheadsetup
36

    
37
sleep 10
38
rm -rf /opt/tmp/omapppost.log.ini
39
/bin/omapppostsetup
40

    
41
sleep 10
42
rm -rf /opt/tmp/omtray.log.ini
43
/bin/omtraysetup
44

    
45

    
46
6. ??goahead????˵?????±???web?????????????????ɵ?goahead??ִ???ļ????Ƶ?/usr/local/goaheadĿ¼?£?
47
# wr mkdir /usr/local
48
# wr mkdir /usr/local/goahead
49
# wr cp build/linux-arm-default/bin/* /usr/local/goahead/
50
# wr cp /usr/local/goahead/*.so /lib/
51
# wr cp /usr/local/goahead/*.a /lib/
52
# wr cp src/*.txt /usr/local/goahead/
53

    
54

    
55
7. ??iconv????˵?????±???iconv?ֿ⡣?????????ɵ?iconv???ļ????Ƶ?/opt/libĿ¼??,????/libĿ¼?´??????ӣ?
56
  # wr mkdir /opt/lib/
57
  # wr cp -arf iconv/lib/* /opt/lib/
58
  # wr cp -s /opt/lib/* /lib/
59
  
60
or: ?????????ɵ?iconv???ļ????Ƶ?/libĿ¼??(????ռ??㹻)??
61
  # wr cp -arf iconv/lib/* /lib/
62

    
63

    
64
8. ??curl????˵?????±???curl?⡣?????????ɵ?curl???ļ????Ƶ?/libĿ¼?£?
65
  # wr cp -arf curl/build/lib/* /lib/
66

    
67
9. ??/opt/Ŀ¼?´???"NandFlash"Ŀ¼??????????A6????ͬ??Ŀ¼?ṹ?????ڸ?Ŀ¼?½?????????ӣ?
68
  # cd /
69
  # mkdir /opt/NandFlash
70
  # wr ln -s /opt/NandFlash NandFlash
71

    
72

    
73
10. ??/etc/fstab?ļ?ĩβ???????????ݣ?
74
tmpfs		/NandFlash/tmp	tmpfs	size=2m			0	0