How to Install AMD ATI Radeon Graphics Drivers in Ubuntu

:) hi fellas
I have Lenovo G40 AMD A8 and i wanna install my laptop with Linux Mint 17.2
as like as ubuntu 14.20.
Unfortunately, i have a problem with graphics driver using ubuntu 14.20.

Now i will share you How to Install AMD ATI Radeon Graphics Drivers in Ubuntu.


sudo add-apt-repository ppa:org-edger/ppa
sudo apt-get update


sudo apt-get install fglrx


Reboot your computer and done :)

Note :

If you installed the wrong driver or make some others mistake.
you should delete your driver using this command
sudo  aticonfig --uninstall
Reboot your computer
sudo shutdown -r now
Read More »
Blogger Tricks

DBlink from oracle 10g/XE to sql server

How to create database Link Oracle 10g / XE to MYSQL Server

:) Hi there, a few days ago, i had a problem that makes me to use oracle 10g dblink to sql server.
This is my first time to do this and i do not sleep around 4 days for finding how to do this properly.
When i tried the procedures that i searched on google. . .there are so many errors i faced. at last fortunately i managed connecting oracle to MYSQL server. . . :)

I,m Using
ODBC DSN : hsodbc
DB1 : oracle XE
DB2 :MYSQL Server
DB2 : user "a" pass "a"
Database link from oracle 10g to sql server :
1.Setting up a system DSN(Data Source Name)
2.Setting hsodbc(oracle XE/10g)/dg4odbc(oracle11g-12c)
3.Setting tnsname.ora / listener.ora
4.Create db link to MYSQL


Configure ODBC by setting up a system DSN(Data Source Name)
Typically you can find this at
Start->Settings->Control Panel->Administrative Tools->Data Sources(ODBC)


Look for inithsodbc.ora in $ORACLE_HOME/hs/admin/
Make a copy of it and rename it to init<your odbc Data Source Name>.ora
Remember we had chosen "hsodbc" as our DSN.
Open the file and enter the DSN that you just created recently i.e "hsodbc".
This is how $ORACLE_HOME/hs/admin/inithsodbc.ora should look like:

# This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent. 

# HS init parameters

# Environment variables required for the non-Oracle system
#set <envvar>=<value>


Configure listener.ora
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
      (PROGRAM = extproc)
    (SID_DESC =
      (SID_NAME = hsodbc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
      (PROGRAM = hsodbc)

Note: SID_NAME should be your DSN name. PROGRAM=hsodbc or dg4odbc tells Oracle to use heterogenous services.


Configure tnsnames.ora
      (ADDRESS = (PROTOCOL = TCP)(HOST = Lab)(PORT = 1521))
    (CONNECT_DATA = (SID = hsodbc))
      (HS = OK)
HOST = Oracle Host
PORT = Oracle PORT
SID = your  DSN name

Restart your listener to make sure the settings are in effect.
lsnrctl stop
lsnrctl start
You can now validate the connection to your SQL Server database by the normal Oracle tnsping utility.
tnsping hsodbc
TNS Ping Utility for 32-bit Windows: Version - Production on 01-DEC-2004 13:19:54

Copyright (c) 1997, 2003, Oracle.  All rights reserved.

Used TNSNAMES adapter to resolve the alias
Attempting to contact
OK (30 msec)


Make sure that global_names parameter is set to false
SQL> sho parameter global_names

NAME               TYPE             VALUE
------------------ ---------------- -------
global_names       boolean          FALSE

Create a database link:

CREATE DATABASE LINK <<dblinkname>> CONNECT TO <<user MYSQLServer>> IDENTIFIED BY <<password MYSQLServer>> USING '<<connection string>>';

Database link created.

We have completed our configuration.

SQL> desc emp@hsodbc
 Name          Null?      Type
 ------------- --------   --------------
 EMPNAME                  VARCHAR2(60)
 CREATED                  DATE
Note :

Check Whether HSODBC is Installed

The first common error is people do not check the OracleDB has installed hsodbc/dg4odbc on the DB or not.

The full text of the error reported to us was:

ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535

You may get this error if:

Oracle fails to connect to DG4ODBC/HSODBC. DG4ODBC/HSODBC cannot retrieve the underlying error from the ODBC driver.
open command prompt / terminal go to $ORALCE_HOME/bin
 you will see something similar to the following if HSODBC is installed:
hsoodbc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV)
If you get HSODBC: empty, your version of Oracle does not include HSODBC.

if you find this error

ORA-00942 table of view does not exist

MYSQLServer is not case sensitive as long as you omit the quotes. The following names are all identical:
TEST2, test2, Test2, TeSt2

The following tables are different:
"TEST2", "test2", "Test2"

So, use double quote (") between your table name, because oracle will send upper case command by default.

:) i hope it will help your problem.

Read More »

How to convert mp4 file to mp3 on ubuntu

How to convert mp4 file to mp3 on ubuntu


 open terminal and type this command
ffmpeg -i source_filename -vn -ab 192k -acodec libmp3lame -ac 2 output_filenamer
 source :  #
Read More »

Unknown encoder 'libmp3lame'

Unknown encoder 'libmp3lame'
How to solve "Unknown encoder 'libmp3lame'" message?


sudo apt-get install ffmpeg


you can also try to install the libmp3lame0 package:

sudo apt-get install libmp3lame0

sudo apt-get install libavcodec-extra-53


i hope it solve your problem.

source :  #
Read More »

.mkv video files are not playing in the video player & VLC in Ubuntu 14.04

 .mkv video files are not playing in the video player & VLC in Ubuntu 14.04

.mkv file is not able to play in the default Video player in Ubuntu 14.04. It shows codec missing error.

Tried to play in VLC, again same issue.

In both the players audio is perfect. only the problem with the video.

Solve it with install

sudo apt-get install ubuntu-restricted-extras
#source :
Read More »

Ubuntu : How to solve "They have been ignored, or old ones used instead."

Ubuntu : How to solve "They have been ignored, or old ones used instead."

When we use Ubuntu with higher version some time we will find this message
after typing sudo apt-get install . . . 

"Some index files failed to download. They have been ignored, or old ones used instead."

Because ubuntu does not support the older versions any more.
but do not worry about it.
We can install the older software on our hinger Ubuntu version.


sudo wget "" -O /etc/apt/sources.list 


sudo apt-get update



Read More »

How to Add or create default gateway from terminal in Ubuntu

How to Add or create default gateway from terminal in Ubuntu
I've been so rarely using terminal for my working in ubuntu, and sometime i have to use terminal to remote my server.

I ll share you "How to Add or create default gateway from terminal in Ubuntu"
because i have cased for changing default gateway on my server.
I had a little confused before but i found an article and it was helpful.

It,s piece of cake.


open terminal


sudo route add default gw eth0

sudo /etc/init.d/networking restart


Read More »

How do I fix a “Problem with MergeList” or “status file could not be parsed” error when trying to do an update?

How do I fix a “Problem with MergeList” or “status file could not be parsed” error when trying to do an update?

These terminal commands should solve your problem:


Remove the Merge List by opening a terminal (Press Ctrl+Alt+T to launch) and run this command:

sudo rm /var/lib/apt/lists/* -vf


Next, generate a new one by running a simple update:

sudo apt-get update

Read More »

CSS text shadows for your blog

Hi fellas, long time no see.
yeah, it,s my first time i touch my blog. 
It has been 5 months i never updated my blog.
it's so long right?

Now i ll share a little bit about text shadow.

About Text Shadow

The text-shadow property is super easy to work with and works well across all modern browsers without even so much as a vendor prefix! However, as far as I can tell, IE support, even up through IE9, is zilch. However, using tools like Modernizr will help you pull off advanced CSS3 effects even in silly old IE.



text-shadow: 2px 4px 3px rgba(0,0,0,0.3);

2.Quick and Dirty Letterpress

body {
    background: #222;

#text h1 {
    color: rgba(0,0,0,0.6);
    text-shadow: 2px 2px 3px rgba(255,255,255,0.1);
}Quick and Dirty Letterpress

3.Hard Shadow

text-shadow: 6px 6px 0px rgba(0,0,0,0.2);

4.Double Shadow

text-shadow: 4px 3px 0px #fff, 9px 8px 0px rgba(0,0,0,0.15);

5.Down and Distant

 text-shadow: 0px 3px 0px #b2a98f,
                 0px 14px 10px rgba(0,0,0,0.15),
                 0px 24px 2px rgba(0,0,0,0.1),
                 0px 34px 30px rgba(0,0,0,0.1);

6.Close and Heavy

text-shadow: 0px 4px 3px rgba(0,0,0,0.4),
             0px 8px 13px rgba(0,0,0,0.1),
             0px 18px 23px rgba(0,0,0,0.1);

There are still many CSS text shadows that you can create.
Basically CSS text-shadows are simple to implement on basic form and you will find variety of different forms if you really put some work on them.

That's all for to day. mix and max your CSS text shadows and find more text effects on the source bellow.

Read More »

Oracle DataBase Cold Backup scritp

Oracle DataBase Cold Backup scritp

Oracle DataBase Cold Backup scritp. . . 
It will help your work and easy to use.
Please drop a comment to tell me, if U find the wrong script or this script is not working.


file name :

echo " Performing Cold backup . . . "
echo " --------------------------------"
echo " Shuting down the databse . . ."
echo " --------------------------------"
echo " Copy data file  . . . "
echo " --------------------------------"
cp -R -p /media/data1/oracle/oradata/ /media/data1/backup/oradata/
echo " --------------------------------"
echo " Restarting the database . . . "
echo " --------------------------------"


file name :

sqlplus / as sysdba << EOF
set feedback on
set echo on
shutdown immediate;



file name :

lsnrctl start
sqlplus / as sysdba << EOF
set feedback on
set echo on


note :
i'm working under  *Ubuntu 10.10 and using *Oracle 10g.

Read More »



Furius ISO Mount is a simple application for mounting ISO, IMG, BIN, MDF and NG image files even without burning them to disk.

It provides the following features:
- Automatically Mounts ISO, IMG, BIN, MDF and NRG image files.
- Automatically creates a mount point in your home directory.
- Automatically Unmounts the Image files.
- Automatically removes the mount directory to return your home
directory to its previous state.
- Automatically saves the history of the last 10 images mounted.
- Mounts multiple images.
- Burn ISO and IMG Files to optical disk.
- Generate Md5 and SHA1 checksums.
- Automatically retrieves any previously unmounted images.
- Automatically generates a log file of all commands needed to
mount and unmount images manually.

Read More »

Sequence current value and next value

Sequence current value and next value

SQL> -- It is important to note that the value of CURRVAL is not populated until
after NEXTVAL has been used.

  3    START WITH 1100
  4    MAXVALUE 99999
  5    NOCACHE
  6    NOCYCLE;

Sequence created.

SQL> select StudentNumSeq.NEXTVAL from DUAL;




SQL> drop sequence StudentNumSeq;

Sequence dropped.


Read More »

How to Add Social Media Buttons to Blogger Posts

Sometime we do not satisfied with the original Social Media Buttons on blogger.
We wanna mix the Original Social Media Buttons,
and hope our blog looks a bit different with others.
You know it is pretty simple.

social media blogger post

How to Add Social Media Buttons to Blogger Posts?


Go to Dashboard >> Design - Edit HTML >> Expand Widget Template 


Use (CTRL + F) to find this code:

Button positioning :

1. To position the buttons at the bottom of post, place te code bellow <data:post.body/>

2. To position the buttons at the top of post, place te code above <data:post.body/>

Code :

<!-- Scripts Start -->
<b:if cond='data:post.isFirstPost'>
<!-- Facebook -->
<div id='fb-root'/>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); = id;
js.src = &quot;;;
fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));
<!-- Google +1 -->
<script type='text/javascript'>
(function() {
var po = document.createElement(&#39;script&#39;); po.type = &#39;text/javascript&#39;; po.async = true;
po.src = &#39;;;
var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(po, s);
<!-- Twitter -->
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);;js.src=&quot;//;;fjs.parentNode.insertBefore(js,fjs);}}(document,&quot;script&quot;,&quot;twitter-wjs&quot;);</script>
<!-- Scripts End -->
<!-- Horizontal social buttons Start -->
<div class='horizontal-social-buttons' style='padding:10px 0 10px;'>
<!-- Twitter -->
<div style='float:left;'>
<a class='twitter-share-button' data-count='horizontal' data-lang='en' data-related='' data-via='' expr:data-text='data:post.title' expr:data-url='data:post.url' href=''>Tweet</a>
<!-- Google +1 -->
<div style='float:left;'>
<g:plusone annotation='bubble' expr:href='data:post.url' size='medium'/>
<!-- Facebook Like+Send -->
<div style='float:left;'>
<fb:like colorscheme='light' expr:href='data:post.url' font='' layout='button_count' send='true' show_faces='false'/>
<!-- Pinterest Start -->
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='pin-wrapper' style='float: left; margin:0px 0px 0px 30px; width:44px;'>
<a data-pin-config='beside' data-pin-do='buttonPin' expr:href='&quot;; + data:post.url'><img src='//'/></a>
<span style='margin-left:-44px;'><a data-pin-config='beside' data-pin-do='buttonBookmark' href='//' style='outline:none;border:none;'/></span>
<script src='' type='text/javascript'></script>
<style type='text/css'> 
#pin-wrapper > a {background-image:none !important;}
<!-- Pinterest End -->
<div style='clear: both;'/>
<!-- Horizontal social buttons End -->


When done, save your template and exit.

Thanks for coming, and share this article if you find it useful.

Read More »

How to Backup & Restore Blog Posts Using Blogger Import/Export Feature

Blogger has an awesome feature to download and save blog posts on your computer. Of course, you can later restore the posts as well. Additionally, you can also move your posts to some other blogging platform using the export feature or to some other Blogger blog. I'd highly recommend to regularly backup your posts. Check out the instructions to see how to do it.

1- Export or Backup Blog Posts to Your Computer

1. Chose Settings from the list of options. You can press the drop down arrow button to see more options.
2. In the Settings section, click Other from the left menu.
3. You'll see 3 options in Blog Tools. Click Export blog. A window will open where you'd have to click the Download Blog button.
4. An .XML file will be downloaded to your computer. Make sure to give it a proper name and keep it safe. This file will be used to restore your posts later.

2- Import or Restore Blog Posts From Your Computer

1. Chose Settings from the list of options. You can press the drop down arrow button to see more options.
2. In the Settings section, click Other from the left menu.
3. You'll see 3 options in Blog Tools. Click Import blog. A window will open where you'd have to browse the file on your computer & click the Import Blog button.
4. If you're importing posts from some other blog then make sure that Automatically publish all imported posts is not checked.
5Now your posts have been imported or restored.

Read More »

Automatically Mount Partitions on Ubuntu

Automatically Mount Partitions on Ubuntu

There are broadly two aproaches -

Per-user mounting (usually under /media)

Systemwide mounting (anywhere, often under /mnt)

Per-user mounting does not require root access, it's just automating the desktop interface. Systemwide mounts (/etc/fstab) can allow access from before login, and are therefore much more suitable for access through a network, or by system services.

Viewing the system's physical information

To read the layout of the physical disks in the system, the 'fdisk' command is used. Before panicking, realize that fdisk will be used with only non-destructive options; specifically, it will be used with 'l' (lower-case 'L', not '1'), which lists the partition table of the specified disk.
sudo fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x1baf0215

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     7813119     3905536   82  Linux swap / Solaris
/dev/sda2         7815166   976771071   484477953    5  Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5         7815168    56641535    24413184   83  Linux
/dev/sda6        56643584   447266815   195311616   83  Linux
/dev/sda7       447268864   976771071   264751104   83  Linux

If the system has multiple hard disk drives, multiple lists will be displayed.

Per-User Mounts

You can do the same thing on the command line with the udisks tool easily.
/usr/bin/udisks --mount /dev/sdb1
The bit after --mount is the device name of the partition you want to mount. (/dev/something)

Finding the UUID of your partition

A device name like /dev/sdb1 is based on where your physical drive is plugged in and the order the drives were made available to the computer, so if your computer changes the same command could mount a different partition. It's possible for this to happen just from a software upgrade.

The solution is to use a UUID. A UUID is a globally unique name for the partition. A UUID will remain the same if you put an internal disk into an external USB caddy, or change the name of the partition.

 ls -al /dev/disk/by-uuid/ 
you will see an entry that matches the name :

total 0
drwxr-xr-x 2 root root 120 Apr 18 07:55 .
drwxr-xr-x 5 root root 100 Apr 18 07:55 ..
lrwxrwxrwx 1 root root  10 Apr 18 07:55 78a8d4f4-8739-407b-93fe-7fe23b560e74 -> ../../sda5
lrwxrwxrwx 1 root root  10 Apr 18 07:55 93b20629-db77-4a2f-998c-bc2df0227bbf -> ../../sda1
lrwxrwxrwx 1 root root  10 Apr 18 07:55 bb9a474e-a5a5-4b1c-9b98-e6becda49640 -> ../../sda6
lrwxrwxrwx 1 root root  10 Apr 18 07:55 f24b64fc-93df-4070-8181-4d3c1487763a -> ../../sda7

You can now determine the command you need for mounting the device by UUID. For our example it would be
/usr/bin/udisks --mount /dev/disk/by-uuid/78a8d4f4-8739-407b-93fe-7fe23b560e74 
Of course you need to replace 78a8d4f4-8739-407b-93fe-7fe23b560e74  with the UUID of the device you want to mount.

Editing Ubuntu's filesystem table
Sometimes we need to mount our disk automatically.It needs to edit Ubuntu's FS table and
It is possible to break Ubuntu if some of the earlier lines in the file opened during this step are modified, so be sure to read this section carefully.
Ubuntu's filesystem table is located at '/etc/fstab'. Open this file for editing by running the following command for Ubuntu.
gksu gedit /etc/fstab
The file opened contains lines of the form
<device> <location> <Linux type> <options> <dump> <pass>.
Every element in this line is separated by whitespace (spaces and tabs).

# /media/data1 was on /dev/sda6 during installation
UUID=bb9a474e-a5a5-4b1c-9b98-e6becda49640 /media/data1    ext4    defaults        0       2

Save file and exit then restart your computer. It ll mount your disk automatically when your computer start.

Read More »