Showing posts with label Trix. Show all posts
Showing posts with label Trix. Show all posts

Error parsing XML in Google Adsense code [Solved]

0
Error parsing async src of XML in Google Adsense code

Sometimes blogspot blogger blogs show an unexpected error when blog owner tried to integrate Google Adsense codes. You may called it "async error". I could not find the actual reason behind it. Blogger and Google Adsense both are product of Google. Adding code in blogger xhtml template should be easier and hassle free. Google should make a solution for it. But alas! We have to solve it by our self.
A regular Google Adsense (asynchronous) Code looks like this
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-00000000000000", enable_page_level_ads: true }); </script>

and the error message on Blogger/Blogspot blog looks like this-
Error parsing XML, line 161, column 1: Attribute name "async" associated with an element type "script" must be followed by the ' = ' character.

The solution is suggested on the error message itself. It said
Attribute name "async" associated with an element type "script" must be followed by the ' = ' character

It means Blogger xhtml wants an equal sign (=) after the word "async"

So, the solution is easy. Just add ="async" right after async in the first line of Google Adsense code.

The original Google Adsense code should change like this way

Original adsense code:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
Chnge it to
<script async='async' src=

Error parsing XML in Google Adsense code [Solved]
Error parsing XML in Google Adsense code solved

Don't worry to do this change in Google Adsense, because it is an allowed modification of AdSense code.
Read More »

Change windows button position right to left in Linux Mint13 xfce

3
Changing position (Layout) of windows button from right side to left side is a really smarter feature like Mac OS. I like this cool style when I first found it in Ubuntu 10.04. Until then I always love to use it.

Today I am going to change windows button position from right side to left side in LinuxMint 13 xfce OS. Usually LinuxMint is a no problem operating system. Many feature make it easy to use and customize. So we could do our job with a customizing tool called 'Window Manager'.

Start 'Window Manager' from Main Menu> Settings.
window manager linux mint xfce main menu
Window manager in linux mint xfce main menu

'Window Manager' will open.
window manager linux mint xfce main menu
Linux mint xfce window manager
The first tab name is 'Style'. You could change 'Title Font', Title Alignment' and 'Button Layout' using this 'Style' tab. Explore other tabs to configure other thing in your Linux Mint window behavior and look.

How to change position? It's easy friend. Just drag the 'close', 'maximize' and 'minimize' button from right side to left side.
drag button position from right to left in window manager linux mint xfce
Drag button position from right to left in window manager linux mint xfce
You could drag and add 'Menu', 'Stick' and 'Shade' button shown on the image below.
add close, maximize, minimize 'Menu', 'Stick' and 'Shade' button in window linux mint xfce
add various button in linux mint xfce window title
Changing position of window button from right side to left side is quite tricky in Lubuntu (LXDE). If you like to explore the way please click the link below:
Read More »

Add Link or Edit Main Menu in LXDE or Lubuntu

0
Sometimes you may ask that how do I add a custom application link or shortcut in main menu when I running Lubuntu or any LXDE based distribution? Yes, this is easy with 'LXMED' aka LX Menu Editor.
LXMED' LXDE Main Menu Editor
LXMED' LXDE Main Menu Editor
Just heed to this site http://lxmed.sourceforge.net/ and explore.

They said in their website about their project that:
lxmed is a small, simple, free, open source, easy to use application that allows you to customize the LXDE menu.

lxmed is very useful for people that want to create their own, customized menus for LXDE.

lxmed is written in the Java programming language.
So, everything is simple and fast. Just try it. If any problem occurs, I am here to provide you any kind of help.
Read More »

Screenshot tool in Lubuntu Lxde

0
There is no any default screenshot tool in Lubuntu. So, if you want to take a screenshot then you have to press 'PrtSc' button.
Keyboad print screen button
PrtScr on Keyboard
Taken screenshot will save into Home folder. But, if you like to get a time delay screenshot, then you have to create a handmade screenshot tool. Yes, you can create it easily with some simple command.

Lubuntu shiped with a default graphic editor named 'mtPaint'. It has a time-delayed screenshot option in the menu (FIle> Actions> Time delayed screenshot).
mtPaint-file-actions-time-delayed-screenshot
file>actions>time delayed screenshot
We can use/ create a shortcut button to activate this action.  I wil tell you the easiest solution.

First of all open Leafpad, copy the codes below and save the file as 'screenshot.sh' in your home folder.

sleep 5; mtpaint -s

Now we have to create a application that runs our newly created shell script.

Open the following location as root.
open-current-folder-as-root
'open current folder as root' in Tools Menu

/usr/share/applications

Now Right Click and create a blank file.
Right Click and create a new blank file in lubuntu lxde application directory
Right Click and create a new blank file
Name it 'screenshot.desktop'. Paste the codes below in this file and save. Change "YOUR_USER_NAME" before save the file.

[Desktop Entry]
Encoding=UTF-8
Name=Grab Screenshot
Exec=sh /home/YOUR_USER_NAME/screenshot.sh
Icon=gthumb
Type=Application
Categories=Application;Graphics;

You can change icon option if you like any icon from the folder
/usr/share/icons

A shortcut icon named 'Grab Screenshot' should be placed in main menu.
grab screenshot shortcut launcher in Graphics submenu
grab screenshot shortcut
If not then you can create it following this post "How to add shortcut/ launcher in Lubuntu Or Lxde"
You have done. Now click the shortcut button to get a time delayed screenshot. Taken screenshot now will open with 'mtPaint'.

Acknowledgement: Image, idea, tips, codes all credit goes to lubuntu-screenshots post published in Lubuntu Tips blog.
Read More »

Change or Edit Panels Digital Clock Style In Lubuntu or any LXDE based OS

7

Change or Edit Panels Digital Clock Style In Lubuntu or any LXDE  based OS
 I have changed the style of Digital Clock in my Lubuntu 12.04 machine. I like to get date, day, month, year, hour, minutes, seconds at a time. So, I always love to tweak my machine's digital clock format. Same method can be usable in any distribution which use Lxde Desktop Environment. You know I did it in AntiX operating system too.
Change_Digital_Clock_Format_Code_Lubuntu_Lxde
Digital Clock in Lubuntu12.04

To configure digital clock's format in Lubuntu you have to right click on it. A drop down menu will show you various job. Click on "Digital Clock Settings". A configuration window will open.
Edit_Digital_Clock_Configuration_Window
Edit Digital Clock Configuration Window in Lxde

Change the 'Clock Format' codes as supplied below:

%a, %B, %x, %r

You can change the style of tooltip. To edit tool tip format simply paste the time codes written below in the 'Tooltip Format' field.

%B, %y %A, %x

Press 'Close' button to active the action. You can select the way you want to show the text. Bold it or not. To show 'Tooltip' only or centralize the text by clicking on radio button.  You can change the codes from the list below if you like to display more information in 'Digital Clock' are in LXPanel.
  • %a - The abbreviated weekday name (Sun)
  • %A - The full weekday name (Sunday)
  • %b - The abbreviated month name (Jan)
  • %B - The full month name (January)
  • %d - Day of the month (01..31)
  • %e - Day of the month (1..31)
  • %H - Hour of the day, 24-hour clock (00..23)
  • %I - Hour of the day, 12-hour clock (01..12)
  • %l - Hour of the day ()
  • %j - Day of the year (001..366)
  • %m - Month of the year (01..12)
  • %M - Minute of the hour (00..59)
  • %p - Meridian indicator (AM or PM)
  • %S - Second of the minute (00..60)
  • %w - Day of the week (Sunday is 0, 0..6)
  • %y - Year without a century (00..99)
  • %Y - Year with century
  • %Z - Time zone name
  • %% - Literal % character

You can use this tool Foragoodstrftime to get and create more codes which can be use to configure digital clock format in Lxde desktop environment.

Acknowledgement: Idea and information taken from Lubuntu Digital Clock post published in Lubuntu Tips.
Read More »

Change Login Background in Lubuntu or any LXDE based OS

7
 Change Login Background in Lubuntu or any LXDE  based OS
