No Description

GNU 76e61b521c Merge pull request #324 from krushinru/master 2 months ago
.twm 234d59eec1 rm xbms 1 year ago
Menu 75b74e4c6a add mad address in wifi info page 2 months ago
awesome 329444332d update awesome config ,set new background wallpaper in hdmi 1 year ago
skin 579164ce19 add icons 3 months ago
sys.py 15424129f0 Update 09_Russian.ini 2 months ago
.cpirc fe44274594 Because the high version of xorg prohibits the use of absolute paths for xf86config parameters, changes to relative paths in dotcpirc 10 months ago
.gitignore ac61a305ba Add SublimeText 3 project file. 3 months ago
.gitmodules 764aa61b7f rename submodule 4 months ago
.twmrc 539468f467 twm 1 year ago
.xinitrc 9c69b6a637 gamestore alpha 4 months ago
.xorg.conf 66f61e3465 add xorg,xorg_lima 1 year ago
.xorg_lima.conf 66f61e3465 add xorg,xorg_lima 1 year ago
LICENSE 75975dea37 Update LICENSE 11 months ago
README.md 888fdbbd18 [requirements] initial version 5 months ago
aria2.conf b725a86b9e add yes_cancel_confirm_page.py 4 months ago
aria2c e9ed6d7cf1 add appinstaller 4 months ago
bluetooth_firmware.sh b0d5517b5e Fix shellcheck warnings. 3 months ago
dwm-mod ea0eb4fb39 update dwm-mod and .xinitrc 1 year ago
launcher.sublime-project ac61a305ba Add SublimeText 3 project file. 3 months ago
load.sh b0d5517b5e Fix shellcheck warnings. 3 months ago
requirements.txt 888fdbbd18 [requirements] initial version 5 months ago
update.sh b0d5517b5e Fix shellcheck warnings. 3 months ago

README.md

GameShell launcher

This is the launcher for GameShell based on 320x240 resolution and D-Pad layout. Screenshot

Create the necessary user and group

  • User name: cpi
  • Password: cpi
  • Group ID: 31415 with group name: cpifav
sudo adduser cpi  
sudo groupadd cpifav -g 31415  
sudo adduser cpi cpifav  

Directory structure

/home/cpi/
├── apps
│   ├── emulators
│   └── launcher <-Here we are
│       ├── Menu
│       ├── sys.py
│       └── truetype
├── games
│   ├── FreeDM
│   ├── MAME
│   └── nxengine
└── music

Create the necessary directories

mkdir -p /home/cpi/apps/emulators  
mkdir -p /home/cpi/games  
mkdir -p /home/cpi/music  

Dependent packages

  • validators, numpy, requests, python-mpd2, beeprint, python-pycurl, python-alsaaudio, python-pygame, python-gobject, python-xlib, python-wicd
  • wicd (For Wi-Fi)
  • mpd (For music player)

Install dependent packages

sudo apt-get -y install mpd ncmpcpp git libuser
sudo apt-get -y install python-wicd  wicd wicd-curses python-pycurl python-alsaaudio python-pygame python-gobject python-xlib   

sudo apt-get -y install python-pip   
sudo pip install validators numpy requests python-mpd2

With pip install and virtualenv

mkvirtualenv launcher
pip install -r requirements.txt

Create “.mpd_cpi.conf” config

vim ~/.mpd_cpi.conf

music_directory    "/home/cpi/music"
playlist_directory    "/home/cpi/music/playlists"
db_file    "/home/cpi/music/tag_cache"
log_file    "/tmp/mpd.log"
pid_file    "/tmp/mpd.pid"
state_file    "/home/cpi/music/mpd_state"
sticker_file    "/home/cpi/music/sticker.sql"
user    "cpi"
bind_to_address    "/tmp/mpd.socket"
auto_update    "yes"
auto_update_depth    "3" 
input {
    plugin "curl"
}

audio_output {
    type    "alsa"
    name    "My ALSA Device"
}

audio_output {
    type    "fifo"
    name    "my_fifo"
    path    "/tmp/mpd.fifo"
    format    "44100:16:2"
}

filesystem_charset    "UTF-8"