<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Linux on Xiang CHEN 陈向</title>
    <link>https://chenxofhit.xyz/tags/linux/</link>
    <description>Recent content in Linux on Xiang CHEN 陈向</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>Xiang CHEN</copyright>
    <lastBuildDate>Fri, 12 Mar 2021 10:23:08 +0800</lastBuildDate>
    <atom:link href="https://chenxofhit.xyz/tags/linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Install telegram-cli in Ubuntu</title>
      <link>https://chenxofhit.xyz/posts/install-telegram-cli-in-ubuntu/</link>
      <pubDate>Fri, 12 Mar 2021 10:23:08 +0800</pubDate>
      <guid>https://chenxofhit.xyz/posts/install-telegram-cli-in-ubuntu/</guid>
      <description>&lt;p&gt;Install telegram-cli in Ubuntu&lt;/p&gt;&#xA;&lt;p&gt;JD.com, one of  the China&amp;rsquo;s biggest ecommerce company, offers a lot of ways for customers to sign in the app daily, to keep its popularity. Many programers in China have developed scripts to sign for JD beans and other virtual credits. The most popular repository is &lt;a href=&#34;https://gitee.com/lxk0301/jd_docker&#34;&gt;https://gitee.com/lxk0301/jd_docker&lt;/a&gt;.  The app itself encourages users to help each other in some funny games.&lt;/p&gt;&#xA;&lt;p&gt;Telegram cli benefits in this way to submit exsited scripts in the repository.&lt;/p&gt;</description>
    </item>
    <item>
      <title>LightGBM Ubuntu Installtion</title>
      <link>https://chenxofhit.xyz/posts/lightgbm-ubuntu-installtion/</link>
      <pubDate>Sun, 21 Feb 2021 16:05:09 +0800</pubDate>
      <guid>https://chenxofhit.xyz/posts/lightgbm-ubuntu-installtion/</guid>
      <description>&lt;p&gt;开发机的 Ubuntu版本为16.04，假设当前账户具有sudo权限。 lightGBM 的官方文档 &lt;a href=&#34;https://lightgbm.readthedocs.io/en/latest/GPU-Tutorial.html&#34;&gt;https://lightgbm.readthedocs.io/en/latest/GPU-Tutorial.html&lt;/a&gt; 给出的安装步骤经过试错后扩展如下。&lt;/p&gt;&#xA;&lt;h3 id=&#34;下载boost&#34;&gt;下载boost&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;推荐直接下载源码编译安装：&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;wget -O boost_1_69_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.69.0/boost_1_69_0.tar.gz/download&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;开发机连接 sf速度较慢，可以在配置了科学上网的本地机器上下载完成后 scp上传 或者借助 python Juypyter notebook的上传功能上传到制定目录。&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;解压缩：&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;tar xzvf boost_1_69_0.tar.gz&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#xA;&lt;li&gt;进入目录：&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cd boost_1_69_0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;安装附加依赖库&#34;&gt;安装附加依赖库&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;安装boost&#34;&gt;安装boost&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;./bootstrap.sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;./b2&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;./b2 install&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;有可能会报 pyconfig.h No such file or directory, 这时候需要去修改 /boost_1_69_0/toos/build/src/tools/python.jam 文件的第 500 多行，将: includes? = (prefix)/include/python${version} 改为 includes ?= $(prefix)/include/python$(version)m&lt;/p&gt;&#xA;&lt;p&gt;因为：python 3 版本的 include 比 python 2 版本的include 路径多了一个m: 比如, ~/.pyenv/versions/3.6.6/include/python3.6m。修改完之后，重新执行：&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
