Friday, October 13, 2017

BerryBoot


Default cmdline.txt

elevator=deadline quiet bootmenutimeout=10


Parameter setting for config.txt

hdmi_force_hotplug=1
hdmi_drive=2
hdmi_group=2
hdmi_mode=81

.

Friday, July 7, 2017

RPI 3 - check temperature


On the raspberry pi 3 for checking temperature of CPU core there are two ways.
First method if you are running official raspbian, second method for any other Linux distro like Kali

Method I:
$ vcgencmd measure_temp
output:
temp=45.1'C

Method II:
$ cat /sys/class/thermal/thermal_zone0/temp
output:
45084

Both are reading 45 degree Celsius


=> turn HDMI off to reduce current requirement

to turn off:
/opt/vc/bin/tvservice -o

to turn on
/opt/vc/bin/tvservice -p


Saturday, November 5, 2016

Kali Copy/Paste not working in VMware Workstation 12


solution found on following url 
http://securityblog.gr/3229/cannot-copypaste-on-kali-and-vmware-workstation-12/



1. uninstall vmware-tools (if installed)
$ sudo /usr/bin/vmware-uninstall-tools.pl

2. Install VM Tools
$ sudo apt-get install open-vm-tools 
$ sudo apt-get install open-vm-tools-desktop 

3. restart Kali 
$ sudo init 6
 

Friday, September 9, 2016

change or set locale environment variable

 
$ more /etc/sysconfig/i18n 
LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"
 
For Kali Linux:
echo "export LANG=\"en_US.UTF8\"" >> .bashrc 
 
Note: .bashrc will be read everytime upon opening a new terminal. 

Tuesday, April 26, 2016

HDMI output issue with Raspberry Pi 3

You need to edit /boot/config.txt file in order to enable HDMI forcefully ie even if no display is connected.
  hdmi_force_hotplug=1
  hdmi_drive=2
  hdmi_group=2
  hdmi_mode=81 


the second entry 'hdmi_drive=2' force HDMI mode rather than DVI, this makes audio works in DMT (computer monitor).

complete file config.txt

The 64 MB partition of the SD-card is mounted as /boot when OS is booted and running.


hdmi_drive=1 Normal DVI mode (No sound)
hdmi_drive=2 Normal HDMI mode (Sound will be sent if supported and enabled)

hdmi_group=1 CEA # TV
hdmi_group=2 DMT # Computer monitor
 
hdmi_mode=81 1366x768 60 Hz

New User add in Kali linux


To add new user in Kali (with root user):
  useradd -m username
  passwd username
  usermod -a -G sudo username
  chsh -s /bin/bash username


To set timezone:
  echo "TZ=Asia/Kolkata;export TZ" >> .profile

On Raspberian:
  sudo cp /usr/share/zoneinfo/Asia/Kolkata /etc/timezone
   

Monday, December 7, 2015

Portals for fetching open data

[From Open Source For You - November 2015 issue]

Datahub:
http://datahub.io

World Health Organisation:
http://www.who.int/research/en  - not available

The World Bank:
http://data.worldbank.org

NASA:
http://data.nasa.gov

United States Government:
http://www.data.gov