Month: August 2015

Recovering GRUB from Ubuntu Live Disk

source : dual boot – How can I repair grub? (How to get Ubuntu back after installing Windows?) – Ask Ubuntu

When you install Windows, Windows assumes it is the only operating system (OS) on the machine, or at least it does not account for Linux. So it replaces GRUB with its own boot loader. What you have to do is replace the Windows boot loader with GRUB. I’ve seen various instructions for replacing GRUB by mucking around with GRUB commands or some such, but to me the easiest way is to simply chroot into your install and run update-grub. chroot is great because it allows you to work on your actual install, instead of trying to redirect things here and there. It is really clean.

Here’s how:

  1. Boot from the live CD or live USB, in “Try Ubuntu” mode.
  2. Determine the partition number of your main partition. GParted (which should already be installed, by default, on the live session) can help you here. I’m going to assume in this answer that it’s /dev/sda2, but make sure you use the correct partition number for your system!
  3. Mount your partition:

    sudo mount /dev/sda2 /mnt  #Replace sda2 with your partition number
    
  4. Bind mount some other necessary stuff:

    for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done
    
  5. chroot into your Ubuntu install:

    sudo chroot /mnt
    
  6. At this point, you’re in your install, not the live session, and running as root. Update grub:

    update-grub
    

    If you get errors, go to step 7. (Otherwise, it is optional.)

  7. Depending on your situation, you might have to reinstall grub:

    grub-install /dev/sda
    update-grub # I'm not sure if this is necessary, but it doesn't hurt.
    
  8. If everything worked without errors, then you’re all set:

    exit
    sudo reboot
    
  9. At this point, you should be able to boot normally.

If you cannot boot normally, and didn’t do step 7 because there were no error messages, try again with step 7.

Also check:

1. Restore Repair Grub on Ubuntu 14.04 / 13.10 / 12.04 live USB

2. Reinstall Ubuntu Grub Bootloader After Windows Wipes it Out

3. [SOLVED] How to install GRUB in boot partition in dual boot

4. RecoveringUbuntuAfterInstallingWindows – Community Help Wiki

The terminal way

 

* Open a terminal. As of Ubuntu 11.10 and 11.04, this can be done by opening the Unity Dash (you can click the Ubuntu logo in the top panel or use the Windows key on your keyboard) and typing in “Terminal”, and clicking what comes up. On earlier versions, you can achieve this by going to Applications -> Accessories -> Terminal. Alternately use the Keyboard Shortcut: CTRL + ALT + T.

sudo grub-install /dev/XXX

where XXX is the device of your Ubuntu install. (eg: grub-install /dev/sdb). Hint: You can also use /dev/disk/by-label/ if the partition you installed on has a label. You can determine the /dev node for such a device by running:

ls -l /dev/disk/by-label/

You can also use fdisk if you do not see the /dev/disk/by-label:

$ sudo fdisk -l

Appearance Menus Screen for WordPress

source: Appearance Menus Screen « WordPress Codex

Appearance → Menus

The Appearance Menus Screen enables a user to create custom navigation menu in place of a theme’s default menu. Support for this feature must be registered in the theme’s functions.php file. The WordPress Menu User Guide describes the details of adding, deleting, and maintaining menus.

Appearance Menus Screen

source 2 :Pioneer Web Design

WordPress › Support » how to add category link to navigation bar?

Login to Admin Dashboard>Appearance>Menus>Screen Options (upper right)>Make sure ‘Categories’ is checked>Add a Menu>Name it>Drag categories one at a time to it>arrange as desired>save>>>Theme Locations>Chose theme provide location>>>View site>>>Continue as desired editing your custom menu by adding pages, posts, tags, external links>You can even create styles and apply them.

Please take time to read the documentation provided at the link above and the links it’s contains.

Link Categories in WordPress

Source : Links Manager « WordPress Codex

WordPress code logo thumbnail

Link Categories

Link category screen.

Links in WordPress can be organized into categories, all the better for organization. The default installation of WordPress automatically sets one category, Blogroll. You are given the ability to add, edit and delete categories.

also see:

1. Blogging with WordPress

2. How to Link to Posts, Pages, Categories, Tags, Authors, and Feeds in WordPress | Learning from Lorelle

3. 55+ Most Wanted WordPress Tips, Tricks, and Hacks

4. Create Your Own WordPress Theme from an HTML Template

5. FAQ Layout and Design « WordPress Codex

How Linux is Built – YouTube

How Linux is Built – YouTube

While Linux is running our phones, friend requests, tweets, financial trades, ATMs and more, most of us don’t know how it’s actually built. This short video takes you inside the process by which the largest collaborative development project in the history of computing is organized. Based on the annual report “Who Writes Linux,” this is a powerful and inspiring story of how Linux has become a community-driven phenomenon. More information about Linux and The Linux Foundation can be found at http://www.linuxfoundation.org and http://www.linux.com

Embedding Feedly Categories in WordPress

 

Embeddable Feedly Mixes | Open feedly

HTML code for embedding a feedly widget to a web page:

<iframe scrolling="no" height="900" frameborder="no" align="center" width="990"
   name="feedlyWidget" marginwidth="0" marginheight="0"
   src="{{{replace with your mix URL}}}" noresize="true"
   noborder="true">

Adding the Ning Widget to your Ning Social Network:

1. visit your Ning Network "Add an Application Page":
   http://{{{your ning network}}}.ning.com/opensocial/ningapps/addByUrl
2. enter Ning App URL
   http://www.feedly.com/mix/{{{user id}}}/{{{category}}}
3. click on "Add Ning App"

Note: part of the process of publishing a widget is to make the associated category public in feedly and Google Reader.

Apt-fast:- Apt-Get on Steriods

Source: ilikenwf/apt-fast · GitHub

apt-fast 1.8

apt-fast is a shellscript wrapper for apt-get and aptitude that can drastically improve apt download times by downloading packages in parallel, with multiple connections per package.

Setup/Install

Ubuntu 14.04 and later versions

sudo add-apt-repository ppa:saiarcot895/myppa
sudo apt-get update
sudo apt-get -y install apt-fast

Ubuntu 11.04~13.10 (out of date)

sudo add-apt-repository ppa:apt-fast/stable
sudo apt-get update
sudo apt-get -y install apt-fast

Ubuntu PPA

You can use the Ubuntu PPA to get a graphical configuration file setup and automatic updates, for details see:

Some distros, such as PCLinuxOS include apt-fast in their repos.

Other sources:

1. Speed Up apt-get Downloads With apt-fast [Ubuntu PPA] ~ Web Upd8: Ubuntu / Linux blog

2. How to speed up slow apt-get install on Debian or Ubuntu – Xmodulo

3. apt-fast: Improve apt-get Download Speed | Unixmen

Usage

Similar to apt-get functions, we can use:

apt-fast install package
apt-fast remove package
apt-fast update
apt-fast upgrade
apt-fast dist-upgrade

and more.