Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is their a way to push/send and ubuntu-app/deb-file to be install on my Ubuntu laptop?

Usecase...

Laptop 1.

I find an app, I need to install!

But I´am not at home.

I just push it to my other laptop to be install..

Laptop 2.

I am now at home.

My laptop 2 view an dialog asking to install the app I send from laptop 1.

Can this be do?.. SSH?

Question-update

Can it be done so it open Ubuntu Software Center and then laptop2-user only need to write their password and press ok? for non-tec users.. like my father...

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Yes this can be done. You can download the .deb file when you are at laptop 1, use the SSH file system (sshfs) to connect to your second laptop, then just copy from one to the other in Nautilus or whatever file browser you use. This can also be done if you installed the software on laptop 1 and the .deb is still in the cache folder (/var/cache/apt/archives). Just copy it from there to laptop 2 if you have ssh access to it, again using sshfs.

To use sshfs, it is similar to ssh in some regards. Switch -p for non-standard port numbers is just the same as ssh, otherwise the standard port 22 is used. Also, -C for compression over slow connections works.

Imagine Joe Bloggs has an account on both laptops. He has downloaded a .deb to laptop 1. He can copy it to laptop 2 using sshfs, then install this file when he gets home. Sitting at laptop 1 he has to do the following:

Make an empty folder in his home directory of laptop 1, perhaps called copies.
Type at the terminal: sshfs [-p oddportnumber] -C joebloggs@internetaddressoflaptop2: ~/copies
(Note the colon at the end of the laptop 2 address, and the space between that and the tilde.)
This mounts the home directory of joebloggs on laptop 2 inside the folder called copies on laptop 1 using ssh over the Internet.
Now copy the .deb file into the folder called "copies" in laptop 1 and it is actually copying via ssh to the home folder in laptop 2.
To unmount you have to type fusermount -u ~/copies

I hope this is what you were looking for.

share|improve this answer
    
Cool dude :) Can it be done os it open Ubuntu Software Center and then laptop2-user only need to write their password and press ok? for non-tec users.. –  Voidcode Dec 14 '12 at 4:53
    
Hi VoidCode. If you're trying to have a package installed on a non-tech's computer I would just install it yourself at another ssh window, and that way the end user has no interaction with the installation process at all. When you're logged in via ssh, just change to the folder with the .deb file in, then type:sudo dpkg -i package.deb –  FatPopDoWop Dec 14 '12 at 17:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.