Let me start by stating that I have scoured the forums and google for an article related to the specific situation that I am trying to implement. Please excuse me if the question has already been answered... and if it has, please send me the link so I can better understand the solution, without being ridiculed
I am currently running Linux Mint 17.1 (rebecca) using the XFCE interface.
I am using /etc/rc.local to automate system updates when the system is booted. I am able to get the following configuration to work:
Pasted /etc/rc.local:
Code: Select all
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
apt-get update && apt-get dist-upgrade -y
exit 0
The end result that I am aiming for is to have this script launch in a terminal window so I can monitor the actions that are taking place.
First, I tried editing the line in rc.local to the following:
Code: Select all
xfce4-terminal -e "apt-get update && apt-get dist-upgrade -y"
Pasted update.sh
Code: Select all
apt-get update && apt-get dist-upgrade -y
Code: Select all
xfce4-terminal -e "/home/user/update.sh"
I have attempted to be as descriptive as possible in my query, but if I am lacking some info that may be crucial to reaching a resolution to this issue, please do not hesitate to ask me.
Thank you in advance for any insight that you can provide to help me with this.