随笔分类 - linux软件常用配置
摘要:1. 先使用ls命令,找到Ubuntu的安装在哪个分区: grub>ls会罗列所有的磁盘分区信息,比方说:(hd0,1),(hd0,5),(hd0,3),(hd0,2)2. 然后依次调用如下命令: X表示各个分区号码如果/boot没有单独分区,用以下命令:ls (hd0,X)/boot/grub如果
阅读全文
摘要:sudo apt-get -o Acquire::http::proxy="http://192.168.188.8:1080/"
阅读全文
摘要:如何设置Jupyter 登录密码 1,生成jupyter的配置文件:jupyter notebook --generate-config2,控制台继续输入:jupyter notebook password (会输入两次密码,用来验证)3,密码设置成功, 登录服务器: jupyter noteboo
阅读全文
摘要:查看中文字体 fc-list :lang=zh 安装中文字体 cd /root/ cp MSYH.TTF /usr/share/fonts/ 然后建立字体索引信息,更新字体缓存,使用如下命令: cd /usr/share/fonts/ mkfontscale mkfontdir fc-cache
阅读全文
摘要:python venv 使用系统已经安装的包 2020年03月06日 10:13 阅读 1043 背景 今天我在linux环境下配置一个pyqt5的项目的时候,使用venv python虚拟环境,使用 (venv) $ pip install pyqt5 进行安装,发现非常的慢,于是我就用系统安装包
阅读全文
摘要:修改/etc/profile,增加以下语句: #fcitxexport XIM_PROGRAM=fcitxexport XIM=fcitxexport GTK_IM_MODULE=fcitxexport QT_IM_MODULE=fcitxexport XMODIFIERS="@im=fcitx"
阅读全文
摘要:问题症状 -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8) 解决方法 本地化是指不同地区用户在键盘上输入不同语言的字符集。例如 en_US 表示美国英语字符集,因此只有正确设置了服务器的字符集,服务器才能理解用户
阅读全文
摘要:1. 修改文件如下 vim /lib/systemd/system/docker.service [Service]Type=notifyLimitNOFILE=1048576LimitNPROC=1048576LimitCORE=infinityTasksMax=infinity echo "*
阅读全文
摘要:1. 配置软件及防火墙规则docker pull openwrtorg/rootfs:aarch64_cortex-a53docker run -d --network host --name test --privileged=true openwrtorg/rootfs:aarch64_cort
阅读全文
摘要:JetBrains免费试用期限为30天,通过对其试用机制的设想,找到了其破解试用机制的方案,具体如下: 打开IDEA时会生成注册表项和other.xml, 在选择试用JetBrains产品的时候,它会在 C:\Users\用户名\对应产品\config\eval 下生成一个密钥文件, 格式为 产品名
阅读全文
摘要:部署frp 创建frp客户端 暴露主机配置文件内容frpc_home.ini [common] server_addr = 107.150.34.118 server_port = 9876 #暴露主机名称 [redmi_ssh] type = xtcp # 只有 sk 一致的用户才能访问到此服务
阅读全文
摘要:编辑下列文件:sudo gedit /etc/systemd/logind.conf#HandlePowerKey按下电源键后的行为,默认power off#HandleSleepKey 按下挂起键后的行为,默认suspend#HandleHibernateKey按下休眠键后的行为,默认hibern
阅读全文
摘要:Compiling OpenCV with CUDA and FFMpeg on Ubuntu 16.04 Goal: Compile OpenCV 3.X using CUDA and FFMpeg to accelerate Deep Learning applications consisti
阅读全文
摘要:1.安装运行架构 dpkg --add-architecture armhf 2.安装需要的软件 3.apt-get install -f
阅读全文
摘要:最近在折腾树莓派。从官方网站下载下来的2015-05-05-raspbian-wheezy.zip中的2015-05-05-raspbian-wheezy.img,把它用dd命令写入SD卡后,SD卡就有两个分区,一个是/boot,一个是/。所以可以得知,这个img文件其实就是一个磁盘镜像文件。 现在
阅读全文
摘要:方法 1、修改系统变量 echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf 2、保存生效 sysctl -p 3、查看内
阅读全文
摘要:update-alternatives 命令用于处理 Linux 系统中软件版本的切换,使其多版本共存。alternatives 的管理目录 /etc/alternatives 。 alternatives 管理方式 $ ls -l /usr/bin/python lrwxrwxrwx 1 root
阅读全文
摘要:W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error:http://extra
阅读全文