分类 pocketchip 下的文章

安装NES模拟器fceux
sudo apt install fceux
fceux

安装Doom
sudo apt install prboom doom-wad-shareware
多人
prboom-game-server
prboom -net 172.20.0.1
单机
prboom

Gmu音乐播放器(我没整明白)
https://github.com/NeoTheFox/gmu-chip.git
https://wej.k.vu/projects/gmu/

命令行播放音乐(mp3不卡顿)
sudo apt-get install sox libsox-fmt-all
chip@chip:~/Music$ play 灰澈\ -\ 森林.mp3
play *mp3 播放当前文件夹的所有mp3
Ctrl+C 下一曲

GUI版系统电量显示
先安装xfce4-genmon-plugin
sudo apt-get install xfce4-genmon-plugin
https://github.com/editkid/chip-battery-status

GUI版系统亮度调整
sudo apt-get install xfce4-power-manager-plugins

DOSBox
sudo apt-get install -y dosbox
sudo wget -O ~/.dosbox/dosbox-0.74.conf https://gitee.com/awnuxcvbn/PocketHome/raw/master/files/dosbox-0.74.conf
sudo nano /home/chip/.dosbox/dosbox-0.74.conf
这个配置文件的倒数第二行是DOSBox的C盘挂载路径
比如
MOUNT C /home/chip/Documents/DOSBox
C:
Install Price of Persia
wget http://www.bestoldgames.net/download/bgames/prince-of-persia.zip
unzip prince-of-persia.zip
Install Golden Axe
wget http://www.bestoldgames.net/download/bgames/wolfenstein-3d.zip
unzip wolfenstein-3d.zip
Install Wolfenstein 3D
wget http://www.bestoldgames.net/download/bgames/golden-axe.zip
unzip golden-axe.zip

通过命令行连接wifi(双引号不能少)
sudo nmcli d wifi connect "wifi名" password "wifi密码" wlan0

键盘功能键
wget -O /home/chip/.Xmodmap https://gitee.com/awnuxcvbn/PocketHome/raw/master/files/.Xmodmap
wget -O /home/chip/.xinitrc https://gitee.com/awnuxcvbn/PocketHome/raw/master/files/.xinitrc

更新pico8
wget www.lexaloffle.com/dl/chip/pico-8_0.2.4c_chip.zip
sudo unzip pico-8_0.2.4c_chip.zip -d /usr/lib

midori
wget https://mirrors.tuna.tsinghua.edu.cn/raspberry-pi-os/raspbian/pool/main/m/midori/midori_0.5.11-ds1-4_armhf.deb
sudo dpkg -i midori_0.5.11-ds1-4_armhf.deb
sudo apt install zeitgeist
sudo apt-get -f install

安装文泉驿正黑、文泉驿微米黑字体
sudo apt-get install ttf-wqy-zenhei

安装locales软件包
sudo apt-get install locales

配置locales软件包
sudo dpkg-reconfigure locales

界面中钩选上“zh_CN.UTF-8”
TIM截图20191019120713.jpg
空格键选择 回车确认

默认的区域选“zh_CN.UTF-8”
TIM截图201910191207132.jpg

安装中文输入法
sudo apt-get install scim-pinyin

安装屏幕校准
sudo apt-get install xinput-calibrator
执行
xinput_calibrator
出现
Section "InputClass"
Identifier "calibration"
MatchProduct "1c25000.rtp"
Option "Calibration" "3980 226 3564 343"
Option "SwapAxes" "0"
EndSection

在终端内输入:sudo nano /etc/X11/xorg.conf
将上面的6行触摸相关的添加到这个conf里,或者只改那四个数字
按ctrl+o保存 ctrl+x 退出

最后重启
sudo reboot

1、改中科大源和能用的PocketChip源
sudo nano /etc/apt/sources.list

deb http://chip.jfpossibilities.com/chip/debian/repo jessie main
deb http://chip.jfpossibilities.com/chip/debian/pocketchip jessie main
deb http://mirrors.ustc.edu.cn/debian jessie main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/debian jessie main contrib non-free
#deb http://mirrors.ustc.edu.cn/debian jessie-proposed-updates main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/debian jessie-proposed-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian jessie-updates main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/debian jessie-updates main contrib non-free
#下面四行用于media相关的,比如kodi,但是2021.5.2发现已经不能用了
#deb http://mirrors.ustc.edu.cn/debian-multimedia/ jessie main non-free
#deb-src http://mirrors.ustc.edu.cn/debian-multimedia/ jessie main non-free
#deb http://mirrors.ustc.edu.cn/debian-multimedia/ jessie-backports main
#deb-src http://mirrors.ustc.edu.cn/debian-multimedia/ jessie-backports main
#所以换成官方的
deb https://archive.deb-multimedia.org/ jessie main non-free
deb https://archive.deb-multimedia.org/ jessie-backports main

Ctrl+x
y
保存

sudo nano /etc/apt/preferences

Package: *
Pin: origin opensource.nextthing.co
Pin-Priority: 1050

Package: *
Pin: origin chip.jfpossibilities.com
Pin-Priority: 1050
2、安装apt-transport-https
sudo apt install apt-transport-https
3、安装openssh-server并启动
sudo apt install openssh-server
sudo systemctl start ssh.service
4、修改配置
nano /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
5、设置自启动
sudo systemctl enable ssh

执行sudo apt-get update 时会有如下错误

W: GPG 错误:http://mirrors.ustc.edu.cn jessie InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 5C         808C2B65558117

安装 deb-multimedia-keyring 解决
sudo apt-get install deb-multimedia-keyring
或者
wget https://archive.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2016.8.1_all.deb
或者点击下载
用FileZilla sftp上传到chip下
sudo dpkg -i deb-multimedia-keyring_2016.8.1_all.deb

1.Ubuntu系统真机(我用的版本18.04)

2.Ubuntu改国内源

备份源

cp /etc/apt/sources.list /etc/apt/sources.list.bak

改源

sudo nano /etc/apt/sources.list

中科大源

deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

更新

sudo apt-get update
sudo apt-get upgrade

3.https://github.com/Thore-Krug/Flash-CHIP
建议把需要的文件FQ下载到隐藏文件夹.dl下,Ctrl+h查看隐藏文件
2019-10-18 16-59-27屏幕截图.png

2019-10-15 17-08-48屏幕截图.png

2019-10-15 17-09-12屏幕截图.png

2019-10-15 17-08-29屏幕截图.png

刷完之后发现触摸屏方向是左右上下相反

1、在终端内输入:sudo nano /etc/X11/xorg.conf 将以下添加到最后

Section "InputClass"
Identifier "calibration"
MatchProduct "1c25000.rtp"
Option "Calibration" "3976 191 3823 333"
Option "SwapAxes" "0"
EndSection

ctrl+X 退出
Y保存
回车确认

顺便添加https支持
sudo apt-get install apt-transport-https
安装屏幕校准器
sudo apt-get install xinput-calibrator
这个软件点击校准后会出现1的6行文字,把数字修改保存一下,重启之后会生效,提高触摸准确度

3、最后重启