설명 없음

hi80482 40f2d51f76 Update text_bulletinboard.py (Sync Ver.200626) 3 년 전
.twm fd02cc3e12 launcher deot 4 년 전
Menu b3cb1bdb88 Update PowerOFF (Sync Ver.200626) 3 년 전
awesome fd02cc3e12 launcher deot 4 년 전
skin d27090dfbd Update VarelaRound-Regular.ttf 3.0 3 년 전
sys.py 40f2d51f76 Update text_bulletinboard.py (Sync Ver.200626) 3 년 전
.cpirc fd02cc3e12 launcher deot 4 년 전
.gitignore 8eb0329be5 Update .gitignore (Sync Ver.200626) 3 년 전
.gitmodules fd02cc3e12 launcher deot 4 년 전
.twmrc fd02cc3e12 launcher deot 4 년 전
.xinitrc fd02cc3e12 launcher deot 4 년 전
.xorg.conf fd02cc3e12 launcher deot 4 년 전
.xorg_lima.conf fd02cc3e12 launcher deot 4 년 전
LICENSE fd02cc3e12 launcher deot 4 년 전
README.md c6e84cee26 Update README.md (Sync Ver.200626) 3 년 전
aria2.conf fd02cc3e12 launcher deot 4 년 전
aria2c fd02cc3e12 launcher deot 4 년 전
bluetooth_firmware.sh 6a4713d591 Update bluetooth_firmware.sh (Sync Ver.200626) 3 년 전
dwm-mod fd02cc3e12 launcher deot 4 년 전
load.sh 6cf1256b86 Update load.sh (Sync Ver.200626) 3 년 전
requirements.txt fd02cc3e12 launcher deot 4 년 전
update.sh ee60483608 Update update.sh (Sync Ver.200626) 3 년 전

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"