0374.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install Polaris Music Streaming Server on Debian</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Install Polaris Music Server,Polaris Music Streaming Server,Polaris,Music Streamer,Music Streaming,Self-Hosted,Linux,Debian,MP3,Open Source Software,Install Guide,Home Lab,Browser Based,Web Based,Debian Linux,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install Polaris Music Streaming Server on Debian">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Install Polaris Music Streaming Server on Debian</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <h2>Installing Polaris</h2>
  25. <ol>
  26. <li>Log into the Linux device</li>
  27. <li>Run the following commands in a terminal window
  28. <div class="codeBlock"># update software repositories<br />
  29. sudo apt update<br />
  30. # install software updates<br />
  31. sudo apt upgrade -y<br />
  32. # install prerequisite software<br />
  33. sudo apt install&nbsp;binutils pkg-config libssl-dev -y<br />
  34. # install the rust compiler, press 1 when prompted&nbsp;<br />
  35. sudo curl --proto &#39;=https&#39; --tlsv1.2 -sSf https://sh.rustup.rs | sh<br />
  36. # add rust/cargo to current terminal<br />
  37. source $HOME/.cargo/env<br />
  38. # download the latest build of polaris<br />
  39. wget -Opolaris-latest.tar.gz https://github.com/agersant/polaris/releases/download/0.13.4/Polaris_0.13.4.tar.gz<br />
  40. # extract the downloaded .tar.gz<br />
  41. sudo tar xzvf polaris-latest.tar.gz<br />
  42. # install polaris<br />
  43. cd polaris<br />
  44. make install-xdg<br />
  45. # once the buld and installation complete, start the polaris server<br />
  46. ~/.local/bin/polaris</div>
  47. </li>
  48. <li>Open a web browser and navigate to&nbsp;http://DNSorIP:5050</li>
  49. <li>At the Welcome to Polaris screen click the Sounds Good button</li>
  50. <li>Enter a path for Polaris to look for media in and give it a name, ie ~/Music/ &gt; Click Next</li>
  51. <li>Enter a username and password to create a Polaris login &gt; Click Next</li>
  52. <li>Welcome to Polaris</li>
  53. </ol>
  54. <h2>Starting Polaris On System Boot</h2>
  55. <ol>
  56. <li>Back in the terminal run the following command
  57. <div class="codeBlock">sudo nano /etc/systemd/system/polaris.service</div>
  58. </li>
  59. <li>Paste the following configuration into the polaris.service file, replacing i12bretro from the user, working directory and exec start values with the correct username
  60. <p>[Unit]<br />
  61. Description=Polaris Service<br />
  62. After=network.target</p>
  63. <p>[Service]<br />
  64. Type=simple<br />
  65. RemainAfterExit=yes<br />
  66. User=i12bretro<br />
  67. WorkingDirectory=/home/i12bretro/.local/bin<br />
  68. ExecStart=/home/i12bretro/.local/bin/polaris<br />
  69. Restart=on-failure<br />
  70. <br />
  71. [Install]<br />
  72. WantedBy=default.target</p>
  73. </li>
  74. <li>Press CTRL+O, Enter, CTRL+X to write the changes to polaris.service</li>
  75. <li>Enter the following command to start the new service on system boot
  76. <div class="codeBlock">sudo systemctl enable polaris</div>
  77. </li>
  78. <li>Reboot the system</li>
  79. <li>Test that Polaris is running by opening a web browser and navigating to&nbsp;http://DNSorIP:5050</li>
  80. <li>Log back into Polaris with the username and password created earlier</li>
  81. </ol>
  82. </div>
  83. </div>
  84. </body>
  85. </html>