This is a tutorial for creating a bootable USB stick on Ubuntu installed systems. The bootable USB stick a will serve for the following purposes :

  • If you do not have a CD/DVD drive installed on your system.
  • Easy to install and portable .

Let’s get started !!

Requirements :

  • Ubuntu installed on the computer.
  • USB pendrive( 4Gb is sufficient).
  • Downloaded (.iso) file of the operating system.

Using the software :

  • Insert the pendrive in your computer and then open the Dash.
  • Type in “Startup Disk Creator” and hit enter.
  • bootable SDC

 

 

 

 

  • In “‘Source Disk Image” , click on “Other“.
  • Browse the directory to the downloaded (.iso) and select it.
  • Then below in “Disk to use“, select your USB pendrive.(Note : All the existing data on the selected disk will be erased).
  • Click on “Make Startup Disk” and wait till the write process is complete.
  • bootable writing disc image

 

 

 

  • It will display the following message on successful completion :
  • bootable installation complete

 

Great !! Now you are ready to test the USB stick.

  • Plugin the bootable USB stick onto the computer that you want to test.
  • Now power on the computer.
  • Wait for the first screen to pop up(Note : It lasts for only few seconds, so be quick !).
  • Hit “F10” or “F12” and Choose the boot device as your USB .
  • Thats it ! You can now use it as Live OS or to install ubuntu.

Now This is a tutorial for all those who want to convert their ebook (eg. from .epub format to .mobi  format ). I will be using the KindleGen software for the conversion This conversion is necessary if the ebooks are to be used on the Kindle devices.

Lets get started !!

Installing KindleGen on Linux :

  • Copy the link given below and then paste it in the of the web browser.
  • www.amazon.com/kindleformat/kindlegen
  • Check the box besides I agree and click on “Download Now“.
  • KindleGen_iagree

 

 

 

  • Create a new blank folder called “KindleGen” in your “Home” directory (eg “Local Disk C on windows” or “Home on linux”) and then enter into that folder.
  • KindleGen_emptyfolder

 

 

 

 

 

 

 

 

 

  • Select all the files and then extract them to the “KindleGen” folder created above.
  • KindleGen_afterextraction

 

 

  • Thats it !! You are now all setup for the conversion of eBooks.

Converting an eBook from ePub to mobi using KindleGen :

  • Assume your eBook is at the location given below on your computer:
  • epub_location

 

 

 

  • Enter the terminal and then change directory to the location where the .epub file exists.
  •  cd ‘/home/pandora/Test Ebook/’

  • Then type the following command in the terminal (Note: Replace the word “test” with your epub filename) and then hit “Enter” on your keyboard.
  • ~/KindleGen/kindlegen “test.epub”

  • If the conversion(i.e. epub to mobi ) was successful then a same filename with mobi format will be created in that directory.
  • mobi-location

 

 

  • Now you are ready to run the file on Kindle Previewer .

This is a tutorial for all those who want their WordPress(WP) website present on localhost to be running on folder created on the server.

