目录

Linux 系统的使用

← 返回 sTPC-EXXX-3568B

声卡使用方法

硬件接口

ES8316

设备

1 cat /proc/asound/cards

rk_audio设备

1 aplay -l

rk_audio播放设备

1 arecord -l

rk_audio录制设备

使用

1 arecord -D sysdefault:CARD=RKES8316 -f cd -d 10 -t wav test.wav

rk_audio录制

1 aplay -D sysdefault:CARD=RKES8316 test.wav

rk_audio播放音乐

网络使用方法

以太网

AR8033 PHY芯片
1 ip link show | grep -i "eth"

网卡设备

1 cat <<EOF >> /etc/network/interfaces
2 allow-hotplug eth0
3 auto eth0
4 iface eth0 inet dhcp              //动态IP模式
5
6 EOF

动态IP

 1 cat <<EOF >> /etc/network/interfaces
 2 allow-hotplug eth0
 3 auto eth0
 4 iface eth0 inet static            //静态IP模式
 5 address 192.168.8.55              //静态IP地址
 6 netmask 255.255.255.0             //子网掩码
 7 gateway 192.168.8.1               //网关
 8 dns-nameservers 202.96.134.133    //DNS域名服务器
 9
10 EOF

静态IP

1 cat <<EOF > /etc/resolv.conf      //临时修改DNS,此文件内容可能被覆盖
2 nameserver 8.8.8.8                //主DNS
3 nameserver 114.114.114.114        //副DNS
4
5 EOF

WIFI

RTL8188ETV & RTL8723BU
1 ip link show

无线网卡设备

 1 cat << EOF >> /etc/network/interfaces
 2 # Wireless interface
 3 auto wlan0
 4 allow-hotplug wlan0
 5 iface wlan0 inet dhcp
 6         wireless_mode managed
 7         wireless_essid any
 8         wpa-driver nl80211
 9         wpa-conf /etc/wpa_supplicant.conf
10
11 EOF
1 wpa_passphrase test 123456 > /etc/wpa_supplicant.conf

无线动态IP

 1 cat <<EOF >> /etc/network/interfaces
 2 auto wlxec3dfd322b06
 3 allow-hotplug wlxec3dfd322b06
 4 iface wlxec3dfd322b06 inet static    //静态IP模式
 5         wpa-conf /etc/wpa_supplicant.conf
 6         address 192.168.100.148       //静态IP地址
 7         netmask 255.255.255.0         //子网掩码
 8         gateway 192.168.100.1         //网关
 9         dns-nameservers 223.5.5.5     //DNS域名服务器
10 EOF

无线静态IP

1 cat <<EOF > /etc/resolv.conf      //临时修改DNS,此文件内容可能被覆盖
2 nameserver 8.8.8.8                //主DNS
3 nameserver 114.114.114.114        //副DNS
4
5 EOF

显分辩率修改

〔本章内容待补充:HDMI / LVDS 分辨率修改方法〕

远程访问及文件传输

配置 Ubuntu / Debian 软件库

sudo apt update
sudo apt install openssh-client
ifconfig

设备IP

Linux 主机 SSH 访问及文件传输

SSH 远程登录:

ssh user@host    #user替换成用户名、host替换成需要访问的目标主板IP

应用实例:

ssh root@192.168.8.220

SCP 文件传输:

scp [可选参数] file_source file_target

应用实例:

scp /home/test/1.mp3 root@192.168.8.20:/home/root/others/music  #本地拷贝到远程,将1.mp3复制到远程music目录下
scp root@192.168.8.20:/home/root/others/music/1.mp3 /home/test/ #远程拷贝到本地
scp -r /home/space/music/ root@192.168.8.20:/home/root/others/  #-r选项拷贝目录

Windows 下 SSH 访问及文件传输

ssh 远程登录

Ssh登录

Ssh登录成功

文件传输

Winscp登录

Winscp警告提示框

Winscp登录成功

Winscp传输文件


资源特性 · 接口布局和尺寸 · 快速入门 · Android 系统的使用 · Linux 系统的使用 · 通用方法