1、apt-get源更新
1/ 在修改source.list前,最好先备份一份
执行备份命令
sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
sudo gedit /etc/apt/source.list
把下面的复制到source.list中去
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse然后:
sudo apt-get update
sudo apt upgrade
2、minicom安装
sudo apt install minicom
sudo minicom -s
Serial port setup选项配置
A选项用的是USB转串口,所以是ttyUSB0;如果沒有使用USB转串口,而是直接使用串口,那么Serial Device要配置爲/dev/ttyS0
E选项Bps/Par/Bits串口波特率、数据位、奇偶校验未、停止位设置为115200 8N1
F选项一定要改为NO,不然终端只能打印从下位机发过来的信息,而不能接受键盘的输入
返回上级菜单,进入Modem and dialing选项,将:
A - Init string .........
B - Reset string ........
K - Hang-up string ......
三项全部清空
在确认配置正确之后,可键入回车返回上级配置界面,并 将其保存为默认配置(即save setup as dfl)。最后,选择"Exit from Minicom"命令退出。
在终端中输入minicom即可将终端变为超级终端使用。
3、arm-linux-gcc配置
先 将 光 盘 目 录 linux\ 中 的 arm-linux-gcc-3.3.2.tgz 、 arm-linux-gcc-2.95.3.tgz 和arm-linux-gcc-3.4.1.tgz 拷贝到某个目录下如 tmp\,然后进入到该目录,执行解压命令:
#cd \tmp
#tar xvzf arm-linux-gcc-3.3.2.tgz -C /
#tar xvzf arm-linux-gcc-2.95.3.tgz -C /
#tar xvzf arm-linux-gcc-3.4.1.tgz -C /
执 行 该 命 令 , 将 把 arm-linux-gcc( 版 本 3.3.2, 2.95.3 和 3.4.1) 分 别 安 装 到/usr/loca/arm/2.95.3 和/usr/local/arm/3.4.1 目录,其中:
3.3.2 版本是用来编译 Qtopia/Embedded的,
2.95.3 版本是用来编译 VIVI 的,
3.4.1 版本是用来编译内核的,两个版本均可以用来编译应用程序等。
然后运行命令
#gedit /root/.bashrc
编辑/root/.bashrc 文件,在最后一行 export PATH=$PATH:/usr/local/arm/3.4.1/bin
重新登录当前用户,logut后重新登陆即可,使以上设置生效,在命令行
输入 arm-linux-gcc –v,会出现如下信息,这说明交叉编译环境已经成功安装。
可能报错:
/usr/local/arm/3.4.1/bin/arm-linux-gcc: 没有那个文件或目录
安装32位库:
sudo apt-get install lib32ncurses5 lib32z1
4、firefox更新
在原有firefox中,点击右侧的菜单栏,里面有个help->About Firefox,点进去
点击 what's new,然后进入网页有个download按钮,点击
1)要安装最新的,先要卸载之前的版本:[1]
sudo apt-get remove firefox
2)然后在terminal中运行:
cd /opt/ (在这个目录下解压文件)
sudo tar xvf your-path-of-firefox/firefox-61.0.2.tar.bz2 (your-path-of-firefox/firefox-61.0.2.tar.bz2指的是你的压缩包所在的绝对路径)
sudo ln -s /opt/firefox/firefox /usr/bin/firefox (把firefox链接到/usr/bin/下面)
3)然后,
cd /usr/share/applications
sudo gedit firefox.desktop
在firefox.desktop里面写上:
[Desktop Entry]
Name=firefox
Comment=firefox
Exec=/opt/firefox/firefox
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
Terminal=false
Type=Application
Categories=Application;
Encoding=UTF-8
StartupNotify=true
5、有线以太网设置
ip=192。168。1。100
子网掩码=255。255。255。0
网关:192。168。1。1