Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 LINUX/UNIX


  Migrate from MySQL to MariaDB in Ubuntu

The biggest movement of escaping from MySQL in this century starts, openSUSE,Fedora and Arch have started to use MariaDB instead of MySQL as their default database. Many people also dislike the attitude of Oracle on MySQL, so it's reasonable to migrate from MySQL to MariaDB. The whole process is not complicated. Here we share the steps to migrate from MySQL to MariaDB in Ubuntu.Installation procedure:sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943dbModify /etc/apt/sources.list, add:# MariaDB 5.5 repository list - created 2013-04-08 14:44 UTC# http://mariadb.org/m...

5,581 0       UBUNTU MYSQL MARIADB


  How to commit code to OpenStack

If you want to make contributions to OpenStack, the best way to start is to help the community with blueprint or submit bug fix. To commit codes, you need to conform to some rules in the community.Work flowRegister an OpenIDApply for a CLA certificateApply for company CLA certificateUpdate contributor listJoin OpenStack Contributors group and OpenStack groupSet up SSH KeysGet a blueprint/buggit clone codes to local disk. Configure user name and user email and openidModify codes in a limited time and complete all the tests. The codes must conform to PEP8 guidelineIf goes over the limited time, ...

4,211 0       CONTRIBUTION OPENSTACK


  Build Hadoop environment in Linux

Hadoop standalone installation:1. Install JDKInstall JDK with below command:sudo apt-get install sun-java6-jdkConfigure Java environment, open /etc/profile, add below contents:export JAVA_HOME = (Java installation directory)export CLASSPATH =".:$JAVA_HOME/lib:$CLASSPATH"export PATH = "$JAVA_HOME/:PATH"Verify installation of JavaType java --version, if it outputs Java version information, then Java is successfully installed.2. Install SSHInstall SSH with below command:sudo apt-get install sshConfigure SSH to login to local PC without password:ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsaP...

4,541 1       CONFIGURATION HADOOP.LINUX


  Those famous Emacs users

I don't think using Emacs can improve one's programming skills, I don't think some famous people used Emacs before can provide something, either. But these famous people encouraged me to learn Emacs when I wanted to give it up. Here I created a list of famous Emacs users.Most of people in this list are not famous because they developed or used Emacs, but they are famous and also use Emacs.Joe Armstrong -- Erlang's authorIn The Setup, Joe mentioned that "I write books using XML markup in emacs (nxml mode)" and "I write code in Emacs".Amelia Andersdotter -- PoliticianIn an interview, Amelia ment...

18,573 2       HISTORY EMACS


  bash network interface

Some of us may have seen /dev/tcp/<host>/<port> before, is this a special file system implemented in some BSD kernel? Because there is no /dev/tcp in Linux. Actually, this one is implemented in bash. We no need to rely on wget,nc to do network connection.It's very easy to use this interface:bash-4.2$ cat </dev/tcp/time.nist.gov/1356188 12-09-18 15:34:26 50 0 0 733.5 UTC(NIST) * bash-4.2$ exec 3<>/dev/tcp/www.w3.org/80bash-4.2$ echo -e "GET / HTTP/1.0\n\n" >&3bash-4.2$ cat <&3HTTP/1.1 200 OKDate: Tue, 18 Sep 2012 15:41:08 GMTServer: Apache/2Content-Location: H...

4,105 0       BASH NETWORK INTERFACE /DEV/TCP


  About tmpfs

tmpfs is another confusing name in Linux kernel, its implementation is in mm/shmem.c, shmem has no relation to tmpfs at first glance although we know tmpfs is based on memory. We can understand why we use this name by seeing where this is used.In a desktop Linux system, tmpfs is loaded usually:% grep tmpfs /proc/mountsdevtmpfs /dev devtmpfs rw,seclabel,nosuid,relatime,size=1958956k,nr_inodes=489739,mode=755 0 0tmpfs /dev/shm tmpfs rw,seclabel,nosuid,nodev,relatime 0 0tmpfs /run tmpfs rw,seclabel,nosuid,nodev,relatime,mode=755 0 0tmpfs /sys/fs/cgroup tmpfs rw,seclabel,nosuid,nodev,noexec,relati...

4,909 0       LINUX TMPFS FILE SYSTEM


  Funny Linux commands

1. slYou will see a train moving from the right to left on the screen.Install : $ sudo apt-get install slRun : $ slIt has options like -aiFe:-a An accident seems to happen. You'll feel pity for people who cry for help.-l shows little one.-F It flies.-e Allow interrupt by Ctrl+C.We can also make fun of other people by setting an alias like below:$alias ls=slWhen the user types ls, he will see the train instead of the file list.2. fortuneOutput one statement, it can be a joke, or famous saying. Or if you install the Chinese version, you will get Tang poem as well.Install : $sudo apt-get install ...

16,691 1       LINUX FUNNY COMMAND FIGLET SL


  Hello, Kernel!

When we learn module programming, the first small program must be hello, kernel!. For a novice, how do we avoid some mistakes and how to fix the bugs we have when writing the first module program? Is there any example we can refer to? Here is one example.1. Write the hello.c01#include <linux/init.h>02#include <linux/module.h>03#include <linux/kernel.h>04//Compulsory05//Module lincese declaration06MODULE_LICENSE("GPL");07//Module load function08static int hello_init(void)09{10    printk(KERN_ALERT "hello,I am edsionte\n");11   ...

3,428 0       LINUX MODULE KERNEL