MySQL PAM Config set up database table and column name for username and password # vim /etc/pam.d/nginx auth required pam_mysql.so user=USERNAME_HERE \ passwd=PASSWORD_HERE \ host=HOSTNAME_HERE \ db=DATABASE_HERE \ table=TABLE_OR_VIEW_NAME_HERE \ usercolumn=USERNAME_COLUMN \ passwdcolumn=PASSWORD_COLUMN \ crypt=0 sqllog=0 # repeat …. with config above account required pam_mysql.so user=USERNAME_HERE \ …….. crypt=0 sqllog=0 # alternatively, to external config file …
Recently I was assigned to a task about adding a file upload feature to a existing nginx server on CentOS. Nginx was chosen years ago because it simply handles some static files only. If the file upload was a requirement, using apache is simpler as computation power isn’t a constraint in our case. Background CentOS 7 …
I have a Samsung smart TV, it can play AAC video format, but only with mp4 container, mkv file format is NOT supported. Here is a simple way to convert them. materials: synology linux 1. create NFS share on Synology Shared Folder > Edit > NFS Permission hostname/IP: 192.168.x.0/24 (allow whole subnet) then press “OK” …
CentOS 6 1. 移除sendmail 安裝postfix # /etc/init.d/sendmail stop # yum remove sendmail # yum install postfix cyrus-sasl mailx 2. Gmail username and password Simple Authentication and Security Layer (SASL) # echo “smtp.gmail.com GMAIL_USERNAME:GMAIL_PASSWORD” > /etc/postfix/sasl_passwd # chmod 600 /etc/postfix/sasl_passwd # postmap hash:/etc/postfix/sasl_passwd 3. Postfix 設定 vim /etc/postfix/main.cf myhostname = xxxx.hang321.net mydomain = hang321.net # use Gmail SMTP …
更新了VMware Workstation 11, “View > Autosize > Autofit guest” 沒了. 再安裝VMware Tools (close source) 也不成. (Mint 17) sudo apt-get install open-vm-tools 也不能. 用了幾小時重新安裝vmware workstation, host’s graphic card driver, 還是沒有效用. 打開 synaptic package manager, search “open-vm-tools”. 頂, 原來還有個 GUI 的open-vm-tools-desktop $ sudo apt-get install open-vm-tools open-vm-tools-desktop
續篇, 前一篇: Upgrade Mint 14 to Mint 17 (1/2: installation) 1st issue: Theme broken Preference > Apperance > select new theme : e.g. Mint-X 2: pluma error: Fontconfig error: “/etc/fonts/conf.d/65-khmer.conf”, line XX: out of memory (pluma:24894): IBUS-WARNING **: The owner of ~/.config/ibus/bus is not root! run Update Manager 就會冇左65-khmer.conf , 或者apt-get purge fonts-khmeros-core 3: Panel 自行加入menu …
Mint 14 (mate) 已經end-of-life, 2個月前更新了工作用的電腦. 現在留下一個記錄. 如果沒有太多customization, 其實直接安裝mint 17 再copy home directory back 比較方便. Reference: http://www.linuxmint.com/oldreleases.php https://wiki.ubuntu.com/Releases https://gist.github.com/hgomez/7074150 http://www.tecmint.com/upgrade-linux-mint-16-to-linux-mint-17/ Step 1: Backup $ sudo cp /etc/apt/sources.list ~/sources.list.org 備份home 連同其他有需要directories, mysqldump, CloneZilla image ….etc. Step 2: verify current version $ sudo cat /etc/issue.net && echo -e \\n && cat /etc/lsb-release && echo -e && cat /etc/os-release …
1. Download Binary file http://www.hylafax.org/content/Handbook:Binary_Package_Install 2. Install Install the HylaFAX RPM file(s) via ‘rpm -Uvh hylafax*rpm’ Run /usr/sbin/faxsetup and then /usr/sbin/faxaddmodem and answer the questions appropriately using default setting and answer the setup script (stupid, forcing to enter area code …. HKSAR have none….) Country code [1]? 852 Area code []? 0 Long distance dialing …
CentOS 4.4 /etc/vimrc set background=dark “brighter the color set ai set smartindent
$ tar zxvf vmware-linux-tools.tar.gz $ cd vmware-tools-distrib #進入 vmware-tools-distrib 資料夾 ./vmware-install.pl #開始安裝 http://vmware.xaox.net/centos/4/i386/ Kernel For fixing VMware Time delay. – Kerenl for Host = 100Hz, Kernel for Linux(2.6.x) = 1000Hz VMware tools fail to install using default value, because kernel header files does not match. # cd /usr/bin/ # ./vmare-install -t …


