-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathlinux.html
131 lines (129 loc) · 7.46 KB
/
linux.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>PyRadio pip installation on Linux</title>
<style>
body {padding: 2em;}
@media screen and (max-width: 770px) {
body {padding: 10px;}
}
body {max-width: 750px; margin: auto;}
h2 {margin-top: 2.5em; border-bottom:1px solid SaddleBrown; color: SaddleBrown;}
h3 {margin-top: 2em; color: SaddleBrown; text-decoration: underline SaddleBrown}
h4 {margin: 2em 0 1em 0; color: SaddleBrown; font-size: 1em;}
h4:before {content: "# "; font-weight: bold; vertical-align: middle;}
h5 {margin: 2em 0 1em 0; color: SaddleBrown; font-size: 1em;;}
h5:before {content: "## "; font-weight: bold; vertical-align: middle;}
p, table, ol, ul {margin-left: .8em;}
STRONG {color: SaddleBrown;}
dl {margin: 2em;}
dd {margin: 1em;}
dt {font-weight: bold;}
TABLE {border: 1px solid SaddleBrown; border-collapse: collapse; margin-left: auto; margin-right: auto; border-radius: 5px; -moz-border-radius: 5px; border-collapse:separate; box-shadow: 5px 5px 15px #888888;}
TH {text-align: left; vertical-align: top; padding: 5px;color: SaddleBrown;border: 1px solid SaddleBrown; background-color: SaddleBrown; color: white;}
TD {text-align: left; vertical-align: top; padding: 5px 10px;border: 1px solid SaddleBrown;}
pre { background-color: rgba(245, 245, 245, 1); color: #474747; padding: 1.5em; border: 1px solid #C7C7C7; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; overflow: auto; box-shadow: 5px 5px 15px #C7C7C7;}
.task-list {list-style-type: none; padding: 0; margin: 0 0 0 1em ;}
img{display: block; margin-left: auto; margin-right: auto; max-width: 750px; width: 100%; background:transparent; padding:3px; border:1px solid #999999; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; box-shadow:5px 5px 15px #888888;}
.indented {text-indent: -1.5em; padding-left: 1.5em; margin-left: 1em;}
a{ color: SaddleBrown;}
a:visited{color: SaddleBrown;}
</style>
</head>
<body>
<header id="title-block-header">
</header>
<h1 style="color: SaddleBrown" id="pyradio-pip-installation-on-linux">PyRadio pip installation on Linux</h1>
<h2 id="table-of-contents">Table of contents <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
<!-- vim-markdown-toc Marked -->
<ul>
<li><a href="#preface">Preface</a></li>
<li><a href="#take-care-of-your-path">Take care of your PATH</a></li>
<li><a href="#install-a-media-player">Install a media player</a></li>
<li><a href="#get-the-installation-script">Get the installation script</a></li>
<li><a href="#debian-and-derivatives">Debian and derivatives</a></li>
<li><a href="#fedora-and-derivatives">Fedora and derivatives</a></li>
<li><a href="#opensuse-and-derivatives">openSUSE and derivatives</a></li>
</ul>
<!-- vim-markdown-toc -->
<p class="indented">[ <a href="build.html#installation-guides">Return to PyRadio Build Instructions</a> ]</p>
<h2 id="preface">Preface <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
<p>This document will help you install <strong>PyRadio</strong> within your <strong>.local</strong> directory, using pip.</p>
<p>In order to install <strong>PyRadio</strong> to your system you will:</p>
<ol type="1">
<li>Take care of your PATH</li>
<li>Install a media player</li>
<li>Download the installation script</li>
<li>Install the basic python system and <strong>PyRadio</strong> dependencies</li>
<li>Perform the installation</li>
</ol>
<h2 id="take-care-of-your-path">Take care of your PATH <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
<p><strong>PyRadio</strong> will be installed in the <strong>~/.local/bin</strong> directory.</p>
<p>Please make sure this directory is in your PATH shell variable. The way to do this depends on the default shell you are using; please refer to its documentation on how to edit your PATH.</p>
<h2 id="install-a-media-player">Install a media player <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
<p><strong>PyRadio</strong> relies on the existence of at least one of the following media players: <strong>mpv</strong>, <strong>mplayer</strong> or <strong>vlc</strong>.</p>
<p>Please install at least one of them beforehand:</p>
<pre># on Debian
sudo apt-get install [ mpv / mplayer / vlc ]
# on Fedora
sudo dnf install [ mpv / mplayer / vlc ]
# on openSUSE
sudo zypper install [ mpv / mplayer / vlc ]</pre>
<h2 id="get-the-installation-script">Get the installation script <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
<p>Open a terminal and execute:</p>
<pre>cd
wget https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py</pre>
<p>or using curl:</p>
<pre>cd
curl -L \
https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py \
-o install.py</pre>
<p>If you are going to use <strong>Python 2</strong>, please execute:</p>
<pre>sed -i.orig 's/from rich import print/pass/' install.py</pre>
<p>This will fix the instllation script for <strong>Python 2</strong>; the original script will be renamed to <em>install.py.orig</em>.</p>
<p>Please follow the instructions that match/suit your distribution.</p>
<h2 id="debian-and-derivatives">Debian and derivatives <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
<p style="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> The following instructions were tested on a freshly installed <strong>Debian Testing</strong>.</p>
<p>Install the requirements for the installation script:</p>
<pre>sudo apt-get install \
python3-full \
python3-pip \
python3-rich \
python3-requests \
python3-dnspython \
python3-psutil \
python3-netifaces \
python3-dateutil
cd
python3 install.py</pre>
<h2 id="fedora-and-derivatives">Fedora and derivatives <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
<p style="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> The following instructions were tested on a freshly installed <strong>Fedora 38 Workstation</strong>.</p>
<p>Execute:</p>
<pre>sudo dnf install \
python3-pip \
python3-wheel \
python3-rich \
python3-requests \
python3-netifaces \
python3-psutil \
python3-dns \
python3-dateutil
cd
python install.py</pre>
<h2 id="opensuse-and-derivatives">openSUSE and derivatives <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
<p style="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> The following instructions were tested on a freshly installed <strong>openSUSE Tumbleweed 20230427</strong>.</p>
<p>Execute:</p>
<pre>sudo zypper install \
python310-requests \
python310-rich \
python3-psutil \
python3-dnspython \
python3-dateutil \
python3-netifaces
cd
python3 install.py</pre>
</body>
</html>