您的位置:首页 > 运维架构

how to see ubuntu server or desktop

2017-02-10 10:45 309 查看
christine
christine@
-All-Series:/etc$ sudo lsb_release -a
[sudo] password for christine: No LSB modules are available.Distributor ID:    UbuntuDescription:    Ubuntu 16.04.1 LTSRelease:    16.04Codename:    xenial
christine
-All-Series:/etc$ cd ~u-All-Series:~$ cat /proc/versionLinux version 4.4.0-62-generic (buildd@lcy01-30) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017-All-Series:~$ dpkg --get-selections | grep linux-imagelinux-image-4.4.0-31-generic            installlinux-image-4.4.0-62-generic            installlinux-image-extra-4.4.0-31-generic        installlinux-image-extra-4.4.0-62-generic        installlinux-image-generic                install
dpkg --get-selections | grep linux-image | grep -v deinstall

If the currently installed linux-image package contains the word "server" in it, then you're running Ubuntu server.
For example, the current latest kernel package for Ubuntu 10.10 desktop:
linux-image-2.6.35-22-generic

And server:
linux-image-2.6.35-22-server

For a more generic package that should be the same across different versions of Ubuntu,
linux-image-generic
is the default package for Ubuntu desktop and
linux-image-server
is the default for the server edition.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: