SilverWav's Journal

The best is yet to come…

Posts Tagged ‘11.04

Fix Ubuntu Boot After Windows Install with Boot-Repair – 11.04 Natty

with 2 comments

Boot-Repair

Warning!

I have not tested this yet :-)

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install boot-repair

________________________________________

via webupd8.

Advertisements

Written by SilverWav

June 18, 2011 at 8:12 am

System Monitor – Resources tab not correlating with memory usage in Processes tab

leave a comment »

sil@klon:~$ free -m
             total       used       free    buffers     cached
Mem:          8000       7865        134        864       4621
-/+ buffers/cache:       2380       5620
Swap:         8191          0       8191
sil@klon:~$ free -m
             total       used       free    buffers     cached
Mem:          8000       6846       1154       2029       1177
-/+ buffers/cache:       3638       4361
Swap:         8191          0       8191

3.6Gib in Resources tab, Matches the 3638 in used above.

1922 is the approx total displayed in Processes down to <1MiB

3638-2029=1609

Good enough for me ;-)

The Resources Tab Used figure of 3.6Gib seems to include Buffers.

Written by SilverWav

June 18, 2011 at 7:34 am

Fix Ubuntu Boot After Windows Install – Reinstall Grub In 5min – 11.04 Natty

with 2 comments

The Quick Answer:

[Update: you may want to take a look at this first]

For version 1.99 (Ubuntu 11.04):

At a terminal in a LiveCD Desktop.

sudo grub-install --boot-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444/boot /dev/sda

Warning! This will not be the correct information for your PC!

You will need to replace ‘0d104aff-ec8c-44c8-b811-92b993823444’ and possibly ‘/dev/sda’ see below for details:

________________________________________

Overwriting the Master Boot Record

Note: The existing MBR will be lost. In order to dual-boot your computer, we will be creating a new Master Boot Record to include all operating systems, including Ubuntu Linux and Microsoft Windows.

1. Download the latest version of Ubuntu Desktop edition from http://www.ubuntu.com/GetUbuntu/download and burn your Ubuntu CD.

2. Reboot your computer and boot into a live session.

________________________________________

Find your Ubuntu boot partition

You need to mount the partition with the ‘/boot’ folder in it.

1. Mount your Ubuntu partition from the Places menu.
Open “Home” and click an unmounted partition from the bar to the left.

2. As an example: I clicked on a 16G partition to mount it, then I went into the boot/grub directory to check for grub.cfg

________________________________________

Note the partition details.

Run this command:

mount | tail -1

You should see output similar to this:

/dev/sda2 on /media/0d104aff-ec8c-44c8-b811-92b993823444 type ext4 (rw,nosuid,nodev,uhelper=devkit)

Note the designation for the disk /dev/sda which you will be using later, and the directory in /media.

Hint: Use Tab Completion in Terminal to complete the path.
This automatically finishes file names, directory locations, and other long or hard to type file names.

________________________________________

Verify that your partition is the Ubuntu boot partition.

Run this command:

ls /media/0d104aff-ec8c-44c8-b811-92b993823444/boot

or

ls /media/0d104aff-ec8c-44c8-b811-92b993823444

But substitute the example’s UUID, 0d104aff-ec8c-44c8-b811-92b993823444, with your volume’s UUID which you found earlier.

In either case, the output should be something like this:

abi-2.6.38-8-generic         memtest86+_multiboot.bin
config-2.6.38-8-generic      System.map-2.6.38-8-generic
grub                         vmcoreinfo-2.6.38-8-generic
initrd.img-2.6.38-8-generic  vmlinuz-2.6.38-8-generic
memtest86+.bin

If what you have is not similar, unmount it and try another partition.

________________________________________

Reinstall GRUB

Now that everything is mounted, we just need to reinstall GRUB by specifying the correct directory and the correct drive name:

For version 1.99 (Ubuntu 11.04):

sudo grub-install --boot-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444/boot /dev/sda

If you get BIOS warnings try:

sudo grub-install --boot-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444/boot /dev/sda --recheck

Warning: 

Substitute /dev/sda with the location you want to install GRUB on.

Substitute the example’s UUID, 0d104aff-ec8c-44c8-b811-92b993823444, with your volume’s UUID which you found earlier

If all went well, you should see something like this:

“Installation finished. No error reported”

________________________________________

Reboot and Test

Reboot, making sure to boot to your hard drive and not to the live CD.

Grub should be installed and both Ubuntu and Windows should have been automatically detected and listed in the menu.

The Master Boot Record will execute Grub as the initial boot-loader.

The Windows boot-loader is contained within the Windows partition and will then be chain-loaded by the Grub boot-loader.

If your GRUB Boot Menu is out of date, run this command:

sudo update-grub

________________________________________

Notes:

Prior to version 1.99:

sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda

If you get BIOS warnings try:

sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda --recheck

Warning: 

Substitute /dev/sda with the location you want to install GRUB on.

Substitute the example’s UUID, 0d104aff-ec8c-44c8-b811-92b993823444, with your volume’s UUID which you found earlier

________________________________________

Based on RecoveringUbuntuAfterInstallingWindows.

Written by SilverWav

May 28, 2011 at 11:01 am

11.04 Natty – Panel Indicators

leave a comment »

Panel Indicators
Start via Alt + F2 “AppName” and enter.

Pastie
sudo add-apt-repository ppa:hel-sheep/pastie
sudo apt-get update
sudo apt-get install pastie

Weather Indicator (Memory Leak!)
sudo add-apt-repository ppa:weather-indicator-team/ppa
sudo apt-get update
sudo apt-get install indicator-weather

Indicator Workspaces
sudo add-apt-repository ppa:geod/ppa-geod
sudo apt-get update
sudo apt-get install indicator-workspaces

Indicator Multiload Bug #751409 (Memory Leak!)
sudo add-apt-repository ppa:indicator-multiload/stable-daily
sudo apt-get update
sudo apt-get install indicator-multiload

Indicator Syspeek
sudo add-apt-repository ppa:vicox/syspeek
sudo apt-get update
sudo apt-get install syspeek

Written by SilverWav

May 10, 2011 at 6:38 pm

11.04 Natty – Enable Parcellite In System Tray

leave a comment »

[Update]Note: I’m going with ClipIt in place of Parcellite.

sudo apt-get install parcellite

sudo apt-get install dconf-tools

Press Alt + F2 and type ‘dconf-editor’ go to:

com.canonical.Unity.Panel

Change:

systray-whitelist

Add:

, 'parcellite'

Log out and log back in for the changes to take effect.

Written by SilverWav

May 8, 2011 at 5:11 pm

11.04 Natty – Show The Month, Date & Locations In The Indicator

with 2 comments

Update:

Click on the clock and choose “Time & Date Settings” → “Clock”.

Thanks to Matthew Paul Thomas for the comment.

___

Old:

sudo apt-get install dconf-tools

Press Alt + F2 and type 'dconf-editor'.

com.canonical.indicator.datetime

show-day
show-date
show-locations

Written by SilverWav

May 8, 2011 at 4:48 pm

Posted in Notes

Tagged with , , , ,

11.04 Natty – Mouse & Keyboard Tips

leave a comment »

Keyboard Shortcuts

Launcher

  • Hold Super – Invoke the Launcher.
  • Hold Super, then 1 or 2 or 3 and so on until 0– Open or focus an application. The number corresponds to the location of the icon on the launcher from top to bottom.
    • Adding Shift will open a new instance of the application if it’s already open.
    • Holding the key is also useful when you want to get to the Launcher but do not want to invoke the Dash.
  • SuperT – Open the rubbish bin/trash can.
  • AltF1 – Put keyboard focus on the Launcher, use arrow keys to navigate, Enter launches an application, Right arrow exposes the quicklists if an application has them.
  • CtrlAltT – Launch a terminal window.
  • SuperA – Open Applications place
  • SuperF – Open Files & Folders place

