setup raspberrypi tablet (official Raspberry Pi 7″ Touchscreen Display) [raspberrypi]

photostudio_latest

you can check if you have a pi2 on this pic:
the display seams to work only with pi2B.
http://raspi.tv/wp-content/uploads/2016/03/Pi-Family-Photo-29Feb2016_1500.jpg

setup the touchscreen:
https://www.element14.com/community/docs/DOC-78156/l/raspberry-pi-7-touchscreen-display#installI

download and burn Raspbian on a sdcard:

latest raspbian_lite:
http://downloads.raspberrypi.org/raspbian_lite_latest

or latest raspbian:
http://downloads.raspberrypi.org/raspbian_latest

maybe use the setup script:
https://fredfire1.wordpress.com/2016/05/19/raspbian-jessie-wheezy-german-setup-script-raspberrypi/

expand partition + setup keyboard + timezone + camera:
sudo raspi-config
Internationalisation Options -> Change Keyboard Layout ->Generic 105-key (Intl) PC -> Other -> german -> german -> ok -> ok -> yes
Internationalisation Options -> Change Timezone -> Europe -> Berlin
Enable Boot to Desktop/Scratch -> Desktop login as user pi
Enable Camera -> Enable
finish -> reboot

Menu->Preferences->Mouse and Keyboard Settings->keyboard->keyboard layout->germany->german->OK
sadly the keyboard does not permanent change (on next boot you have the same problem)

change password:
passwd

connect to wlan,setup wifi:
based on:
https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Go to the bottom of the file and add the following:

network={
    ssid="The_ESSID_from_earlier"
    psk="Your_wifi_password"
}

enable ssh:
based on:
http://www.gtkdb.de/index_36_2894.html
navigate to the boot partition of your sd card then create a ssh file:
sudo touch ssh

update +upgrade:
sudo apt-get update && sudo apt-get upgrade -y

reboot:
sudo reboot

clean raspberrypi sd-card from not used programs(531 MB):
sudo apt-get purge minecraft-pi wolfram-engine sonic-pi scratch -y #626 MB freed

clean system from old things:
sudo apt-get autoclean -y
sudo apt-get autoremove -y
sudo apt-get clean -y

open files with singleclick:
File manager
Edit
Preferences
General - single click to open files

install retropie:
https://github.com/RetroPie/RetroPie-Setup
to start emulationstation after boot to desktop:
sudo service lightdm stop
then alt+f2
login with user:pi password:raspberry
start emulationstation with:
emulationstation

