I've installed Android Things on my Raspberry Pi 3.
When I'm on the shell of my RPi3,
I note that there are not all commands of Linux, especially :
sudo
apt-get
Here is my OS :
1|rpi3:/ # uname -a
Linux localhost 4.4.19-v7+ #1 SMP PREEMPT Fri Aug 18 02:59:59 UTC 2017 armv7l
Can we install these commands ?
Android Things is an operating system based on Linux, with the same underlying kernel. However, it does not necessarily support every tool that is part of desktop Linux operating systems.
Some tools like apt-get are only on a few Linux variants. Macs, which use the same Linux kernel, do not have apt-get installed either.
Some binary files may run on Android, and many may not. Software that use certain types of drivers may not be supported due to changes in permission models and hardware configurations.
On the Raspberry Pi, it may have a traditional desktop interface in Raspbian. However, when running Android Things many of the traditional Linux components may not run, instead being replaced by tools that may make more sense for Android like the Package Manager and Activity Manager.
Related
I'm trying to test a SOM made by Variscite (VAR-SOM-6UL). On their website they have a precompiled Debian buster image. Unfortunately the cp210x module is not present on this image. This library automatically transforms a USB into UART channel. I use this library when I connect a sensor to the SoM so that they can both communicate via UART through USB.
I never had this problem before because the cp210x is preinstalled since kernel v3.x. For an unknown reason the cp210x module is not installed on the Debian buster image even tho the kernel version is v4.14.
$ uname -ar
Linux imx6ul-var-dart 4.14.78-g8e54a4b #1 SMP PREEMPT Tue Nov 19 16:42:38 PST 2019 armv7l GNU/Linux
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
This makes absolutely no sense but I have verified that there is indeed no cp210x on this image.
I'm stuck. I can't compile the cp210x module. I can't find another Linux library that does the same thing. I can't find the right linux-headers to compile the cp210x on my SoM.
I know that I should directly contact Variscite, but I cant even make an account it takes time to approve my account before I can post a question.
What I have tried so far:
installed the Linux-header
compiled the cp210x module from source to get a .ko file
put the .ko file in the right place and modprobe it
Did not work because the used Linux headers kernel version was higher than the running kernel. I can't find the right Linux headers version because the minimum version using apt get is v4.19.
I tried to use the https://snapshot.debian.org/ repository to download an older version of the Linux headers but it doesn't work because when I use the apt search linux-headers command the oldest Linux kernel is v4.19 (did not change).
I installed IntelliJ and WebStorm on my Linux Mint distro. The problem I have is that I cannot use the integrated terminal on both of the software. In both of them there is a problem with my bash binary location. I researched and saw that the software manager in Linux Mint installs flatpak software by default, and that it works as a sort of a container. I tried to change the location of my bash binary to var/run/host.. but it didn't seem to work.
I read that people solve this by installing the tar version of the software or using snapd. Since snapd is not supported by Linux Mint, what are my alternatives? Can I somehow give access to my software to use my bash, npm, etc... and if not, why is it that flatpak makes these things so difficult?..
Flatpak works as a sandbox environment - each pack has its own runtime environment and because of security reasons, flatpak apps do not have direct access to host files. There could be a lot of problems due to this.
Please try reinstalling the IDE using one of the officially recommended options (https://www.jetbrains.com/help/webstorm/installation-guide.html) - download the tar.gz from https://www.jetbrains.com/webstorm/download/#section=linux, or use the toolbox app to manage installations
I've completed the following tutorial on an Ubuntu server...
https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/setup
I then tried it on a Red Hat distro (CentOS (Red Hat 4.8.5-39)) but it failed to compile.
Prompted me to ask what OS's are supported by Substrate?
Thanks in advance :)
The Getting Started guide lists macOS (BSD), Ubuntu/Debiant, and Arch Linux as preferred distributions. It also says Windows is supported, though not preferred (due to Windows lacking a Bash-style shell by default).
That doesn't mean other distros won't work - if "it failed to compile" then your machine is missing some dependency. The platform is built using Rust (for the service) and JS+npm for the front-end GUI - so it follows that Substrate should run on any platform that Rust (and npm) will run on (i.e. every modern distro of Linux).
How to run this cmd in windows OS
phabricator/ $ ./bin/storage upgrade
I am configuring the phabricator in windows machine using following post.
https://secure.phabricator.com/book/phabricator/article/configuration_guide/
other than configuring mysql everything is done.
https://secure.phabricator.com/book/phabricator/article/installation_guide/
To install the Phabricator server software, you will need an operating system on your normal computer which is not Windows. Note that the command line interface does work on Windows, and you can use Phabricator from any operating system with a web browser. However, the server software does not run on Windows. It does run on most other operating systems, so choose one of these instead:
I know that by using virtual box, graphics card cannot be utilized by all the measures so I think it is not possible but I also think that coding cuda at least setting the CUDA developing environment is easier at Windows (unfortunately) thus if it is possible I plan to setup win8 to virtual box on my Ubuntu.
I do want to use win since I am at optimus Nvidia machine thus there is a driver problem at Ubuntu. In addition compilation of the code at Eclipse does not work due to that driver flaw. In case I use Win there might be the remedy of the problem.
Even if you get success in setting up environment in your virtual box to compile cuda code and you compiled cuda code there it will be of no use because you wont be able to run the code in virtual box.
Yes, your are absolutely right that installing drivers on optimus nvidia card is difficult task. I was also stuck with the same problem. but with release of cuda 5, installing cuda on Ubuntu is very simple.
follow these simple steps.
Driver installation ##
Download cuda 5 from here.(32bit or 64bit depending on OS)
Cuda 5 download
Install required tools by following command
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev
Next, blacklist the unnecessary modules
sudo gedit /etc/modprobe.d/blacklist.conf
add following lines at last
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
and reboot your system.
After reboot press Ctrl+Alt+F1. Login there and enter following command.
service lightdm stop
Go to location where you have downloaded cuda 5. In my case its on desktop.
cd Desktop
make it run from shell
chmod +x cuda_5.3.35_linux*****
Run from terminal
./cuda_5.3.35_linux*****
accept it, when asked to install drivers press y and n for cudatoolkit and gpucomputingsdk
now reboot and you are done with driver installation.
To install cudatoolkit and gpucomputingsdk follow this link
Cuda 4.2 installation on Ubuntu