I simply need help compiling a script that i can run on my server so i can install a lot of stuff i use at once. In the order in which i post it
i need it to add the following code to my home Directory in the file ".bash_aliases"
Code:
alias upgradeALL='sudo apt update && sudo apt upgrade'alias Dlocalhost_0='export DISPLAY=localhost:0'
alias Dlocalhost_1='export DISPLAY=localhost:1'
alias Dlocalhost_2='export DISPLAY=localhost:2'
alias AliasN='source ~/.bash_aliases'
alias C_DRIVE='cd /mnt/c'
alias nano-alias='nano ~/.bash_aliases'
i also need to add the following code to
/etc/init.d
as a standalone file, like "custom.sh"
Code:
exec "scource ~/.bash_aliases"
then it to run this command, although this can be a separate SH file also
Code:
exec "sudo dpkg -i ~/OPENBOX.deb"
exec "sudo reboot"
If you have any help, please offer it
Bookmarks