Wednesday, October 12, 2016

Playing videos with double click in raspberry pi

install xterm

sudo apt-get install xterm

go to a video

type xterm -fullscreen -fg black -bg black -e omxplayer -o hdmi -r %f in custom command line


press ok

enjoy

Using Real Vnc PIXEL Raspberry PI ( screen resolution)

 I have installed a new OS (PIXEL)  on my Raspberry PI (https://www.raspberrypi.org/blog/introducing-pixel/)

It comes pre-installed with Real vnc server . You have to enable it and update your raspberry
with
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade




 So on my window machine I  just download vnc viewer (https://www.realvnc.com/download/viewer/).


start vnc viewer
give ip adress of raspberry
fill username and password

and You can get it connected.


Screen resolution  becomes a problem  sometimes

crontab is a scheduler for pi which can be used to correct it


In terminal type

crontab -e


add the this line at the end of scheduled task for 1920 x 1080 resolution 


@reboot /bin/fbset -g 1920 1080 1920 1080 16





and save the file and reboot


enjoy









Saturday, September 26, 2015

Setting Resolution in Raspberry Pi for HD TV : from a non IT person

I connected my raspberry Pi ( Raspbian  OS)  with HD LED 42 inch TV and with few modifications  in config.txt,  I could run the raspberry pi with full 1920 x 1080 full resolution.  However the fonts were small in terminal and at other places


The fonts in terminal and other menu items can be easily changed from appearance settings
 which are available at right click

  1. right click on desktop as desktop preferences  
  2. edit tab in terminal
  3.  change geometry with right click on panel settings
  4. web can be managed by ctrl + or ctrl -
Still programs like scratch 1.4 Sonic pi and Mathematica  fonts were too small and difficult to read at a distance of  8-10 feet from TV. So  my journey to correct these started. After numerous website searches,  comment on following two statements in config.txt was removed


framebuffer_width=1280
framebuffer_height=720


It corrected web and sonic pi to a large extent,  but Scratch and Mathematica remained a problem.

As I understood somehow I need to lower the resolution on the fly or without restart which has to be done before starting X  ( X seems to GUI  name ) so that i can still boot to different resolution if i want


so  this command before start x did the trick

fbset -g 800 450 800 450 16

The scratch and mathematica fonts are now visible from 10 feet.

 when you are not using scratch  startx without fbset command and you are good with original resolution.























Saturday, September 19, 2015

Raspberry Pi : My new love

Sr. No Item  Rs  comment   Software settings 
1 Raspberry Pi 2 - MODB - 1GB - Quad core  2729 Installed Raspbian using Noobs  https://www.raspberrypi.org/downloads/
2 RASPBERRY-PI RASPBERRY-PI-CASE ENCLOSURE, RPI 2 & B+, RASPBERRY & WHITE  449 Good looking easy to assemble
3 Sandisk Ultra microSDHC UHS-I 16GB Class 10 Memory Card with Adapter With Speed Up To 48MB/s  457 Formatted using sdformatter https://www.sdcard.org/downloads/formatter_4/
4 Tenda W311MI N150 150Mbps Nano USB wireless Adapter (Black)  450 plug and play /compatible with Raspbian
5 (3M - 300 cm - 9 Foot) Storite Super Slim HDMI Male to HDMI Male Cable TV Lead 1.4V High Speed Ethernet 3D Full HD 1080p  299 works fine
6 Logitech K400R Wireless Touch Keyboard (Black)  2080 compatible with Raspbian  change keyboard layout 105 generic/US


Future planning is to buy Sense hat which is another Rs 3000 approx .  Till now , it is working fine . learning curve is slow.  Seems good for children ( child of my age also) to learn new things.

Friday, August 21, 2015

What time means to me by Anshu Soni ( written in 1987-88 published in newspaper )

What is time !! what the hands of a clock read or a new excitement or just the repetition of a daily routine? I take time as a mystery which has remained unsolved because of all the surprises and ups & down it brings with itself. According to me, time connect us with our past. To me it is a symbol of progress. When I think of time, I remember both my good and bad times, or in other words both my success and failures. We learn from time and it is time which bings difference in our thoughts and notions. According to me, life is time because it does not stop or wait for anyone, just like time. I take time to be very precious and not fit to be wasted.

Sunday, November 9, 2014

Remove file or folder when del command doesnot work

Some times windows gives message "verify the location when you delete a particular folder or a file"

Create another file or folder with same name and then try delete

 OR

use the following

1. press windows key + r 

2. type cmd.exe, press enter 

3. rd /s "\\?\D:\bad\folder\path "

 both solutions worked for me for two different folders which were not deleting