Saturday, January 9, 2016

Transmission daemon overwrites settings.json to the default in Raspberry Pi

sudo /etc/init.d/transmission-daemon stop

cd /var/lib/transmission-daemon/info
sudo nano settings.json

Change "rpc-authentication-required": false,

cd /etc/transmission-daemon
sudo nano settings.json

Change "rpc-authentication-required": false,


sudo /etc/init.d/transmission-daemon start

Wednesday, January 6, 2016

Android sh script error "[: not found" or incorrect systax if;

One of the scripts i was working suddenly starting showing Android sh script error "[: not found" or incorrect systax if; errors out of blue. I couldn't figure out what just went wrong.


 Reson is file format and line ending. To fix this in NotePad ++

Edit -> EOL Conversion -> Unix
Encoding -> Encode in ANSI



Tuesday, January 5, 2016

How to write to Android LogCat via adb shell ?

log  -p i -t yourtag "see this in logcat"


yourtag = is the tag for LogCat