Monday, December 10, 2018

Time synchronization issues in Dual boot Linux Mint/Ubuntu and Windows

I have always used to have the network time in my Linux Mint 19 or Windows 8. However when I switch between Linux and Windows[or vice versa] the time gets modified and wrong time would show up. This Time synchronization issues in Linux Mint/Ubuntu which can be solved by the following simple task.

Steps.
1. Use your favorite editor to edit the file as root [If file not found create a new one]. I am using xed here.

sudo xed /etc/adjtime

2. Make the file looks as below. For me, I had only the first line. I created the next two line and saved it.

0.0 0 0.0
0
LOCAL


3. Reboot!

The issues exactly what is happening in the background is very well explained in this reference article.

References: https://www.techgainer.com/fix-windows-showing-wrong-time-in-linux-windows-dual-boot-system/

Install Latex Texmaker on Linux mint 19 / Ubuntu 18.04

Installing latex is pretty straight forward. We could get it from the official packages /repos througth command line. I wish to install a "full" latex support as I don't want to install any other packages to install later on. So, the Download size is ~2.5GB and installation space need is 4.5GB roughly. Texmaker is just 5-50MB where as the rest is fully occupied by LaTeX  or TeX or TeXLive.
sudo apt-get update
sudo apt-get install texlive-full texmaker
Next things is that spell check
When do a check spelling you will get an "Error can't open dictionary"
Go to Options>Configure>Editor tab
Change myspell to hunspell dictionary. I wanted British English so I selected the below:
/usr/share/hunspell/en_GB.dic

Thanks to vijay!

Next thing is you may have to install Latexdraw for drawing pictures. It need Java SE/JDK. I installed JDK from official oracle site here. Click JDK download(I would need for java programming etc).  I used deb file. Clicking/opening it will install it automatically or based on deb file

"sudo dpkg -i jdk-11.0.1_linux-x64_bin.deb"

As oracle Jdk didn't registered in update-java-alternative or update-alternative --config java. I went to fix it manually. I was able to locate my installation at  "/usr/lib/jvm" called "jdk-11.0.1" folder.

Extract the downloaded LaTeXDraw-3.x.x.-bin.zip from https://sourceforge.net/projects/latexdraw/. After extracting run the following.

sudo /usr/lib/jvm/jdk-11.0.1/bin/java -jar installer.jar
That's it. Bye for now.
I have disabled trigger email from comment. Contact me on twitter instead for any questions.

Last Post !! Moved to new site

As I am getting old 😋, it seem like I can not remember many of my earlier tech encounters. This is the place I was logging so that I refer ...