Ubuntu:修订间差异

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
第17行: 第17行:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
sudo fallocate -l 512M /swapfile; sudo chmod 600 /swapfile; sudo mkswap /swapfile; sudo swapon /swapfile; echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
sudo fallocate -l 512M /swapfile; sudo chmod 600 /swapfile; sudo mkswap /swapfile; sudo swapon /swapfile; echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
</syntaxhighlight>
== 使用者 ==
<syntaxhighlight lang="bash">
sudo useradd -g staff -G adm,sudo -m -s /bin/zsh gslin; sudo passwd gslin
</syntaxhighlight>
</syntaxhighlight>



2019年7月29日 (一) 14:21的版本

Ubuntu是一種Linux作業系統。

安裝

apt

這邊列出常用的套件:

sudo apt install -y apache2-utils build-essential curl dstat git jq moreutils most mtr-tiny net-tools p7zip-full rsync sharutils software-properties-common sysstat unrar unzip vim-nox wget zsh zsh-syntax-highlighting; sudo apt clean

設定

在VPS或是雲端上的機器通常會利用swapfile增加一些記憶體使用空間:

sudo fallocate -l 512M /swapfile; sudo chmod 600 /swapfile; sudo mkswap /swapfile; sudo swapon /swapfile; echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

使用者

sudo useradd -g staff -G adm,sudo -m -s /bin/zsh gslin; sudo passwd gslin

外部連結