会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Jello
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
18
19
20
21
22
23
24
25
26
···
77
下一页
2019年10月24日
linux内核中i2c驱动中slave模式接口的调用
摘要: 1. 关注unreg_slave接口 1.1 这个接口在哪里被调用呢? 在drivers/i2c/i2c-core-slave.c中 int i2c_slave_unregister(struct i2c_client *client) { int ret; 1.2 那么i2c_slave_unre
阅读全文
posted @ 2019-10-24 12:20 Jello
阅读(2108)
评论(0)
推荐(0)
2019年10月23日
git clone时报错“Failed to connect to 127.0.0.1 port 2453: Connection refused”如何处理?
摘要: 1. 查看git的配置 git config --global --list| grep -i proxy 如果有内容输出,那么unset配置项,如: git config --global --unset http.proxy 2. 查看环境变量 env | grep -i proxy 如果有内容
阅读全文
posted @ 2019-10-23 23:37 Jello
阅读(2833)
评论(0)
推荐(0)
2019年10月21日
ubuntu下搭建nfs服务
摘要: 1. 安装nfs服务端 $ sudo apt install nfs-kernel-server -y 2. 创建目录 $ sudo mkdir -p /mnt/sharefolder 3. 使任何客户端均可访问 $ sudo chown nobody:nogroup /mnt/sharedfold
阅读全文
posted @ 2019-10-21 21:19 Jello
阅读(6239)
评论(0)
推荐(0)
如何使能hyper-v的增强功能?
摘要: 1. 在hyper-v的设置中使能增强功能 2. 运行在hyper-v中的虚拟机(笔者使用ubuntu版本为bionic)中安装xrdp 2.1 获取安装脚本 $ git clone https://github.com/jterry75/xrdp-init.git ~/xrdp-init 2.2
阅读全文
posted @ 2019-10-21 20:11 Jello
阅读(2430)
评论(0)
推荐(0)
2019年10月19日
ubuntu下安装ftp服务
摘要: 1. 安装vsftpd $ sudo apt-get install vsftpd 2. 创建一个用户user-ftp用于ftp服务 $ sudo adduser user-ftp 3.创建一个文件/etc/allowed_users, 将 用户名user-ftp加入其中 # echo 'user-
阅读全文
posted @ 2019-10-19 10:42 Jello
阅读(1755)
评论(0)
推荐(0)
2019年10月17日
如何在shell脚本中获取当前用户名?
摘要: 答:使用环境变量USER即可 如在脚本中打印当前用户名;
阅读全文
posted @ 2019-10-17 17:52 Jello
阅读(12134)
评论(0)
推荐(0)
在linux的用户空间操作gpio
摘要: 1. 使能linux内核选项CONFIG_GPIO_SYSFS (旧的sysfs接口,已废弃,请移步这里) CONFIG_GPIO_SYSFS=y 2. 测试方法 2.1 关注/sys/class/gpio下的文件 --export/unexport文件 --gpioX指代具体的gpio引脚 --g
阅读全文
posted @ 2019-10-17 14:07 Jello
阅读(2523)
评论(0)
推荐(0)
2019年10月16日
分析imx8mm-evk评估板的pinctrl设备树
摘要: 1. 分析arch/arm64/boot/dts/freescale/imx8mm-evk.dts中的i2c3相关的pinctrl_i2c3节点 pinctrl_i2c3: i2c3grp { fsl,pins = < MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c
阅读全文
posted @ 2019-10-16 14:41 Jello
阅读(1354)
评论(0)
推荐(0)
2019年10月15日
hyper-v启动虚拟机时提示“The application encountered an error while attempting to change the state of the machine ‘虚拟机名称'”如何处理?
摘要: 1. 找出发生这一问题的事件代号 1.1 在开始菜单中搜索程序Event Viewer并点击进入 1.2 点击路径如下: “Applications and Services Logs > Microsoft > Windows > Hyper-V-Worker” 1.3 点击“Admin”,然后检
阅读全文
posted @ 2019-10-15 16:33 Jello
阅读(1356)
评论(0)
推荐(0)
2019年10月13日
ubuntu18.04下如何开机自动执行自定义脚本?
摘要: 答: 假设脚本路径为/usr/bin/myscript.sh,那么在/lib/systemd/system/下创建 一个myscript.service文件 1. /lib/systemd/system/myscript.service文件内容如下: ``` [Unit] Description=m
阅读全文
posted @ 2019-10-13 13:15 Jello
阅读(1404)
评论(0)
推荐(0)
上一页
1
···
18
19
20
21
22
23
24
25
26
···
77
下一页
公告