webcam + external camera failure, cannot access /dev/video*: No such file or directory - ubuntu-16.04

I hope someone out there can help me!
I'm working on a Toshiba SATELLITE-L50-A-1DN, and I am having problems connecting a camera to the USB ports, as well as the integrated webcam not being recognised.
I am using Ubuntu 16.04 with kernel 4.13.0-45-generic
After plugging in an external webcam, lsusb does not change, indicating no device has been recognised.
ls -ltrh /dev/video* returns the error: ls: cannot access '/dev/video*': No such file or directory
I have tried installing uvcvideo, but the most up to date version is already installed. Related to this, I cannot access the Video4Linux module required to use one of the two cameras I am trying to use.
I am aware of the same question being posted here: cannot access /dev/video*: No such file or directory but I can't seem to make that solution work for me.

In dev is there root direct:
my#my-u18gv:~$ cd /dev/video0
If the bellow msg come:
No such file or directory
Then there may be two cases if i found and try to fix:
*
1.) The ubuntu machine or linux machine.
*
There may be various scenario or dependencies which may be causing
this but this what i check on both condition. The the packages and
retart the system
sudo apt-get update
To check the webcamp you can use cheese or any other it depends on
you:
sudo apt-get install cheese
cheese
*
2.) Ubuntu in Virtual Machine running on windows.
*
I'm using ubuntu 18.04, virtual machine 5.2.14 on windows 10 64bit.
Steps:
Open the VM Virtual Box and select the snapshot you are using.
Select the Settings
Select the USB menu at the left
Enable the usb controller and select the USB 2.0 (EHCI) cintroller
Click from USB Device_filter there is a usb cable icon with '+' sign at the right side.
Select your device from the list. In my list it was realtek semiconductor corp.
Here you may face one issue:
while selecting and USB 2.0 and when you start then if you get below error.
failed to install extension pack VERR_SYMBOL_NOT_FOUND ..
Then you need to install VM VirtualBox Extension Pack.
Note: take care that the version of the VM virtualbox and extension package should be same or it might give you error.
Steps: For installing VM VirtualBox Extension Pack
link:https://www.virtualbox.org/wiki/Download_Old_Builds_5_2
For every version you will find the extension package you need in above link.
Open the VM Virtual Box and click on File --> Preferences --> Extensions
Click on Plus icon and Add the extension which you downloaded.

Execute the command:
enter image description here
system error:
[ERROR] [1575905480.653251919]: Unable to identify '/dev/video0': 2, No such file or directory
enter image description here
Answers:
First of all, try your own laptop camera good or bad (do a QQ search, etc...); no problem found
Then review the virtual machine settings. The blue circle has not been opened before and the virtual machine must be turned off for it to be marked;
enter image description here
Reboot, the camera device can now be found in the virtual machine and check "Connect (disconnect from host)".
enter image description here
Re-run the command, the camera can open correctly
enter image description here
I hope it works

Related

v4l2loopback doesn't create the /dev/video/ files

im trying to make v4l2loopback work on my desktop PC (no hardware camera) with mint 19.3, kernel 5.4.0-42-generic x86_64.
I followed the official instructions and compiled from git the v4l2loopback module and everything seem to run correctly, as no error prompted while running the instructions, but when i do ll /dev/v* there's no /dev/videoN entry.
I also tried with the flags exclusive_caps=1 and devices=2 but to no avail.
Any idea what i might be missing or doing wrong?
you need to load the module (e.g. using modprobe) before you can use it.
see also https://github.com/umlaeute/v4l2loopback#run

how to make a solaris system environment same as another

I have a real host and an vm. they are both solaris system
sjcux-c7build01# uname -a
SunOS sjcux-c7build01 5.8 Generic_Virtual sun4v sparc sun4v
The real host has been used for years.The vm is new created.For maintenance,we want to use vm instead of real host in future.I need to install all the packages and let the vm can do gnu make like the old host.
How to list all the packages the real host has installed?
pkginfo just shows what's bundled with Solaris.
I noticed that directory /usr/local/lib in vm is empty,And In real host ,it has many .so file in it.
There must be many other difference. How to find out them? How to list the packages I need to install?
For example.on the vm ,I can't use git.
ldd git
libiconv.so.2 => /tools/sw/opt/SunOS/5.8/git/git-2.23.0/lib/libz.so/lib/libiconv.so.2 - Not a directory
libintl.so.8 => /tools/sw/opt/SunOS/5.8/git/git-2.23.0/lib/libz.so/lib/libintl.so.8 - Not a directory
So libiconv need to be installed.
I want to make the vm same as the real host, what need I to do? Who can give me some guide~
It is unrealistic to find one by one according to the .so files.
One possible way is to create flash archive of your old machine and install from this archive:
create repository where to store the archive
create flash archive of the system
check the archive
export via NFS the flash archive store
on new machine boot from CD, choose installation media select NFS
For more detailed instruction you can check this article in my blog
After creation of new machine you should take care of changing IP address or unconfigure and configure it from scratch (in sense of network and authentication services) it because two machines will have the same IP.

