<?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 Shylock Hg</title>
    <link>/tags/linux/</link>
    <description>Recent content in linux on Shylock Hg</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 15 Jun 2019 20:26:09 +0800</lastBuildDate>
    
	<atom:link href="/tags/linux/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Manjaro Gpu Fix</title>
      <link>/post/2019/06/15/manjaro-gpu-fix/</link>
      <pubDate>Sat, 15 Jun 2019 20:26:09 +0800</pubDate>
      
      <guid>/post/2019/06/15/manjaro-gpu-fix/</guid>
      <description> Fix the error There are some troubles, when install the manjaro in device with nvidia GPU. We must do tricks to fix it such as below:
 Run the livecd system again.
 Entry installed system by manjaro-chroot as below:
  sudo mount /dev/nvme0n1p2 /mnt manjaro-chroot /mnt   Install video switch software:  mhwd -i pci video-hybrid-intel-nvidia-bumblebee # Maybe need uninstall the exist driver # Could try `video-hybrid-intel-nvidia-prime` too systemctl enable bumblebeed usermod -aG bumblebee &amp;lt;User&amp;gt;   Exit chroot and reboot:  exit reboot  </description>
    </item>
    
    <item>
      <title>http proxy in shell</title>
      <link>/post/2019/03/18/http-proxy-in-shell/</link>
      <pubDate>Mon, 18 Mar 2019 20:43:20 +0000</pubDate>
      
      <guid>/post/2019/03/18/http-proxy-in-shell/</guid>
      <description>The HTTP proxy The HTTP proxy is a HTTP server to retransmit HTTP packet, it don&amp;rsquo;t deal the HTTP request/response in fact.
The HTTP proxy is common used to access private network.Many browsers support this function, and is human-friendly to config.
HTTP proxy in shell Many tools in linux will access network in shell environment, such as curl, wget and other network application run from shell.So we need the HTTP proxy in shell environment when want to access private network from shell tools.</description>
    </item>
    
    <item>
      <title>use-logrotate-to-manage-logs</title>
      <link>/post/2019/03/12/use-logrotate-to-manage-logs/</link>
      <pubDate>Tue, 12 Mar 2019 19:50:39 +0000</pubDate>
      
      <guid>/post/2019/03/12/use-logrotate-to-manage-logs/</guid>
      <description>The logrotate is a tool to manage log in linux.This tool will separate and drop the log file periodically(typical daily).And it&amp;rsquo;s simple to use as below:
Installation Need logrotate and cronie. Maybe can install by sudo pacman -Sy logrotate cronie if you use archlinux. Or other way depend on your distribution.
logrotate The configuration entry about logrotate is /etc/logrotate.conf. But we don&amp;rsquo;t change itself in fact. This configuration file will include all file in /etc/logrotate.</description>
    </item>
    
    <item>
      <title>Usage Of Ortp</title>
      <link>/post/2018/07/09/usage-of-ortp/</link>
      <pubDate>Mon, 09 Jul 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/07/09/usage-of-ortp/</guid>
      <description>client  Get source of ortp from github,switch to branch 0.25-simulator-fix(version under 0.27 don&amp;rsquo;t depend on special shared library).
 Build ortp by ./autogen.sh &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make or mkdir -p ortp.build &amp;amp;&amp;amp; cd ortp.build &amp;amp;&amp;amp; cmake .. &amp;amp;&amp;amp; make -j8.
 Install library to system by sudo make install.
 Build test program by gcc -o rtpsend -lortp rtpsend.c.
 Transmite stream g711 media by ./rtpsend xxx.g711 &amp;lt;ip&amp;gt; &amp;lt;port&amp;gt;</description>
    </item>
    
    <item>
      <title>Build Cross Develop Environment For Raspberrypi</title>
      <link>/post/2018/06/23/build-cross-develop-environment-for-raspberrypi/</link>
      <pubDate>Sat, 23 Jun 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/06/23/build-cross-develop-environment-for-raspberrypi/</guid>
      <description> get kernel and toolchain from github.  git clone https://github.com/raspberrypi/linux.git git clone https://github.com/raspberrypi/tools.git   config kernel source.
 generate config.gz from raspberry pi .  modprobe configs get config.gz from raspberry pi.  scp pi@&amp;lt;raspberrypi ip&amp;gt;:/proc/config.gz $HOME/Workspace/raspberrypi/linux decompress config.gz get .config.  zcat config.gz &amp;gt; .config generate kernel config.  make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- oldconfig  compile kernel.  make ARCH=arm CROSS_COMPIEL=arm-linux-gnueabihf- -j8
  </description>
    </item>
    
    <item>
      <title>C Program Memory Layout</title>
      <link>/post/2018/06/11/c-program-memory-layout/</link>
      <pubDate>Mon, 11 Jun 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/06/11/c-program-memory-layout/</guid>
      <description> linux cortex-m typical </description>
    </item>
    
    <item>
      <title>Use Raspberrypi3bp With Wifi</title>
      <link>/post/2018/06/01/use-raspberrypi3bp-with-wifi/</link>
      <pubDate>Fri, 01 Jun 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/06/01/use-raspberrypi3bp-with-wifi/</guid>
      <description> burn raspbian to sdcard refer raspberrypi.org
start ssh service  create empty file ssh in sdcard boot partition. create empty folder ssh in sdcard root-fs.  enable wifi connection  nmap scan LAN to get raspberry pi ip address. ssh login to raspberry pi. generate wap_supplicant config file to /etc/wpa_supplicant/wpa_supplicant.conf. sudo ip link set wlan0 up sudo dhcpcd wlan0 sudo ip link set eth0 down sudo reboot  </description>
    </item>
    
    <item>
      <title>Cross Develop In Linux</title>
      <link>/post/2018/05/31/cross-develop-in-linux/</link>
      <pubDate>Thu, 31 May 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/05/31/cross-develop-in-linux/</guid>
      <description> Architecture build system  cross compiler toolchain such as gcc-xxx-xxx-xxx. support files such as SDK(ARCH, register, HAL), linker script, Makefile. option:  debug architecture  debugger driver such as jlink , stlink. debugger gdb server. gdb of toolchain.  </description>
    </item>
    
    <item>
      <title>Develop Msp430 On Linux</title>
      <link>/post/2018/05/31/develop-msp430-on-linux/</link>
      <pubDate>Thu, 31 May 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/05/31/develop-msp430-on-linux/</guid>
      <description>msp-gcc kit install msp-gcc, support files, debug-stack from ti offical.
note:For Arch Linux need install ncurses-compat-libs.
CCS for TI-FET driver After I install msp-gcc kit, the msp430 device can&amp;rsquo;t be identified by Arch Linux.So I install CCS for TI-FET drivers.</description>
    </item>
    
    <item>
      <title>Build Stm32 Development Evironment</title>
      <link>/post/2018/04/15/build-stm32-development-evironment/</link>
      <pubDate>Sun, 15 Apr 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/04/15/build-stm32-development-evironment/</guid>
      <description>Tools  cubemx arm-none-eabi-gcc stm32flash  cubemx  prerequisites java runtime environment Download unzip xxx.zip java -jar xxx.linux run by java -jar STM32Cubemx  arm-none-eabi-gcc  Download tar -xf xxxxx.tar.gz modify BINPATH in Makefile generated by STM32Cubemx   stm32flash  Download make install  note:the Makefile generated by STM32Cubemx contains some error,such as mistake source directory and repeat source files.
IDE:truestudio,sw4stm32,eclipse with plugin
other framework:mbed</description>
    </item>
    
    <item>
      <title>Tips Of Bash</title>
      <link>/post/2018/04/02/tips-of-bash/</link>
      <pubDate>Mon, 02 Apr 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/04/02/tips-of-bash/</guid>
      <description> `` will create a string from shell command stdout,such as `today=date +%Y-%m-%d`, it&amp;rsquo;s same as today=$(date +%Y-%m-%d). &amp;rdquo;&amp;rdquo; will quote the literal string with bash or regular expression expand,such as sed &amp;quot;s/$var/string/g&amp;quot; will extent $var as bash variable. &amp;rdquo; will quote the literal string without bash or regular expression expand,it means the literal string is the final literal string,such as sed &#39;s/$var/string/g&#39; will not extent $var.  </description>
    </item>
    
    <item>
      <title>Usage Of Awk</title>
      <link>/post/2018/04/02/usage-of-awk/</link>
      <pubDate>Mon, 02 Apr 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/04/02/usage-of-awk/</guid>
      <description>Typical usage  awk &#39;script&#39; input-file...
 awk -f script-file input-file...  Base of script pattern { action }  pattern { action }  &amp;hellip;</description>
    </item>
    
    <item>
      <title>Usage Of Sed</title>
      <link>/post/2018/04/02/usage-of-sed/</link>
      <pubDate>Mon, 02 Apr 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/04/02/usage-of-sed/</guid>
      <description> Typical usage sed SCRIPT INPUTFILE... &amp;gt; OUTPUTFILE
note:if INPUTFILE==OUTPUFILE must call sed with option -i. note:default INPUTFILE is stdin,default OUTPUTFILE is stdout.
Characters substitution  sed &amp;quot;3,5s/pattern/object/1&amp;quot; inputfile &amp;gt; outputfile:replace the first matched characters in 3-5th lines by pattern with object.  sed &amp;quot;s/pattern/object/3g&amp;quot; inputfile &amp;gt; outputfile:replace the 3-infinite matched characters in each line by pattern with object.   </description>
    </item>
    
    <item>
      <title>Base rule of makefile!</title>
      <link>/post/2018/03/23/base-rule-of-makefile/</link>
      <pubDate>Fri, 23 Mar 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/03/23/base-rule-of-makefile/</guid>
      <description>Base rule of makefile Base rule target &amp;hellip; : prerequisites &amp;hellip;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; recipe  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; recipe  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;hellip; 
Target  generated file name phony target  note:make search target in . and $(VPATH) directories.
Prerequisites  file(directory) name target  note:make search prerequisites in . and $(VPATH) directories.
Recipe shell command.</description>
    </item>
    
    <item>
      <title>Linux Permission</title>
      <link>/post/2018/03/04/linux-permission/</link>
      <pubDate>Sun, 04 Mar 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/03/04/linux-permission/</guid>
      <description>File permission of Linux Description Use stat &amp;lt;file&amp;gt; to check the permission of file(dir),its echo look like as -rw-rw-rwx. The first &#39;-&#39; , &#39;l&#39; , d means regular file, link file and directory. The the &#39;rwx-&#39; means read, write, execute and no. Finally,the three segments of rwx successively means owner, group and all other users.
Simple of change permission Usage:
 chmod u+x file0 [file1 ...] chmod g-x file0 [file1 .</description>
    </item>
    
    <item>
      <title>Tips in installation of Archlinux</title>
      <link>/post/2018/01/23/tips-in-installation-of-archlinux/</link>
      <pubDate>Tue, 23 Jan 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/01/23/tips-in-installation-of-archlinux/</guid>
      <description>Overview This is not a lesson for installation of Archlinux, but list of tips for problem what I meet in installation for Arch. There is lesson for Arch,if you want.
Wireless network #look for wireless device ip link #active wireless device, wlan is your wireless device name, if get err maybe install firmware for device ip link set wlan up #scan the available wireless network iw dev wlan scan #The fellow is for wpa/wpa2 wireless network #generate wpa/wpa2 wireless network configuration file wpa_passphrase SSID PASSWORD &amp;gt; .</description>
    </item>
    
  </channel>
</rss>