GNU/Linux >> Linux の 問題 >  >> Ubuntu

Ubuntuデスクトップ14.04をサーバーに変換しますか?

次のコマンドを使用して、Ubuntu12.04デスクトップをサーバーに変換するためのいくつかのソリューションを見つけました。

sudo apt-get install tasksel
sudo tasksel remove ubuntu-desktop
sudo tasksel install server
apt-get install linux-server linux-image-server
apt-get –purge remove lightdm

Ubuntu14.04と同じプロセスかどうか知りたいだけです。私がこれを行う必要がある理由は、moodleをインストールする必要があり(一部の人々はこれを行う他の理由があるかもしれないので、これが彼らにも役立つことを願っています)、デスクトップではなくUbuntuサーバー上で実行する必要があるためです。
ありがとう

ベストアンサー

注: 次のコマンドは、12.04より古い/古いUbuntuバージョンにのみ有効です。サーバーFAQを参照してください。注意:システムが役に立たなくなる可能性があります。

回答ありがとうございますが、更新行を追加する必要があることがわかりました

sudo apt-get update

次の行も修正しました

sudo apt-get -purge remove lightdm

宛先

sudo apt-get purge lightdm

修正されたスクリプトの完全版は以下のとおりです

# update
sudo apt-get update

# install the 'tasksel' package so we can remove the desktop image       
sudo apt-get install tasksel

# remove the desktop image
sudo tasksel remove ubuntu-desktop

# tell tasksel to start the server image setup
sudo tasksel install server

# install the server images
sudo apt-get install linux-server linux-image-server

# remove lightdm
sudo apt-get purge lightdm

# remove all packages no longer required (~400 MB)
sudo apt-get autoremove

Ubuntu
  1. Ubuntuサーバーとデスクトップ:違いは何ですか?

  2. Ubuntu 13.04 /Ubuntu12.10にVNCサーバーをインストールします

  3. UbuntuServer21.04にAnsibleをインストールする方法

  1. UbuntuにNFSサーバーをインストールする

  2. Ubuntu16.04でのOpenNMSによるサーバー監視

  3. UbuntuサーバーにGUIをインストールする方法(簡単なガイド)

  1. Ubuntu20.04にApacheTomcat9サーバーをインストールします

  2. Ubuntu22.04にSSHサーバーをインストールする方法

  3. UbuntuサーバーからUbuntuデスクトップをインストールする方法