搜尋此網誌

2015年7月31日 星期五

MAIL2000 Port Setting

MAIL2000 Port Setting

POP3:110 (SSL 995)
IMAP:143 (SSL 993)
SMTP:25 (SSL 465)

2015年7月14日 星期二

在 Windows 8.1 清理 WinSxS 資料夾

以系統管理員身份執行執行下面的指令

Dism /online /Cleanup-Image /StartComponentCleanup /ResetBase

在 Linux 下找出佔用磁碟空間最大的目錄/檔案

找出 /home 目錄中佔用磁碟空間最大的目錄
du -hsx /home/* | sort -hr | head

找出前 10 大的檔案
find /home -type f -printf '%s %p\n' | sort -nr | head

找出前 10 大的 exe 檔案
find /home -type f -iname '*.exe' -printf '%s %p\n' | sort -hr | head

2015年7月2日 星期四

CentOS 6 安裝 Graphical Window System (X.org-X11)



yum -y groupinstall 'Desktop'

yum -y groupinstall 'Desktop Platform'

yum -y groupinstall 'X Window System'

yum -y groupinstall 'Fonts'

yum -y groupinstall 'Graphical Administration Tools'

yum -y groupinstall 'GNOME Desktop Environment'

yum -y groupinstall "Chinese Support"


如有安裝中文語系套件,要再修改預設語系

編輯: /etc/sysconfig/i18n,
將 LANG="en_US.UTF-8" 改為 LANG="zh_TW.UTF-8" ,
如果檔案是空白的,請直接加入:
LANG="zh_TW.UTF-8"








yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"

CentOS 文字模式及圖形模式的切換

CentOS 6 切換文字介面只要將

/etc/inittab

「id:3:initdefault:」裡的3改成「id:5:initdefault:」即可



CentOS 7 切換文字介面只要將

/etc/inittab

圖形介面:#systemctl set-default graphical.target
文字介面:#systemctl set-default multi-user.target

指令下完之後,重新開機就變成您想要的模式了

Yumdownloader



If downloading a installed package, "yumdownloader" is useful.


1.Install the yum-utils package:
# yum install yum-utils


Run the command followed by the desired package:
# yumdownloader <package>


Note:
The package is saved in the current working directly by default; use the --destdir option to specify an alternate location.
Be sure to add --resolve if you need to download dependencies.

搜尋此網誌