軟體安裝
更新: apt-get update
搜尋: apt-cache search xxx
安裝: apt-get install xxx yyy zzz
移除: apt-install remove xxx
apt-get install apt-utils
OpenSSH
網路設定
Ubuntu Server 14.04改變網路地址重新啟動的方式
Server 菱形符號
1 2 3 4 |
sudo vim /etc/environment LANG="en_US.UTF-8" LC_ALL="zh_TW.UTF-8" LANGUAGE="en_US.UTF-8" |
指定 DNS
How do I set my DNS on Ubuntu 14.04?
1 |
sudo vim /etc/resolvconf/resolv.conf.d/base |
1 |
nameserver 8.8.8.8 |
1 |
sudo resolvconf -u |
FFmpeg
1 2 3 |
sudo apt-add-repository ppa:jon-severinsson/ffmpeg sudo apt-get update sudo apt-get install ffmpeg |
Samba 寫入
Ubuntu 14.04 LTS Samba Server Fully accessed shared directory Server World
Apache Log TO MySQL
http://httpd.apache.org/docs/2.4/logs.html
http://serverfault.com/questions/278418/why-is-this-apache-php-piped-log-script-not-working-properly
讓 Linux 擁有 FreeBSD 方便的按上鍵搜尋關鍵字功能
FreeBSD csh style history auto completion in bash
1 |
vim ~/.bashrc |
1 2 |
bind '"\e[A": history-search-backward' bind '"\e[B": history-search-forward' |
開機執行指令
1 |
vi /etc/rc.local |
1 |
chmod 666 /dev/video0 |
NTP Server
ntp server installation on ubuntu
apt-get install ntp
vi /etc/ntp.conf
server 10.1.1.2
restrict 10.0.0.0 mask 255.0.0.0
/etc/init.d/ntp restart
ntpdate -d -s 10.1.1.1
主機負載
apt-get install sysstat
1 |
$cpu = shell_exec( 'iostat -c' ); |
網路頻寬
1 |
preg_match_all( "/\((.*)\)/U", $network, $out, PREG_PATTERN_ORDER ); |
GUI
http://www.htpcbeginner.com/install-gui-on-ubuntu-server-14-04-gnome/
1 2 |
sudo apt-get install --no-install-recommends lubuntu-desktop init 6 |
—
592 total views, 1 views today