RPi-Monitor/OPi-Monitor /etc/rpimonitor/template/sdcard.conf

9. Oktober 2017

fuer Orange Pi Zero verbesserte Version von George Poulson (FB):

https://pastebin.com/Fr0irRAg

########################################################################
# Extract SDCard information
# Page: 1
# Information Status Statistics
# – root total – yes – yes
# – root used – yes – yes
# – boot total – no – no
# – boot used – no – no
########################################################################
static.7.name=sdcard_root_total
static.7.source=df /
static.7.regexp=\S+\s+(\d+).*\/$
static.7.postprocess=$1/1024

#static.8.name=sdcard_boot_total
#static.8.source=df /boot
#static.8.regexp=\S+\s+(\d+).*\/boot$
#static.8.postprocess=$1/1024

dynamic.6.name=sdcard_root_used
dynamic.6.source=df /
dynamic.6.regexp=\S+\s+\d+\s+(\d+).*\/$
dynamic.6.postprocess=$1/1024
dynamic.6.rrd=GAUGE

#dynamic.7.name=sdcard_boot_used
#dynamic.7.source=df /boot
#dynamic.7.regexp=\S+\s+\d+\s+(\d+).*\/boot$
#dynamic.7.postprocess=$1/1024
#dynamic.7.rrd=GAUGE

web.status.1.content.7.name=SD card
web.status.1.content.7.icon=sd.png
#web.status.1.content.7.line.1=“<b>/boot</b> Used: <b>“+KMG(data.sdcard_boot_used,’M‘)+“</b> (<b>“+Percent(data.sdcard_boot_used,data.sdcard_boot_total,’M‘)+“</b>) Free: <b>“+KMG(data.sdcard_boot_total-data.sdcard_boot_used,’M‘)+ „</b> Total: <b>“+ KMG(data.sdcard_boot_total,’M‘) +“</b>“
#web.status.1.content.7.line.2=ProgressBar(data.sdcard_boot_used,data.sdcard_boot_total,60,80)
web.status.1.content.7.line.1=“<b>/</b> Used: <b>“+KMG(data.sdcard_root_used,’M‘) + „</b> (<b>“ + Percent(data.sdcard_root_used,data.sdcard_root_total,’M‘)+“</b>) Free: <b>“+KMG(data.sdcard_root_total-data.sdcard_root_used,’M‘)+ „</b> Total: <b>“+ KMG(data.sdcard_root_total,’M‘) + „</b>“
web.status.1.content.7.line.2=ProgressBar(data.sdcard_root_used,data.sdcard_root_total,60,80)

#web.statistics.1.content.3.name=Disks – boot
#web.statistics.1.content.3.graph.1=sdcard_boot_total
#web.statistics.1.content.3.graph.2=sdcard_boot_used
#web.statistics.1.content.3.ds_graph_options.sdcard_boot_total.label=Size of /boot (MB)
#web.statistics.1.content.3.ds_graph_options.sdcard_boot_total.color=“#FF7777″
#web.statistics.1.content.3.ds_graph_options.sdcard_boot_used.label=Used on /boot (MB)
#web.statistics.1.content.3.ds_graph_options.sdcard_boot_used.lines={ fill: true }
#web.statistics.1.content.3.ds_graph_options.sdcard_boot_used.color=“#7777FF“

web.statistics.1.content.4.name=Disks – root
web.statistics.1.content.4.graph.1=sdcard_root_total
web.statistics.1.content.4.graph.2=sdcard_root_used
web.statistics.1.content.4.ds_graph_options.sdcard_root_total.label=Size of / (MB)
web.statistics.1.content.4.ds_graph_options.sdcard_root_total.color=“#FF7777″
web.statistics.1.content.4.ds_graph_options.sdcard_root_used.label=Used on / (MB)
web.statistics.1.content.4.ds_graph_options.sdcard_root_used.lines={ fill: true }
web.statistics.1.content.4.ds_graph_options.sdcard_root_used.color=“#7777FF“
########################################################################

Advertisements

RPi-Monitor/OPi-Monitor /etc/rpimonitor/template/memory.conf

9. Oktober 2017

fuer Orange Pi Zero verbesserte Version von George Poulson (FB):
https://pastebin.com/cpjB9y0U

########################################################################
# Extract Memory information
# Page: 1
# Information Status Statistics
# – memory total – yes – yes
# – memory free – yes – yes
# – memory available – yes – yes
########################################################################
static.5.name=memory_total
static.5.source=/proc/meminfo
static.5.regexp=MemTotal:\s+(\d+)
static.5.postprocess=$1/1024

dynamic.9.name=memory_free
dynamic.9.source=/proc/meminfo
dynamic.9.regexp=MemFree:\s+(\d+)
dynamic.9.postprocess=$1/1024
dynamic.9.rrd=GAUGE

dynamic.15.name=memory_available
dynamic.15.source=/usr/bin/free -mk
#dynamic.15.regexp=^-\/\+ buffers\/cache:\s+\d+\s+(\d+)
dynamic.15.regexp=Mem:\s+\d+\s+\d+\s+\s+\d+\s+\s+\d+\s+\d+\s+(\d+)
dynamic.15.postprocess=$1/1024
dynamic.15.rrd=GAUGE

web.status.1.content.5.name=Memory
web.status.1.content.5.icon=memory.png
web.status.1.content.5.line.1=“Used: <b>“ + KMG(data.memory_total-data.memory_available,’M‘) + „</b> (<b>“ + Percent(data.memory_total-data.memory_available,data.memory_total,’M‘) + „</b>) Available: <b>“ + KMG(data.memory_available,’M‘) + „</b> Total: <b>“ + KMG(data.memory_total,’M‘) + „</b>“
web.status.1.content.5.line.2=ProgressBar(data.memory_total-data.memory_available,data.memory_total)

web.statistics.1.content.6.name=Memory
web.statistics.1.content.6.graph.1=memory_total
web.statistics.1.content.6.graph.2=memory_free
web.statistics.1.content.6.graph.3=memory_available
web.statistics.1.content.6.ds_graph_options.memory_total.label=Total Memory(MB)
web.statistics.1.content.6.ds_graph_options.memory_free.label=Free Memory (MB)
web.statistics.1.content.6.ds_graph_options.memory_free.color=“#7777FF“
web.statistics.1.content.6.ds_graph_options.memory_available.label=Available Memory (MB)
web.statistics.1.content.6.ds_graph_options.memory_available.color=“#77FF77″
########################################################################

whitelist Servernamen fuer Google-Adds auf Google-Suchseite

4. Oktober 2017

dartsearch.net
clickserve.dartsearch.net
googleadservices.com
www.dartsearch.net
www.googleadservices.com

ansonsten kann man keine Angebote aufrufen, die auf der Google-Seite angeboten werden

whitelist server fuer Pi-Hole und spiegel.de

4. Oktober 2017

imagesrv.adition.com

Banana Pi M2 Berry umstellen zwischen 720p und 1080p

4. Oktober 2017

bpi-bootsel /usr/lib/u-boot/bananapi/bpi-m2u/BPI_M2U_1080P.img.gz
/usr/lib/u-boot/bananapi/bpi-m2p/BPI-M2P-1080P.img.gz

Disks: (lsblk | grep disk)
mmcblk0 179:0 0 28.8G 0 disk

Disks: (fdisk -l | grep Disk | grep bytes)
Disk /dev/mmcblk0: 28.8 GiB, 30908350464 bytes, 60367872 sectors
root@m2berry:/# bpi-bootsel /usr/lib/u-boot/bananapi/bpi-m2u/BPI_M2U_1080P.img.gz
Warning: Try to write to BOOTDISK /dev/mmcblk0
INFO: /dev/mmcblk0 : SD/eMMC !!
umount device: /dev/mmcblk0
umount /dev/mmcblk0p1

##########################
# Burning the bootloader #
##########################

sudo gunzip -c /usr/lib/u-boot/bananapi/bpi-m2u/BPI_M2U_1080P.img.gz | dd of=/dev/mmcblk0 bs=1024 seek=8
sudo: unable to resolve host m2berry

102392+0 records in
102392+0 records out
104849408 bytes (105 MB, 100 MiB) copied, 33.2562 s, 3.2 MB/s
sudo: unable to resolve host m2berry
OK!! You can reboot the system now!!

bpi-bootsel /usr/lib/u-boot/bananapi/bpi-m2u/BPI_M2B_720P.img.gz

Initiale Befehle fuer Mystic BBS

4. Oktober 2017

lokaler Login:
/mystic/mystic -l

Config:
/mystic/mystic -cfg

Server as daemon:
/mystic/mis -d

Server im Fenster:
/mystic/mis

Get back eth0 and wlan0 in debian 9 stretch

4. Oktober 2017

http://www.itzgeek.com/how-tos/mini-howtos/change-default-network-name-ens33-to-old-eth0-on-ubuntu-16-04.html

sudo vi /etc/default/grub

from

GRUB_CMDLINE_LINUX=““

to

GRUB_CMDLINE_LINUX=“net.ifnames=0 biosdevname=0″

then

sudo grub-mkconfig -o /boot/grub/grub.cfg

Slow down Allwinner H3-device

4. Oktober 2017

echo 0 >/sys/devices/system/cpu/cpu3/online
echo 0 >/sys/devices/system/cpu/cpu2/online
echo 0 >/sys/devices/system/cpu/cpu1/online
echo 408000 >/sys/devices/platform/sunxi-ddrfreq/devfreq/sunxi-ddrfreq/userspace/set_freq

echo 0 >/sys/devices/system/cpu/cpu3/online
echo 0 >/sys/devices/system/cpu/cpu2/online
echo 0 >/sys/devices/system/cpu/cpu1/online
echo 264000 >/sys/devices/platform/sunxi-ddrfreq/devfreq/sunxi-ddrfreq/userspace/set_freq

h3consumption -m 912 -c 4 -d 408 -g off -u on -e fast -w on
h3consumption -m 912 -c 1 -d 408 -g off -u on -e fast -w on
h3consumption -m 912 -c 1 -D 132 -g off -u on -e fast -w on
h3consumption -m 912 -c 1 -D 132 -g off -u on -e fast -w off

man command installieren fuer man-pages

4. Oktober 2017

apt-get install man-db

SMB-Share via Commandline nutzen

4. Oktober 2017

apt-get install cifs-utils
mount -t cifs -o user=guido,domain=guido //192.168.6.109/data /mnt/data
root@NanoPiDuo:/mnt# mount -t cifs -o user=guido,domain=guido //192.168.6.109/data /mnt/data
Password for guido@//192.168.6.109/data: *******

oder mit Passwort
mount -t cifs -o user=guido,password=PASSWD,domain=guido //192.168.6.109/data /mnt/data