Showing posts with label command line. Show all posts
Showing posts with label command line. Show all posts

Sunday, July 12, 2026

using vlc command line to view ubuntu usb camera at /dev/video0

Must change permissions on /dev/video0 from 660 to 666, which adds rw other to the permissions.

vlc v4l2:///dev/video0:chroma=mjpg :v4l2-width=1920 :v4l2-height=1080 :v4l2-fps=30 --video-filter=adjust --brightness=1.0 --contrast=1.0 

This brings up a very dark image, need to find how to set the video settings.  the brightness and contrast settings did things, but not raising the brightness as needed.

camera being used

usb 0x0AC8 0x307B

https://forums.gentoo.org/viewtopic.php?t=820109

Z-Star Microelectronics Corp. USB 1.1 Webcam. In Linux Ubuntu, this device is supported by the built-in uvcvideo (or gspca) kernel module

To tweak the image during your capture, use these flags:

--video-filter=adjust: Loads the image manipulation plugin.
--brightness=[val]: Sets brightness (defaults to 1.0, use decimals like 1.5 to increase).
--contrast=[val]: Sets contrast (defaults to 1.0).
--saturation=[val]: Sets color saturation (defaults to 1.0).
--gamma=[val]: Sets image gamma (useful for dark lighting)


--30--

Friday, September 12, 2025

Command line commands on esxi 6 and other esxi

Networking and esxcli on esxi command line
 
 
~ # esxcli network ip 
Usage: esxcli network ip {cmd} [cmd options]

Available Namespaces:
  dns                   Operations pertaining to Domain Name Server configuration.
  interface             Operations having to do with the creation, management and deletion of VMkernel network interfaces (vmknic).
  ipsec                 Operations on Internet Protocol Security
  route                 Operations pertaining to route configuration
  connection            List active tcpip connections
  neighbor              Operations that can be performed on arp tables

 # esxcli network ip interface list
vmk0
   Name: vmk0
   MAC Address: 6c:62:6d:a3:2e:c2
   Enabled: true
   Portset: vSwitch0
   Portgroup: Management Network
   VDS Name: N/A
   VDS UUID: N/A
   VDS Port: N/A
   VDS Connection: -1
   MTU: 1500
   TSO MSS: 65535
   Port ID: 33554436
 # esxcli network ip interface ipv4 get
Name  IPv4 Address    IPv4 Netmask   IPv4 Broadcast  Address Type  DHCP DNS
----  --------------  -------------  --------------  ------------  --------
vmk0  172.16.0.10     255.255.255.0  172.16.0.255    STATIC           false
 
~ # esxcli network ip neighbor list
Neighbor                   Mac Address        Vmknic    Expiry  State    
-------------------------  -----------------  ------  --------  ---------
172.16.0.2                 00:1f:ca:88:96:8c  vmk0    1139 sec           
fe80::6e62:6dff:fea3:2ec2  6c:62:6d:a3:2e:c2  vmk0       0 sec  Reachable
~ # esxcli network ip route ipv4 list
Network       Netmask        Gateway       Interface  Source
------------  -------------  ------------  ---------  ------
default       0.0.0.0        172.16.200.2  vmk0       MANUAL
172.16.200.0  255.255.255.0  0.0.0.0       vmk0       MANUAL
 # esxcfg-route
VMkernel default gateway is 172.16.200.2

To make routing changes on the command line use the esxcli network ip route ipv4 add command.

https://knowledge.broadcom.com/external/article/324496/link-state-up-or-down-for-a-vmnic-interf.html

https://blog.technodrone.cloud/2011/09/netstat-for-esxi.html

-30-- 

Wednesday, December 11, 2019

Command line access to esxi server info, networking config



vim-cmd hostsvc/net/info | grep "mac ="

https://communities.vmware.com/thread/187557

esxcfg-info
esxcfg-scsidevs -l
esxcfg-nas -l

Sunday, October 14, 2018

imagemagick / convert error when converting a group of jpgs to a pdf. introduced as an inconvenience / bug


The latest set of security updates on Ubuntu seems to have jacked up the imagemagick settings.

Have to do the change suggested in the following tip from Ubuntu questions.

https://askubuntu.com/questions/1081695/error-during-converting-jpg-to-pdf

Problem:

Each time I want to convert jpg file to pdf by this command
convert *.jpg pictures.pdf
I have this error message:
convert: not authorized `pictures.pdf' @ error/constitute.c/WriteImage/1028.
 
Solution as of Oct 7 2018
 
This problems comes from a security update: https://launchpad.net/ubuntu/+source/imagemagick/8:6.8.9.9-7ubuntu5.13
Someone reported it as a bug: https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1796563
As a temporary fix, I edited /etc/ImageMagick-6/policy.xml and changed the PDF rights from none to read|write there. Not sure about the implications, but at least it allows me to get things done.
 
copy original, comment out, then edit copy to add read|write

this is from version 6.  Version 7 combines them into a single statement for pattern= clause.
  <!-- <policy domain="coder" rights="none" pattern="PDF" /> -->
  <policy domain="coder" rights="read | write" pattern="PDF" />

Another reference



--30--

Wednesday, February 15, 2017

Launching vmware clients on Linux host using VMware VIX libraries



How to launch VMware Player VMs without GUI

If you are a user of VMware Player, you may have wondered whether it's possible to run VMware player without GUI. For example, when you are accessing VMware hosts via SSH remotely, you may want to run VMware Player from the command line.

 While you can use X11 forwarding over SSH to launch VMware player's GUI from remote locations, it will be rather inconvenient if the SSH connection is slow. Furthermore, the VM launched inside VMware Player's GUI window will automatically be stopped when you close the VMware Player window.

If you would like to start or stop VMware Player VMs without GUI, you can use vmrun which is a command-line utility which one can use to automate operations on VMware virtual machines (VMs). vmrun is contained in VMware VIX API libraries which are freely downloadable from VMware website. You can follow the instructions below to manage VMware Player VMs remotely.

It is assumed that you have already created a VM using VMware Player, and so have *.vmx files ready somewhere. Now you want to start/stop the VM using vmrun. You don't need root permission to use vmrun command.

First, download VMware VIX for Linux, and then install it on the VMware host as follows.
$ chmod 755 ./VMware-VIX-1.11.0-471780.x86_64
$ sudo ./VMware-VIX-1.11.0-471780.x86_64
 
To start VM:
$ vmrun -T player start /path/to/vm/my.vmx nogui
 
To reboot VM:
$ vmrun -T player reset /path/to/vm/my.vmx soft
 
To power off VM:
$ vmrun -T player stop /path/to/vm/my.vmx soft