tag:blogger.com,1999:blog-3886000687551054762024-02-19T12:12:23.131+08:00MPSStudio.org最多 500 個字元亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.comBlogger66125tag:blogger.com,1999:blog-388600068755105476.post-80669709891869156702016-12-08T17:48:00.001+08:002016-12-09T09:02:35.477+08:00新增解析度版本: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 亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-89808506401299951502016-11-26T02:35:00.001+08:002016-11-28T15:37:37.445+08:00放大滑鼠游標並變更游標主題版本: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.從下拉清單點選 游標主題
亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-40076621978471112372014-10-26T11:34:00.003+08:002014-10-26T11:34:36.510+08:00[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 MHzModeline "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
2.在該登入者家目錄建立登入自動變更螢幕解析度的 Script (檔名任取 => chrat )如下#!/bin/bashecho 'YourPassWord' | sudo -S su -xrandr --newmode "亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-77017325571214617862014-10-19T02:50:00.000+08:002014-10-19T02:50:18.371+08:00手動刪除 Gnome 3 的啟動圖示1.在 CLI 移動工作目錄至家目錄中的 .config/gnome-panel/launchers/2.刪除要移除的啟動圖示定義檔亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-76921661244652445622013-02-15T08:58:00.001+08:002013-02-15T09:08:09.179+08:00[LDAP]安裝(Installation) 使用 YUM1. 相關套件
[root@server_Y ~]# yum list *openldap* | grep x86openldap.x86_64 2.4.23-26.el6_3.2 @sl-securitycompat-openldap.x86_64 &亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-2692138769271582542013-01-14T11:31:00.000+08:002013-01-15T21:33:01.420+08:00[LDAP]安裝(Installation)1.Required Software
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 :
&亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-5774211681334077262013-01-14T00:32:00.001+08:002013-02-15T09:05:46.331+08:00[LDAP]LAB 環境使用 YUM 安裝 LAB_A
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:亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-48229331046753563262013-01-13T22:57:00.000+08:002013-02-15T09:58:06.890+08:00[LDAP]LDAP System Administration - Table of Contents
Table of Contents
基礎概念
LAB 環境
安裝
使用 YUM 安裝
使用原始碼安裝
設定
操作
資料庫管理
安全性
Access Control
SASL
TLS
整合應用
NIS
E-MAIL
Samba
FTP
HTTP
NET::LDAP
PERL
維護(Maintenance)
監控(Monitoring)
效能調整(Performance Tunining)
除錯(Troubleshooting)
亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-86890218697235962282012-10-13T13:23:00.001+08:002012-10-13T13:24:27.668+08:00[Learning Linux]Learning Linux - Expertise
系統管理(System Administration)
服務管理(Service Management)
專門技術(Expertise)
安全(Security)
效能調教(Performance Tuning)
Reference
About Linux Certification亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-57592057116873739382012-10-13T06:10:00.001+08:002012-10-13T13:25:16.741+08:00[Learning Linux]Learning Linux - System Administrator
系統管理(System Administration)
在CLI(Command Line Interface)環境下管理系統
提示字串(Prompt String)
PS1 (Prompt String 1)
PS2 (Prompt String 2)
變更loging shell
帳號管理
/etc/passwd
服務管理(Service Management)
專門技術(Expertise)
Reference
About Linux Certification亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-61172186796529270142012-10-13T06:08:00.000+08:002012-10-13T12:58:40.174+08:00[Linux]About Linux Certification 目前在台灣能見度較高的Linux 認證有 LPIC(Linux Professional Institute Certification) 及 Red Hat 兩大系統。
LPIC 號稱為一中立的認證機構,其認證內容主要是在檢測考生對於Linux共通知識了解的程度,考試的方式是筆試。
LPIC的認證到目前為止(2012.10.13)共分為 LPIC-1、LPIC-2、LPIC-3 三種等級,在LPIC的官方網站有詳細的說明,http://www.lpi.org/linux-certifications/programs。
Red Hat 的認證主要是針對Red Hat 所推出的產品,考試的方式是採實機測試。
 亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-57476193275467676082012-10-13T05:29:00.002+08:002012-10-13T05:29:58.754+08:00[Linux]Reference
Linux System Administration Recipes:A Problem-Solution Approach (writer:Juliet Kemp)
Expert Shell Scripting (writer:Ron Peters)
Linux Shell 程式設計實務 (writer:臥龍小三)
Linux Shell Scripting Cookbookl (wruter:Sarath Lakshman)
亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-37332610084325884682012-10-04T23:35:00.001+08:002012-10-07T00:20:07.582+08:00[Learning Python]不同型態的引號建立字串時,可以使用『'(單引號)』、『"(雙引號)』、『'''(三個單引號)』或『"""(三個雙引號)』將字串的頭尾兩端括起來。
=>
Var = 'This is a String'
Var = "This is a String"
Var = '''This is a String'''
Var = """This is a String"""
與 Bash shell 不同,這四種型態的引號對Python來講在功能上是一樣的,Python提供四種型態的引號主要是要讓使用者在建立字串時可以有更多的彈性。
例如當使用單引號括住字串,而字串中又出現縮寫,Python會認為引號不成對,因此就會發生語法錯誤。
=>
亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-5088959015126218522012-10-04T12:32:00.002+08:002012-10-04T23:43:24.100+08:00[Learning Python]建立字串建立字串有兩種常見的方式可以選擇,
A.指定一個字串給變數
語法:
Var = 'String'
Var = "String"
Var = '''String'''
Var = """String"""
字串要用引號括起來,只要兩端用的引號是一致的即可。
B.使用 str()函數建立
語法:
Var = str(String)
str() 函數也可以用來將其他型別的物件轉換成 str 型別
<<<<<回 Learning Python 目錄>>>&亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-47362734205187396142012-09-22T17:07:00.002+08:002012-09-22T17:08:33.933+08:00[Performance Tuning]Monitoring and Analyzing Linux System Performance1.How to Monitor and Analyz Linux System Performance
2.CPU
3.Memory
4.IO
5.Storage
6.Networking
亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-68505714608689276012012-08-21T23:59:00.000+08:002012-08-22T00:01:01.678+08:00[Drupal]WYSIWYG Editor Module1.安裝:http://drupal.org/project/Wysiwyg
2.設定:Modules -> USER INTERFACE -> Wysiwyg ->Configure
INPUT FORMAT : 設定在不同輸入模式的介面中可使用的編輯功能
INSTALLATION INSTRUCTIONS : 選擇要安裝的 Editor
亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com1tag:blogger.com,1999:blog-388600068755105476.post-17402617298875591742012-06-11T07:13:00.000+08:002012-06-11T08:00:01.823+08:00[KVM]How to convert .vhd image file to the qcow2 image type如果要將 .vhd 或其他 kvm-img 可辨識的映像檔格式轉換乘 raw 或其他其他 kvm-img 可辨識的映像檔格式,可以使用 kvm-img 命令進行轉換。
使用 kvm-img 轉換映像檔格式的語法如下,
kvm-img convert -O <Output Format> <FileName> <Output FileName>
以下以轉換 .vhd 格式檔案為 .qcow2 格式檔案為例,
max@satomi:~$ kvm-img convert -O qcow2 FileName.vhd OutputFileName.qcow2
所需的轉換時間視主機亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-84531173063747873462012-06-09T07:25:00.003+08:002012-06-09T07:42:37.431+08:00[Ubuntu]在Ubuntu 12.04 Desktop 加裝LXDE 與 Gnome 3 Classic 桌面環境(Desktop environment)將舊筆電 (Fujitsu s6510)升級為 Ubuntu 12.04 Desktop 後發現內建的桌面環境還是沒有 LXDE 與 Gnome , 所以還是要自己動手裝。
加裝 LXDE 比較簡單只需要......
$ sudo apt-get update
$ sudo apt-get install lxde
就可以了。
如果只需要 LXDE 可以直接裝 lubuntu 12.04 (http://lubuntu.net/)。
加裝 Gnome 就比較麻煩,我是依據
http://亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-22724232424510430972012-05-30T06:30:00.000+08:002012-05-30T06:29:46.738+08:00[Ubuntu]How to configure network in bridge mode on Ubuntu 10.04 / 12.04這個程序在 Ubuntu 10.04 及 12.04 都可以用
1.安裝橋接工具套件『bridge-utils』及『 uml-utilities』
$ sudo apt-get install bridge-utils uml-utilities
2.新增橋接器『br0』
橋接器的名稱並沒有特別的規定,比較常看到的是『br0』或『bri0』。
新增橋接器的語法如下,
brctl sddbr <橋接器名稱>
$ sudo brctl addbr br0
3.將eth0接到橋接器『br0』
&亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-28254724883127142752012-05-30T06:00:00.000+08:002012-06-01T02:23:43.089+08:00[Ubuntu]How To Install KVM on Ubuntu 10.04 /12.04 本安裝程序適用 Ubuntu 10.04 以後的版本
1. 前置作業
安裝KVM前我們需要作一些檢查以確認主機的環境是否符合需求。
a. 確認 主機BIOS是否支援虛擬化技術(Virtualization Technology)
一開始需要先確認BIOS是否支援虛擬化技術,同時已開啟這項支援。
進入BIOS設定畫面之後找一下相關設定,依不同的主機品牌這項設定可能稱為『Virtualization Support』 或『Virtualization 亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-69123280036539562292012-05-07T12:44:00.003+08:002012-05-08T21:47:12.657+08:00[Ubuntu]在 Ubuntu 12.04 Server 的 Name Server(DNS) Client 端設定Ubuntu 12.04 Server 不建議以手動更改『/etc/resolv.conf』 的方式指定 Name Server,
max@riyu:~$ sudo cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# 亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-62847804202755373642012-05-07T12:17:00.000+08:002012-05-07T12:17:09.726+08:00[Ubunbtu]在 Ubuntu 12.04 Server 安裝 Gnome3安裝完 Ubuntu 12.04 之後,只需要再加裝『ubuntu-desktop』即可
1.更新套件清單
=> $sudo apt-get update
2.安裝 『ubuntu-desktop』
=> $sudo apt-get install ubuntu-desktop
登入時,記得將桌面環境改成『gnome classic』亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-45708204716983543152012-03-12T03:50:00.001+08:002012-03-12T04:04:13.292+08:00[android]Android Programming建置開發環境
android 的開發環境可以建置在 Linux、Mac OS X 10.5.8 以上 及 MS-Windows XP 以上等多種作業系統平台上,這邊的開發環境是建置在 Ubuntu 11.04上。
要建置android 的開發環境依序要安裝下列套件
1. Java Development Kit
&亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-37932255038805202662011-11-11T12:12:00.006+08:002012-03-12T03:52:12.679+08:00[Programming]IndexBash Script
Learning Python
Android Programming
HTML、CSS、Javascript & jQuery
Misc
亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0tag:blogger.com,1999:blog-388600068755105476.post-54239682383090944132011-10-25T07:24:00.006+08:002011-10-25T07:35:09.687+08:00[Javascript]語法基礎變數宣告
『Javascript』的變數是『弱型別』,使用時只需要用『var』宣告這是一個變數,不用宣告型別。
變數命名規則 :
a.首字要是『英文大、小寫字母』、『"_"(底線)』或『$』。
var VariableName[ = "Value"];
事實上就算是沒有作任何宣告也可以。
Case sensitive
不管變數、函式名稱......都區分大小寫
程式碼區塊要用『{.......}』包住
if (<Boolean Expression>) {  亞利安人http://www.blogger.com/profile/08524322323682428802noreply@blogger.com0