debian

Debian 下的五笔输入法 Rime

不羁岁月 提交于 2020-02-05 16:29:20
linux 平台下,一直使用 ibus-wubi 虽然经常有点小故障,但也没有其它比较好的选择,也只能忍了。一直期盼搜狗出个五笔linux版,windows 平台下一直是用它,感觉很好,等了又等,还是没有,是我想多了~ wiki: https://github.com/rime/home/wiki 安装: apt-get -y ×××tall ibus-rime librime-data-wubi 设置: vim ~/.config/ibus/rime/default.custom.yaml # default.custom.yaml # save it to: # ~/.config/ibus/rime (linux) # ~/Library/Rime (macos) # %APPDATA%\Rime (windows) patch: schema_list: - schema: wubi86 # 五笔86 - schema: wubi_pinyin # 五笔拼音混合輸入 - schema: luna_pinyin_simp # 朙月拼音 简化字模式 保留你需要的输入法,保存,重启系统。 在ibus设置里添加rime输入法: 随便开个文档,切换到rime输入法,按F4键,调出设置菜单,选择 “五笔”,完成。 我们一起享受打字的乐趣吧~! 来源: 51CTO 作者:

ModuleNotFoundError: No module named 'PyDIP', although it's installed

六眼飞鱼酱① 提交于 2020-02-05 05:52:29
问题 Trying to work with image recognition, I installed Python with OpenCV, following this tutorial. Later on, I decided to give PyDIP a try, running the commands given on this answer. The first command just don't work: >>> import PyDIP as dip Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'PyDIP' I tried to install it using: (cv) user@pc:~$ python -m pip install PyDIP Requirement already satisfied: PyDIP in ./.virtualenvs/cv/lib/python3

BeagleBone Black UART software FIFO size?

守給你的承諾、 提交于 2020-02-04 07:01:59
问题 I'm developing a custom application on the BeagleBone Black that has to use the UART capabilities of the device via the Debian Linux that runs on the BBB, for reading big chunks of data. For reading from the UART I'm opening one of the /dev/ttyO0, /dev/ttyO1, etc. devices with the open() function in nonblocking mode. And then I'm trying to read from this port with the read(2) function: ssize_t read(int fd, void *buf, size_t count); I would like to know what is the biggest reasonable number

debian安装x2go

坚强是说给别人听的谎言 提交于 2020-02-03 15:41:38
1-debian安装xfce桌面 sudo apt-get install xfce4 2-添加GPG Keys gpg: 从公钥服务器接收失败:No name sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 --recv E1F958385BFE2B6E 参考: https://www.jianshu.com/p/7f04a4448634 3-添加实际的Repository sudo vim /etc/apt/sources.list.d/x2go.list # X2Go Repository (release builds) deb http://packages.x2go.org/debian buster extras main # X2Go Repository (sources of release builds) deb-src http://packages.x2go.org/debian buster extras main # X2Go Repository (Saimaa ESR builds) #deb http://packages.x2go.org/debian buster extras saimaa # X2Go Repository (sources of

阉割版BBBlack安装Debian

狂风中的少年 提交于 2020-02-01 03:49:59
开门见山,直入主题 咸鱼入手3块阉割ARM板,经过快递近6天运输到手,不过价格便宜 东西下面这样的(借了咸鱼的图): 发现这块板是阉割版的国外beagleboard.org型号为BeagleBone Black的开发板,官网有很多详细的资料,如下图 不愧是官网,资料不是一般的全,我们先看看哪些东西被阉割掉了吧。 (下图都是实际收到的板子) 我框出的部分不是全部,但是比较大的功能型部分: (1)5V充电口 (2)和(3)HDMI成帧器和MicroHDMI接口 (4)USB接口 先说结论, (1)5V充电口焊上插座就可以作为供电口使用,5V1A足矣,规格我记得是3.5的1.5(上图中 正极在上 , 负极在中 ) (2)和(3)缺核心电子元件HDMI成帧器,加焊成本过高,因此建议不打这块的主意 (4)USB接口附近缺元件比较多,觉得不靠谱没试,试过的朋友可以留言告知一声 好,硬件看完了,开始折腾软件吧。 首先,机器是定制版的ANTMINER定制版的Angstrom系统(我是第一次听说这个系统),可玩性资源我个人认为都比不上Debian,自带一个管理页面,也没啥球用,所以刷系统就是我的第一选择。 官方提供Debian刷机包,2G和4G的版本,结果 看来阉割不止在看到的那么简单,256M刷2G系统可想而知是刷不成的,剩下的路就是两条 1.用SD卡跑系统 2.换NAND芯片

