라즈베리파이 관련 책 2권 읽기

사물인터넷을 위한 리눅스 프로그래밍 with 라즈베리파이
아두이노처럼 사용하는 라즈베리파이 3 직접 코딩하기

책을 읽으면서 실습한 부분들을 기록해 보려고 한다. 리눅스 프로그래밍은 해본 적이 없어서 진행이 더디겠지만, 조금 시간이 걸리더라도 결국은 목표를 이룰 것이다.

 

프로젝트 기간을 두는 이유

 기간 안에 프로젝트를 완료하기 위함보다는 진행이 느려지지 않게 하기 위해서다.

 

기록하는 이유

 배우는 자주 종종 사용하지 않으면 기억에서 지워진다. 빠르게 기록물을 본다면 금방 기억날 것이다.

 

계획

  1. 리눅스 기본 명령어 및 주요 명령어 익히기
    • 기본 명령어
      • ls, clear, echo, cp, rm, mv, in, cd, mkdir, rmdir, pwd, date, dirs, pushd, popd, cat, more, wc, man, apropos, which, find, grep, adduser, sudo, su, who
    • 주요 명령어
      • wall, logout, dmesg, chmod, chown, chgrp, passwd, du, df, free, mount, ps, kill, top, fg, bg, sync, cal, tar, comporess, halt, reboot, poweroff, startx, telnet, ftp, apt-get, apt-cache
  2. 작성 중......
  3. ......

이 페이지는 항상 업데이트 될 것이다.

반응형
블로그 이미지

두리뭉실:해피파인더그룹

컴퓨터 코치 두리뭉실

,

라즈베리파이를 이용하여 이것저것 해볼 때 터미털 창에 표시되는 명령어 또는 출력물들을 웹페이지에 넣어야 한다. 스크린 캡처는 보는 것은 좋지만, COPY & PASTE는 할 수 없고 텍스트만 넣으면 그 반대의 상황이 된다. 

 

이럴 땐 자바스크립트(with jQuery & CSS)로 만들어진  -> CSSTerm <-를 이용하면 된다.

$ uname -a Linux ThinkPad-X230.localdomain 3.9.6-301.fc19.x86_64 #1 SMP Mon Jun 17 14:26:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux # dmesg | grep sd [135587.413741] sd 27:0:0:0: Attached scsi generic sg1 type 0 [135587.416697] sd 27:0:0:0: [sdb] 2007040 512-byte logical blocks: (1.02 GB/980 MiB) [135587.418130] sd 27:0:0:0: [sdb] Write Protect is off [135587.418140] sd 27:0:0:0: [sdb] Mode Sense: 03 00 00 00 [135587.418944] sd 27:0:0:0: [sdb] No Caching mode page present [135587.418947] sd 27:0:0:0: [sdb] Assuming drive cache: write through [135587.423205] sd 27:0:0:0: [sdb] No Caching mode page present [135587.423211] sd 27:0:0:0: [sdb] Assuming drive cache: write through [135587.424119] sdb: sdb1 sdb2 [135587.428088] sd 27:0:0:0: [sdb] No Caching mode page present [135587.428094] sd 27:0:0:0: [sdb] Assuming drive cache: write through [135587.428098] sd 27:0:0:0: [sdb] Attached SCSI removable disk [135588.336077] SELinux: initialized (dev sdb1, type iso9660), uses genfs_contexts # mkfs.ext4 /dev/sdb1 mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 245280 inodes, 979456 blocks 48972 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=1006632960 30 block groups 32768 blocks per group, 32768 fragments per group 8176 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 20 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.

 

설치 가이드를 보면 <head></head> 안에 css와 js를 코드를 넣고, 관련 파일을 복사한 후에 사용하면 된다. 하지만 가이드처럼 티스토리에 적용을 하려고 하니, 적용이 되지 않았다.

 

'나 자바스크립트 잘 모르고, jQuery도 모르는데 ㅠㅠ'

 

관련 파일들이 로드되면서 충돌이 있는 거 같다. 그래서 필요한 속성들을 사용할 수가 없다. 그래서 <head></head> 부분이 아닌 마지막 부분에 필요한 코드를 넣었더니 잘 동작하였다.

 

p.s 이보다 좋은 해결 방법이 있다면 댓글로 알려 주세요. ^^/

 

반응형
블로그 이미지

두리뭉실:해피파인더그룹

컴퓨터 코치 두리뭉실

,