enable rightclick with longpress on touchscreen:
(based on: https://www.raspberrypi.org/forums/viewtopic.php?f=108&t=121602)
edit xorg.conf:
sudo nano /etc/X11/xorg.conf
and paste:

Section "InputClass"
   Identifier "calibration"
   Driver "evdev"
   MatchProduct "FT5406 memory based driver"

   Option "EmulateThirdButton" "1"
   Option "EmulateThirdButtonTimeout" "750"
   Option "EmulateThirdButtonMoveThreshold" "30"
EndSection

reboot to activate rightclick with longpress:
sudo reboot

install and useage screen:
install:
sudo apt-get install screen -y
useage:
screen
sudo apt-get update && sudo apt-get upgrade -y

detach:
Ctrl +A +D

get back:
screen -x

install software:
sudo apt-get install -y alsaplayer #musicplayer
sudo apt-get install -y audacious #musicplayer
sudo apt-get install -y audacity #audio editing
sudo apt-get install -y banshee #musicplayer
sudo apt-get install -y bleachbit #clean old files and stuff
sudo apt-get install -y blender
sudo apt-get install -y blockout2 #3d tetris clone
sudo apt-get install -y browser-plugin-vlc #vlc browser plugin
sudo apt-get install -y cairo-dock
sudo apt-get install -y cellwriter #handwrite to letters
sudo apt-get install -y cherrytree #sorted notes
sudo apt-get install -y claws-mail #email client
sudo apt-get install -y clementine #musicplayer
sudo apt-get install -y clipit #usefull for copy paste things
sudo apt-get install -y convertall
sudo apt-get install -y cron-apt #security updates for servers no one updates often
sudo apt-get install -y cups #printing things
sudo apt-get install -y dia
sudo apt-get install -y dillo #webbrowser
sudo apt-get install -y docky
sudo apt-get install -y dragonplayer #musicplayer
sudo apt-get install -y duff #detect duplicated files (TERMINAL DUFF) eg: duff -r folder_name
sudo apt-get install -y eboard #chess game
sudo apt-get install -y fadecut
sudo apt-get install -y fail2ban #security
sudo apt-get install -y fbreader #E-Book-Reader (with 90 degree rotation START FROM TERMINAl)
sudo apt-get install -y feh #slideshow
sudo apt-get install -y fet #software for timetables in schools and universities
sudo apt-get install -y fftw3 #fouriertransformation
sudo apt-get install -y florence #virtual keyboard but has problems, try matchbox
sudo apt-get install -y foobillard #billiard game
sudo apt-get install -y freemind #mindmapping
sudo apt-get install -y fritzing #electronics
sudo apt-get install -y frozen-bubble #frozenbubble
sudo apt-get install fslint #remove duplicated files (with gui)
sudo apt-get install -y galculator #calculator
sudo apt-get install -y gammu #phones
sudo apt-get install -y gawk #for pushbullet
sudo apt-get install -y geda #electronics
sudo apt-get install -y genius gnome-genius #math tool
sudo apt-get install -y geogebra #learning math
sudo apt-get install -y gimp #edit pics: gimp –help
sudo apt-get install -y gimp-gmic
apt-get install -y git-core #use git
sudo apt-get install -y gnokii #nokia phones
sudo apt-get install -y gnome-system-monitor #check cpu upload/download
sudo apt-get install -y gnucash
sudo apt-get install -y gnucap #schaltkreisanalyse (only terminal on pi? normally gui?)
sudo apt-get install -y gnuplot #plot things (from terminal gnuplot)
sudo apt-get install -y gnupg2
sudo apt-get install -y gpac #for slow motion
sudo apt-get install -y gparted #partition tool
sudo apt-get install -y grace #plot data
sudo apt-get install -y gramps #Genealogical Research
sudo apt-get install -y gtk-recordmydesktop #desktop recorder (disable sound)
sudo apt install -y gufw # gui for firewall ufw
sudo apt-get install -y gwenview
sudo apt-get install -y homebank #finances
sudo apt-get install -y htop #monitor lag
sudo apt-get install -y icecast2 #audiostream-server
sudo apt-get install -y iceweasel #webbrowser
sudo apt-get install -y inkscape
sudo apt-get install -y imagemagick #for time elapse
sudo apt-get install -y istanbul #screenrecorder
sudo apt-get install -y k3b #burn cds
sudo apt-get install -y kalzium #periodic table
sudo apt-get install -y kcalc #calculator
sudo apt-get install -y kfourinline #four in a row game
sudo apt-get install -y kgeography #learn other countrys and citys
sudo apt-get install -y kile #developing environment for latex
sudo apt-get install -y kino #video editing
sudo apt-get install -y kmplot #plot functions
sudo apt-get install -y kodi #viewing videos changed name from xbmc
sudo apt-get install -y kmymoney #money-in-out
sudo apt-get install -y kontact #email program
sudo apt-get install -y kst #real time data plot
sudo apt-get install -y kradio #internetradio
sudo apt-get install -y kradio4 #internetradio
sudo apt-get install -y kraft #write bill for little companys
sudo apt-get install -y krita #draw
sudo apt-get install -y ktouch #learning typing
sudo apt-get install -y kvkbd #touch keyboard needs 160 packages installed with it (took long) but works on jessie , try matchbox
sudo apt-get install -y libreoffice #office suit
sudo apt-get install -y lirc #infrared stuff
sudo apt-get install -y lxmusic #musicplayer
sudo apt-get install -y lynx #text-based webbrowser (start from terminal) lynx https://fredfire1.wordpress.com
sudo apt-get install -y lyx #gui for latex
sudo apt-get install -y marble #something like googleearth
sudo apt-get install -y matchbox #virtual keyboard #menu> accessories> keyboard
sudo apt-get install -y matchbox-keyboard #virtual keyboard #try matchbox
sudo apt-get install -y maxima #calculation of polynoms matrix integrations more
sudo apt-get install -y mencoder #for time elapse not avaliable in jessi use libav-tools instead
sudo apt-get install -y miro #watch and manage internet videos (NOT REALLY WORKING)
sudo apt-get install -y mixxx #music mixer (dj)
sudo apt-get install -y moovida #laggy media center
sudo apt-get install -y mumble-server
sudo apt-get install -y mypaint
sudo apt-get install -y monit
sudo apt-get install -y mono-complete # not in use yet
sudo apt-get install -y mpd mpc alsa-utils
sudo apt-get install -y mumble #voice converences
sudo apt-get install -y musescore #music notes
sudo apt-get install -y navit #navi (not really working)
sudo apt-get install -y netgen #fluidsimulation
sudo apt-get install -y nmap #check network
sudo apt-get install -y nmapsi4 #nmap gui (start from terminal nmapsi4)
sudo apt-get install -y octave #lots of math
sudo apt-get install -y omxplayer #music player
sudo apt-get install -y openshot
sudo apt install -y p7zip p7zip-full
sudo apt-get install -y pauker #learn vocables
sudo apt-get install -y pidgin #messanger
sudo apt-get install -y pingus #lemmings game
sudo apt-get install -y pnmtopng #convert pics
sudo apt-get install -y psensor #temperatur of cpu and more (but not really working)
sudo apt-get install -y python-dev
sudo apt-get install -y python-nmap
sudo apt-get install -y python-pip #for the pip installer (eg:sudo pip install radicale)
sudo apt-get install -y python-rpi.gpio
sudo apt-get install -y python-tk #for python gui
sudo apt-get install -y qbittorrent #torrent downloader
sudo apt-get install -y qlandkartegt
sudo apt-get install -y qmpdclient #mpd client
sudo apt-get install -y qt4-dev-tools #qt designer
sudo apt-get install -y qtiplot #graphic view of mathfunctions
sudo apt-get install -y qtractor #music tool
sudo apt-get install -y qupzilla #webbrowser
sudo apt-get install -y radiotray #internetradio
sudo apt-get install -y rhythmbox #musicplayer
sudo apt-get install -y sane #scanner software
sudo apt-get install -y scilab
sudo apt-get install -y screen #run programs in background
sudo apt-get install -y screenlets #desktop widgets (seams not to work)
sudo apt-get install -y screenruler
sudo apt-get install -y scribus #desktop publishing
sudo apt-get install -y scrot #screenshot program
sudo pip install Shellpic #very usefull to watch images when only connected over a ssh client to the pi
sudo apt-get install -y shutter #screenshots
sudo apt-get install -y simple-scan #scan program
sudo apt-get install -y skanlite #scanning (NO DEVICE FOUND)
sudo apt-get install -y speedometer #speedtest useage:speedometer -r eth0 -t eth0
sudo apt-get install -y sshpass
sudo apt-get install -y taxbird #elster tax clone
sudo apt-get install -y terminator #terminal Ctrl + Shift + T=new_tab; Ctrl + Shift + O=split horizontal; Ctrl + Shift + E=split vertical
sudo apt-get install -y testdisk #with PhotoRec (sudo testdisk
)
sudo apt-get install -y texmacs #latex editor ?
sudo apt-get install -y tightvncserver
sudo apt-get install -y tuxguitar #guitar program
sudo apt-get install -y tuxpaint #easy paintprogram for touch
sudo apt install -y unp #easy unpack lot of different packed file formats with just writing “unp filename”
sudo apt-get install -y unrar-free #raspbian
sudo apt-get install -y unzip zip
sudo apt-get install -y urlwatch #is a url online (TERMINAL)
sudo apt-get install -y vinagre # remote desktop view (rdp/vnc/ssh)
sudo apt-get install -y vlc #play videos
sudo apt-get install -y wammu #phones
sudo apt install -y wavemon #terminal wlan control $:wavemon or $:sudo wavemon for scanning, then press F3
sudo apt-get install -y wings3d #3d modelling
sudo apt-get install -y wireshark #network analysis
sudo apt-get install -y wpagui
sudo apt-get install -y wxMaxima #ui Algebra-System Maxima
sudo apt-get install -y xrdp #remote desktop client
sudo apt-get install -y xvkbd #keyboard (does not work good) #try matchbox
sudo apt-get install -y zenmap #also installs nmap is just the gui
sudo apt-get install -y zbar-tools #qrcode reader raspberrypi, zbarimg for images and zbarcam for webcam- useage: man zbarcam or man zbarimg eg: zbarcam /dev/video1

