ubuntu 裝置驅動資料收集
ubuntu 裝置驅動資料收集
$hwdb-gui -h
說明:之後會有一個gui介面的裝置驅動的硬體資料收尋,如果你希望把你的硬體資料提交給官方只要輸入幾項欄位即可,至於在網路上哪個位置我也不知道。
這是一個讓官方方便開發的方式之一。
來源:
/usr/share/doc/hwdb-client-common
不過這個命令似乎只適用於 ubuntu
似有知 而無知 人生如夢幻泡影 如露亦如電 應做如是觀
ubuntu 裝置驅動資料收集
$hwdb-gui -h
說明:之後會有一個gui介面的裝置驅動的硬體資料收尋,如果你希望把你的硬體資料提交給官方只要輸入幾項欄位即可,至於在網路上哪個位置我也不知道。
這是一個讓官方方便開發的方式之一。
來源:
/usr/share/doc/hwdb-client-common
不過這個命令似乎只適用於 ubuntu
一個好用的安全性檢查工具 chkrootkit 執行它可快速檢查可疑的程序、後門、rootkit...等等,是一個非常有效率的安全管理工具。
至於如何執行它,我們通常就在終端機輸入像是這樣:$sudo chkrootkit
可檢查可疑的二進位檔$sudo chkrootkit -x |more
路徑內的系統命令$sudo chkrootkit -x |egrep'^'
當發現系統已中rootkit木馬,這時就很難處理,因系統已無法信任得重新安裝系統。
更多的chkrootkit使用說明、訊息以及用法,在chkrootkit官方網站README這個網頁。
關於文字命令的使用都是許多新手共同的困擾,不過你也不必太擔心,因為網路上已經都替你準備好了!如果你有以下的問題像是系統管理類的命令有哪些呢?網路管理的命令又有哪些?檔案搜尋、管理、替換、輸入、輸出等又是哪些?about linux是一個非常棒的網站,它至少都替你準備好了,你甚至可以不用購買linux命令或unix命令之類的書,但你得有網路,或是你已經把它們整理好印出來了,否則像是命令的屬性及語法等等都已經給你參考,只差會不會應用了!
書籍方面小弟有一本《LINUX IN A NUTSHELL指令參考手冊》由台灣歐萊禮出版,或許是本不錯的選擇,但缺點在書籍排版上很不容易找到要找的命令。
提供一些關於linux commands的網站
linux系统管理命令集
http://os.51cto.com/art/200512/14196.htm
LinuxCommand.org
http://linuxcommand.org/index.php
Alphabetical Directory of Linux Commands
http://www.linuxdevcenter.com/linux/cmd/
Firxfox
Firefox on Linux
http://wiki.moztw.org/index.php/Firefox_on_Linux
設定檔詳解
http://wiki.moztw.org/index.php/%E8%A8%AD%E5%AE%9A%E6%AA%94%E8%A9%B3%E8%A7%A3
如何撰寫install.rdf
http://wiki.moztw.org/index.php/%E5%A6%82%E4%BD%95%E6%92%B0%E5%AF%ABinstall.rdf
解決Firefox耗用資源的對策
http://wiki.moztw.org/index.php/%E5%B9%AB%E4%BD%A0%E7%9A%84Firefox%E6%B8%9B%E6%B8%9B%E8%82%A5-%E8%A7%A3%E6%B1%BAFirefox%E8%80%97%E7%94%A8%E8%B3%87%E6%BA%90%E7%9A%84%E5%B0%8D%E7%AD%96
以下是小弟讀《UNIX與INTERNET安全防護-系統篇》由台灣歐萊禮出版之筆記。
UNIX(clone) system 大部分有兩種形式的存取控制分別是:
第一種所謂的強制性存取控制(Mandatory Access Controls,MAC)它以資料標籤為基礎。
第二種為隨意存取控制(Discretionary Access Controls,DAC)。
多個帳號使用相同的UID(使用者識別碼)情況:
wheel群組是表示所有系統管理者所屬的群組,而UNIX是以GID(群組識別碼)來進行權限設定。例如當你需要blogger群組的權限可以利用
$newgrp blogger
切換群組來暫時獲得該群組所有權限。
0
意見
|
標籤: 自修, 指令用法, Why and How
雖然做翻譯對小弟來說根本是件不可能的事,但真的沒辦法了,因為想使用irc的關係,非得為自己整理一下翻出來的結果不可,因此這份文件充其量只是自己日後使用上得參考資料罷了!
翻譯真的很耗時,尤其親身靠工具及辭典翻譯後感受更深。向那些為使用者辛苦執行翻譯工程的人員,至上萬分敬意。
花了約5個小時時間耗在這份翻譯文件上,好不容易翻好了卻是我要睡得時候了。
這份在man上的說明文件很長,小弟只是想把它翻譯一下方便使用,如有侵權小弟馬上刪除。
Ubuntu使用者可以在套件管理程式取得ircII的套件。
因小弟英文能力非常破,使用的工具是google 翻譯及一些手邊上的英漢字典,如語意翻得不正確敬請糾正^^
以下原文譯自ircII命令說明(請參考man irc)
ircII - interface to the Internet Relay Chat system
The ircII program is a full screen, termcap based interface to Internet
Relay Chat. It gives full access to all of the normal IRC functions,
plus a variety of additional options.
Automatically join channel chan .
Set the IRC port number to portno (default: 6667, the standard
IRC port). Only supply this if you connect to a server which
uses a port other than 6667.
Set the ICB port number to portno (default: 7326, the standard
ICB port).
Load the .ircrc file before connection to a server, not after-
wards.
Use flow control (^S and ^Q) to stop/start the display. Nor-
mally these are both bound to other functions within irc. This
switch is ignored if the -d switch is used.
Don't use flow control (^S and ^Q) to stop start the display.
This switch is ignored if the -d switch is used.
Don't start up the ircio process to connect to the IRC server
(default).
Start up the ircio process to connect to the IRC server.
Don't use the termcap ti and te sequences when starting and
exiting (default).
Do use the termcap ti and te sequences when starting and exiting
if they exist.
Start in "dumb" mode. All input is taken directly from stdin
and all output goes to stdout without using any of the term-
cap(5) screen control codes.
Set the nickname (overrides the environment variable IRCNICK;
default: the username).
Set the list of servers with which irc will try to connect upon
startup. This list is also used by the program's /server com-
mand. The format for lines in the list is:
for IRC connections. For
ICB connections, the format is:
with group being
the initial group and mode being the initial group mode. See
/HELP ICB for more information about ICB.
If the hostname is in the format :servergroup:host.com then
servergroup is taken to be the Server Group for this server
entry.
This adds the normal irc server list to the command line list of
irc servers.
Print the version and release date of ircII and exit.
Start up irc quickly -- don't load the IRCRC file.
This option instructs ircII to use the given hostname as the
local address. Useful only on multi-homed hosts.
Use ICB connections by default.
Use IRC connections by default.
The screen is split into two parts, separated by an inverse-video sta-
tus line (if supported). The upper (larger) part of the screen dis-
plays responses from the IRC server. The lower part of the screen (a
single line) accepts keyboard input.
Some terminals do not support certain features required by ircII, in
which case you receive a message stating this. If this occurs, try
changing the terminal type or run ircII with the -d option.
Any line beginning with the slash character '/' is regarded as an ircII
command (the command character may be changed; type '/help set cmd-
char'). Any line not beginning with this character is treated as a
message to be sent to the current channel. To produce a listing of
commands, type '/help ?'. To receive information about the commands
type '/help'.
When ircII is executed, it checks the user's home directory for a
.ircrc file, executing the commands in the file. Commands in this file
do not need to have a leading slash character '/'. This allows predef-
inition of aliases and other features.
Connect IRC to port number 5555 of the default host and enter on
channel #users.
Use the nickname "Mermaid".
Use the nickname "Mermaid" and the modified server list.
Use the nickname "piglet3", initially connecting to
irc.au.lamenet.org, with also irc.us.lamenet.org added to the
server list, both having a server group name "ln".
Use the nick "oink" making an ICB connection to www.icb.net.
Interface IRC with a program called elisa.
Set the username (if not specified elsewhere) to "Mermaid". The
user's name (when provided inside parentheses in response to a
WHOIS command) is set to "The one and only :)".
the executable program
default initialization file
directory you can put your own ircII scripts
into, that can then be loaded with /load
directory containing message-of-the-day, master
initialization, help files and ircII scripts
/etc/irc/script/local is the master initializa-
tion file for the site, loaded before .ircrc is.
This is a Debian GNU/Linux conffile.
/usr/share/ircII/ shared repository for help,
translation tables and distributed scripts.
All of the ircII commands are fully described in the help files pack-
age. The best way to start here is with the /HELP ? command as this
prints a listing of all available help files.
handles the following signals
Closes all DCC connections and EXEC'ed processes.
Drops ircII back to the command line.
It can be helpful to predefine certain variables in in the .cshrc,
.profile, or .login file:
The user's IRC nickname.
The user's IRC realname (otherwise retreived from /etc/passwd)
The default IRC server(s) (see server option for details)
The file containing the default list of server(s), usually PRE-
FIX/lib/irc/ircII.servers. This file should contain one server
entry per line.
Overrides the default home path in /etc/passwd.
The type of terminal in use.
uses the following files under the library directory, usually
PREFIX/share/irc.
The initial list of servers if none are provided on the command
line.
Message of the day. This file is displayed only once each time
it is changed.
呼,小弟在linux上root權限因之前不夠謹慎的原因,而失去sudo的權限完全不能管理系統,該事件顯得很不安全因為如此的話既不能做系統的安全更新,而只有一般使用者的權限是根本不能管理系統的,舉凡更改檔案權限等。
事件說明
小弟在使用者及使用者群組管理工具中(user-admin)把管理此系統的權限取消,而把管理此系統的權限在root帳戶上打勾,也就因為這樣的操作失去了sudo的權限,在當初是萬萬沒有料到的,因為我是在想既然root才能管理系統,為何預設沒有把管理此系統給選上呢?
現在小弟明白了,呼,真是有驚無險阿!
解決的方法是在這份網頁上找到的
如何救回root帳戶呢?
沒錯,就是救回。如果你已失去root管理權限,在該系統是完全沒辦法修改的,因為你沒有root群組的權限,所以怎麼想辦法也是沒用的,只能在開機時進入救援模式(文字命令)。
accept命令
名稱
accept/reject-接受/拒絕傳送目的地
內容提要
accept[-E] [-U 用戶名] [ - h主機名[ :port]目的地
reject[-E] [-U用戶名] [ - h主機名[ :port] [ - r原因] 目的地
描述
接受指示printing system到接受到特別的檔案目的地。
拒絕指示印刷系統拒絕列印作業向特別檔案目的地。一個 - r參數設 定為原因,拒絕列印作業。如果沒有指定之所以默認為"原因不明" 。
Continuation study
The First Ten Steps to Securing a UNIX Host
http://people.arsc.edu/~lforbes/cug/HHPaper.html
http://www.linux-sec.net/hacking_tools.gwif.html
http://wiki.linuxquestions.org/wiki/Security
$lastlog -b 6
顯示過去6天以來系統login資訊
freecdb
可以自己建立一個屬於自己的搜尋引擎、用戶端的個人資料庫套件
如果遇到不能更新套件時,可使用文字命令
sudo apt-get -f -y upgrade
意思就是遇到錯誤也繼續升級
sudo apt-get -f -y dist-upgrade
遇到錯誤也繼續版本升級
sudo dpkg --configure -a
MS06-001駭客實作-01
http://tw.youtube.com/watch?v=DT7SUka7J-s
Hacker TV
http://www.youtube.com/watch?v=QgMOSB5yg_4
Pizza Party (Unix)
http://www.youtube.com/watch?v=x7pPajOvQGo
這是真的嗎?還是噱頭?
LPI - Exam Emulation
http://www.linux-praxis.de/lpisim/lpi.html
在Linux命令列輸入$banner yugu會產生以#字符號輸出的yugu圖案,並可以把它列印出來,只要加個lpr就會送到佇列區等待列印。
但只能產生大型的文字圖案,並不能產生叫小型的,輸出選項有個寬度可以設定當字符產生時是橫向的,因此不適合當作是簽名檔,適合拿來當寬度較寬的banner海報。
banner命令是bsd授權版
什麼是ARP呢? http://tw.trendmicro.com/tw/support/tech-support/board/tech/article/20070926085046.html
ARP概念
http://www.inetdaemon.com/tutorials/lan/arp.shtml
http://forum.icst.org.tw/phpBB2/viewtopic.php?t=12710
perl spider http://www.google.com.tw/search?complete=1&hl=zh-TW&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=perl+spider&spell=1
arp man
http://spectral.mscs.mu.edu/NetworksClass/Materials/arp.html
ARP cache命令列使用
-v 詳細模式
-t 類型 ether or ax25
-a 顯示主機項目
-d 移除主機項目
-s 新增一筆主機硬體位址也就是MAC ADDRESS
-f 從檔案讀取並新增至ARP cache
管理arp的套件有arpalert、arping、arp-scan、arptables、arpwatch、farpd、nemesis等
適用系統版本:
Ubuntu-feisty
服用方式:
sudo gedit /etc/apt/sources.list
tripwire 簡易安裝指南
http://www.rtfiber.com.tw/~changyj/linuxtips/html/tripwire-easy.html
系統稽核工具
Tripwire安裝
http://blog.longwin.com.tw/archives/000005.html
Tripwire 系統指紋比對系統!
http://www.adj.idv.tw/phpBB2/viewtopic.php?p=189&sid=88053850eb56956b56f49cc4348734fe
Learning Notes:
ubuntu套件管理程式搜尋tripwire,安裝過程設置密碼分別為:
site pass phrase(加密twpol.txt及twcfd.txt用);
另一個密碼選項是local pass phrase(加密指紋資料庫用)
兩個密碼選項共輸入兩次加以確認。
twcfg.txt:可用來設定tripwire工作環境
twpol.txt:指定tripwire對哪些檔案進行監控
DBFILE為指紋資料庫檔名
REPORTFILE為檢測報告檔
以下以root終端為例,或者也可以使用sudo方式
#tripwire m i /*建立指紋資料庫*/
#tripwire -m c --interactive /*檢查並更新指紋*/
rm [file] /*是移除檔案命令*/
在終端機上登入root
以sudo登入root:sudo -i
切換到root:sudo -s -h
rpm轉deb
安裝alien:sudo apt get install alien
sudo alien rpm檔(檔案名?)之後會產生相同的deb檔,再使用
sudo dpkg -i xxx.deb
啟動程式
輸入程式名
改變檔案資料夾擁有者
sudo chown 使用者/檔案位置
rpm查找軟件
rpm -qa xxx
移除軟件
例:rpm -e firefox -1.0.1-1.3.2
tar.gz(bz.bz2)為沒編譯過的源碼,需編譯後安裝