TK LAMP: Offiine updating

Don Zauker's picture

Hello,

there's a way to offile update packages/module ?

Unfortunately I have a virtual production machine behind a proxy that not permit the automatic download of updates, there's no way to bypass.

At the moment the only way to update TKLAMP stuff is shutdown the server, copy the entire VM, take it to my house, install it on my VMWare workstation, upgrading it and finally put again in production ESX environment.. it's not good at all.

I have deal with proxy configuration using my login/passwrd but it seems that TKLAMP server cannot manage username in the form "domain\username" that it's mandatory to pass thru the proxy.

Jeremy Davis's picture

On the VM you have at home, plugin a USB and configure your VM software to forward it to the VM, then run these commands:

mount /dev/<sdXN> /mnt # replace <sdX> with the device name of your USB e.g. sdb1
mkdir /mnt/packages
apt-get clean
apt-get update
apt-get upgrade
cp /var/cache/apt/archives /mnt/packages
umount /dev/<sdXN> # replace <sdX> with the device name of your USB e.g. sdb1

Then take the USB back to work. Plug it in and configure your VM software to forward it to the VM behind the proxy and run these commands:

mount /dev/<sdXN> /mnt # replace <sdX> with the device name of your USB e.g. sdb1
cd /mnt/packages
dpkg -i *.deb
cd ..
rm -r /mnt/packages
umount /dev/<sdXN> # replace <sdX> with the device name of your USB e.g. sdb1

Done! :)

Also have you tried configuring apt to use your proxy?

I won't provide instructions or links to 'how-tos' as I haven't tried it and can't test it (and from what I've read there are a few different ways to go and I have no idea which is best), but it should be possible and google has plenty of ideas (search for something like "configure apt-get to use proxy"). If you need to supply your username as "user@domain" (as you suggest you do) perhaps try enclosing the user@domain in single quotes?

Don Zauker's picture

Hello,

 

thanks for the hint... at least I  have found a solution: Turnkey LAMP doesn't handle domain account login for proxies (I have tried all the combinations), I have manually installed cntlm to bypass this limit and now I can update on line !

Jeremy Davis's picture

Glad you got it sorted and sorry I couldn't be more explicit and/or helpful!

Thanks for posting back with your solution, I'm sure that will help someone else out!

Post new comment