参考: Raspberry Pi(Raspbian)にmDNSを設定する
# vim /etc/hostname
raspberrypi1
# aptitude install avahi-daemon libnss-mdns
# cat > /etc/avahi/services/ssh.service << 'EOS'
diff -cr mt7610u_wifi_sta_v3002_dpo_20130916.orig/Makefile mt7610u_wifi_sta_v3002_dpo_20130916/Makefile | |
*** mt7610u_wifi_sta_v3002_dpo_20130916.orig/Makefile 2013-09-16 23:03:08.000000000 +0900 | |
--- mt7610u_wifi_sta_v3002_dpo_20130916/Makefile 2015-01-18 18:01:21.657950330 +0900 | |
*************** | |
*** 14,20 **** | |
# rt8592(for rt85592), mt7650e, mt7630e, mt7610e, mt7650u, mt7630u, mt7610u | |
ifeq ($(CHIPSET),) | |
! CHIPSET = mt7650u mt7630u mt7610u | |
endif |
@echo off | |
SET HOME=/home/%USERNAME% | |
cd /d C:\cygwin64\bin | |
start "" mintty - |
# Print the IP address | |
_IP=$(hostname -I) || true | |
if [ "$_IP" ]; then | |
printf "My IP address is %s\n" "$_IP" | |
fi | |
# Debianで起動後画面を消さないなら | |
vim /etc/inittab | |
1:2345:respawn:/sbin/getty --noclear 38400 tty1 |
vim /etc/inittab | |
#1:2345:respawn:/sbin/getty --noclear 38400 tty1 | |
1:2345:respawn:/bin/login -f demouser tty1 </dev/tty1 >/dev/tty1 2>&1 |
参考: Raspberry Pi(Raspbian)にmDNSを設定する
# vim /etc/hostname
raspberrypi1
# aptitude install avahi-daemon libnss-mdns
# cat > /etc/avahi/services/ssh.service << 'EOS'
http://blog.mamemomonga.com/2015/01/raspberry-piraspbiansshhdmix.html
$ sudo aptitude install fbi
/dev/tty1 へのアクセスのために、root権限が必要。
yysk.png を表示する
#!/bin/bash | |
REV=`zcat /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz | grep '* firmware as of' | head -n 1 | sed -e 's/\ \*\ firmware as of \(.*\)$/\1/'` | |
rm -rf rasp-tmp | |
mkdir -p rasp-tmp | |
mkdir -p rasp-tmp/linux | |
wget https://raw.github.com/raspberrypi/firmware/$REV/extra/git_hash -O rasp-tmp/git_hash | |
wget https://raw.github.com/raspberrypi/firmware/$REV/extra/Module.symvers -O rasp-tmp/Module.symvers |
#!/bin/sh | |
LEDGPIO=27 | |
echo $LEDGPIO > /sys/class/gpio/export | |
echo out > /sys/class/gpio/gpio$LEDGPIO/direction | |
trap 'echo 0 > /sys/class/gpio/gpio$LEDGPIO/value; echo $LEDGPIO > /sys/class/gpio/unexport; exit' 1 2 3 15 | |
while true; do | |
echo 1 > /sys/class/gpio/gpio$LEDGPIO/value | |
sleep 1 | |
echo 0 > /sys/class/gpio/gpio$LEDGPIO/value |
#!/usr/bin/env perl | |
# Raspberry Pi | |
# Perl(IO::Poll)でGPIO 22に直結したボタンが押されたときに反応する | |
# プルアップはBCM2835の機能を使う、Device::BCM2835 を使ってこの設定をする | |
# 回路: | |
# [ GPIO 22 ] - [ 押しボタンスイッチ ] - [ GND ] | |
# |
#!/bin/sh -x | |
xattr -d Zone.Identifier * | |
chflags -R nouchg * | |
sudo chown 644 * |