start clipit once and accept it.

have a look for more software here:
https://fredfire1.wordpress.com/2015/05/25/setup-debian-linux/

install veracrypt:
https://fredfire1.wordpress.com/2016/02/04/install-veracrypt-debianwindows/

install truecrypt:
https://fredfire1.wordpress.com/2015/10/16/truecrypt-raspberrypi/

install latest nmap:
sudo apt-get purge nmap -y
wget https://nmap.org/dist/nmap-7.00.tar.bz2
bzip2 -cd nmap-7.00.tar.bz2 | tar xvf -
cd nmap-7.00
./configure
make
cd nmap
su root
sudo make install

test nmap:
sudo nmap -sU
sudo zenmap #gui not working

deinstall nmap:
cd nmap-7.00
sudo make uninstall

install pico:
sudo apt-get install libpopt-dev -y
wget http://www.dr-bischoff.de/raspi/pico2wave.deb
sudo dpkg --install pico2wave.deb

setup kodi:
https://fredfire1.wordpress.com/2014/01/17/raspbmc-raspberry-pi/

useage scrot:
scrot -s #and click on the window
sudo scrot -d5 -c #screenshot after delay of 5 sec with countdown
scrot -d 10 '%Y-%m-%d-%H:%M:%S.png' -e 'mv $f ~/Bilder/' #screenshot with 10 sec delays then move it to folder Bilder
for i in {1..20}; do scrot -d 10 '%Y-%m-%d-%H:%M:%S.png'; done #20 screenshot with 10 sec pause between each