Status before deploying:

  • I have a working wordpress website on the  localhost.

  • I want to run another WP in the subfolder(eg. https://www.cinnamonteal.in/thedogearsbookshop ) on the main existing WP website(eg. https://www.cinnamonteal.in)

Solution:

  • Change the table-prefix everywhere in the local mysql database and then make sure all instances of the table-prefix are replaced. (Note: Change the default table-prefix from wp_ because this improves security and this prevents tablename conflict if there is a WP website installed on the server with default table-prefix.)

  • Then change the table-prefix in wp-config.php on the localhost .

  • Then export the local mysql database.

  • After importing table from local d/b to live d/b (eg. wpdogdb to cinnamonteal database), execute the following sql queries:

UPDATE db_options SET option_value = replace(option_value, ‘ http://localhost/TheDogearsetcBookshop/wordpress2’,                  ‘http://www.cinnamonteal.in/thedogearsbookshop’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;

UPDATE db_posts SET guid = replace(guid, ‘http://localhost/TheDogearsetcBookshop/wordpress2’, ‘http://www.cinnamonteal.in/thedogearsbookshop‘);

UPDATE db_posts SET post_content = replace(post_content,’http://localhost/TheDogearsetcBookshop/wordpress2′, ‘http://www.cinnamonteal.in/thedogearsbookshop‘);

UPDATE db_postmeta SET meta_value = replace(meta_value,’http://localhost/TheDogearsetcBookshop/wordpress2′, ‘           http://www.cinnamonteal.in/thedogearsbookshop‘);

  • Then after a successful import of database create a folder on the server (eg. thedogearsbookshop)

    Files on the server

  • Copy all the localhost wordpress files(eg. /thedogearsetcbookshop/wordpress2/)and then paste them into the folder created on the server (eg. Thedogearsbookshop/ ).

    Wordpress files_localhost

 

 

  • Get the user credentials of database such as mysql databasename, mysql username , mysql password , mysql hostname.

           The wp-config.php for my folder looked like

             /** The name of the database for WordPress */

             define(‘DB_NAME’, ‘cinamonteal-in’);

             /** MySQL database username */

             define(‘DB_USER’, ‘cinamonteal-in’);

             /** MySQL database password */

             define(‘DB_PASSWORD’, ‘*****************’); /* hid password for Blog purpose*/

             /** MySQL hostname */

             define(‘DB_HOST’, ‘cinamontealin.mysql’);

             /** Database Charset to use in creating database tables. */

             define(‘DB_CHARSET’, ‘utf8’);

             /** The Database Collate type. Don’t change this if in doubt. */

             define(‘DB_COLLATE’, ”);

  • Open the index.php in the subdirectory present on the server and  then make sure it says

             require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );

  • Open the .htaccess(usually hidden) in the subdirectory present on the server and then make sure it says

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /thedogearsbookshop/

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /thedogearsbookshop/index.php [L]

    </IfModule>

    # END WordPress

    Replace “thedogearsbookshop” with the folder name created on server.

  • Before entering the website, login as an admin

    eg https://www.cinnamonteal.in/thedogearsbookshop/wp-admin/

  • Then login using your credentials present on the localhost.

  • Then deactivate all the plugins and set the theme to default if possible .

  • Thats it, now enter the following the web browser

    eg cinnamonteal.in/thedogearsbookshop

  • If it displays website, try enabling desired theme first and then gradually activate plugins one by one.

Note: Create a safe backup of the files and database present on the live server and then proceed with the above steps.

Note:The file extensions should be visible on the computer.

If you are using MacOS :

  • Open a new Finder window on your Mac.

  • In Menu bar, go to Finder and then select Preferences.

    EbooksFinder-preferences

 

 

 

 

 

 

  • Click on Advanced tab.

    Ebooksshow-hide-filename-extensions-mac

 

 

 

 

 

 

  • Then select the box that says “Show all filename extensions”. If you want to hide file extensions, just uncheck the box.

If you are using Windows Operating System 7/Vista :

  • Start Windows Explorer, you can do this by opening up any folder.

  • Click Organize.

  • Click Folder and search options.

  • Click the View tab.

  • Then scroll down until you notice Hide extensions for known file types, un-check this line by clicking the check box.

  • Click OK.

If you are using Windows Operating System 8/8.1/10 :

  • Open the File Explorer.

  • Tap on View and then click on Options.

    EbooksView-Options

 

 

  • In Folder Options window and then  select View tab.

  • In Advanced Settings area > Scroll down and  then uncheck Hide extensions for known file types.

    Ebooksview-folder-option

 

 

 

 

Adding ebooks on iBook app:

  • Make sure iTunes is installed and configured on the computer.

  • Then the computer should be added as trusted device for that iPad.

  • Connect the iPad via datacable to the computer.

  • In iTunes on the left menu there will be “Books” button

    Ebooksitunes

 

 

 

 

 

 

 

  • Click on the Books.

  • Drag and drop your ebook(.epub format) into that box.

  • Open the iBook app and refresh if the book is not visible.

Adding ebooks on KOBO app:

  • Open iTunes and then click on the device icon and select the device as given below

    EbooksConnect-an-iPad-to-iTune

 

 

 

 

 

 

 

  • Then on the left menu click on the “File Sharing” button as below

    Ebooksfilesharing

 

 

 

 

 

  • Then select “Kobo” under apps .

    Ebookskobo_ebooks_itunes

 

 

 

 

  • Click on Add >select the ebook(.epub format).

  • Then click on “Sync” placed at bottom-right of the iTunes.

  • Then click on “Done” placed at bottom-right of the iTunes.

  • Now open the “Kobo” app > Refresh it.

  • If book is not visible > click on search options > Type the ebook name > select it.

NOTE: Carefully select the file with proper format (eg. .epub format), selecting a different ebook (eg .mobi) format will not appear on the app.