請用“df –a”指令可以查出SuSE Linux Enterprise Server 是不是裝於EFI Mode
2017年10月11日 星期三
RPM Command
一、基本安裝
rpm -ivh 軟體套件名稱
i 是 install,v(verbose)是顯示,h 是進度以一串 ########### 來表示
二、基本安裝的問題
(1)該軟體已安裝過
rpm -ivh 套件名稱
套件名稱 is already installed..
如果要重新安裝可用--force 指令:
--force 表示強行置換
rpm -ivh php-imap.x.rpm
failed dependencies:imap is needed by php-imap
如果不管軟體的相依性,可用--nodeps指令強制安裝
五、更新套件
rpm -Fvh 套件名稱
-F 選項有個特性:只有已經安裝過的套件才會更新,這點和 rpm -Uvh 中的 U 升級是不同的,因此極適合拿來大量修補套件之用。
六、查詢
rpm -qa | grep mesa
rpm -ql apache
a 是 all,q 是 query 查詢已安裝的套件,grep 是搜尋符合的字串
l 是列出的意思(list)
rpm -qf /usr/bin/neat
查詢 neat 這個指令是從那一個 rpm 套件安裝的。
###################################################
Ubuntu/Debian dpkg search command
dpkg -l | grep libgl
rpm -ivh 軟體套件名稱
i 是 install,v(verbose)是顯示,h 是進度以一串 ########### 來表示
二、基本安裝的問題
(1)該軟體已安裝過
rpm -ivh 套件名稱
套件名稱 is already installed..
如果要重新安裝可用--force 指令:
--force 表示強行置換
rpm -ivh --force 套件名稱
(2)沒有相依的套件rpm -ivh php-imap.x.rpm
failed dependencies:imap is needed by php-imap
如果不管軟體的相依性,可用--nodeps指令強制安裝
rpm -ivh --nodeps php-ldap*.rpm
三、移除套件
rpm -e 套件名稱
四、升級套件
rpm -Uvh 套件名稱
U是upgrade, 表示會把舊的軟體移除再安裝新的,所以不管有沒有安裝過都可以使用rpm -Uvh來安裝軟體五、更新套件
rpm -Fvh 套件名稱
-F 選項有個特性:只有已經安裝過的套件才會更新,這點和 rpm -Uvh 中的 U 升級是不同的,因此極適合拿來大量修補套件之用。
六、查詢
rpm -qa | grep mesa
rpm -ql apache
a 是 all,q 是 query 查詢已安裝的套件,grep 是搜尋符合的字串
l 是列出的意思(list)
rpm -qf /usr/bin/neat
查詢 neat 這個指令是從那一個 rpm 套件安裝的。
###################################################
Ubuntu/Debian dpkg search command
dpkg -l | grep libgl
2017年10月10日 星期二
Intel(R) Ethernet Connection (2) I219-V Wake On Lan Windows 10 failed
you need to untick the option "Turn on fast startup" in
Control Panel\Hardware and Sound\Power Options
(accessible via "Power and Sleep". See picture below as well.
2017年10月4日 星期三
PnPUtil Command Syntax
Pnputil
適用於: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista,2012,10,2016
Pnputil.exe is a command line utility that you can use to manage the driver store. You can use Pnputil to add driver packages, remove driver packages, and list driver packages that are in the store.
Syntax
pnputil.exe [-f | -i] [ -? | -a | -d | -e ] <INF name>
Parameters
-a
|
Specifies to add the identified INF file.
|
-d
|
Specifies to delete the identified INF file.
|
-e
|
Specifies to enumerate all third-party INF files.
|
-f
|
Specifies to force the deletion of the identified INF file. Cannot be used in conjunction with the –iparameter.
|
-i
|
Specifies to install the identified INF file. Cannot be used in conjunction with the -f parameter.
|
/?
|
Displays help at the command prompt.
|
Remarks
Examples
- pnputil.exe -a a:\usbcam\USBCAM.INF Adds the INF file that is specified by USBCAM.INF
- pnputil.exe -a c:\drivers\*.inf Adds all INF files in c:\drivers\
- pnputil.exe -i -a a:\usbcam\USBCAM.INFAdds and installs the specified driver.
- pnputil.exe –e Enumerates all third-party drivers.
- pnputil.exe -d oem0.inf Deletes the specified.
- pnputil.exe -f -d oem0.inf Forces the deletion of the specified INF file.
2017年10月2日 星期一
How to Startup Your Project or folder in Windows 2012 & 2016
In Windows Server 2008 R2, to define an application to be startup automatically for current user, one common way is to create an application shortcut and add it to startup folder. In Windows Server 2012,2016 you might find you can’t find this startup folder any more.
2017年9月22日 星期五
ubuntu 14.04.4 Make install step by step
make help
Prerequisites : Ubuntu 12.04 LTS - 32bits, ex:lsb_release -a
Cross-compile : arm-linux-gnu-gcc 4.x.x
Shell Environment : bash , ex:sudo dpkg-reconfigure dash - select No
Tool Install :
1.genext2fs
2.mkimage [u-boot]
3.genromfs
4.make version 3.81
5.file version 5.0 upper
6.sudo apt-get install lzop
7.sudo apt-get install libncurses5-dev liblz4-tool xmlto cramfsprogs squashfs-tools
8.sudo apt-get install texinfo
9.sudo apt-get install openssl libssl-dev [version 1.0.1]
10.sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
tar解壓失败:gzip: stdin: not in gzip format
****解壓縮:tar xvf -f filename.tar.bz2欲解壓縮的目錄*****
如出現上方解壓失敗 ,依紅色字體步驟方式。
tar解壓失败:gzip: stdin: not in gzip format
****解壓縮:tar xvf -f filename.tar.bz2欲解壓縮的目錄*****
如出現上方解壓失敗 ,依紅色字體步驟方式。
2017年9月3日 星期日
bash script array sample
To declare an array in bash
Declare and an array called array and assign three values:
array=( one two three ) |
More examples:
files=( "/etc/passwd" "/etc/group" "/etc/hosts" ) limits=( 10, 20, 26, 39, 48) |
To print an array use:
printf "%s\n" "${array[@]}" printf "%s\n" "${files[@]}" printf "%s\n" "${limits[@]}" |
To Iterate Through Array Values
Use for loop syntax as follows:
for i in "${arrayName[@]}" do : # do whatever on $i done |
$i will hold each item in an array. Here is a sample working script:
#!/bin/bash # declare an array called array and define 3 vales array=( one two three ) for i in "${array[@]}" do echo $i done |
訂閱:
文章 (Atom)

