Skip to content

Instantly share code, notes, and snippets.

@henriquecarv
Last active October 3, 2018 19:14
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henriquecarv/3ddf378637191496229d38b8eb9d01bc to your computer and use it in GitHub Desktop.
Save henriquecarv/3ddf378637191496229d38b8eb9d01bc to your computer and use it in GitHub Desktop.
Itau Warsaw Guardian Installer - Ubuntu 18.04
#!/bin/bash
sudo apt update
cd ~/Downloads
wget https://guardiao.itau.com.br/warsaw/warsaw_setup_64.deb
dpkg-deb -x ~/Downloads/warsaw_setup_64.deb /tmp/warsaw
dpkg-deb --control warsaw_setup_64.deb /tmp/warsaw/DEBIAN/
sudo sed -i -e 's/python-gpgme,//g' /tmp/warsaw/DEBIAN/control
sudo sed -i -e 's/libcurl3/libcurl4/g' /tmp/warsaw/DEBIAN/control
sudo apt -y install python-pip
sudo apt -y install libgpgme-dev
sudo pip install pygpgme
sudo apt install python-openssl -y
sudo apt install libcurl4 -y
dpkg -b /tmp/warsaw/ ~/Documents/warsaw_18.04.deb
cd ~/Documents
sudo dpkg -i ~/Documents/warsaw_18.04.deb
rm ~/Downloads/warsaw_setup_64.deb ~/Documents/warsaw_18.04.deb
rm -rf /tmp/warsaw
echo "Itau Guardian installed successfully!"
# Credits: https://medium.com/@miguel.nunes.72/como-instalar-o-warsaw-programa-de-seguran%C3%A7a-banc%C3%A1ria-no-ubuntu-18-04-aa2bdf86ba55
@gnumoreno
Copy link

After this step dpkg -b /tmp/warsaw/ ~/Documents/warsaw_18.04.deb I get an error:

dpkg-deb: error: conffile '/etc/init.d/warsaw' does not appear in package

Any advise?

@henriquecarv
Copy link
Author

henriquecarv commented Jul 24, 2018

@gnumoreno

I haven't seen this message while preparing the script, but maybe one of the first commands didn't execute as it should.
Probably this one: dpkg-deb -x ~/Downloads/warsaw_setup_64.deb /tmp/warsaw
Can you try running again? Only this time go with bash instead of shell. I've been having better results with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment