private knowhow
Révision | cb86e32a179df3d6d5902b7dd91d2b5d659dbd87 (tree) |
---|---|
l'heure | 2022-05-06 00:10:00 |
Auteur | oga <hyperoga@gmai...> |
Commiter | oga |
change raspberry.txt , xbasic.txt
@@ -78,6 +78,13 @@ wheezy | ||
78 | 78 | |
79 | 79 | root@raspberrypi:~# pdbedit -a -u pi |
80 | 80 | |
81 | +(2016/12/17) | |
82 | + 以下をインストールして、smbpasswd -a oga | |
83 | + でもユーザ追加できた | |
84 | + # apt-get install samba-common-bin | |
85 | + | |
86 | + | |
87 | + | |
81 | 88 | 11. SourceForgeのソースアクセス |
82 | 89 | (1)$ ssh-keygen |
83 | 90 | (2)右上ユーザ名→ユーザ設定→「SSH公開鍵管理ページへ」で |
@@ -101,6 +108,11 @@ root@raspberrypi:~# pdbedit -a -u pi | ||
101 | 108 | # modprobe w1-therm |
102 | 109 | $ cat /sys/bus/w1/devices/28-00000647ecf9/w1_slave |
103 | 110 | |
111 | + <</etc/modules>> | |
112 | + # add by oga. (2014/10/04) | |
113 | + w1-gpio | |
114 | + w1-therm | |
115 | + | |
104 | 116 | 19. 消費電力 |
105 | 117 | LANケーブルなし : 5V/0.33A = 1.65w |
106 | 118 | LANケーブル接続 : 5V/0.38A = 1.90w |
@@ -166,4 +178,80 @@ root@raspberrypi:~# pdbedit -a -u pi | ||
166 | 178 | 12345678 1 2 3 4 5 6 7 8 91011121314151617181920212223242526 |
167 | 179 | |
168 | 180 | |
181 | +30. 各種設定 | |
182 | +30.1 /etc/modules | |
183 | + (温度センサーモジュールの設定) | |
184 | + ----- | |
185 | + # add by oga. (2014/10/04) | |
186 | + w1-gpio | |
187 | + w1-therm | |
188 | + ----- | |
189 | + | |
190 | +30.2 /etc/fstab | |
191 | + coLinuxの10GBドライブの利用 | |
192 | + ----- | |
193 | + /hdimg/hdd_10gb /hd ext4 loop 0 0 | |
194 | + ----- | |
195 | + | |
196 | +30.3 samba | |
197 | +(1)ユーザ追加 | |
198 | + pdbedit -a -u <user>か | |
199 | + 以下をインストールして、smbpasswd -a oga でもユーザ追加できた | |
200 | + # apt-get install samba-common-bin | |
201 | +(2)/etc/smb.conf | |
202 | + ----------- | |
203 | + [global] | |
204 | + : | |
205 | + # add by oga. (2013/12/29, 2016/12/17) | |
206 | + # follow sym links | |
207 | + wide links = yes | |
208 | + unix extensions = no | |
209 | + dos charset = CP932 | |
210 | + unix charset = CP932 | |
211 | + default case = lower | |
212 | + case sensitive = no | |
213 | + ----------- | |
214 | + | |
215 | +30.4 less | |
216 | + SJISが使えなくなっているので、 | |
217 | + lvをインストールして.bashrc 以下を追加 | |
218 | + ----------- | |
219 | + #export PAGER=less | |
220 | + export PAGER='lv -As' | |
221 | + ----------- | |
169 | 222 | |
223 | +30.5 .bashrc | |
224 | + ---------- | |
225 | + # oga's env | |
226 | + #alias lsf='ls -F' | |
227 | + #alias lll='ls -ltr' | |
228 | + alias lsf='ls -F --show-control-chars' | |
229 | + alias ll='ls -l --show-control-chars' | |
230 | + alias lll='ls -ltr --show-control-chars' | |
231 | + | |
232 | + alias psef='ps -ef |grep' | |
233 | + alias apts='apt-cache search' | |
234 | + alias apti='apt-get install' | |
235 | + alias pkggrep='dpkg -l |grep ' | |
236 | + alias langc='export LANG=C' | |
237 | + alias sjis='export LANG=ja_JP.SJIS' | |
238 | + alias utf='export LANG=ja_JP.UTF-8' | |
239 | + # disp temperature | |
240 | + alias cputemp='cat /sys/class/thermal/thermal_zone0/temp |sed -e "s/^\(..\)/\1./"' | |
241 | + # disp CPU current clock | |
242 | + alias cpuclock='cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq | sed -e "s/...$/MHz/"' | |
243 | + alias templog='tail -f ~/log/temp.log' | |
244 | + | |
245 | + set convert-meta off | |
246 | + set meta-flag on | |
247 | + set output-meta on | |
248 | + | |
249 | + export EDITOR=vi | |
250 | + #export PAGER=less | |
251 | + export PAGER='lv -As' | |
252 | + export CDPATH=.:/home/oga:/home/pi/git | |
253 | + | |
254 | + export NODE_JS_HOME=/home/pi/nodejs/app/node-v0.10.28-linux-arm-pi | |
255 | + export PATH=$PATH/bin:$PATH/etc:$PATH:$NODE_JS_HOME/bin | |
256 | + export LANG=C | |
257 | + ---------- |