Fax testing

If you have a fax machine and want to test it, go to https://www.faxtoy.net/ and send a fax to number listed on their page. You should see it on their home page in 2 minutes after sending.

Virtualbox shared folder not showing up in Windows 10 Guest

If you mapped a shared folder to a drive letter like ‘G:’ and it is still not showing up in your windows guest, make sure you install the latest ‘virtualbox tools’ from the Virtualbox menu. You don’t have to uninstall the previous version. Also make sure networking is enabled and connected. You can create a host only adapter if you don’t want the machine to access internet over NAT, which will still show the shared folder. You can also access the network driver using ‘\\vboxsrv’.

Connecting USB Devices to Virtualbox in Ubuntu 18

I was trying to connect a USB Scanner to a Windows Guest OS running in Ubuntu, but there were no USB devices visible when I clicked on the USB icon in the tray. Turns out the host user needs to be added to vboxusers group using the following command:

sudo adduser $USER vboxusers

More on that here: https://askubuntu.com/questions/140081/virtualbox-doesnt-recognize-usb

Installing Linux Mint / Ubuntu onto a second hard drive with dual boot, Grub installed to second drive

I took out the CD drive in my laptop and installed an SSD in its place, using a HDD caddy. Then I proceed to install Ubuntu on the second disk using default but it ended up installing Grub on first drive containing Windows. This is a deal breaker for me since don’t like to boot into Windows via Grub. I used Boot-repair to get did of Grub, by disconnecting the Linux SSD. https://help.ubuntu.com/community/Boot-Repair . Then reinstalled Ubuntu after connecting the second SSD, but this time I chose “Something Else” and selecting the Grub installation location as the second SSD ( /dev/sdb ) as shown here. https://help.ubuntu.com/community/Grub2/Installing
. I created only two partitions, one is 32GB swap since I have 32GB RAM, and the rest as ext4 root (/) . Now I have Grub menu only if I boot from second disk, and I can choose Windows if I want. If I boot from first disk, I boot directly into windows.

JDK classes not detected in IntelliJ in Ubuntu with Open JDK 1.8

I ran into this issue while trying to open a Gradle project in IntelliJ 2018. The solution is to set the JVM again from the settings for Gradle as shown below. If that doesn’t work, close the IDE, blow up the settings directory of IntelliJ with
rm -fr ~/.IntelliJIdea2018.3/
Then reopen the project.

screenshot from 2019-01-05 09-45-20

Flashing Cisco Linksys e3000 with DD-WRT.

It used to be much easier back in 2012. You could just flash the e3000 latest version of DD-WRT. But now you need a trailed build as the latest version of e3000 are not compatible with old Linksys or DD-WRT firmware for e3000. The Wiki at https://wiki.dd-wrt.com/wiki/index.php/Linksys_E3000 is slightly confusing. Here is the simplified version:

  1. Installed the trailed build mentioned in the Wiki (Initial Flash section), which currently is ftp://ftp.dd-wrt.com/betas/2010/08-12-10-r14929/broadcom_K26/dd-wrt.v24-14929_NEWD-2_K2.6_std_usb_ftp-e3000.bin .
  2. The latest builds are nv60k . They can only be flashed on 16673 or later version. So you need a mini-e3000.bin file like https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2018/10-10-2018-r37305/broadcom_K26/dd-wrt.v24-37305_NEWD-2_K2.6_mini-e3000.bin .  (based on comment at https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=569485&highlight=#569485 )
  3. Then you can flash the mega-nv60k.bin file from https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2018/12-20-2018-r38060/broadcom_K26/

 

Print envelope in LibreOffice writer

Open LibreOffice Writer. From Insert menu, select Envelope and follow the screenshots. When done, insert envelope with print portion on the top as shown in second screenshot, with stamp area sticking out of the printer.

Fix Video tearing in Ubuntu 16.04 on Intel Graphics driver

Set the following option in xorg.conf.d
Option “TearFree” “true”

Detailed instructions:

sudo apt-get install driconf

sudo mkdir /etc/X11/xorg.conf.d/

echo -e 'Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
Option "DRI" "3"
Option "AccelMethod" "glamor"
EndSection' | sudo tee /etc/X11/xorg.conf.d/20-intel.conf

sudo reboot

Remove that file if you want to revert.

Credit goes to http://www.apolitech.com/2017/04/20how-to-solve-video-tearing-on-intel.html

If you have video issues with Nvidia graphics, make sure you installed the Nvidia binary driver (proprietary driver). Linux Mint doesn’t install it by default and you will find the video and scrolling tearing the screen.

Posting code in WordPress

You can use the HTML pre tags around the code in the Text mode (aka the source mode).

public class HelloWorld {

    public static void main(String[] args) {
        // Prints "Hello, World" to the terminal window.
        System.out.println("Hello, World");
    }

}

You can use the WordPress code tag. You can read about that at https://en.support.wordpress.com/code/posting-source-code/

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello, World");
    }

}

