fcitx小企鵝輸入法
安裝中文輸入法
sudo apt-get install fcitx-chewing
安裝倉頡3
sudo apt-get install fcitx-table-cangjie3
安裝嘸蝦米
sudo apt-get install fcitx-table-boshiamy

安裝中文輸入法
sudo apt-get install fcitx-chewing
安裝倉頡3
sudo apt-get install fcitx-table-cangjie3
安裝嘸蝦米
sudo apt-get install fcitx-table-boshiamy
之前有裝過SCRATCH 2在18.04.但是在19.10中好像這個元件不見了.
Scratch 2 安裝在18.04
libgnome-keyring/libgnome-keyring0_
所以把他補上就可以正常的運作了.
wget http://mirrors.kernel.org/ubuntu/pool/universe/libg/libgnome-keyring/libgnome-keyring0_3.12.0-1build1_amd64.deb
mkdir tmp
dpkg-deb -R libgnome-keyring0_.deb tmp/ sudo mv tmp/usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/x86_64-linux-gnu/
rm -rf tmp
查詢USB裝置
lsusb
Bus 001 Device 008: ID xxxx:xxxx Google Inc.
這四個數字分別輸入下方的第一組4個數字為[XXXX供應商]/
第二組四個數字為 : [XXXX產品編]
編輯 sudo vi /etc/udev/rules.d/51-android.rules
sudo vi /etc/udev/rules.d/51-android.rules
SUBSYSTEM==”usb”, ATTRS{idVendor}==”xxxx”, ATTRS{idProduct}==”xxxx”,MODE=”0666″
這樣就可以重新連線了.
POSTFIX 強制開啟郵件加密的功能,解除GMAIL的未加密的安全警示.
編輯postfix 的設定檔.
vi /etc/postfix/main.cf
#加入下語法
smtpd_tls_security_level = may
smtp_tls_security_level = may
上面的語法會對對方支援加密的條件下,優先加密發送經過TLS加密的信件.但是當對方伺服器無加密功能時也不會強制退件.
draw.io 是一個非常好用的繪圖軟體.他提供了非常多常用的ICON用來設計圖,使用上非常的直覺.他也提供了離線版本:
https://github.com/jgraph/drawio-desktop/releases
這裡有持續更新的最新版本 /你可以在這裡下載到 Windows Installer, Window No Installer, Mac, Linux – deb, snap, AppImage or rpm 的幾種安裝格式.
sudo snap install drawio --edge
樹苺派在2019年升級到了新的debian 10 也提供了新版本的php 使用,所以我們今天就針對php版本重新進行安裝,基本的laravel的環境.
sudo apt install php7.3 php7.3-curl php7.3-gd php7.3-imap php7.3-json php7.3-mysql php7.3-opcache php7.3-xmlrpc php7.3-xml php7.3-fpm php7.3-zip php7.3-mbstring php7.3-sqlite3 php7.3-cli php7.3-readline -y
vi /etc/php/7.3/fpm/pool.d/www.conf
#—-以下內容修改
#把 www-data 改成pi
;user = www-data
;group = www-data
user = pi
group = pi
###
;listen.owner = www-data
;listen.group = www-data
改成
listen.owner = pi
listen.group = pi
service php7.3-fpm start
systemctl enable php7.3-fpm
sudo apt-get install composer
sudo apt-get install nodejs
sudo apt-get install npm
因為laravel需要用到nodejs所以安裝這些套件
sudo apt-get install nginx
sudo vi /etc/nginx/nginx.conf
#user www-data;
user pi;
sudo vi /etc/nginx/sites-available/default
#
#location ~ \.php$ {
# include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
# fastcgi_pass unix:/run/php/php7.3-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
sudo serivce nginx start
sudo systemctl enable nginx
composer create-project laravel/laravel laravel –prefer-dist
生成的laravel目錄會放置於/home/pi/laravel
sudo vi /etc/nginx/sites-available/default
#原始內容
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
#更改為以下內容
root /home/pi/laravel/public;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
sudo serivce nginx start
打完收功
安裝樹苺派的PHP+LARAVEL+NGINX
sudo apt install php7.0 php7.0-curl php7.0-gd php7.0-imap php7.0-json php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-xmlrpc php7.0-xml php7.0-fpm php7.0-zip php7.0-mbstring php7.0-sqlite3 php7.0-cli php7.0-readline -y
sudo systemctl enable php7.0-fpm
sudo service php7.0-fpm start
sudo apt-get install composer
sudo apt-get install npm
sudo apt-get install nginx
composer create-project laravel/laravel laravel –prefer-dist
sudo vi /etc/nginx/sites-enabled/default ################################ #root /var/www/html; root /home/pi/laravel/public; #Add index.php to the list if you are using PHP#index index.html index.htm index.nginx-debian.html; index index.php index.html index.htm index.nginx-debian.html; location ~ .php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; } location ~ /\.ht { deny all; }
sudo service nginx restart
sudo systemctl enable nginx