﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-随笔杂记-随笔分类-Linux</title><link>http://www.blogjava.net/liuyanbo/category/54994.html</link><description /><language>zh-cn</language><lastBuildDate>Thu, 11 Jul 2019 06:44:27 GMT</lastBuildDate><pubDate>Thu, 11 Jul 2019 06:44:27 GMT</pubDate><ttl>60</ttl><item><title>ubuntu 14.04 安装gitlab</title><link>http://www.blogjava.net/liuyanbo/archive/2016/07/25/431311.html</link><dc:creator>天宇恒星</dc:creator><author>天宇恒星</author><pubDate>Mon, 25 Jul 2016 06:29:00 GMT</pubDate><guid>http://www.blogjava.net/liuyanbo/archive/2016/07/25/431311.html</guid><wfw:comment>http://www.blogjava.net/liuyanbo/comments/431311.html</wfw:comment><comments>http://www.blogjava.net/liuyanbo/archive/2016/07/25/431311.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/liuyanbo/comments/commentRss/431311.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/liuyanbo/services/trackbacks/431311.html</trackback:ping><description><![CDATA[1.增加数据源<br /><div>sudo add-apt-repository ppa:ubuntu-toolchain-r/test</div><span style="color: #657b83; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 20.4px; text-align: justify; white-space: pre-wrap; background-color: #fdf6e3;">修改/etc/apt/sources.list.d/gitlab-ce.list 加入</span>&nbsp; deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/debian jessie main<br /><div>sudo apt-get update<br /><br />2.开始安装<br /><div># 安装依赖包<br /><div>sudo apt-get install gcc-4.9 g++-4.9<br />sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9</div>sudo apt-get install curl openssh-server ca-certificates postfix<br /></div><div># 安装 GitLab 社区版</div><div>apt-get install gitlab-ce</div><div># 初始化，初始化完自动启动 GitLab</div><div>sudo gitlab-ctl reconfigure<br /><br />3.修改配置<br /><div>每次修改/etc/gitlab/gitlab.rb，都要运行以下命令，让配置生效</div><div>sudo gitlab-ctl reconfigure</div></div></div><img src ="http://www.blogjava.net/liuyanbo/aggbug/431311.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/liuyanbo/" target="_blank">天宇恒星</a> 2016-07-25 14:29 <a href="http://www.blogjava.net/liuyanbo/archive/2016/07/25/431311.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ubuntu 14.04 配置adb和mtp挂载以及flashtools设置</title><link>http://www.blogjava.net/liuyanbo/archive/2016/06/06/430803.html</link><dc:creator>天宇恒星</dc:creator><author>天宇恒星</author><pubDate>Mon, 06 Jun 2016 02:35:00 GMT</pubDate><guid>http://www.blogjava.net/liuyanbo/archive/2016/06/06/430803.html</guid><wfw:comment>http://www.blogjava.net/liuyanbo/comments/430803.html</wfw:comment><comments>http://www.blogjava.net/liuyanbo/archive/2016/06/06/430803.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/liuyanbo/comments/commentRss/430803.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/liuyanbo/services/trackbacks/430803.html</trackback:ping><description><![CDATA[<span style="color: red;">adb mtp设置</span><br />1)<span style="background-color: #efefef;"><font face="Ubuntu Mono, monospace"><span style="line-height: 14px;">sudo apt-get install libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9</span></font><br /><br /></span><div><span style="line-height: 14px;">2)sudo gedit /etc/fuse.conf</span></div><div><span style="line-height: 14px;">#user_allow_other 修改为 user_allow_other</span></div><div><span style="line-height: 14px;"><br /></span></div><div><span style="line-height: 14px;">3)sudo gedit /lib/udev/rules.d/69-mtp.rules</span></div><div><span style="line-height: 14px;">ATTR{idVendor}=="0e8d", ATTR{idProduct}=="201d", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"</span></div><div><div><span style="line-height: 14px;">ATTR{idVendor}=="271d", ATTR{idProduct}=="2017", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"</span></div><div><span style="line-height: 14px;">ATTR{idVendor}=="271d", ATTR{idProduct}=="2008", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"</span></div><div><span style="line-height: 14px;">ATTR{idVendor}=="271d", ATTR{idProduct}=="0c02", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"<br /></span><span style="line-height: 14px;">ATTR{idVendor}=="271d", ATTR{idProduct}=="</span>bf3a<span style="line-height: 14px;">", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"</span></div></div><div><span style="line-height: 14px;"><br />4)sudo gedit /etc/udev/rules.d/51-android.rules</span></div><div>SUBSYSTEM=="usb", ATTR{idVendor}=="271d", MODE="0666", GROUP="plugdev"</div><div><span style="line-height: 14px;"><div>SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"</div><div>SUBSYSTEM=="usb", ATTR{idVendor}=="1782", MODE="0666", GROUP="plugdev"</div><div>SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", MODE="0666", GROUP="plugdev"</div></span></div><div><span style="line-height: 14px;"><br /></span></div><div><span style="line-height: 14px;">5)sudo service udev restart<br /></span></div><div><span style="line-height: 14px;"><br />6)sudo reboot</span></div><div><span style="line-height: 14px;"><br /></span></div><div><span style="line-height: 14px;"><br /></span></div><div><span style="line-height: 14px; color: red;">flashtool设置</span></div><div><span style="line-height: 14px;">1)sudo apt-get install libusb-dev</span></div><div><span style="line-height: 14px;">2)sudo ./flash_tool.sh</span></div><div><span style="line-height: 14px;"><br /></span></div><div><span style="line-height: 14px;"><br /></span></div><div><span style="line-height: 14px;">3)sudo gedit /etc/udev/rules.d/20-mm-blacklist-mtk.rules</span></div><div><span style="line-height: 14px;">ATTRS{idVendor}=="0e8d", ENV{ID_MM_DEVICE_IGNORE}="1"</span></div><div><span style="line-height: 14px;">ATTRS{idVendor}=="</span><span style="line-height: 14px;">271d</span><span style="line-height: 14px;">", ENV{ID_MM_DEVICE_IGNORE}="1"</span></div><div><span style="line-height: 14px;"><br /></span></div><div><span style="line-height: 14px;"><br /></span></div><div><span style="line-height: 14px;">4)service udev restart</span></div><div style="font-family: &quot;Ubuntu Mono&quot;, monospace; line-height: 14px;"></div><img src ="http://www.blogjava.net/liuyanbo/aggbug/430803.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/liuyanbo/" target="_blank">天宇恒星</a> 2016-06-06 10:35 <a href="http://www.blogjava.net/liuyanbo/archive/2016/06/06/430803.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ubuntu安装FinalSpeed</title><link>http://www.blogjava.net/liuyanbo/archive/2016/05/24/430633.html</link><dc:creator>天宇恒星</dc:creator><author>天宇恒星</author><pubDate>Tue, 24 May 2016 07:51:00 GMT</pubDate><guid>http://www.blogjava.net/liuyanbo/archive/2016/05/24/430633.html</guid><wfw:comment>http://www.blogjava.net/liuyanbo/comments/430633.html</wfw:comment><comments>http://www.blogjava.net/liuyanbo/archive/2016/05/24/430633.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/liuyanbo/comments/commentRss/430633.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/liuyanbo/services/trackbacks/430633.html</trackback:ping><description><![CDATA[<strong style="font-size: 18pt;">服务器端安装</strong><br style="font-size: 18pt;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;"><strong>1. 切换到dash</strong><br /></span><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">&nbsp;sudo dpkg-reconfigure dash 选no<br /><strong>2.配置iptables</strong><br /></span><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">#iptables -I INPUT -p tcp --dport 22 -j ACCEPT</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">#iptables -I OUTPUT -p tcp --sport 22 -j ACCEPT<br /></span><span style="font-family: 'Microsoft YaHei', Verdana, sans-serif, SimSun; line-height: normal; background-color: #ffffff;"><strong>3.&nbsp;</strong></span><strong style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">安装</strong><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">rm -f install_fs.sh</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">wget&nbsp;&nbsp;</span><a class="gj_safe_a" href="http://fs.d1sm.net/finalspeed/install_fs.sh" target="_blank" style="outline: none; color: #1874c7; text-decoration: none; word-break: break-all; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">http://fs.d1sm.net/finalspeed/install_fs.sh</a><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">chmod +x install_fs.sh</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">./install_fs.sh 2&gt;&amp;1 | tee install.log<br /></span><strong style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">4.保持iptables</strong><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="font-family: 'Microsoft YaHei', Verdana, sans-serif, SimSun; line-height: normal; background-color: #ffffff;">将防火墙规则保存到/etc/iptables.up.rules文件中:</span><br style="padding: 0px; margin: 0px; font-family: 'Microsoft YaHei', Verdana, sans-serif, SimSun; line-height: normal; background-color: #ffffff;" /><span style="font-family: 'Microsoft YaHei', Verdana, sans-serif, SimSun; line-height: normal; background-color: #ffffff;">iptables-save &gt; /etc/iptables.up.rules</span><br style="padding: 0px; margin: 0px; font-family: 'Microsoft YaHei', Verdana, sans-serif, SimSun; line-height: normal; background-color: #ffffff;" /><span style="font-family: 'Microsoft YaHei', Verdana, sans-serif, SimSun; line-height: normal; background-color: #ffffff;">然后修改脚本/etc/network/interfaces,在末尾添加一行,在网络启动时应用防火墙规则:</span><br style="padding: 0px; margin: 0px; font-family: 'Microsoft YaHei', Verdana, sans-serif, SimSun; line-height: normal; background-color: #ffffff;" /><span style="font-family: 'Microsoft YaHei', Verdana, sans-serif, SimSun; line-height: normal; background-color: #ffffff;">pre-up iptables-restore &lt; /etc/iptables.up.rules</span><br /><strong style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">5.卸载</strong><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">sh /fs/stop.sh ; rm -rf /fs</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><strong style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">6.启动</strong><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">sh /fs/start.sh; tail -f /fs/server.log</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">重复运行启动会出现以下端口绑定错误,请先停止或直接重启服务.</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><img id="aimg_78" src="http://www.ip4a.com/upload/image/20160315/1457984475590047939.jpg" class="zoom" width="491" style="max-width: 600px; max-height: 900px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;" alt="" /><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><strong style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">7.停止</strong><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">sh /fs/stop.sh</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><strong style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">8.重新启动</strong><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">sh /fs/restart.sh; tail -f /fs/server.log</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><strong style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">9.设置开机启动</strong><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">chmod +x /etc/rc.local</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">vi /etc/rc.local</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">加入</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">sh /fs/start.sh</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><strong style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">10.每天晚上3点自动重启</strong><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">crontab -e</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">加入</span><br style="line-height: 10px; color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; background-color: #ffffff;" /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">0 3 * * *&nbsp;&nbsp;sh /fs/restart.sh</span><br /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;"><br /><br /></span><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; font-size: 18pt; background-color: #ffffff;"><strong>客户端<br /></strong></span><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;"><strong>1.</strong></span><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;"><strong>安装libpcap，</strong><br />sudo apt-get -y install libpcap-dev<br /></span><strong><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">2.</span><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">安装java运行环境<br /></span>3.下载</strong><br /><a textvalue="http://fs.d1sm.net/finalspeed/finalspeed_client1.2.zip" target="_blank" href="http://fs.d1sm.net/finalspeed/finalspeed_client1.2.zip" style="color: #555555; text-decoration: none; word-break: break-all; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;">http://fs.d1sm.net/finalspeed/finalspeed_client1.2.zip<br /><strong>4.运行</strong><br /><span style="color: #222222; line-height: 25.2px;">sudo java -jar finalspeed_client.jar <br />前面加sudo,因为必须以root权限运行,如果没有root权限,会无法启用tcp协议.</span><br /><br /></a><br /><span style="color: #222222; font-family: 'Helvetica Neue', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; line-height: 25.2px; background-color: #ffffff;"><br /></span><img src ="http://www.blogjava.net/liuyanbo/aggbug/430633.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/liuyanbo/" target="_blank">天宇恒星</a> 2016-05-24 15:51 <a href="http://www.blogjava.net/liuyanbo/archive/2016/05/24/430633.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ubuntu搭建VPN服务器和ShadowSocks安装</title><link>http://www.blogjava.net/liuyanbo/archive/2016/05/01/430317.html</link><dc:creator>天宇恒星</dc:creator><author>天宇恒星</author><pubDate>Sun, 01 May 2016 03:28:00 GMT</pubDate><guid>http://www.blogjava.net/liuyanbo/archive/2016/05/01/430317.html</guid><wfw:comment>http://www.blogjava.net/liuyanbo/comments/430317.html</wfw:comment><comments>http://www.blogjava.net/liuyanbo/archive/2016/05/01/430317.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/liuyanbo/comments/commentRss/430317.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/liuyanbo/services/trackbacks/430317.html</trackback:ping><description><![CDATA[1. pptpd vpn<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008000; ">#</span><span style="color: #008000; ">1.从github上下载shell脚本</span><span style="color: #008000; "><br /></span>root<span style="color: #800080; ">@wys</span>:~<span style="color: #008000; ">#</span><span style="color: #008000; ">&nbsp;cd&nbsp;/tmp</span><span style="color: #008000; "><br /></span>root<span style="color: #800080; ">@wys</span>:/tmp<span style="color: #008000; ">#</span><span style="color: #008000; ">&nbsp;wget --no-check-certificate https://raw.github.com/viljoviitanen/setup-simple-pptp-vpn/master/setup.sh<br /><br />#2.执行</span><span style="color: #008000; "><br /></span>root<span style="color: #800080; ">@wys</span>:/tmp<span style="color: #008000; ">#</span><span style="color: #008000; ">&nbsp;sudo&nbsp;sh&nbsp;setup.sh&nbsp;<br /><br />#3.设置密码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000; "><br /></span>root<span style="color: #800080; ">@wys</span>:/tmp<span style="color: #008000; ">#</span><span style="color: #008000; ">&nbsp;vi&nbsp;/etc/ppp/chap-secrets<br />#&nbsp;Secrets&nbsp;for&nbsp;authentication&nbsp;using&nbsp;CHAP<br />#&nbsp;client&nbsp;server&nbsp;secret&nbsp;IP&nbsp;addresses</span><span style="color: #008000; "><br /></span>username&nbsp;pptpd&nbsp;password&nbsp;*<br /><br /><span style="color: #008000; ">#</span><span style="color: #008000; ">4.重启vpn服务</span><span style="color: #008000; "><br /></span>root<span style="color: #800080; ">@wys</span>:/tmp<span style="color: #008000; ">#</span><span style="color: #008000; ">&nbsp;service&nbsp;pptpd&nbsp;restart</span><span style="color: #008000; "><br /></span>&nbsp;*&nbsp;Restarting&nbsp;PoPToP&nbsp;Point&nbsp;to&nbsp;Point&nbsp;Tunneling&nbsp;Server&nbsp;pptpd<br /><br /><span style="color: #008000; ">#</span><span style="color: #008000; ">5.到了第4步应该能连接上VPN了，如果无法访问外网，执行下面的命令添加NAT规则&nbsp;</span><span style="color: #008000; "><br /></span>root<span style="color: #800080; ">@wys</span>:/tmp<span style="color: #008000; ">#</span><span style="color: #008000; ">&nbsp;iptables&nbsp;-t&nbsp;nat&nbsp;-A&nbsp;POSTROUTING&nbsp;-s&nbsp;192.168.2.0/24&nbsp;-j&nbsp;SNAT&nbsp;--to-source&nbsp;服务器IP地址<br />&nbsp;&nbsp;<br />#6.重启服务</span><span style="color: #008000; "><br /></span>root<span style="color: #800080; ">@wys</span>:/tmp<span style="color: #008000; ">#</span><span style="color: #008000; ">&nbsp;service&nbsp;pptpd&nbsp;restart</span><span style="color: #008000; "><br /></span>&nbsp;*&nbsp;Restarting&nbsp;PoPToP&nbsp;Point&nbsp;to&nbsp;Point&nbsp;Tunneling&nbsp;Server&nbsp;pptpd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[&nbsp;OK&nbsp;]&nbsp;<br />root<span style="color: #800080; ">@wys</span>:/tmp<span style="color: #008000; ">#</span><span style="color: #008000; ">&nbsp;</span></div><br />2. l2tp vpn<br /><div style="font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; background-color: #eeeeee;"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->wget&nbsp;--<span style="color: #0000FF; ">no</span>-check-certificate&nbsp;https://raw.githubusercontent.com/teddysun/across/master/l2tp.sh<br /><span style="color: #0000FF; ">chmod</span>&nbsp;+x&nbsp;l2tp.sh<br />./l2tp.sh</div><span style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;">ipsec status （查看 IPSec 运行状态）</span><br style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;" /><span style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;">ipsec verify （查看 IPSec 检查结果）</span><br style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;" /><span style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;">/etc/init.d/ipsec start|stop|restart|status （CentOS6 下使用）</span><br style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;" /><span style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;">/etc/init.d/xl2tpd start|stop|restart|status （CentOS6 下使用）</span><br style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;" /><span style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;">systemctl start|stop|restart|status ipsec （CentOS7 下使用）</span><br style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;" /><span style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;">systemctl start|stop|restart|status xl2tpd （CentOS7 下使用）</span><br style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;" /><span style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;">service ipsec start|stop|restart|status （Debian/Ubuntu 下使用）</span><br style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;" /><span style="font-family: 'Microsoft YaHei', SimSun, 宋体, tahoma, arial, sans-serif; line-height: 28px;">service xl2tpd start|stop|restart|status （Debian/Ubuntu 下使用）</span><br /><br />2.&nbsp;<span style="color: #444444; font-family: 'Microsoft YaHei', Helvetica, Arial, 'Lucida Grande', Tahoma, sans-serif; font-size: 15px; line-height: 27px; text-align: justify; text-indent: 30px; background-color: #ffffff;">shadowsocks&nbsp;</span>安装<br /><div style="font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; background-color: #eeeeee;"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->wget&nbsp;--<span style="color: #0000FF; ">no</span>-check-certificate&nbsp;https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh<br /><span style="color: #0000FF; ">chmod</span>&nbsp;+x&nbsp;shadowsocks.sh<br />./shadowsocks.sh&nbsp;<span style="color: #800000; ">2</span>&gt;&amp;<span style="color: #800000; ">1</span>&nbsp;|&nbsp;tee&nbsp;shadowsocks.<span style="color: #0000FF; ">log</span></div><p style="box-sizing: border-box; border: 0px; font-family: 'Microsoft YaHei', Helvetica, Arial, 'Lucida Grande', Tahoma, sans-serif; font-size: 15px; margin-top: 0px; margin-right: 0px; margin-left: 0px; outline: 0px; padding: 0px; vertical-align: baseline; text-align: justify; word-wrap: break-word; word-break: break-all; text-indent: 2em; color: #444444; line-height: 27px; background-color: #ffffff;"><br /></p><img src ="http://www.blogjava.net/liuyanbo/aggbug/430317.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/liuyanbo/" target="_blank">天宇恒星</a> 2016-05-01 11:28 <a href="http://www.blogjava.net/liuyanbo/archive/2016/05/01/430317.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Centos设置程序开机自启动的方法</title><link>http://www.blogjava.net/liuyanbo/archive/2016/03/05/429542.html</link><dc:creator>天宇恒星</dc:creator><author>天宇恒星</author><pubDate>Sat, 05 Mar 2016 03:23:00 GMT</pubDate><guid>http://www.blogjava.net/liuyanbo/archive/2016/03/05/429542.html</guid><wfw:comment>http://www.blogjava.net/liuyanbo/comments/429542.html</wfw:comment><comments>http://www.blogjava.net/liuyanbo/archive/2016/03/05/429542.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/liuyanbo/comments/commentRss/429542.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/liuyanbo/services/trackbacks/429542.html</trackback:ping><description><![CDATA[1) 已经添加到service中的程序<br />chkconfig <span style="color: red;">name</span> on<br /><br />2)其他使用命令启动的程序<br />在/etc/rc.local中加入：<br /><div>sudo su - <span style="color: red;">username</span> -c "cd /www/jetty8.1/bin/ &amp;&amp; sh jetty.sh start &amp;"</div><img src ="http://www.blogjava.net/liuyanbo/aggbug/429542.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/liuyanbo/" target="_blank">天宇恒星</a> 2016-03-05 11:23 <a href="http://www.blogjava.net/liuyanbo/archive/2016/03/05/429542.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>