Raspberry Pi 4 Tutorial - fatal error
30 Aug 2019 16:27 #143671
by zanga
Replied by zanga on topic Raspberry Pi 4 Tutorial
On the page for installing OpenBox
sudo apt install OpenBox needs to be changed to:
sudo apt install openbox (at least on my system)
sudo apt install OpenBox needs to be changed to:
sudo apt install openbox (at least on my system)
Please Log in or Create an account to join the conversation.
30 Aug 2019 18:21 #143679
by BigJohnT
Once you change PermitRootLogin you can ssh This email address is being protected from spambots. You need JavaScript enabled to view it.?
JT
Replied by BigJohnT on topic Raspberry Pi 4 Tutorial
On the last page 'extras', since I was trying to do most of this via ssh, I forgot to enable root access via ssh before I logged out... it's easier if you just enable this at the same time you set the password for root
To enable SSH login for a root user on Debian Linux system you need to first configure SSH server. Open /etc/ssh/sshd_config and change the following line:
FROM:
PermitRootLogin without-password
TO:
PermitRootLogin yes
Once you made the above change restart your SSH server:
# /etc/init.d/ssh restart
[ ok ] Restarting ssh (via systemctl): ssh.service.
Once you change PermitRootLogin you can ssh This email address is being protected from spambots. You need JavaScript enabled to view it.?
JT
Please Log in or Create an account to join the conversation.
30 Aug 2019 18:22 #143680
by BigJohnT
That typo has been fixed, thanks for the report.
JT
Replied by BigJohnT on topic Raspberry Pi 4 Tutorial
On the page for installing OpenBox
sudo apt install OpenBox needs to be changed to:
sudo apt install openbox (at least on my system)
That typo has been fixed, thanks for the report.
JT
Please Log in or Create an account to join the conversation.
31 Aug 2019 01:04 #143700
by zanga
Replied by zanga on topic Raspberry Pi 4 Tutorial
yes, correct, after making the change I noted you can ssh in as root.
Its also best/easist to go ahead and reboot after renaming pi to 'newname' as there are still some processes running under pi so these 2 commands failed for me:
usermod -l newname pi
usermod -m -d /home/newname newname
until after a reboot and then subsequently logging in as root and then rerunning these commands worked fine. I'm sure could have hunted down and terminated the running processes but was just easier to reboot and then ssh back in as root to complete the 2 commands.
I haven't figured out how to add a menu item for linuxcnc in the openbox menu, it would be great if that was included in the tutorial.
Thanks kindly for putting together this tutorial it would have take me ages to figure all that out on my own.
Its also best/easist to go ahead and reboot after renaming pi to 'newname' as there are still some processes running under pi so these 2 commands failed for me:
usermod -l newname pi
usermod -m -d /home/newname newname
until after a reboot and then subsequently logging in as root and then rerunning these commands worked fine. I'm sure could have hunted down and terminated the running processes but was just easier to reboot and then ssh back in as root to complete the 2 commands.
I haven't figured out how to add a menu item for linuxcnc in the openbox menu, it would be great if that was included in the tutorial.
Thanks kindly for putting together this tutorial it would have take me ages to figure all that out on my own.
Please Log in or Create an account to join the conversation.
31 Aug 2019 01:07 #143701
by zanga
Replied by zanga on topic Raspberry Pi 4 Tutorial
actually the order needs to be:
1. set root password
2. enable root ssh access in sshd_config
3. reboot
4. ssh as root
5. usermod -l newname pi
6. usermod -m d /home/newname newname
1. set root password
2. enable root ssh access in sshd_config
3. reboot
4. ssh as root
5. usermod -l newname pi
6. usermod -m d /home/newname newname
Please Log in or Create an account to join the conversation.
01 Sep 2019 01:03 #143753
by zanga
Replied by zanga on topic Raspberry Pi 4 Tutorial
after following all of the steps w/ the RPI4 install when trying to start LinuxCNC I'm getting these errors.
1st error on startup says:
Found an error!
The following information may be useful in troubleshooting:
Traceback (most recent call last):
file "/usr/lib/python2.7/dist-packages/gladevcp/iconview.py".line 179, in __init__
self.dirIcon = self._get_icon("folder")
file "/usr/lib/python2.7/dist-packages/gladevcp/iconview.py". line 265, in _get_icon
return them.load_icon(name, self.icon_size, 0)
GError: Icon 'gtk-directory' not present in theme
(on a dialog box with an ok button)
after clearing that error, the traditional linuxcnc screen comes up and almost immediatly the second error dialog box comes up as follows:
Found an error!
The following information may be useful in troubleshooting:
Traceback (most recent call last):
File "/usr/bin/gmoccapy, line 5158, in <module>
app = gmoccapy(sys.argv)
File "/usr/bin/gmoccapy", line 336, in __init__
self._init_iconFileSelection()
File "/usr/bin/gmoccapy", line 2061, in _init_IconFileSelection
self.widgets.IconFileSelection1.show_filelabel(False)
File "/usr/lib/python2.7/dist-packages/gladevcp/
iconview.py", line 386, in show_fileLabel
self.file_label.hide()
AttributeError: 'IconFileSelection' object has no attribute 'file_label'
also with an "OK" button the dialog box. After clearing this dialog box linuxcnc aborts
It seems like there are some graphics resources missing but not sure what or where to get them...
Ideas?
1st error on startup says:
Found an error!
The following information may be useful in troubleshooting:
Traceback (most recent call last):
file "/usr/lib/python2.7/dist-packages/gladevcp/iconview.py".line 179, in __init__
self.dirIcon = self._get_icon("folder")
file "/usr/lib/python2.7/dist-packages/gladevcp/iconview.py". line 265, in _get_icon
return them.load_icon(name, self.icon_size, 0)
GError: Icon 'gtk-directory' not present in theme
(on a dialog box with an ok button)
after clearing that error, the traditional linuxcnc screen comes up and almost immediatly the second error dialog box comes up as follows:
Found an error!
The following information may be useful in troubleshooting:
Traceback (most recent call last):
File "/usr/bin/gmoccapy, line 5158, in <module>
app = gmoccapy(sys.argv)
File "/usr/bin/gmoccapy", line 336, in __init__
self._init_iconFileSelection()
File "/usr/bin/gmoccapy", line 2061, in _init_IconFileSelection
self.widgets.IconFileSelection1.show_filelabel(False)
File "/usr/lib/python2.7/dist-packages/gladevcp/
iconview.py", line 386, in show_fileLabel
self.file_label.hide()
AttributeError: 'IconFileSelection' object has no attribute 'file_label'
also with an "OK" button the dialog box. After clearing this dialog box linuxcnc aborts
It seems like there are some graphics resources missing but not sure what or where to get them...
Ideas?
Please Log in or Create an account to join the conversation.
01 Sep 2019 07:22 #143762
by pl7i92
Replied by pl7i92 on topic Raspberry Pi 4 Tutorial
you may also install opencascade that brings in rely good GTK sources that also be used by linuxcnc
Please Log in or Create an account to join the conversation.
- skunkworks
- Offline
- Moderator
Less
More
- Posts: 361
- Thank you received: 150
02 Sep 2019 18:50 #143919
by skunkworks
Replied by skunkworks on topic Raspberry Pi 4 Tutorial
I don't know if isolating 1,2,3 cores is realistic for running a machine. I am using andy's image and with 3 cores isolated I think there isn't enough for user space. There is hurky jurky motion. Isolating just one core seems ok as long as you don't use the machine for anything else. (don't run any youtube videos...)
sam
sam
Please Log in or Create an account to join the conversation.
02 Sep 2019 20:10 #143929
by andypugh
Replied by andypugh on topic Raspberry Pi 4 Tutorial
It might be worth trying:
unofficialpi.org/Distros/RealtimePi/nightly/
unofficialpi.org/Distros/RealtimePi/nightly/
Please Log in or Create an account to join the conversation.
02 Sep 2019 23:00 - 02 Sep 2019 23:02 #143965
by BigJohnT
Replied by BigJohnT on topic Raspberry Pi 4 Tutorial
As mentioned gscreen and some of gladevcp is broken after the install due to libraries that have been dropped by Debian 10 and Raspbian 10.
If you find a solution let me know...
JT
If you find a solution let me know...
JT
Last edit: 02 Sep 2019 23:02 by BigJohnT.
Please Log in or Create an account to join the conversation.
Time to create page: 0.354 seconds