MinGW+MinTTY 環境構築メモ
Cygwinと共存させるため、パスはシステムに設定しないでMinGWでMinTTYを使えるようにする。 (環境変数にHOMEが変更されてしまった場合、Cygwinの動作がおかしくなるので注意。)
| #!/usr/bin/env perl | |
| use utf8; | |
| use strict; | |
| use warnings; | |
| use URI::Escape; | |
| binmode(STDOUT,':utf8'); | |
| my %cnf=( | |
| name => 'prowl_notify_wifi_addr', | |
| curl => '/usr/bin/curl', |
MinGW+MinTTY 環境構築メモ
Cygwinと共存させるため、パスはシステムに設定しないでMinGWでMinTTYを使えるようにする。 (環境変数にHOMEが変更されてしまった場合、Cygwinの動作がおかしくなるので注意。)
| 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 |