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.      

ssh open display for 20.04 host

ssh -X doesn’t work out of the box for my 20.04 host. It was solved after adding X11Forwarding yes and X11UseLocalhost no to /etc/ssh/sshd_config at the host. btw, one great way to debug the problem is to turn on the verbose flag. i.e., ssh -vX hostname