Eclipse Arduino makefile,subdir.mk Error

I've intsalled Eclipse and added Arduino plugin after when ı created new arduino sketch I faced to these errors.How Can ı fix these errors.
The solution is "Cygwin"
To install Cygwin:
From https://cygwin.com/install.html click setup.exe according to your computer’s version(32/64
bit)When it downloaded,click setup.exe and follow the steps.
1)Click Next
2)Install from internet
3)Determine the root directory for Cygwin
4)Choose the Install for All Users(Recommended)
5)Choose the right internet settings for you->Direct Connection
6)Choose A Download Site
7)Select packages ->Download all things under Base Default ->Search gcc and make,download all you find.
Set path in Windows on Preference Eclipse.
Find where Cygwin placed and copy the address.Go to Windows Control Panel->System and Security->System->Advanced
System settings->Environment Variables->System Variables->Path add a semicolon(;) and paste the address to here.
After Cygwin’s path adjustment ended, Here are the path on my computer:
AVR-GCC: C:\Programs\arduino-1.6.5-r2\hardware\tools\avr\bin
GNU make: C:\cygwin64\bin
AVR Header Files: C:\Programs\arduino-1.6.5-r2\hardware\tools\avr\avr\include
AVRDude: C:\Programs\arduino-1.6.5-r2\hardware\tools\avr\bin
These steps will fix the problem.
This worked for me:
On the IDE go to Windows->Preferences, then expand the Arduino tab and select Platforms and Boards. Then select all the items in package_esp8266com_index.json and install all the missing packages.
After that it compiled with no issues.
Let me know if it helped you too.
I found that the make.exe installed with ac6 tools was the cause . Replaced with make.exe installed with gnu tools download problem fixed

CentOs Boot Errors

I am trying to install CentOs 6.7 on a VPS. I downloaded the LiveCD iso from CentOs's website and put it on a bootable thumb drive, and even burned it to CD, however when booting from either sources, I get this error.
I have even re-download the same file from different source links but the same thing happens.
use second newest kernel.
i.e:
During a startup, press ESC to stop the boot
login and remove the kernel you are using. download the newest kernel then restart

Persistent error coming from libusb0

I'm using a Python application that accesses a USB device (pipsta printer) and executes a routine. It's running fine outside the container, but when it comes to the container it returns a error like this:
(File "usr/local/lib/python2.7/dist-packages/usb/backend/libusb0.py", line 386, in _check:
raise USBError(errmsg, ret)
USB.core.USBError: [Errno None] couldn't opendir(): No such a file or directory)
In my dockerfile, I've included all the packages relevant to Python and USB, and I also moved the relevant files to /etc/udev/rules.d and restarted udev.
Make sure you:
followed every step from assembly instruction and https://bitbucket.org/ablesystems/pipsta/wiki/Pipsta%20First-Time%20Setup
printer is connected to the power
printer is connected via usb to raspberry
printer's led doesn't blink (should be green constantly)
proper usb library is installed (or try to install different version of the usb library). What version are you using? python: print(usb.__version__) , it works fine for me with version 1.0.0rc1
is printer visible to the os? command: ls /dev/ap1400
I know this is an old question (I've only just encountered it). The following is a paraphrasing of the FAQ. The following steps should help diagnose the problem.
Download the latest set of Pipsta examples..
Extract the contents of the zip file.
Change directory to where the files were extracted
Change directory to the Examples folder.
Using a terminal run the command python verify_pipsta_install.py. This will try and help diagnose problems.
The following will should fix the python usb library error.
If your Pipsta printer firmware is V9.2.03 please upgrade the firmware to V9.2.08 using the fpu (both can be found in the downloads section of bit bucket.
Install the latest version of the Pipsta examples (download from bitbucket).
Copy the new pipsta/Examples/system_scripts/ to /etc/udev/rules.d/60-ablesystems-pyusb.rules
Restart the Raspberry Pi
If the printer still fails to be discovered then -
The following workaround may work.
1. Unplug the printer from the USB port
1. Enter the command sudo lsusb
1. Reconnect the printer
1. Enter the command sudo lsusb
If the printer has been detected by the Linux environment then either /dev/ap1400 or /dev/pipsta should exist in the filesystem.
NOTE The Pipsta now has Debian packages to help with installation. I have a link limit on my account but search for pipsta-printer-utilities-1.1.1-Linux.deb and pipsta-cups-driver-0.3.0-armhf.deb for more information.