Skip to content

Instantly share code, notes, and snippets.

@JFreegman
Last active June 22, 2022 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JFreegman/b2bb4d6528ae3e8c8660b72f21ff6f15 to your computer and use it in GitHub Desktop.
Save JFreegman/b2bb4d6528ae3e8c8660b72f21ff6f15 to your computer and use it in GitHub Desktop.

Static Binary

If you wish to use the static binary simply download this file.

Build from source

c-toxcore:

toxic:

Joining the group

Note: You will need to create a new toxic profile and make sure that you don't use it on the mainnet

Once toxic is running you can join the Offical Test Group™ with the command:/join 4EACCA789FE78054E7EF28D6866771819D0849E6B9BEC4253E876903A4868236

Important: You should not run simultaneous instances of tox for both the mainnet and the testnet (but if you do, run toxic with the -L option to disable LAN). You should also try not to cross-contaminate profiles. Keep the two networks as isolated as possible.

@sudden6
Copy link

sudden6 commented Mar 6, 2022

Dockerfile:

FROM debian:stable-slim
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq install \
    libsodium-dev \
    libopus-dev \
    libmsgpack-dev \
    libvpx-dev \
    linux-headers-amd64 \
    git \
    make \
    cmake \
    build-essential \
    gdb \
    libncurses-dev \
    libconfig-dev \
    libcurl4-openssl-dev

RUN git clone --recurse-submodules https://github.com/jfreegman/toxcore \
    && cd toxcore \
    && mkdir _build \
    && cd _build \
    && cmake -DUSE_TEST_NETWORK=ON DBUILD_TOXAV=OFF \
        -DBOOTSTRAP_DAEMON=OFF \
        -DDHT_BOOTSTRAP=OFF \
        -DMIN_LOGGER_LEVEL=DEBUG \
        .. \
    && cmake --build . -j $(nproc) \
    && cmake --install . \
    && ldconfig \
    && cd ..

RUN git clone --branch tcp_new_groupchats https://github.com/jfreegman/toxic \
    && cd toxic \
    && make -j $(nproc) \
        DISABLE_X11=1 \
        DISABLE_AV=1 \
        DISABLE_SOUND_NOTIFY=1 \
        DISABLE_QRCODE=1 \
        DISABLE_QRPNG=1 \
        DISABLE_DESKTOP_NOTIFY=1 \
        ENABLE_PYTHON=0 \
        ENABLE_ASAN=0 \
        DISABLE_GAMES=1 \
        install

#ENTRYPOINT ["bash"] # for debugging
ENTRYPOINT ["toxic", "-L"]

Build the image: docker image build . -t toxic_testnet from where you saved this file

Run the image: docker run -it toxic_testnet

NOTHING IS SAVED!

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