Install - <b>rpm -i ***.rpm</b>
Upgrade -<b>rpm -Uvh ***.rpm</b>
Erase/uninstall - <b>rpm -e package-name</b>
Force installation -<b>rpm -Uvh --force --nodeps ***.rpm</b>
Query package - <b>rpm -q package-name</b>
Firstly edit /etc/apt/sources.list and add your closest mirror and cds with debian on:
Example
deb ftp://ftp.us.debian.org/debian stable main contrib non-free
deb cdrom:[Debian GNU/Linux 2.2 r0 _Potato_ - Official i386 Binary-1 (20000814)]
then run apt-get update
<b>DPKG </b>
install - <b>dpkg -i package.deb </b>
remove/uninstall - <b>dpkg -r package</b>
List files asscoiated with package -<b></b><b>dpkg -L package</b>
Version - <b>dpkg -l package</b>
Unpack A deb - <b>dpkg -unpack package.deb</b>
<b>APT</b>
install - <b>apt-get install <package></b>
search - <b>apt-cache search <package></b>
remove - <b>apt-get remove <package></b>
(When using apt-get to download off the Internet, the .deb files are placed in /var/cache/apt/archives)
<b>Network Side </b>
Allow Hosts -edit<b>/etc/hosts.allow</b><b> #Example </b>Service:IP-ADDRESS
Deny Hosts - edit <b>/etc/hosts.allow # Example </b>ALL:ALL
Hosts on Network - edit<b>/etc/hosts</b><b></b>
#Example IPADDRESS HOSTNAME HOSTNAME.DOMAINNAME
Set Hostname - <b>hostname <hostname></b>
Nameservers - edit <b>/etc/resolv.conf</b>
<b></b>
<b>cp linux-*.*.*.tar.gz ; tar zxvf linux-*.*.*.tar.gz ; mv linux /usr/src/linux-*.*.* </b>
cd /usr/src/linux ; make menuconfig (go to bottom save config to a file /usr/src/oldconfig)
rm /usr/src/linux ; ln -s /usr/src/linux-*.*.* ; cd /usr/src/linux
make menuconfig (go to bottom load up config file /usr/src/oldconfig, save and and exit)
make dep; make clean; make bzImage; make modules; make modules_install; make install ; reboot
<b> Sound Configuration</b>
Redhat Distribution: run <b>sndconfig</b>
In Debian: Compile soundcard module into kernel
Edit <b>/etc/modules</b>
In Slackware: Compile module into kernel
Edit<b>/etc/rc.d/rc.modules</b>
<b>Useful Information </b>
run cat on these files - <b>cat /proc/<filename></b>
Install nmap -<b>nmap <Your IP></b> <- Will list ports open
Edit <b>/etc/fstab</b>- place in partitions and drives to be mount
Edit <b>/etc/inittab</b>- Change Runlevel (ie X or Console)
Edit <b>/etc/inetd.conf</b>- Add/Remove Services
Edit /etc/syslog.conf - Information on log files
Useful commands - <b>free ; ps aux ; top</b>
Changing Window Manager in Debian - <b>update-alternatives x-window-manager</b>
Changing Window Manager in Slackware -<b>xwmconfig</b>
Progammer? Use Vim? - Edit <b>.vimrc</b>add these lines
<b>set autoindent </b>
syn on
set cindent
Themes
<b>mv wm-theme.tar.gz ~/GNUstep/Library/WindowMaker </b>
cd ~/GNUstep/Library/WindowMake
tar zxvf wm-theme.tar.gz
(Right click, Work space>Appearance&gt;Themes&gt;WM-theme)
<b>mv e-theme.tar.gz /usr/share/enlightenment/themes/ || ~/.enlightenment/themes/</b>
run <b>e-conf</b>
<b>mkdir ~/themes ; mkdir ~/themes/gnome/</b><b> </b>
mv gtk-theme.tar.gz
gnomecc (Desktop &gt;Theme selector)
<b>cp sawfish-theme.tar.gz /usr/share/sawmill || ~./sawmill/themes/</b>
<b>本文轉自孤舟夜航之家部落格51CTO部落格,原文連結http://blog.51cto.com/cysky/559909如需轉載請自行聯系原作者</b>
<b>cysky</b>