百憂解
顯示具有
linux
標籤的文章。
顯示所有文章
顯示具有
linux
標籤的文章。
顯示所有文章
3月 11, 2025
Google Cloud 災難復原
›
最後處理方式:手動重建 instance 前幾天突然想到 GCP 上跑的機台很舊了(Debian9, 2018),嘗試升級 Debian 10 後就炸了!無法遠端連線(SSH)而且資料庫主程式損毀無法動啟,幸好有留下資料庫檔(.frm/.ibd)。 1. 先到「GCP Compu...
12月 02, 2024
開源遠端桌面閘道(Apache Guacamole)
›
Apache Guacamole A clientless remote desktop gateway. It supports standard protocols like VNC, RDP, and SSH. We call it clientless because ...
9月 18, 2024
自建 Uptime Kuma 監測平台
›
安裝 Node.js 與 PM2(Process Management) # apt-get -y update # apt-get install -y nodejs npm git # npm install pm2 -g # pm2 install pm2-logrot...
1月 03, 2024
在 Oracle Cloud 上安裝 Alpine Linux
›
1. 建立一個以 Ubuntu 為作業系統的虛擬機(當作空殼) 2. 到 Alpine Linux 官網下載 VIRTUAL 版本的映像檔。例如 alpine-virt-3.19.0-x86_64.iso 3. 刷入映像檔 # sudo dd if=alpine-virt...
12月 31, 2023
在 Debian 下使用 libusb 開發程式
›
apt-get install gcc usbutils libusb-1.0-0-dev
1月 26, 2022
antiX Linux 設定教學
›
antiX Linux 輕量級作業系統(基於Debian發行版),映像檔選 Base 版才帶有視窗介面。實際安裝只要 5GB硬碟空間與1G RAM 就能運行系統核心與瀏覽器。預設使用 IceWM 作為視窗管理介面,運作不拖泥帶水,很棒! 安裝後的微調: 1. 更改顯示器解...
1月 17, 2018
使用 PHP 連接 Microsoft SQL Server 資料庫
›
依不同的 PHP 版本而定... PHP 5.x 上古時代想連接 SQL Server 則要透過 FreeTDS 開源套件,說明如下: FreeTDS is a set of libraries for Unix and Linux that allows your ...
12月 04, 2014
Lenovo ThinkPad X240 重開機後亮度回復最大值
›
新買的筆記型電腦 Lenovo ThinkPad X240 在安裝 Lubuntu 14.04 LTS 版本後一直有個問題,每次重新開機後「亮度」都會跳回最大值。 最有效的方法是在開機環境檔(rc.local)內直接指定亮度,每次開機均會維持固定值。 # vim /etc/rc...
6月 25, 2014
LXDE Ubuntu chinese fonts
›
最近找到一個非常棒的字體給 Ubuntu 使用,字型名稱:文泉驛微米黑( wqy-microhei.ttc ),其實就是黑體系列的字型。 用起來的效果像這樣: wiki維基百科 、 Mobile01網站 安裝方式: 把字型檔丟到 /usr/share/fonts/tr...
5月 15, 2014
在 Linux 環境下使用無蝦米輸入法 (gcin 與 noseeing.gtab)
›
試用 Ubuntu 14.04 內建的輸入法系統 IBus (Intelligent Input Bus) 後第一個感想是:難用到爆炸!尤其對無蝦米用戶來說,有些字莫名其妙就是送不出來。像是「表」「系」,明明都在字根表內,但不論鍵盤怎麼敲,輸入法就是無動於衷,只好忍痛跟 IBus...
1月 02, 2014
[MySQL] Can't create database 'performance_schema'
›
在執行完 MySQL upgrade 後就炸掉了... /etc/mysql/debian-start[4802]: ERROR 1007 (HY000) at line 160: Can't create database 'performance_sche...
12月 13, 2013
Debian 第一次設定 rtorrent 就上手
›
零、概念: User / Browser -->Web Server-->rutorrent--scgi:5000--> rtorrent 前端叫:rutorrent (這是 php 寫成的網頁) 後端叫:rtorrent (兩者差一個"u"字 別搞...
12月 02, 2012
我的 rtorrent.rc
›
2021 (rtorrent 0.9.7) # rtorrent (version 0.9.X) # directory tree [~/bt/session] && [~/bt/unfinished] && [~/done] # Maxi...
8月 19, 2012
Screen: No more PTY's. Sorry could not find a PTY
›
今天在設定一台 VPS 時碰到的狀況,一般用戶無法正常執行 screen 套件,錯誤訊息是: No more PTY's. Sorry could not find a PTY. 解法: (1) 先確認只有一般用戶會碰到這個狀況,而 root 沒這個問題。 (2) 檢...
7月 27, 2012
Nginx 與 spawn-fcgi 的設定
›
設定 .php 的解析方式 這邊記得要用 Unix domain socket 的模式,比較不會有 "502 Bad Gateway" 錯誤產生。 # vim /sites-enabled/default server { charset utf-8...
5月 18, 2012
不用資料庫也能跑的 PHP 軟體
›
使用 PHP 語言,搭配 SQLite 或者跟本不需要資料庫: 1. 論壇: FluxBB 2. 網誌: FlatPress 、 Blite 、 Typecho 、 Chyrp 3. Wiki: DokuWiki
3月 18, 2012
Exim4 與 SquirrelMail 設定
›
設定 Exim4 # apt-get install dovecot-common dovecot-imapd dovecot-pop3d # vim /etc/dovecot/dovecot.conf 加入 protocols = imap imaps pop3 pop3s ...
3月 15, 2012
Lighttpd SSL 加密連線設定
›
使用 OpenSSL 製作憑證 1. 產生 Private Key # openssl genrsa -out private.key 1024 2. 使用私鑰產出 Certificate Signing Request(CSR) # openssl req -new -key ...
12月 25, 2010
lighttpd rewrite rule for wordpress 3
›
新版的 Wordpress 3 架構,讓原有的 rewrite rule 無法正常運作。所以要改成下列: $HTTP["host"] == "www.site.com" { url.rewrite-final = ( # Ex...
9月 17, 2010
rTorrentWeb: Web UI of rTorrent
›
Web directory [/var/www/rtorrentweb/]? rTorrentWeb directory [/usr/local/share/rtorrentweb/]? Data directory [/var/local/rtorrentweb/]? URL ...
›
首頁
查看網路版