Posts

Showing posts with the label apt-get

[Level 1] Useful packages.

List useful packages: =================================== {apt-get} [service] nfs-common openssh-server samba [utility] #### system #### htop <chinese input> # apt-get install scim scim-pinyin scim-chewing scim-tables-zh scim-qtimm im-switch # im-switch -s scim #### network #### chromium-browser openvpn wireshark transmission rdesktop #### media #### gimp avidemux(GTK+)/audacity freemind <flash plugin for google chrome> # sudo apt-get install flashplugin-nonfree # sudo cp /usr/lib/flashplugin-installer/libflashplayer.so /usr/lib/chromium-browser/plugins mimms ## download mms streaming #### tools #### meld vim tree adacontrol =< ptree minicom [developer tools] maven2 visualvm libssl-dev {non-apt-get} adobe acrobat reader. adobe flash plugin. ************************************************************************ install ia32-libs, wget first # sudo apt-get install ia32-libs wget way1: # dpkg -i --force-architecture AdbeR...

[Level 1] How to get the package file list which is installed by apt-get

If you want to get the file list of package which is installed by apt-get. You can use "dpkg" command, Ex. # dpkg -L memcached /. /etc /etc/default /etc/default/memcached /etc/init.d /etc/init.d/memcached /usr /usr/share /usr/share/doc /usr/share/doc/memcached /usr/share/doc/memcached/changelog.gz /usr/share/doc/memcached/NEWS.gz /usr/share/doc/memcached/README /usr/share/doc/memcached/protocol.txt.gz /usr/share/doc/memcached/README.Debian /usr/share/doc/memcached/copyright /usr/share/doc/memcached/changelog.Debian.gz /usr/share/doc/memcached/memory_management.txt.gz /usr/share/memcached /usr/share/memcached/scripts /usr/share/memcached/scripts/start-memcached /usr/share/memcached/scripts/memcached-tool /usr/share/memcached/memcached.conf.default /usr/share/man /usr/share/man/man1 /usr/share/man/man1/memcached.1.gz /usr/bin /usr/bin/memcached /usr/include /usr/include/memcached /usr/include/memcached/protocol_binary.h # Wish this helps. reg...

[Level 2] Use apt-get to Install VritaulBox from official repository

If you want to use apt-get command to install VirtaulBox from official resposity. The steps are as following: 1. Use browser to connect official website: http://www.virtualbox.org/ 2. Click the left side menu bar with item "download" 3. Select "VirtualBox 3.2.8 for Linux hosts" 4. Then you can see a section call "Debian-based Linux distributions" 5. add respository to your system. (modify /etc/apt/sources.list) Ex. lucid version # echo "deb http://download.virtualbox.org/virtualbox/debian lucid non-free" >> /etc/apt/source.list 6. get keys by wget # wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - 7. update your apt # sudo apt-get update 8. install by apt-get # sudo apt-get install virtualbox-3.2 Wish this helps. regards, Stanley Huang

[Level 3] Install script for Ubuntu apt-get Command

I wrote a shell script for install ubuntu package: #!/bin/bash #apt-get update; apt-cache search key word; ## update apt-get cache and search key word #apt-get install pkg-name; apt-get upgrade; ## install package #apt-get remove pkg-name;                   ## remove package #grep install /var/log/dpkg.log             ## apt-get install history #ls /var/lib/dpkg/info                      ## apt-get installed packages #dpkg -L tomcat6                            ## list apt-get specific installed packages ## show usage showUsage() {   cat <<EOF Usage:   $0 [-u] [-s] package1 p...