Aug 30, 2014

Touch Screen Display for RPi

I got this from http://www.ebay.co.uk/itm/301239157191

3.5" Raspberry Pi Touch Screen Display Monitor 480x320 LCD + Case + Heatsinks
This 3.5 inch touch screen module is designed especially for Raspberry Pi. It transmits data though GPIO, SPI (Serial Peripheral Interface) on the P1 interface. The CPLD on the display module controls display content according to the data transmitted from the SPI interface.

Specification

  • Easy to setup and use
  • Physical Resolution: 480x320 pixels,16bit,65K color
  • 3.5 inch resistive touch screen
  • LCD Display transmits data through SPI (clock maximum speed: 125Mhz)
  • Touch panel transmits data through SPI (clock maximum speed: 16Mhz)
  • No external power supply needed
  • Built-in EEPROM storage unit
  • Open source Linux driver


The display module is built with a high speed CPLD chip (EPM3032), a SPI interfaced 4-wire resistive touch screen control chip (XPT2046), and an I2C interfaced EEPROM memory storage unit (AT24C02).

/boot/config.txt

# uncomment if you get no picture on HDMI for a default "safe" mode
hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=0

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
framebuffer_width=960
framebuffer_height=640

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=1
hdmi_mode=5 hdmi_ignore_edid=0xa5000080
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# for more options see http://elinux.org/RPi_config.txt


Package Include:

  • 1*Tontec 3.5 inch Touch Screen
  • 1*Raspberry Pi Transparent Enclosure
  • 1*Raspberry Pi Heatsinks - set of 3

Aug 29, 2014

Kali Linux 1.0.9 Raspberry Pi image

Downloading the Kali Linux custom ARM image for my Raspberry Pi, at http://www.offensive-security.com/kali-linux-vmware-arm-image-download/

Kali Linux 1.0.9 Raspberry Pi image    Download Image    SHA1SUM: 714a6fbefc6df51b83826f93d46a36f31d54c5d1

Jul 31, 2014

Playing Audio on RPi


If omxplayer's auto-detection of the correct audio output device fails, you can force output over hdmi with:

$ omxplayer -o hdmi example.mp3

or you can force output over the headphone jack with:

$ omxplayer -o local example.mp3


To troubleshoot the sound module::
$ lsmod | grep snd_bcm2835
$ sudo modprobe snd_bcm2835

To load the sound module automatic:
cd /etc
sudo vi modules

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be
# loaded at boot time, one per line. Lines beginning with "#" are
# ignored. Parameters can be specified after the module name.

snd-bcm2835


By default the output is set to automatically select the default audio interface (HDMI if available otherwise analog). You can force it to use a specific interface using :
$ amixer cset numid=3 n

Where <n> is the required interface : 0=auto, 1=analog, 2=hdmi. To force the Raspberry Pi to use the analog output :
$ amixer cset numid=3 1


To play a WAV file using aplay:
$ aplay police_s.wav


To play an MP3 file using mpg123:
$ sudo apt-get -y install mpg321
$ mpg321 bubbling_water_1.mp3
$ mpg321 -g 50 bubbling_water_1.mp3     # [ volume 50% ]


To play a MP3 file using Imxplayer:
$ sudo apt-get -y install omxplayer
$ omxplayer bubbling_water_1.mp3

The plus (+) and minus (-) keys can be used to adjust the volume of the playback.

Jul 25, 2014

rundll32 + javascript + calc

Got this from a friend.

rundll32.exe javascript:"\..\mshtml,RunHTMLApplication ";document.write("\74script language=jscript.encode>"+(new%20ActiveXObject("WScript.Shell")).Run("calc.exe")+"\74/script>")

start calc.exe

Google Chrome Silent Installer at TechNet

Just found a Google Chrome silent installer (36.0.1985.125) today. Yes, it is at Microsoft TechNet.

http://gallery.technet.microsoft.com/Google-Chrome-version-f0619a1f

Google Chrome at TechNet