<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=ENV</id>
	<title>ENV - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=ENV"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=ENV&amp;action=history"/>
	<updated>2026-06-04T21:35:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=ENV&amp;diff=24509&amp;oldid=prev</id>
		<title>Chao at 14:34, 31 January 2020</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=ENV&amp;diff=24509&amp;oldid=prev"/>
		<updated>2020-01-31T14:34:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
 此文件为系统的每个用户设置环境信息。当用户登录时，该文件被执行一次，并从 /etc/profile.d 目录的配置文件中搜集shell 的设置。一般用于设置所有用户使用的全局变量。&lt;br /&gt;
== For all users: /etc/bashrc or  /etc/bash.bashrc ==&lt;br /&gt;
* For ubuntu or Lubuntu -&amp;gt; /etc/bash.bashrc&lt;br /&gt;
2) 修改/etc/bashrc&lt;br /&gt;
 当 bash shell 被打开时，该文件被读取。也就是说，每次新打开一个终端 shell，该文件就会被读取。&lt;br /&gt;
 此外，在不同的操作系统中，这个文件可能是不同的，比如在Ubuntu系统中，一般是：/etc/bash.bashrc&lt;br /&gt;
=== mipsel-openwrt-linux-gcc ===&lt;br /&gt;
* nano /etc/bash.bashrc &lt;br /&gt;
export PATH=/opt/OpenWrt-Toolchain-ramips-mt7628_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-i686/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin:$PATH &lt;br /&gt;
export    STAGING_DIR=/your_openwrt_path/staging_dir&lt;br /&gt;
* source /etc/bash.bashrc &lt;br /&gt;
* check mipsel-openwrt-linux-gcc -v&lt;br /&gt;
== CLI: env ==&lt;br /&gt;
* Check path&lt;br /&gt;
== Set Proxy ==&lt;br /&gt;
* /etc/profile&lt;br /&gt;
 PROXY_HOST=127.0.0.1&lt;br /&gt;
 export all_proxy=http://$PROXY_HOST:8118&lt;br /&gt;
 export ftp_proxy=http://$PROXY_HOST:8118&lt;br /&gt;
 export http_proxy=http://$PROXY_HOST:8118&lt;br /&gt;
 export https_proxy=http://$PROXY_HOST:8118&lt;br /&gt;
 alias gfw=&amp;quot;curl -sL www.pornhub.com&amp;quot;&lt;br /&gt;
* source /etc/profile&lt;br /&gt;
&lt;br /&gt;
[[category: Linux Config]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>