setup slowmotion:
https://fredfire1.wordpress.com/2015/02/13/slow-motion-raspberry-pi-camera-module-raspberrypi/

setup timeelapse:
https://fredfire1.wordpress.com/2015/02/13/time-elapse-video-with-raspberry-pi-camera-module-raspberrypi/

setup all photostudio things:
cd
mkdir /home/pi/tkinter
mkdir /home/pi/Pictures

EnableBot
touch /home/pi/tkinter/EnableBot.sh
chmod +x /home/pi/tkinter/EnableBot.sh
nano /home/pi/tkinter/EnableBot.sh

#!/bin/bash
sudo mv /home/corrade/CorradeBots/InitD_MyFirstBot /etc/init.d/MyFirstBot && sudo update-rc.d MyFirstBot defaults
sudo mv /home/corrade/CorradeBots/Monit_MyFirstBot /etc/monit/conf.d/MyFirstBot
sudo reboot

DisableBot
touch /home/pi/tkinter/DisableBot.sh
chmod +x /home/pi/tkinter/DisableBot.sh
nano /home/pi/tkinter/DisableBot.sh

#!/bin/bash
sudo mv /etc/init.d/MyFirstBot /home/corrade/CorradeBots/InitD_MyFirstBot
sudo mv /etc/monit/conf.d/MyFirstBot /home/corrade/CorradeBots/Monit_MyFirstBot
kill $(sudo cat /home/corrade/CorradeBots/MyFirstBot/Corrade.exe.lock)
sudo reboot

try x-terminal-emulator -e instead of lxterminal -e cause then it should work on all systems cause it is not hardcoded

PlayLatestTimeelapse
touch /home/pi/tkinter/PlayLatestTimeelapse.sh
chmod +x /home/pi/tkinter/PlayLatestTimeelapse.sh
nano /home/pi/tkinter/PlayLatestTimeelapse.sh

