close

 

Some Linux command. (Ubuntu 12.04.3)

 

// Network


$ sudo ifconfig eth0 [IP Address]
$ sudo route add default gw [Gateway IP]


// apt server


1. change apt server


$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
$ sudo vi /etc/apt/sources.list
:1,$s/tw/us/g
:wq
$ sudo apt-get update
$ sudo apt-get dist-upgrade

2. search & install

$ sudo apt-cache search [name]
$ sudo apt-get install [name]


// software

$ sudo apt-get install vim
$ sudo apt-get install git
$ sudo apt-get install nfs-kernel-server
$ sudo apt-get install codelite codelite-plugins
$ sudo apt-get install virtualbox-ose-guest-utils

 

// su: Authentication failure

$ sudo passwd root
$ su

 

 

 

arrow
arrow
    文章標籤
    linux command ubuntu
    全站熱搜

    Cuby 56 發表在 痞客邦 留言(0) 人氣()