Crmgo Blog

Installing *.deb and adding to autostart from the command line

Installing *.deb and adding to autostart from the command line

For Dima: for example, our file is /tmp/ProvideSupportConsole-debian_5.4.4_amd64.deb. Installation from the terminal: sudo dpkg -i /tmp/ProvideSupportConsole-debian_5.4.4_amd64.deb and adding to autostart: sudo sed '3a\ ProvideSupportConsole' /etc/rc.local > /tmp/rc.local sudo mv /etc/rc.local /etc/rc.local.old sudo mv /tmp/rc.local /etc/rc.local All of this goes into...

Installing *.deb and adding to autostart from the command line

Specifically for Dima:

for example, our file is /tmp/ProvideSupportConsole-debian_5.4.4_amd64.deb

installation from the terminal:

sudo dpkg -i /tmp/ProvideSupportConsole-debian_5.4.4_amd64.deb

and we add it to autostart:

sudo sed '3a\ ProvideSupportConsole' /etc/rc.local > /tmp/rc.local

sudo mv /etc/rc.local /etc/rc.local.old

sudo mv /tmp/rc.local /etc/rc.local

All of this is placed in a script to automate further installation:

for example, we create the file install.sh, set the executable flag, and write:

#!/bin/sh

sudo dpkg -i /tmp/ProvideSupportConsole-debian_5.4.4_amd64.deb

 

sudo sed '3a\ ProvideSupportConsole' /etc/rc.local > /tmp/rc.local

 

sudo mv /etc/rc.local /etc/rc.local.old

 

sudo mv /tmp/rc.local /etc/rc.local


run the script:

sh /tmp/install.sh

 

 

 

Note: This post may be AI-assisted and then human-edited. Editorial responsibility: Dmytro Lomaka, Kaltenkirchen.