Tuesday, March 29, 2011

Install IE7 on Ubuntu using Wine


Selected Test Results (selected in 'Test Results' table below)
What works
  • Browsing secure sites (https)

  • Sun Java VM

  • Flash 10

  • most java script

  • file downloads

  • page printing setup, preview and zoom


  • What does not
  • ierunonce

  • unable to pick search providers

  • fishing filter

  • pages requiring ActiveX


  • What was not tested
    Pop up blocker

    Additional Comments
    Installed using WineTricks VERSION=20091125 (IE7).
    Downgraded to wine version to 1.1.31 to install jre-6u17-windows-i586.exe.
    This is due to a regression in wine 1.1.32 - 1.1.34.
    After install upgrade back to 1.1.34.
    Added real XP Dll's to system32:
    msctf.dll,msimtf.dll,oelpro32.dll,uxtheme.dll,xmllite.dll
    
    Used winetricks to install:
    comctl32,comctl32,corefonts,fontfix, gdiplus,msls31,msxml3-4 & 6,riched20 & 30,tahoma,allfonts
    
    Used winecfg to set DLL Overrides:
    "browseui"="native,builtin"
    "comctl32"="builtin"
    "crypt32"="native,builtin"
    "dispex"="native,builtin"
    "gdiplus"="native"
    "hhctrl.ocx"="native,builtin"
    "hlink"="native,builtin"
    "iernonce"="native,builtin"
    "iexplore.exe"="native,builtin"
    "itircl"="native,builtin"
    "itss"="native,builtin"
    "jscript"="native,builtin"
    "mlang"="native,builtin"
    "mshtml"="native,builtin"
    "mshtml3"="native,builtin"
    "msimtf"="native,builtin"
    "msxml3"="native,builtin"
    "olepro32"="native,builtin"
    "riched20"="native,builtin"
    "riched32"="native,builtin"
    "scrobj"="native,builtin"
    "shdoclc"="native,builtin"
    "shdocvw"="native,builtin"
    "shlwapi"="native,builtin"
    "updspapi"="builtin"
    "url"="native,builtin"
    "urlmon"="native,builtin"
    "usp10"="native,builtin"
    "uxtheme"="native,builtin"
    "wininet"="builtin"
    "wintrust"="native,builtin"
    "xmllite"="native,builtin"
    
    This made IE7 much more functional.

    Friday, March 11, 2011

    Expanded Linux Logical Volume online

    pvcreate /dev/sdb2
    vgextend VolGroup01 /dev/sdb2
    lvm vgchange -a y
    lvextend -l+100%FREE /dev/VolGroup01/LogVol00
    resize2fs -f /dev/VolGroup01/LogVol00

    Tuesday, March 8, 2011

    Disable Default Service on CentOS

    chkconfig --level 3456 avahi-daemon off
    chkconfig --level 3456 avahi-dnsconfd off
    chkconfig --level 3456 bluetooth off
    chkconfig --level 3456 cups off
    chkconfig --level 3456 firstboot off
    chkconfig --level 3456 hidd off
    chkconfig --level 3456 isdn off
    chkconfig --level 3456 nfs off
    chkconfig --level 3456 nfslock off
    chkconfig --level 3456 pcscd off
    chkconfig --level 3456 rpcidmapd off
    chkconfig --level 3456 rpcgssd off
    chkconfig --level 3456 smartd off
    chkconfig --level 3456 sendmail off
    chkconfig --level 3456 ip6tables off

    chkconfig --level 3456 iscsid off

    Notes on Installing Windows 3.11 on Vmware

    DOSIDLE - idle CPU on DOS
    WQGHLT - idle CPU on Windows 3.11
    SVGAPATCH - patch SVGA 1024x768 in Windows 3.11 to use in VMWARE
    Network Card Driver
    Y2K Patch

    Download all related Drivers here - http://www.mediafire.com/?3eq8gxri1s5wswt


    http://www.japheth.de/
    http://forums.virtualbox.org/viewtopic.php?t=1033

    Wednesday, March 2, 2011

    Changing Date Format on Ubuntu for Lotus Notes

    1. cd //usr/share/i18n/locales
    2. backup en_US
    3. edit en_US
    4.

    % Appropriate date representation (%x)
    %       "%Y/%d/%m"
    d_fmt   "<U0025><U0059><U002F><U0025><U0064><U002F><U0025><U006D>"

    5. sudo localedef -f UTF-8 -i en_US en_US.UTF-8

    Tuesday, March 1, 2011

    Setup Syslog-ng Server for Cisco Device

    1. Install EPEL on CentOS
    http://download.fedora.redhat.com/pub/epel/5/i386/repoview/epel-release.html
    2. Yum install syslog-ng
    3. vi /etc/syslog-ng/syslog-ng.conf
    4. Remark default log settings (keep using syslog for system, syslog-ng for cisco device only)
    5.  Add
    source s_sys {
            udp(ip(0.0.0.0) port(514));
    };
    filter f_router  { facility(local3); };
     ###ROUTER IP###
    filter f_A { host("1.1.1.1"); };
    filter f_B { host("2.2.2.2"); };
    filter f_C { host("3.3.3.3"); };
    ###UNKNOWN ROUTER###
    filter f_unknown { not ( filter(f_A)
                            or filter(f_B)
                            or filter(f_C) ); };
    ###LOG FILE LOCATIOM###
    destination A { file("/var/www/netlog/A.log"  perm(0644) sync(10) ); };
    destination B { file("/var/www/netlog/B.log" perm(0644) sync(20) ); };
    destination C { file("/var/www/netlog/C.log" perm(0644) sync(20) ); };
    destination unknown { file("/var/www/netlog/unknown.log" perm(0644) sync(10) ); };
    ###LOG SETTING###
    log { source(s_sys); filter(f_router); filter(f_A); destination(A); };
    log { source(s_sys); filter(f_router); filter(f_B); destination(B); };
    log { source(s_sys); filter(f_router); filter(f_C); destination(C); };
    log { source(s_sys); filter(f_router); filter(f_unknown); destination(unknown); };

    6. Edit /etc/sysconfig/iptables and Add
    -A RH-Firewall-1-INPUT -p udp -m udp --dport 514 -j ACCEPT
    7. Edit /etc/httpd/conf.d/netlog.conf
    Alias /netlog /var/www/netlog
    <Location /netlog>
        Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch MultiViews
        Order deny,allow
        Deny from all
        Allow from 163.50
        Allow from 172
        Allow from 192
    </Location>

    8. mkdir /var/www/netlog
    9. service iptables restart & service syslog-ng restart & service httpd restart
    10. chkconfig --level 3456 syslog-ng on
    11. Edit /etc/logrotate.d/syslog-ng

    /var/www/netlog/*.log {
        daily
        notifempty
        missingok
        copytruncate
        postrotate
            /sbin/service syslog-ng reload > /dev/null 2>/dev/null || true
        endscript
        compress
    }
    12. Configure your Cisco Router

    logging facility local3
    logging <server ip>