A default image showed as background in login prompt when computer start booting. We can change this background image in Lubuntu 12.04 easily. Configuration takes only few steps.

First of all select or create a image file which you like to show as background of login screen. Now place it in the folder below:

/usr/share/lubuntu/wallpapers

Need root privilege to do this job. You can do it with opening this location with root access. To do that click on Tools in Menu. A drop down Submenu will open. Click on "Open Current Folder as Root". Now you can able to paste the image file here.

I guess you are using 'PCManFm', so take an another tab and open another folder as written below:

/etc/lightdm

Double click the file named 'lightdm-gtk-greeter.conf' or open this file with 'Leafpad'.
edit lightdm-gtk-greeter.configuration-file
lightdm-gtk-greeter.conf file

Now, change the background option. Change the location (If you place the image file on another folder) or change the filename only. Because you place the image file in the default directory.

Changes will be take effect after a simple logout.

Acknowledgement: Idea and image credit goes to the post "Lubuntu Login Screen: Changing the LightDM Background" published in 'Lubuntu Tips' blog
Read More »

Change close, maximize, minimize button position right to left in lubuntu

2
Change close, maximize, minimize button position right to left in lubuntu lxde
close, maximize, minimize button on left side
Changing 'Window Buttons Position' to the left side of the title bar is common in Mac OS. This great style first introduced in other operating system done by Ubuntu 10.04. From the beginning this feature get popularity very quickly. I think changing position of the window title bar buttons (close, maximize, minimize) make my works faster and easier. So, when I started to use Lubuntu 12.04, I am looking for this tweak for PCManFM. I found a solution in my favorite 'Lubuntu Tips' blog.

To do this tweak you should open lubuntu configuration file (lubuntu-rc.xml) and edit a line of code.

Open terminal and copy-paste the following line
leafpad ~/.config/openbox/lubuntu-rc.xml

'lubuntu-rc.xml' file will open with text editor 'Leafpad'. Search for the following line of code in this file. It wil be about 45-50 lines from the top.

<titlelayout>NLIMC</titlelayout>

Here, every alphabet represent a corresponding icon like I wrote below.

N: Window icon
L: Window label (Window title).
I: Iconify
M: Maximize
C: Close
S: Shade (Roll up/ Roll down)
D: Omnipresent (On all desktops).

So, if you love to change the title bar icon position so rearrange the alphabet as your desire.

To change window buttons position in my lubuntu (LXDE) computer, I simply change the alphabet order as below.
  <titlelayout>CMILSN</titlelayout>

Now, you have to Logout and Login computer to view new button positions.

Acknowledgement: Lubuntu Tips blog.
Read More »

How to add shortcut icon on panel in Lubuntu Lxde

1
application shortcut icon launcher top panel lubuntu lxde screenshot
Shortcut icons on top panel of my lubuntu desktop
 Look at the image titled 'Icons on top panel in lubuntu'. There are 20 icons working as launcher of corresponding application. Sometime we thought that creating launcher or shortcut icon on panel in lxde is not easy. I don't think so. If you love to know my technics, I would like to explain it now.

  • First of all create a "filename.desktop" in Applications (/usr/share/applications) folder pointed your desired software.
  • Now go directly to Panels folder using this link /home/USERNAME/.config/lxpanel/Lubuntu/panels.
  • I have two panel configuration files in this folder. I open 'top' panels configuration file with 'LeafPad'. 
  •  You have to add a launcher onto the panel before adding some code.
  •  Look at the Plugin section where "type = launchbar" is written. 
  • Write the code below and change its direction according to your system.
    Button {

    id=/usr/share/applications/firefox14.desktop
    }

  •  Here, I create a 'firefox14.desktop' file in applications folder using the codes below before.

  • [Desktop Entry]
    Name=firefox14
    Coment= Browse internet
    Exec=/home/USERNAME/firefox/firefox
    Icon=/home/USERNAME/firefox/icons/mozicon128.png
    Type=Application
    Terminal=false
    StartupNotify=true
    Categories=Application;Internet; 
    firefox14 shortcut desktop file icon on application folder in lubuntu lxde
    firefox14 shortcut desktop file icon on application folder in lubuntu lxde
    { I download firefox 14.0.1 (firefox-14.0.1.tar.bz2) from mozila site. Extract the compressed file in 'firefox' folder on 'Home' }

    Now restart Lubuntu session and login back. You should get a new shortcut link in top panel now.

    I added more then 10 shortcut link in launcher section onto the 'top panel'.

    I wish you understand creating/ making a shortcut launcher icon on panel in Lubuntu or Lxde linux. Though if you have anything to ask me, please use commenting tool below.
    Read More »

    Some Folders to know in Lubuntu

    0
    Today I am writing about some folder which we can remember for further tweeks on Lubuntu (An lxde based distro from Ubuntu). In my side I am running Lubuntu 12.04 in some poor hardware. No problem at all. I am exploring and discovering many interesting things day by day. Using Lxde is really fast and funny. I like to write Lubuntu / Lxde experience in near future regularly.
    I found some folders in Lubuntu which are used simultaneously everyday. I am writing their name in this post to just know about. Please help me to add more folders name in this post if you know.

     /home/USERNAME

    This is your 'Home' folder. Your documents, music, pictures, videos, downloads etc. are live here.

    If you press "Ctrl+h" in this folder's window, all hidden files will be visible.

    /home/USERNAME/.config

    This is the folder where your computers configuration files will be preserved.

    /home/USERNAME/.config/lxpanel/Lubuntu/panels

    You can make 4 panels in lxde desktop. Created panels and added shortcut links and there configuration files are saved here.

    /usr/share/applications
    user-share-applications-screenshot-my-computer
    applications screenshot in my computer

    This folder is for applications shortcut file. (.desktop file)


    /usr/share/icons

    You can get icon from this folder. Even download icons should extraced here.

    /var/cache/apt/archives

    All download applications, tools, libraries, dependency, installer, .deb files are saved here. After certain installation or update you could copy all files from here and burn them in a cd for further use. You can convey installed software application in this way and install them in your friends computer.

    downloaded-files-in-archives-folder-lubuntu-lxde-linux
    My downloaded files in 'archives' folder

    I have 460 items in this folder. Total size of files is 361.8 MB.
    Read More »

    Create 'Documents' 'Desktop' 'Downloads' 'Music' 'Video' folder shortcut icon on LXDE desktop

    1
    Create 'Documents' folder icon in desktop of LXDE Lubuntu salix peppermint archlinux opensuse fedora gentoo vector zorin porteus
    'Documents' folder icon in desktop of LXDE Lubuntu
    In this post I will tell you how to create 'Documents' shortcut icon or launcher in desktop on LXDE based Linux distribution like Lubuntu, Salix, Peppermint ,Archlinux, Opensuse, Fedora, Gentoo, Vectorlinux, Zorin, Porteus etc. Here is the simplest method.

    Open terminal from Main menu or pressing "Alt+Ctrl+t". Run the command below. No need to use 'sudo'.
    cd Desktop ln -s ~/ Documents 
    Press Enter. A 'Documents' folder shortcut icon/ launcher has been created in your LXDE desktop.

    In this way you can create  'Desktop' 'Downloads' 'Music' 'Video' folder shortcut icon on any LXDE desktop.

    To know 'How to create 'Home' and 'Trash' shortcut icon/ launcher in any LXDE based operating systems desktop, please read "Home Documents Desktop Icon on Lubuntu LXDE".

    If you quite more curious then you may read this page titled "Adding Applications, Internet Links to the Desktop, .Desktop Files, On The Path".

    To explore the world of LXDE you may visit the greate Distrowatch.

    Read More »

    Home Documents Desktop Icon on Lubuntu LXDE

    5
    Home Documents Desktop Icon on Lubuntu LXDE
    Home Documents Desktop Icon on Lubuntu LXDE
    Creating a Home or Documents desktop  shortcut icon in LXDE based os is very easy. Just create an empty file in desktop and put some code their and save. It's done! You have created Home and Documents desktop icon in LXDE based os like Lubuntu, Peppermint, Salix, LinuxMint Lxde etc.
    Read More »

    Shutdown freeze stop power off on Lxde Lubuntu12.04

    0
    Days ago when I wrote "Ubuntu Lubuntu 12.04 Shutdown doesn't power off" post, I changed the "quiet splash acpi=force" to "quiet splash" and saved the text file. Today I have face same problem again. When I trying to shut down computer it goes freeze or hang at a stage and displayed the message:

    modem-manager[4971]: Caught signal 15, shutting down...
    modem-manager[4971]: modem /org/freedesktop/ModemManager/Modems/0: state changed (registered -> disabling)
    modem-manager[4971]: (ttyACM0) closing serial port...
    modem-manager[4971]: (ttyACM0) serial port closed
    modem-manager[4971]: modem /org/freedesktop/ModemManager/Modems/0: state changed (disabling -> disabled)
    [ 6457.7700631] System halted.
    _
    Here is the photo (taken by mobile phone) of the message:
    Shutdown freeze stop power off on Lxde Lubuntu12.04
    Shutdown freeze stop power off on Lxde Lubuntu12.04


    I follow the same instruction and change "quiet splash"  to "quiet splash acpi=force" and saved the file. It solved my problem. My computer goes power off normally.
    Read More »

    Ubuntu Lubuntu 12.04 Shutdown doesn't power off [Solved]

    9
    I found that Ubuntu 12.04 and it's family (Lubuntu Xubuntu Kubuntu 12.04) does not power off when I Shutdown or Reboot my PC. When I press shutdown button it kills all running processes and the screen goes black but my computer doesn't power off. Machine's fans are still running and the screen is still on. It stop at the screen shows below.
    Ubuntu Lubuntu Xubuntu Kubuntu 12.04 Shutdown doesn't power off screenshot
    Shutdown doesn't power off 
    I have to hold down the power button in order to completely shut down my PC. It seems all processes are stop working, but a blue dot under logo is still on and nothing happened afterwards.
    • sudo gedit /etc/default/grub
    • Now find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    • Change this line to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
    • Save the file and close the file. Finally, in terminal, type:
    • sudo update-grub
    To implement commands you must press 'ENTER' button of your keyboard after each command. This command has been solve my problem.
    Remember that at first line 'gedit' is a name of text editor. So if you are in Lubuntu change 'gedit' and write 'leafpad' to open grub configuration file. Do the same for other Linux distro.
    Read More »

    Disable Java on Libreoffice at Lubuntu

    1
    Lubuntu 12.04 is not shipped with 'Java runtime environment' (JRE) installed by default. You need to install JRE via 'Synaptic package manager' to use Java in websites or local software.
    Famous office suite Libreoffice require JRE (Java Runtime Environment) to run several macros in Calc and writer. An expert user may need JRE to use some extra feature. But if you do not need JAVA then you can disable it. General uses can be done with no hasitation.
    Java runtime environment required at libreoffice startup
    Java runtime environment required at libreoffice startup
    When you run LibreOffice first it will show the warning message that says:
    Libreoffice requires a Java runtime environment (JRE) to perform this task. Please install JRE and restart LibreOffice.
    Click 'OK' to go through. You may see this message at least 6 times. Every time click on 'OK' button to start LibreOffice.
    Read More »

    Ubuntu Lbuntu 12.04 internal error report [Solved]

    0
    Ubuntu 12.04, Lubuntu 12.04, Kubuntu 12.04 and Xubuntu 12.04 has been published and still now it is a big attraction to a new linux user. These newer versions has a default crash report system which called 'Apport'. If you install any of these Ubuntu family, Apport may annoy you several time. Look at the image below.
    Ubuntu 12.04, Lubuntu 12.04, Kubuntu 12.04 and Xubuntu 12.04 has experience internal error
    Ubuntu 12.04 has experience internal error
    Apport is enabled by default in 12.04 version on every Ubuntu variant. I know you really love Ubuntu and want to help cannonical to solve this problem sending an error report. So you press on 'Continue'.
    Read More »

    MD5 does not match, repair corrupted ISO easily

    3
    After downloading a huge file you might face a horrible moment. Say, you download a linux distribution's ISO file with a download manager (using direct link) which size is 2 gb. When you try to run it or after burning it in a DVD- when you try to install it, you find that the installer does not perform your desired task. In this time what will you do? Download that ISO file again? Or think that the ISO supplier company is a cheater? Now, friend do not think this way. There is an option to repair it. Yes, it is true. You do not need to download that huge file again nor think bad about the supplier company. Lets come to know the happy method of repairing a corrupted or problematic ISO file. So, you should ask: How to repair a download corrupted ISO file? Really?

    You know I have download LinuxMint13 (Mate) but it failed to run on Virtualbox. I checked it's md5 following this How to check md5sum of ISO on Linux method. I am sorry to say that md5 hash does not match with supplied number. That is both number are not same. So, I have done some Googling and found a nice and helpful way to repair my corrupted ISO file.
    Read More »

    Check md5sum of ISO on Linux

    0
    After downloading a Linux ISO file it is wise to check it's md5 value. The result will show you that the file is not corrupted and it is safe to use. The MD5 calculation gives a checksum result should be equal with the supplied number. It confirm both file integrity and authenticity. I am writing a simple method to check MD5 (Message Digest algorithm 5) using Ubuntu. This method is same in most linux operating system.
    Read More »

    How to disable 'Guest Session' in Ubuntu 12.04

    0
    At the booting option a guest session is allowed to run Ubuntu 12.04 desktop. But sometimes we do not want to allow anybody to login at office as a guest or not. So you might want to disable 'Guest Session' in Ubuntu 12.04. Today we will know how to disable 'Guest Sessions' at Ubuntu 12.04 startup.

    At first run the command below at 'Terminal'.

    sudo gedit /etc/lightdm/lightdm.conf

    The "lightdm.conf" file will open. Now add the line below at the end of this file.

    allow-guest=false
    You have done disable 'Guest sessions' at Ubuntu 12.04 start up. Want to check it? Just restart your system and try to find.
    Read More »

    How to install iBus on Ubuntu 12.04

    3
    Famous non-English typing tool on linux is ibus (Intelligent Input Bus). It is not included on Ubuntu 12.04 (Precise Pangolin) by default. You have to install it manually. Not all ibus component will install if you try it through 'Ubuntu Software Center'. So, we should do it by an one line command. Here I am telling you that method. Do not worry. It is not much difficult as you thinking.

    First of all connect internet. Then go to 'Terminal' and type the command below.
    sudo apt-get install ibus ibus-m17n m17n-db m17n-contrib ibus-gtk
    Select the line above with your mouse and paste it on terminal clicking on middle button (scroll button). Password is require to run the command. All ibus related component, database, dependency, non-English language keyboard will install with this single line command within minutes.

    Customization:
    Restart your computer. Press 'Alt+F2' and type or click 'iBus- preference' and add your preferred language.

    Can't understand yet? Please read "IBus problem on Ubuntu 10.10 [Solved]" to know detail description.
    Read More »

    Ubuntu 12.04 installation process slide show

    3
    A common question from a new user about Linux is that "How do I install it". As I am a avid fan of Ubuntu and new release has been published several days ago, today I am posting about its install process. If you ask me 'How to install Ubuntu 12.04" then this post is right place for you. I am publishing all installation process using the images of installation slide show.

    At first I download Ubuntu 12.04 ISO file (Read "Ubuntu 12.04 LTS (Precise Pangolin) Published to download") and burn the ISO file into a blank CD. Then I insert that CD onto CD drive and start computer. At booting option I select CD drive as a first booting media. After selecting language and click on "Try ubuntu before install" (the first item on boot menu), I waited some seconds. Ubuntu live cd version desktop appear to me.
    Ubuntu 12.04 Live session desktop wallpaper
    Ubuntu 12.04 Live session desktop wallpaper
    This is Ubuntu 12.04 Live session desktop and wallpaper. You can do everything like natively installed os. Connect internet using wired broadband or wireless or VPN or DSL or Mobile broadband. You can do office work. Play open-source music or video file. Do task on various purpose. But now we are going to install it in our harddisk.
    Read More »