In my shack PC I have installed two hard drives.
/dev/sda is a 120 GB SSD
/dev/sdb is a 320 GB traditional platter HD
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors Disk model: CT120BX500SSD1 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: E29FE639-9F17-4792-95B4-CB5638FDC0C1 Device Start End Sectors Size Type /dev/sda1 2048 46942207 46940160 22.4G Linux filesystem /dev/sda2 46942208 54753279 7811072 3.7G Linux swap /dev/sda3 54753280 234440703 179687424 85.7G Linux filesystem Disk /dev/sdb: 298.1 GiB, 320072933376 bytes, 625142448 sectors Disk model: WDC WD3200BEVT-2 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 1848E24C-5B33-4360-A086-D681AD374C6C Device Start End Sectors Size Type /dev/sdb1 2048 46942207 46940160 22.4G Linux filesystem /dev/sdb2 46942208 54747135 7804928 3.7G Linux swap /dev/sdb3 54747136 234424319 179677184 85.7G Linux filesystem /dev/sdb4 234424320 625141759 390717440 186.3G Linux filesystem
I use this bash script before I turn off my PC to back up everything to the second hard drive.
#!/bin/bash #This script will mount partition one of the second hard drive, then use rsync to back up the root directory containing the OS. After that the partition will be unmounted. sudo /usr/bin/mount /dev/sdb1 /mnt sleep 1 sudo rsync -aAXv / --exclude={"/home/*","/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /mnt sleep 1 sudo /usr/bin/umount /mnt #Same goes for this block of code, except that is will back up the home directory sudo /usr/bin/mount /dev/sdb3 /mnt sleep 1 sudo rsync -aAXv --exclude={".cache"} /home /mnt sleep 1 sudo /usr/bin/umount /mnt
Go to the following directory: /home/hans/.config/Gpredict/satdata/
Make a new text file with a high number, for example 45000.sat
Enter the following information in the file:
[Satellite] VERSION=1.1 NAME=FOX-1B (AO-91) NICKNAME=FOX-1B (AO-91) TLE1=1 43017U 17073E 19164.72555590 .00000235 00000-0 23853-4 0 9997 TLE2=2 43017 97.7237 86.2811 0258323 174.2847 186.1416 14.78541632 84521 STATUS=0
Change the name, nickname and TLE1 and 2 to the desired satellite info. Save, then using the name you search for it in Gpredict.
sox -t wav IQ.wav -e floating-point -t raw -r 192000 -b 32 -c 2 IQ.raw
Need more testing, but it seems to work.
In order to make USB devices use a fixed entry point in /dev do the following:
Check what audio devices you have installed with aplay -l
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC221 Analog [ALC221 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CODEC [USB Audio CODEC], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
Check the vendor information with lsusb -v | grep "USB Audio CODEC"
$ lsusb -v | grep -B4 "USB Audio CODEC"
idVendor 0x08bb Texas Instruments
idProduct 0x2902 PCM2902 Audio Codec
bcdDevice 1.00
iManufacturer 1 Burr-Brown from TI
iProduct 2 USB Audio CODEC
Now open the alsa configuration file located in /etc/modprobe.d/
sudo nano /etc/modprobe.d/alsa-base.conf
And add the following, using the vendor and product IDs from above.
#1- Behringer Audio USB interface for TS-2000
options snd-usb-audio index=1 vid=0x08bb pid=0x02902
Restart ALSA or reboot and from now on the Behringer USB audio interface should always be at slot #1 (slot #0 being the build in audio interface of the motherboard).
This is the command line entry to get the IC-820H started with rigctld.
rigctld -m332 -t4532 -r /dev/IC820H-CIV -s9600
This is the command line entry to get the TS-2000 started with rigctld.
rigctld -m 2014 -t 4532 -r /dev/ttyUSB1 -s 57600
After the installation of all iio libraries and the iio daemon there is one more step to take and that is to make iiod start with USB support. See this website:
https://wiki.analog.com/resources/tools-software/linux-software/libiio
Go to "Starting IIOD with USB support" and copy the config file to /etc/init.d. Now you should be able to run SDRangel as a non-root user.
Thanks to this page for the hint: https://github.com/timcardenuto/testPlutoSDR