版本:Ubuntu 16.04
1.取得相關參數
$ cvt 1366 768
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
Modeline "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
$ xrandr
Screen 0: minimum 320 x 200, current 1368 x 768, maximum 16384 x 16384
HDMI-0 disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected primary 1368x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00
800x600 60.32 56.25
848x480 60.00
640x480 59.94
1920x1080 59.96
1440x900 59.89
1368x768 59.88*
2.設定
$ sudo xrandr --newmode "1368x768" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
$ sudo xrandr --addmode VGA-0 "1368x768"
2016年11月26日 星期六
放大滑鼠游標並變更游標主題
版本:Ubuntu 16.04
1.放大滑鼠游標
a.啟動 dconf 編輯器(或安裝 dconf Editor)
b.左側窗格
org > gnome > desktop > interface
c.右側上方窗格尋找 [cursor-size] ,變更數值
使用CLI
dconf write /org/gnome/desktop/interface/cursor-size VALUE
>
2.變更游標主題
a.啟動 Ubuntu Tweak
b.上方 > [調校]
c.[佈景主題] > [游標主題]
d.從下拉清單點選 游標主題
1.放大滑鼠游標
a.啟動 dconf 編輯器(或安裝 dconf Editor)
b.左側窗格
org > gnome > desktop > interface
c.右側上方窗格尋找 [cursor-size] ,變更數值
使用CLI
dconf write /org/gnome/desktop/interface/cursor-size VALUE
>
2.變更游標主題
a.啟動 Ubuntu Tweak
b.上方 > [調校]
c.[佈景主題] > [游標主題]
d.從下拉清單點選 游標主題
2014年10月26日 星期日
[mint]登入自動變更螢幕解析度
發行版:inux Mint 17 “Qiana” Cinnamon
目的:登入後變更螢幕解析度為 1440 x 900
1.取得設定的相關資訊 (新增 1440 x 900)
haruka ~ # cvt 1440 900
# 1440x900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz
Modeline "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
2.在該登入者家目錄建立登入自動變更螢幕解析度的 Script (檔名任取 => chrat )如下
#!/bin/bash
echo 'YourPassWord' | sudo -S su -
xrandr --newmode "1440x900" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode VGA-0 "1440x900"
xrandr --output VGA-0 --mode "1440x900"
3.在 .profile 中執行該 Script
./ chrat
目的:登入後變更螢幕解析度為 1440 x 900
1.取得設定的相關資訊 (新增 1440 x 900)
haruka ~ # cvt 1440 900
# 1440x900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz
Modeline "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
2.在該登入者家目錄建立登入自動變更螢幕解析度的 Script (檔名任取 => chrat )如下
#!/bin/bash
echo 'YourPassWord' | sudo -S su -
xrandr --newmode "1440x900" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode VGA-0 "1440x900"
xrandr --output VGA-0 --mode "1440x900"
3.在 .profile 中執行該 Script
./ chrat
2014年10月19日 星期日
2013年2月15日 星期五
[LDAP]安裝(Installation) 使用 YUM
1. 相關套件
在Red Hat官方部屬手冊『Red_Hat_Enterprise_Linux-6-Deployment_Guide-en-US』第16章中提到,建置opneldap server 需要安裝下列套件,
a. openldap.x86_64 : 內含openldap Server端 與 client端 應用程式運作所需的必要函式庫,通常預設已安裝。
b. openldap-servers.x86_64 : 內含openldap service 主程式與相關工具,slapd 這支 Daemon就包含在這個套件裡面。
c. openldap-clients.x86_64 : 內含在 CLI 下用來檢視及修改內容的命令。
d. openldap-servers-sql.x86_64 : 內含支援 SQL 的相關模組。
e. compat-openldap.x86_64 : 內含 openldap 相容函式庫。
另外,通常會加裝下列套件,
f. nss-pam-ldapd.x86_64 : 內含 nslcd 這支服務,用以管制可以從本地端向 ldap 提出詢問請求的user。
g. mod_authz_ldap.x86_64 : 內含 mod_authz_ldap 這支 LDAP for Apache HTTP server 認證模組。
2. 確認已安裝套件
3. 安裝所需套件
[root@server_Y ~]# yum list *openldap* | grep x86
openldap.x86_64 2.4.23-26.el6_3.2 @sl-security
compat-openldap.x86_64 1:2.3.43-2.el6 sl
openldap-clients.x86_64 2.4.23-26.el6_3.2 sl-security
openldap-devel.x86_64 2.4.23-26.el6_3.2 sl-security
openldap-servers.x86_64 2.4.23-26.el6_3.2 sl-security
openldap-servers-sql.x86_64 2.4.23-26.el6_3.2 sl-security
[root@server_Y ~]# yum list *nss* | grep ldap | grep x86
nss-pam-ldapd.x86_64 0.7.5-14.el6_2.1 sl
[root@server_Y ~]# yum list mod_authz_ldap | grep x86
mod_authz_ldap.x86_64 0.26-15.el6
在Red Hat官方部屬手冊『Red_Hat_Enterprise_Linux-6-Deployment_Guide-en-US』第16章中提到,建置opneldap server 需要安裝下列套件,
a. openldap.x86_64 : 內含openldap Server端 與 client端 應用程式運作所需的必要函式庫,通常預設已安裝。
b. openldap-servers.x86_64 : 內含openldap service 主程式與相關工具,slapd 這支 Daemon就包含在這個套件裡面。
c. openldap-clients.x86_64 : 內含在 CLI 下用來檢視及修改內容的命令。
d. openldap-servers-sql.x86_64 : 內含支援 SQL 的相關模組。
e. compat-openldap.x86_64 : 內含 openldap 相容函式庫。
另外,通常會加裝下列套件,
f. nss-pam-ldapd.x86_64 : 內含 nslcd 這支服務,用以管制可以從本地端向 ldap 提出詢問請求的user。
g. mod_authz_ldap.x86_64 : 內含 mod_authz_ldap 這支 LDAP for Apache HTTP server 認證模組。
2. 確認已安裝套件
[root@server_Y ~]# rpm -qa | grep openldap
openldap-2.4.23-26.el6_3.2.x86_64
3. 安裝所需套件
[root@server_Y ~]# yum -y install \
openldap-servers.x86_64 \
openldap-clients.x86_64 \
openldap-servers-sql.x86_64 \
compat-openldap.x86_64
2013年1月14日 星期一
[LDAP]安裝(Installation)
1.Required Software
2.Download
OpenLDAP :
Offical Site:http://www.openldap.org/
Documentation Download Page:http://www.openldap.org/doc/
Source Code Download Page:http://www.openldap.org/software/download/
SSL/TLS:
Offical Site:http://www.openssl.org/
Documentation Download Page: http://www.openssl.org/docs/
Source Code Download Page:ftp://ftp.openssl.org/source/
Berkeley DB:
Offical Site:http://www.oracle.com/us/products/database/berkeley-db/overview/index.html
Source Code Download Page:http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html?ssSourceSiteId=ocomen
SASL:
Source Code Download Page:http://ftp.andrew.cmu.edu/pub/cyrus-mail/
Direct Download Link :ftp://ftp.cyrusimap.org/cyrus-imapd/cyrus-imapd-2.4.16.tar.gz
2.Insatll
SSL/TLS:
SASL:
OpenLDAP :
Standard C compiler (required)
Cyrus SASL 2.1.21+ (recommended)
OpenSSL 0.9.7+ (recommended)
Reentrant POSIX REGEX software (required)
Oracle Berkeley DB 4.4 - 4.8 or 5.0 - 5.1
2.Download
OpenLDAP :
Offical Site:http://www.openldap.org/
Documentation Download Page:http://www.openldap.org/doc/
Source Code Download Page:http://www.openldap.org/software/download/
$ wget ftp://ftp.dti.ad.jp/pub/net/OpenLDAP/openldap-release/openldap-2.4.33.tgz
SSL/TLS:
Offical Site:http://www.openssl.org/
Documentation Download Page: http://www.openssl.org/docs/
Source Code Download Page:ftp://ftp.openssl.org/source/
$ wget ftp://ftp.openssl.org/source/openssl-1.0.1c.tar.gz
Berkeley DB:
Offical Site:http://www.oracle.com/us/products/database/berkeley-db/overview/index.html
Source Code Download Page:http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html?ssSourceSiteId=ocomen
SASL:
Source Code Download Page:http://ftp.andrew.cmu.edu/pub/cyrus-mail/
Direct Download Link :ftp://ftp.cyrusimap.org/cyrus-imapd/cyrus-imapd-2.4.16.tar.gz
$ wget http://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.25.tar.gz
2.Insatll
SSL/TLS:
$ tar zxvf openssl-1.0.1c.tar.gz
$ cd openssl-1.0.1c
$ ./config shared --openssldir=/usr/local
$ make
$ su -c "make install"
$ tar zxvf db-5.0.32.tar.gz
$ cd db-5.0.32/build_unix/
$ ../dist/configure --prefix=/usr/local
$ make
$ su -c "make install"
$ \ls -l /usr/local/lib/libdb-*
-rw-r--r--. 1 max max 2653808 Jan 15 11:57 /usr/local/lib/libdb-5.0.a
-rw-rw-r--. 1 max max 933 Jan 15 11:56 /usr/local/lib/libdb-5.0.la
-rwxrwxr-x. 1 max max 1704381 Jan 15 11:56 /usr/local/lib/libdb-5.0.so
lrwxrwxrwx. 1 root root 12 Jan 15 11:57 /usr/local/lib/libdb-5.so -> libdb-5.0.so
SASL:
$ tar zxvf cyrus-sasl-2.1.25.tar.gz
$ cd cyrus-sasl-2.1.25/
$ ./configure
$ make
$ su -c "make install"su -c "ln -s /usr/local/lib/sasl2/ /usr/lib/sasl2"
OpenLDAP :
$ tar zxvf openldap-2.4.33.tgz
$ cd openldap-2.4.33.tgz
$./configure --enable-wrappers
$ make
$ su -c "make install"su -c "ln -s /usr/local/lib/sasl2/ /usr/lib/sasl2"
[LDAP]LAB 環境
使用 YUM 安裝 LAB_A
HOST1:
HOST2:
HOST3:
>>>>Back to Table of Contents
HOST1:
Hostname:server_Y.mpsstudio.org OS:Scientific Linux 6.3 RAM:1G / Storage:1G IP:10.50.100.1 / 10.150.100.1 |
HOST2:
Hostname:server_slave_Y.mpsstudio.org OS:Scientific Linux 6.3 RAM:1G / Storage:1G IP:10.50.100.10 / 10.150.100.10 |
HOST3:
Hostname:client.mpsstudio.org OS:Scientific Linux 6.3 RAM:1G / Storage:1G IP:10.50.100.100 / 10.150.100.100 |
>>>>Back to Table of Contents
訂閱:
文章 (Atom)