Tuesday, October 11, 2011

Tweaking Fedora 15 and GNOME 3

Fedora 15 is out now and features GNOME 3.0. All in all I would say I’m very happy with F15, but to get the GNOME Shell working the way I wanted to it required a little tweaking.

Setup

Most of these changes will require sudo access, and the use of the GnomeTweakTool program or the gconf-editor utility. To enable sudo access you must either add your user to the ‘wheel’ group, or manually edit the sudoers file with the visudocommand. I won’t cover this in more detail here as there are already plenty of tutorials for this task out there.

To install the gconf-editor tool simply use the following command:

$ sudo yum install gconf-editor

Gnome Tweak Tool

The GNOME 3.0 release saw a lot of customization features disappear from the desktop. This is understandable, as it’s hard to present users (in this case themers or normal desktop users) with stable customization options when you are still working on the system’s design. To help restore some of this functionality the GnomeTweaksTool has been created. It will allow you to change system fonts, set GTK and GNOME Shell themes, change icon sets, and even re-enable the minimize button! 

The tool is easy to install:

$ sudo yum install gnome-tweak-tool

The Minimize Button

So far this has been one of the biggest complains I’ve heard about the GNOME Shell, and yet it is easily fixed. If you have the GNOME Tweak Tool installed simply change the option ‘Arrangement of buttons on the titlebar’ under the ‘Shell’ options.

 If you are using gconf-editor navigate to desktop->gnome->shell->windows and change the value of button_layout to ‘:minimize,close‘. One can also add the maximize button this way by simply setting the value to’:maximize,minimize,close‘.

Power Off and Alternative Alt-Tab

To have GNOME show a power off option in the status menu you can install the alternative-status-menu extension.

$ sudo yum install gnome-shell-extensions-alternative-status-menu

Currently, GNOME Shell has application_based alt-tab behavior. To change this to the more traditional windows-based install the alternate-tab extension.$ sudo yum install gnome-shell-extensions-alternative-tab

Dual Monitor Workspaces

By default GNOME Shell only considers the main monitor a ‘workspace’. Any windows on additional monitors stay the same when switching from one workspace to another. 

To change this behavior use gconf-editor to set the desktop->gnome->shell->windows->workspace_only_on_primary to false.

Reference

Wednesday, September 28, 2011

Creating a custom icon for the ‘Add to Home Screen’ on iPhone

iPhone users have the ability to add an icon to their home screen that directly links to a website URL. If left alone, the icon image is generated from a screenshot of your website, which will usually look like this:
  1. However, this icon can be customized, and after years of creating fav icons for desktop websites, why not customize the icon for mobile websites? Here’s how:
  2. Create a 114px x 114px icon image – this larger size makes sure the icon is sharp even in Retina Display. Save it out as a png and load it onto the server in either the root directory or images path.
Apple automatically generates rounded corners and adds a glossy semi-circle on top, if you like that use this code:

<link rel="apple-touch-icon" href="imagefoldername/my-custom-icon.png"/>

If you hate glossy shine, tell Apple to step off with this code and your icon will remain how you designed it, but still :

<link rel="apple-touch-icon-precomposed" href="imagefoldername/my-custom-icon.png"/>

Now you have a fully custom experience for your mobile website users!

*Android users can add an icon to a screen that will directly link to a URL also, but the process is a little more complicated, so I am not sure how many users actually know it can be done. While iPhone users have a “Add to Home Screen” option in the same area as “Add Bookmark” while actually viewing a website, Android users can only add the icon from the actual screen. So the process is save a bookmark while viewing a website, then go to a screen that has an empty spot for an icon, long-press in that empty spot to open the “Add to Home Screen” option, choose “Shortcuts”, then “Bookmarks” and then pick the bookmark you just saved in your browser. Wow, that was long. But the good new is, for those users who actually go through this process, they will be fed the same custom icon from the code above as well.

Reference: Click here

Monday, September 26, 2011

Welcome!

Welcome to my IT blog. I'll be talking about my experiments and new findings over next few weeks. Also if I find any helpful tips to system administration, networking, programming or anything related to IT, I'd post it here. So visit sometime soon again!