<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux - 标签 - hublog</title><link>https://hu.778445.xyz/tags/linux/</link><description>hublog</description><generator>Hugo 0.165.0 &amp; FixIt v1.0.0-alpha-mtcmp1fx</generator><language>zh-CN</language><lastBuildDate>Wed, 14 Feb 2024 21:58:10 +0800</lastBuildDate><atom:link href="https://hu.778445.xyz/tags/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>Arch 安装旧版本软件包</title><link>https://hu.778445.xyz/posts/adb5e01/</link><pubDate>Wed, 14 Feb 2024 21:58:10 +0800</pubDate><guid>https://hu.778445.xyz/posts/adb5e01/</guid><category domain="https://hu.778445.xyz/categories/arch/">Arch</category><description>Arch 安装旧版本软件包</description></item><item><title>Wayland Flatpak 字体问题</title><link>https://hu.778445.xyz/posts/20a4029/</link><pubDate>Wed, 07 Feb 2024 10:23:51 +0800</pubDate><guid>https://hu.778445.xyz/posts/20a4029/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>Wayland Flatpak 字体问题</description></item><item><title>Linux环境变量配置</title><link>https://hu.778445.xyz/posts/10383c6/</link><pubDate>Sat, 27 Jan 2024 13:00:11 +0800</pubDate><guid>https://hu.778445.xyz/posts/10383c6/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>Linux环境变量配置</description></item><item><title>Ufw 防火墙的使用</title><link>https://hu.778445.xyz/posts/bf63d9d/</link><pubDate>Sat, 27 Jan 2024 11:42:28 +0800</pubDate><guid>https://hu.778445.xyz/posts/bf63d9d/</guid><category domain="https://hu.778445.xyz/categories/firewall/">Firewall</category><description>Ufw 防火墙的使用</description></item><item><title>UEFI引导和启动项</title><link>https://hu.778445.xyz/posts/c30f9ee/</link><pubDate>Fri, 26 Jan 2024 13:54:49 +0800</pubDate><guid>https://hu.778445.xyz/posts/c30f9ee/</guid><category domain="https://hu.778445.xyz/categories/%E5%BC%95%E5%AF%BC%E5%90%AF%E5%8A%A8/">引导启动</category><description>UEFI引导和启动项</description></item><item><title>修复 grub 引导</title><link>https://hu.778445.xyz/posts/af65970/</link><pubDate>Fri, 26 Jan 2024 09:18:21 +0800</pubDate><guid>https://hu.778445.xyz/posts/af65970/</guid><category domain="https://hu.778445.xyz/categories/%E5%BC%95%E5%AF%BC%E5%90%AF%E5%8A%A8/">引导启动</category><description>修复 grub 引导</description></item><item><title>Linux 用 davfs 挂载坚果云 Webdav</title><link>https://hu.778445.xyz/posts/1290b4f/</link><pubDate>Wed, 17 Jan 2024 14:37:00 +0800</pubDate><guid>https://hu.778445.xyz/posts/1290b4f/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>Linux 用 davfs 挂载坚果云 Webdav</description></item><item><title>Debian12 如何允许 root 用户登陆</title><link>https://hu.778445.xyz/posts/debian12%E5%85%81%E8%AE%B8root%E7%99%BB%E9%99%86/</link><pubDate>Mon, 15 Jan 2024 19:35:33 +0800</pubDate><guid>https://hu.778445.xyz/posts/debian12%E5%85%81%E8%AE%B8root%E7%99%BB%E9%99%86/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>Debian12 如何允许 root 用户登陆</description></item><item><title>debian 安装记录</title><link>https://hu.778445.xyz/posts/debian-%E5%AE%89%E8%A3%85%E8%AE%B0%E5%BD%95/</link><pubDate>Mon, 04 Dec 2023 20:42:01 +0800</pubDate><guid>https://hu.778445.xyz/posts/debian-%E5%AE%89%E8%A3%85%E8%AE%B0%E5%BD%95/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>debian 安装记录</description></item><item><title>linux 不同目录作用</title><link>https://hu.778445.xyz/posts/linux-%E4%B8%8D%E5%90%8C%E7%9B%AE%E5%BD%95%E7%9A%84%E4%BD%9C%E7%94%A8/</link><pubDate>Mon, 04 Dec 2023 20:42:01 +0800</pubDate><guid>https://hu.778445.xyz/posts/linux-%E4%B8%8D%E5%90%8C%E7%9B%AE%E5%BD%95%E7%9A%84%E4%BD%9C%E7%94%A8/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>linux 不同目录作用</description></item><item><title>Docker 基本使用</title><link>https://hu.778445.xyz/posts/docker%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8/</link><pubDate>Sun, 03 Dec 2023 13:53:30 +0800</pubDate><guid>https://hu.778445.xyz/posts/docker%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><category domain="https://hu.778445.xyz/categories/docker/">Docker</category><description>Docker 基本使用</description></item><item><title>代理和反向代理</title><link>https://hu.778445.xyz/posts/%E4%BB%A3%E7%90%86%E5%92%8C%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86/</link><pubDate>Sat, 27 May 2023 15:52:23 +0800</pubDate><guid>https://hu.778445.xyz/posts/%E4%BB%A3%E7%90%86%E5%92%8C%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>代理和反向代理</description></item><item><title>Nftable用法</title><link>https://hu.778445.xyz/posts/nftable%E7%94%A8%E6%B3%95/</link><pubDate>Tue, 14 Mar 2023 14:23:24 +0800</pubDate><guid>https://hu.778445.xyz/posts/nftable%E7%94%A8%E6%B3%95/</guid><category domain="https://hu.778445.xyz/categories/firewall/">Firewall</category><description>Nftable用法</description></item><item><title>Vsftpd使用</title><link>https://hu.778445.xyz/posts/vsftpd%E4%BD%BF%E7%94%A8/</link><pubDate>Tue, 14 Mar 2023 09:19:50 +0800</pubDate><guid>https://hu.778445.xyz/posts/vsftpd%E4%BD%BF%E7%94%A8/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>Vsftpd使用</description></item><item><title>Tmux用法</title><link>https://hu.778445.xyz/posts/tmux%E7%94%A8%E6%B3%95/</link><pubDate>Sun, 12 Mar 2023 18:10:53 +0800</pubDate><guid>https://hu.778445.xyz/posts/tmux%E7%94%A8%E6%B3%95/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>Tmux用法</description></item><item><title>Linux系统清除 buff/cahce</title><link>https://hu.778445.xyz/posts/linux%E7%B3%BB%E7%BB%9F%E6%B8%85%E9%99%A4-buff-cahce/</link><pubDate>Wed, 08 Mar 2023 15:06:51 +0800</pubDate><guid>https://hu.778445.xyz/posts/linux%E7%B3%BB%E7%BB%9F%E6%B8%85%E9%99%A4-buff-cahce/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>Linux系统清除 buff/cahce</description></item><item><title>手机锁屏之后 linux deploy 休眠问题</title><link>https://hu.778445.xyz/posts/%E6%89%8B%E6%9C%BA%E9%94%81%E5%B1%8F%E4%B9%8B%E5%90%8E-linux-deploy-%E4%BC%91%E7%9C%A0%E9%97%AE%E9%A2%98/</link><pubDate>Tue, 07 Mar 2023 14:30:25 +0800</pubDate><guid>https://hu.778445.xyz/posts/%E6%89%8B%E6%9C%BA%E9%94%81%E5%B1%8F%E4%B9%8B%E5%90%8E-linux-deploy-%E4%BC%91%E7%9C%A0%E9%97%AE%E9%A2%98/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>&lt;p&gt;我在安卓手机安装了 Linux deploy，为了使 Linux deploy中的 Linux 稳定运行，已经设置了取消电池优化，并且也锁定了 Linux deploy 的后台，但是在手机息屏一段时间以后还是会出现断网或者ssh连接缓慢的问题。&lt;/p&gt;&#10;&lt;p&gt;我设置了每分钟都会将当前时间输出到文件中的定时任务，但是在息屏后一段时间以后脚本中的数据就不正常了。后面每一分钟有三条，而是输出时间有比较明显的延后现象。&lt;/p&gt;</description></item><item><title>重装系统后连接ssh长时间无响应</title><link>https://hu.778445.xyz/posts/%E9%87%8D%E8%A3%85%E7%B3%BB%E7%BB%9F%E5%90%8E%E8%BF%9E%E6%8E%A5ssh%E9%95%BF%E6%97%B6%E9%97%B4%E6%97%A0%E5%93%8D%E5%BA%94/</link><pubDate>Mon, 06 Mar 2023 20:43:50 +0800</pubDate><guid>https://hu.778445.xyz/posts/%E9%87%8D%E8%A3%85%E7%B3%BB%E7%BB%9F%E5%90%8E%E8%BF%9E%E6%8E%A5ssh%E9%95%BF%E6%97%B6%E9%97%B4%E6%97%A0%E5%93%8D%E5%BA%94/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>重装系统后连接ssh长时间无响应</description></item><item><title>华为云函数添加依赖</title><link>https://hu.778445.xyz/posts/huawei-cloud-function-add-package/</link><pubDate>Mon, 06 Mar 2023 12:19:55 +0800</pubDate><guid>https://hu.778445.xyz/posts/huawei-cloud-function-add-package/</guid><category domain="https://hu.778445.xyz/categories/python/">Python</category><description>华为云函数添加依赖</description></item><item><title>Python Virtualenv</title><link>https://hu.778445.xyz/posts/python-virtualenv/</link><pubDate>Mon, 06 Mar 2023 11:38:22 +0800</pubDate><guid>https://hu.778445.xyz/posts/python-virtualenv/</guid><category domain="https://hu.778445.xyz/categories/python/">Python</category><description>&lt;h2 class="heading-element" id="在linux环境下安装-virtualenv"&gt;&lt;span&gt;在linux环境下安装 virtualenv&lt;/span&gt;&#10; &lt;a href="#%e5%9c%a8linux%e7%8e%af%e5%a2%83%e4%b8%8b%e5%ae%89%e8%a3%85-virtualenv" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;python3.3 及以上版本内置了 venv 模块，你可以通过 python3 -m venv yourvenv 调用（更推荐）&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;如果是较低版本或者有需求，你也可以使用 apt 安装 virtualenv 来直接使用此命令&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo apt install python3-virtualenv&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 class="heading-element" id="使用-python-virtualenv-创建虚拟环境"&gt;&lt;span&gt;使用 python virtualenv 创建虚拟环境&lt;/span&gt;&#10; &lt;a href="#%e4%bd%bf%e7%94%a8-python-virtualenv-%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e7%8e%af%e5%a2%83" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;# 使用 python3 内置的 venv 模块（推荐）&#10;python3 -m venv yourvenv&#10;python3 -m venv --system-site-packages yourvenv&#9;# 创建虚拟环境，并引入全局环境下的包&#10;&#10;source yourvenv/bin/activate # 进入虚拟环境&#10;deactivate&#9;&#9;&#9;&#9;&#9;&#9;# 退出虚拟环境&#10;&#10;pip list&#9;&#9;&#9;&#9;# 显示已安装库&#10;pip install package&#9;&#9;# 安装库&#10;pip install -r requirements.txt&#9;&#9;# 将依赖库的名字和版本写入 requirements.txt 并通过命令逐个安装&#10;pip uninstall package &#9;&#9;&#9;&#9;# 卸载库&#10;pip freeze &amp;gt; requirements.txt&#9;&#9;# 将当前环境依赖及版本以 requirements 的格式输出并写入 requirements.txt&#10;&#10;# pip安装指定版本库&#10;$ pip install SomePackage&#9;&#9;&#9;# latest version&#10;$ pip install SomePackage==1.0.4&#9;# specific version&#10;$ pip install &amp;#39;SomePackage&amp;gt;=1.0.4&amp;#39;&#9;# minimum version&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>chroot无法使用systemd解决办法</title><link>https://hu.778445.xyz/posts/chroot-systemd-resolve/</link><pubDate>Mon, 06 Mar 2023 10:58:29 +0800</pubDate><guid>https://hu.778445.xyz/posts/chroot-systemd-resolve/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>chroot无法使用systemd解决办法</description></item><item><title>Linux 安装 Lxml</title><link>https://hu.778445.xyz/posts/linux-%E5%AE%89%E8%A3%85-lxml/</link><pubDate>Mon, 06 Mar 2023 10:43:03 +0800</pubDate><guid>https://hu.778445.xyz/posts/linux-%E5%AE%89%E8%A3%85-lxml/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>&lt;p&gt;在 Linux 中使用 pip 安装 lxml 发现如下报错&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;Collecting lxml&#10; Downloading lxml-4.9.2.tar.gz (3.7 MB)&#10; |████████████████████████████████| 3.7 MB 44 kB/s &#10; ERROR: Command errored out with exit status 1:&#10; command: /usr/bin/python3 -c &amp;#39;import sys, setuptools, tokenize; sys.argv[0] = &amp;#39;&amp;#34;&amp;#39;&amp;#34;&amp;#39;/tmp/pip-install-evm051b8/lxml_f11746812e61420ca17185b4ddd8f068/setup.py&amp;#39;&amp;#34;&amp;#39;&amp;#34;&amp;#39;; __file__=&amp;#39;&amp;#34;&amp;#39;&amp;#34;&amp;#39;/tmp/pip-install-evm051b8/lxml_f11746812e61420ca17185b4ddd8f068/setup.py&amp;#39;&amp;#34;&amp;#39;&amp;#34;&amp;#39;;f=getattr(tokenize, &amp;#39;&amp;#34;&amp;#39;&amp;#34;&amp;#39;open&amp;#39;&amp;#34;&amp;#39;&amp;#34;&amp;#39;, open)(__file__);code=f.read().replace(&amp;#39;&amp;#34;&amp;#39;&amp;#34;&amp;#39;\r\n&amp;#39;&amp;#34;&amp;#39;&amp;#34;&amp;#39;, &amp;#39;&amp;#34;&amp;#39;&amp;#34;&amp;#39;\n&amp;#39;&amp;#34;&amp;#39;&amp;#34;&amp;#39;);f.close();exec(compile(code, __file__, &amp;#39;&amp;#34;&amp;#39;&amp;#34;&amp;#39;exec&amp;#39;&amp;#34;&amp;#39;&amp;#34;&amp;#39;))&amp;#39; egg_info --egg-base /tmp/pip-pip-egg-info-f0n190vv&#10; cwd: /tmp/pip-install-evm051b8/lxml_f11746812e61420ca17185b4ddd8f068/&#10; Complete output (3 lines):&#10; Building lxml version 4.9.2.&#10; Building without Cython.&#10; Error: Please make sure the libxml2 and libxslt development packages are installed.&#10; ----------------------------------------&#10;WARNING: Discarding https://files.pythonhosted.org/packages/06/5a/e11cad7b79f2cf3dd2ff8f81fa8ca667e7591d3d8451768589996b65dec1/lxml-4.9.2.tar.gz#sha256=2455cfaeb7ac70338b3257f41e21f0724f4b5b0c0e7702da67ee6c3640835b67 (from https://pypi.org/simple/lxml/) (requires-python:&amp;gt;=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.&#10; Downloading lxml-4.9.1.tar.gz (3.4 MB)&#10; |███▉ | 399 kB 48 kB/s eta 0:01:02^C&#10;ERROR: Operation cancelled by user&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;根据错误提示可能是缺少了 libxml2 和 libxslt 开发包，执行如下命令安装&lt;/p&gt;&#10;&lt;p&gt;&lt;code&gt;apt-get install libxml2 libxml2-dev libxslt1.1 libxslt1-dev&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;结果还是报错，&lt;/p&gt;&#10;&lt;p&gt;根据 lxml 官方安装说明：&lt;a href="https://lxml.de/installation.html#requirements" target="_blank" rel="external nofollow noopener noreferrer"&gt;Installing lxml&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;执行 &lt;code&gt;apt-get install python3-lxml&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;安装成功&lt;/p&gt;</description></item><item><title>Linux Deploy 使用记录</title><link>https://hu.778445.xyz/posts/linux-deploy-%E4%BD%BF%E7%94%A8%E8%AE%B0%E5%BD%95/</link><pubDate>Sun, 05 Mar 2023 10:17:09 +0800</pubDate><guid>https://hu.778445.xyz/posts/linux-deploy-%E4%BD%BF%E7%94%A8%E8%AE%B0%E5%BD%95/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>&lt;p&gt;&lt;a href="https://github.com/meefik/linuxdeploy" target="_blank" rel="external nofollow noopener noreferrer"&gt;Linux deploy&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt; 是一款安卓软件，用于在安卓设备上运行 linux，在使用这个软件之前必须要先获得 root 权限。&lt;/p&gt;</description></item><item><title>Linux Env 命令</title><link>https://hu.778445.xyz/posts/linux-env/</link><pubDate>Fri, 03 Mar 2023 22:01:55 +0800</pubDate><guid>https://hu.778445.xyz/posts/linux-env/</guid><category domain="https://hu.778445.xyz/categories/linux/">Linux</category><description>Linux Env 命令</description></item></channel></rss>