Archives For November 30, 1999

Ubuntu and Windows dual boot

For users who dual boot Ubuntu 16.04 and Windows, you may find the clock time is off that causes time differences after you reboot and switch between the two systems. Here’s how to fix it.

Ubuntu maintains the hardware clock (RTC, real time clock) in universal time (UTC) by default while Windows maintains the clock in local time, thus causing time conflicts between Ubuntu and Windows.

To fix it, either set Ubuntu to maintain RTC in local time or make Windows uses UTC.

1. Disable UTC and use Local Time in Ubuntu:

In previous Ubuntu editions, you can edit the config file /etc/default/rcS to disable UTC.

In Ubuntu 16.04, open terminal (Ctrl+Alt+T) and run the command below instead:

timedatectl set-local-rtc 1 --adjust-system-clock

To check out if your system uses Local time, just run:

timedatectl

you’ll the local time zone is in use in the Warning section.

Finally restart and switch to Windows, adjust system clock time if need and done.

2. Make MicroSoft Windows uses UTC:

Another way to fix this issue is doing the following changes in Windows, Windows 10, in the case below:

1.) First if you’ve switched to local time in Ubuntu, run command in Ubuntu terminal to use back UTC:

timedatectl set-local-rtc 0

2.) Restart and select boot into Windows 10, when you’re in, do:

  • go to Start Menu, search for and launch cmd as Administrator.
  • When the command console opens, paste below command to create a DWORD value to the registry:
    Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1

    For 64-bit Windows, use a QWORD value instead:

    Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_QWORD /d 1

  • Disable the “internet update” for the time and reboot.

Want to install Microsoft fonts, Google web fonts for off-line use, or you just found a favorite font on the web and want to install it in Ubuntu?

Well here’s how to install the font files (.ttf, .ttc) downloaded from web, Google fonts page, or copied from your Windows OS.

Here are 4 font files shown in the picture above. In the steps below I’ll show you how to install and use it in Ubuntu Desktop.

Option 1: Install Fonts for current user only

If you want to install the fonts for current user use only, then simply open up a “Files” (file manager) window, press Ctrl+H to show hidden folder, and navigate to .local/share/fonts (create fonts sub-folder if not exist).

Next, drag’n’drop your font files into that directory, or a sub-folder of that directory.

Finally, press Ctrl+Alt+T on keyboard to open terminal, and run command to refresh the cache:

sudo fc-cache -fv

Next, your system configuration tool can find and allow you to apply the fonts

Option 2: Manually install Fonts to system wide use

To install fonts for all users use, do the following steps one by one instead.

1. Launch Terminal from start menu, or by pressing Ctrl+Alt+T on keyboard:

When it opens, paste following commands and run one by one.

2. In Ubuntu Linux, font files are installed to /usr/local/share/fonts or /usr/share/fonts. The former directory is recommended in this case for manual installation.

First create a sub folder in the font directory, ms_fonts, as example:

sudo mkdir /usr/local/share/fonts/ms_fonts

Type in your password when it asks (no visual feedback) and hit Enter.

3. Move all font files from your Downloads directory to the new created folder:

sudo mv ~/Downloads/*.ttc ~/Downloads/*.ttf /usr/local/share/fonts/ms_fonts/

4. Set permissions to these files by running the commands below one by one:

sudo chown root:staff /usr/local/share/fonts/ms_fonts -R

sudo chmod 644 /usr/local/share/fonts/ms_fonts/* -R

sudo chmod 755 /usr/local/share/fonts/ms_fonts

5. Finally builds font information caches for apps using fontconfig for their font handling:

sudo fc-cache -fv

Now you can apply new installed fonts via GNOME Tweaks (available in Ubuntu Software / App Center) in default GNOME desktop:

For Chrome browser, go to Settings -> Advanced settings-> Web contents -> Customize fonts.

While Ubuntu 16.04’s repository contains the old SMPlayer 15.11 packages, you can easily upgrade to the latest 16.4 release and receive future updates by using the SMPlayer PPA.

Changes in SMPlayer 16.4.0:

  • The Windows installer now includes mpv as well.
  • Now it’s easier to switch between MPlayer and mpv via Preferences -> General -> select multimedia engine.
  • The extrastereo filter works again when using mpv.
  • Possibility to use the VLC shortcuts. (Preferences -> Keyboard and mouse, click the load button, select vlc.keys).
  • Possibility to enable mouse gestures (when the mouse is dragged up or down in the video window the volume changes, if dragged left or right it changes the time position). You can enable this option in Preferences -> Keyboard and mouse -> Mouse -> Drag function: seek and volume.
  • A fix for saving bookmarks.
  • The option for streaming sites in Preferences -> Network is different now, and allows these values: disabled, auto, YouTube and mpv+youtube-dl.
  • An animated icon has been added in the status bar to indicate when the player is buffering.
  • A new layout is used to display the media information (Options -> View info and properties).

How to Install/Upgrade SMPlayer 16.4 via PPA:

NOTE: The current 16.4.0 build available in PPA is based on QT 4.8.7, while the stock version in Ubuntu 16.04 repo is built against Qt5.

1. Add PPA.

Open terminal (Ctrl+Alt+T), paste the command below and hit run:

sudo add-apt-repository ppa:rvm/smplayer

Type in your password (no visual feedback) when it asks and hit Enter to continue.

2. Install/Upgrade SMPlayer.

If you have a previous release installed, you can now upgrade the media player by launching Software Updater and installing SMPlayer package updates after checking for updates.

For the first time installing this player, use your favorite package manager or just run the commands below one by one in terminal:

sudo apt update

sudo apt install smplayer smtube smplayer-themes smplayer-skins

3. (Optional) To revert back the stock version of SMPlayer in Ubuntu 16.04, install ppa-purge and purge the PPA, which also downgrade the packages installed from that repository:

sudo apt install ppa-purge && sudo ppa-purge ppa:rvm/smplayer

How to Install Ubuntu Tweak in Ubuntu 16.04

Last updated: April 4, 2019

For users of Ubuntu 16.04 LTS who still need Ubuntu Tweak, especially for its Janitor (system cleaning) feature, a repacked of 0.8.7 release now is available in GetDeb repository.

If you have already added Getdeb App repository, just search for and install Ubuntu Tweak via your package manager or use apt install command. For those who don’t want to add the repository, follow the steps below:

1. Download the deb installer:

2. Click install the package via Ubuntu Software.

Or open terminal (Ctrl+Alt+T), run the commands below one by one to install it via dpkg and fix dependency problem via apt:

sudo dpkg -i ~/Downloads/ubuntu-tweak_0.8.7-1~getdeb2~xenial_all.deb

sudo apt-get -f install

3. (Optional) If you want to remove the tool, run the command below in terminal:

sudo apt remove ubuntu-tweak

A patched version of Notify OSD with some extra features to Ubuntu’s on-screen-display notifications is available in Leolik’s PPA.

With the patch and a graphical Notify OSD configuration tool, you can easily tweak the notification bubbles by:

  • Close notification bubble on click
  • Stop fading out when mouse cursor hovers on it.
  • Change notification display timeout.
  • Change notification bubble location
  • Edit the bubble size, background, transparency, etc.
  • Edit the text size, color, etc.

1. Install the patched version of Notify OSD:

Open terminal (Ctrl+Alt+T) and run the commands below one by one to get it from PPA:

sudo add-apt-repository ppa:leolik/leolik

sudo apt update

sudo apt install notify-osd

Or grab the .deb installer from the link below:

Select download and install the latest version of:

  • notify-osd_x.x.x+16.04.x.x.x-0ubuntu1-leolik~ppa0_i386.deb for 32-bit Ubuntu 16.04
  • notify-osd_x.x.x+16.04.x.x.x-0ubuntu1-leolik~ppa0_amd64.deb for 64-bit Ubuntu 16.04

2. Restart notify-osd daemon by running the command below in terminal:

pkill notify-osd

Just close the terminal after running the command since there’s no terminal output.

3. Install a graphical configuration tool for NotifyOSD:

Open terminal (Ctrl+Alt+T) and run the commands below one by one to get it from Webupd8 PPA:

sudo add-apt-repository ppa:nilarimogard/webupd8

sudo apt update

sudo apt install notifyosdconfig

Or grab the .deb installer from the link below:

Select download and install the latest version of:

  • notifyosdconfig_x.x+xxx~ubuntu16.04.1_i386.deb for 32-bit Ubuntu 16.04
  • notifyosdconfig_x.x+xxx~ubuntu16.04.1_amd64.deb for 64-bit Ubuntu 16.04

4. Finally launch the configuration tool and enjoy customizing your on-screen notifications:

Here’s a brief tutorial that shows how to install Komodo Edit with Unity integration in Ubuntu 16.04 LTS via PPA.

Komodo Edit is an open-source code editor based on Komodo IDE. Its website provides official Linux packages, but lacks global menu and application shortcut for Ubuntu Unity desktop.

Mystic-Mirage is maintaining a PPA contains unofficial Komodo Edit packages with patches for Ubuntu integration. Support for Ubuntu 16.04 was added a few days ago.

1. To add PPA

Open terminal (Ctrl+Alt+T), paste following command and hit run:

sudo add-apt-repository ppa:mystic-mirage/komodo-edit

Type in your password (no visual feedback) when it asks and then hit Enter to continue.

2. After added the PPA, search for and install komodo-edit via Synaptic Package Manager after clicking Refresh.

Or run following commands one by one:

sudo apt update

sudo apt install komodo-edit

For those who don’t want to add PPA, grab the .deb installer from PPA file archive.

Cinnamon 3.0, the GTK3 desktop environment developed by (and for) Linux Mint, was released yesterday afternoon.

Here’s a quick overview of some of the changes in Cinnamon 3.0 according to the release note:

  • Window management improvements on tiling, mapping and unmapping windows, compositor’s window groups and tracking of full screen windows
  • Improved out of the box touchpad support (edge-scrolling and two-finger-scrolling can now be configured independently and are both enabled by default)
  • New accessibility and sound settings (both rewritten as native cinnamon-settings modules)
  • Battery powered devices can be renamed
  • Different favorite applications can now be set for plain-text, documents and source code files
  • Panel launchers now include application actions
  • Animation effects are now enabled by default on dialogs and menus
  • Favorites and system options can now be disabled in the menu applet
  • The photo-frame desklet now also scans subdirectories
  • Improved support for GTK 3.20, Spotify 0.27, Viber

How to Install Cinnamon 3.0 in Ubuntu:

Linux Mint users can upgrade to Cinnamon 3.0 via the update-manager. For Ubuntu, there’s a PPA contains unofficial (though probably closest to official) builds of Cinnamon releases for Ubuntu 16.04, Ubuntu 15.10, and a little old version of Ubuntu 14.04.

1. Add Cinnamon PPA

Open teriminal (Ctrl+Alt+T), paste below command and hit run:

sudo add-apt-repository ppa:embrosyn/cinnamon

After typing your password, take a look at the PPA description in terminal output and hit Enter.

2. Then update and install the Cinnamon desktop via:

sudo apt-get update

sudo apt-get install cinnamon

3. If everything goes OK, log out and select log in with Cinnamon session (or Cinnamon (Software Rendering) session if you want it use software rendering to do more of the graphical work).

(Optional) To uninstall the Cinnamon session, use Synaptic Package Manager or run commands:

sudo apt-get remove cinnamon && sudo apt-get autoremove

And the PPA can be removed via Software & Updates -> Other Software utility.

The default network manager in Ubuntu 16.04 now supports to create WiFi hotspot for Android devices.

You can create a Wireless access point in Ubuntu 14.04 using Unity’s default network manager, but a little hack on the configuration file is required.

In Ubuntu 16.04, there’s a Hotspot mode in the WiFi connection editings page that works directly for Android devices. Here’s the step by step how to guide:

1. First disable WiFi and connect your laptop to a wired network, so your network menu looks like:

2. Click Edit Connections on the menu shown in above picture. Then click Add to add a new connection:

3. Choose WiFi from the drop-down box in the next window and click Create button.

4. When the editing window popup, do:

  • Type in connection name, SSID, select Hotspot mode.
  • In Wifi Security tab, select WPA & WPA2 Personal and type in a password.
  • In IPv4 Settings tab, select mode “Share to other computers”

5. After clicked the save button, enable WiFi and click Connect to Hidden Wi-Fi network and select connect to the connection you just created.

6. Your network menu now looks like:

Finally connect to this hotspot from your Android device and enjoy!

On the new released Ubuntu 16.04 desktop, you may get a few error popups that asks you to report problems. Some popups has already been reported so you may want to disable these error popups before they are fixed by upstream.

To do so, you can either temporarily stop the Apport service on current boot, or manually edit the config file to disable error reporting system permanently

1. To stop the Apport service, open terminal (Ctrl+Alt+T) and run command:

sudo service apport stop

Type in password when it asks and hit Enter. There’s no visual feedback while typing your password.

2. To disable the apport system so you’ll never see the error popups, run command to edit config file:

sudo gedit /etc/default/apport

When the file opens, change the value to 0 and save it.

That’s it. Enjoy!

For Ubuntu laptops with dual graphics cards, Intel graphics is being used by default. To get the best graphics performance for playing games or charting, you need to manually switch to NVIDIA graphics card.

This can be easily done after installing Nvidia graphics drivers and below steps will show you how:

1. Search for and launch “Additional Drivers” utility from Unity Dash.

2. When it opens, you can see a list of recommended drivers for your graphics cards:

3. Install NVIDIA proprietary driver as it shows by launching terminal (Ctrl+Alt+T) and run command:

sudo apt-get install nvidia-361

Replace nvidia-361, or just use nvidia-current instead and keep an eye on the installing process to make sure the installed driver is listed in above picture.

You may also install Intel proprietary driver, which is not required:

sudo apt-get install intel-microcode

4. After installed graphics drivers, re-launch Additional Drivers utility and apply new installed drivers, so it looks like:

5. Finally switch graphics card by launching NVIDIA X Server Settings and select a GPU you want at PRIME Profiles tab.

To apply changes, log out and back in.