Advertisement
benevolent27

Installing SMBEdit for Linux Mint 18.1

Sep 24th, 2017
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.49 KB | None | 0 0
  1. # These are install directions for Linux Mint 18.1 that worked for me.  This should also work for Ubuntu distros (in theory).
  2. # To use this document, copy and paste each line into a shell window.  Do not copy and paste # comment lines.  You will need to be a super user to install the prereqs.
  3.  
  4. # Below we will prepare to install python3.6 using a repository
  5. sudo add-apt-repository ppa:jonathonf/python-3.6
  6. sudo apt-get update
  7.  
  8. # Install all the pre-requisites for python3.6 first
  9. sudo apt-get install build-essential checkinstall
  10. sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
  11.  
  12. # Install Python 3.6
  13. sudo apt install python3.6
  14.  
  15. # Check to ensure python3.6 was successfully installed.  There should be some version info printed.  If not, then something went wrong.
  16. python3.6 -V
  17.  
  18. # Ensure pip for python 3 is installed.  It probably already is, but this won't hurt anything.
  19. sudo apt-get install python3-pip
  20. # upgrade the base pip to the latest.  The linux mint repository won't have the latest version, but that's ok.
  21. pip install --upgrade pip
  22. # Upgrade the pip specifically for python3.6.  This should install the latest version
  23. python3.6 -m pip install --upgrade pip
  24.  
  25. # Make sure git installed, because it's used during the install process..
  26. sudo apt-get install git
  27.  
  28. ###  COMMAND-LINE ONLY VERSION
  29. # This is to install the command-line only version of SMBEdit.  It will use python 2.7 or whatever is your default python.  Multiple python installs is normal.  You do not need to complete this step or the next one if you want the GUI version of SMBEdit to install.
  30. sudo pip install "git+https://github.com/p-hofmann/SMBEdit.git"
  31.  
  32. # Check to insure the command-line only version runs correctly.  IF it does and you only want the command line version installed, then you can stop here.
  33. smbedit -h
  34.  
  35. ###  GUI VERSION
  36. # This is a pre-requisite for installing SMBEdit GUI, because it apparently compiles from source or something.  If you do not install this, the SMBEdit install will fail with an error.
  37. sudo python3.6 -m pip install setuptools
  38.  
  39. # Personally I couldn't use "pip3.6 install numpy", because it says the command is not found.  So instead I call pip using the correct version of python and this then does the install operations for THAT specific version of python.
  40.  
  41. sudo python3.6 -m pip install numpy
  42. sudo python3.6 -m pip install "git+https://github.com/p-hofmann/MeshReader.git"
  43. sudo python3.6 -m pip install "git+https://github.com/p-hofmann/PyVoxelizer.git"
  44. sudo python3.6 -m pip install pyqt5
  45. sudo python3.6 -m pip install "git+https://github.com/p-hofmann/SMBEdit.git"
  46.  
  47. # Now test to ensure the GUI opens.
  48. smbeditGUI
  49.  
  50. # If there were no problems, then you're all set!
  51.  
  52.  
  53. # This guide was pieced together using fragments of help topics around the internet and then tested by me with a successful install.
  54.  
  55. ####  Credits  ####
  56. # Installing the pre-reqs (this was recruired to get pip running for python3.6 since apparently the repository doesn't properly check pre-reqs):
  57. # https://mintguide.org/other/794-python-3-6-install-latest-version-into-linux-mint.html
  58.  
  59. # This is where I got the repository for python 3.6:
  60. # https://tecadmin.net/install-python-3-6-ubuntu-linuxmint/
  61.  
  62. # How to use pip in conjunction with python 3.6, since the "pip3.6" command wasn't working for me - one of the answers provides an alias which I used to run each command.
  63. # https://stackoverflow.com/questions/41688016/update-pip3-for-python-3-6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement