Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

2014-05-05

recovering LUKS encrypted Ubuntu LV Group when mounting on a different Ubuntu system

I mirror my hdd, and keep swapping them in and out of test system. Often I mirror ( using external dock, such as - http://www.ebay.in/itm/Anker-Uspeed-USB-3-0-and-ESATA-To-SATA-External-Hard-Drive-Docking-Station-/161201311080 ). This leads to an issue.

 Ubuntu during installl with luks+lvm configuration will name the vg as "ubuntu--vg". And when you plug in another drive on which ubuntu was installed, would lead to a naming conflict and failure to activate the lvm after luks open.

) Ubuntu will give you a passphrase dialog when you plug the device in (if you're in a gui) but will fail to mount after the password is entered. The reason for this is that the volume group of your old partition, and your current OS partition are the same. However, if you enter the password, it will still create a node in /dev/mapper/. If you run ls -la /dev/mapper/ you should see a luks-xxxxxx-xxxxx-xxxx or some such file. That's the mapping that was created when the password dialog failed. Note, that all the dialog did was to call: luksOpen and map it to that /dev/mapper/luks-xxx file.
1) Make sure your physical volume is available by running the pvdisplay command. It should be /dev/mapper/luks-xxx-whatever. Notice that the VG Name of both drives is the same; this is problematic and will prevent you from being able to mount the drives both at the same time (very frustrating).

2) To fix this, get the uuid of the volume by running "pvs -o +vg_uuid". The uuid will be the value displayed all the way to the right, containing 7 dash-delimited values. Copy those somewhere as we'll be using them in the next step. DO NOT CONFUSE UUIDS AND COPY DOWN THE WRONG ONE. Only copy the one for your current luks-xxx-whatever device.
3) Change the volume group for your old disk by running the following command "vgrename UUIDOFYOURDISKHERE oldhd" You can change the "oldhd" to whatever you want so long as it's differing from the volume group name of your current disk. Performing this step removes the conflict with volume group names which will allow you to now make volumes available.
4) Run the command "vgchange -a y" to make the volumes active.
5) Create a mount point somewhere, for example create mount point /mnt/oldhd/ by running mkdir /mnt/oldhd/.
6) Now, mount the root partition of the oldhd volume group by running the following command: "mount /dev/oldhd/root /mnt/oldhd"
7) You should now be able to cd into /mnt/oldhd and acc

reference:
http://www.reddit.com/r/Ubuntu/comments/1wjhzf/recover_luks_encrypted_ubuntu_lv_group_from/


2012-03-21

Unity vs gnome-shell : the small things - status tray

Unity vs gnome-shell : the small things - status tray 

gnome-shell status tray is an interesting implementation , written in js. Consequently, easy to learn, write for, and extend. What does bother me here, is the focus steal.

When a user click on a status tray icon and moves the cursor down diagonally, focus will switch to next nearest tray icon. This is rather annoying, and more so due to the space between the menu and the icon.

A bug has been filled for this ( gtk menu grab ? ), which Iam unable to locate.



With Unity, this is not seen as the icons are smaller and consequently user has very minimal chance of switching applet when a user moves the cursor diagonally down. Seems to me a good implementation of UI ( or is this fitt's law ?)



edit: gnome-shell has made the larger, thus fixing this issue for me.

2011-12-24

Tablets : Unity and gnome-shell


I have thinking about writing this down for quite a while, my experiences with WeTab running Unity and gnome-shell.


Unity seems a good interface for a netbook ( I have not used this on 396.2mm laptop yet). The chink being, poor Tablet support. On install, I had setup auto-login, and was presented with the desktop and launcher. Opening up an app, and maximizing it hides the launcher, which I found really hard to find again. The scroll bar is something I was unable to find in applications, and Touch gesture has not been implemented yet for scrolling. Otherwise, a good deal.


gnome-shell is one the best interface I have seen ( I have limited exposure to KDE ) , when it comes to touchscreen devices. The toggle buttons are huge and easy target to access. The application switch is trivial, as "Activies" is always visible. Switching workspace is easy, not that it is not completely hidden off during "Window Picker mode. The notification is one thing, which I easily miss out on and consequently every action which needs my attention. I would be really happy, if I could show/hide notification from system menu's notification toggle switch.


The good about both, Tiling and "auto-maximization" of Windows works good. We could try working with a Tiling window manager on Tablet, with multiple desktop. What we would need is Thumb keybord, or a keyboard which can stick to one corner assuming we use a single hand to type.


The bad about both, we need bigger fonts and target area. X still lacks a sound multi-touch foundation in most distribution. Scrolling is still a bit painful on touch devices, without gestures such as two finger scroll. Will everyone have a multitouch device ?  gnome-settings-daemon xrandr plugin should also probably rotate the Touchscreen input.



reference:
https://desktopsummit.org/program/sessions/towards-multitouch-gnome-shell
http://live.gnome.org/GnomeShell/Design
http://unity.ubuntu.com/projects/
http://who-t.blogspot.com/2011/12/multitouch-patches-posted.html
https://wiki.ubuntu.com/Multitouch
https://bugzilla.gnome.org/show_bug.cgi?id=652247
https://bugzilla.gnome.org/show_bug.cgi?id=659498


GitLab runner on Windows with bash shell on windows contianer on Docker

As part of your pipeline, you may need to perform browser testing across different platforms/environments. To minimize testing time, it'...