-
Notifications
You must be signed in to change notification settings - Fork 15
/
minstall_WSL_Ubuntu.txt
executable file
·287 lines (266 loc) · 5.99 KB
/
minstall_WSL_Ubuntu.txt
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
#!/bin/tcsh
# Also git cmake and pkg-config
##*******************************
On Windows as ADMIN
wsl --install Ubuntu-22.04
wsl -l -v
wsl --list --online
wsl -d Ubuntu-22.04
wsl --unregister Ubuntu-22.04
wsl --unregister Ubuntu
On Windows as ADMIN
usbipd list
usbipd bind --busid 2-23
usbipd attach --wsl --busid 2-23
On Windows as ADMIN
usbipd detach --busid 2-23
On Linux
sudo apt-get update
sudo apt-get upgrade
sudo apt install linux-tools-generic hwdata
sudo update-alternatives --install /usr/local/bin/usbip usbip /usr/lib/linux-tools/*-generic/usbip 20
lsusb
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install tcsh
tcsh
vi .tcshrc
alias h history
set path =(. $path)
tcsh
sudo apt-get cmake
sudo apt-get git
sudo apt-get pkg-config
sudo apt-get geany
sudo apt-get install python3-pip
pip3 install ruamel.yaml
pip3 install numpy
pip3 install requests
pip3 install mako
sudo apt-get install libboost1.74-all-dev -y
sudo apt-get install libusb-1.0-0-dev -y
git clone --depth=1 https://github.com/MicroPhase/antsdr_uhd
cd antsdr_uhd
cd host
mkdir build
cd build
#cmake -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DENABLE_X400=OFF -DENABLE_N320=OFF -DENABLE_X300=OFF -DENABLE_USRP2=OFF -DENABLE_USRP1=OFF -DENABLE_N300=OFF -DENABLE_E320=OFF -DENABLE_E300=OFF ../
cmake -DENABLE_X400=OFF -DENABLE_N320=OFF -DENABLE_X300=OFF -DENABLE_USRP2=OFF -DENABLE_USRP1=OFF -DENABLE_N300=OFF -DENABLE_E320=OFF -DENABLE_E300=OFF ../
make -j 12
sudo make install
sudo ldconfig
uhd_find_devices --args "addr=192.168.1.10"
cd ..
cd ..
cd ..
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install libsoapysdr-dev -y
sudo apt-get install libopenal-dev -y
sudo apt-get install libliquid-dev -y
sudo apt-get install libalut-dev -y
sudo apt-get install portaudio19-dev -y
sudo apt-get install libsndfile1-dev -y
sudo apt-get install librtaudio-dev -y
sudo apt-get install libglew-dev -y
sudo apt-get install freeglut3-dev -y
sudo apt-get install git -y
cd ~/Desktop
git clone --depth=1 https://github.com/righthalfplane/SdrGlut.git
cd SdrGlut
make -f makefileUbunta -j 8
setenv SOAPY_SDR_ROOT /usr/
./sdrglut.x
#cmake-3.10.2.tar.gz
#./bootstrap
#make -j 8
#sudo make install
##********************************
##**********************************************
##pkg-config-0.29.2
##configure --with-internal-glib --prefix=/usr/local
##make -j 8
##sudo make install
##**********************************************
setenv DYLD_LIBRARY_PATH /usr/local/lib
setenv SOAPY_SDR_ROOT /usr/local
###########################################
tar -zxvf autoconf-2.69.tar.gz
cd autoconf-2.69
configure --prefix=/usr/local
make -j 8
sudo make install
sudo ldconfig
cd ..
###########################################
tar -zxvf automake-1.15.tar.gz
cd automake-1.15
configure --prefix=/usr/local
make -j 8
sudo make install
sudo ldconfig
cd ..
###########################################
tar -zxvf fftw-3.3.10.tar.gz
cd fftw-3.3.10
configure --prefix=/usr/local --enable-single
make -j 8
sudo make install
sudo ldconfig
#make clean
#configure --prefix=/usr/local
#make -j 8
#sudo make install
cd ..
###########################################
tar -zxvf liquid-dsp-master.gz
cd liquid-dsp-master
./bootstrap.sh
./configure --prefix=/usr/local
make
sudo make install
sudo ldconfig
cd ..
###########################################
tar -zxvf SoapySDR-soapy-sdr-0.8.1.tar.gz
cd SoapySDR-soapy-sdr-0.8.1
mkdir build
cd build
cmake ../
make -j 8
sudo make install
sudo ldconfig
cd ..
cd ..
###########################################
#tar -zxvf libusb-1.0.26.gz
#cd libusb-1.0.26
#./bootstrap.sh
#./configure --prefix=/usr/local
#make -j 8
#sudo make install
#sudo ldconfig
#cd ..
###########################################
tar -zxvf airspyhf-master.gz
cd airspyhf-master
mkdir build
cd build
#cmake ../ -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0
cmake ../
make -j 8
sudo make install
sudo ldconfig
cd ..
cd ..
###########################################
tar -zxvf SoapyAirspyHF-master.gz
cd SoapyAirspyHF-master
mkdir build
cd build
#cmake ../ -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0
cmake ../
make -j 8
sudo make install
sudo ldconfig
cd ..
cd ..
###########################################
tar -zxvf libsndfile.gz
cd libsndfile
mkdir build
cd build
#cmake ../ -DENABLE_EXTERNAL_LIBS=0 -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0
cmake ../
make -j 8
sudo make install
sudo ldconfig
cd ..
cd ..
###########################################
tar -zxvf rtaudio-6.0.1.tar.gz
cd rtaudio-6.0.1
mkdir build
cd build
#cmake ../ -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 -DCMAKE_OSX_ARCHITECTURES=arm64
cmake ../
make -j 8
sudo make install
sudo ldconfig
cd ..
cd ..
###########################################
tar -zxvf bladeRF.gz
cd bladeRF
cd host
mkdir build
cd build
cmake ../
make -j 8
sudo make install
sudo ldconfig
cd ..
cd ..
cd ..
***************************************
tar -zxvf SoapyBladeRF-master.gz
cd SoapyBladeRF-master
mkdir build
cd build
cmake ../
make -j 8
sudo make install
sudo ldconfig
cd ..
cd ..
###########################################
tar -zxvf hackrf-master.gz
cd hackrf-master
cd host
mkdir build
cd build
#cmake ../ -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0
cmake ../
make -j 8
sudo make install
sudo ldconfig
cd ..
cd ..
cd ..
###########################################
tar -zxvf SoapyHackRF.gz
cd SoapyHackRF
mkdir build
cd build
#cmake ../ -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0
cmake ../
make -j 8
sudo make install
sudo ldconfig
cd ..
cd ..
###########################################
tar -zxvf librtlsdr-master.gz
cd librtlsdr-master
mkdir build
cd build
#cmake ../ -DCMAKE_BUILD_TYPE=Release -DLIBUSB_LIBRARIES=/usr/local/lib/libusb-1.0.a -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0
cmake ../
make -j 8
sudo make install
sudo ldconfig
cd ..
cd ..
###########################################
tar -zxvf SoapyRTLSDR-master.gz
cd SoapyRTLSDR-master
mkdir build
cd build
cmake ../
make -j 8
sudo make install
sudo ldconfig
cd ..
cd ..
###########################################