Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while installing stratux fresh. #240

Closed
fiamor opened this issue Aug 2, 2023 · 4 comments
Closed

error while installing stratux fresh. #240

fiamor opened this issue Aug 2, 2023 · 4 comments

Comments

@fiamor
Copy link

fiamor commented Aug 2, 2023

  1. Stratux version:
    latest

  2. Description of your issue:

when trying to start stratux by running this command
sudo make && make install && stxrestart
on a fresh version of raspbian os, I'm getting
[cannot create regular file](cp: cannot create regular file '/opt/stratux//www/css/addtohomescreen.css': Permission denied)
I fixed the double slash by changing line 10 of the Makefile under stratux/web to this
www=$(STRATUX_HOME)www
but that wasn't enough to fix the issue.

seraph@raspberrypi:~/Documents/stratux $ sudo make && make install && stxrestart sudo apt-get install libncurses-dev Reading package lists... Done Building dependency tree... Done Reading state information... Done libncurses-dev is already the newest version (6.2+20201114-2+deb11u1). The following package was automatically installed and is no longer required: libfuse2 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. sudo apt install librtlsdr-dev Reading package lists... Done Building dependency tree... Done Reading state information... Done librtlsdr-dev is already the newest version (0.6.0-3). The following package was automatically installed and is no longer required: libfuse2 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. git submodule update --init dump1090 cd dump1090 && make BLADERF=no make[1]: Entering directory '/home/seraph/Documents/stratux/dump1090' Building with: Version string: unknown Architecture: aarch64 DSP mix: aarch64 RTLSDR support: yes BladeRF support: no HackRF support: no LimeSDR support: no make[1]: Leaving directory '/home/seraph/Documents/stratux/dump1090' git submodule update --init rtl-ais cd rtl-ais && sed -i 's/^LDFLAGS+=-lpthread.*/LDFLAGS+=-lpthread -lm -lrtlsdr -L \/usr\/lib\//' Makefile && make make[1]: Entering directory '/home/seraph/Documents/stratux/rtl-ais' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/seraph/Documents/stratux/rtl-ais' make -C web make[1]: Entering directory '/home/seraph/Documents/stratux/web' mkdir -p /opt/stratux//www cp -r css /opt/stratux//www/ cp: cannot create regular file '/opt/stratux//www/css/addtohomescreen.css': Permission denied cp: cannot create regular file '/opt/stratux//www/css/ahrs.css': Permission denied cp: cannot create regular file '/opt/stratux//www/css/dark-mode.css': Permission denied cp: cannot create regular file '/opt/stratux//www/css/main.css': Permission denied cp: cannot create regular file '/opt/stratux//www/css/map.css': Permission denied cp: cannot create regular file '/opt/stratux//www/css/ol-layerswitcher.css': Permission denied cp: cannot create regular file '/opt/stratux//www/css/ol.css': Permission denied cp: cannot create regular file '/opt/stratux//www/css/radar.css': Permission denied make[1]: *** [Makefile:14: all] Error 1 make[1]: Leaving directory '/home/seraph/Documents/stratux/web' make: *** [Makefile:58: www] Error 2

@fiamor
Copy link
Author

fiamor commented Aug 2, 2023

this is also reproducible when running make optinstall

@b3nn0
Copy link
Owner

b3nn0 commented Aug 2, 2023

You need root permissions to write /opt. Can't do that as a normal user.

@b3nn0 b3nn0 closed this as completed Aug 2, 2023
@fiamor
Copy link
Author

fiamor commented Aug 2, 2023

I thought running it as Sudo took care of that ? also the folders and the files already exist under stratux/www/css.

@b3nn0
Copy link
Owner

b3nn0 commented Aug 2, 2023

You ran "make" with sudo, but not "make install" or "stxrestart"

sorry, this is not an "introduction to the Linux shell" support forum. This will be the least of the issues you will be facing.
If you want something that works much simpler and much more reliable, use a Stratux base image and start from there. All the heavy lifting is done there. See https://github.com/b3nn0/stratux/blob/master/image/mk_europe_edition_device_setup64.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants