Technology

Sudah siap menghasilkan listrik sepertinya PLTSurya ini…

via Instagram http://ift.tt/2hNdrRH
Advertisements
Technology

Raspberry – Jessi – RDS 7.2.0 – pymodbus – hamachi

  • Login
  • sudo su
  • Change Password  user pi and root
  • raspi-config
    • change timezone
    • change memory split –> 128
    • expand sd
    • reboot
  • apt-get update
    • if NO_PUBKEY 379CE192D401AB61
      apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
  • apt-get upgrade
  • apt-get install rpi-update
  • rpi-update
  • Install Raspberry Pi Web Server — Nginx – PHP – MySql
  • apt-get install dosfstools
  • download logmein-hamachi-2.1.0.139-armhf.tgz
  • tar zxvf logmein-hamachi-2.1.0.139-armhf.tgz
  • cd logmein…..
  • ./install
    • if lsb error
    • apt-get -y install --fix-missing lsb lsb-core
    • hamachi
  • Disable text terminals from blanking c
  • nano /etc/kbd/config
    BLANK_TIME=0
    POWERDOWN_TIME=0
  • Disable Xsession from blanking
  • nano /etc/xdg/lxsession/LXDE/autostart   or  /etc/xdg/lxsession/LXDE-pi/autostart or ~/.xinitrc
  • @xset s noblank
    @xset s off
    @xset -dpms
  • if maybe another wm is running –>
  • if Screen / Xorg not display. delete /usr/share/X11/xorg.conf.d/99-fbturbo.conf
  • For LCD-show, just edit  config.txt, cmdline.txt

 

Technology

Raspbian Jessie – rc.local compatibility – solution

rc.local compatibility Raspbian Jessi

nano /etc/systemd/system/rc-local.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 General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99

[Install]
WantedBy=multi-user.target

systemctl enable rc-local.service

Technology

Strip – Raspbian Jessie

Remove unwanted package from fresh Raspbian Jessie instalation…


sudo apt-get remove --purge wolfram-engine

658 MB disk space will be freed.

sudo apt-get remove --purge scratch
92.5 MB disk space will be freed.

sudo apt-get remove --purge python-pygame
6,993 kB disk space will be freed.

sudo apt-get remove --purge sonic-pi
98.7 MB disk space will be freed.

sudo apt-get remove --purge bluej
7,168 kB disk space will be freed.

sudo apt-get remove --purge greenfoot
10.2 MB disk space will be freed.

sudo apt-get remove --purge minecraft-pi
4,362 kB disk space will be freed.

sudo apt-get autoremove
est. 110 MB disk space will be freed.

sudo apt-get install localepurge
choose EN only.
sudo localepurge

 

 

 

Technology

Rsync – source to target

Get ssh keys from source

copy ssh keys to target

edit sshd source with the default username to target

execute:

/usr/bin/rsync -azL –timeout=59 –rsh=’ssh -p 22 -l username’ /var/www/source 198.ipaddress-target:/var/www/directory-target