gstreamer not working

Somehow using installing ros seems to screw up PKG_CONFIG_PATH and it returns only /opt/ros/noetic/lib/pkgconfig And if I try gst-inspect-1.0 It will return almost nothing. Manage to find the path back with pkg-config –variable pc_path pkg-config So adding export PKG_CONFIG_PATH=`pkg-config –variable pc_path pkg-config`:$PKG_CONFIG_PATH to .bashrc will do the trick. Now gst-launch-1.0 playbin uri=file:///path/to/video will play video…

Mounting EBS volume to AWS ec2

Stop an instance and detach the volume Attach the volume to another instance Mount the volume with commands below     sudo mkdir -m 000 /vol sudo mount /dev/xvdf1 /vol -t ext4  

Bricklink Studio on Wine

Played a little bit of Bricklink Studio. I have to say that it is a very nice app. Unfortunately, it only works natively in Windows and Macs. I tried to use VirtualBox with it. But it is painfully slow. And adding more core doesn’t help. I have an 8-core laptop and adding 4 cores doesn’t…

Ros can’t find package

I was following turtlebot tutorial but it can’t find the package somehow. source ~/catkin_ws/devel/setup.bash does not solve the problem. But it turns out starting fresh by creating a new workspace seems to resolve the problem.    

Use motion for surveillance application.

Motion is great simple software for surveillance application. And it can be easily install in Ubuntu with apt install. It is a command line based software. It doesn’t have some fancy GUI, but the setup is quite easy. The default config file is stored as /etc/motion/motion.conf. One would like to create a .motion directory in…

Journal paper list

Find a site called Resurchify that ranks journal papers. Another site we already used quite a bit is letpub.

Texttospeech with Windows 10

I should have tried to figure this out for long. It took a while but here is a nice solution. Basically just use onenote. And to record, I can use audacity and record from pulse. And can use pulse audio control (pavucontrol) to select only system sound.  

x11vnc on jetson

Simply put. It doesn’t work. But vnc can be set up with the description here. And it is the same as x11vnc (controlling the desktop rather than another vnc).

Barrier host on 18.04

Spent several hours before realized that Barrier doesn’t not work on 18.04 as host. Should have checked “show log” earlier and that would allow me to figure out earlier. Online it said 18.04 will work for barrier-maxiberta. But snap install can’t find barrier-maxiberta. If I snap install barrier, it results in an authentication error.

Control desktop remotely for ubuntu

Try to look for a free alternative for teamviewer. ssh -X will work but like to control the current desktop directly. It turns out can be done easily with x11vnc. In the host (after connecting say with ssh), start x11vnc with x11vnc -display :0 For the client, simply run vncviewer.