Dash

  • Tap Super – Opens the Dash
  • AltF2 – Invoke the Dash in a “special mode” to run a command. Typing in a Folder Name will find that folder in Nautilus, you can also use ~ as a shortcut in the field.
  • The Dash opens with focus on the search box to find applications and files. Using the arrow keys will navigate the results, use Enter to launch.

Panel

  • F10– Open the first menu on the panel, use the arrows keys to “scrub” across the menus. (There is no shortcut for the session menu, so hitting F10 and left arrow is a quick way to get there)
    • Press Esc to close the menus without choosing anything.

Window Management

  • SuperW – Spread mode, zoom out on all windows in all workspaces.
  • SuperD – Minimize all windows; hitting it again restores them.

Window Placement

If you cycle through the same key Unity will cycle through different placement widths, so experiment by hitting the numkey multiple times, for example Ctrl-Alt-numpad 5 5 5:

  • CtrlAltNumpad 7 – Place window in top left corner of screen.
  • CtrlAltNumpad 8 – Place window in top half of screen.
  • CtrlAltNumpad 9 – Place window in top right corner of screen.
  • CtrlAltNumpad 4 – Place window on the left side of the screen.
  • CtrlAltNumpad 5 – Center/Maximize the window in the middle of the screen.
  • CtrlAltNumpad 6 – Place window on the right side of the screen.
  • CtrlAltNumpad 1 – Place window in the bottom left corner of the screen.
  • CtrlAltNumpad 2 – Place window in the bottom half of the screen.
  • CtrlAltNumpad 3 – Place window in the bottom right corner of the screen.
  • CtrlAltNumpad 0 – Maximize window.

Workspace Management

  • SuperS – Expo mode (for everything), zooms out on all the workspaces and lets you manage windows.
  • ShiftAlt – Expo mode for all windows in the current workspace only.
  • CtrlAlt / / / – Change to a new workspace.
  • CtrlAltShift / / / – Place window to a new workspace.
  • CtrlAltL – Lock the screen.

Screenshots

  • PrtScn – Take a screenshot of the current workspace
  • AltPrtScn – Take a screenshot of the current window

Mouse Tricks

Launcher

  • Clicking and holding an icon and then dragging it around will allow you to reorder it on the launcher. You can also drag it off to the right of the launcher to move it around. Note that you need to make an explicit movement to the right to move the icon off the launcher before you can move it around.
  • Dragging and Dropping an icon into the trash can will remove it from the Launcher. The program itself will remain installed and accessible through the dash.
  • Scrolling the mouse wheel while over the Launcher scrolls the icons if you have too many and need to move around quickly.

Window Management

  • Maximizing – Dragging a window to the top panel will maximize it.
  • Restore – There are two ways to restore, or unmaximize, the topmost maximized window of the current monitor for this workspace (not using the window controls)
    • Double clicking on the top panel (but not in the application’s menu)
    • Dragging the top panel down.
  • Middle click on Maximize – Maximize Window Vertically.
  • Right click on Maximize – Maximize Window Horizontally
  • Focus the topmost maximized window of the current monitor for this workspace: Left click on the top panel (but not in the application’s menu)
  • Cycle between maximized windows of the current monitor for this workspace: Middle click on the top panel (but not in the application’s menu)
  • Tiling – Dragging a Window to the left/right border will auto tile it to that side of the screen.
  • Middle click on an application’s launcher icon – Open a new instance of the application in a new window. If the application isn’t running it will just open it normally.
  • Middle click on the top panel (but not the menu) – send the current window behind all other windows.
From: askubuntu.
Licensed: under cc-wiki with attribution required.

Written by SilverWav

May 8, 2011 at 1:43 pm

Posted in Notes

Tagged with , , , ,