2015年4月7日星期二

Learn about 1NF, 2NF, 3NF, BCNF in five minutes! Come in!(Database)

If you have learnt about these normalization, but still cannot make it clear. I simplify it for you.
1.1NF
| changed to 1NF


2.2NF
| changed to 2NF

3.3NF
| changed to 3NF


4.BCNF
| changed to BCNF
There we go!


2015年4月5日星期日

Ubuntu-- Enable Root Login

    If it is your first time to use Ubuntu, you cannot access Linux system as a root user. 
    That is because of the difference between Ubuntu installation without starting a root account and setting a root password and the regular Linux installation. 
    So, we can use "sudo".  Sudo is a tool for a common user to have the access permission as a super user. It is very easy. You can use "$ sudo passwd root" and then input a password you specify twice. After doing this, you can switch to a super user by using "$ su".
    There are two ways for you to make a root account.
    (1)use $ sudo passwd root;
        The system will let you input your password twice.
         Then,use the command $gksu /usr/sbin/gdmsteup. Several years ago, Linux operator uses $sudo /etc/X11/gdm/gdm.conf, but now gdm has changed a lot. If you cannot find gksu command, first you should install it.
        when done, use "$gedit /usr/etc/gdm/gdm.schemas" command, put the root in the below schema to above schema, then you can use root account to login.
    (2) on the system desk, open system>security>allow local system administrator login.
There we go!