How to get the newly-installed version within a Debian postinst script?

ε祈祈猫儿з 提交于 2020-02-01 00:38:51
问题 Per the Debian Policy Manual, my postinst script is getting called at upgrade and configure time, as "postinst configure old-version ", where old-version is the previously installed version (possibly null). I want to determine new-version , i.e. the version that is currently being configured (upgraded to). The environment variable $DPKG_MAINTSCRIPT_PACKAGE contains the package name; there does not seem to be an equivalent _VERSION field. /var/lib/dpkg/status gets updated AFTER postinst runs,

How to install build-essential on mac?

大兔子大兔子 提交于 2020-01-31 22:22:21
问题 build-essential installs fine on Debian/Ubuntu, $ apt search build-essential build-essential - Informational list of build-essential packages $ sudo apt install build-essential But does not appear to be available on brew/mac : brew install build-essential Error: No available formula with the name "build-essential" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... How do I install build-essential on Mac? 回答1: Homebrew ( brew ) is not

Window10 linux 子系统安装配置ssh

心已入冬 提交于 2020-01-31 13:32:45
Windows Subsystem for Linux(WSL)是一个可以直接执行Linux二进制可执行文件(ELF)的兼容层。和Hyper-v虚拟化不同,WSL是底层把Linux系统调用翻译成Native Windows API。例如安装Ubuntu子系统,就基本可以当作一个Ubuntu系统来用,例如使用Linux Bash,apt-get安装软件,编译和运行Linux程序,文件系统交互 开启 Ubuntu子系统 1.首先点击开始,然后点击设置 2.选择更新和安全 3.在左边点击开发者选项 4.点击开发人员模式 5.会出现正在安装开发人员模式程序包 6.稍等片刻,大概2分钟左右就可以安装成功 7.然后返回,点击应用 8.在应用和功能界面最下面,选择相关设置:程序和功能 9.点击启用或关闭windows功能 10.弹出的窗口中拉到最下面,勾选上适用于Linux的Windows子系统 11.然后会自动安装所需要的库 12.大约5秒,安装完毕后需要重启电脑 打开应用商店:搜索microsoft store找到Windows应用商店 安装完毕后需要重启一次才会生效,重启后打开 Windows应用商店,搜索“Debian”或者“Ubuntu”,然后进行安装。 使用 Linux子系统 使用windows 命令窗口输入bash 或wsl 进入子系统 也可以直接点击安装的系统进入(开始-

查看ubuntu对应的debian版本

馋奶兔 提交于 2020-01-30 23:48:51
查看/etc/debian_version这个文件 在ubuntu中,可以输入 Ctrl + Alt + t 进入终端(terminal),然后输入shell命令: cat /etc/debian_version 来查看。 有什么问题或建议,欢迎大家留言。 来源: CSDN 作者: 李老师在上海 链接: https://blog.csdn.net/jumpingpig/article/details/104117625

记kali (Debian内核)安装mysql过程中踩的那些坑

青春壹個敷衍的年華 提交于 2020-01-30 21:27:54
为了mysql安装中的各种问题,浪费了大把时间,因为2019.4版本自带的mysql会报Can 't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock '(2) ";的问题,我把它卸了重装。 有人在/etc/mysql/my.cnf的client-server节点下加了socket=/tmp/mysqld.sock,然后使用ln -s /tmp/mysqld.sock /var/run/mysqld/mysqld.sock解决了这个问题。 但是这个办法对po主无效。 1.如何删除mariadb版本的mysql apt-get remove mysql-* dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 保险起见再执行以下命令: apt-get remove mariadb-client apt-get autoremove mariadb-client apt-get remove mariadb-server apt-get autoremove mariadb-server 如果提示没有安装所以不用删除说明删干净了(一定要检查有没删干净,po在这里踩过坑) 2.安装mysql 这里因为kali2的版本没有mysql的包