樹莓派初次使用必裝軟件


0.first step

sudo apt-get update

1.中文字庫

sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy

2.輸入法

拼音輸入法:sudo apt-get install scim-pinyin
五筆:sudo apt-get install scim-tables-zh

3.更新vim

更新 vim,解決默認不支持小鍵盤及方向鍵等問題:sudo apt-get install vim

4.其它

查看主板溫度命令:sudo /opt/vc/bin/vcgencmd measure_temp

5.辦公軟件

sudo apt-get install openoffice.org openoffice.org-l10n-zh-cn

6.安裝 apache

sudo apt-get install apache2

Apache 默認路徑是:/var/www/ ;其配置文件路徑為:/etc/apache2/
可以通過:sudo vi /etc/apache2/ports.conf ,修改監聽端口號。
重啟服務生效:sudo service apache2 restart

7.安裝 mysql

sudo apt-get install mysql-server

8.安裝php

sudo apt-get install php5
sudo apt-get install php5-mysql

9.安裝 nginx web

sudo apt-get install nginx

啟動:sudo /etc/init.d/nginx start
nginx的www 根目錄默認在:/usr/share/nginx/www中。
修改
nginx 的配置文件:
sudo vi /etc/nginx/sites-available/default
以下幾個選項注意一下:
listen 8080;## listen for ipv4; this line is default and implied -監聽的端口號,如果與其它軟件沖突,可以在這里更改。

 

PHP 腳本支持
找到 php 的定義段,將這些行的注釋去掉 ,修改后內容如下:
location ~ .php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php;
include fastcgi_params;
}
php段中有一些其它定義,不要去動它,比如
# fastcgi_split_path_info ...
# fastcgi_pass 127.0.0.1:9000

 

、PHP 腳本支持
找到 php 的定義段,將這些行的注釋去掉 ,修改后內容如下:
location ~ .php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php;
include fastcgi_params;
}
php段中有一些其它定義,不要去動它,比如
# fastcgi_split_path_info ...
# fastcgi_pass 127.0.0.1:9000

 

10.設置系統

sudo raspi-config


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM