/ 雑記帳

[ カテゴリー » Raspberry Pi 2 Model B ]

Raspberry Pi 2 Model B へインストールOSをインストール...参考

http://techblog.clara.jp/2015/02/raspberry-pi-2-model-b_install_and_ssh_connect/

— posted by くま at 07:03 pm   pingTrackBack [0]

 

Linux volumio 4.1.13-v7+ Raspberry Pi2 自動ログイン設定(2)

ログインの設定ファイルが/etc/inittabから変更になって
従来の方法では自動ログインが出来なくなった。

# cd /etc/systemd/system/

# ll

total 32

drwxr-xr-x 2 root root 4096 12月 8 04:58 bluetooth.target.wants

lrwxrwxrwx 1 root root 37 12月 8 04:58 dbus-org.bluez.service -> /lib/systemd/system/bluetooth.service

lrwxrwxrwx 1 root root 40 10月 9 2014 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service

drwxr-xr-x 2 root root 4096 12月 8 03:53 getty.target.wants

drwxr-xr-x 2 root root 4096 12月 8 03:53 halt.target.wants

drwxr-xr-x 2 root root 4096 12月 8 04:46 multi-user.target.wants

drwxr-xr-x 2 root root 4096 12月 8 03:53 poweroff.target.wants

drwxr-xr-x 2 root root 4096 12月 8 03:53 reboot.target.wants

drwxr-xr-x 2 root root 4096 10月 27 2014 sockets.target.wants

lrwxrwxrwx 1 root root 31 12月 8 04:40 sshd.service -> /lib/systemd/system/ssh.service

drwxr-xr-x 2 root root 4096 12月 7 09:38 sysinit.target.wants

# ll getty.target.wants

total 0

lrwxrwxrwx 1 root root 34 12月 8 03:53 getty@tty1.service -> /lib/systemd/system/getty@.service

# cat /lib/systemd/system/getty@.service

# This file is part of systemd.

#

# systemd is free software; you can redistribute it and/or modify it

# under the terms of the GNU Lesser General Public License as published by

# the Free Software Foundation; either version 2.1 of the License, or

# (at your option) any later version.

---------省略-----------

[Service]

# the VT is cleared by TTYVTDisallocate

#ExecStart=-/sbin/agetty --noclear %I $TERM

ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux

---------省略-----------

      
参考リンク:https://wiki.archlinuxjp.org/index.php/%E4%BB%AE%E6%83%B3%E7%AB%AF%E6%9C%AB%E3%81%AB%E8%87%AA%E5%8B%95%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3

— posted by くま at 12:42 pm   pingTrackBack [0]

hifiberry-dacを有効に、nfs-clientを有効に

# vi /boot/config.txt
dtparam=i2s=on
dtoverlay=hifiberry-dac
      
# apt-get install mpd mpc
# apt-get install nfs-client
# update-rc.d rpcbind defaults
insserv: warning: current start runlevel(s) (empty) of script `rpcbind' overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (0 1 6 S) of script `rpcbind' overrides LSB defaults (0 1 6).

— posted by くま at 05:16 pm   pingTrackBack [0]

CentOS5で、lzhファイルの解凍

http://m97087yh.seesaa.net/article/120822496.html

— posted by くま at 09:55 pm   pingTrackBack [0]

 

うーんピッチが...

ほーりーさんの日記
http://horliy.seri.gr.jp/mt/horliy-blog/2015/05/volumio155-1.html

— posted by くま at 09:04 am   pingTrackBack [0]

自動ログインアカウント専用のコマンド

debian:http://www.geocities.co.jp/SiliconValley-PaloAlto/3626/setting_tips/autologin/20070111_autologin01.htm
Archlinux:https://wiki.archlinuxjp.org/index.php/%E4%BB%AE%E6%83%B3%E7%AB%AF%E6%9C%AB%E3%81%AB%E8%87%AA%E5%8B%95%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3

— posted by くま at 03:36 pm   pingTrackBack [0]

raspberrypi2

download先の解説、インストールのやり方が分かりやすく解説されている。
http://ryus.co.jp/blog/raspberrypi2-2/

— posted by くま at 07:03 pm   pingTrackBack [0]

Raspberry Pi 2 カーネル4.0.7のクロスコンパイルメモ

http://nokute.hatenablog.com/entry/2015/07/08/235005
http://abc002.blogspot.jp/2013/01/raspberry-pi-alsa-i2s.html

— posted by くま at 04:17 pm   pingTrackBack [0]

pingで一個ずつ叩く...

#!/bin/sh

echo "-現PC IP------"

mip=`ip a | grep inet | grep -v 127 | grep -v inet6 | grep eth | ¥

awk '{print $2}' | awk -F"/" '{print $1}'`

mip2=`ip a | grep inet | grep -v 127 | grep -v inet6 | grep eth | awk '{print $2}' |¥

awk -F"/" '{print $1}'| sed 's/[1-9]$/¥,/g' | sed 's/¥.¥,//g'`

echo "$mip"

#echo "$mip2"

for i in `seq 1 1 64`

do

# echo "$i"

res=`ping -c 1 "$mip2.$i" | grep ttl | awk '{print $8}'`

pcn=`echo "192.168.11.$i"`

if [ "$res" = "ms" ]

then

echo "-------------"

echo "Respons OK"

echo "$pcn"

#else

#echo "-------------"

#echo "192.168.11.$i"

#echo "レスポンスがありません"

fi

done


— posted by くま at 02:58 pm   pingTrackBack [0]

Raspbian 設定

修正が必要なファイル
/etc/hosts
/etc/hosts.allow
/etc/hosts.deny
/etc/network/interfaces
#固定アドレスにする
iface eth0 inet static
address 192.168.1.11
netmask 255.255.255.0
gateway 192.168.1.1
#

— posted by くま at 09:21 pm   pingTrackBack [0]

<< 2024.4 >>
SMTWTFS
 1 2 34 56
7 8910 1112 13
1415 161718 1920
21 222324 2526 27
28 2930    
 
























T: Y: ALL: Online:
ThemePanel
  • Basic
Created in 0.1035 sec.