#!/bin/bash
lxterminal -e 'bash -c "omxplayer /home/pi/cam/slow_motion/*.mp4; read"'

SyncthingUpgrade
touch /home/pi/tkinter/SyncthingUpgrade.sh
chmod +x /home/pi/tkinter/SyncthingUpgrade.sh
nano /home/pi/tkinter/SyncthingUpgrade.sh

#!/bin/bash
lxterminal -e 'bash -c "sudo syncthing -upgrade; read"'

MyTemperature
touch /home/pi/tkinter/MyTemperature.sh
chmod +x /home/pi/tkinter/MyTemperature.sh
nano /home/pi/tkinter/MyTemperature.sh

#!/bin/bash
lxterminal -e 'bash -c "/opt/vc/bin/vcgencmd measure_temp; read"'

MyIp
touch /home/pi/tkinter/MyIp.sh
chmod +x /home/pi/tkinter/MyIp.sh
nano /home/pi/tkinter/MyIp.sh

#!/bin/bash
lxterminal -e 'bash -c "sudo ifconfig; read"'

MyIpV2
touch /home/pi/tkinter/MyIpV2.sh
chmod +x /home/pi/tkinter/MyIpV2.sh
nano /home/pi/tkinter/MyIpV2.sh

#!/bin/bash
lxterminal -e 'bash -c "hostname -I; read"'

UpdateUpgrade
touch /home/pi/tkinter/UpdateUpgrade.sh
chmod +x /home/pi/tkinter/UpdateUpgrade.sh
nano /home/pi/tkinter/UpdateUpgrade.sh

#!/bin/bash
lxterminal -e 'bash -c "sudo apt-get update  && sudo apt-get upgrade -y; read"'

NetworkMap
touch /home/pi/tkinter/NetworkMap.sh
chmod +x /home/pi/tkinter/NetworkMap.sh
nano /home/pi/tkinter/NetworkMap.sh

#!/bin/bash
lxterminal -e 'bash -c "sudo nmap 192.168.1.0-254; read"'

TakePicAfter3Sec
touch /home/pi/tkinter/TakePicAfter3Sec.sh
chmod +x /home/pi/tkinter/TakePicAfter3Sec.sh
nano /home/pi/tkinter/TakePicAfter3Sec.sh

#!/bin/bash
raspistill -w 1280 -h 960 -o /home/pi/cam/$(date "+%H-%M-%S--%d-%b-%Y")_pic.jpg -t 3000

TakePicAfter10Sec
touch /home/pi/tkinter/TakePicAfter10Sec.sh
chmod +x /home/pi/tkinter/TakePicAfter10Sec.sh
nano /home/pi/tkinter/TakePicAfter10Sec.sh

#!/bin/bash
raspistill -w 1280 -h 960 -o /home/pi/cam/$(date "+%H-%M-%S--%d-%b-%Y")_pic.jpg -t 10000

SlideShow
touch /home/pi/tkinter/SlideShow.sh
chmod +x /home/pi/tkinter/SlideShow.sh
nano /home/pi/tkinter/SlideShow.sh

#!/bin/bash
feh -F -D 5 --randomize --hide-pointer ~/cam
#http://man.finalrewind.org/1/feh

photostudio
touch /home/pi/tkinter/photostudio.py
sudo chmod +x /home/pi/tkinter/photostudio.py
nano /home/pi/tkinter/photostudio.py

import Tkinter
import subprocess
#http://www.openbookproject.net/py4fun/gui/tkPhone.html
 
def Shutdown():
    subprocess.call('sudo shutdown -h now', shell=True)

def SlowMotion():
    subprocess.call('/home/pi/cam/slow_motion/record.sh', shell=True)
 
def SlideShow():
    subprocess.call('/home/pi/tkinter/SlideShow.sh', shell=True)
 
def TakePicAfter3Sec():
    subprocess.call('/home/pi/tkinter/TakePicAfter3Sec.sh', shell=True)
 
