Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

This is how I would do it (That does not mean that is the most elegant solution but it should work):

I would put a little shell script in /etc/rc.local which will be executed every time you start your PC. Use gedit to create the script: gedit /etc/rc.local Then paste something like:

#/bin/bash
shutdown -h 22:00

Then make rc.local excutable: chmod +x /etc/rc.local.

You should be good to go...

Hi,

This is how I would do it (That does not mean that is the most elegant solution but it should work):work. Very likely that systemd.timer method is better.recommended). If you want it quick and dirty, take this:

I would put a little shell script in /etc/rc.local which will be executed every time you start your PC. Use gedit to create the script: gedit /etc/rc.local Then paste something like:

#/bin/bash
shutdown -h 22:00

Then make rc.local excutable: chmod +x /etc/rc.local.

You should be good to go...

Hi,

This is how I would do it (That does not mean that is the most elegant solution but it should work. Very likely that systemd.timer method is better.recommended). better/recommended). If you want it quick and dirty, take this:

I would put a little shell script in /etc/rc.local which will be executed every time you start your PC. Use gedit to create the script: gedit /etc/rc.local Then paste something like:

#/bin/bash
shutdown -h 22:00

Then make rc.local excutable: chmod +x /etc/rc.local.

You should be good to go...

Hi,

This is how I would do it (That does not mean that is the most elegant solution but it should work. Very likely that systemd.timer method is better/recommended). If you want it quick and dirty, take this:

I would put Use a little shell script in /etc/rc.local which will be executed every time you start your PC. Use gedit to create the script: gedit /etc/rc.local Then paste something like:

#/bin/bash
shutdown -h 22:00

Then make rc.local excutable: chmod +x /etc/rc.local.

You should be good to go...

Hi,

This is how I would do it (That does not mean that is the most elegant solution but it should work. Very likely that systemd.timer method is better/recommended). If you want it quick and dirty, take this:

Use a little shell script in /etc/rc.local/etc/rc.d/rc.local which will be executed every time you start your PC. Use gedit to create the script: gedit /etc/rc.local/etc/rc.d/rc.local Then paste something like:

#/bin/bash
shutdown -h 22:00

Then make rc.local excutable: chmod +x /etc/rc.local/etc/rc.d/rc.local.

You should be good to go...

Hi,

This is how I would do it (That does not mean that is the most elegant solution but it should work. Very likely that systemd.timer method is better/recommended). If you want it quick and dirty, take this:

Use a little shell script in /etc/rc.d/rc.local which will be executed every time you start your PC. Use gedit to create the script: gedit /etc/rc.d/rc.local Then paste something like:

#/bin/bash
#!/bin/bash
shutdown -h 22:00

Then make rc.local excutable: chmod +x /etc/rc.d/rc.local.

You should be good to go...