Saturday, September 8, 2012

War on women: the final solution

Surely there are better ways to solve problems than striving to terminate all inconvenient less-than-human life forms?

Yet what is anyone actually doing to solve anything? Republican or Democrat? These are serious problems in and of themselves;
a) psychological abuse
b) physical assault
c) unintentional relations

Outsourcing our financial and sexual problems to third world countries doesn't count.

As men and women's mutual liberation from labour is the result of technology, so is our freedom to choose our role in society.

Yet movement forward (however circumstantial the terminology) does not consist of mass dehumanisation*, and cannot come at the expense of this.

One cannot mentally write-off their opportunity of ever being respected out of free will. Are women still being paid to be silent?

*objectification

Thursday, September 6, 2012

How to emulate Windows XP User Interface on EL6/Gnome

With iceWM not supporting grouping of windows, its only noticable deficit, here are some instructions on configuring Gnome to provide a Windows look and feel.

To emulate Windows XP User Interface on EL6/Gnome;

1. configure Gnome menu items
yum install alacarte (rpm -i alacarte-0.12.4-1.el6.noarch.rpm)
Right click on Applications - Edit Menus

2. configure Gnome task bar (2 gnome-panels take up too much desktop vertical space on a laptop)
Window List Preferences (Right click on Window List dotted || bar - preferences) - Always group windows
Right click on primary gnome panel - Remove all shortcut icons from panel (these should be configured as root Application Menu items instead)
Right click on primary gnome panel Clock - preferences - tick show seconds only
Right click on primary gnome panel User Name - Remove From Panel
Right click on secondary (eg bottom) gnome panel - Delete this Panel
Right click on primary gnome panel - Add to Panel - Workspace Switcher
Right click on primary gnome panel - Add to Panel - Window List
Right click on primary gnome panel - Add to Panel - Show Desktop
Right click on primary gnome panel - Add to Panel - Disk Mounter
Right click on primary gnome panel - properties - Orientation - Bottom
Right click on primary gnome panel Menu Bar ("Applications Places System") - Remove From Panel
Right click on primary gnome panel (bottom left pixel) - Add to Panel - Main Menu

3. configure Gnome shortcut keys
System - Preferences - Keyboard - Layouts - Layout Options - Alt/Win key behaviour - Meta is mapped to Win Keys
System - Preferences - Keyboard Shorcuts - Hide all normal windows and set focus on desktop - Mod4 + m
System - Preferences - Keyboard Shorcuts - Lock Screen - Mod4 + m
System - Preferences - Keyboard Shorcuts - Show the panel's main menu - Mod4 + Tab

4. configure Gnome menu accelerator keys
System - System Tools - Gnome Configuration Editor - select desktop - gnome - interface - can_change_accels (check the value box in the right side of the window).
    Example on how to add/change menu shortcut keys:
        Open gnome-panel
        Hover the pointer over the menu item you want to change/create the shortcut for (eg 'select all')
        Enter the shortcut you want on the keyboard, e.g. Ctrl-A
        Hover the pointer over the menu item you want to change/create the shortcut for (eg 'reset and clear')
        Enter the shortcut you want on the keyboard, e.g. Ctrl-R
        Close gnome-panel
   
5. configure Gnome Panel Application Menu accelerator keys
- unknown (in classic Windows 95+, pressing the Windows key followed by the first letter corresponding to progam shortcut name would open it, such that prepending the program shortcut name with an accessible character would enable instantaneous application initiation - eg Win + `)
- NB this feature is available in iceWM (and it even works better on iceWM)

6. save/restore Gnome Panel configuration [UNTESTED - use at your own risk]
- download Gnome panel-restore.sh script from http://www.edmondscommerce.co.uk/ubuntu/ubuntu-restore-panels-script/ (courtesy of http://bithacker.posterous.com)
- make it executable, and run it

How to emulate the Windows XP User Interface on Windows 7

To emulate the Windows XP User Interface on Windows 7;

1. configure Windows 7 start menu [UNTESTED]
- Set to classic (not possible without mod - eg Classic Shell / CSMenu)
    http://www.petri.co.il/classic-start-menu-in-windows-7.htm
   
2. configure Windows 7 taskbar
taskbar buttons - always combine, show labels
http://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/always-combine-show-labels/61278e33-7ca7-4d02-94e1-f216b5a3ae3c?tm=1341636600542&page=2#footer
- Right click on Task Bar - properties
    select 'Use small icons'
    select 'Never combine'
- Download and install the 7 Taskbar Tweaker software
    (eg http://download.cnet.com/7-Taskbar-Tweaker/3000-2072_4-10973305.html / http://rammichael.com/?proj=29)   
- Left click on '7 Taskbar Tweaker' icon on system tray
    Combining - Combine grouped items
    Grouping - Group by Application ID (default)
    Hovering - List
- Right click on '7 Taskbar Tweaker' icon on system tray
    set 7 Taskbar Tweaker to startup on OS start
- Increase Windows 7 taskbar item width (button length / button width)
(http://www.mydigitallife.info/how-to-change-the-windows-7-taskbar-button-length-or-width-size/)
    Run Registry Editor (RegEdit).
    Navigate to the following registry key:
        HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
    Right click on a blank space on the right pane, select New, then String Value. Name the new string value as MinWidth (NB if MinWidth already exists, skip this step)
        Double click on MinWidth, and change the value data to 200
        NB by default, Windows 7 has the following MinWidth value (estimated), when MinWidth is not defined or not created:
            Button with standard or normal icons: 56
                Button with small icons: 40
       
3. configure Windows 7 Windows Explorer to show full path on title menu
- Windows Explorer - View - Details
- Windows Explorer - View - choose details - select 'Date modified'
- Windows Explorer - Tools - Folder Options - view
    'display the full path in the title bar' (this will enable the full path to be viewed on the taskbar - but without classic theme OR AeroBar mod - not on the title bar itself..)
    'Show hidden files, folders, and drives'
    untick 'Hide extensions for known file types'
    'Apply to all folders'
- NB To show full path on the title bar itself (shouldn't be necessary with 7 Taskbar Tweaker):
    method 1. Set Windows Theme to Windows Classic
    method 2. Install AeroBar (UNTESTED)

How to remove the search box from Windows Explorer (and Internet Explorer)

To remove the search box from Windows Explorer (and Internet Explorer);

1. Configure Windows 7 remove search box from Windows Explorer

There is no way of doing this without removing Windows Search functionality entirely (this is typical of the state of the Windows operating system and why no one uses it anymore)
(http://www.howtogeek.com/howto/10246/how-to-disable-search-in-windows-7)

- Control Panel (All Items view) - Programs and Features
- In the left pane, click on the Turn Windows features on or off link
- Windows features - disable windows search

2. Configure Windows 7(?) remove search box from Internet Explorer

Here is a record of how to remove the search bar from Internet Explorer 7 on Windows Vista (which may or may not work for later IE/OS versions) (http://blogs.msdn.com/ie/attachment/715071.ashx)

- regedit (edit the registry at your own risk)
- HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions
- create a dword value named "NoSearchBox" and set it to 1. The search box will be gone. Set it back to 0 and it will be back again.

Configuration of autohide gnome panel on EL6

NB gnome autohide functionality is known to conflict with the display of gnome task bar window list items (it won't autohide after clicking on a gnome taskbar window list). See my comments;
  • https://bugs.launchpad.net/gnome-panel/+bug/82504 
  • https://bugzilla.redhat.com/show_bug.cgi?id=444640
To configure autohide gnome panel on EL6;
  • 1. enable autohide;
    • Right click on gnome panel - properties - autohide
  • 2. gnome-panel change speed of autohide (http://ubuntuforums.org/showthread.php?t=822281)
    • gconf-editor (timeouts to configure in gconf editor)
    • /apps/panel/toplevels/bottom_panel (NB this is the same as top_panel if it has previously been moved to the bottom)
    • uncheck enable_animations
    • set unhide_delay to 50 (NB this will perform less reliably if set to a small value like 0)
    • set hide_delay to 50 (NB this will perform less reliably if set to a small value like 0)
    • set auto_hide_size to 1 (NB this cannot be set to 0)

How to disable Gnome login Face Browser on EL6

To disable Gnome login Face Browser on EL6 (enable standard typed user/password login process on EL6):

sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type boolean --set /apps/gdm/simple-greeter/disable_user_list true

Method to take a screenshot remotely on EL5/EL6

To take a screenshot remotely on EL5/EL6 (eg to record a snapshot of the gnome-terminal log);

ssh username@servernameoripaddress -pSSHPORTNUMBER
enter password
cd /home/username
echo 'import -window root screenshot1.png' > takeScreenshot.sh
chmod 777 takeScreenshot.sh
env DISPLAY=:0 XAUTHORITY=/home/username/.Xauthority '/home/username/takeScreenshot.sh'
exit
exit

scp -pSSHPORTNUMBER username@servernameoripaddress:/home/username/screenshot1.png .
eog screenshot1.png

How to launch a remote process through ssh and end the connection

To launch a remote process through ssh and end the connection (i.e. start a process over ssh using an already logged in x session -for X/display on remote PC);
(http://superuser.com/questions/122943/how-to-launch-a-remote-process-through-ssh-and-end-the-connection)
(http://stackoverflow.com/questions/1584411/how-to-run-an-x-program-from-outside-the-x-session-e-g-from-the-console-or-ssh)

ssh username@servernameoripaddress -pSSHPORTNUMBER
enter password
su usernametostartremoteprocessas    [OPTIONAL]
enter password
env DISPLAY=:0 XAUTHORITY=/home/usernametostartremoteprocessas/.Xauthority '/home/usernametostartremoteprocessas/remoteprocess.sh' &
exit
exit

Enable automatic login on EL6 (and automatically start an application upon startup)

To enable automatic login on EL5 (for an arbitrary user, username);
- gdmsetup - security -
- add user 'username' to list of users
- enable automatic login, and select user 'username'

To enable automatic login on EL6 (for an arbitrary user, username);
(https://www.redhat.com/archives/rhelv6-list/2011-June/msg00048.html)
Edit /etc/gdm/custom.conf to add the following two lines in the [daemon] section:
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=desired_username

NB to automatically start an application upon startup;
    login as username
    System - Preferences - Startup Applications
        /home/username/remoteprocess.sh
        OR
        gnome-terminal -x /home/username/remoteprocess.sh