Showing posts with label Terminal. Show all posts
Showing posts with label Terminal. Show all posts

03 November 2021

SDR HD Radio

This was saved as an unfinished daft from a few years ago... figured I would post it anyway.

I just spent a ton of hours getting nrsc5 installed on my macOS without using ports or brew. The question is was it worth it?

Dependencies
- git
- cmake
- autoconf
- libtool
  - help2man
  - xz
  - automake
- libao
- libfftw3
    ./configure --enable-threads && make -j8 && sudo make install
    ./configure --enable-float --enable-threads && make -j8 && sudo make install
- librtlsdr
  - libusb
  - pkg-config
      ./configure --with-internal-glib
  edit CMakeLists.txt
    cmake_policy(SET CMP0075 NEW)
    set(CMAKE_MACOSX_RPATH 1)


nrsc5
edit CMakeLists.txt
  -check_symbol_exists (_Imaginary_I complex.h HAVE_IMAGINARY_I)
  -check_symbol_exists (_Complex_I complex.h HAVE_COMPLEX_I)
  +check_symbol_exists (I complex.h HAVE_IMAGINARY_I)
  +check_symbol_exists (complex complex.h HAVE_COMPLEX_I)
sudo ln -s /usr/local/bin/libtoolize /usr/local/bin/glibtoolize
cmake -DUSE_COLOR=ON ..
make -j8
sudo make install

and it works...

Would I do it again? Probably, but only now that I have this info on what I needed and what to change for it to work. Heck you could almost make a script out of it...

08 March 2013

TFTP Server in Snow Leopard

I have an old WRTP54G from Vonage and wanted to unlock it so I can setup my own VoIP with Asterisk. But in order to do that the instructions indicated I needed to have a tftp server setup using windows and that just looked like a lot of setup/work. So I looked at how to do it on a Mac and this is what I found.

You can start and stop tftp using the following commands

sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist

sudo launchctl unload /System/Library/LaunchDaemons/tftp.plist

tftp files are stored in /private/tftpboot


Now That was Easy!

I did however still need a windows vbox to run cyt35.exe and I don't have the code or know what it does so I couldn't hack it from the mac. Maybe I'll dig into it some day.


TFTP [source]
WRTP54G Unlock [soruce]

01 December 2010

Terminal and PATH

After installing the latest MySQL for education/testing to my Mac I noticed I still needed to add the mysql/bin directory to my $PATH. I thought okay this should be simple to do right? But, following a mind numbing searching through a bunch of .shell_name_profile_info files in my home directory I became frustrated. So where is the correct place to store a new path for just installed software (assuming it didn't do it for me?)

The final answer should be simple right? Well, (and I'm lying here) it depends, who do you want to have easy access to the new path? For instance if you use su - and you add the path to just your stuff your out of luck when root or any other user is trying to get things started.


Info for Mac OS X 10.6:
I like TextMate but vi is free and included. (info on using vi)

Strictly You PATH:(or the person you are logged in as)
vi ~/.profile
edit or add if it's not already there
export PATH="/path/you/want/to/add:$PATH"
and save the file.

All User PATH:
go to
cd /etc/paths.d
make a new file
sudo vi mysql(SoftwareName)
enter your new path
/usr/local/mysql/bin
and save the new file

And because I'm still somewhat new to this if anyone has info on the proper place to setup PATH just for root please let me know and I'll add it in. Thanks.