Installing Chrome on Lubuntu

Since Chrome provides a Debian package, you can do:

s@s-Lubuntu:~/Downloads$ sudo dpkg -i google-chrome-stable_current_amd64.deb 
[sudo] password for s: 
Selecting previously unselected package google-chrome-stable.
(Reading database ... 118145 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (61.0.3163.91-1) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on gconf-service; however:
  Package gconf-service is not installed.
 google-chrome-stable depends on libgconf-2-4 (>= 3.2.5); however:
  Package libgconf-2-4 is not installed.
 google-chrome-stable depends on fonts-liberation; however:
  Package fonts-liberation is not installed.

dpkg: error processing package google-chrome-stable (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:

That didn’t work since dpkg can’t install dependencies. So I tried using apt.

s@s-Lubuntu:~/Downloads$ sudo apt install ./google-chrome-stable_current_amd64.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 google-chrome-stable : Depends: gconf-service
                        Depends: libgconf-2-4 (>= 3.2.5) but it is not installed
                        Depends: fonts-liberation but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Now using the –fix-broken option

s@s-Lubuntu:~/Downloads$ sudo apt --fix-broken install ./google-chrome-stable_current_amd64.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
Note, selecting 'google-chrome-stable' instead of './google-chrome-stable_current_amd64.deb'
google-chrome-stable is already the newest version (61.0.3163.91-1).
The following additional packages will be installed:
  fonts-liberation gconf-service gconf-service-backend gconf2-common libgconf-2-4
The following NEW packages will be installed:
  fonts-liberation gconf-service gconf-service-backend gconf2-common libgconf-2-4
0 upgraded, 5 newly installed, 0 to remove and 178 not upgraded.
1 not fully installed or removed.
Need to get 987 kB of archives.
After this operation, 4,185 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 gconf2-common all 3.2.6-3ubuntu7 [20.8 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 libgconf-2-4 amd64 3.2.6-3ubuntu7 [84.6 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 gconf-service-backend amd64 3.2.6-3ubuntu7 [57.8 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu zesty/universe amd64 gconf-service amd64 3.2.6-3ubuntu7 [2,038 B]
Get:5 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 fonts-liberation all 1:1.07.4-2 [822 kB]
Fetched 987 kB in 1s (829 kB/s)           
Selecting previously unselected package gconf2-common.
(Reading database ... 118248 files and directories currently installed.)
Preparing to unpack .../gconf2-common_3.2.6-3ubuntu7_all.deb ...
Unpacking gconf2-common (3.2.6-3ubuntu7) ...
Selecting previously unselected package libgconf-2-4:amd64.
Preparing to unpack .../libgconf-2-4_3.2.6-3ubuntu7_amd64.deb ...
Unpacking libgconf-2-4:amd64 (3.2.6-3ubuntu7) ...
Selecting previously unselected package gconf-service-backend.
Preparing to unpack .../gconf-service-backend_3.2.6-3ubuntu7_amd64.deb ...
Unpacking gconf-service-backend (3.2.6-3ubuntu7) ...
Selecting previously unselected package gconf-service.
Preparing to unpack .../gconf-service_3.2.6-3ubuntu7_amd64.deb ...
Unpacking gconf-service (3.2.6-3ubuntu7) ...
Selecting previously unselected package fonts-liberation.
Preparing to unpack .../fonts-liberation_1%3a1.07.4-2_all.deb ...
Unpacking fonts-liberation (1:1.07.4-2) ...
Setting up gconf2-common (3.2.6-3ubuntu7) ...

Creating config file /etc/gconf/2/path with new version
Processing triggers for sgml-base (1.29) ...
Setting up fonts-liberation (1:1.07.4-2) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Processing triggers for fontconfig (2.11.94-0ubuntu2) ...
Setting up libgconf-2-4:amd64 (3.2.6-3ubuntu7) ...
Setting up gconf-service-backend (3.2.6-3ubuntu7) ...
Setting up gconf-service (3.2.6-3ubuntu7) ...
Setting up google-chrome-stable (61.0.3163.91-1) ...
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/google-chrome (google-chrome) in auto mode
Processing triggers for libc-bin (2.24-9ubuntu2) ...

Now you should see Chrome icon in the Internet menu. Enjoy.