def TakePicAfter10Sec():
    subprocess.call('/home/pi/tkinter/TakePicAfter10Sec.sh', shell=True)

def TakeScrotAfter5Sec():
    subprocess.call('scrot -d 5 ~/Pictures/%Y-%m-%d-%H:%M:%S.png', shell=True)

def ReBoot():
    subprocess.call('sudo shutdown -r now', shell=True) 

def UpdateUpgrade():
    subprocess.call('/home/pi/tkinter/UpdateUpgrade.sh', shell=True)

def NetworkMap():
    subprocess.call('/home/pi/tkinter/NetworkMap.sh', shell=True)

def MyIp():
    subprocess.call('/home/pi/tkinter/MyIp.sh', shell=True)

def MyIpV2():
    subprocess.call('/home/pi/tkinter/MyIpV2.sh', shell=True)

def MyTemperature():
    subprocess.call('/home/pi/tkinter/MyTemperature.sh', shell=True)

def SyncthingUpgrade():
    subprocess.call('/home/pi/tkinter/SyncthingUpgrade.sh', shell=True)
 
def PlayLatestTimeelapse():
    subprocess.call('/home/pi/tkinter/PlayLatestTimeelapse.sh', shell=True)

def EnableBot():
    subprocess.call('/home/pi/tkinter/EnableBot.sh', shell=True)

def DisableBot():
    subprocess.call('/home/pi/tkinter/DisableBot.sh', shell=True) 

tk = Tkinter.Tk()
tk.title('python gui with tkinter')

b = Tkinter.Button(tk, height=3, text="Shutdown",command=Shutdown)
b0 = Tkinter.Button(tk, height=3, text="[Exit]",command=tk.destroy)
b1 = Tkinter.Button(tk, height=1, text="SlowMotion",command=SlowMotion)
b2 = Tkinter.Button(tk, height=1, text="Slideshow",command=SlideShow)
b3 = Tkinter.Button(tk, height=1, text ="take pic after 3 sec",command=TakePicAfter3Sec)
b4 = Tkinter.Button(tk, height=1, text ="take pic after 10 sec",command=TakePicAfter10Sec)
b5 = Tkinter.Button(tk, height=1, text ="take screenshot after 5 sec",command=TakeScrotAfter5Sec)
b6 = Tkinter.Button(tk, height=1, text ="PlayLatestTimeelapse",command=PlayLatestTimeelapse)
b7 = Tkinter.Button(tk, height=1, text ="MyIp",command=MyIp)
b8 = Tkinter.Button(tk, height=1, text ="MyIpV2",command=MyIpV2)
b9 = Tkinter.Button(tk, height=2, text ="update upgrade",command=UpdateUpgrade)
b10 = Tkinter.Button(tk, height=2, text ="reboot",command=ReBoot)
b11 = Tkinter.Button(tk, height=1, text ="Networkmap",command=NetworkMap)
b12 = Tkinter.Button(tk, height=1, text ="SyncthingUpgrade",command=SyncthingUpgrade)
b13 = Tkinter.Button(tk, height=1, text ="MyTemperature",command=MyTemperature)
b14 = Tkinter.Button(tk, height=2, text ="EnableBot",command=EnableBot)
b15 = Tkinter.Button(tk, height=2, text ="DisableBot",command=DisableBot)


b.grid(row=0, column=0)
b0.grid(row=0, column=1)
b1.grid(row=1, column=0)
b2.grid(row=1, column=1)
b3.grid(row=2, column=0)
b4.grid(row=2, column=1)
b5.grid(row=3, column=0)
b6.grid(row=3, column=1)
b7.grid(row=4, column=0)
b8.grid(row=4, column=1)
b9.grid(row=5, column=0)
b10.grid(row=5, column=1)
b11.grid(row=6, column=0)
b12.grid(row=6, column=1)
b13.grid(row=7, column=0)
b14.grid(row=8, column=0)
b15.grid(row=8, column=1)

#b0.pack()
#b1.pack()
#b2.pack()
#...

tk.mainloop()

test the python code:
python /home/pi/tkinter/photostudio.py

autostart the script with boot:
#sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
nano ~/.config/lxsession/LXDE-pi/autostart

