Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux usage instructions #75

Closed
naturallymitchell opened this issue Jul 29, 2018 · 13 comments

Comments

Projects
None yet
6 participants
@naturallymitchell
Copy link

commented Jul 29, 2018

How do I use this on Linux?

@Tyrrrz Tyrrrz added the question label Jul 30, 2018

@Tyrrrz

This comment has been minimized.

Copy link
Owner

commented Jul 30, 2018

Hi,
I don't believe you can.

EDIT: read comments below.

@Atagait

This comment has been minimized.

Copy link

commented Aug 3, 2018

If you install Mono you can run the CLI version just fine. I have yet to see if the GUI version works.

@RenanYudi

This comment has been minimized.

Copy link

commented Aug 3, 2018

You can with CLI and Mono. It isn't that user friendly, but it works.


Installing Mono
To get mono on Ubuntu (other distros and more info here):
Open Terminal and type

  1. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
  2. echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
  3. sudo apt update
  4. sudo apt install mono-devel
    (Edited at 09/12/2018 with correct installation instructions)

You can check if mono was installed successfully using mono -V, it should output its version. If it didn't work, try the link above for more info.


Downloading and using DiscordChatExporter

  1. Download the latest DiscordChatExporter CLI release here and extract its contents on your Desktop to a folder called DiscordChatExporter.

  2. Open terminal and type to change Terminal directory:
    cd ~/Desktop/DiscordChatExporter

  3. Replace TOKEN and CHANNEL, and execute the command to run DiscordChatExporter.Cli.exe:
    mono DiscordChatExporter.Cli.exe -t TOKEN -c CHANNEL


It's also possible to run the CLI on macOS, but installing mono is a little bit different, since you'd be using brew or macports instead of apt. I have a simple terminal script for the CLI on macOS here if @Tyrrrz wants to take a look.

The GUI might work with Wine or Wineskin, but I'm not sure, since I haven't tried it.

@RenanYudi

This comment has been minimized.

Copy link

commented Aug 3, 2018

Oh lol, sorry. I just finished writing this, didn't see your reply, Atagait.

@RenanYudi

This comment has been minimized.

Copy link

commented Aug 3, 2018

I wasn't able to run the GUI with Mono, nor with a fresh installation of Wine on both Ubuntu and macOS.
Mono outputs:

The entry point method could not be loaded due to Could not load file or assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. assembly:PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 type: member:(null) signature:

Wine on Ubuntu gives me this
And a more or less configured Wineskin on macOS still gives me this even after applying some fixes I've found on the internet:
screen shot 2018-08-03 at 00 40 40

@RenanYudi

This comment has been minimized.

Copy link

commented Aug 6, 2018

Yeah... No way I could make the GUI work.

Should we include this instructions on somewhere more visible, @Tyrrrz? I had the same question when I first saw this tool on Reddit.
The instructions would be too large for the Readme, so maybe a Wiki page? Then we could include Mac and Linux instructions, and also the "workaround" way to get the token.

@Tyrrrz

This comment has been minimized.

Copy link
Owner

commented Aug 6, 2018

I'm on vacation currently but I'll look into it later

@strafe

This comment has been minimized.

Copy link

commented Aug 12, 2018

Until the documentation is up you'll also probably want to define a different output format using the -f, --format parameter. Ex:

mono DiscordChatExporter.Cli.exe -t <token> -c <channel> -f PlainText

Is there any hope for the CLI to be .NET Core compatible?

@Tyrrrz

This comment has been minimized.

Copy link
Owner

commented Aug 13, 2018

There is currently only one dependency, I believe, that forces CLI to be on .NET fx. I will look into moving it to .NET core when I have time.

@Tyrrrz

This comment has been minimized.

Copy link
Owner

commented Aug 13, 2018

@Tyrrrz Tyrrrz closed this Aug 13, 2018

@Kentoseth

This comment has been minimized.

Copy link

commented Aug 18, 2018

I tried running this on Ubuntu 18.04 and got the following error:

Unhandled Exception:
System.MissingMethodException: Method 'System.Net.Logging.get_Http' not found.
  at System.Net.Http.HttpMessageInvoker.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00027] in <27bbdd4ceaf04a95b172ee502d76a725>:0 
  at System.Net.Http.HttpClient.SendAsync (System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken) [0x0007a] in <27bbdd4ceaf04a95b172ee502d76a725>:0 
  at System.Net.Http.HttpClient.SendAsync (System.Net.Http.HttpRequestMessage request) [0x00008] in <27bbdd4ceaf04a95b172ee502d76a725>:0
... (lots of other content)

Does anybody have a fix for this?

@Kentoseth

This comment has been minimized.

Copy link

commented Aug 18, 2018

Solution found.

If you don't follow the instructions here: https://www.mono-project.com/download/stable/#download-lin-ubuntu

It won't run properly. This is because the distro version (even 18.04) is very outdated. I think it is 4.6.2 while the version above is 5.14.0 (at time of writing this).

If you are on 18.04, run these commands first:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update

Then run: sudo apt-get install mono-devel

Tested and worked for me.

@RenanYudi

This comment has been minimized.

Copy link

commented Aug 18, 2018

Well that’s weird… It worked fine for me on a fresh 18.04 install without needing to edit anything.

I’m also working on a more detailed wiki page, I’ll include the full instructions there and open an “Issue” once it’s done so Tyrrrz can replace the current wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.