Ubuntu 16.04 on Let’s Note CF-NX2

Install software

Install apache, php

sudo apt-get install apache2
sudo apt-get install php php-mbstring php-mysql php-pgsql libapache2-mod-php

Install mysql

sudo apt-get install mysql-server
sudo mysql_secure_installation

Install postgresql

sudo apt install postgresql

Install Oracle java 8

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Install Grive2 (google drive)

Reference: http://www.webupd8.org/2015/05/grive2-grive-fork-with-google-drive.html


Disable guess session login

Create /etc/lightdm/lightdm.conf.d/50-no-guest.conf, setting allow-guest=false.

sudo sh -c 'printf "[Seat:*]\nallow-guest=false\n" >/etc/lightdm/lightdm.conf.d/50-no-guest.conf'

Reference: http://askubuntu.com/a/169105

ibus-unikey use US keyboard layout

I use Japanese 106-key keyboard but when swich input method to ibus-unikey, it use US keyboard layout which ís different to jp keyboard.
Solution: copy file /usr/share/X11/xkb/symbols/jp to /usr/share/X11/xkb/symbols/us (remember to backup us file first).

Reference: http://askubuntu.com/questions/581975/using-unikey-to-type-vietnamese-in-different-keyboard-layout/719585#719585


Resize Unity launcher http://askubuntu.com/questions/18345/how-to-resize-the-unity-launcher

Another reference (not read yet)


Some problem solving

AH00037: Symbolic link not allowed or link target not accessible

If define a virtual host in apache2 that use symbolic link to specify the directory, ensure that the REAL directory has the x permission, too.
For example, if /data is linked to /media/user/data, and in virtual host configuration, /data is the object of DocumentRoot, the error above will occurred if /media/user doesn’t have x permission.

Can’t change file permission of files on ntfs partition

It may because the partition is mounted as Per-user mounting, which specifies options so that you cannot chmod on files.
Solution: Mount it explicitly in /etc/fstab, for example (for /dev/sda3):

/dev/sda3 /data ntfs-3g defaults 0 0

More about /etc/fstab https://help.ubuntu.com/community/AutomaticallyMountPartitions#Per-User_Mounts


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: