![]() ![]() That’s not how most people do it but it’s an option.īut this works only if you have direct access to the server. You may choose to install a desktop environment on your server and use it graphically. ![]() Most people are conditioned to use a computer graphically after all. Some people do not feel comfortable with the idea of doing everything using commands in the terminal. Typically, you have to manage a server from the command line Do you really need to install GUI on your server? You should have decent knowledge of the Linux commands for this purpose. That’s considered a waste of resources in the server world.Īs a server user (or sysadmin), you are expected to use and manage your system through command line. You may use an Ubuntu server on 512 MB of RAM but an Ubuntu desktop will need at least 2 GB of RAM to function decently. The graphical desktop environment consumes a lot of system resources and for this reason, the server operating systems do not include a desktop environment by default. A Linux server intends to use the system resources on running services. Ubuntu Server is basically a striped down version of Ubuntu desktop without the graphical modules. the desktop environment in the server edition. If you compare Ubuntu desktop with server, the main difference will be the absence of GUI, i.e. This was a compilation of different ways to shut down the Ubuntu server and if you have any queries, let me know in the comments.Do you want to install GUI on your Ubuntu server? You can totally do that in most scenarios and I am going to discuss the steps in details in this tutorial.īut before you see that, let me tell you why the server edition does not come with GUI and in which cases you could install the GUI on your server. And if you're curious, k stands for kidding! When used with the -k option, it initiates a fake shutdown. You can use it with -r to restart your Ubuntu system instead of shutdown. Shutdown Ubuntu server using the poweroff commandĪ yet another way of shutting down your system from the terminal and that's what I generally use to shut down my servers! sudo poweroff Wrapping Up And when used at runlevel 0, it will shut down the system. The init (initialization) is the parent of every process with a PID of 1. Shutdown Ubuntu server using the init command sudo systemctl poweroffĪnd it gets the instant effect! 3. ![]() Using systemd is debatable but Ubuntu utilizes it by default so let's put it to work. When the countdown is equal to or less than 5 minutes, it won't allow any new login activity. For example, let's schedule it to shutdown after 15 minutes: sudo shutdown +15 To shut down your system immediately, pair the shutdown comment with now: sudo shutdown nowĪnd it also allows you to schedule shutdown in Ubuntu. It schedules a shutdown after one minute. While I've already shown the usage of the shutdown command at the beginning of this tutorial, it won't shut down the system immediately. Shutdown Ubuntu server with the shutdown command That might seem elementary, but it's good to have a note of it before you run the shutdown command.īut wait, you can't expect Linux to have a single solution. If you are using Ubuntu on a cloud server like Linode or DigitalOcean, then you can 'power on' the system from your account.If you are doing it on a remote system, make sure that there is a way to turn on the machine. If you are using Ubuntu on a bare metal system (physical system), you need to have access to it to turn it on again.Well, you can use the shutdown command: sudo shutdownīefore you do that, you should keep a couple of things in mind because unlike rebooting Ubuntu, your system needs to be turned on explicitly after a shutdown. Want to shut down your Ubuntu system from the command line? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |