您尚未登录。

楼主 #1 2019-11-24 17:57:51

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

像艺术品般的全志S3开发板,修改一代所有不足,打造完美S3开发板


...但是有一个幸福的烦恼, wifi账号密码不能保存, 下次启动又得重新手动设置.





-------------------------------

以下是站长@晕哥 添加:

小智开发板QQ交流群: 202900925
淘宝淘宝链接: https://item.taobao.com/item.htm?id=607207528669

离线

楼主 #2 2019-11-24 18:01:48

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

wpa_cli -i wlan0 add_network                 
wpa_cli set_network 0  ssid 'myhome'     
wpa_cli set_network 0  psk '13800138000'
wpa_cli set_network 0  scan_ssid 1   
wpa_cli set_network 0  priority  1           

上面的命令执行结果都是 OK, 到下面这个就是 FAIL

wpa_cli -i wlan0 save_config

离线

楼主 #3 2019-11-24 18:04:21

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

然后我新建了一个 /usr/bin/start_wifi.sh 文件:

/bin/echo 'add_network' | /sbin/wpa_cli                                  ###添加网络
/bin/echo 'set_network 0 ssid "myhome"' | /sbin/wpa_cli         ###设置ssid
/bin/echo 'set_network 0 psk "13800138000"' | /sbin/wpa_cli  ###设置密码
/bin/echo 'enable_network 0' | /sbin/wpa_cli                          ###使能上面设置的网络

/sbin/udhcpc -i wlan0    ###获取IP

然后设置执行属性: chmod +x /usr/bin/start_wifi.sh

每次开机之后, 只要执行 start_wifi.sh 就可以了, 哈哈哈哈哈哈哈哈哈.....

然后想安装哪个软件, 就可以安装哪个软件了.

离线

楼主 #6 2019-11-24 21:22:25

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

店主给的固件已经安装好了 vncserver, 但是我运行之后, vncviewer连上去之后, 什么窗口都没有:

QQ截图20191124212145.png

离线

楼主 #7 2019-11-24 22:01:10

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

修改 ~/.vnc/xstartup 文件, 添加下面粗体字一行

#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
startlxde &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &

然后再运行 vncserver, 貌似没问题了:
QQ截图20191124215942.png

跑个 firefox 试一试:
QQ图片20191124210231.png

哎哟, 居然汉字全部是方框框.

离线

楼主 #8 2019-11-24 22:09:11

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

QQ截图20191124220632.png

装上中文字体: apt-get install ttf-wqy-microhei ttf-wqy-zenhei

终于可以了.


参考: http://einverne.github.io/post/2015/10/install-fonts-under-linux.html

离线

楼主 #11 2019-11-24 22:39:18

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

达克罗德 说:

内存使用率怎么样?

跑了vnc桌面之后,free命令显示:

root@SmallWit:~# free
             total       used       free     shared    buffers     cached
Mem:        120472     103572      16900       6852        888      47072
-/+ buffers/cache:      55612      64860
Swap:       262140       4352     257788

跑了 firefox 之后:

root@SmallWit:~# free
             total       used       free     shared    buffers     cached
Mem:        120472     118412       2060        108        180      35808
-/+ buffers/cache:      82424      38048
Swap:       262140      77568     184572

前面忘记告诉大家密码了

终端登录账号 root, 密码 smallwit

vnc 登录密码 smallwit

ntp时钟同步软件安装与使用:

apt-get install ntp -y
ntpdate
date

装上了 NTP 之后, 系统会自动同步服务器时间, 这样firefox 不会出现证书错误了:
QQ图片20191124223857.png

离线

楼主 #12 2019-11-24 22:40:44

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

达克罗德 说:

牛啊,挖坑网都能跑,这点内存

root@SmallWit:~# free
             total       used       free     shared    buffers     cached
Mem:        120472     118412       2060        108        180      35808
-/+ buffers/cache:      82424      38048
Swap:       262140      77568     184572

基本靠 swap 撑着了, 交换数据量太大, 整个系统CPU动不动就 100%

离线

楼主 #22 2019-11-26 19:52:40

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

把晕哥的配网方法get到了,下面装一个游戏模拟器试一试.

root@SmallWit:~# sudo apt install mame
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libasyncns0 libcaca0 libdirectfb-1.2-9 libflac8 libjson-c2 libogg0
  libportmidi0 libpulse0 libsdl-ttf2.0-0 libsdl1.2debian libsndfile1
  libvorbis0a libvorbisenc2 mess-data
Suggested packages:
  pulseaudio gnome-video-arcade mame-extra mame-tools
The following NEW packages will be installed:
  libasyncns0 libcaca0 libdirectfb-1.2-9 libflac8 libjson-c2 libogg0
  libportmidi0 libpulse0 libsdl-ttf2.0-0 libsdl1.2debian libsndfile1
  libvorbis0a libvorbisenc2 mame mess-data
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.9 MB/22.3 MB of archives.
After this operation, 113 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.cn.debian.org/debian/ jessie/main libjson-c2 armhf 0.11-4 [22.8 kB]
Get:2 http://ftp.cn.debian.org/debian/ jessie/main libasyncns0 armhf 0.8-5 [11.2 kB]
Get:3 http://ftp.cn.debian.org/debian/ jessie/main libdirectfb-1.2-9 armhf 1.2.10.0-5.1 [951 kB]
2% [3 libdirectfb-1.2-9 504 kB/951 kB 53%]                   84.5 kB/s 4min 13s[  260.468931] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
Get:4 http://ftp.cn.debian.org/debian/ jessie/main libflac8 armhf 1.3.0-3 [81.4 kB]
Err http://ftp.cn.debian.org/debian/ jessie/main libvorbis0a armhf 1.3.4-2
  404  Not Found
Err http://ftp.cn.debian.org/debian/ jessie/main libvorbisenc2 armhf 1.3.4-2
  404  Not Found
Get:5 http://ftp.cn.debian.org/debian/ jessie/main libsndfile1 armhf 1.0.25-9.1+deb8u1 [209 kB]
Get:6 http://ftp.cn.debian.org/debian/ jessie/main libpulse0 armhf 5.0-13 [221 kB]
Get:7 http://ftp.cn.debian.org/debian/ jessie/main libsdl1.2debian armhf 1.2.15-10+b1 [165 kB]
Get:8 http://ftp.cn.debian.org/debian/ jessie/main libsdl-ttf2.0-0 armhf 2.0.11-3 [16.9 kB]
Get:9 http://ftp.cn.debian.org/debian/ jessie/main libportmidi0 armhf 1:184-2.2 [

居然这么多404错误:

2% [3 libdirectfb-1.2-9 504 kB/951 kB 53%]                   84.5 kB/s 4min 13s[  260.468931] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
Get:4 http://ftp.cn.debian.org/debian/ jessie/main libflac8 armhf 1.3.0-3 [81.4 kB]
Err http://ftp.cn.debian.org/debian/ jessie/main libvorbis0a armhf 1.3.4-2
  404  Not Found
Err http://ftp.cn.debian.org/debian/ jessie/main libvorbisenc2 armhf 1.3.4-2
  404  Not Found
Get:5 http://ftp.cn.debian.org/debian/ jessie/main libsndfile1 armhf 1.0.25-9.1+deb8u1 [209 kB]
Get:6 http://ftp.cn.debian.org/debian/ jessie/main libpulse0 armhf 5.0-13 [221 kB]
Get:7 http://ftp.cn.debian.org/debian/ jessie/main libsdl1.2debian armhf 1.2.15-10+b1 [165 kB]
Get:8 http://ftp.cn.debian.org/debian/ jessie/main libsdl-ttf2.0-0 armhf 2.0.11-3 [16.9 kB]
Get:9 http://ftp.cn.debian.org/debian/ jessie/main libportmidi0 armhf 1:184-2.2 [18.5 kB]
Get:10 http://ftp.cn.debian.org/debian/ jessie/non-free mess-data all 0.154-3.1 [6447 kB]
Get:11 http://ftp.cn.debian.org/debian/ jessie/non-free mame armhf 0.154-3.1 [13.6 MB]
47% [11 mame 2195 kB/13.6 MB 16%]                            87.9 kB/s 2min 11s[  310.235993] EXT4-fs (mmcblk0p2): error count since last fsck: 1
[  310.241954] EXT4-fs (mmcblk0p2): initial error at time 1574131551: ext4_find_entry:1451: inode 46140
[  310.251082] EXT4-fs (mmcblk0p2): last error at time 1574131551: ext4_find_entry:1451: inode 46140
47% [11 mame 2195 kB/13.6 MB 16%][  320.532399] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
97% [11 mame 13.2 MB/13.6 MB 97%][  380.514009] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
Fetched 21.8 MB in 2min 9s (169 kB/s)
E: Failed to fetch http://ftp.cn.debian.org/debian/pool/main/libv/libvorbis/libvorbis0a_1.3.4-2_armhf.deb  404  Not Found

