Ubuntu/Step by step:修订间差异
来自Ubuntu中文
跳到导航跳到搜索
(未显示同一用户的8个中间版本) | |||
第64行: | 第64行: | ||
</pre> | </pre> | ||
= | =Mediawiki= | ||
[https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion]. | |||
<pre> | |||
# Download from below url: | |||
cd ~/Downloads | |||
wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz | |||
# After download finished: | |||
tar -xvzf ./mediawiki-*.tar.gz | |||
sudo mv mediawiki-*/* /var/lib/mediawiki | |||
# Config PHP | |||
cd /etc/php/7.0/apache2 | |||
sudo nano php.ini | |||
# update php.ini following things | |||
upload_max_filesize = 20M | |||
memory_limit = 128M | |||
# save php.ini and exit | |||
# restart apache2 | |||
sudo service apache2 restart | |||
# mediawiki configuration | |||
cd /var/www/html | |||
sudo ln -s /var/lib/mediawiki mediawiki | |||
# give the rights for upload operation | |||
cd /var/lib/mediawiki | |||
sudo chmod -R 777 images | |||
// Configuration, access http://localhost/mediawiki and download | |||
// LocalSettings.php and copy it to /var/lib/mediawiki | |||
# for version 1.27.1 please execute below: | |||
sudo apt-get install php-mbstring | |||
</pre> | |||
=Sun Java= | |||
<pre> | |||
# Download JDK from Oracle and unzip it as below: | |||
tar -zxvf jdk-8u92-linux-x64.tar.gz | |||
sudo mv ./jdk1.8.0_92 /usr/lib | |||
# set java env | |||
sudo nano /etc/profile | |||
# add below lines to the file | |||
export JAVA_HOME=/usr/lib/jdk1.8.0_92 | |||
export PATH=$JAVA_HOME/bin:$PATH | |||
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar | |||
</pre> | |||
=Eclipse for PHP= | |||
<pre> | |||
cd ~/Downloads | |||
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 | |||
tar -zxvf ./eclipse-*.tar.gz | |||
sudo mv ./eclipse /usr/lib | |||
cd /usr/local/share/applications | |||
sudo nano eclipse.desktop | |||
# Add following contents to eclipse.desktop | |||
[Desktop Entry] | |||
Name=Eclipse | |||
Type=Application | |||
Exec=/usr/lib/eclipse/eclipse | |||
Terminal=false | |||
Icon=/usr/lib/eclipse/icon.xpm | |||
Comment=Integrated Development Environment | |||
NoDisplay=false | |||
Categories=Development;IDE; | |||
Name[en]=Eclipse | |||
</pre> | |||
=Tomcat= | |||
<pre> | |||
sudo apt-get install tomcat7 | |||
cd /etc/tomcat7 | |||
sudo nano server.xml | |||
# make sure below contents | |||
<Connector port="8080" protocol="HTTP/1.1" | |||
connectionTimeout="20000" | |||
redirectPort="8443" /> | |||
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> | |||
# save and exit server.xml | |||
# JAVA_HOME setting | |||
sudo nano tomcat-users.xml | |||
# make sure below contents | |||
<role rolename="admin"/> | |||
<user username="tomcat" password="tomcat" roles="admin"/> | |||
# save and exit tomcat-users.xml | |||
# install tomcat docs | |||
sudo apt install tomcat7-docs | |||
# install tomcat admin packages | |||
sudo apt-get install tomcat7-admin | |||
sudo nano tomcat-users.xml | |||
# make sure tomcat roles manager-gui and admin-gui | |||
# save and exit | |||
# for security | |||
sudo chgrp -R tomcat7 /etc/tomcat7 | |||
sudo chmod -R g+w /etc/tomcat7 | |||
# Examples installation | |||
sudo apt-get install tomcat7-examples | |||
sudo service tomcat7 restart | |||
# make sure below roles in tomcat-users.xml | |||
manager-gui | |||
manager-script | |||
manager-jmx | |||
manager-status | |||
# profile | |||
sudo nano /etc/profile | |||
# add following lines | |||
export CATALINA_HOME=/etc/tomcat7 | |||
export CATALINA_BASE=/etc/tomcat7 | |||
</pre> | |||
=Input Method= | |||
<pre> | |||
# System Settings >> Language Support >> Install/Remove Lanugage | |||
# Select "Chinese (simplified)" | |||
sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4 | |||
sudo ibus restart | |||
sudo apt-get install ibus-pinyin | |||
sudo apt-get install ibus-sunpinyin | |||
sudo ibus-setup | |||
# select "input method" tab from dialog | |||
# add the chinese input methods just add | |||
# Shift+command+space | |||
</pre> | |||
=VMware= | |||
* [https://download3.vmware.com/software/wkst/file/VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle?HashKey=98731e4cabd86f1c10bcf0d869a11143¶ms=%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] | |||
* [https://download3.vmware.com/software/wkst/file/VMware-workstation-full-12.5.0-4352439.exe?HashKey=62a5906c3d87e2a880cee95113c38fa3&ext=.exe¶ms=%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] | |||
<pre> | |||
# Download VMware Workstation 12.5 pro for Linux | |||
# Execute below command to give the execute right to bundle | |||
sudo chmod +x ./VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle | |||
# Install VMware | |||
sudo ./VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle | |||
</pre> |
2016年10月26日 (三) 23:31的最新版本
Update & Upgrade
# Make sure your list of packages is update to date, and system upgrade sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo apt-get autoremove
Web Server (Apache2)
Please see Wiki Ubuntu Web Server and Help Web Server.
# Installation sudo apt-get install apache2 # Create a new web site JUniverse # Customer can create a directory named JUnivers, like ~/JUniverse. cd /var/www/html # Create link for JUniverse sudo ln -s ~/JUniverse JUniverse cd /etc/apache2/sites-available sudo cp 000-default.conf juniverse.conf sudo nano juniverse.conf # updating it as below <VirtualHost *:81> DocumentRoot /var/www/JUniverse # save and exit # restart sudo a2ensite juniverse.conf sudo service apache2 restart
MySQL
sudo apt-get install mysql-server
PHP
sudo apt-get install php php-cli php-cgi php-xml php-xdebug libapache2-mod-php php-mysql php-mbstring
Mediawiki
Extension:Labeled Section Transclusion.
# Download from below url: cd ~/Downloads wget https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz # After download finished: tar -xvzf ./mediawiki-*.tar.gz sudo mv mediawiki-*/* /var/lib/mediawiki # Config PHP cd /etc/php/7.0/apache2 sudo nano php.ini # update php.ini following things upload_max_filesize = 20M memory_limit = 128M # save php.ini and exit # restart apache2 sudo service apache2 restart # mediawiki configuration cd /var/www/html sudo ln -s /var/lib/mediawiki mediawiki # give the rights for upload operation cd /var/lib/mediawiki sudo chmod -R 777 images // Configuration, access http://localhost/mediawiki and download // LocalSettings.php and copy it to /var/lib/mediawiki # for version 1.27.1 please execute below: sudo apt-get install php-mbstring
Sun Java
# Download JDK from Oracle and unzip it as below: tar -zxvf jdk-8u92-linux-x64.tar.gz sudo mv ./jdk1.8.0_92 /usr/lib # set java env sudo nano /etc/profile # add below lines to the file export JAVA_HOME=/usr/lib/jdk1.8.0_92 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Eclipse for PHP
cd ~/Downloads 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 tar -zxvf ./eclipse-*.tar.gz sudo mv ./eclipse /usr/lib cd /usr/local/share/applications sudo nano eclipse.desktop # Add following contents to eclipse.desktop [Desktop Entry] Name=Eclipse Type=Application Exec=/usr/lib/eclipse/eclipse Terminal=false Icon=/usr/lib/eclipse/icon.xpm Comment=Integrated Development Environment NoDisplay=false Categories=Development;IDE; Name[en]=Eclipse
Tomcat
sudo apt-get install tomcat7 cd /etc/tomcat7 sudo nano server.xml # make sure below contents <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> # save and exit server.xml # JAVA_HOME setting sudo nano tomcat-users.xml # make sure below contents <role rolename="admin"/> <user username="tomcat" password="tomcat" roles="admin"/> # save and exit tomcat-users.xml # install tomcat docs sudo apt install tomcat7-docs # install tomcat admin packages sudo apt-get install tomcat7-admin sudo nano tomcat-users.xml # make sure tomcat roles manager-gui and admin-gui # save and exit # for security sudo chgrp -R tomcat7 /etc/tomcat7 sudo chmod -R g+w /etc/tomcat7 # Examples installation sudo apt-get install tomcat7-examples sudo service tomcat7 restart # make sure below roles in tomcat-users.xml manager-gui manager-script manager-jmx manager-status # profile sudo nano /etc/profile # add following lines export CATALINA_HOME=/etc/tomcat7 export CATALINA_BASE=/etc/tomcat7
Input Method
# System Settings >> Language Support >> Install/Remove Lanugage # Select "Chinese (simplified)" sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4 sudo ibus restart sudo apt-get install ibus-pinyin sudo apt-get install ibus-sunpinyin sudo ibus-setup # select "input method" tab from dialog # add the chinese input methods just add # Shift+command+space
VMware
# Download VMware Workstation 12.5 pro for Linux # Execute below command to give the execute right to bundle sudo chmod +x ./VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle # Install VMware sudo ./VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle