NativeCam raspberry Pi 4
12 Apr 2020 18:22 #163802
by FernV
Replied by FernV on topic Use NativeCAM as a deb package now
.. Non-Deb.. is the reason
Fern
Fern
Please Log in or Create an account to join the conversation.
- Dinuka_Shehan
- Offline
- Platinum Member
Less
More
- Posts: 346
- Thank you received: 26
03 May 2020 03:09 #166461
by Dinuka_Shehan
Replied by Dinuka_Shehan on topic Use NativeCAM as a deb package now
have you got nativecam lathe mode.
I cannot find it?
Can you provide link!
No youtube video on nativecam lathe mode.
I cannot find it?
Can you provide link!
No youtube video on nativecam lathe mode.
Please Log in or Create an account to join the conversation.
14 May 2020 23:53 - 15 May 2020 06:46 #167798
by rudi
Replied by rudi on topic Use NativeCAM as a deb package now
I have the problem with Debian Wheezy. Can you give instructions on how to solve the problem?
this is my problem when opening the script.
#!/bin/bash
unknown_os ()
{
echo "Unfortunately, your operating system distribution and version are not supported by this script."
echo
echo "You can override the OS detection by setting os= and dist= prior to running this script."
echo "You can find a list of supported OSes and distributions on our website: packagecloud.io/docs#os_distro_version"
echo
echo "For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh"
echo
echo "Please email This email address is being protected from spambots. You need JavaScript enabled to view it. and let us know if you run into any issues."
exit 1
}
gpg_check ()
{
echo "Checking for gpg..."
if command -v gpg > /dev/null; then
echo "Detected gpg..."
else
echo "Installing gnupg for GPG verification..."
apt-get install -y gnupg
if [ "$?" -ne "0" ]; then
echo "Unable to install GPG! Your base system has a problem; please check your default OS's package repositories because GPG should work."
echo "Repository installation aborted."
exit 1
fi
fi
}
curl_check ()
{
echo "Checking for curl..."
if command -v curl > /dev/null; then
echo "Detected curl..."
else
echo "Installing curl..."
apt-get install -q -y curl
if [ "$?" -ne "0" ]; then
echo "Unable to install curl! Your base system has a problem; please check your default OS's package repositories because curl should work."
echo "Repository installation aborted."
exit 1
fi
fi
}
install_debian_keyring ()
{
if [ "${os}" = "debian" ]; then
echo "Installing debian-archive-keyring which is needed for installing "
echo "apt-transport-https on many Debian systems."
apt-get install -y debian-archive-keyring &> /dev/null
fi
}
detect_os ()
{
if ( -z "${os}" ) && ( -z "${dist}" ); then
# some systems dont have lsb-release yet have the lsb_release binary and
# vice-versa
if [ -e /etc/lsb-release ]; then
. /etc/lsb-release
if [ "${ID}" = "raspbian" ]; then
os=${ID}
dist=`cut --delimiter='.' -f1 /etc/debian_version`
else
os=${DISTRIB_ID}
dist=${DISTRIB_CODENAME}
if [ -z "$dist" ]; then
dist=${DISTRIB_RELEASE}
fi
fi
elif [ `which lsb_release 2>/dev/null` ]; then
dist=`lsb_release -c | cut -f2`
os=`lsb_release -i | cut -f2 | awk '{ print tolower($1) }'`
elif [ -e /etc/debian_version ]; then
# some Debians have jessie/sid in their /etc/debian_version
# while others have '6.0.7'
os=`cat /etc/issue | head -1 | awk '{ print tolower($1) }'`
if grep -q '/' /etc/debian_version; then
dist=`cut --delimiter='/' -f1 /etc/debian_version`
else
dist=`cut --delimiter='.' -f1 /etc/debian_version`
fi
else
unknown_os
fi
fi
if [ -z "$dist" ]; then
unknown_os
fi
# remove whitespace from OS and dist name
os="${os// /}"
dist="${dist// /}"
echo "Detected operating system as $os/$dist."
}
main ()
{
detect_os
curl_check
gpg_check
# Need to first run apt-get update so that apt-transport-https can be
# installed
echo -n "Running apt-get update... "
apt-get update &> /dev/null
echo "done."
# Install the debian-archive-keyring package on debian systems so that
# apt-transport-https can be installed next
install_debian_keyring
echo -n "Installing apt-transport-https... "
apt-get install -y apt-transport-https &> /dev/null
echo "done."
gpg_key_url="packagecloud.io/FernV/NativeCAM/gpgkey"
apt_config_url="packagecloud.io/install/repositories/Fer...{dist}&source=script"
apt_source_path="/etc/apt/sources.list.d/FernV_NativeCAM.list"
echo -n "Installing $apt_source_path..."
# create an apt config file for this repository
curl -sSf "${apt_config_url}" > $apt_source_path
curl_exit_code=$?
if [ "$curl_exit_code" = "22" ]; then
echo
echo
echo -n "Unable to download repo config from: "
echo "${apt_config_url}"
echo
echo "This usually happens if your operating system is not supported by "
echo "packagecloud.io, or this script's OS detection failed."
echo
echo "You can override the OS detection by setting os= and dist= prior to running this script."
echo "You can find a list of supported OSes and distributions on our website: packagecloud.io/docs#os_distro_version"
echo
echo "For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh"
echo
echo "If you are running a supported OS, please email This email address is being protected from spambots. You need JavaScript enabled to view it. and report this."
[ -e $apt_source_path ] && rm $apt_source_path
exit 1
elif [ "$curl_exit_code" = "35" -o "$curl_exit_code" = "60" ]; then
echo "curl is unable to connect to packagecloud.io over TLS when running: "
echo " curl ${apt_config_url}"
echo "This is usually due to one of two things:"
echo
echo " 1.) Missing CA root certificates (make sure the ca-certificates package is installed)"
echo " 2.) An old version of libssl. Try upgrading libssl on your system to a more recent version"
echo
echo "Contact This email address is being protected from spambots. You need JavaScript enabled to view it. with information about your system for help."
[ -e $apt_source_path ] && rm $apt_source_path
exit 1
elif [ "$curl_exit_code" -gt "0" ]; then
echo
echo "Unable to run: "
echo " curl ${apt_config_url}"
echo
echo "Double check your curl installation and try again."
[ -e $apt_source_path ] && rm $apt_source_path
exit 1
else
echo "done."
fi
echo -n "Importing packagecloud gpg key... "
# import the gpg key
curl -L "${gpg_key_url}" 2> /dev/null | apt-key add - &>/dev/null
echo "done."
echo -n "Running apt-get update... "
# update apt on this system
apt-get update &> /dev/null
echo "done."
echo
echo "The repository is setup! You can now install packages."
}
main
this is my problem when opening the script.
#!/bin/bash
unknown_os ()
{
echo "Unfortunately, your operating system distribution and version are not supported by this script."
echo
echo "You can override the OS detection by setting os= and dist= prior to running this script."
echo "You can find a list of supported OSes and distributions on our website: packagecloud.io/docs#os_distro_version"
echo
echo "For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh"
echo
echo "Please email This email address is being protected from spambots. You need JavaScript enabled to view it. and let us know if you run into any issues."
exit 1
}
gpg_check ()
{
echo "Checking for gpg..."
if command -v gpg > /dev/null; then
echo "Detected gpg..."
else
echo "Installing gnupg for GPG verification..."
apt-get install -y gnupg
if [ "$?" -ne "0" ]; then
echo "Unable to install GPG! Your base system has a problem; please check your default OS's package repositories because GPG should work."
echo "Repository installation aborted."
exit 1
fi
fi
}
curl_check ()
{
echo "Checking for curl..."
if command -v curl > /dev/null; then
echo "Detected curl..."
else
echo "Installing curl..."
apt-get install -q -y curl
if [ "$?" -ne "0" ]; then
echo "Unable to install curl! Your base system has a problem; please check your default OS's package repositories because curl should work."
echo "Repository installation aborted."
exit 1
fi
fi
}
install_debian_keyring ()
{
if [ "${os}" = "debian" ]; then
echo "Installing debian-archive-keyring which is needed for installing "
echo "apt-transport-https on many Debian systems."
apt-get install -y debian-archive-keyring &> /dev/null
fi
}
detect_os ()
{
if ( -z "${os}" ) && ( -z "${dist}" ); then
# some systems dont have lsb-release yet have the lsb_release binary and
# vice-versa
if [ -e /etc/lsb-release ]; then
. /etc/lsb-release
if [ "${ID}" = "raspbian" ]; then
os=${ID}
dist=`cut --delimiter='.' -f1 /etc/debian_version`
else
os=${DISTRIB_ID}
dist=${DISTRIB_CODENAME}
if [ -z "$dist" ]; then
dist=${DISTRIB_RELEASE}
fi
fi
elif [ `which lsb_release 2>/dev/null` ]; then
dist=`lsb_release -c | cut -f2`
os=`lsb_release -i | cut -f2 | awk '{ print tolower($1) }'`
elif [ -e /etc/debian_version ]; then
# some Debians have jessie/sid in their /etc/debian_version
# while others have '6.0.7'
os=`cat /etc/issue | head -1 | awk '{ print tolower($1) }'`
if grep -q '/' /etc/debian_version; then
dist=`cut --delimiter='/' -f1 /etc/debian_version`
else
dist=`cut --delimiter='.' -f1 /etc/debian_version`
fi
else
unknown_os
fi
fi
if [ -z "$dist" ]; then
unknown_os
fi
# remove whitespace from OS and dist name
os="${os// /}"
dist="${dist// /}"
echo "Detected operating system as $os/$dist."
}
main ()
{
detect_os
curl_check
gpg_check
# Need to first run apt-get update so that apt-transport-https can be
# installed
echo -n "Running apt-get update... "
apt-get update &> /dev/null
echo "done."
# Install the debian-archive-keyring package on debian systems so that
# apt-transport-https can be installed next
install_debian_keyring
echo -n "Installing apt-transport-https... "
apt-get install -y apt-transport-https &> /dev/null
echo "done."
gpg_key_url="packagecloud.io/FernV/NativeCAM/gpgkey"
apt_config_url="packagecloud.io/install/repositories/Fer...{dist}&source=script"
apt_source_path="/etc/apt/sources.list.d/FernV_NativeCAM.list"
echo -n "Installing $apt_source_path..."
# create an apt config file for this repository
curl -sSf "${apt_config_url}" > $apt_source_path
curl_exit_code=$?
if [ "$curl_exit_code" = "22" ]; then
echo
echo
echo -n "Unable to download repo config from: "
echo "${apt_config_url}"
echo
echo "This usually happens if your operating system is not supported by "
echo "packagecloud.io, or this script's OS detection failed."
echo
echo "You can override the OS detection by setting os= and dist= prior to running this script."
echo "You can find a list of supported OSes and distributions on our website: packagecloud.io/docs#os_distro_version"
echo
echo "For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh"
echo
echo "If you are running a supported OS, please email This email address is being protected from spambots. You need JavaScript enabled to view it. and report this."
[ -e $apt_source_path ] && rm $apt_source_path
exit 1
elif [ "$curl_exit_code" = "35" -o "$curl_exit_code" = "60" ]; then
echo "curl is unable to connect to packagecloud.io over TLS when running: "
echo " curl ${apt_config_url}"
echo "This is usually due to one of two things:"
echo
echo " 1.) Missing CA root certificates (make sure the ca-certificates package is installed)"
echo " 2.) An old version of libssl. Try upgrading libssl on your system to a more recent version"
echo
echo "Contact This email address is being protected from spambots. You need JavaScript enabled to view it. with information about your system for help."
[ -e $apt_source_path ] && rm $apt_source_path
exit 1
elif [ "$curl_exit_code" -gt "0" ]; then
echo
echo "Unable to run: "
echo " curl ${apt_config_url}"
echo
echo "Double check your curl installation and try again."
[ -e $apt_source_path ] && rm $apt_source_path
exit 1
else
echo "done."
fi
echo -n "Importing packagecloud gpg key... "
# import the gpg key
curl -L "${gpg_key_url}" 2> /dev/null | apt-key add - &>/dev/null
echo "done."
echo -n "Running apt-get update... "
# update apt on this system
apt-get update &> /dev/null
echo "done."
echo
echo "The repository is setup! You can now install packages."
}
main
Last edit: 15 May 2020 06:46 by rudi.
Please Log in or Create an account to join the conversation.
18 Sep 2020 15:39 #182658
by blue0cean
Replied by blue0cean on topic Use NativeCAM as a deb package now
Hello,
I would like to set the Surface Speed value less than 100 in the tool change. I have already tried this in the file /home/cnc/linuxcnc/configs/Erna_v1_H/ncam/cfg/lathe/tool-change.cfg here the value can be adjusted. The value is unfortunately not taken over by the surface, here the lowest value is 100. Does one of you have an idea?
I would like to set the Surface Speed value less than 100 in the tool change. I have already tried this in the file /home/cnc/linuxcnc/configs/Erna_v1_H/ncam/cfg/lathe/tool-change.cfg here the value can be adjusted. The value is unfortunately not taken over by the surface, here the lowest value is 100. Does one of you have an idea?
Please Log in or Create an account to join the conversation.
18 Sep 2020 15:40 #182659
by blue0cean
Replied by blue0cean on topic Use NativeCAM as a deb package now
my Values in tool-change.cfg
PARAM_SURF_SPEED]
name = _("Surface speed")
header = h2
type = int
minimum_value = 20
icon = tool-spindle.png
tool_tip = _("Constant spindle speed")
value = 125
grayed = 0
PARAM_SURF_SPEED]
name = _("Surface speed")
header = h2
type = int
minimum_value = 20
icon = tool-spindle.png
tool_tip = _("Constant spindle speed")
value = 125
grayed = 0
Please Log in or Create an account to join the conversation.
29 Sep 2020 18:32 #184318
by Thorhian
Replied by Thorhian on topic Use NativeCAM as a deb package now
Hello!
I am currently trying to install NativeCAM at the moment, but the install script doesn't seem to be working. I then realized that I am on a Raspberry Pi 4, so I am not using an x86-64 arch. I figured that is why the script doesn't install anything when it is finished (with no errors). Is there a way to compile on the RPi and then install?
I am currently trying to install NativeCAM at the moment, but the install script doesn't seem to be working. I then realized that I am on a Raspberry Pi 4, so I am not using an x86-64 arch. I figured that is why the script doesn't install anything when it is finished (with no errors). Is there a way to compile on the RPi and then install?
Please Log in or Create an account to join the conversation.
21 Apr 2021 13:28 #206641
by itanc
Replied by itanc on topic Use NativeCAM as a deb package now
Hi Fern,
I love NativeCAM and thanks for the work you have put into it. i cant however get it to install. i have a fresh wheezy install and ncam_debsetup.txt on my desktop. when i run sudo bash ncam-debsetip.txt i get the following
tanc@debian5:~/Desktop$ sudo bash ncam_debsetup.txt
[sudo] password for tanc:
Detected operating system as debian/wheezy.
Checking for curl...
Installing curl...
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Running apt-get update... done.
Installing debian-archive-keyring which is needed for installing
apt-transport-https on many Debian systems.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/FernV_NativeCAM.list...ncam_debsetup.txt: line 115: curl: command not found
Unable to run:
curl packagecloud.io/install/repositories/Fer...wheezy&source=script
Double check your curl installation and try again.
tanc@debian5:~/Desktop$ ncam -h
bash: ncam: command not found
tanc@debian5:~/Desktop$
any insight?
cheers
tanc
I love NativeCAM and thanks for the work you have put into it. i cant however get it to install. i have a fresh wheezy install and ncam_debsetup.txt on my desktop. when i run sudo bash ncam-debsetip.txt i get the following
tanc@debian5:~/Desktop$ sudo bash ncam_debsetup.txt
[sudo] password for tanc:
Detected operating system as debian/wheezy.
Checking for curl...
Installing curl...
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Running apt-get update... done.
Installing debian-archive-keyring which is needed for installing
apt-transport-https on many Debian systems.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/FernV_NativeCAM.list...ncam_debsetup.txt: line 115: curl: command not found
Unable to run:
curl packagecloud.io/install/repositories/Fer...wheezy&source=script
Double check your curl installation and try again.
tanc@debian5:~/Desktop$ ncam -h
bash: ncam: command not found
tanc@debian5:~/Desktop$
any insight?
cheers
tanc
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19106
- Thank you received: 6398
21 Apr 2021 14:51 #206655
by tommylight
Replied by tommylight on topic Use NativeCAM as a deb package now
sudo apt-get install curl
Please Log in or Create an account to join the conversation.
21 Apr 2021 18:59 #206698
by itanc
Replied by itanc on topic Use NativeCAM as a deb package now
cheers for the reply tommy,
tried that and got this...
tanc@debian5:~$ sudo apt-get install curl
[sudo] password for tanc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'curl' has no installation candidate
tanc@debian5:~$
thanks again
tried that and got this...
tanc@debian5:~$ sudo apt-get install curl
[sudo] password for tanc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'curl' has no installation candidate
tanc@debian5:~$
thanks again
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19106
- Thank you received: 6398
21 Apr 2021 21:18 #206706
by tommylight
Replied by tommylight on topic Use NativeCAM as a deb package now
Check the menu for "synaptics package manager" or "software sources", open it an click on "enable partner repositories" and "enable source code" or similar, then do
sudo apt-get update
then try again the above line.
sudo apt-get update
then try again the above line.
Please Log in or Create an account to join the conversation.
Time to create page: 0.132 seconds