Showing posts with label applications. Show all posts
Showing posts with label applications. Show all posts

Monday, May 15, 2017

Install virtual keyboard on Raspberry Pi/Raspbian Jessie with PIXEL


To install virtual keyboard, matchbox-keyboard, on Raspberry Pi/Raspbian Jessie with PIXEL:

Always update apt-get:
$ sudo apt-get update

Install matchbox-keyboard:
$ sudo apt-get install matchbox-keyboard

Then, you can open the matchbox-keyboard by enter:
$ matchbox-keyboard

This video show how to install matchbox-keyboard on Raspberry Pi 3/Raspbian Jessie with PIXEL (2017-04-10).

Wednesday, March 18, 2015

Friday, July 4, 2014

Mopidy - music server, support Raspberry Pi

Mopidy is a music server which can play music both from multiple sources, like your local hard drive, radio streams, and from Spotify and SoundCloud. Searches combines results from all music sources, and you can mix tracks from all sources in your play queue. Your playlists from Spotify or SoundCloud are also available for use.

To control your Mopidy music server, you can use one of Mopidy’s web clients, the Ubuntu Sound Menu, any device on the same network which can control UPnP MediaRenderers, or any MPD client. MPD clients are available for many platforms, including Windows, OS X, Linux, Android and iOS.

Mopidy runs nicely on a Raspberry Pi. As of January 2013, Mopidy will run with Spotify support on both the armel (soft-float) and armhf (hard-float) architectures, which includes the Raspbian distribution.

Read Installation on Raspberry Pi.


Tuesday, October 22, 2013

Install GIMP on Raspberry Pi

GIMP (GNU Image Manipulation Program) is a very common and useful image editor in Linux. To install GIMP on Raspberry Pi, enter the command in terminal.

$ sudo apt-get install gimp

After installed, the item "GNU Image Manipulation Program" will be added in Graphics of Start Menu.




Install Flash Player replacement, Gnash, on Raspberry pi

To play Flash in Raspberry Pi browser, such as Midori, you can install Gnash.

Enter command in Terminal:
$ sudo apt-get install gnash
$ sudo apt-get install browser-plugin-gnash

Close and re-open your browser.

remark: but...the performance is so...

without Gnash

with Gnash

Monday, October 21, 2013

Print system info for Raspberry Pi

To print system info of Raspberry Pi, we can use the shell script "system-info.sh" download here:
http://ryan.sayr.eu/~ryan/system-info/

Before run, you have to modify its permission to be executable.

Print system info for Raspberry Pi
Print system info for Raspberry Pi
system-info.sh:
#!/bin/bash

VERSION="0.5.3"
# raspberry-pi system information script
# One script that can tell you the RAM config, serial number, SD card size, 
# temperature, and codec entitlements. Work-in-progress!
# Requires bc to for quick calculation. (apt-get install bc on debian)

# check if run as a normal user - if so, exit.
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
    echo "$0 not running as root!"
    exit
fi

# calculate the memory allocated based upon the GPU / system split
# in config.txt (gpu_mem=64) - use vcgencmd because text file contents may be
# different than actual memory split allocation!
sysmem=`/opt/vc/bin/vcgencmd get_mem arm  | sed 's/[A-Za-z]*//g' | cut -c 2-`
gpumem=`/opt/vc/bin/vcgencmd get_mem gpu  | sed 's/[A-Za-z]*//g' | cut -c 2-`
totalmem=`expr $sysmem + $gpumem`

# Model A shouldn't have the smsc95xx installed! Return 1 if it's a modelB
modelB=`lsusb -t | grep -c smsc95xx`
rpiSerialNum=`grep Serial /proc/cpuinfo | cut -d " " -f 2`

echo "*** system-info for raspberry-pi $VERSION ***************************************"
if [ "$modelB" = "1" ]
then
  echo "Model B serial $rpiSerialNum detected with $totalmem MB ($sysmem Sys/$gpumem GPU)"
else
  echo "Model A serial $rpiSerialNum detected with $totalmem MB installed ($sysmem sys / $gpumem gpu split)"
fi

# Raw SD card capacity does not translate to usable space! May need resizing!
fdiskOutput=`fdisk -l /dev/mmcblk0 | grep GB | cut -d \  -f 3,4`
echo "SD card raw capacity: ${fdiskOutput:0:-1}"
echo " "
echo -n "Firmware version: "
/opt/vc/bin/vcgencmd version | grep -v Broadcom
echo " "
tm=`/opt/vc/bin/vcgencmd measure_temp`
tc=`echo $tm| cut -d '=' -f2 | sed 's/..$//'`
tf=$(echo "scale=1; (1.8*$tc)+32" | bc)
echo -e "temp:\t $tf'F ($tc'C)"
echo " "
#echo -e "temp:\t $(/opt/vc/bin/vcgencmd measure_temp)" ;
for src in arm core v3d uart emmc pixel hdmi ; do echo -e "$src:\t $(/opt/vc/bin/vcgencmd measure_clock $src)" ; done
echo " "
for id in core sdram_c sdram_p ; do echo -e "$id: $(/opt/vc/bin/vcgencmd measure_volts $id)" ; done
echo " "
for codec in MPG2 WVC1 ; do echo -e "$codec:\t $(/opt/vc/bin/vcgencmd codec_enabled $codec)" ; done


Capture screen in Raspberry Pi with Scrot

Scrot is a minimalistic command line screen capturing application. It allows substantial degree of flexibility by specifying parameters on command line, including the ability to invoke a third-party utility to manipulate the resulting screenshot.


- Install Scrot on Raspberry Pi:

Open Terminal:
start > accessories > LXTerminal

Enter the command in LXTerminal
$ sudo apt-get install scrot

- To capture screen:
Enter the command in LXTerminal
$ scrot

- Display help message:
$ scrot -h

Reference: http://en.wikipedia.org/wiki/Scrot

Raspberry Pi screen captured with Scrot
Raspberry Pi screen captured with Scrot