private knowhow
Revision | 60f34ec52b63869effdab2279b82785a7dab047b (tree) |
---|---|
Zeit | 2024-11-04 22:42:39 |
Autor | hyperoga <hyperoga@gmai...> |
Commiter | hyperoga |
add some knowhow
@@ -78,6 +78,8 @@ locate | ||
78 | 78 | whois |
79 | 79 | rcs |
80 | 80 | ftp |
81 | +ispell | |
82 | +nkf | |
81 | 83 | |
82 | 84 | 10. sambaインストール http://www.mztn.org/rpi/rpi21.html |
83 | 85 | root@raspberrypi:~# apt-get update |
@@ -152,6 +154,18 @@ TeraTerm | ||
152 | 154 | DNC(GND) |25■□26|SP10 CE1 N |
153 | 155 | +--------+ |
154 | 156 | |
157 | + 温度測定モジュール | |
158 | + P1 3.3v | |
159 | + P6 GND | |
160 | + P7 GPIO4 | |
161 | + | |
162 | + 赤外線モジュール | |
163 | + P1/P17 3.3v (受信) | |
164 | + P2 5.0v (送信) | |
165 | + P6/P20 GND (送受信) | |
166 | + P18 GPIO24 (受信) | |
167 | + P22 GPIO25 (送信) | |
168 | + | |
155 | 169 | Rev1 Rev2 |
156 | 170 | ----------------------------- |
157 | 171 | 3 SDA : GPIO 0 GPIO 2 (BroadName) |
@@ -230,6 +244,110 @@ TeraTerm | ||
230 | 244 | # disp CPU current clock |
231 | 245 | alias cpuclock='cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq | sed -e "s/...$/MHz/"' |
232 | 246 | |
247 | +23. LaTeX 導入 | |
248 | +1. 導入 (RaspberryPi) | |
249 | +(1)インストール (RaspberryPi) | |
250 | + # apt-get install texlive-lang-cjk xdvik-ja latexmk | |
251 | +(2).texのコンパイル | |
252 | + # platex xxx.tex | |
253 | + →xxx.dviができる | |
254 | +(3)div→PDF | |
255 | + # dvipdfm xxx.dvi | |
256 | + | |
257 | +(注)日本語を使う場合はUTF8でtexファイルを作成する。 | |
258 | + | |
259 | + | |
260 | +24. apache2 | |
261 | +(1)/etc/apache2/sits-available/000-default.conf | |
262 | +-------- | |
263 | + # change by oga. (2014/11/16) | |
264 | + #DocumentRoot /var/www/html | |
265 | + DocumentRoot /home/oga/www | |
266 | + | |
267 | + # add by oga. start (2024/09/23,2014/11/16) | |
268 | + <Directory /> | |
269 | + Options FollowSymLinks | |
270 | + AllowOverride None | |
271 | + </Directory> | |
272 | + | |
273 | + # change by oga. (2014/11/16) | |
274 | + #<Directory /var/www/> | |
275 | + #<Directory /home/pi/www/> | |
276 | + <Directory /home/oga/www/> | |
277 | + Options Indexes FollowSymLinks MultiViews | |
278 | + AllowOverride None | |
279 | + #Order allow,deny | |
280 | + #allow from all | |
281 | + Require all granted | |
282 | + </Directory> | |
283 | + | |
284 | + # change by oga. (2014/11/16) | |
285 | + #ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ | |
286 | + #<Directory "/usr/lib/cgi-bin"> | |
287 | + #ScriptAlias /cgi-bin/ /home/pi/www/cgi-bin/ | |
288 | + #<Directory "/home/pi/www/cgi-bin"> | |
289 | + ScriptAlias /cgi-bin/ /home/oga/www/cgi-bin/ | |
290 | + <Directory "/home/oga/www/cgi-bin"> | |
291 | + AllowOverride None | |
292 | + Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch | |
293 | + #Order allow,deny | |
294 | + #Allow from all | |
295 | + Require all granted | |
296 | + </Directory> | |
297 | + # add by oga. end (2024/09/23,2014/11/16) | |
298 | + | |
299 | + : | |
300 | + | |
301 | + # not change by oga. (2014/11/16) | |
302 | + #CustomLog ${APACHE_LOG_DIR}/access.log combined | |
303 | + CustomLog "|/usr/bin/rotatelogs ${APACHE_LOG_DIR}/access.log.%a 86400" common | |
304 | + | |
305 | + # For most configuration files from conf-available/, which are | |
306 | + # enabled or disabled at a global level, it is possible to | |
307 | + # include a line for only one particular virtual host. For example the | |
308 | + # following line enables the CGI configuration for this host only | |
309 | + # after it has been globally disabled with "a2disconf". | |
310 | + | |
311 | + # change by oga. (2024/09/23) | |
312 | + #Include conf-available/serve-cgi-bin.conf | |
313 | + Include conf-available/serve-cgi-bin.conf | |
314 | +-------- | |
315 | + | |
316 | + | |
317 | +(2)/etc/apache2/conf-available/serve-cgi-bin.conf | |
318 | +--- | |
319 | + <IfDefine ENABLE_USR_LIB_CGI_BIN> | |
320 | + # change by oga. (2024/09/23) (2022/05/11) | |
321 | + #ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ | |
322 | + #<Directory "/usr/lib/cgi-bin"> | |
323 | + ScriptAlias /cgi-bin/ /home/oga/www/cgi-bin/ | |
324 | + <Directory "/home/oga/www/cgi-bin"> | |
325 | + AllowOverride None | |
326 | + Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch | |
327 | + Require all granted | |
328 | + </Directory> | |
329 | + | |
330 | + # add by oga. (2024/09/23) (2022/05/11) | |
331 | + <Directory "/home/oga/public_html/cgi"> | |
332 | + AllowOverride None | |
333 | + Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch | |
334 | + Require all granted | |
335 | + </Directory> | |
336 | + </IfDefine> | |
337 | +--- | |
338 | + | |
339 | +(3)/etc/apache2/mods-available/mime.conf | |
340 | +--- | |
341 | + # change by oga. (2024/09/23) | |
342 | + #AddHandler cgi-script .cgi | |
343 | + AddHandler cgi-script .cgi | |
344 | +--- | |
345 | + | |
346 | +(4)# cd /etc/apache2/mods-enabled | |
347 | + # ln -s ../mods-available/cgi.load cgi.load | |
348 | + | |
349 | + | |
350 | +{ | |
233 | 351 | 30. 各種設定 |
234 | 352 | 30.1 /etc/modules |
235 | 353 | (温度センサーモジュールの設定) |
@@ -370,4 +488,90 @@ $ sudo service dphys-swapfile start | ||
370 | 488 | echo "start sysinfd..." |
371 | 489 | /home/oga/bin/sysinfd & |
372 | 490 | fi |
491 | + | |
492 | + if [ -x /home/oga/etc/temp ]; then | |
493 | + echo "start temp logging..." | |
494 | + (/home/oga/etc/temp -loop 600 >> /home/oga/logs/temp.log) & | |
495 | + fi | |
373 | 496 | ---- |
497 | + | |
498 | + | |
499 | +30.9 ommit display sleep | |
500 | +/etc/xdg/lxsession/LXDE/autostart | |
501 | + | |
502 | +@xset s off | |
503 | +@xset s noblank | |
504 | +@xset -dpms | |
505 | + | |
506 | +/etc/lightdm/lightdm.conf | |
507 | + | |
508 | +# | |
509 | +# ommit display standby, suspend | |
510 | +# (2022/06/13 oga) | |
511 | + | |
512 | +[SeatDefaults] | |
513 | +xserver-command=X -s 0 -dpms | |
514 | + | |
515 | + | |
516 | + | |
517 | + | |
518 | + | |
519 | +{ | |
520 | +--- smb.conf.diff | |
521 | +oga@raspberrypi /etc/samba $ diff -C4 smb.conf.org smb.conf | |
522 | +*** smb.conf.org Fri May 6 05:14:08 2022 | |
523 | +--- smb.conf Sun Dec 31 06:22:43 2023 | |
524 | +*************** | |
525 | +*** 163,179 **** | |
526 | + # Allow users who've been granted usershare privileges to create | |
527 | + # public shares, not just authenticated ones | |
528 | + usershare allow guests = yes | |
529 | + | |
530 | + #======================= Share Definitions ======================= | |
531 | + | |
532 | + [homes] | |
533 | + comment = Home Directories | |
534 | + browseable = no | |
535 | + | |
536 | + # By default, the home directories are exported read-only. Change the | |
537 | + # next parameter to 'no' if you want to be able to write to them. | |
538 | +! read only = yes | |
539 | + | |
540 | + # File creation mask is set to 0700 for security reasons. If you want to | |
541 | + # create files with group=rw permissions, set next parameter to 0775. | |
542 | + create mask = 0700 | |
543 | +--- 163,194 ---- | |
544 | + # Allow users who've been granted usershare privileges to create | |
545 | + # public shares, not just authenticated ones | |
546 | + usershare allow guests = yes | |
547 | + | |
548 | ++ # add by oga. (2013/12/29, 2016/12/17, 2022/05/11) | |
549 | ++ # follow sym links | |
550 | ++ wide links = yes | |
551 | ++ unix extensions = no | |
552 | ++ dos charset = CP932 | |
553 | ++ unix charset = CP932 | |
554 | ++ default case = lower | |
555 | ++ case sensitive = no | |
556 | ++ | |
557 | ++ # add by oga. (2023/12/31) for Win2000 | |
558 | ++ server min protocol = NT1 | |
559 | ++ | |
560 | ++ | |
561 | + #======================= Share Definitions ======================= | |
562 | + | |
563 | + [homes] | |
564 | + comment = Home Directories | |
565 | + browseable = no | |
566 | + | |
567 | + # By default, the home directories are exported read-only. Change the | |
568 | + # next parameter to 'no' if you want to be able to write to them. | |
569 | +! # read only = yes | |
570 | +! # change by oga (2022/05/13) | |
571 | +! read only = no | |
572 | + | |
573 | + # File creation mask is set to 0700 for security reasons. If you want to | |
574 | + # create files with group=rw permissions, set next parameter to 0775. | |
575 | + create mask = 0700 | |
576 | + | |
577 | + |