Skip to content

Instantly share code, notes, and snippets.

@gustavohenrique
Last active October 23, 2018 01:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gustavohenrique/3101b851bfb07426ca2fdb00955a157d to your computer and use it in GitHub Desktop.
Save gustavohenrique/3101b851bfb07426ca2fdb00955a157d to your computer and use it in GitHub Desktop.
Permite utilizar Itau Bankline no Firefox

Instalação

Ubuntu

wget https://guardiao.itau.com.br/warsaw/warsaw_setup_64.deb
sudo dpkg -i warsaw_setup_64.deb

ArchLinux

yaourt -S warsaw

Execução

sudo systemctl start warsaw

Configuração no Firefox

  1. Instalar Addon User Agent Overrider https://addons.mozilla.org/en-US/firefox/addon/user-agent-overrider/
  2. Clicar no icone e depois em Preferences e adicionar no final a string: Solaris / Firefox 54: Mozilla/5.0 (Solaris; Solaris x86_64; rv:54.0.1) Gecko/20100101 Firefox/54.0.1

Rodando Firefox em container

Crie o Dockerfile:

FROM ubuntu:14.04

RUN export uid=1000 gid=1000 && \
    mkdir -p /home/gustavo && \
    echo "gustavo:x:${uid}:${gid}:Developer,,,:/home/gustavo:/bin/bash" >> /etc/passwd && \
    echo "gustavo:x:${uid}:" >> /etc/group && \
    echo "gustavo ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/gustavo && \
    chmod 0440 /etc/sudoers.d/gustavo && \
    chown ${uid}:${gid} -R /home/gustavo

RUN apt-get update && apt-get install -y xterm firefox curl libnss3-tools
RUN curl -o /tmp/warsaw_setup_64.deb 'https://guardiao.itau.com.br/warsaw/warsaw_setup_64.deb'
RUN dpkg -i /tmp/warsaw_setup_64.deb

ENV DISPLAY :0
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty multiverse'  >> /etc/apt/sources.list && \
 echo 'deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse' >> /etc/apt/sources.list && apt-get update
RUN echo 'ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true' | sudo debconf-set-selections
RUN apt-get install -y libfreetype6 libfreetype6-dev libfontconfig ttf-mscorefonts-installer

USER gustavo
ENV HOME /home/gustavo

CMD sudo /etc/init.d/warsaw start && /usr/bin/firefox -no-remote

Execute o container:

docker build -t itau .
docker run --rm -v /tmp/.X11-unix:/tmp/.X11-unix itau
@fabiobfava
Copy link

E no MacOS (Sierra)? Tem alguma solução?

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