Linux Mint 19.1: Lightning Calendar in English, but dates in the 24-hour time format

Reply

I like having the user interface of my Linux Mint 19.1 in English, but the regional settings such as numbers and currency in a different language such as Swiss German.

Screenshot of the Language Settings dialog in Linux Mint 19.1

Unfortunately, the date and time settings are set as part of the Language Settings and can not be controlled individually. As a consequence, the Lightning Calendar extension in Thunderbird displays the time as a.m / p.m instead of the desired 24h time format.

Solution

Override the system setting of the time format by adding the following two lines to your .profile file:

LC_TIME=de_CH.UTF-8
export LC_TIME

You can find the text file .profile in you home folder (enable hidden files in Nemo first).

VirtualBox 6: How to enable symlinks for shared folders

Reply

For security reasons, creating symbolic links in a shared folder is disabled in the guest OS (ticket 10085 and manual 5.3 Shared Folders). If you trust your Linux guest OS, you can enable symlinking from the host OS with the following command:

~ $ VBoxManage setextradata "VM_Name" VBoxInternal2/SharedFoldersEnableSymlinksCreate/Folder_Name 1

Replace VM_Name and Folder_Name with your own names. To get a list of names of your virtual machines, execute in the host console:

~ $ VBoxManage list vms

You can also list information about a specific machine with:

~ $ VBoxManage showvminfo "VM_Name"

Now you can start your Linux guest OS and create the symbolic link, in my caseĀ  I wanted to point my shared folder to the apache directory /var/www/html, e.g.

~ $ sudo ln -s /media/sf_Websites /var/www/html

How to update Composer on Linux Mint 18.3

2 Replies

When you install Composer (the dependency manager for PHP) globally on Linux Mint 18.3 with the package manager…

$ sudo apt install composer
$ composer -V
Composer version @package_branch_alias_version@ (1.0.0-beta2) 2016-03-27 16:00:34

…you’ll get the totally outdated version 1.0.0-beta2. The problem is that this version does not support extracting compressed package files ‘tar.gz’. It also does not support updating itself with:

$ composer selfupdate

So, you need to download the latest composer version (currently 1.6.2) manually and then put it into the directory /usr/local/bin/composer (which overrides /usr/bin/composer)

$ sudo mv composer.phar /usr/local/bin/composer
$ chmod +x /usr/local/bin/composer

now login – logout to apply the changes, voila:

$ composer -V
Composer version 1.6.2 2018-01-05 15:28:41

How to automount your virtualbox shared folder to /var/www

Reply

After adding the shared folder Websites to fstab by adding the line

Websites /var/www vboxsf rw,uid=33,gid=33 0 0

and giving the right permissions, I always got the following error during my virtual Linux Mint boot:

keys:Press S to skip mounting or M for manual recovery

All I had to do was add vboxsf on a line of its own in /etc/modules.
Solution found on askubuntu.com

Linux Mint 17: Install php_oci

Reply

Quick cooking recipe to install PHP oci8 on Linux Mint 17 / 18.

  1. Download the Instant Client from the Oracle Website and follow the instructions at the bottom of the download page.
  2. Download the Instant Client SDK from the same location, unpack it and move the SDK folder to the same folder where the Instant client is installed. On Linux Mint this would be “/opt/oracle/instantclient_xy”
  3. “sudo pecl install oci8” and give path to your instant client when asked
  4. Add “extension=oci8.so” to your php.ini located at “/etc/php5/apache2/php.ini”
  5. restart apache “sudo apache2 -k restart”

Note: You can use phpinfo() to locate the used php.ini

Linux beginners trick: mount root shell to read-write

Reply

If your Linux (Mint) fails to boot because you broke the /etc/fstab, for example, you’ll end up with a ready only root shell. The trick is to mount the root partition to as read-write without actually unmounting it:

# mount -o remount,rw /

After doing that, you wil be able to edit /etc/fstab, correct the error, and reboot normally.

Found on: How to fix Linux boot problems