E: Failed to fetch http://ftp.cn.debian.org/debian/pool/main/libv/libvorbis/libvorbisenc2_1.3.4-2_armhf.deb  404  Not Found

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@SmallWit:~# [  440.542492] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[  500.518067] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[  560.505640] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[  620.516166] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[  680.566069] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[  740.565626] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[  800.538913] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8

root@SmallWit:~# sudo apt-get update
Ign http://ftp.cn.debian.org jessie InRelease
Get:1 http://ftp.cn.debian.org jessie Release.gpg [1652 B]
Get:2 http://ftp.cn.debian.org jessie Release [77.3 kB]
Get:3 http://ftp.cn.debian.org jessie/main Sources [7063 kB]

吓得我赶紧 apt-get update

离线

楼主 #24 2019-11-28 22:17:07

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

jiangming1399 说:

debian8,梦回2015

嗯, 是有点老了, 反正是学习嘛,无所谓.


看到一个好帖了, https://whycan.cn/t_3231.html#p27942

https://www.maketecheasier.com/enable-autologin-lightdm/

修改这个文件: /etc/lightdm/lightdm.conf

autologin-guest=false
autologin-user=root
autologin-user-timeout=0

就可以自动启动到桌面了

离线

楼主 #25 2019-11-28 22:37:15

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

太棒了, 原来可以不用另外安装 vncserver, 自带了 Xvnc, 所以 6楼/7楼的操作(手动运行vncserver命令)是多余的

https://whycan.cn/t_3287.html#p28402

只要修改  /etc/lightdm/lightdm.conf 最末即可:

[VNCServer]
enabled=true
command=Xvnc  -rfbauth /etc/vncpasswd
port=5900
width=1024
height=768
depth=24

记得先用命令手动设置一下密码, 保存到 /etc/vncpasswd:

vncpasswd /etc/vncpasswd

这样, 开机就可以自动运行 vnc 服务了, 不用再手动开启.


QQ截图20191128225910.png

参考: https://wiki.archlinux.org/index.php/LightDM     vnc 部分

离线

楼主 #26 2019-11-28 23:31:56

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

root@SmallWit:~# sudo apt-get install xrdp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  xrdp
0 upgraded, 1 newly installed, 0 to remove and 116 not upgraded.
Need to get 200 kB of archives.
After this operation, 1475 kB of additional disk space will be used.
Get:1 http://ftp.cn.debian.org/debian/ jessie/main xrdp armhf 0.6.1-2 [200 kB]
Fetched 200 kB in 1s (166 kB/s)
Selecting previously unselected package xrdp.
dpkg: warning: files list file for package 'libgomp1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libatomic1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libubsan0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-libc-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython-stdlib:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libasan1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython2.7:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgcc-4.9-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsqlite3-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libexpat1-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython2.7-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython2.7-minimal:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libc6-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libapt-pkg4.12:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libusb-0.1-4:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython2.7-stdlib:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpcap0.8:armhf' missing; assuming package has no files currently installed
(Reading database ... 43257 files and directories currently installed.)
Preparing to unpack .../xrdp_0.6.1-2_armhf.deb ...
Unpacking xrdp (0.6.1-2) ...
Processing triggers for systemd (215-17+deb8u6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up xrdp (0.6.1-2) ...
insserv: warning: script 'wifi.sh' missing LSB tags and overrides
[ 3555.749462] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
Processing triggers for systemd (215-17+deb8u6) ...
root@SmallWit:~#
root@SmallWit:~#
root@SmallWit:~#
root@SmallWit:~# service xrdp restart
root@SmallWit:~#

运行安装并启动xrdp服务:

sudo apt-get install xrdp -y
service xrdp restart

QQ图片20191128233023.png

QQ图片20191128233019.png

完全OK!

离线

楼主 #27 2019-11-30 23:00:11

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 今天终于收到了小智的S3开发板, 烧了店主给的debian8固件, 可以wifi联网, 也可以用apt-get更新固件,但是有一个幸福的烦恼

用尽各种办法, 控制台还是没有办法自动登录, 总是要输入账号密码

https://www.raspberrypi.org/forums/viewtopic.php?t=127042

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn