
Linux
Zengjie.Li
业精于勤荒于嬉,行成于思毁于随
展开
-
Ubuntu修改网卡名称为eth0
1、执行命令:sudo vim /etc/default/grub修改GRUB_CMDLINE_LINUX 为 ---> "net.ifnames=0 biosdevname=0"。2、执行命令:sudo update-grub3、执行命令:sudo reboot原创 2019-06-29 09:52:19 · 2162 阅读 · 1 评论 -
Ubuntu16安装Stm32CubeMX
①下载各种所需要的软件,stm32cube,jdk或者jre(jre是必需,jdk包含jre),stlink驱动:git clone https://github.com/texane/stlink.git②安装Stm32CubeMX 1、解压下载的CubeMX。unzip en.STM32CubeMX_v5-2-0.zip 2、得到一个文件夹和3个...原创 2019-06-29 15:56:44 · 2758 阅读 · 0 评论 -
Ubuntu16常用国内源-阿里,中科大,清华
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricteddeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricteddeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xe...转载 2019-06-29 15:59:27 · 2246 阅读 · 0 评论 -
树莓派制作数字音箱--简易版
样板: 材料:树莓派,TPA3116D2,音箱步骤:①配置树莓派sudo apt-get -f install omxplayer ②编写测试代码# -*- coding:utf-8 -*- import socketimport timeimport osimport s...原创 2019-07-23 11:28:37 · 1686 阅读 · 0 评论 -
TQ2440与Ubuntu进行TFTP传输
首先Ubuntu安装tftp tftpd xinetdsudo apt-get install tftp tftpd xinetd配置Ubuntu Server端:sudo vim /etc/xinetd.d/tftpservice tftp{ socket_type = dgram protocol = udp wait = yes use...原创 2019-07-23 11:39:44 · 257 阅读 · 0 评论 -
指定声卡的方法
入手一块OrangePi,写了个App程序通过USB声卡来输出声音,运行alsamixer但是选中后,关闭AlsaMixer后仍然为audiocodec 。解决方法: vim .asoundrc defaults.ctl.card 0 defaults.pcm.card 0其中0为默认声卡,具体数字需要查看自己的具体声卡标号lzj@or...原创 2019-08-19 11:47:44 · 1429 阅读 · 0 评论 -
Ubuntu打开STM32Cube生成的工程identifier is undefined
修改文件:/home/lzj/IOT_MakeFile/.vscode/c_cpp_properties.json(path因人而异){ "configurations": [ { "name": "Linux", "includePath": [//可省略不写,只写defines内容 "...原创 2019-07-04 15:37:20 · 728 阅读 · 0 评论 -
Ubuntu 64位:arm-none-linux-xxx not found
Ubuntu12及以前版本:sudo apt-get install ia32-libsUbuntu14及以后版本:sudo apt-get install libc6-i386转载 2019-05-29 09:55:47 · 256 阅读 · 0 评论 -
解决MySQL在树莓派3B安装第一次登陆问题
停止mysql服务sudo service mysql stop以安全模式启动MySQLsudo mysqld_safe --skip-grant-tables &mysql> update mysql.user set authentication_string=PASSWORD('123456'), plugin='mysql_native_password...转载 2019-03-18 13:09:24 · 450 阅读 · 0 评论 -
Linux 定时任务
fileclear.shtamcdir=${HOME}/ora/user_projects/domains/tamccd ${tamcdir}echo rm -f `ls heapdump*.phd`rm -f heapdump*.phdecho rm -f `ls javacore*.txt`rm -f javacore*.txtecho rm -f `ls Snap*.trc...转载 2018-11-22 09:10:48 · 206 阅读 · 0 评论 -
记录一次艰难的linux安装之旅
公司仓库存有研华(ARK3202)工控机3台,因太过陈旧,且安装Vista后,经常蓝屏,故安装Linux说明书写的是支持Fedora9,但因习惯性使用Ubuntu,首先安装ubuntu测试,但是结果真的是一言难尽,最终尝试了10个版本后放弃,百度到Fedora9的i386.ISO。使用powerISO,ultraiso都是安装失败,原因在与引导不是root(hd0,0),而是root(hd...原创 2018-11-23 09:00:54 · 249 阅读 · 0 评论 -
记录在Pi3B上安装ubuntu core16
好奇害死猫①下载ubuntu core②使用win32或者dd烧录到内存卡③在ubuntu one注册一个账号④打开Linux系统的 ~/.ssh/id_rsa.pub 将里面的内容全部复制到ubuntu one的ssh key中⑤启动树莓派,必须有HDMI显示屏,因为有设置项需要...原创 2018-12-03 08:18:50 · 209 阅读 · 0 评论 -
NO_PUBKEY 6D1D8367A3421AFB
执行sudo apt-get update出现以下错误:W: GPG error:http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6D1D8367A3421AFB解...原创 2019-01-22 16:19:33 · 182 阅读 · 0 评论 -
Ubuntu14.04升级Ubuntu16.04的坑
升级多次,最终无果一直死在Calculating the changesCould not calculate the upgrade An unresolvable problem occurred while calculating the upgrade. This can be caused by: * Upgrading to a pre-release version...原创 2019-02-24 09:43:46 · 3925 阅读 · 1 评论 -
Pyinstaller打包Python程序
1.安装pyinstallergit clone https://github.com/lizengjie/pyinstaller.git cd bootloader python3 ./waf distclean all2.开始制作执行pyinstaller-script.py -F <待转换python的入口脚本全路径文件名> For...原创 2019-03-05 09:32:07 · 307 阅读 · 0 评论 -
关于Python版本解释器指定
对于linux系统,一般是默认安装多版本Python,因此Python2编写的文件执行需要python2 xxx.py,python3编写的则需要执行python3 xxx.py,在xxx.py中添加 ①#!/usr/bin/python2 或者 ②#!/usr/bin/python3,对文件添加可执行权限:chmod +x ...原创 2019-03-05 11:27:44 · 907 阅读 · 0 评论 -
Linux创建简单的桌面启动文件(快捷方式)
[Desktop Entry]Type=ApplicationExec=/home/pi/......(绝对路径)Icon=/home/pi/......(绝对路径)Terminal=false本来打算查找启动Python的快捷方式,暂时未找到,自定义为Python不能通过双击启动,因此,将Python文件用pyinstaller打包,这样建立一个启动文件,也不比发布自己...原创 2019-03-08 12:55:05 · 1714 阅读 · 0 评论 -
记录Ubuntu安装搜狗输入法
下载deb包sudo dpkg -i sogou.deb个人遇到的问题:提示fcitx各种缺失解决:更新源,update,apt-get install fcitx最后提示No such key 'Gtk/IMModule' in schema 'org.gnome.settings-daemon.plugins.xsettings' as specified in override file '...原创 2018-04-11 16:02:33 · 776 阅读 · 1 评论