Nuxified

FOSS technologies explained

  • Useful Articles
  • Blogs
  • Images
  • Tips
  • Archives

January 18, 2010

Auto shutdown your computer in Linux

When going to sleep I sometimes like to leave my computer on playing ambient music from an internet radio station. It’s a really good intro to the dreams. Smiling

However I don’t want to have the computer play and be turned on all the time so I use a simple auto shutdown program to set the amount of time in which it should shut itself off.

There are two relatively similar and simple programs that do that, one suitable for KDE and another for GNOME (or Xfce). Both sit in your tray and count the time.

KShutdown

KShutdown allows you to set the exact date and time or “time from now” which is what I and likely you will want. Just set the time in hours or minutes and click ok. You can also set it to initiate when a certain application you select closes which may come in handy sometimes as well.

In addition to auto shutdown you can also set it to auto restart, hybernate, suspend (sleep), lock screen or logout. Even that’s not all though. There’s also an “extras” option which allows you to set a specific command such as stopping a particular program or terminate a connection. You can add more programs available for auto stopping as well.

GShutdown

GShutdown also allows you to set the date and time or time from now that has to pass for auto shutdown to be initiated and it can initiate auto restart or logout (end session) as well. It doesn’t have the option to sleep or hybernate however.

In preferences you can select the method of shut down which may depend on which desktop environment (KDE, GNOME or Xfce) or display manager (kdm or gdm) are you using. You can also specify the exact command it should initiate before executing the auto shutdown, restart or logout.

Enjoy!

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

Article by libervisco / Community Blogs

Learn Unix

I run Unix Tutorial website and help anyone interested to pick up Unix skills. If you have questions or just want to share your ideas – please join the Unix Tutorial on Facebook.

Tech Stack Solutions

Tech Stack Solutions is my company that provides Unix support. Sign up or simply get in touch to find out how I can help!

Search this Website

You May Also Like

Recent Posts

  • Advice on using SUDO
  • FFmpeg 4.0
  • KDE Plasma 5.9.0 Release
  • How to Install Ubuntu Linux without a DVD or USB
  • How to Securely Save All Your Passwords with Keepass
  • 9 Signs You Should Use Linux on Your Computer
  • The Easiest Way to Optimize Your MySQL Database Performance
  • Setting up a Linux Web Development Environment in Windows
  • Hunting Down Disk Space Hogs on Linux Command Line
  • 6 Simple Android Apps for Monitoring and Managing Your Linux Server

Archives

Categories

  • Community Blogs
  • Images and Screenshots
  • News
  • Technical Topics
  • Useful Articles

Basic Unix Commands

Basic Unix Commands
  • ls command
  • mkdir command
  • man command in unix
  • cd command - change directory
  • uname command

Advanced Unix Commands

Advanced Unix Commands
  • ln command - symlinks
  • tune2fs unix command - filesystem parameters
  • du command - disk usage
  • lsb_release command
  • find unix command

Unix Reference

Unix Reference
  • SSH port forwarding
  • unix commands
  • visudo tutorial
  • mtime unix
  • lrwxrwxrwx
  • Unix Tutorial digest

Unix Books

Unix Tutorials

Unix How-Tos
  • check raspbian version
  • autostart in KVM
  • List files in Ubuntu package
  • check CentOS version
  • create bootable USB in MacOS
  • Useful Articles
  • Blogs
  • Images
  • Tips
  • Archives

Copyright © 2023 · Education Pro Theme on Genesis Framework · WordPress · Log in