Debian Codegraph @

INSTALL

raw
1
2 General Source Install:
3 $ make
4 $ sudo make install
5
6 After the package is installed, run it once to install
7 default configuration files into $HOME/.podget, edit
8 them as needed.
9
10
11 Building and installing a Debian package:
12 $ cd podget-<version>
13 $ fakeroot ./debian/rules binary
14 $ cd ../
15 $ sudo dpkg -i podget_<version>-all.deb
16
17 Mac OSX GNU Dependencies:
18 Podget requires GNU Date, GNU Stat, GNU Sed, Coreutils (for expr, and tr)
19 and Bash (at least version 4.4). The easiest way to install them is to use
20 Homebrew.
21 For details on how to install and use Homebrew, please visit: https://brew.sh
22
23 An updated version of Bash can be installed with: brew install bash
24
25 GNU Date can be installed with: brew install gdate
26
27 GNU Stat can be installed with: brew install gstat
28
29 GNU Sed can be installed with: brew install gnu-sed
30
31 And Coreutils can be installed with: brew install coreutils.
32
33 Podget looks for the required binaries with a 'g' prefix. This prefix is
34 added automatically by brew with its default options. The prefix can be
35 overridden with the brew option '--with-default-names'. However if you do
36 this, it may be necessary that you add symbolic links from the brew
37 installed sed to gsed and for the others.
38
39 Additionally installing packages with brew may require some changes to the
40 PATH variable setting described below.
41
42 FreeBSD Dependencies and Install:
43 Podget requires a few things that are not part of a default installation.
44
45 As root (or with doas) using 'pkg install' add:
46 - bash (at least version 4.4)
47 - wget
48 - coreutils
49 - gsed
50 gmake
51 - ca_root_nss
52 NOTE: pkg will be automatically installed the first time you attempt
53 to use it.
54 - gnustat
55 NOTE: When testing with FreeBSD 13.1, gnustat was part of the
56 coreutils package and so did not require a separate install.
57
58 Source Install:
59 $ gmake
60 $ doas gmake install OR su root -c 'gmake install'
61
62 After the package is installed, run it once to install
63 default configuration files into $HOME/.podget, edit
64 them as needed.
65
66 NetBSD Dependencies and Install:
67 Podget requires a few things that are not part of a default installation.
68
69 As root (or with doas) using pkgin install:
70 - bash (at least version 4.4)
71 - wget
72 - ca-certificates
73 - coreutils
74 - gsed
75 - gmake
76
77 NOTE: After installing ca-certificates, run update-ca-certificates to
78 manage the set of configured trust anchors for openssl.
79
80 Source Install:
81 $ gmake
82 $ doas gmake install OR su root -c 'gmake install'
83
84 After the package is installed, run it once to install
85 default configuration files into $HOME/.podget, edit
86 them as needed.
87
88 OpenBSD Dependencies and Install:
89 Podget requires a few things that are not part of a default installation.
90
91 As root (or with doas) using pkg_add install:
92 - bash (at least version 4.4)
93 - wget
94 - coreutils
95 - gsed
96 - gmake
97
98 Source Install:
99 $ gmake
100 $ doas gmake install OR su root -c 'gmake install'
101
102 After the package is installed, run it once to install
103 default configuration files into $HOME/.podget, edit
104 them as needed.
105
106 Microsoft Windows 10+ Installation:
107 Podget can be run on current installations of Windows by installing Debian
108 GNU/Linux into the Windows Subsystem for Linux (WSL).
109
110 Centralized Notes on how to install Debian within Windows:
111 https://wiki.debian.org/InstallingDebianOn/Microsoft/Windows/SubsystemForLinux
112
113 NOTE: You do not need to follow the 'Advanced Usage' part as Podget is not a
114 GUI app and will not require that configuration. However you may want to
115 enable GUI support so you can use simple GUI text editors to modify the
116 configuration files. If you prefer to do everything in the console then you
117 may need to learn to use a console text editor like nano, vi, vim or ed
118 editors (just kidding, probably stay away from ed unless you want a real
119 challenge).
120
121 After Debian is installed, within it you will need to run:
122 1. sudo apt update
123 2. sudo apt upgrade
124 3. sudo apt install podget
125
126 Once Podget is installed, the general location for its files can be found in
127 directory like:
128 ```
129 C:\Users%username%\AppData\Local\Packages\TheDebianProject.DebianGNULinux_76v4gfsz19hv4\LocalState\rootfs\home\
130 ```
131 However the string after DebianGNULinux_ may vary on each install.
132
133 Crontab Potential Issue:
134 Occasionally when you install Podget, it will run fine from the shell prompt
135 but experiences a problem when you attempt to run it as a cron job. When this
136 happens it may be caused by Podget not being able to find every command
137 it needs. This can be caused by differences in the PATH variable which
138 contains a list of directories to search for commands. This list is
139 delimited by colons and read from left to right so if a command of the same
140 name exists in two directories, the one you want should be read first.
141
142 An example of this happened on MacOS. What we discovered was that for
143 cronjobs the PATH variable was set to "/usr/bin:/bin" which may be a
144 sensible default but lacked a few directories we needed. On MacOS, there are
145 a few applications that can be useful to determine what we need to add to
146 the PATH variable. Those applications are gexpr, gdate, gsed and gstat. We
147 can use the which, whereis or find commands to determine where they are on
148 our system. On the system we were having a problem with, we discovered that
149 some of these applications were in /opt/local/bin and others were in
150 /usr/local/bin so we needed to add those directories to our PATH variable
151 for Podget to work.
152
153 So we changed our cronjob from:
154 15 04 * * * /usr/bin/podget -s
155 To:
156 15 04 * * * PATH=/opt/local/bin:/usr/local/bin:$PATH /usr/bin/podget -s
157
158 If you wish to see the differences in how PATH is configured:
159 FOR THE SHELL: Simply run "echo $PATH"
160 FOR A CRONJOB:
161 1. Create simple shell script /tmp/test_cron.sh which contains:
162 #!/usr/bin/env bash
163 echo "PATH: $PATH"
164 2. Configure a cronjob to run the script with "crontab -e"
165 * * * * * /tmp/test_cron.sh > /tmp/test_cron.out
166 NOTE: This job will run every minute so disable it as soon as
167 it has run once or twice.
168 3. Open the file /tmp/test_cron.out in an editor to see how it has
169 the PATH variable configured.