@python /home/pi/tkinter/photostudio.py

create menu entry for photostudio:
mkdir -p ~/.local/share/icons/
cd ~/.local/share/icons/
wget -O fredfire1.ico fredfire1.wordpress.com/favicon.ico
mkdir -p ~/.local/share/applications

cd ~/.local/share/applications
nano photostudio.desktop

[Desktop Entry]
Name=photostudio
Icon=/home/pi/.local/share/icons/fredfire1.ico
Comment=photoManager
Exec=python /home/pi/tkinter/photostudio.py
Terminal=false
Type=Application
Categories=GTK;GNOME;Application;Utility;

setup lirc:
https://fredfire1.wordpress.com/2015/01/19/copy-remote-controls-onto-phone-raspberrypi-android/

setup syncthing:
https://fredfire1.wordpress.com/2015/03/23/setup-syncthing-raspberrypiwindowsandroidubuntu/

turn touchscreen on or off:
based on:
http://forums.pimoroni.com/t/official-7-raspberry-pi-touch-screen-faq/959
http://tutorials-raspberrypi.de/tipps-tricks-faq-zum-offiziellen-7-raspberry-pi-touchscreen/

sudo chmod 777 /sys/class/backlight/rpi_backlight/bl_power

On:
echo 0 > /sys/class/backlight/rpi_backlight/bl_power

Off:
echo 1 > /sys/class/backlight/rpi_backlight/bl_power

add shutdown button on desktop:
sudo nano /usr/share/applications/shutdown.desktop

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Shutdown
Comment=Shutdown
Icon=gnome-logout
Exec=sh -c "zenity --text 'Do you want to shutdown now?' --question && sudo shutdown -h now"
NoDisplay=true

create desktop shortcuts:
cd /usr/share/applications/
sudo cp florence.desktop /home/pi/Desktop/florence.desktop
sudo cp gnome-system-monitor.desktop /home/pi/Desktop/gnome-system-monitor.desktop
sudo cp iceweasel.desktop /home/pi/Desktop/iceweasel.desktop
sudo cp inkscape.desktop /home/pi/Desktop/inkscape.desktop
sudo cp kodi.desktop /home/pi/Desktop/kodi.desktop
sudo cp lxterminal.desktop /home/pi/Desktop/lxterminal.desktop
sudo cp mypaint.desktop /home/pi/Desktop/mypaint.desktop
sudo cp pcmanfm.desktop /home/pi/Desktop/pcmanfm.desktop
sudo cp photostudio.desktop /home/pi/Desktop/photostudio.desktop
sudo cp shutdown.desktop /home/pi/Desktop/shutdown.desktop
sudo cp tuxpaint.desktop /home/pi/Desktop/tuxpaint.desktop
sudo cp vinagre.desktop /home/pi/Desktop/vinagre.desktop
sudo cp vlc.desktop /home/pi/Desktop/vlc.desktop
sudo cp /inputmethods/matchbox-keyboard.desktop /home/pi/Desktop/matchbox-keyboard.desktop

add programs to the taskbar:
nano ~/.config/lxpanel/LXDE-pi/panels/panel

and add to the button section:

    Button {
      id=/usr/share/applications/photostudio.desktop
    }
    Button {
      id=/usr/share/applications/iceweasel.desktop
    }
    Button {
      id=/usr/share/applications/florence.desktop
    }
    Button {
      id=/usr/share/applications/inputmethods/matchbox-keyboard.desktop
    }

then reboot the pi:
sudo reboot

get some infos:
uname -r #kernel release
uname -m #machine version
uname -n #nodename
cat /proc/cpuinfo #cpu info
iwlist wlan0 scan #scan wlans
uptime #uptime
free #free space
df -h #free space

also possible to setup with xforward and another laptop and write in terminal:
https://fredfire1.wordpress.com/2015/09/15/forward-x-application-over-ssh-debian/
https://fredfire1.wordpress.com/2015/09/25/forward-a-x-application-over-ssh-from-raspberrypi-to-windows-windowsraspberrypi/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s