Page 1 of 1

Deploy Component (.deb) to Ubuntu

Posted: Mon, 10 Nov 2014, 04:23
by unyu123
hi all :)

I have a debian package (.deb) that need to be installed on my ubuntu via PCSM.
if I want to install my *.deb via terminal:

Code: Select all

sudo dpkg -i *.deb
then I need to input the super user/root password, it means i need to type the command and then type the password


the question is:
how about the script to execute that package with root permission in one line via PCSM? is there any reference?


thanks in advance,

BR,
unyu123

Re: Deploy Component (.deb) to Ubuntu

Posted: Fri, 14 Nov 2014, 15:44
by bartblaze
Hi unyu123,

Unfortunately there's no reference available for this.

Can you try testing by performing a chmod +x on the package?

Code: Select all

chmod +x package.deb
Regards

Re: Deploy Component (.deb) to Ubuntu

Posted: Mon, 24 Nov 2014, 11:16
by unyu123
bartblaze wrote:Hi unyu123,

Unfortunately there's no reference available for this.

Can you try testing by performing a chmod +x on the package?

Code: Select all

chmod +x package.deb
Regards

thanks for your reply Bartblaze, but my question is how to run a command with root password (at once in one line)?

after doing some search, I use this command for running .deb installation:

Code: Select all

echo <rootpassword> | sudo -S dpkg -i package-name.deb
its effective enough to run the installation command with root password at once. case closed.

BR,
oenyoe :D

Re: Deploy Component (.deb) to Ubuntu

Posted: Mon, 24 Nov 2014, 13:30
by bartblaze
Hi unuy,

I thought you were referencing to PCSM, not on how to run the component as root by itself ;)

Thanks for your feedback!

Regards