Skip to content

Commit

Permalink
Fix up markdown file for plugin repo
Browse files Browse the repository at this point in the history
  • Loading branch information
eyal0 committed Feb 7, 2017
1 parent 4f26576 commit 10f01cb
Showing 1 changed file with 36 additions and 41 deletions.
77 changes: 36 additions & 41 deletions extras/slic3r.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ tags:
- stl

screenshots:
- url: https://camo.githubusercontent.com/9fc508ca40c09d6a885a5803c43402a7d69ae9fe/687474703a2f2f692e696d6775722e636f6d2f4143316730756e2e706e67
alt: Slicing using OctoPrint-Slic3r
caption: Slicing using OctoPrint-Slic3r

featuredimage: https://camo.githubusercontent.com/9fc508ca40c09d6a885a5803c43402a7d69ae9fe/687474703a2f2f692e696d6775722e636f6d2f4143316730756e2e706e67
featuredimage: http://slic3r.org/images/logo.png

compatibility:
octoprint:
Expand All @@ -41,8 +38,9 @@ compatibility:

**WARNING**

This plugin has been successfully tested for the following cases:</br>
1. Linux: Slic3r's stable versions 1.1.7 and 1.2.9 (tests done under a Raspberry Pi 2, but it should work for other Linux distributions).</br>
This plugin has been successfully tested for the following cases:

1. Linux: Slic3r's stable versions 1.1.7 and 1.2.9 (tests done under a Raspberry Pi 2, but it should work for other Linux distributions).
2. Windows: Slic3r works for version 1.2.9, not doing it for version 1.1.7.

## Setup
Expand All @@ -59,71 +57,68 @@ At this moment, the plugin will be installed, but Slic3r must be downloaded and

1. If OctoPrint is running under a Raspberry Pi, you can use the following script to install Slic3r (unfortunately precompiled packages do not work for RPI's architecture). For that purpose, copy the following code in a file (i.e. slic3r_install.sh).

```
#!/bin/sh
echo "Shell script created by Javier Martínez Arrieta for Slic3r installation\n"
#Ask the user for a version
echo "Please indicate which version you desire to be installed (e.g. 1.1.7)"
read version
echo "The installation of Slic3r takes a long time. PLease be patient"
cd $HOME
echo "Installing required libraries and dependencies..."
sudo apt-get install git libboost-system-dev libboost-thread-dev git-core build-essential libgtk2.0-dev libwxgtk2.8-dev libwx-perl libmodule-build-perl libnet-dbus-perl cpanminus libextutils-cbuilder-perl gcc-4.7 g++-4.7 libwx-perl libperl-dev
sudo cpanm AAR/Boost-Geometry-Utils-0.06.tar.gz Math::Clipper Math::ConvexHull Math::ConvexHull::MonotoneChain Math::Geometry::Voronoi Math::PlanePath Moo IO::Scalar Class::XSAccessor Growl::GNTP XML::SAX::ExpatXS PAR::Packer
echo "Cloning Slic3r repository..."
git clone https://github.com/alexrj/Slic3r.git
cd Slic3r
git checkout $version
echo "Building and testing Scli3r..."
sudo perl Build.PL
echo "If everything was installed properly,you should be able to run Slic3r with the command ./slic3r.pl"
```
<!-- language: lang-sh -->
#!/bin/sh
echo "Shell script created by Javier Martínez Arrieta for Slic3r installation\n"
#Ask the user for a version
echo "Please indicate which version you desire to be installed (e.g. 1.1.7)"
read version
echo "The installation of Slic3r takes a long time. PLease be patient"
cd $HOME
echo "Installing required libraries and dependencies..."
sudo apt-get install git libboost-system-dev libboost-thread-dev git-core build-essential libgtk2.0-dev libwxgtk2.8-dev libwx-perl libmodule-build-perl libnet-dbus-perl cpanminus libextutils-cbuilder-perl gcc-4.7 g++-4.7 libwx-perl libperl-dev
sudo cpanm AAR/Boost-Geometry-Utils-0.06.tar.gz Math::Clipper Math::ConvexHull Math::ConvexHull::MonotoneChain Math::Geometry::Voronoi Math::PlanePath Moo IO::Scalar Class::XSAccessor Growl::GNTP XML::SAX::ExpatXS PAR::Packer
echo "Cloning Slic3r repository..."
git clone https://github.com/alexrj/Slic3r.git
cd Slic3r
git checkout $version
echo "Building and testing Scli3r..."
sudo perl Build.PL
echo "If everything was installed properly,you should be able to run Slic3r with the command ./slic3r.pl"

2. Save the file and allow execution giving permission. Using a terminal, it would be chmod +x slic3r_install.sh (or the name given to the file).
```
chmod +x slic3r_install.sh
```
<!-- language: lang-sh -->
chmod +x slic3r_install.sh

3. Now that you have permission to execute it, type ./slic3r_install.sh and press 'Enter'. If it is the first time executing the installer, take into account that it can take about 30 minutes or even more.
```
./slic3r_install.sh
```
<!-- language: lang-sh -->
./slic3r_install.sh

4. At the beggining of the installation, you will be asked which version should be installed (available versions at http://slic3r.org/download)

![Screenshot](http://imgur.com/Qa2Dgv7.png)
![Screenshot](http://imgur.com/Qa2Dgv7.png)

5. If you get an out of memory error it's because Raspberry Pi doesn't have enough swap memory to build Slic3r by default. You will need to increase the swap size. To do this, run `sudo nano /etc/dphys-swapfile` and set `CONF_SWAPSIZE=1000` then save and reboot. After reboot, run `free -h` and confirm that total swap size is around 1000MB.

6. Execute OctoPrint and go to Settings (or restart when you are asked after installing the plugin). Slic3r should appear in Plugins list:

![Screenshot](http://i.imgur.com/44yDsJ6.png)
![Screenshot](http://i.imgur.com/44yDsJ6.png)

7. In 'General', you should put the following path for the executable (supposing the execution of the script, the path would be /home/pi/Slic3r/slic3r.pl). <b>Note: If running in Windows, write the path to slic3r-console</b>:

![Screenshot](http://i.imgur.com/1ckQCgL.png)
![Screenshot](http://i.imgur.com/1ckQCgL.png)

8. Before importing the profile, you have to export a file with the Slic3r's configuration. For that purpose, open Slic3r, and select File-> Export Config...

![Screenshot](http://i.imgur.com/41XFyEI.png)
![Screenshot](http://i.imgur.com/41XFyEI.png)

9. Save the file with the desired name (e.g. config.ini):

![Screenshot](http://imgur.com/YzfqRXM.png)
![Screenshot](http://imgur.com/YzfqRXM.png)

10. Once done, in 'Profiles' click 'Import Profile...' button:

![Screenshot](http://imgur.com/HkbO1G8.png)
![Screenshot](http://imgur.com/HkbO1G8.png)

11. Click on 'Browse...' and search for the profile. Once done, save with the name and identifier wished by clicking 'Confirm':

![Screenshot](http://i.imgur.com/7NJmJK3.png)
![Screenshot](http://i.imgur.com/7NJmJK3.png)

12. Click 'Save' to confirm Slic3r settings:

![Screenshot](http://imgur.com/HkbO1G8.png)
![Screenshot](http://imgur.com/HkbO1G8.png)

13. Now you can slice your stl files:

![Screenshot](http://i.imgur.com/AC1g0un.png)
![Screenshot](http://i.imgur.com/AC1g0un.png)

0 comments on commit 10f01cb

Please sign in to comment.