https://wiki.ubuntu.org.cn/api.php?action=feedcontributions&user=Jinzd&feedformat=atom
Ubuntu中文 - 用户贡献 [zh-hans]
2024-03-29T06:05:05Z
用户贡献
MediaWiki 1.26.3
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155213
沙盒
2017-01-26T05:11:03Z
<p>Jinzd:</p>
<hr />
<div>[http://www.oracle.com/technetwork/articles/java/json-1973242.html oracle json]<br />
<br />
[http://www.cnblogs.com/zhfblog/archive/2011/11/16/2251432.html json 2]<br />
<br />
[http://www.json.org/ json org]<br />
<br />
[https://github.com/ysharplanguage/FastJsonParser FastJsonParser]<br />
<br />
[http://www.oracle.com/technetwork/articles/javase/servlets-jsp-140445.html j2ee best]<br />
<br />
[http://www.oracle.com/technetwork/java/javase/overview/index-jsp-142216.html java desktop application]<br />
<br />
[http://www.jvmhost.com/articles/remotely-debug-java-jsp-eclipse eclipse java debug]<br />
<br />
[http://blog.csdn.net/zmhinzaghi/article/details/5966060 eclipse java debug]<br />
<br />
[https://www.quora.com/What-are-the-most-important-Java-concepts-a-fresher-should-master-in-order-to-compete-for-a-Java-interview-and-also-become-a-good-Java-developer-later java]<br />
<br />
[http://www.infoq.com/cn/articles/golang-standard-library-part02 golang web]<br />
<br />
[https://golang.org/doc/articles/wiki/ golang web 2]<br />
<br />
[http://cdimage.ubuntu.com/ubuntu/daily-live/current/ 17.04]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155212
沙盒
2017-01-24T08:58:29Z
<p>Jinzd:</p>
<hr />
<div>[http://www.oracle.com/technetwork/articles/java/json-1973242.html oracle json]<br />
<br />
[http://www.cnblogs.com/zhfblog/archive/2011/11/16/2251432.html json 2]<br />
<br />
[http://www.json.org/ json org]<br />
<br />
[https://github.com/ysharplanguage/FastJsonParser FastJsonParser]<br />
<br />
[http://www.oracle.com/technetwork/articles/javase/servlets-jsp-140445.html j2ee best]<br />
<br />
[http://www.oracle.com/technetwork/java/javase/overview/index-jsp-142216.html java desktop application]<br />
<br />
[http://www.jvmhost.com/articles/remotely-debug-java-jsp-eclipse eclipse java debug]<br />
<br />
[http://blog.csdn.net/zmhinzaghi/article/details/5966060 eclipse java debug]<br />
<br />
[https://www.quora.com/What-are-the-most-important-Java-concepts-a-fresher-should-master-in-order-to-compete-for-a-Java-interview-and-also-become-a-good-Java-developer-later java]<br />
<br />
[http://www.infoq.com/cn/articles/golang-standard-library-part02 golang web]<br />
<br />
[https://golang.org/doc/articles/wiki/ golang web 2]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155211
沙盒
2017-01-23T17:55:55Z
<p>Jinzd:</p>
<hr />
<div>[http://www.oracle.com/technetwork/articles/java/json-1973242.html oracle json]<br />
<br />
[http://www.cnblogs.com/zhfblog/archive/2011/11/16/2251432.html json 2]<br />
<br />
[http://www.json.org/ json org]<br />
<br />
[https://github.com/ysharplanguage/FastJsonParser FastJsonParser]<br />
<br />
[http://www.oracle.com/technetwork/articles/javase/servlets-jsp-140445.html j2ee best]<br />
<br />
[http://www.oracle.com/technetwork/java/javase/overview/index-jsp-142216.html java desktop application]<br />
<br />
[http://www.jvmhost.com/articles/remotely-debug-java-jsp-eclipse eclipse java debug]<br />
<br />
[http://blog.csdn.net/zmhinzaghi/article/details/5966060 eclipse java debug]<br />
<br />
[https://www.quora.com/What-are-the-most-important-Java-concepts-a-fresher-should-master-in-order-to-compete-for-a-Java-interview-and-also-become-a-good-Java-developer-later java]<br />
<br />
[http://www.infoq.com/cn/articles/golang-standard-library-part02 golang web]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155182
沙盒
2016-12-28T15:52:49Z
<p>Jinzd:</p>
<hr />
<div>[http://www.oracle.com/technetwork/articles/java/json-1973242.html oracle json]<br />
<br />
[http://www.cnblogs.com/zhfblog/archive/2011/11/16/2251432.html json 2]<br />
<br />
[http://www.json.org/ json org]<br />
<br />
[https://github.com/ysharplanguage/FastJsonParser FastJsonParser]<br />
<br />
[http://www.oracle.com/technetwork/articles/javase/servlets-jsp-140445.html j2ee best]<br />
<br />
[http://www.oracle.com/technetwork/java/javase/overview/index-jsp-142216.html java desktop application]<br />
<br />
[http://www.jvmhost.com/articles/remotely-debug-java-jsp-eclipse eclipse java debug]<br />
<br />
[http://blog.csdn.net/zmhinzaghi/article/details/5966060 eclipse java debug]<br />
<br />
[https://www.quora.com/What-are-the-most-important-Java-concepts-a-fresher-should-master-in-order-to-compete-for-a-Java-interview-and-also-become-a-good-Java-developer-later java]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155179
沙盒
2016-12-27T15:38:15Z
<p>Jinzd:</p>
<hr />
<div>[http://www.oracle.com/technetwork/articles/java/json-1973242.html oracle json]<br />
<br />
[http://www.cnblogs.com/zhfblog/archive/2011/11/16/2251432.html json 2]<br />
<br />
[http://www.json.org/ json org]<br />
<br />
[https://github.com/ysharplanguage/FastJsonParser FastJsonParser]<br />
<br />
[http://www.oracle.com/technetwork/articles/javase/servlets-jsp-140445.html j2ee best]<br />
<br />
[http://www.oracle.com/technetwork/java/javase/overview/index-jsp-142216.html java desktop application]<br />
<br />
[http://www.jvmhost.com/articles/remotely-debug-java-jsp-eclipse eclipse java debug]<br />
<br />
[http://blog.csdn.net/zmhinzaghi/article/details/5966060 eclipse java debug]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155178
沙盒
2016-12-27T15:36:35Z
<p>Jinzd:</p>
<hr />
<div>[http://www.oracle.com/technetwork/articles/java/json-1973242.html oracle json]<br />
<br />
[http://www.cnblogs.com/zhfblog/archive/2011/11/16/2251432.html json 2]<br />
<br />
[http://www.json.org/ json org]<br />
<br />
[https://github.com/ysharplanguage/FastJsonParser FastJsonParser]<br />
<br />
[http://www.oracle.com/technetwork/articles/javase/servlets-jsp-140445.html j2ee best]<br />
<br />
[http://www.oracle.com/technetwork/java/javase/overview/index-jsp-142216.html java desktop application]<br />
<br />
[http://www.jvmhost.com/articles/remotely-debug-java-jsp-eclipse eclipse java debug]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155129
沙盒
2016-11-23T09:57:19Z
<p>Jinzd:</p>
<hr />
<div>[http://www.oracle.com/technetwork/articles/java/json-1973242.html oracle json]<br />
<br />
[http://www.cnblogs.com/zhfblog/archive/2011/11/16/2251432.html json 2]<br />
<br />
[http://www.json.org/ json org]<br />
<br />
[https://github.com/ysharplanguage/FastJsonParser FastJsonParser]<br />
<br />
[http://www.oracle.com/technetwork/articles/javase/servlets-jsp-140445.html j2ee best]<br />
<br />
[http://www.oracle.com/technetwork/java/javase/overview/index-jsp-142216.html java desktop application]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155121
沙盒
2016-11-14T15:26:36Z
<p>Jinzd:</p>
<hr />
<div>[http://www.oracle.com/technetwork/articles/java/json-1973242.html oracle json]<br />
<br />
[http://www.cnblogs.com/zhfblog/archive/2011/11/16/2251432.html json 2]<br />
<br />
[http://www.json.org/ json org]<br />
<br />
[https://github.com/ysharplanguage/FastJsonParser FastJsonParser]<br />
<br />
[http://www.oracle.com/technetwork/articles/javase/servlets-jsp-140445.html j2ee best]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155120
沙盒
2016-11-09T17:59:17Z
<p>Jinzd:</p>
<hr />
<div>[http://www.oracle.com/technetwork/articles/java/json-1973242.html oracle json]<br />
<br />
[http://www.cnblogs.com/zhfblog/archive/2011/11/16/2251432.html json 2]<br />
<br />
[http://www.json.org/ json org]<br />
<br />
[https://github.com/ysharplanguage/FastJsonParser FastJsonParser]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155115
沙盒
2016-11-09T10:00:41Z
<p>Jinzd:</p>
<hr />
<div>[http://www.oracle.com/technetwork/articles/java/json-1973242.html oracle json]<br />
<br />
[http://www.cnblogs.com/zhfblog/archive/2011/11/16/2251432.html json 2]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155114
沙盒
2016-11-03T12:45:37Z
<p>Jinzd:</p>
<hr />
<div>[http://www.oracle.com/technetwork/articles/java/json-1973242.html oracle json]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155113
沙盒
2016-11-03T12:45:10Z
<p>Jinzd:</p>
<hr />
<div>[http://www.oracle.com/technetwork/articles/java/json-1973242.html]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155112
沙盒
2016-11-03T11:22:19Z
<p>Jinzd:</p>
<hr />
<div>json parse and format.<br />
<br />
read a file with json format from a specified path; parse it to a json object; format the json to another file.<br />
<br />
> 500M file.</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155111
沙盒
2016-11-03T10:01:19Z
<p>Jinzd:</p>
<hr />
<div>1) 仅使用JDK, 不依赖任何第三方的包,完成JSON的parse和format.<br />
<br />
2) 对于JSON的parse/format, 需要支持基于流的输入和输出。即从一个文件解析出一个JSON对象, 以及把一个JSON对象输出到文件。<br />
<br />
3) 考虑对于一个大型JSON对象, 比如文件超过500M, 在基于流的解析和格式化时,如何减少内存消耗并提高性能。<br />
<br />
4) 性能方面, 和业界最快的实现FastJSON,进行比较。<br />
<br />
5) 设计文档</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155108
Ubuntu/Step by step
2016-10-26T15:31:21Z
<p>Jinzd:/* Eclipse for PHP */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
<pre><br />
sudo apt-get install mysql-server<br />
</pre><br />
<br />
=PHP=<br />
<br />
<pre><br />
sudo apt-get install php php-cli php-cgi php-xml php-xdebug <br />
libapache2-mod-php php-mysql php-mbstring<br />
</pre><br />
<br />
=Mediawiki=<br />
<br />
[https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion].<br />
<br />
<pre><br />
# Download from below url:<br />
<br />
cd ~/Downloads<br />
<br />
wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz<br />
<br />
# After download finished:<br />
<br />
tar -xvzf ./mediawiki-*.tar.gz<br />
<br />
sudo mv mediawiki-*/* /var/lib/mediawiki<br />
<br />
# Config PHP<br />
<br />
cd /etc/php/7.0/apache2<br />
<br />
sudo nano php.ini<br />
<br />
# update php.ini following things<br />
<br />
upload_max_filesize = 20M<br />
<br />
memory_limit = 128M<br />
<br />
# save php.ini and exit<br />
<br />
# restart apache2<br />
<br />
sudo service apache2 restart<br />
<br />
# mediawiki configuration<br />
<br />
cd /var/www/html<br />
<br />
sudo ln -s /var/lib/mediawiki mediawiki<br />
<br />
# give the rights for upload operation<br />
<br />
cd /var/lib/mediawiki<br />
<br />
sudo chmod -R 777 images<br />
<br />
// Configuration, access http://localhost/mediawiki and download <br />
// LocalSettings.php and copy it to /var/lib/mediawiki<br />
<br />
# for version 1.27.1 please execute below:<br />
<br />
sudo apt-get install php-mbstring<br />
</pre><br />
<br />
=Sun Java=<br />
<br />
<pre><br />
# Download JDK from Oracle and unzip it as below:<br />
<br />
tar -zxvf jdk-8u92-linux-x64.tar.gz<br />
<br />
sudo mv ./jdk1.8.0_92 /usr/lib<br />
<br />
# set java env<br />
<br />
sudo nano /etc/profile<br />
<br />
# add below lines to the file<br />
<br />
export JAVA_HOME=/usr/lib/jdk1.8.0_92<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar<br />
</pre><br />
<br />
=Eclipse for PHP=<br />
<br />
<pre><br />
cd ~/Downloads<br />
<br />
wget http://www.eclipse.org/downloads/download.php?file=<br />
/technology/epp/downloads/release/neon/1a/<br />
eclipse-php-neon-1a-linux-gtk-x86_64.tar.gz<br />
<br />
tar -zxvf ./eclipse-*.tar.gz<br />
<br />
sudo mv ./eclipse /usr/lib<br />
<br />
cd /usr/local/share/applications<br />
<br />
sudo nano eclipse.desktop<br />
<br />
# Add following contents to eclipse.desktop<br />
<br />
[Desktop Entry]<br />
Name=Eclipse<br />
Type=Application<br />
Exec=/usr/lib/eclipse/eclipse<br />
Terminal=false<br />
Icon=/usr/lib/eclipse/icon.xpm<br />
Comment=Integrated Development Environment<br />
NoDisplay=false<br />
Categories=Development;IDE;<br />
Name[en]=Eclipse<br />
</pre><br />
<br />
=Tomcat=<br />
<br />
<pre><br />
sudo apt-get install tomcat7<br />
<br />
cd /etc/tomcat7<br />
<br />
sudo nano server.xml<br />
<br />
# make sure below contents<br />
<br />
<Connector port="8080" protocol="HTTP/1.1" <br />
connectionTimeout="20000" <br />
redirectPort="8443" /><br />
<br />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /><br />
<br />
# save and exit server.xml<br />
<br />
# JAVA_HOME setting<br />
<br />
sudo nano tomcat-users.xml<br />
<br />
# make sure below contents<br />
<br />
<role rolename="admin"/><br />
<user username="tomcat" password="tomcat" roles="admin"/><br />
<br />
# save and exit tomcat-users.xml<br />
<br />
# install tomcat docs <br />
<br />
sudo apt install tomcat7-docs<br />
<br />
# install tomcat admin packages<br />
<br />
sudo apt-get install tomcat7-admin<br />
<br />
sudo nano tomcat-users.xml<br />
<br />
# make sure tomcat roles manager-gui and admin-gui<br />
<br />
# save and exit<br />
<br />
# for security<br />
<br />
sudo chgrp -R tomcat7 /etc/tomcat7<br />
<br />
sudo chmod -R g+w /etc/tomcat7 <br />
<br />
# Examples installation<br />
<br />
sudo apt-get install tomcat7-examples<br />
<br />
sudo service tomcat7 restart<br />
<br />
# make sure below roles in tomcat-users.xml<br />
<br />
manager-gui<br />
manager-script<br />
manager-jmx<br />
manager-status<br />
<br />
# profile<br />
<br />
sudo nano /etc/profile<br />
<br />
# add following lines<br />
<br />
export CATALINA_HOME=/etc/tomcat7<br />
<br />
export CATALINA_BASE=/etc/tomcat7<br />
</pre><br />
<br />
=Input Method=<br />
<br />
<pre><br />
# System Settings >> Language Support >> Install/Remove Lanugage<br />
<br />
# Select "Chinese (simplified)"<br />
<br />
sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4<br />
<br />
sudo ibus restart <br />
<br />
sudo apt-get install ibus-pinyin<br />
<br />
sudo apt-get install ibus-sunpinyin<br />
<br />
sudo ibus-setup<br />
<br />
# select "input method" tab from dialog<br />
# add the chinese input methods just add<br />
<br />
# Shift+command+space<br />
</pre><br />
<br />
=VMware=<br />
<br />
* [https://download3.vmware.com/software/wkst/file/VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle?HashKey=98731e4cabd86f1c10bcf0d869a11143&params=%7B%22custnumber%22%3A%22KnAlaCV0JWV0ZA%3D%3D%22%2C%22sourcefilesize%22%3A%22356.79+MB%22%2C%22dlgcode%22%3A%22WKST-1250-LX%22%2C%22languagecode%22%3A%22cn%22%2C%22source%22%3A%22DOWNLOADS%22%2C%22downloadtype%22%3A%22manual%22%2C%22eula%22%3A%22Y%22%2C%22downloaduuid%22%3A%22d08bfbb6-cbf1-4e4f-bbc6-73e4cb12ce28%22%2C%22purchased%22%3A%22N%22%2C%22dlgtype%22%3A%22Product+Binaries%22%2C%22productversion%22%3A%2212.5.0%22%2C%22productfamily%22%3A%22VMware+Workstation+Pro%22%7D&AuthKey=1474337017_556314a3590addcd9b0eb10114dedb42 Downloads VMware Workstation 12.5 pro for Linux]<br />
* [https://download3.vmware.com/software/wkst/file/VMware-workstation-full-12.5.0-4352439.exe?HashKey=62a5906c3d87e2a880cee95113c38fa3&ext=.exe&params=%7B%22custnumber%22%3A%22KnAlaCV0JWV0ZA%3D%3D%22%2C%22sourcefilesize%22%3A%22303.64+MB%22%2C%22dlgcode%22%3A%22WKST-1250-WIN%22%2C%22languagecode%22%3A%22cn%22%2C%22source%22%3A%22DOWNLOADS%22%2C%22downloadtype%22%3A%22manual%22%2C%22eula%22%3A%22Y%22%2C%22downloaduuid%22%3A%22af7ccaa6-4263-4cfe-a55c-58e3ca35d53a%22%2C%22purchased%22%3A%22N%22%2C%22dlgtype%22%3A%22Product+Binaries%22%2C%22productversion%22%3A%2212.5.0%22%2C%22productfamily%22%3A%22VMware+Workstation+Pro%22%7D&AuthKey=1474337362_ac0b3263e7c2030e7510ffa469e25c7a&ext=.exe Downloads VMware Workstation 12.5 pro for Windows]<br />
<br />
<pre><br />
# Download VMware Workstation 12.5 pro for Linux<br />
<br />
# Execute below command to give the execute right to bundle<br />
sudo chmod +x ./VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle<br />
<br />
# Install VMware<br />
sudo ./VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle<br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155107
Ubuntu/Step by step
2016-10-26T15:27:40Z
<p>Jinzd:/* VMware */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
<pre><br />
sudo apt-get install mysql-server<br />
</pre><br />
<br />
=PHP=<br />
<br />
<pre><br />
sudo apt-get install php php-cli php-cgi php-xml php-xdebug <br />
libapache2-mod-php php-mysql php-mbstring<br />
</pre><br />
<br />
=Mediawiki=<br />
<br />
[https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion].<br />
<br />
<pre><br />
# Download from below url:<br />
<br />
cd ~/Downloads<br />
<br />
wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz<br />
<br />
# After download finished:<br />
<br />
tar -xvzf ./mediawiki-*.tar.gz<br />
<br />
sudo mv mediawiki-*/* /var/lib/mediawiki<br />
<br />
# Config PHP<br />
<br />
cd /etc/php/7.0/apache2<br />
<br />
sudo nano php.ini<br />
<br />
# update php.ini following things<br />
<br />
upload_max_filesize = 20M<br />
<br />
memory_limit = 128M<br />
<br />
# save php.ini and exit<br />
<br />
# restart apache2<br />
<br />
sudo service apache2 restart<br />
<br />
# mediawiki configuration<br />
<br />
cd /var/www/html<br />
<br />
sudo ln -s /var/lib/mediawiki mediawiki<br />
<br />
# give the rights for upload operation<br />
<br />
cd /var/lib/mediawiki<br />
<br />
sudo chmod -R 777 images<br />
<br />
// Configuration, access http://localhost/mediawiki and download <br />
// LocalSettings.php and copy it to /var/lib/mediawiki<br />
<br />
# for version 1.27.1 please execute below:<br />
<br />
sudo apt-get install php-mbstring<br />
</pre><br />
<br />
=Eclipse for PHP=<br />
<br />
<pre><br />
cd ~/Downloads<br />
<br />
wget http://www.eclipse.org/downloads/download.php?file=<br />
/technology/epp/downloads/release/neon/1a/<br />
eclipse-php-neon-1a-linux-gtk-x86_64.tar.gz<br />
<br />
tar -zxvf ./eclipse-*.tar.gz<br />
<br />
sudo mv ./eclipse /usr/lib<br />
<br />
cd /usr/local/share/applications<br />
<br />
sudo nano eclipse.desktop<br />
<br />
# Add following contents to eclipse.desktop<br />
<br />
[Desktop Entry]<br />
Name=Eclipse<br />
Type=Application<br />
Exec=/usr/lib/eclipse/eclipse<br />
Terminal=false<br />
Icon=/usr/lib/eclipse/icon.xpm<br />
Comment=Integrated Development Environment<br />
NoDisplay=false<br />
Categories=Development;IDE;<br />
Name[en]=Eclipse<br />
</pre><br />
<br />
=Tomcat=<br />
<br />
<pre><br />
sudo apt-get install tomcat7<br />
<br />
cd /etc/tomcat7<br />
<br />
sudo nano server.xml<br />
<br />
# make sure below contents<br />
<br />
<Connector port="8080" protocol="HTTP/1.1" <br />
connectionTimeout="20000" <br />
redirectPort="8443" /><br />
<br />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /><br />
<br />
# save and exit server.xml<br />
<br />
# JAVA_HOME setting<br />
<br />
sudo nano tomcat-users.xml<br />
<br />
# make sure below contents<br />
<br />
<role rolename="admin"/><br />
<user username="tomcat" password="tomcat" roles="admin"/><br />
<br />
# save and exit tomcat-users.xml<br />
<br />
# install tomcat docs <br />
<br />
sudo apt install tomcat7-docs<br />
<br />
# install tomcat admin packages<br />
<br />
sudo apt-get install tomcat7-admin<br />
<br />
sudo nano tomcat-users.xml<br />
<br />
# make sure tomcat roles manager-gui and admin-gui<br />
<br />
# save and exit<br />
<br />
# for security<br />
<br />
sudo chgrp -R tomcat7 /etc/tomcat7<br />
<br />
sudo chmod -R g+w /etc/tomcat7 <br />
<br />
# Examples installation<br />
<br />
sudo apt-get install tomcat7-examples<br />
<br />
sudo service tomcat7 restart<br />
<br />
# make sure below roles in tomcat-users.xml<br />
<br />
manager-gui<br />
manager-script<br />
manager-jmx<br />
manager-status<br />
<br />
# profile<br />
<br />
sudo nano /etc/profile<br />
<br />
# add following lines<br />
<br />
export CATALINA_HOME=/etc/tomcat7<br />
<br />
export CATALINA_BASE=/etc/tomcat7<br />
</pre><br />
<br />
=Input Method=<br />
<br />
<pre><br />
# System Settings >> Language Support >> Install/Remove Lanugage<br />
<br />
# Select "Chinese (simplified)"<br />
<br />
sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4<br />
<br />
sudo ibus restart <br />
<br />
sudo apt-get install ibus-pinyin<br />
<br />
sudo apt-get install ibus-sunpinyin<br />
<br />
sudo ibus-setup<br />
<br />
# select "input method" tab from dialog<br />
# add the chinese input methods just add<br />
<br />
# Shift+command+space<br />
</pre><br />
<br />
=VMware=<br />
<br />
* [https://download3.vmware.com/software/wkst/file/VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle?HashKey=98731e4cabd86f1c10bcf0d869a11143&params=%7B%22custnumber%22%3A%22KnAlaCV0JWV0ZA%3D%3D%22%2C%22sourcefilesize%22%3A%22356.79+MB%22%2C%22dlgcode%22%3A%22WKST-1250-LX%22%2C%22languagecode%22%3A%22cn%22%2C%22source%22%3A%22DOWNLOADS%22%2C%22downloadtype%22%3A%22manual%22%2C%22eula%22%3A%22Y%22%2C%22downloaduuid%22%3A%22d08bfbb6-cbf1-4e4f-bbc6-73e4cb12ce28%22%2C%22purchased%22%3A%22N%22%2C%22dlgtype%22%3A%22Product+Binaries%22%2C%22productversion%22%3A%2212.5.0%22%2C%22productfamily%22%3A%22VMware+Workstation+Pro%22%7D&AuthKey=1474337017_556314a3590addcd9b0eb10114dedb42 Downloads VMware Workstation 12.5 pro for Linux]<br />
* [https://download3.vmware.com/software/wkst/file/VMware-workstation-full-12.5.0-4352439.exe?HashKey=62a5906c3d87e2a880cee95113c38fa3&ext=.exe&params=%7B%22custnumber%22%3A%22KnAlaCV0JWV0ZA%3D%3D%22%2C%22sourcefilesize%22%3A%22303.64+MB%22%2C%22dlgcode%22%3A%22WKST-1250-WIN%22%2C%22languagecode%22%3A%22cn%22%2C%22source%22%3A%22DOWNLOADS%22%2C%22downloadtype%22%3A%22manual%22%2C%22eula%22%3A%22Y%22%2C%22downloaduuid%22%3A%22af7ccaa6-4263-4cfe-a55c-58e3ca35d53a%22%2C%22purchased%22%3A%22N%22%2C%22dlgtype%22%3A%22Product+Binaries%22%2C%22productversion%22%3A%2212.5.0%22%2C%22productfamily%22%3A%22VMware+Workstation+Pro%22%7D&AuthKey=1474337362_ac0b3263e7c2030e7510ffa469e25c7a&ext=.exe Downloads VMware Workstation 12.5 pro for Windows]<br />
<br />
<pre><br />
# Download VMware Workstation 12.5 pro for Linux<br />
<br />
# Execute below command to give the execute right to bundle<br />
sudo chmod +x ./VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle<br />
<br />
# Install VMware<br />
sudo ./VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle<br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155106
Ubuntu/Step by step
2016-10-26T15:21:47Z
<p>Jinzd:/* End */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
<pre><br />
sudo apt-get install mysql-server<br />
</pre><br />
<br />
=PHP=<br />
<br />
<pre><br />
sudo apt-get install php php-cli php-cgi php-xml php-xdebug <br />
libapache2-mod-php php-mysql php-mbstring<br />
</pre><br />
<br />
=Mediawiki=<br />
<br />
[https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion].<br />
<br />
<pre><br />
# Download from below url:<br />
<br />
cd ~/Downloads<br />
<br />
wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz<br />
<br />
# After download finished:<br />
<br />
tar -xvzf ./mediawiki-*.tar.gz<br />
<br />
sudo mv mediawiki-*/* /var/lib/mediawiki<br />
<br />
# Config PHP<br />
<br />
cd /etc/php/7.0/apache2<br />
<br />
sudo nano php.ini<br />
<br />
# update php.ini following things<br />
<br />
upload_max_filesize = 20M<br />
<br />
memory_limit = 128M<br />
<br />
# save php.ini and exit<br />
<br />
# restart apache2<br />
<br />
sudo service apache2 restart<br />
<br />
# mediawiki configuration<br />
<br />
cd /var/www/html<br />
<br />
sudo ln -s /var/lib/mediawiki mediawiki<br />
<br />
# give the rights for upload operation<br />
<br />
cd /var/lib/mediawiki<br />
<br />
sudo chmod -R 777 images<br />
<br />
// Configuration, access http://localhost/mediawiki and download <br />
// LocalSettings.php and copy it to /var/lib/mediawiki<br />
<br />
# for version 1.27.1 please execute below:<br />
<br />
sudo apt-get install php-mbstring<br />
</pre><br />
<br />
=Eclipse for PHP=<br />
<br />
<pre><br />
cd ~/Downloads<br />
<br />
wget http://www.eclipse.org/downloads/download.php?file=<br />
/technology/epp/downloads/release/neon/1a/<br />
eclipse-php-neon-1a-linux-gtk-x86_64.tar.gz<br />
<br />
tar -zxvf ./eclipse-*.tar.gz<br />
<br />
sudo mv ./eclipse /usr/lib<br />
<br />
cd /usr/local/share/applications<br />
<br />
sudo nano eclipse.desktop<br />
<br />
# Add following contents to eclipse.desktop<br />
<br />
[Desktop Entry]<br />
Name=Eclipse<br />
Type=Application<br />
Exec=/usr/lib/eclipse/eclipse<br />
Terminal=false<br />
Icon=/usr/lib/eclipse/icon.xpm<br />
Comment=Integrated Development Environment<br />
NoDisplay=false<br />
Categories=Development;IDE;<br />
Name[en]=Eclipse<br />
</pre><br />
<br />
=Tomcat=<br />
<br />
<pre><br />
sudo apt-get install tomcat7<br />
<br />
cd /etc/tomcat7<br />
<br />
sudo nano server.xml<br />
<br />
# make sure below contents<br />
<br />
<Connector port="8080" protocol="HTTP/1.1" <br />
connectionTimeout="20000" <br />
redirectPort="8443" /><br />
<br />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /><br />
<br />
# save and exit server.xml<br />
<br />
# JAVA_HOME setting<br />
<br />
sudo nano tomcat-users.xml<br />
<br />
# make sure below contents<br />
<br />
<role rolename="admin"/><br />
<user username="tomcat" password="tomcat" roles="admin"/><br />
<br />
# save and exit tomcat-users.xml<br />
<br />
# install tomcat docs <br />
<br />
sudo apt install tomcat7-docs<br />
<br />
# install tomcat admin packages<br />
<br />
sudo apt-get install tomcat7-admin<br />
<br />
sudo nano tomcat-users.xml<br />
<br />
# make sure tomcat roles manager-gui and admin-gui<br />
<br />
# save and exit<br />
<br />
# for security<br />
<br />
sudo chgrp -R tomcat7 /etc/tomcat7<br />
<br />
sudo chmod -R g+w /etc/tomcat7 <br />
<br />
# Examples installation<br />
<br />
sudo apt-get install tomcat7-examples<br />
<br />
sudo service tomcat7 restart<br />
<br />
# make sure below roles in tomcat-users.xml<br />
<br />
manager-gui<br />
manager-script<br />
manager-jmx<br />
manager-status<br />
<br />
# profile<br />
<br />
sudo nano /etc/profile<br />
<br />
# add following lines<br />
<br />
export CATALINA_HOME=/etc/tomcat7<br />
<br />
export CATALINA_BASE=/etc/tomcat7<br />
</pre><br />
<br />
=VMware=<br />
<br />
* [https://download3.vmware.com/software/wkst/file/VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle?HashKey=98731e4cabd86f1c10bcf0d869a11143&params=%7B%22custnumber%22%3A%22KnAlaCV0JWV0ZA%3D%3D%22%2C%22sourcefilesize%22%3A%22356.79+MB%22%2C%22dlgcode%22%3A%22WKST-1250-LX%22%2C%22languagecode%22%3A%22cn%22%2C%22source%22%3A%22DOWNLOADS%22%2C%22downloadtype%22%3A%22manual%22%2C%22eula%22%3A%22Y%22%2C%22downloaduuid%22%3A%22d08bfbb6-cbf1-4e4f-bbc6-73e4cb12ce28%22%2C%22purchased%22%3A%22N%22%2C%22dlgtype%22%3A%22Product+Binaries%22%2C%22productversion%22%3A%2212.5.0%22%2C%22productfamily%22%3A%22VMware+Workstation+Pro%22%7D&AuthKey=1474337017_556314a3590addcd9b0eb10114dedb42 Downloads VMware Workstation 12.5 pro for Linux]<br />
* [https://download3.vmware.com/software/wkst/file/VMware-workstation-full-12.5.0-4352439.exe?HashKey=62a5906c3d87e2a880cee95113c38fa3&ext=.exe&params=%7B%22custnumber%22%3A%22KnAlaCV0JWV0ZA%3D%3D%22%2C%22sourcefilesize%22%3A%22303.64+MB%22%2C%22dlgcode%22%3A%22WKST-1250-WIN%22%2C%22languagecode%22%3A%22cn%22%2C%22source%22%3A%22DOWNLOADS%22%2C%22downloadtype%22%3A%22manual%22%2C%22eula%22%3A%22Y%22%2C%22downloaduuid%22%3A%22af7ccaa6-4263-4cfe-a55c-58e3ca35d53a%22%2C%22purchased%22%3A%22N%22%2C%22dlgtype%22%3A%22Product+Binaries%22%2C%22productversion%22%3A%2212.5.0%22%2C%22productfamily%22%3A%22VMware+Workstation+Pro%22%7D&AuthKey=1474337362_ac0b3263e7c2030e7510ffa469e25c7a&ext=.exe Downloads VMware Workstation 12.5 pro for Windows]<br />
<br />
<pre><br />
# Download VMware Workstation 12.5 pro for Linux<br />
<br />
# Execute below command to give the execute right to bundle<br />
sudo chmod +x ./VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle<br />
<br />
# Install VMware<br />
sudo ./VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle<br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155105
Ubuntu/Step by step
2016-10-26T15:18:54Z
<p>Jinzd:/* Tomcat */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
<pre><br />
sudo apt-get install mysql-server<br />
</pre><br />
<br />
=PHP=<br />
<br />
<pre><br />
sudo apt-get install php php-cli php-cgi php-xml php-xdebug <br />
libapache2-mod-php php-mysql php-mbstring<br />
</pre><br />
<br />
=Mediawiki=<br />
<br />
[https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion].<br />
<br />
<pre><br />
# Download from below url:<br />
<br />
cd ~/Downloads<br />
<br />
wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz<br />
<br />
# After download finished:<br />
<br />
tar -xvzf ./mediawiki-*.tar.gz<br />
<br />
sudo mv mediawiki-*/* /var/lib/mediawiki<br />
<br />
# Config PHP<br />
<br />
cd /etc/php/7.0/apache2<br />
<br />
sudo nano php.ini<br />
<br />
# update php.ini following things<br />
<br />
upload_max_filesize = 20M<br />
<br />
memory_limit = 128M<br />
<br />
# save php.ini and exit<br />
<br />
# restart apache2<br />
<br />
sudo service apache2 restart<br />
<br />
# mediawiki configuration<br />
<br />
cd /var/www/html<br />
<br />
sudo ln -s /var/lib/mediawiki mediawiki<br />
<br />
# give the rights for upload operation<br />
<br />
cd /var/lib/mediawiki<br />
<br />
sudo chmod -R 777 images<br />
<br />
// Configuration, access http://localhost/mediawiki and download <br />
// LocalSettings.php and copy it to /var/lib/mediawiki<br />
<br />
# for version 1.27.1 please execute below:<br />
<br />
sudo apt-get install php-mbstring<br />
</pre><br />
<br />
=Eclipse for PHP=<br />
<br />
<pre><br />
cd ~/Downloads<br />
<br />
wget http://www.eclipse.org/downloads/download.php?file=<br />
/technology/epp/downloads/release/neon/1a/<br />
eclipse-php-neon-1a-linux-gtk-x86_64.tar.gz<br />
<br />
tar -zxvf ./eclipse-*.tar.gz<br />
<br />
sudo mv ./eclipse /usr/lib<br />
<br />
cd /usr/local/share/applications<br />
<br />
sudo nano eclipse.desktop<br />
<br />
# Add following contents to eclipse.desktop<br />
<br />
[Desktop Entry]<br />
Name=Eclipse<br />
Type=Application<br />
Exec=/usr/lib/eclipse/eclipse<br />
Terminal=false<br />
Icon=/usr/lib/eclipse/icon.xpm<br />
Comment=Integrated Development Environment<br />
NoDisplay=false<br />
Categories=Development;IDE;<br />
Name[en]=Eclipse<br />
</pre><br />
<br />
=Tomcat=<br />
<br />
<pre><br />
sudo apt-get install tomcat7<br />
<br />
cd /etc/tomcat7<br />
<br />
sudo nano server.xml<br />
<br />
# make sure below contents<br />
<br />
<Connector port="8080" protocol="HTTP/1.1" <br />
connectionTimeout="20000" <br />
redirectPort="8443" /><br />
<br />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /><br />
<br />
# save and exit server.xml<br />
<br />
# JAVA_HOME setting<br />
<br />
sudo nano tomcat-users.xml<br />
<br />
# make sure below contents<br />
<br />
<role rolename="admin"/><br />
<user username="tomcat" password="tomcat" roles="admin"/><br />
<br />
# save and exit tomcat-users.xml<br />
<br />
# install tomcat docs <br />
<br />
sudo apt install tomcat7-docs<br />
<br />
# install tomcat admin packages<br />
<br />
sudo apt-get install tomcat7-admin<br />
<br />
sudo nano tomcat-users.xml<br />
<br />
# make sure tomcat roles manager-gui and admin-gui<br />
<br />
# save and exit<br />
<br />
# for security<br />
<br />
sudo chgrp -R tomcat7 /etc/tomcat7<br />
<br />
sudo chmod -R g+w /etc/tomcat7 <br />
<br />
# Examples installation<br />
<br />
sudo apt-get install tomcat7-examples<br />
<br />
sudo service tomcat7 restart<br />
<br />
# make sure below roles in tomcat-users.xml<br />
<br />
manager-gui<br />
manager-script<br />
manager-jmx<br />
manager-status<br />
<br />
# profile<br />
<br />
sudo nano /etc/profile<br />
<br />
# add following lines<br />
<br />
export CATALINA_HOME=/etc/tomcat7<br />
<br />
export CATALINA_BASE=/etc/tomcat7<br />
</pre><br />
<br />
=End=</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155104
Ubuntu/Step by step
2016-10-26T15:18:25Z
<p>Jinzd:/* End */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
<pre><br />
sudo apt-get install mysql-server<br />
</pre><br />
<br />
=PHP=<br />
<br />
<pre><br />
sudo apt-get install php php-cli php-cgi php-xml php-xdebug <br />
libapache2-mod-php php-mysql php-mbstring<br />
</pre><br />
<br />
=Mediawiki=<br />
<br />
[https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion].<br />
<br />
<pre><br />
# Download from below url:<br />
<br />
cd ~/Downloads<br />
<br />
wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz<br />
<br />
# After download finished:<br />
<br />
tar -xvzf ./mediawiki-*.tar.gz<br />
<br />
sudo mv mediawiki-*/* /var/lib/mediawiki<br />
<br />
# Config PHP<br />
<br />
cd /etc/php/7.0/apache2<br />
<br />
sudo nano php.ini<br />
<br />
# update php.ini following things<br />
<br />
upload_max_filesize = 20M<br />
<br />
memory_limit = 128M<br />
<br />
# save php.ini and exit<br />
<br />
# restart apache2<br />
<br />
sudo service apache2 restart<br />
<br />
# mediawiki configuration<br />
<br />
cd /var/www/html<br />
<br />
sudo ln -s /var/lib/mediawiki mediawiki<br />
<br />
# give the rights for upload operation<br />
<br />
cd /var/lib/mediawiki<br />
<br />
sudo chmod -R 777 images<br />
<br />
// Configuration, access http://localhost/mediawiki and download <br />
// LocalSettings.php and copy it to /var/lib/mediawiki<br />
<br />
# for version 1.27.1 please execute below:<br />
<br />
sudo apt-get install php-mbstring<br />
</pre><br />
<br />
=Eclipse for PHP=<br />
<br />
<pre><br />
cd ~/Downloads<br />
<br />
wget http://www.eclipse.org/downloads/download.php?file=<br />
/technology/epp/downloads/release/neon/1a/<br />
eclipse-php-neon-1a-linux-gtk-x86_64.tar.gz<br />
<br />
tar -zxvf ./eclipse-*.tar.gz<br />
<br />
sudo mv ./eclipse /usr/lib<br />
<br />
cd /usr/local/share/applications<br />
<br />
sudo nano eclipse.desktop<br />
<br />
# Add following contents to eclipse.desktop<br />
<br />
[Desktop Entry]<br />
Name=Eclipse<br />
Type=Application<br />
Exec=/usr/lib/eclipse/eclipse<br />
Terminal=false<br />
Icon=/usr/lib/eclipse/icon.xpm<br />
Comment=Integrated Development Environment<br />
NoDisplay=false<br />
Categories=Development;IDE;<br />
Name[en]=Eclipse<br />
</pre><br />
<br />
=Tomcat=<br />
<br />
</pre><br />
sudo apt-get install tomcat7<br />
<br />
cd /etc/tomcat7<br />
<br />
sudo nano server.xml<br />
<br />
# make sure below contents<br />
<br />
<Connector port="8080" protocol="HTTP/1.1" <br />
connectionTimeout="20000" <br />
redirectPort="8443" /><br />
<br />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /><br />
<br />
# save and exit server.xml<br />
<br />
# JAVA_HOME setting<br />
<br />
sudo nano tomcat-users.xml<br />
<br />
# make sure below contents<br />
<br />
<role rolename="admin"/><br />
<user username="tomcat" password="tomcat" roles="admin"/><br />
<br />
# save and exit tomcat-users.xml<br />
<br />
# install tomcat docs <br />
<br />
sudo apt install tomcat7-docs<br />
<br />
# install tomcat admin packages<br />
<br />
sudo apt-get install tomcat7-admin<br />
<br />
sudo nano tomcat-users.xml<br />
<br />
# make sure tomcat roles manager-gui and admin-gui<br />
<br />
# save and exit<br />
<br />
# for security<br />
<br />
sudo chgrp -R tomcat7 /etc/tomcat7<br />
<br />
sudo chmod -R g+w /etc/tomcat7 <br />
<br />
# Examples installation<br />
<br />
sudo apt-get install tomcat7-examples<br />
<br />
sudo service tomcat7 restart<br />
<br />
# make sure below roles in tomcat-users.xml<br />
<br />
manager-gui<br />
manager-script<br />
manager-jmx<br />
manager-status<br />
<br />
# profile<br />
<br />
sudo nano /etc/profile<br />
<br />
# add following lines<br />
<br />
export CATALINA_HOME=/etc/tomcat7<br />
<br />
export CATALINA_BASE=/etc/tomcat7<br />
</pre><br />
<br />
=End=</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155103
Ubuntu/Step by step
2016-10-26T15:15:03Z
<p>Jinzd:/* Eclipse for PHP */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
<pre><br />
sudo apt-get install mysql-server<br />
</pre><br />
<br />
=PHP=<br />
<br />
<pre><br />
sudo apt-get install php php-cli php-cgi php-xml php-xdebug <br />
libapache2-mod-php php-mysql php-mbstring<br />
</pre><br />
<br />
=Mediawiki=<br />
<br />
[https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion].<br />
<br />
<pre><br />
# Download from below url:<br />
<br />
cd ~/Downloads<br />
<br />
wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz<br />
<br />
# After download finished:<br />
<br />
tar -xvzf ./mediawiki-*.tar.gz<br />
<br />
sudo mv mediawiki-*/* /var/lib/mediawiki<br />
<br />
# Config PHP<br />
<br />
cd /etc/php/7.0/apache2<br />
<br />
sudo nano php.ini<br />
<br />
# update php.ini following things<br />
<br />
upload_max_filesize = 20M<br />
<br />
memory_limit = 128M<br />
<br />
# save php.ini and exit<br />
<br />
# restart apache2<br />
<br />
sudo service apache2 restart<br />
<br />
# mediawiki configuration<br />
<br />
cd /var/www/html<br />
<br />
sudo ln -s /var/lib/mediawiki mediawiki<br />
<br />
# give the rights for upload operation<br />
<br />
cd /var/lib/mediawiki<br />
<br />
sudo chmod -R 777 images<br />
<br />
// Configuration, access http://localhost/mediawiki and download <br />
// LocalSettings.php and copy it to /var/lib/mediawiki<br />
<br />
# for version 1.27.1 please execute below:<br />
<br />
sudo apt-get install php-mbstring<br />
</pre><br />
<br />
=Eclipse for PHP=<br />
<br />
<pre><br />
cd ~/Downloads<br />
<br />
wget http://www.eclipse.org/downloads/download.php?file=<br />
/technology/epp/downloads/release/neon/1a/<br />
eclipse-php-neon-1a-linux-gtk-x86_64.tar.gz<br />
<br />
tar -zxvf ./eclipse-*.tar.gz<br />
<br />
sudo mv ./eclipse /usr/lib<br />
<br />
cd /usr/local/share/applications<br />
<br />
sudo nano eclipse.desktop<br />
<br />
# Add following contents to eclipse.desktop<br />
<br />
[Desktop Entry]<br />
Name=Eclipse<br />
Type=Application<br />
Exec=/usr/lib/eclipse/eclipse<br />
Terminal=false<br />
Icon=/usr/lib/eclipse/icon.xpm<br />
Comment=Integrated Development Environment<br />
NoDisplay=false<br />
Categories=Development;IDE;<br />
Name[en]=Eclipse<br />
</pre><br />
<br />
=End=</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155102
Ubuntu/Step by step
2016-10-26T15:14:34Z
<p>Jinzd:/* End */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
<pre><br />
sudo apt-get install mysql-server<br />
</pre><br />
<br />
=PHP=<br />
<br />
<pre><br />
sudo apt-get install php php-cli php-cgi php-xml php-xdebug <br />
libapache2-mod-php php-mysql php-mbstring<br />
</pre><br />
<br />
=Mediawiki=<br />
<br />
[https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion].<br />
<br />
<pre><br />
# Download from below url:<br />
<br />
cd ~/Downloads<br />
<br />
wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz<br />
<br />
# After download finished:<br />
<br />
tar -xvzf ./mediawiki-*.tar.gz<br />
<br />
sudo mv mediawiki-*/* /var/lib/mediawiki<br />
<br />
# Config PHP<br />
<br />
cd /etc/php/7.0/apache2<br />
<br />
sudo nano php.ini<br />
<br />
# update php.ini following things<br />
<br />
upload_max_filesize = 20M<br />
<br />
memory_limit = 128M<br />
<br />
# save php.ini and exit<br />
<br />
# restart apache2<br />
<br />
sudo service apache2 restart<br />
<br />
# mediawiki configuration<br />
<br />
cd /var/www/html<br />
<br />
sudo ln -s /var/lib/mediawiki mediawiki<br />
<br />
# give the rights for upload operation<br />
<br />
cd /var/lib/mediawiki<br />
<br />
sudo chmod -R 777 images<br />
<br />
// Configuration, access http://localhost/mediawiki and download <br />
// LocalSettings.php and copy it to /var/lib/mediawiki<br />
<br />
# for version 1.27.1 please execute below:<br />
<br />
sudo apt-get install php-mbstring<br />
</pre><br />
<br />
=Eclipse for PHP=<br />
<br />
<pre><br />
cd ~/Downloads<br />
<br />
wget http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/neon/1a/eclipse-php-neon-1a-linux-gtk-x86_64.tar.gz<br />
<br />
tar -zxvf ./eclipse-*.tar.gz<br />
<br />
sudo mv ./eclipse /usr/lib<br />
<br />
cd /usr/local/share/applications<br />
<br />
sudo nano eclipse.desktop<br />
<br />
# Add following contents to eclipse.desktop<br />
<br />
[Desktop Entry]<br />
Name=Eclipse<br />
Type=Application<br />
Exec=/usr/lib/eclipse/eclipse<br />
Terminal=false<br />
Icon=/usr/lib/eclipse/icon.xpm<br />
Comment=Integrated Development Environment<br />
NoDisplay=false<br />
Categories=Development;IDE;<br />
Name[en]=Eclipse<br />
</pre><br />
<br />
=End=</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155101
Ubuntu/Step by step
2016-10-26T15:12:19Z
<p>Jinzd:/* Mediawiki */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
<pre><br />
sudo apt-get install mysql-server<br />
</pre><br />
<br />
=PHP=<br />
<br />
<pre><br />
sudo apt-get install php php-cli php-cgi php-xml php-xdebug <br />
libapache2-mod-php php-mysql php-mbstring<br />
</pre><br />
<br />
=Mediawiki=<br />
<br />
[https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion].<br />
<br />
<pre><br />
# Download from below url:<br />
<br />
cd ~/Downloads<br />
<br />
wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz<br />
<br />
# After download finished:<br />
<br />
tar -xvzf ./mediawiki-*.tar.gz<br />
<br />
sudo mv mediawiki-*/* /var/lib/mediawiki<br />
<br />
# Config PHP<br />
<br />
cd /etc/php/7.0/apache2<br />
<br />
sudo nano php.ini<br />
<br />
# update php.ini following things<br />
<br />
upload_max_filesize = 20M<br />
<br />
memory_limit = 128M<br />
<br />
# save php.ini and exit<br />
<br />
# restart apache2<br />
<br />
sudo service apache2 restart<br />
<br />
# mediawiki configuration<br />
<br />
cd /var/www/html<br />
<br />
sudo ln -s /var/lib/mediawiki mediawiki<br />
<br />
# give the rights for upload operation<br />
<br />
cd /var/lib/mediawiki<br />
<br />
sudo chmod -R 777 images<br />
<br />
// Configuration, access http://localhost/mediawiki and download <br />
// LocalSettings.php and copy it to /var/lib/mediawiki<br />
<br />
# for version 1.27.1 please execute below:<br />
<br />
sudo apt-get install php-mbstring<br />
</pre><br />
<br />
=End=</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155100
Ubuntu/Step by step
2016-10-26T15:11:32Z
<p>Jinzd:/* End */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
<pre><br />
sudo apt-get install mysql-server<br />
</pre><br />
<br />
=PHP=<br />
<br />
<pre><br />
sudo apt-get install php php-cli php-cgi php-xml php-xdebug <br />
libapache2-mod-php php-mysql php-mbstring<br />
</pre><br />
<br />
=Mediawiki=<br />
<br />
[https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion].<br />
<br />
<pre><br />
# Download from below url:<br />
<br />
cd ~/Downloads<br />
<br />
wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz<br />
<br />
# After download finished:<br />
<br />
tar -xvzf ./mediawiki-*.tar.gz<br />
<br />
sudo mv mediawiki-*/* /var/lib/mediawiki<br />
<br />
# Config PHP<br />
<br />
cd /etc/php/7.0/apache2<br />
<br />
sudo nano php.ini<br />
<br />
# update php.ini following things<br />
<br />
upload_max_filesize = 20M<br />
<br />
memory_limit = 128M<br />
<br />
# save php.ini and exit<br />
<br />
# restart apache2<br />
<br />
sudo service apache2 restart<br />
<br />
# mediawiki configuration<br />
<br />
cd /var/www/html<br />
<br />
sudo ln -s /var/lib/mediawiki mediawiki<br />
<br />
# give the rights for upload operation<br />
<br />
cd /var/lib/mediawiki<br />
<br />
sudo chmod -R 777 images<br />
<br />
// Configuration, access http://localhost/mediawiki and download LocalSettings.php and copy it to /var/lib/mediawiki<br />
<br />
# for version 1.27.1 please execute below:<br />
<br />
sudo apt-get install php-mbstring<br />
</pre><br />
=End=</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155099
Ubuntu/Step by step
2016-10-26T15:08:19Z
<p>Jinzd:/* PHP */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
<pre><br />
sudo apt-get install mysql-server<br />
</pre><br />
<br />
=PHP=<br />
<br />
<pre><br />
sudo apt-get install php php-cli php-cgi php-xml php-xdebug <br />
libapache2-mod-php php-mysql php-mbstring<br />
</pre><br />
<br />
=End=</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155098
Ubuntu/Step by step
2016-10-26T15:07:52Z
<p>Jinzd:/* End */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
<pre><br />
sudo apt-get install mysql-server<br />
</pre><br />
<br />
=PHP=<br />
<br />
<pre><br />
sudo apt-get install php php-cli php-cgi php-xml php-xdebug libapache2-mod-php php-mysql php-mbstring<br />
</pre><br />
<br />
=End=</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155097
Ubuntu/Step by step
2016-10-26T14:50:51Z
<p>Jinzd:/* MySQL */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
<pre><br />
sudo apt-get install mysql-server<br />
</pre><br />
<br />
=End=</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155096
Ubuntu/Step by step
2016-10-26T14:49:47Z
<p>Jinzd:/* Web Server (Apache2) */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=MySQL=<br />
<br />
=End=</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155095
Ubuntu/Step by step
2016-10-26T14:43:54Z
<p>Jinzd:/* Web Server (Apache2) */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155094
Ubuntu/Step by step
2016-10-26T14:42:40Z
<p>Jinzd:/* Web Server (Apache2) */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
<pre><br />
# Installation<br />
<br />
sudo apt-get install apache2<br />
<br />
# Create a new web site JUniverse<br />
# Customer can create a directory named JUnivers, like ~/JUniverse.<br />
<br />
cd /var/www/html<br />
<br />
# Create link for JUniverse<br />
<br />
sudo ln -s ~/JUniverse JUniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
# updating it as below<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/JUniverse<br />
<br />
# save and exit<br />
<br />
# restart<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155093
Ubuntu/Step by step
2016-10-23T15:16:45Z
<p>Jinzd:/* Web Server (Apache2) */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
<pre><br />
# Installation<br />
sudo apt-get install apache2<br />
<br />
# New web site in ~/JUniverse<br />
cd /var/www/html<br />
<br />
sudo ln -s ~/JUniverse juniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf<br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155092
Ubuntu/Step by step
2016-10-23T08:37:31Z
<p>Jinzd:/* Update & Upgrade */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# Make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre><br />
<br />
=Web Server (Apache2)=<br />
<br />
<pre><br />
# Installation<br />
sudo apt-get install apache2<br />
<br />
<br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155091
Ubuntu/Step by step
2016-10-23T08:35:54Z
<p>Jinzd:/* Update & Upgrade */</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
# make sure your list of packages is update to date, and system upgrade <br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Ubuntu/Step_by_step&diff=155090
Ubuntu/Step by step
2016-10-23T08:29:18Z
<p>Jinzd:创建页面,内容为“=Update & Upgrade= <pre> sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo apt-get autoremove </pre>”</p>
<hr />
<div>=Update & Upgrade=<br />
<br />
<pre><br />
sudo apt-get update<br />
<br />
sudo apt-get upgrade<br />
<br />
sudo apt-get dist-upgrade<br />
<br />
sudo apt-get autoremove<br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Main_page/navigation&diff=155089
模板:Main page/navigation
2016-10-23T08:22:33Z
<p>Jinzd:</p>
<hr />
<div><div style="float: left; margin-right: 1%; width: 16%;"><br />
;新手指南:<br />
* [[新手入门指引|入门指引]]<br />
* [[系统安装]]<br />
* '''[[速配指南]]'''<br />
* [[FC|FC杂志]]<br />
* [[经典资讯]]<br />
* [[Ubuntu/Step by step|Step by step]]<br />
</div><br />
<div style="float: left; margin-right: 1%; width: 16%;"><br />
;应用程序:<br />
* [[网络应用]]<br />
* [[影音图像]]<br />
* [[娱乐游戏]]<br />
* [[环境模拟]]<br />
* [[其它应用]]<br />
* [[Ubuntu/Web Servers|Web服务器]]<br />
</div><br />
<div style="float: left; margin-right: 1%; width: 16%;"><br />
;系统管理:<br />
* '''[[源列表]]'''<br />
* [[系统维护]]<br />
* [[硬件支持]]<br />
* [[中文支持]]<br />
* [[系统安全]]<br />
</div><br />
<div style="float: left; margin-right: 1%; width: 16%;"><br />
;桌面环境:<br />
* [[桌面美化]]<br />
* [[主流桌面]]<br />
* [[其他桌面]]<br />
</div><br />
<div style="float: left; margin-right: 1%; width: 16%;"><br />
;程序开发:<br />
* [[脚本语言]]<br />
* [[编程语言]]<br />
* [[编译打包]]<br />
* [[软件翻译]]<br />
* [[嵌入式开发]]<br />
</div><br />
<div style="float: left; width: 15%;"><br />
;网络服务:<br />
* [[网络基本服务|基本服务]]<br />
* [[网站架设服务|网站架设]]<br />
* [[后台数据服务|后台数据]]<br />
</div><br />
<br />
<div style="clear: both;"></div><br />
<small>请尽量将你的文章编入“[[Template:Main page/navigation|站点导航]]”。</small></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Main_page/navigation&diff=155088
模板:Main page/navigation
2016-10-23T08:21:26Z
<p>Jinzd:</p>
<hr />
<div><div style="float: left; margin-right: 1%; width: 16%;"><br />
;新手指南:<br />
* [[新手入门指引|入门指引]]<br />
* [[系统安装]]<br />
* '''[[速配指南]]'''<br />
* [[FC|FC杂志]]<br />
* [[经典资讯]]<br />
* [[Step by step]]<br />
</div><br />
<div style="float: left; margin-right: 1%; width: 16%;"><br />
;应用程序:<br />
* [[网络应用]]<br />
* [[影音图像]]<br />
* [[娱乐游戏]]<br />
* [[环境模拟]]<br />
* [[其它应用]]<br />
* [[Ubuntu/Web Servers|Web服务器]]<br />
</div><br />
<div style="float: left; margin-right: 1%; width: 16%;"><br />
;系统管理:<br />
* '''[[源列表]]'''<br />
* [[系统维护]]<br />
* [[硬件支持]]<br />
* [[中文支持]]<br />
* [[系统安全]]<br />
</div><br />
<div style="float: left; margin-right: 1%; width: 16%;"><br />
;桌面环境:<br />
* [[桌面美化]]<br />
* [[主流桌面]]<br />
* [[其他桌面]]<br />
</div><br />
<div style="float: left; margin-right: 1%; width: 16%;"><br />
;程序开发:<br />
* [[脚本语言]]<br />
* [[编程语言]]<br />
* [[编译打包]]<br />
* [[软件翻译]]<br />
* [[嵌入式开发]]<br />
</div><br />
<div style="float: left; width: 15%;"><br />
;网络服务:<br />
* [[网络基本服务|基本服务]]<br />
* [[网站架设服务|网站架设]]<br />
* [[后台数据服务|后台数据]]<br />
</div><br />
<br />
<div style="clear: both;"></div><br />
<small>请尽量将你的文章编入“[[Template:Main page/navigation|站点导航]]”。</small></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:Arthur2e5&diff=155072
用户讨论:Arthur2e5
2016-07-07T05:20:14Z
<p>Jinzd:</p>
<hr />
<div>有话按加号直说。我没回复的话可以试试 arthur200126 <于> gmail.com 或者 arthur2e5 <在> aosc.io。<br />
<br />
刚入门linux/ubuntu,多谢指教,我会尝试一下。 [[用户:Jinzd|Jinzd]]([[用户讨论:Jinzd|讨论]]) 2016年7月7日 (四) 13:19 (CST)</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:Arthur2e5&diff=155071
用户讨论:Arthur2e5
2016-07-07T05:19:29Z
<p>Jinzd:</p>
<hr />
<div>有话按加号直说。我没回复的话可以试试 arthur200126 <于> gmail.com 或者 arthur2e5 <在> aosc.io。<br />
<br />
刚入门ubuntu,多谢指教,我会尝试一下。 [[用户:Jinzd|Jinzd]]([[用户讨论:Jinzd|讨论]]) 2016年7月7日 (四) 13:19 (CST)</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E7%94%A8%E6%88%B7:Jinzd&diff=155064
用户:Jinzd
2016-07-05T05:04:27Z
<p>Jinzd:/* Want to */</p>
<hr />
<div><br />
<br />
<br />
=Contributes=<br />
<br />
* [[Sudo]], upading based on others.<br />
* [[Ubuntu/Web Servers]], new creating, sub pages are not finished yet.<br />
*: [[Ubuntu/Web Servers/HTTPD - Apache2 Web Server]]<br />
*: [[Ubuntu/Web Servers/PHP - Scripting Language]]<br />
*: [[Ubuntu/Web Servers/Squid - Proxy Server]]<br />
<br />
=Doing=<br />
<br />
* [https://www.gnu.org/software/bash/manual/bash.html#Readline-Bare-Essentials Bash Reference Manual]<br />
*: [[Bash Reference Manual]]<br />
*: [[Bash Reference Manual/zh]]<br />
<br />
=Want to=<br />
<br />
* [https://help.ubuntu.com/lts/serverguide/remote-administration.html Remote Administration]<br />
* [http://php.net/manual/en/book.pgsql.php PostgreSQL]<br />
* [http://help.eclipse.org/mars/index.jsp?nav=%2F0 PDT]<br />
* [http://help.eclipse.org/mars mars]<br />
* [https://app.netease.im/index#/ cloud]</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:Jinzd&diff=155063
用户讨论:Jinzd
2016-07-04T02:12:30Z
<p>Jinzd:/* Ubuntu */</p>
<hr />
<div>[[Kubuntu 技巧]]<br />
<br />
[[Shell编程基础]]<br />
<br />
[[man sudo_root]]<br />
<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91/<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export classPath=/usr/local/jdk1.8.0_91/<br />
<br />
[http://askubuntu.com/questions/26632/how-to-install-eclipse eclipse] <br />
<br />
[http://forum.ubuntu.org.cn/index.php forum]<br />
<br />
=Ubuntu=<br />
<br />
<pre><br />
----------------------Ubuntu update<br />
sudo apt-get update<br />
<br />
sudo apt-get dist-upgrade / sudo apt-get upgrade<br />
----------------------Postgresql installation<br />
sudo apt-get install postgresql-9.5<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
sudo -u postgres psql postgres<br />
<br />
\password postgres<br />
----------------------Postgresql configuration<br />
cd /etc/postgresql/9.5/main<br />
<br />
sudo nano postgresql.conf<br />
<br />
# add following line to the file<br />
<br />
listen_addresses = '*'<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
<br />
sudo nano pg_hba.conf<br />
<br />
# add following line to the file<br />
<br />
hostnossl all all 192.168.128.45 255.255.255.0 md5<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
----------------------Apache2 Web Server<br />
sudo apt-get install apache2<br />
----------------------PHP for apache2<br />
sudo apt install php libapache2-mod-php<br />
<br />
sudo apt install php-cli<br />
<br />
sudo apt install php-cgi<br />
<br />
sudo apt install php-pgsql<br />
<br />
<br />
#debug<br />
<br />
sudo apt-get install php-xdebug<br />
----------------------Netbeans<br />
sudo sh ./netbeansXXXXX.sh<br />
----------------------Java env for all users<br />
#move jdk to /usr/lib/jvm<br />
<br />
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
<br />
<br />
<br />
<br />
<br />
sudo nano /etc/profile<br />
<br />
# add following lines to the end of the file<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
----------------------OpenSSH<br />
sudo apt-get install openssh-server<br />
<br />
ssh [user]@[server ip]<br />
<br />
# windows client is putty, can be downloaded from internet.<br />
----------------------jdk<br />
# go to Downloads directory<br />
<br />
tar -zxvf jdk-8u92-linux-x64.tar.gz<br />
<br />
# move jdk to /usr/local<br />
<br />
sudo mv ./jdk1.8.0_92 /usr/local<br />
<br />
# set java env for ubuntu<br />
----------------------PDT Installation<br />
# download eclipse from https://eclipse.org/pdt/#download<br />
<br />
$ cd {directory where your browser downloaded the package to}<br />
<br />
$ tar -zxvf eclipse-SDK-3.4.1-linux-gtk.tar.gz && mv eclipse ~/opt<br />
<br />
</pre><br />
<br />
=Apache2=<br />
<br />
<pre><br />
# create a new site juniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
# edit juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/juniverse<br />
<br />
# save and exit it<br />
<br />
sudo mkdir /var/www/juniverse<br />
<br />
# restart apache2<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=wiki=<br />
<br />
https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu#Ubuntu_Up-To-Date<br />
<br />
[https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki Install Wiki]<br />
<br />
<br />
[https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu#Ubuntu_Up-To-Date wiki install]<br />
<br />
http://www.54chen.com/php-tech/mediawiki-pgsql.html<br />
<br />
https://help.ubuntu.com/community/MediaWiki<br />
<br />
=ifconfig=<br />
<br />
[[ifconfig]]<br />
<br />
Usage:<br />
<br />
: ifconfig [-a] [-v] [-s] <interface> [[&lt;AF&gt; ] &lt;address&gt;]<br />
: [add &lt;address&gt;[/<prefixlen&gt;]]<br />
: [del &lt;address&gt;[/<prefixlen&gt;]]<br />
: [[-]broadcast [&lt;address&gt;]] [[-]pointopoint [&lt;address&gt;]]<br />
: [netmask &lt;address&gt;] [dstaddr &lt;address&gt;] [tunnel &lt;address&gt;]<br />
<br />
=Java=<br />
<br />
Add deb resource path:<br />
<br />
<pre style="margin: 5px"><br />
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"<br />
<br />
sudo apt-get update<br />
<br />
sudo apt install sun-java8-jdk<br />
<br />
# remove<br />
<br />
sudo add-apt-repository -r "deb http://archive.canonical.com/ubuntu maverick partner"<br />
</pre><br />
<br />
=PostgreSQL=<br />
<br />
For newest Ubuntu 16.04 postgresql is ready to install:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo apt install postgresql-9.5<br />
</pre><br />
<br />
Get postgresql ready to use, set password is the first step:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres psql template1<br />
<br />
template1=# \password postgres;<br />
<br />
or<br />
<br />
jinzd@ubuntu:~S sudo -u postgres psql postgres<br />
<br />
postgres=# \password postgres;<br />
</pre><br />
<br />
Create database:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createdb JUniverse<br />
<br />
sudo -u postgres psql --host=localhost --username=postgres --password<br />
</pre><br />
<br />
Create user:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createuser <br />
</pre><br />
<br />
== 关于[[Bash Reference Manual/zh]]的翻译 ==<br />
<br />
这种texinfo文档还是喂进po4a然后直接翻译po为妙。——[[用户:Arthur2e5|Arthur2e5]]([[用户讨论:Arthur2e5|讨论]]) 2016年7月2日 (六) 18:02 (CST)</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155062
沙盒
2016-07-04T01:50:12Z
<p>Jinzd:</p>
<hr />
<div>3.1.2<br />
<br />
* [[#Escape Character|Escape Character]]: How to remove the special meaning from a single character. <br />
* [[#Single Quotes|Single Quotes]]: How to inhibit all interpretation of a sequence of characters. <br />
* [[#Double Quotes|Double Quotes]]: How to suppress most of the interpretation of a sequence of characters. <br />
* [[#ANSI-C Quoting|Double Quotes]]: How to expand ANSI-C sequences in quoted strings. <br />
* [[#Locale Translation|Locale Translation]]: How to translate strings into different languages. <br />
<br />
Quoting is used to remove the special meaning of certain characters or words to the shell. Quoting can be used to disable special treatment for special characters, to prevent reserved words from being recognized as such, and to prevent parameter expansion. <br />
<br />
Each of the shell metacharacters (see [[#Definitions|Definitions]]) has special meaning to the shell and must be quoted if it is to represent itself. When the command history expansion facilities are being used (see [[#History Interaction|History Interaction]]), the history expansion character, usually ‘!’, must be quoted to prevent history expansion. See [[#Bash History Facilities|Bash History Facilities]], for more details concerning history expansion. <br />
<br />
There are three quoting mechanisms: the escape character, single quotes, and double quotes.</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155061
沙盒
2016-07-04T01:48:12Z
<p>Jinzd:</p>
<hr />
<div>3.1.2<br />
<br />
* [[#Escape Character|Escape Character]]: How to remove the special meaning from a single character. <br />
* [[#Single Quotes|Single Quotes]]: How to inhibit all interpretation of a sequence of characters. <br />
* [[#Double Quotes|Double Quotes]]: How to suppress most of the interpretation of a sequence of characters. <br />
* [[#ANSI-C Quoting|Double Quotes]]: How to expand ANSI-C sequences in quoted strings. <br />
* [[#Locale Translation|Locale Translation]]: How to translate strings into different languages. <br />
<br />
Quoting is used to remove the special meaning of certain characters or words to the shell. Quoting can be used to disable special treatment for special characters, to prevent reserved words from being recognized as such, and to prevent parameter expansion. <br />
<br />
Each of the shell metacharacters (see [[#Definitions|Definitions]]) has special meaning to the shell and must be quoted if it is to represent itself. When the command history expansion facilities are being used (see History Interaction), the history expansion character, usually ‘!’, must be quoted to prevent history expansion. See Bash History Facilities, for more details concerning history expansion. <br />
<br />
There are three quoting mechanisms: the escape character, single quotes, and double quotes.</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155060
沙盒
2016-07-04T01:47:27Z
<p>Jinzd:</p>
<hr />
<div>3.1.2<br />
<br />
* [[#Escape Character|Escape Character]]: How to remove the special meaning from a single character. <br />
* [[#Single Quotes|Single Quotes]]: How to inhibit all interpretation of a sequence of characters. <br />
* [[#Double Quotes|Double Quotes]]: How to suppress most of the interpretation of a sequence of characters. <br />
* [[#ANSI-C Quoting|Double Quotes]]: How to expand ANSI-C sequences in quoted strings. <br />
* [[#Locale Translation|Locale Translation]]: How to translate strings into different languages. <br />
<br />
Quoting is used to remove the special meaning of certain characters or words to the shell. Quoting can be used to disable special treatment for special characters, to prevent reserved words from being recognized as such, and to prevent parameter expansion. <br />
<br />
Each of the shell metacharacters (see Definitions) has special meaning to the shell and must be quoted if it is to represent itself. When the command history expansion facilities are being used (see History Interaction), the history expansion character, usually ‘!’, must be quoted to prevent history expansion. See Bash History Facilities, for more details concerning history expansion. <br />
<br />
There are three quoting mechanisms: the escape character, single quotes, and double quotes.</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=Bash_Reference_Manual/zh&diff=155059
Bash Reference Manual/zh
2016-07-04T01:42:21Z
<p>Jinzd:/* Shell Operation */</p>
<hr />
<div>本文引自[https://www.gnu.org/software/bash/manual/bash.html#Readline-Bare-Essentials https://www.gnu.org/software/bash/manual/bash.html].<br />
<br />
<span style="font-size:1.2em">'''Bash特性'''</span><br />
<br />
This text is a brief description of the features that are present in the Bash shell (version 4.3, 2 February 2014). The Bash home page is [http://www.gnu.org/software/bash/ http://www.gnu.org/software/bash/]. <br />
<br />
这部分文字是当前Bash shell(版本4.3, 2014年2月)特性的一个简要描述。Bash的主页是[http://www.gnu.org/software/bash/ http://www.gnu.org/software/bash/]. <br />
<br />
This is Edition 4.3, last updated 2 February 2014, of ''The GNU Bash Reference Manual'', for Bash, Version 4.3.<br />
<br />
此4.3版本更新于2014年2月,它的''GNU Bash参考手册''也是针对此4.3版本。<br />
<br />
Bash contains features that appear in other popular shells, and some features that only appear in Bash. Some of the shells that Bash has borrowed concepts from are the Bourne Shell (sh), the Korn Shell (ksh), and the C-shell (csh and its successor, tcsh). The following menu breaks the features up into categories, noting which features were inspired by other shells and which are specific to Bash. <br />
<br />
Bash所涵盖的一些特性也出现在其他流行的shells中。Bash的有些概念来自于其他的一些shells例如Bourne Shell(sh)、Korn Shell (ksh)以及C-shell(csh及其后继者,如tcsh)。以下菜单把这些特性进行了分类,并且不刻意哪些特性来自于其他的shells或者哪些特性来自于某个特定的Bash。 <br />
<br />
This manual is meant as a brief introduction to features found in Bash. The Bash manual page should be used as the definitive reference on shell behavior.<br />
<br />
本手册意图扼要介绍Bash中的特性。本Bash手册应作为shell的引用参考来使用。<br />
<br />
{| style="border: none" width="100%"<br />
|-<br />
| width="300px" | [[#Introduction|Introduction]]:<br />
| An introduction to the shell.<br />
<br />
shell介绍。<br />
|-<br />
| [[#Definitions|Definitions]]:<br />
| Some definitions used in the rest of this manual. <br />
<br />
手册中使用的一些定义。<br />
|-<br />
| [[#Basic Shell Features|Basic Shell Features]]:<br />
| The shell "building blocks". <br />
<br />
shell”构造块”<br />
|-<br />
| [[#Shell Builtin Commands|Shell Builtin Commands]]:<br />
| Commands that are a part of the shell. <br />
<br />
shell指令。<br />
|-<br />
| [[#Shell Variables|Shell Variables]]:<br />
| Variables used or set by Bash. <br />
<br />
Bash中使用的变量。<br />
|-<br />
| [[#Bash Features|Bash Features]]:<br />
| Features found only in Bash. <br />
<br />
Bash独有特性。<br />
|-<br />
| [[#Job Control|Job Control]]:<br />
| What job control is and how Bash allows you to use it. <br />
<br />
什么是作业控制已经Bash中如何允许使用作业控制。<br />
|-<br />
| [[#Command Line Editing|Command Line Editing]]:<br />
| Chapter describing the command line editing features. <br />
<br />
命令行编辑功能的章节描述。<br />
|-<br />
| [[#Using History Interactively|Using History Interactively]]:<br />
| Command History Expansion <br />
<br />
指令历史增强<br />
|-<br />
| [[#Installing Bash|Installing Bash]]:<br />
| How to build and install Bash on your system. <br />
<br />
如果在你的系统中建造和安装Bash。<br />
|-<br />
| [[#Reporting Bugs|Reporting Bugs]]:<br />
| How to report bugs in Bash. <br />
<br />
如何报告Bash中的Bug。<br />
|-<br />
| [[#Major Differences From The Bourne Shell|Major Differences From The Bourne Shell]]:<br />
| A terse list of the differences between Bash and historical versions of /bin/sh. <br />
<br />
一个简洁列(/bin/sh)表以介绍Bash历史版本的不同。<br />
|-<br />
| [[#GNU Free Documentation License|GNU Free Documentation License]]:<br />
| Copying and sharing this documentation. <br />
<br />
拷贝及共享此文档。<br />
|-<br />
| [[#Indexes|Indexes]]:<br />
| Various indexes for this manual. <br />
此手册的个中索引。<br />
|}<br />
<br />
=Introduction=<br />
<br />
* [[#What is Bash?|What is Bash?]]:Bash的一个简短描述。<br />
* [[#What is a shell?|What is a shell?]]:shells的一个简要介绍。<br />
<br />
==What is Bash?==<br />
<br />
Bash is the shell, or command language interpreter, for the GNU operating system. The name is an acronym for the 'Bourne-Again SHell', a pun on Stephen Bourne, the author of the direct ancestor of the current Unix shell sh, which appeared in the Seventh Edition Bell Labs Research version of Unix. <br />
<br />
Bash是shell,或者,对于GUN操作系统而言它也叫做指令语言解释器。这个名字源于"Bourne-Again SHell"的首字母缩写,Stephen Bourne的双关语,其直接始祖源自当前Unix shell sh,它始现于贝尔实验室Unix的第七个版本。<br />
<br />
Bash is largely compatible with sh and incorporates useful features from the Korn shell ksh and the C shell csh. It is intended to be a conformant implementation of the IEEE POSIX Shell and Tools portion of the IEEE POSIX specification (IEEE Standard 1003.1). It offers functional improvements over sh for both interactive and programming use. <br />
<br />
Bash在很大程度上与sh是兼容的,并且它也从Korn shell ksh以及C shell csh纳入了一些有用的功能。它的目的是成为IEEE POSIX Shell的一致实现,以及IEEE POSIX规范(IEEE Standard 1003.1)的工具部分。他提供了sh针对交互及编程方面的功能改善。<br />
<br />
While the GNU operating system provides other shells, including a version of csh, Bash is the default shell. Like other GNU software, Bash is quite portable. It currently runs on nearly every version of Unix and a few other operating systems - independently-supported ports exist for MS-DOS, OS/2, and Windows platforms.<br />
<br />
在GNU操作系统提供其他shells时,包括csh的一个版本,Bash是缺省的shell。如同其他GNU软件,Bash是非常便携的。它几乎允许于每一个版本的Unix以及其他一些操作系统 - 基于端口提供独立支持如MS-DOS,OS/2以及Windows平台。<br />
<br />
==What is a shell?==<br />
<br />
At its base, a shell is simply a macro processor that executes commands. The term macro processor means functionality where text and symbols are expanded to create larger expressions. <br />
<br />
于其基础,shell是一个简单的用于执行指令的宏处理器。宏处理器这个术语意味着这样的功能,那里一些文本和符号可被扩展成为更大的表达式。<br />
<br />
A Unix shell is both a command interpreter and a programming language. As a command interpreter, the shell provides the user interface to the rich set of GNU utilities. The programming language features allow these utilities to be combined. Files containing commands can be created, and become commands themselves. These new commands have the same status as system commands in directories such as /bin, allowing users or groups to establish custom environments to automate their common tasks.<br />
<br />
Unix shell既是一个指令解释器也是一种编程语言。作为指令解释器,shell针对丰富的GUN工具提供了用户接口。而它的编程语言特性又允许这些工具可被组合起来。包含指令的文件可以被创建,而它们又成为指令的一部分。这些新指令与在其他目录中的系统指令有着相同的地位例如/bin,并允许用户或组去建立客户环境或自动化他们的公共任务。 <br />
<br />
Shells may be used interactively or non-interactively. In interactive mode, they accept input typed from the keyboard. When executing non-interactively, shells execute commands read from a file. <br />
<br />
Shells的使用可以是交互或非交互的。在交互模式下,它们接受键盘输入。在非交互执行时, shells执行可从文件读取。 <br />
<br />
A shell allows execution of GNU commands, both synchronously and asynchronously. The shell waits for synchronous commands to complete before accepting more input; asynchronous commands continue to execute in parallel with the shell while it reads and executes additional commands. The redirection constructs permit fine-grained control of the input and output of those commands. Moreover, the shell allows control over the contents of commands’ environments.<br />
<br />
一个shell允许一同步和异步两种方式执行GNU指令。对于同步指令shell等待以完成更多的输入;对于异步指令shell执行读或其它指令是并发执行的。重定向构造允许一更细的粒度控制指令的输入和输出。而且,shell允许支配指令环境的内容。<br />
<br />
Shells also provide a small set of built-in commands (builtins) implementing functionality impossible or inconvenient to obtain via separate utilities. For example, cd, break, continue, and exec cannot be implemented outside of the shell because they directly manipulate the shell itself. The history, getopts, kill, or pwd builtins, among others, could be implemented in separate utilities, but they are more convenient to use as builtin commands. All of the shell builtins are described in subsequent sections. <br />
<br />
Shells也针对那些不可能或不方便获得的第三方工具提供了少量内置指令(嵌入部件)的功能实现。例如:cd,break,continue以及exec等无法再shell外部实现因为它们直接操纵shell自己。历史上getopts、kill或pwd等嵌入组件,及其他可以被分别实现为不同工具,但是作为内置的指令,它们更方便一些。所有这些shell嵌入部件后面的章节还将介绍。 <br />
<br />
While executing commands is essential, most of the power (and complexity) of shells is due to their embedded programming languages. Like any high-level language, the shell provides variables, flow control constructs, quoting, and functions. <br />
<br />
当必须执行指令时,shells的强大或复杂之处应归结于它们的嵌入式编程语言。如同其他任何高级语言,shell提供变量、流程控制结构、引用已经函数等功能。<br />
<br />
Shells offer features geared specifically for interactive use rather than to augment the programming language. These interactive features include job control, command line editing, command history and aliases. Each of these features is described in this manual.<br />
<br />
Shells提供的特性特别适合交互使用而非增加编程语言。这些交互特性包括作业控制、命令行编辑、命令历史记录和别名。所有这些特性都将在本手册中叙述。<br />
<br />
=Definitions=<br />
<br />
These definitions are used throughout the remainder of this manual.<br />
<br />
这些定义将在本手册的其余部分使用到。<br />
<br />
POSIX(可移植操作系统接口)<br />
: A family of open system standards based on Unix. Bash is primarily concerned with the Shell and Utilities portion of the POSIX 1003.1 standard.<br />
: 基于Unix家族的一个开放系统标准。Bash主要关心POSIX 1003.1标准的Shell以及工具部分。<br />
<br />
blank<br />
: A space or tab character.<br />
: 一个空格(space)或制表符(tab)。<br />
<br />
builtin(内建/嵌入)<br />
: A command that is implemented internally by the shell itself, rather than by an executable program somewhere in the file system. <br />
: 一个由shell自己内部实现的的命令,它不是一个存储于文件系统中的可执行程序。<br />
<br />
control operator(控制操作符)<br />
: A token that performs a control function. It is a newline or one of the following: ‘||’, ‘&&’, ‘&’, ‘;’, ‘;;’, ‘|’, ‘|&’, ‘(’, or ‘)’. <br />
: 一个记号并执行一个控制功能。它是一个换行符或以下东东:‘||’, ‘&&’, ‘&’, ‘;’, ‘;;’, ‘|’, ‘|&’, ‘(’, or ‘)’。<br />
<br />
exit status(退出状态)<br />
: The value returned by a command to its caller. The value is restricted to eight bits, so the maximum value is 255. <br />
: 由命令返回该值到它的调用者。此值限于一个8比特值,所以它的最大值是255。<br />
<br />
field(字段)<br />
: A unit of text that is the result of one of the shell expansions. After expansion, when executing a command, the resulting fields are used as the command name and arguments. <br />
: 一个文本单位是该shell扩展的结果。扩展之后,当执行一个命令时,这个结果字段被用作命令名或参数。<br />
<br />
filename<br />
: A string of characters used to identify a file.<br />
: 由字符组成的字符串用于识别一个文件。<br />
<br />
job(作业)<br />
: A set of processes comprising a pipeline, and any processes descended from it, that are all in the same process group. <br />
: 由一组操作组成的操作流水,它的任何后裔操作均属于同一个操作组。<br />
<br />
job control(作业控制)<br />
: A mechanism by which users can selectively stop (suspend) and restart (resume) execution of processes. <br />
: 一套机制,用户可以选择性地停止和重启操作的执行。<br />
<br />
metacharacter(元字符)<br />
: A character that, when unquoted, separates words. A metacharacter is a blank or one of the following characters: ‘|’, ‘&’, ‘;’, ‘(’, ‘)’, ‘<’, or ‘>’.<br />
: 当一个字符,当它未被引号引用,或者是单独出现。一个元字符可以是一个空格或以下单个出现的字符:‘|’,‘&’,‘;’,‘(’, ‘)’,‘<’ 或者 ‘>’。<br />
<br />
name(名称)<br />
: A word consisting solely of letters, numbers, and underscores, and beginning with a letter or underscore. Names are used as shell variable and function names. Also referred to as an identifier. <br />
: 一个仅由字母、数字及下划线组成的词,名字被用于shell的变量及函数名称。也被认为是一个标识符。<br />
<br />
operator(操作符)<br />
: A control operator or a redirection operator. See [[#Redirections|Redirections]], for a list of redirection operators. Operators contain at least one unquoted metacharacter.<br />
: 一个控制操作符或者一个重定向符。参看[[#Redirections|Redirections]](重定向操作列表)。 操作符包括至少一个未引用元字符。<br />
<br />
process group(进程组)<br />
: A collection of related processes each having the same process group ID. <br />
: 相关进程的集合,它们有相同的进程组ID。<br />
<br />
process group ID(进程组ID)<br />
: A unique identifier that represents a process group during its lifetime. <br />
: 一个进程组在它的生命期内的一个唯一的标识。 <br />
<br />
reserved word(保留字)<br />
: A word that has a special meaning to the shell. Most reserved words introduce shell flow control constructs, such as for and while. <br />
: 一个对shell有特定意义的词。多数保留字与shell流程控制结构相关,例如for以及while。 <br />
<br />
return status(返回状态)<br />
: A synonym for exit status.<br />
: 退出状态(exit status)的同义词。<br />
<br />
signal(信号)<br />
: A mechanism by which a process may be notified by the kernel of an event occurring in the system. <br />
: 一种机制,通过这种机制系统内核中发生的事件可以通知到一个进程。<br />
<br />
special builtin(特殊内置指令)<br />
: A shell builtin command that has been classified as special by the POSIX standard. <br />
: 也是shell的内置指令, 它被POSIX标准分类为特殊。<br />
<br />
token(令牌)<br />
: A sequence of characters considered a single unit by the shell. It is either a word or an operator. <br />
: 一个字符序列,它被shell认为是一个单位。它也是一个词或一个操作符。 <br />
<br />
word(词)<br />
: A sequence of characters treated as a unit by the shell. Words may not include unquoted metacharacters.<br />
: 一个字符序列,它被shell认为是一个单位。词无法包含或引用一个元字符。<br />
<br />
=Basic Shell Features=<br />
<br />
Bash is an acronym for ‘Bourne-Again SHell’. The Bourne shell is the traditional Unix shell originally written by Stephen Bourne. All of the Bourne shell builtin commands are available in Bash, The rules for evaluation and quoting are taken from the POSIX specification for the ‘standard’ Unix shell. <br />
<br />
Bash是‘Bourne-Again SHell’的首字母缩写。Bourne shell是传统Unix shell,它诞生之初是有Stephen Bourne写就的。所有Bourne shell的内置命令在Bash中都是可用的,其评估和引用规则取自POSIX规范的Unix shell ‘standard’。<br />
<br />
This chapter briefly summarizes the shell’s ‘building blocks’: commands, control structures, shell functions, shell ''parameters'', shell expansions, ''redirections'', which are a way to direct input and output from and to named files, and how the shell executes commands.<br />
<br />
本章简述了shell的‘building blocks’(构造块):命令、控制结构、shell函数、shell ''参数'', shell 扩展, ''redirections''(重定向),它是一种基于命名文件的直接输入和输出方法,以及shell怎样执行命令。<br />
<br />
{| style="border: none" width="100%"<br />
|-<br />
| width="200px" | [[#Shell Syntax|Shell Syntax]]:<br />
| What your input means to the shell. <br />
<br />
对shell来说你输入的是什么?<br />
|-<br />
| [[#Shell Commands|Shell Commands]]:<br />
| The types of commands you can use. <br />
<br />
你可以使用的命令。<br />
|-<br />
| [[#Shell Functions|Shell Functions]]:<br />
| Grouping commands by name. <br />
<br />
按名称分组的命令。<br />
|-<br />
| [[#Shell Parameters|Shell Parameters]]:<br />
| How the shell stores values. <br />
<br />
shell如何存储值。<br />
|-<br />
| [[#Shell Expansions|Shell Expansions]]:<br />
| How Bash expands parameters and the various expansions available. <br />
<br />
Bash如何扩展参数以及可用的扩展。<br />
|-<br />
| [[#Redirections|Redirections]]:<br />
| A way to control where input and output go. <br />
<br />
控制输入和输出地的方法。<br />
|-<br />
| [[#Executing Commands|Executing Commands]]:<br />
| What happens when you run a command. <br />
<br />
当你运行一个命令时发生了什么?<br />
|-<br />
| [[#Shell Scripts|Shell Scripts]]:<br />
| Executing files of shell commands.<br />
<br />
shell命令的执行文件。<br />
|}<br />
<br />
==Shell Syntax==<br />
<br />
{| style="border: none" width="100%"<br />
|-<br />
| width="120px" | [[#Shell Operation|Shell Operation]]:<br />
| The basic operation of the shell. <br />
<br />
shell的基本操作。<br />
|-<br />
| [[#Quoting|Quoting]]:<br />
| How to remove the special meaning from characters. <br />
<br />
如何删除字符的特殊含义。<br />
|-<br />
| [[#Comments|Comments]]:<br />
| How to specify comments. <br />
<br />
如何指定注释。<br />
|}<br />
<br />
When the shell reads input, it proceeds through a sequence of operations. If the input indicates the beginning of a comment, the shell ignores the comment symbol (‘#’), and the rest of that line. <br />
<br />
当shell读取输入时,它是按照一定顺序的操作来完成的。如果输入始于一个注释,则shell将忽略改行注释符号("#")及其后的字符。<br />
<br />
Otherwise, roughly speaking, the shell reads its input and divides the input into words and operators, employing the quoting rules to select which meanings to assign various words and characters. <br />
<br />
其他方面,大约的说,shell读取输入并且把输入内容分成字(words)和操作符(operators),通过引用规则来选各不同的种含义被指派到不同的字(words)和字符(characters)。 <br />
<br />
The shell then parses these tokens into commands and other constructs, removes the special meaning of certain words or characters, expands others, redirects input and output as needed, executes the specified command, waits for the command’s exit status, and makes that exit status available for further inspection or processing.<br />
<br />
然后shell解析这些令牌(tokens)为命令和其他结构,之后移除某些字或字符的特殊意义,其他扩展也包括:根据需要重定向输入和输出,执行指定的指令,等待命令的退出状态,并且让合格退出状态对于其他检查和处理是可用的。<br />
<br />
===Shell Operation===<br />
<br />
The following is a brief description of the shell’s operation when it reads and executes a command. Basically, the shell does the following: <br />
<br />
以下是当shell读取或执行一个命令时所进行操作的的一个简要描述,shell将做以下事情:<br />
<br />
# Reads its input from a file (see [[#Shell Scripts|Shell Scripts]]), from a string supplied as an argument to the -c invocation option (see [[#Invoking Bash|Invoking Bash]]), or from the user’s terminal. <br />
#: 从文件读取它的输入(参看[[#Shell Scripts|Shell Scripts]]),从字符串参数以-c调用选项方式(参看[[#Invoking Bash|Invoking Bash]]),或者从用户终端。<br />
# Breaks the input into words and operators, obeying the quoting rules described in [[#Quoting|Quoting]]. These tokens are separated by metacharacters. Alias expansion is performed by this step (see [[#Aliases|Aliases]]). <br />
#: 断句,把相关的输入分解成words和操作符,它遵循[[#Quoting|Quoting]]中的引用规则。这些tokens会被元字符分开。别名扩展将按照[[#Aliases|Aliases]]步骤被执行。<br />
# Parses the tokens into simple and compound commands (see [[#Shell Commands|Shell Commands]]). <br />
#: 这些tokens将被解析为一些简单和复合的命令(参看[[#Shell Commands|Shell Commands]])。<br />
# Performs the various shell expansions (see [[#Shell Expansions|Shell Expansions]]), breaking the expanded tokens into lists of filenames (see [[#Filename Expansion|Filename Expansion]]) and commands and arguments. <br />
#: 执行不同的shell扩展(参看[[#Shell Expansions|Shell Expansions]]),断句这些扩展的tokens为文件列表(参看[[#Filename Expansion|Filename Expansion]])命令及参数。<br />
# Performs any necessary redirections (see [[#Redirections|Redirections]]) and removes the redirection operators and their operands from the argument list. <br />
#: 执行任何必要的重定向(参看[[#Redirections|Redirections]])并且从参数列表中移除那些重定向操作符和它们的操作数。<br />
# Executes the command (see [[#Executing Commands|Executing Commands]]). <br />
#: 执行命令(参看[[#Executing Commands|Executing Commands]])。<br />
# Optionally waits for the command to complete and collects its exit status (see [[#Exit Status|Exit Status]]).<br />
#: 可选的,等待命令的完成并收集器退出状态(参看[[#Exit Status|Exit Status]])。<br />
<br />
===Quoting===<br />
<br />
====Escape Character====<br />
<br />
====Single Quotes====<br />
<br />
====Double Quotes====<br />
<br />
====ANSI-C Quoting====<br />
<br />
====Locale-Specific Translation====<br />
<br />
===Comments===</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E6%B2%99%E7%9B%92&diff=155058
沙盒
2016-07-04T01:41:38Z
<p>Jinzd:</p>
<hr />
<div>3.1.1 Shell Operation<br />
<br />
The following is a brief description of the shell’s operation when it reads and executes a command. Basically, the shell does the following: <br />
<br />
以下是当shell读取或执行一个命令时所进行操作的的一个简要描述,shell将做以下事情:<br />
<br />
# Reads its input from a file (see [[#Shell Scripts|Shell Scripts]]), from a string supplied as an argument to the -c invocation option (see [[#Invoking Bash|Invoking Bash]]), or from the user’s terminal. <br />
#: 从文件读取它的输入(参看[[#Shell Scripts|Shell Scripts]]),从字符串参数以-c调用选项方式(参看[[#Invoking Bash|Invoking Bash]]),或者从用户终端。<br />
# Breaks the input into words and operators, obeying the quoting rules described in [[#Quoting|Quoting]]. These tokens are separated by metacharacters. Alias expansion is performed by this step (see [[#Aliases|Aliases]]). <br />
#: 断句,把相关的输入分解成words和操作符,它遵循[[#Quoting|Quoting]]中的引用规则。这些tokens会被元字符分开。别名扩展将按照[[#Aliases|Aliases]]步骤被执行。<br />
# Parses the tokens into simple and compound commands (see [[#Shell Commands|Shell Commands]]). <br />
#: 这些tokens将被解析为一些简单和复合的命令(参看[[#Shell Commands|Shell Commands]])。<br />
# Performs the various shell expansions (see [[#Shell Expansions|Shell Expansions]]), breaking the expanded tokens into lists of filenames (see [[#Filename Expansion|Filename Expansion]]) and commands and arguments. <br />
#: 执行不同的shell扩展(参看[[#Shell Expansions|Shell Expansions]]),断句这些扩展的tokens为文件列表(参看[[#Filename Expansion|Filename Expansion]])命令及参数。<br />
# Performs any necessary redirections (see [[#Redirections|Redirections]]) and removes the redirection operators and their operands from the argument list. <br />
#: 执行任何必要的重定向(参看[[#Redirections|Redirections]])并且从参数列表中移除那些重定向操作符和它们的操作数。<br />
# Executes the command (see [[#Executing Commands|Executing Commands]]). <br />
#: 执行命令(参看[[#Executing Commands|Executing Commands]])。<br />
# Optionally waits for the command to complete and collects its exit status (see [[#Exit Status|Exit Status]]).<br />
#: 可选的,等待命令的完成并收集器退出状态(参看[[#Exit Status|Exit Status]])。</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:Jinzd&diff=155056
用户讨论:Jinzd
2016-07-02T16:04:47Z
<p>Jinzd:</p>
<hr />
<div>[[Kubuntu 技巧]]<br />
<br />
[[Shell编程基础]]<br />
<br />
[[man sudo_root]]<br />
<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91/<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export classPath=/usr/local/jdk1.8.0_91/<br />
<br />
[http://askubuntu.com/questions/26632/how-to-install-eclipse eclipse] <br />
<br />
[http://forum.ubuntu.org.cn/index.php forum]<br />
<br />
=Ubuntu=<br />
<br />
<pre><br />
----------------------Ubuntu update<br />
sudo apt-get update<br />
<br />
sudo apt-get dist-upgrade / sudo apt-get upgrade<br />
----------------------Postgresql installation<br />
sudo apt-get install postgresql-9.5<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
sudo -u postgres psql postgres<br />
<br />
\password postgres<br />
----------------------Postgresql configuration<br />
cd /etc/postgresql/9.5/main<br />
<br />
sudo nano postgresql.conf<br />
<br />
# add following line to the file<br />
<br />
listen_addresses = '*'<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
<br />
sudo nano pg_hba.conf<br />
<br />
# add following line to the file<br />
<br />
hostnossl all all 192.168.128.45 255.255.255.0 md5<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
----------------------Apache2 Web Server<br />
sudo apt-get install apache2<br />
----------------------PHP for apache2<br />
sudo apt install php libapache2-mod-php<br />
<br />
sudo apt install php-cli<br />
<br />
sudo apt install php-cgi<br />
<br />
sudo apt install php-pgsql<br />
----------------------Netbeans<br />
sudo sh ./netbeansXXXXX.sh<br />
----------------------Java env for all users<br />
#move jdk to /usr/lib/jvm<br />
<br />
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
<br />
<br />
<br />
<br />
<br />
sudo nano /etc/profile<br />
<br />
# add following lines to the end of the file<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
----------------------OpenSSH<br />
sudo apt-get install openssh-server<br />
<br />
ssh [user]@[server ip]<br />
<br />
# windows client is putty, can be downloaded from internet.<br />
----------------------jdk<br />
# go to Downloads directory<br />
<br />
tar -zxvf jdk-8u92-linux-x64.tar.gz<br />
<br />
# move jdk to /usr/local<br />
<br />
sudo mv ./jdk1.8.0_92 /usr/local<br />
<br />
# set java env for ubuntu<br />
----------------------PDT Installation<br />
# download eclipse from https://eclipse.org/pdt/#download<br />
<br />
$ cd {directory where your browser downloaded the package to}<br />
<br />
$ tar -zxvf eclipse-SDK-3.4.1-linux-gtk.tar.gz && mv eclipse ~/opt<br />
<br />
</pre><br />
<br />
=Apache2=<br />
<br />
<pre><br />
# create a new site juniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
# edit juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/juniverse<br />
<br />
# save and exit it<br />
<br />
sudo mkdir /var/www/juniverse<br />
<br />
# restart apache2<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=wiki=<br />
<br />
https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu#Ubuntu_Up-To-Date<br />
<br />
[https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki Install Wiki]<br />
<br />
<br />
[https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu#Ubuntu_Up-To-Date wiki install]<br />
<br />
http://www.54chen.com/php-tech/mediawiki-pgsql.html<br />
<br />
https://help.ubuntu.com/community/MediaWiki<br />
<br />
=ifconfig=<br />
<br />
[[ifconfig]]<br />
<br />
Usage:<br />
<br />
: ifconfig [-a] [-v] [-s] <interface> [[&lt;AF&gt; ] &lt;address&gt;]<br />
: [add &lt;address&gt;[/<prefixlen&gt;]]<br />
: [del &lt;address&gt;[/<prefixlen&gt;]]<br />
: [[-]broadcast [&lt;address&gt;]] [[-]pointopoint [&lt;address&gt;]]<br />
: [netmask &lt;address&gt;] [dstaddr &lt;address&gt;] [tunnel &lt;address&gt;]<br />
<br />
=Java=<br />
<br />
Add deb resource path:<br />
<br />
<pre style="margin: 5px"><br />
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"<br />
<br />
sudo apt-get update<br />
<br />
sudo apt install sun-java8-jdk<br />
<br />
# remove<br />
<br />
sudo add-apt-repository -r "deb http://archive.canonical.com/ubuntu maverick partner"<br />
</pre><br />
<br />
=PostgreSQL=<br />
<br />
For newest Ubuntu 16.04 postgresql is ready to install:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo apt install postgresql-9.5<br />
</pre><br />
<br />
Get postgresql ready to use, set password is the first step:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres psql template1<br />
<br />
template1=# \password postgres;<br />
<br />
or<br />
<br />
jinzd@ubuntu:~S sudo -u postgres psql postgres<br />
<br />
postgres=# \password postgres;<br />
</pre><br />
<br />
Create database:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createdb JUniverse<br />
<br />
sudo -u postgres psql --host=localhost --username=postgres --password<br />
</pre><br />
<br />
Create user:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createuser <br />
</pre><br />
<br />
== 关于[[Bash Reference Manual/zh]]的翻译 ==<br />
<br />
这种texinfo文档还是喂进po4a然后直接翻译po为妙。——[[用户:Arthur2e5|Arthur2e5]]([[用户讨论:Arthur2e5|讨论]]) 2016年7月2日 (六) 18:02 (CST)</div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:Jinzd&diff=154925
用户讨论:Jinzd
2016-07-01T16:05:17Z
<p>Jinzd:/* wiki */</p>
<hr />
<div>[[Kubuntu 技巧]]<br />
<br />
[[Shell编程基础]]<br />
<br />
[[man sudo_root]]<br />
<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91/<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export classPath=/usr/local/jdk1.8.0_91/<br />
<br />
[http://askubuntu.com/questions/26632/how-to-install-eclipse eclipse] <br />
<br />
[http://forum.ubuntu.org.cn/index.php forum]<br />
<br />
=Ubuntu=<br />
<br />
<pre><br />
----------------------Ubuntu update<br />
sudo apt-get update<br />
<br />
sudo apt-get dist-upgrade / sudo apt-get upgrade<br />
----------------------Postgresql installation<br />
sudo apt-get install postgresql-9.5<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
sudo -u postgres psql postgres<br />
<br />
\password postgres<br />
----------------------Postgresql configuration<br />
cd /etc/postgresql/9.5/main<br />
<br />
sudo nano postgresql.conf<br />
<br />
# add following line to the file<br />
<br />
listen_addresses = '*'<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
<br />
sudo nano pg_hba.conf<br />
<br />
# add following line to the file<br />
<br />
hostnossl all all 192.168.128.45 255.255.255.0 md5<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
----------------------Apache2 Web Server<br />
sudo apt-get install apache2<br />
----------------------PHP for apache2<br />
sudo apt install php libapache2-mod-php<br />
<br />
sudo apt install php-cli<br />
<br />
sudo apt install php-cgi<br />
<br />
sudo apt install php-pgsql<br />
----------------------Netbeans<br />
sudo sh ./netbeansXXXXX.sh<br />
----------------------Java env for all users<br />
#move jdk to /usr/lib/jvm<br />
<br />
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
<br />
<br />
<br />
<br />
<br />
sudo nano /etc/profile<br />
<br />
# add following lines to the end of the file<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
----------------------OpenSSH<br />
sudo apt-get install openssh-server<br />
<br />
ssh [user]@[server ip]<br />
<br />
# windows client is putty, can be downloaded from internet.<br />
----------------------jdk<br />
# go to Downloads directory<br />
<br />
tar -zxvf jdk-8u92-linux-x64.tar.gz<br />
<br />
# move jdk to /usr/local<br />
<br />
sudo mv ./jdk1.8.0_92 /usr/local<br />
<br />
# set java env for ubuntu<br />
----------------------PDT Installation<br />
# download eclipse from https://eclipse.org/pdt/#download<br />
<br />
$ cd {directory where your browser downloaded the package to}<br />
<br />
$ tar -zxvf eclipse-SDK-3.4.1-linux-gtk.tar.gz && mv eclipse ~/opt<br />
<br />
</pre><br />
<br />
=Apache2=<br />
<br />
<pre><br />
# create a new site juniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
# edit juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/juniverse<br />
<br />
# save and exit it<br />
<br />
sudo mkdir /var/www/juniverse<br />
<br />
# restart apache2<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=wiki=<br />
<br />
[https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki Install Wiki]<br />
<br />
<br />
[https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu#Ubuntu_Up-To-Date wiki install]<br />
<br />
http://www.54chen.com/php-tech/mediawiki-pgsql.html<br />
<br />
https://help.ubuntu.com/community/MediaWiki<br />
<br />
=ifconfig=<br />
<br />
[[ifconfig]]<br />
<br />
Usage:<br />
<br />
: ifconfig [-a] [-v] [-s] <interface> [[&lt;AF&gt; ] &lt;address&gt;]<br />
: [add &lt;address&gt;[/<prefixlen&gt;]]<br />
: [del &lt;address&gt;[/<prefixlen&gt;]]<br />
: [[-]broadcast [&lt;address&gt;]] [[-]pointopoint [&lt;address&gt;]]<br />
: [netmask &lt;address&gt;] [dstaddr &lt;address&gt;] [tunnel &lt;address&gt;]<br />
<br />
=Java=<br />
<br />
Add deb resource path:<br />
<br />
<pre style="margin: 5px"><br />
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"<br />
<br />
sudo apt-get update<br />
<br />
sudo apt install sun-java8-jdk<br />
<br />
# remove<br />
<br />
sudo add-apt-repository -r "deb http://archive.canonical.com/ubuntu maverick partner"<br />
</pre><br />
<br />
=PostgreSQL=<br />
<br />
For newest Ubuntu 16.04 postgresql is ready to install:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo apt install postgresql-9.5<br />
</pre><br />
<br />
Get postgresql ready to use, set password is the first step:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres psql template1<br />
<br />
template1=# \password postgres;<br />
<br />
or<br />
<br />
jinzd@ubuntu:~S sudo -u postgres psql postgres<br />
<br />
postgres=# \password postgres;<br />
</pre><br />
<br />
Create database:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createdb JUniverse<br />
<br />
sudo -u postgres psql --host=localhost --username=postgres --password<br />
</pre><br />
<br />
Create user:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createuser <br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:Jinzd&diff=154895
用户讨论:Jinzd
2016-07-01T09:08:33Z
<p>Jinzd:/* wiki */</p>
<hr />
<div>[[Kubuntu 技巧]]<br />
<br />
[[Shell编程基础]]<br />
<br />
[[man sudo_root]]<br />
<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91/<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export classPath=/usr/local/jdk1.8.0_91/<br />
<br />
[http://askubuntu.com/questions/26632/how-to-install-eclipse eclipse] <br />
<br />
[http://forum.ubuntu.org.cn/index.php forum]<br />
<br />
=Ubuntu=<br />
<br />
<pre><br />
----------------------Ubuntu update<br />
sudo apt-get update<br />
<br />
sudo apt-get dist-upgrade / sudo apt-get upgrade<br />
----------------------Postgresql installation<br />
sudo apt-get install postgresql-9.5<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
sudo -u postgres psql postgres<br />
<br />
\password postgres<br />
----------------------Postgresql configuration<br />
cd /etc/postgresql/9.5/main<br />
<br />
sudo nano postgresql.conf<br />
<br />
# add following line to the file<br />
<br />
listen_addresses = '*'<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
<br />
sudo nano pg_hba.conf<br />
<br />
# add following line to the file<br />
<br />
hostnossl all all 192.168.128.45 255.255.255.0 md5<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
----------------------Apache2 Web Server<br />
sudo apt-get install apache2<br />
----------------------PHP for apache2<br />
sudo apt install php libapache2-mod-php<br />
<br />
sudo apt install php-cli<br />
<br />
sudo apt install php-cgi<br />
<br />
sudo apt install php-pgsql<br />
----------------------Netbeans<br />
sudo sh ./netbeansXXXXX.sh<br />
----------------------Java env for all users<br />
#move jdk to /usr/lib/jvm<br />
<br />
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
<br />
<br />
<br />
<br />
<br />
sudo nano /etc/profile<br />
<br />
# add following lines to the end of the file<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
----------------------OpenSSH<br />
sudo apt-get install openssh-server<br />
<br />
ssh [user]@[server ip]<br />
<br />
# windows client is putty, can be downloaded from internet.<br />
----------------------jdk<br />
# go to Downloads directory<br />
<br />
tar -zxvf jdk-8u92-linux-x64.tar.gz<br />
<br />
# move jdk to /usr/local<br />
<br />
sudo mv ./jdk1.8.0_92 /usr/local<br />
<br />
# set java env for ubuntu<br />
----------------------PDT Installation<br />
# download eclipse from https://eclipse.org/pdt/#download<br />
<br />
$ cd {directory where your browser downloaded the package to}<br />
<br />
$ tar -zxvf eclipse-SDK-3.4.1-linux-gtk.tar.gz && mv eclipse ~/opt<br />
<br />
</pre><br />
<br />
=Apache2=<br />
<br />
<pre><br />
# create a new site juniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
# edit juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/juniverse<br />
<br />
# save and exit it<br />
<br />
sudo mkdir /var/www/juniverse<br />
<br />
# restart apache2<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=wiki=<br />
<br />
[https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu#Ubuntu_Up-To-Date wiki install]<br />
<br />
http://www.54chen.com/php-tech/mediawiki-pgsql.html<br />
<br />
https://help.ubuntu.com/community/MediaWiki<br />
<br />
=ifconfig=<br />
<br />
[[ifconfig]]<br />
<br />
Usage:<br />
<br />
: ifconfig [-a] [-v] [-s] <interface> [[&lt;AF&gt; ] &lt;address&gt;]<br />
: [add &lt;address&gt;[/<prefixlen&gt;]]<br />
: [del &lt;address&gt;[/<prefixlen&gt;]]<br />
: [[-]broadcast [&lt;address&gt;]] [[-]pointopoint [&lt;address&gt;]]<br />
: [netmask &lt;address&gt;] [dstaddr &lt;address&gt;] [tunnel &lt;address&gt;]<br />
<br />
=Java=<br />
<br />
Add deb resource path:<br />
<br />
<pre style="margin: 5px"><br />
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"<br />
<br />
sudo apt-get update<br />
<br />
sudo apt install sun-java8-jdk<br />
<br />
# remove<br />
<br />
sudo add-apt-repository -r "deb http://archive.canonical.com/ubuntu maverick partner"<br />
</pre><br />
<br />
=PostgreSQL=<br />
<br />
For newest Ubuntu 16.04 postgresql is ready to install:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo apt install postgresql-9.5<br />
</pre><br />
<br />
Get postgresql ready to use, set password is the first step:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres psql template1<br />
<br />
template1=# \password postgres;<br />
<br />
or<br />
<br />
jinzd@ubuntu:~S sudo -u postgres psql postgres<br />
<br />
postgres=# \password postgres;<br />
</pre><br />
<br />
Create database:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createdb JUniverse<br />
<br />
sudo -u postgres psql --host=localhost --username=postgres --password<br />
</pre><br />
<br />
Create user:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createuser <br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:Jinzd&diff=154894
用户讨论:Jinzd
2016-07-01T08:50:52Z
<p>Jinzd:/* wiki */</p>
<hr />
<div>[[Kubuntu 技巧]]<br />
<br />
[[Shell编程基础]]<br />
<br />
[[man sudo_root]]<br />
<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91/<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export classPath=/usr/local/jdk1.8.0_91/<br />
<br />
[http://askubuntu.com/questions/26632/how-to-install-eclipse eclipse] <br />
<br />
[http://forum.ubuntu.org.cn/index.php forum]<br />
<br />
=Ubuntu=<br />
<br />
<pre><br />
----------------------Ubuntu update<br />
sudo apt-get update<br />
<br />
sudo apt-get dist-upgrade / sudo apt-get upgrade<br />
----------------------Postgresql installation<br />
sudo apt-get install postgresql-9.5<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
sudo -u postgres psql postgres<br />
<br />
\password postgres<br />
----------------------Postgresql configuration<br />
cd /etc/postgresql/9.5/main<br />
<br />
sudo nano postgresql.conf<br />
<br />
# add following line to the file<br />
<br />
listen_addresses = '*'<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
<br />
sudo nano pg_hba.conf<br />
<br />
# add following line to the file<br />
<br />
hostnossl all all 192.168.128.45 255.255.255.0 md5<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
----------------------Apache2 Web Server<br />
sudo apt-get install apache2<br />
----------------------PHP for apache2<br />
sudo apt install php libapache2-mod-php<br />
<br />
sudo apt install php-cli<br />
<br />
sudo apt install php-cgi<br />
<br />
sudo apt install php-pgsql<br />
----------------------Netbeans<br />
sudo sh ./netbeansXXXXX.sh<br />
----------------------Java env for all users<br />
#move jdk to /usr/lib/jvm<br />
<br />
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
<br />
<br />
<br />
<br />
<br />
sudo nano /etc/profile<br />
<br />
# add following lines to the end of the file<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
----------------------OpenSSH<br />
sudo apt-get install openssh-server<br />
<br />
ssh [user]@[server ip]<br />
<br />
# windows client is putty, can be downloaded from internet.<br />
----------------------jdk<br />
# go to Downloads directory<br />
<br />
tar -zxvf jdk-8u92-linux-x64.tar.gz<br />
<br />
# move jdk to /usr/local<br />
<br />
sudo mv ./jdk1.8.0_92 /usr/local<br />
<br />
# set java env for ubuntu<br />
----------------------PDT Installation<br />
# download eclipse from https://eclipse.org/pdt/#download<br />
<br />
$ cd {directory where your browser downloaded the package to}<br />
<br />
$ tar -zxvf eclipse-SDK-3.4.1-linux-gtk.tar.gz && mv eclipse ~/opt<br />
<br />
</pre><br />
<br />
=Apache2=<br />
<br />
<pre><br />
# create a new site juniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
# edit juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/juniverse<br />
<br />
# save and exit it<br />
<br />
sudo mkdir /var/www/juniverse<br />
<br />
# restart apache2<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=wiki=<br />
<br />
[https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu#Ubuntu_Up-To-Date wiki install]<br />
<br />
http://www.54chen.com/php-tech/mediawiki-pgsql.html<br />
<br />
=ifconfig=<br />
<br />
[[ifconfig]]<br />
<br />
Usage:<br />
<br />
: ifconfig [-a] [-v] [-s] <interface> [[&lt;AF&gt; ] &lt;address&gt;]<br />
: [add &lt;address&gt;[/<prefixlen&gt;]]<br />
: [del &lt;address&gt;[/<prefixlen&gt;]]<br />
: [[-]broadcast [&lt;address&gt;]] [[-]pointopoint [&lt;address&gt;]]<br />
: [netmask &lt;address&gt;] [dstaddr &lt;address&gt;] [tunnel &lt;address&gt;]<br />
<br />
=Java=<br />
<br />
Add deb resource path:<br />
<br />
<pre style="margin: 5px"><br />
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"<br />
<br />
sudo apt-get update<br />
<br />
sudo apt install sun-java8-jdk<br />
<br />
# remove<br />
<br />
sudo add-apt-repository -r "deb http://archive.canonical.com/ubuntu maverick partner"<br />
</pre><br />
<br />
=PostgreSQL=<br />
<br />
For newest Ubuntu 16.04 postgresql is ready to install:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo apt install postgresql-9.5<br />
</pre><br />
<br />
Get postgresql ready to use, set password is the first step:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres psql template1<br />
<br />
template1=# \password postgres;<br />
<br />
or<br />
<br />
jinzd@ubuntu:~S sudo -u postgres psql postgres<br />
<br />
postgres=# \password postgres;<br />
</pre><br />
<br />
Create database:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createdb JUniverse<br />
<br />
sudo -u postgres psql --host=localhost --username=postgres --password<br />
</pre><br />
<br />
Create user:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createuser <br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:Jinzd&diff=154893
用户讨论:Jinzd
2016-07-01T08:24:06Z
<p>Jinzd:/* ifconfig */</p>
<hr />
<div>[[Kubuntu 技巧]]<br />
<br />
[[Shell编程基础]]<br />
<br />
[[man sudo_root]]<br />
<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91/<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export classPath=/usr/local/jdk1.8.0_91/<br />
<br />
[http://askubuntu.com/questions/26632/how-to-install-eclipse eclipse] <br />
<br />
[http://forum.ubuntu.org.cn/index.php forum]<br />
<br />
=Ubuntu=<br />
<br />
<pre><br />
----------------------Ubuntu update<br />
sudo apt-get update<br />
<br />
sudo apt-get dist-upgrade / sudo apt-get upgrade<br />
----------------------Postgresql installation<br />
sudo apt-get install postgresql-9.5<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
sudo -u postgres psql postgres<br />
<br />
\password postgres<br />
----------------------Postgresql configuration<br />
cd /etc/postgresql/9.5/main<br />
<br />
sudo nano postgresql.conf<br />
<br />
# add following line to the file<br />
<br />
listen_addresses = '*'<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
<br />
sudo nano pg_hba.conf<br />
<br />
# add following line to the file<br />
<br />
hostnossl all all 192.168.128.45 255.255.255.0 md5<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
----------------------Apache2 Web Server<br />
sudo apt-get install apache2<br />
----------------------PHP for apache2<br />
sudo apt install php libapache2-mod-php<br />
<br />
sudo apt install php-cli<br />
<br />
sudo apt install php-cgi<br />
<br />
sudo apt install php-pgsql<br />
----------------------Netbeans<br />
sudo sh ./netbeansXXXXX.sh<br />
----------------------Java env for all users<br />
#move jdk to /usr/lib/jvm<br />
<br />
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
<br />
<br />
<br />
<br />
<br />
sudo nano /etc/profile<br />
<br />
# add following lines to the end of the file<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
----------------------OpenSSH<br />
sudo apt-get install openssh-server<br />
<br />
ssh [user]@[server ip]<br />
<br />
# windows client is putty, can be downloaded from internet.<br />
----------------------jdk<br />
# go to Downloads directory<br />
<br />
tar -zxvf jdk-8u92-linux-x64.tar.gz<br />
<br />
# move jdk to /usr/local<br />
<br />
sudo mv ./jdk1.8.0_92 /usr/local<br />
<br />
# set java env for ubuntu<br />
----------------------PDT Installation<br />
# download eclipse from https://eclipse.org/pdt/#download<br />
<br />
$ cd {directory where your browser downloaded the package to}<br />
<br />
$ tar -zxvf eclipse-SDK-3.4.1-linux-gtk.tar.gz && mv eclipse ~/opt<br />
<br />
</pre><br />
<br />
=Apache2=<br />
<br />
<pre><br />
# create a new site juniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
# edit juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/juniverse<br />
<br />
# save and exit it<br />
<br />
sudo mkdir /var/www/juniverse<br />
<br />
# restart apache2<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=wiki=<br />
<br />
[https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu#Ubuntu_Up-To-Date wiki install]<br />
<br />
=ifconfig=<br />
<br />
[[ifconfig]]<br />
<br />
Usage:<br />
<br />
: ifconfig [-a] [-v] [-s] <interface> [[&lt;AF&gt; ] &lt;address&gt;]<br />
: [add &lt;address&gt;[/<prefixlen&gt;]]<br />
: [del &lt;address&gt;[/<prefixlen&gt;]]<br />
: [[-]broadcast [&lt;address&gt;]] [[-]pointopoint [&lt;address&gt;]]<br />
: [netmask &lt;address&gt;] [dstaddr &lt;address&gt;] [tunnel &lt;address&gt;]<br />
<br />
=Java=<br />
<br />
Add deb resource path:<br />
<br />
<pre style="margin: 5px"><br />
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"<br />
<br />
sudo apt-get update<br />
<br />
sudo apt install sun-java8-jdk<br />
<br />
# remove<br />
<br />
sudo add-apt-repository -r "deb http://archive.canonical.com/ubuntu maverick partner"<br />
</pre><br />
<br />
=PostgreSQL=<br />
<br />
For newest Ubuntu 16.04 postgresql is ready to install:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo apt install postgresql-9.5<br />
</pre><br />
<br />
Get postgresql ready to use, set password is the first step:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres psql template1<br />
<br />
template1=# \password postgres;<br />
<br />
or<br />
<br />
jinzd@ubuntu:~S sudo -u postgres psql postgres<br />
<br />
postgres=# \password postgres;<br />
</pre><br />
<br />
Create database:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createdb JUniverse<br />
<br />
sudo -u postgres psql --host=localhost --username=postgres --password<br />
</pre><br />
<br />
Create user:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createuser <br />
</pre></div>
Jinzd
https://wiki.ubuntu.org.cn/index.php?title=%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:Jinzd&diff=154892
用户讨论:Jinzd
2016-07-01T08:03:19Z
<p>Jinzd:</p>
<hr />
<div>[[Kubuntu 技巧]]<br />
<br />
[[Shell编程基础]]<br />
<br />
[[man sudo_root]]<br />
<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91/<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export classPath=/usr/local/jdk1.8.0_91/<br />
<br />
[http://askubuntu.com/questions/26632/how-to-install-eclipse eclipse] <br />
<br />
[http://forum.ubuntu.org.cn/index.php forum]<br />
<br />
=Ubuntu=<br />
<br />
<pre><br />
----------------------Ubuntu update<br />
sudo apt-get update<br />
<br />
sudo apt-get dist-upgrade / sudo apt-get upgrade<br />
----------------------Postgresql installation<br />
sudo apt-get install postgresql-9.5<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
sudo -u postgres psql postgres<br />
<br />
\password postgres<br />
----------------------Postgresql configuration<br />
cd /etc/postgresql/9.5/main<br />
<br />
sudo nano postgresql.conf<br />
<br />
# add following line to the file<br />
<br />
listen_addresses = '*'<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
<br />
sudo nano pg_hba.conf<br />
<br />
# add following line to the file<br />
<br />
hostnossl all all 192.168.128.45 255.255.255.0 md5<br />
<br />
# ctrl-o and ctrl-x to finish the operation.<br />
----------------------Apache2 Web Server<br />
sudo apt-get install apache2<br />
----------------------PHP for apache2<br />
sudo apt install php libapache2-mod-php<br />
<br />
sudo apt install php-cli<br />
<br />
sudo apt install php-cgi<br />
<br />
sudo apt install php-pgsql<br />
----------------------Netbeans<br />
sudo sh ./netbeansXXXXX.sh<br />
----------------------Java env for all users<br />
#move jdk to /usr/lib/jvm<br />
<br />
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
<br />
<br />
<br />
<br />
<br />
sudo nano /etc/profile<br />
<br />
# add following lines to the end of the file<br />
<br />
export JAVA_HOME=/usr/local/jdk1.8.0_91<br />
<br />
export PATH=$JAVA_HOME/bin:$PATH<br />
<br />
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar<br />
----------------------OpenSSH<br />
sudo apt-get install openssh-server<br />
<br />
ssh [user]@[server ip]<br />
<br />
# windows client is putty, can be downloaded from internet.<br />
----------------------jdk<br />
# go to Downloads directory<br />
<br />
tar -zxvf jdk-8u92-linux-x64.tar.gz<br />
<br />
# move jdk to /usr/local<br />
<br />
sudo mv ./jdk1.8.0_92 /usr/local<br />
<br />
# set java env for ubuntu<br />
----------------------PDT Installation<br />
# download eclipse from https://eclipse.org/pdt/#download<br />
<br />
$ cd {directory where your browser downloaded the package to}<br />
<br />
$ tar -zxvf eclipse-SDK-3.4.1-linux-gtk.tar.gz && mv eclipse ~/opt<br />
<br />
</pre><br />
<br />
=Apache2=<br />
<br />
<pre><br />
# create a new site juniverse<br />
<br />
cd /etc/apache2/sites-available<br />
<br />
sudo cp 000-default.conf juniverse.conf<br />
<br />
# edit juniverse.conf<br />
<br />
sudo nano juniverse.conf<br />
<br />
<VirtualHost *:81><br />
<br />
DocumentRoot /var/www/juniverse<br />
<br />
# save and exit it<br />
<br />
sudo mkdir /var/www/juniverse<br />
<br />
# restart apache2<br />
<br />
sudo a2ensite juniverse.conf<br />
<br />
sudo service apache2 restart<br />
</pre><br />
<br />
=ifconfig=<br />
<br />
[[ifconfig]]<br />
<br />
Usage:<br />
<br />
: ifconfig [-a] [-v] [-s] <interface> [[&lt;AF&gt; ] &lt;address&gt;]<br />
: [add &lt;address&gt;[/<prefixlen&gt;]]<br />
: [del &lt;address&gt;[/<prefixlen&gt;]]<br />
: [[-]broadcast [&lt;address&gt;]] [[-]pointopoint [&lt;address&gt;]]<br />
: [netmask &lt;address&gt;] [dstaddr &lt;address&gt;] [tunnel &lt;address&gt;]<br />
<br />
=Java=<br />
<br />
Add deb resource path:<br />
<br />
<pre style="margin: 5px"><br />
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"<br />
<br />
sudo apt-get update<br />
<br />
sudo apt install sun-java8-jdk<br />
<br />
# remove<br />
<br />
sudo add-apt-repository -r "deb http://archive.canonical.com/ubuntu maverick partner"<br />
</pre><br />
<br />
=PostgreSQL=<br />
<br />
For newest Ubuntu 16.04 postgresql is ready to install:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo apt install postgresql-9.5<br />
</pre><br />
<br />
Get postgresql ready to use, set password is the first step:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres psql template1<br />
<br />
template1=# \password postgres;<br />
<br />
or<br />
<br />
jinzd@ubuntu:~S sudo -u postgres psql postgres<br />
<br />
postgres=# \password postgres;<br />
</pre><br />
<br />
Create database:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createdb JUniverse<br />
<br />
sudo -u postgres psql --host=localhost --username=postgres --password<br />
</pre><br />
<br />
Create user:<br />
<br />
<pre style="margin: 5px"><br />
jinzd@ubuntu:~S sudo -u postgres createuser <br />
</pre></div>
Jinzd