No Description

cuu e15f6155cd update gsnotify bin file 1 year ago
.twm 234d59eec1 rm xbms 5 years ago
Menu 95a14f6dfc formatting the file for better visualisation 3 years ago
awesome 329444332d update awesome config ,set new background wallpaper in hdmi 5 years ago
skin 579164ce19 add icons 4 years ago
sys.py e15f6155cd update gsnotify bin file 1 year ago
.cpirc fe44274594 Because the high version of xorg prohibits the use of absolute paths for xf86config parameters, changes to relative paths in dotcpirc 4 years ago
.gitignore ac61a305ba Add SublimeText 3 project file. 4 years ago
.gitmodules 764aa61b7f rename submodule 4 years ago
.twmrc 539468f467 twm 5 years ago
.xinitrc 6e005cf435 update .xinitrc 1 year ago
.xorg.conf 66f61e3465 add xorg,xorg_lima 5 years ago
.xorg_lima.conf 66f61e3465 add xorg,xorg_lima 5 years ago
LICENSE 75975dea37 Update LICENSE 4 years ago
README.md 8dcdc977a8 readme beeprint 4 years ago
aria2.conf b725a86b9e add yes_cancel_confirm_page.py 4 years ago
aria2c 13ed96d83c replace a new aria2c ,for bug tls handshake failed with github 2 years ago
bluetooth_firmware.sh b0d5517b5e Fix shellcheck warnings. 4 years ago
dwm-mod ea0eb4fb39 update dwm-mod and .xinitrc 5 years ago
launcher.sublime-project ac61a305ba Add SublimeText 3 project file. 4 years ago
load.sh b0d5517b5e Fix shellcheck warnings. 4 years ago
requirements.txt 888fdbbd18 [requirements] initial version 4 years ago
update.sh b0d5517b5e Fix shellcheck warnings. 4 years 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 beeprint

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"