I am having a strange problem with my Orangepi One, I previously had a python script which was run on login using .bashrc. The python script controlled VLC using the python bindings and hence I could not use crontab -e or rc.local as they are run in the backgound. Previously .bashrc worked without any issues however either I updated VLC or armbian and now it does not run after I login (even using an autologin). Strangely enough however if I login via SSH the script runs.
To access it I use :
sudo nano /home/user/.bashrc
To run the script I append to the end of the file without making any adjustments:
echo Running tv streaming program from boot
python3 /home/user/path_to_file/pyVLC.py
It seems strange as the program runs successfully when I login with SSH, which makes me think that maybe I need to specify that it runs in normal start-up or that perhaps there is something running before it that blocks it (maybe the armbian logo as it is not present in the ssh boot?).
I have reloaded the OS to see if I accidentally changed a setting however the same problem is occurring. The only changes that are made from the fresh boot were installing:
python3
cython
chromium
chromedriver
and enabling SSH from armbian-monitor
I am unsure how to proceed and any assistance would be greatly appreciated.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Fionn
Hi,
I am having a strange problem with my Orangepi One, I previously had a python script which was run on login using .bashrc. The python script controlled VLC using the python bindings and hence I could not use crontab -e or rc.local as they are run in the backgound. Previously .bashrc worked without any issues however either I updated VLC or armbian and now it does not run after I login (even using an autologin). Strangely enough however if I login via SSH the script runs.
To access it I use :
sudo nano /home/user/.bashrc
To run the script I append to the end of the file without making any adjustments:
echo Running tv streaming program from boot
python3 /home/user/path_to_file/pyVLC.py
It seems strange as the program runs successfully when I login with SSH, which makes me think that maybe I need to specify that it runs in normal start-up or that perhaps there is something running before it that blocks it (maybe the armbian logo as it is not present in the ssh boot?).
I have reloaded the OS to see if I accidentally changed a setting however the same problem is occurring. The only changes that are made from the fresh boot were installing:
python3
cython
chromium
chromedriver
and enabling SSH from armbian-monitor
I am unsure how to proceed and any assistance would be greatly appreciated.
Best regards,
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.