have you ever installed ibus-unikey in elementary OS?
A few days ago, I have issues with it. Avowedly, I installed, also add vietnamese keyboard into keyboard input method. What's happened?
And finally, I see it. If you have the save issues, you can use this tip to solve this.
To start, you must install dconf-editor,
org\gnome\desktop\applications\input-sources
per-windows: checked
sources: [('xkb','us'),('ibus','Unikey')]
xkb-options...
[HOW TO] install driver canon in linux | install canon printer in ubuntu | install canon mf3010 in elementary OS
Yesterday I have tried to install Canon Printer MF3010. It is not easy as me think.
Firstly, I come to canon officially of MF3010 to downloaded driver. But it is not success. I still can not install MF3010. What the help?
Workaround, I think that the driver still can not install truly. Where?
Luckily, I see it: http://support-sg.canon-asia.com/contents/SG/EN/0100270810.html
or
https://app.box.com/s/vaner6pa86h7aogdp8hryfjfgwzjvs1h
It...
Grail run-app | Grails run-app change default port | Grail run app locally
You need to run app in grails before deploying it on your web application. Luckily, grails support them.
Simply you do follows:
1. Go to your grails directory
2. Use "grails run-app" command
3. If you want to change default port of grails run-app 8080. How to? Use command: grails -Dserver.port=9001 run-app
Run the grails run-app command.The grails run-app command starts the...
HOW DO I GRANT PRIVILEGES IN MYSQL?
Grant for each table:
GRANT permission ON database.table TO 'user'@'localhost';
Grant for database:
GRANT permission ON database.* TO user@'localhost' IDENTIFIED BY 'password';
Once you have given the desired privileges for your user, you will need to run this command within the MySQL command prompt:
FLUSH PRIVILEGES;
To see a list of the privileges that have been granted to a specific user:
select...
what are the differences between CSV and XLS?
Today I think about CSV file & XLS file, and what are the differences between them?
Humhum, as I known that XLS is file format of Microsoft Excel. CSV is format frequently export by IT man.
Google now, I get one result:
Comma-Separated Values (CSV):These files hold plain text as a series of values (cells) separated by commas (,) in a series of lines (rows). You can actually open a CSV file...
[HOW TO] reset password MAC OS 10.11
Do you want to reset Mac's password?
Unlucky, you do not know how to do it.
Ok, no problem. Here I show you.
Solution 1:
Access Single-User mode.
a. Shutdown your computer.
b. Use hand to hold down the "Command" key and "S" key. Hold both of these together and do not let go through the next step.
c. Wait until you see a bunch of white writing scrolling by on a back screen. Now you are...
[NOTE] The core file in linux
Warning!
The core file contains a memory dump of a worker process
at the moment of a crash and therefore can contain sensitive
information, such as passwords, keys, or private data. Therefore,
never share core files with people you don't trust.
In Linux I Trust
Thank you for reading this article, please a comment if you are interested.
Tiến Phan - R0039
Knowledge is Endless
Sharing for...
[HOW TO] lsyncd: Error, Consider increasing /proc/sys/fs/inotify/max_user_watches | lsyncd dead but pid file exists
hello,
30 minutes ago, I go around our server to ensure the data synchronization runs day-by-day. But ...
It is not run 3 days ago.
What happened?
Ok, step-by-step
Check lsyncd:
[root@01 ~]# /etc/init.d/lsyncd status
lsyncd dead but pid file exists
Huh-uh,
[root@01 ~]# less /var/log/lsyncd/lsyncd.log
lsyncd: Error, Consider increasing /proc/sys/fs/inotify/max_user_watches
How to fix?
$...
[HOW TO] Dumping and importing from/to MySQL in an UTF-8 safe way
to avoid your shell character set from messing with imports, use -r to export and SOURCE when importing.
Export: mysqldump -uroot -p database -r utf8.dump
Import: mysql -uroot -p --default-character-set=utf8 database
mysql> SET names='utf8'
mysql> SOURCE utf8.dump
Thank you for reading this article, please a comment if you are interested.
Tiến Phan - R0039
Knowledge is Endless
Sharing...
[HOW TO] configure MySQL master slave replication
Hello
Yesterday I have been working on MySQL Replication between two servers. And I think you will need it as a reference article. Because of I also re-search a lot before starting.
Some question:
What is MySQL replication?
How to do?
How is Master? is Slave?
How to configure?
MySQL replication for non-standard port?
How to stop MySQL replication?
How it works?
Ok, let's start!
What is MySQL replication?
MySQL...
[HOW TO] 2015/10/12 15:39:35 [error] 30666#0: *5 open() "/home/www/html/index.html" failed (13: Permission denied), client: 127.0.0.1, server: **.vn, request: "GET /index.html HTTP/1.1", host: "*.**.vn"
I am creating the backup server to prepare in case of disaster. It seems well until I can not get the index.html. I use nginx as web server.
What happened? Afterwards I come to /var/log/nginx/error.log to totally view.
2015/10/12 15:39:35 [error] 30666#0: *5 open() "/home/www/html/index.html" failed (13: Permission denied), client: 127.0.0.1, server: **.vn, request: "GET /index.html HTTP/1.1",...
[HOW TO] Exporting and Importing An Individual MySQL Table
In moving databases from development to production it is sometimes necessary to export individual tables so that they can be imported into another database.
Exporting the Table
To export the table run the following command from the command line:
“mysqldump -p – –user=username dbname tableName > tableName.sql”
This will export the tableName to the file tableName.sql.
[NOTE:...
[HOW TO] What is net.ipv4.conf.default.rp_filter
/usr/share/doc/kernel-doc-2.6.32/Documentation/networking/ip-sysctl.txt
rp_filter - INTEGER
0 - No source validation.
1 - Strict mode as defined in RFC3704 Strict Reverse Path
Each incoming packet is tested against the FIB and if the interface
is not the best reverse path the packet check will fail.
By default failed packets are discarded.
...
[HOW TO] How to exclude table in mysql
Today morning, developer told me: please send me the database of ***.
Me: do you really need to it?
Developer: ya, I need it.
Me: okay, wait me for minutes.
And I need to exclude one table in database with him. Databases has some tables securely, he did not know it.
How to export database while excluding the table?
mysqldump --ignore-table=db_name.table_name db_name > export.sql
mysqldump --no-data...
[HOW TO] enable/ configure iptables in Fedora 22
In Fedora 22, firewall has no active. Here I'll learn how to enable the iptables firewall application and make sure that runtime rules persist after a reboot.
The iptables package is already installed, but to be enable, you need to install the iptables-services package.
sudo yum install iptables-servicessudo systemctl enable iptables.servicesudo systemctl start iptables.service
To view the rules,...
[HOW TO] configure Postfix to use Gmail SMTP on Fedora/ Linux/ Ubuntu
I have just created a script to monitoring website. It send the email to me when any website is down. Script store in my local, thus I think to build a MTA in my laptop.
Here I show the outlet for task list:
1. Configure MTA local use Google Mail
2. Create cron job to run script every boot time.
1. Configure MTA local use Google Mail
I have chosen Postfix as MTA. A few time ago, I configured...
[HOW TO] install Postfix MTA
Here I show you the step-by-step to install MTA on server/ client.
123 yum install postfix
127 alternatives --set mta /usr/sbin/sendmail.postfix
133 cp /etc/postfix/main.cf /etc/postfix/main.cf.orig
134 vi /etc/postfix/main.cf
135 /etc/init.d/postfix restart
136 chkconfig postfix on
As you...
[HOW TO] install Geary on Fedora 22 | Geary is having issues
I am using fedora 22 and I am really fed up with Thunderbird. On Linux there are a few Mail Client alternatives to the Thunderbird email client. But I still did not like.
Until now, Geary is an interesting beast. It looks like a beautiful girl to write an email.
I'm fairly confident that you will like it.
On personally social page, I wrote as above. But the fact it runs unstable. It looks like...
[HOW TO] exit MySQL command prompt?
Hello dude,
Mysql gives me a shit :(
I ran the invalid command mysql like this:
mysql> select * from conf ->
I can not exit the. Google, someone suggest me use Ctrl + C or Ctrl + D to solve this. But it give:
-> Aborted
What the fuck? How to solve it?
*Fortunately* I find it: "\c"
mysql> select * from conf -> -> ...
What is the Difference between Call Filter and Data Filter?

Hello,
I have confused between Call Filter and Data Filter in Vigor Draytek configuration.
I search officially document and googled relatively link. Finally I see what I need in i-helpdesk.com.au
Now I show you that hope it can help reduce your time. Hope you see this post in the top result of google...
Wireshark Filters frequently use
Hello,
I show you somes Wireshark Filters frequently use :) Hope this help,
1. ip.addr == 10.0.0.1
[Sets a filter for any packet with 10.0.0.1, as either the source or dest]2. ip.addr==10.0.0.1 && ip.addr==10.0.0.2
[sets a conversation filter between the two defined IP addresses]3. ...
[HOW TO] remove the special character in linux?
Do you need to remove the special character in linux?
A quick tip will be help you.
Firstly, you use "ls -il" to show the inode information of file/ folder
[~]# ls -iltotal 179001048619 -rw-r--r-- 1 root root 297 Jul 23 15:15 \
To be continued, you use find command to delete them by inode
[~]#find . -inum 1048619 -exec rm -rf {} \;
It will find and remove...
[HOW TO] Easiest way to fix MySQL UTF8 to Latin1 character set encoding issues.
MySQL originally used the latin1 character set by default which stored characters in a 2-byte sequence. In recent versions it defaults to UTF-8 to be friendlier to international users.
When migrating MySQL databases, occasionally you’ll see odd characters appear on the new system. For example, a simple quote mark may be replaced by 4-5 characters of junk symbols.
This happens when MySQL is trying...
[HOW TO] Export mysql result to csv file
Hello,
Export mysql result to csv file is necessary. It is useful in case of you need to send the result to developer or others.
You can follow:
SELECT *
FROM report
INTO OUTFILE '/tmp/orders.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n';
What it means?
FIELDS TERMINATED BY ',' :the fields will be separated by commas,
ENCLOSED BY '"' :each field will be enclosed in “double...
Export/Import/Create database with exact character set (eg. utf8)
Hello,
A short article,
1. Export database with exact character set (eg. utf8)
$mysqldump -uUSERNAME -pPASSWORD --default-character-set=utf8 USER_DATABASE > backup.sql
2. Import database with exact character set (eg. utf8)
#mysql -uUSERNAME -pPASSWORD --default-character-set=utf8 USER_DATABASE < backup.sql
3. Create database with exact character set (eg. utf8)
$mysql -uroot -p
...
mysql>...
[HOW TO] copy multiple files from remote host to local host
Hello,
A short article,
copy multiple files from remote host to local host
$scp your_user_remotehost@remote_host:/direct1/\{file1,file2,file3\} /home/local_host
Thank you for reading this article, please a comment if you are interested.
Tiến Phan - R0039
Knowledge is Endless
Sharing for Succes...
Install Sun/Oracle Java JDK/JRE 7u79/80 on Fedora 22/21/20/19, CentOS/Red Hat (RHEL) 7.1/6.6/5.11
1. Download Sun/Oracle Java JDK/JRE 7u79/80 32-bit/64-bit RPM packages
Download Sun/Oracle Java 7u79 or 7u80 from here http://www.oracle.com/technetwork/java/javase/downloads/index.html. Select
rpm package (jdk-7u79-linux-i586.rpm, jdk-7u79-linux-x64.rpm,
jre-7u79-linux-i586.rpm or jre-7u79-linux-x64.rpm) or
(jdk-7u80-linux-i586.rpm, jdk-7u80-linux-x64.rpm,
jre-7u80-linux-i586.rpm or jre-7u80-linux-x64.rpm).
2....