참고(메모)용으로 급히 포스팅 하는 것이라 설명은 생략합니다.
cf) sudo passwd root
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/mysql restart
sudo netstat -tap | grep mysql
wget ftp://ftp.arm.linux.org.uk/pub/armlinux/toolchain/cross-3.2.tar.bz2
tar xjvf cross-3.2.tar.bz2
sudo mv usr/local/arm /usr/local/
vi .bashrc
** export PATH=$PATH:/usr/local/arm/bin/
source .bashrc
arm-linux-gcc -v
arm-linux-gcc -o hello hello.c
file hello
Install ssh
sudo apt-get install ssh
vi /etc/ssh/sshd_config
sudo /etc/init.d/ssh restart
netstat -ntl
cf) sudo passwd root
Install APM at once
sudo apt-get install apache2 libapache2-mod-auth-mysql mysql-server mysql-client php5-common php5 libapache2-mod-php5 php5-mysqlsudo /etc/init.d/apache2 restart
sudo /etc/init.d/mysql restart
sudo netstat -tap | grep mysql
ex)
tcp 0 0 localhost:mysql *:* LISTEN 9981/mysqld
tcp 0 0 localhost:mysql *:* LISTEN 9981/mysqld
Configure arm compiler
sudo apt-get install build-essentialwget ftp://ftp.arm.linux.org.uk/pub/armlinux/toolchain/cross-3.2.tar.bz2
tar xjvf cross-3.2.tar.bz2
sudo mv usr/local/arm /usr/local/
vi .bashrc
** export PATH=$PATH:/usr/local/arm/bin/
source .bashrc
arm-linux-gcc -v
ex)
Reading specs from /usr/local/arm/bin/../lib/gcc-lib/arm-linux/3.2/specs
Configured with: ./configure --target=arm-linux --prefix=/usr/local/arm/ --with-headers=/home/sylam/armbuild/src/linux/include --disable-shared --disable-threads --enable-languages=c : (reconfigured) ./configure --target=arm-linux --prefix=/usr/local/arm/ --with-headers=/home/sylam/armbuild/src/linux/include
Thread model: posix
gcc version 3.2
Reading specs from /usr/local/arm/bin/../lib/gcc-lib/arm-linux/3.2/specs
Configured with: ./configure --target=arm-linux --prefix=/usr/local/arm/ --with-headers=/home/sylam/armbuild/src/linux/include --disable-shared --disable-threads --enable-languages=c : (reconfigured) ./configure --target=arm-linux --prefix=/usr/local/arm/ --with-headers=/home/sylam/armbuild/src/linux/include
Thread model: posix
gcc version 3.2
Compile helloworld.c
vi hello.c
#include <stdio.h>
int main() {
printf("Hello World");
return 0;
}
int main() {
printf("Hello World");
return 0;
}
arm-linux-gcc -o hello hello.c
file hello
ex)
hello:ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), for GNU/Linux 2.0.0, not stripped
hello:ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), for GNU/Linux 2.0.0, not stripped
Install ssh
sudo apt-get install sshvi /etc/ssh/sshd_config
sudo /etc/init.d/ssh restart
netstat -ntl
'컴퓨터' 카테고리의 다른 글
정규표현식 (Regular Expression) (0) | 2015.05.08 |
---|---|
Win7 에서 wget을 이용하여 DnsEver Ddns 업데이트 하기 (0) | 2012.02.29 |
SnowLeopard 10.6.8 업데이트 성공 (0) | 2011.10.23 |
AMD 시스템에서 OSX 네이티브 설치 성공 (0) | 2011.10.17 |
AMD Callisto 550 + VMWare 으로 Snow Leopard 기동 (2) | 2011.09.15 |
브라우저별 접속 빈도 (6) | 2011.07.20 |
또 스킨 변경.. (4) | 2011.07.18 |
DownloadHelper로 4shared 음원 쉽게 받기 (0) | 2011.07.18 |
블로그 스킨 변경 (0) | 2011.07.14 |
45만원 선 게임용 견적 (4) | 2011.07.13 |
IE9 이상으로 브라우저를 업그레이드하거나, 크롬, 파이어폭스 등 최신 브라우저를 이용해주세요.