Skip to main content

Thread: alias to run at boot?


i wondering if there way run alias @ bootup on admin account. if run @ boot guest account @ public library guest account doesn't have sudo privileges. here alias run daily
code:
alias ud='sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get clean -y'

place command:
code:
/usr/bin/apt-get update && /usr/bin/apt-get upgrade -y && /usr/bin/apt-get dist-upgrade -y && /usr/bin/apt-get clean -y
in /etc/rc.local file above
exit 0
line, reads:
code:
#!/bin/sh -e  #  # rc.local  #  # script executed @ end of each multiuser runlevel.  # make sure script "exit 0" on success or other  # value on error.  #  # in order enable or disable script change execution  # bits.  #  # default script nothing.    /usr/bin/apt-get update && /usr/bin/apt-get upgrade -y && /usr/bin/apt-get dist-upgrade -y && /usr/bin/apt-get clean -y  exit 0


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] alias to run at boot?


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support