Sunday, December 4, 2016
Changing port number on openHAB 2.0
export OPENHAB_HTTP_PORT=8011
The above export was not working, so i added the below property
sudo nano /etc/default/openhab2
OPENHAB_HTTP_PORT=8090
OPENHAB_HTTPS_PORT=8053
The above export was not working, so i added the below property
sudo nano /etc/default/openhab2
OPENHAB_HTTP_PORT=8090
OPENHAB_HTTPS_PORT=8053
Battery Status Linux
upower -i $(upower -e | grep BAT) | grep --color=never -E "state|to\ full|to\ empty|percentage"
amesh@linux-3ykp:~> upower -i $(upower -e | grep BAT) | grep --color=never -E "state|to\ full|to\ empty|percent
age"
state: charging
time to full: 58.8 minutes
percentage: 69%
ramesh@linux-3ykp:~> upower -i $(upower -e | grep BAT) | grep --color=never -E "state|to\ full|to\ empty|percent
age"
state: discharging
time to empty: 32.0 hours
percentage: 70%
Saturday, December 3, 2016
Play Youtube in Command line
pip install -U yturl
mpv --no-video "$(yturl <url>)"
mplayer -novideo "$(yturl <url>)"
MPS Youtube
https://github.com/mps-youtube/mps-youtube
Sunday, November 20, 2016
Configure wifi in raspberry Pi
Use the tool ..
sudo apt-get install wicd-curses
sudo wicd-curses
Edit the file ...
/etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="open"
key_mgmt=NONE
id_str="open"
priority=3
}
network={
ssid="secure"
key_mgmt=WPA-EAP
proto=WPA2
group=CCMP
pairwise=CCMP
eap=TLS
ca_cert="/etc/certs/cacert.pem"
client_cert="/etc/certs/client.pem"
private_key="/etc/certs/client.key"
private_key_passwd="somepwd"
identity="me"
priority=5
}
network={
ssid="AndroidAP"
key_mgmt=WPA-PSK
proto=WPA2
pairwise=CCMP
group=CCMP
psk="SomeP4ssw0rd"
priority=4
}
network={
ssid="Spooky"
key_mgmt=NONE
group=WEP104
psk="A4ABC2FC27412D4D23CAEBCA23"
priority=2
}
network={
ssid="another"
key_mgmt=WPA-PSK
proto=WPA2
pairwise=CCMP
group=CCMP
psk="A very long and secret passphrase here"
priority=1
}
Sunday, June 19, 2016
Building Bitcoin Core in Ubuntu
https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md
I had issue with libdb_cxx, so i disabled the wallet functionality
configure: error: libdb_cxx headers missing, Bitcoin Core requires this library for wallet functionality (--disable-wallet to disable wallet functionality)
When I run make, i have the following error.
I had issue with libdb_cxx, so i disabled the wallet functionality
configure: error: libdb_cxx headers missing, Bitcoin Core requires this library for wallet functionality (--disable-wallet to disable wallet functionality)
When I run make, i have the following error.
Sunday, April 3, 2016
Subscribe to:
Posts (Atom)