Monday, August 22, 2011

Control Apple/Mac Services, Lunch Damon's, and Startup Applications




What the hell is starting up (or running) on my Mac ?


The goal of this document is to help a NERD track down a
VIRUS or something silly running on an OS-X system.

This document will NOT try to explain the,
/System/Library/CoreServices/BootX
or the
/System/Library/CoreServices/boot.efi
or the
/etc/rc.xxxx
startup files.


Shortcuts:

  • If you are running the SERVER version of the OS, serveradmin will be your number one tool.
    i.e. sudo serveradmin fullstatus network
    = > ATTENTION < =

    This has bit me in the ass more then one time,
    we often check the USER loginwindow.plist file and forget the SYSTEM .plist file!

    more /Library/Preferences/loginwindow.plist

    if it is a binary file, convert it to ASCII via,
    /usr/bin/plutil -convert xml1 /Library/Preferences/loginwindow.plist
    then edit with your fav ascii editor,
    nano /Library/Preferences/loginwindow.plist
    ... and look for silly things starting up !

    Do NOT forget to monitor your USER
    ~/Library/LaunchAgents/
    folder for a plist file called, com.google.keystone.agent.plist

    This application is SpyWare. And is installed by many gOOgle applications including but not limited to:
    Picasa, Earth, Desktop and Voice (more too i suspect).

    For more info see this guide.
    - If you ever install a HP ScanJet or Retrospect (RetroRunSL), it MAY prevent you from shutting down or re-starting correctly.
    - The HP ScanJet installer may install, THREE background programs which do NOT shutdown when HUP'ed. - HP Scanjet Manager.app - HP Scheduler.app Located in: /Library/Application Support/Hewlett-Packard/HP Scanjet Scanner/ - Director Docker.app Located in: /Applications/Hewlett-Packard/HP Photo and Imaging Software/HP Photo and Imaging Director/
    SECRET TIP:

    Prevent BOTH
    /Library/Preferences/loginwindow.plist and ~/Library/Preferences/loginwindow.plist
    from running at user login, by doing a safe login.
    - Hold down the SHIFT key AFTER you type your password and BEFORE you click the "login" button.
  • Items that start on power up:

    1. The LaunchDaemons folders contain items that will run as root, generally background processes.
    2. The LaunchAgents folders contain jobs, called agent applications, that will run as a user or in the context of userland.
    3. If your job needs to run even when no users are logged in, put it in /Library/LaunchDaemons.
      - If it is only useful when users are logged in, put it in /Library/LaunchAgents,
      or in the personal LaunchAgents directories of specific users.
    4. Do not put your job in /System/Library, which is reserved for system-provided daemons.
    5. Startup files are found in various locations, some are provided in the following tables.
    Provided by the user:
    LocationType
    ~/Library/LaunchAgents/Per-user agents.
    ~/Library/Preferences/loginwindow.plistPer-user applications.

    Optionally installed by MacPorts:
    /opt/local/etc/LaunchDaemons/
    SoftLinked to /Library/LaunchDaemons/

    Provided by the administrator:
    LocationType
    /Library/LaunchAgents/Per-user agents.
    /Library/LaunchDaemons/System wide daemons.
    /System/Library/LaunchAgents/Per-user agents.
    /System/Library/LaunchDaemons/System wide daemons.
    /Library/Preferences/loginwindow.plistSystem wide applications.
    Please be aware that many of the "old ways" of doing things are still supported, such as:
    • /Library/StartupItems/
    • /System/Library/StartupItems/
    • /etc/rc.local
    • /etc/mach_init_per_login_session.d/
    • /etc/mach_init_per_user.d/

    1. See what NON-APPLE kernel extensions are being loaded in /System/Library/Extensions/,
      kextstat | grep -v apple
      Some examples of what you might find are listed below: com.subrosasoft.watcher = FileDefense from SubrosaSoft. at.obdev.KUC = Little Snitch, 1.x at.obdev.nke.LittleSnitch = Little Snitch, 2.x com.vmware.kext.vmx86 = vmWare, 1 of 4 com.vmware.kext.vmci = vmWare, 2 of 4 com.vmware.kext.vmioplug = vmWare, 3 of 4 com.vmware.kext.vmnet = vmWare, 4 of 4 com.macally.driver.ICEKey = Macally ICEKey keyboard. com.cisco.nke.ipsec = VPN client from Cisco. net.pocketmac.driver.BlackberryUSBDev = Blackberry USB iSync hack. org.openafs.filesystems.afs = OpenAFS client. com.AmbrosiaSW.AudioSupport = AudioHijack or WireTap. com.symantec.kext.SymEvent2 = Symantec AntiVirus, 1 of 2. com.Symantec.kext.SAVAPComm = Symantec AntiVirus, 2 of 2. com.sophos.kext.sav = Sophos Anti-Virus. com.bresink.driver.BRESINKx86Monitoring = Assorted tools from Marcel Bresink. com.airgrab.driver.AirGrabFirewallModule = Hawking HWUG1A (RT73) USB WiFi NIC EXAMPLE:
      - To STOP the kernel extension "com.bresink.driver.BRESINKx86Monitoring" do,
      sudo kextunload -b com.bresink.driver.BRESINKx86Monitoring

      - To prevent it from starting again on re-boot, move it OUT of StartupItems to your desktop.
      sudo mv /Library/StartupItems/BRESINKx86Monitoring ~/Desktop/

      and or move it OUT of /System/Library/Extensions/ to your desktop.
      Diablotin and or Lingon (see below) will disable them to.

      - See also: ls -asl /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist ~/DownLoads


    2. If your Mac will ONLY work in safe mode,
      you may have a bad kernel extension or the permissions are set wrong.

      • Make sure they are all OWNED by root and the GROUP is set to wheel.

        - Especially items NOT made by Apple like the BUG in the
        Lexar JumpDrive Secure II Plus USB Flash Drive installation software!!!

        Example fix below:
        sudo chown -R root /System/Library/Extensions/LexarFilterScheme.kext
        sudo chgrp -R wheel /System/Library/Extensions/LexarFilterScheme.kext

        See Bubba too...

      • To rebuild the kernel extensions, do:
      sudo rm /System/Library/Extensions.mkext
      sudo kextcache -k /System/Library/Extensions
      sudo reboot
      

      or try sudo touch /System/Library/Extensions, which Snow LEOpard likes more.
      - All will be rebuilt on next boot.

      See also:
      kextfind .

    3. Learn to use and understand launchctl,
      to manage your Agents and Daemons in locations below (and above)!
      ~/Library/LaunchAgents         Per-user agents provided by the user.
      
      /Library/LaunchAgents          Per-user agents provided by the administrator.
      /Library/LaunchDaemons         System wide daemons provided by the administrator.
      /System/Library/LaunchAgents   Mac OS X Per-user agents.
      /System/Library/LaunchDaemons  Mac OS X System wide daemons.
      
      sudo launchctl help
      sudo launchctl list |more

      So to see just a active service, we would do,
      sudo launchctl bslist |grep "A "
      (you will see a lot of services, not to worry)

      The three states a service can be in, they are:
      - active "A"
      - inactive "I"
      - on-demand "D"

      EXAMPLE:
      com.apple.SafariBookmarksSyncer.plist
      - Is in your ~/Library/LaunchAgents/ folder and used by Apple's MobileMe service to sync bookmarks between multiple computers, even if this feature is NOT used!!!

      * The *NEW* version of Lingon (see below) may help you get started.

    4. Running system_profiler will show you the info much better then
      /etc/hostconfig (below).
      Running /usr/sbin/system_profiler SPHardwareDataType
      will give you a nice brief overview of the system.

      /usr/sbin/system_profiler SPStartupItemDataType, will list some startup items.
      /usr/sbin/system_profiler SPSoftwareDataType will list your OS version.
      /usr/sbin/system_profiler -listDataTypes for a complete list of what you can querry.

      The above is also avail via the GUI, open "/Applications/Utilities/System Profiler.app".

      NOTE: Good old Panther (10.3) /usr/sbin/AppleSystemProfiler -usage does it this way.

    5. By default, you may be starting a few demons.
      PLEASE review your hostconfig file, more /etc/hostconfig .
    6. To MANAGE a running service like AppleShare'ing (AFPSERVER=-YES-) do,
      sudo /sbin/SystemStarter stop AppleShare
    7. You should know what services have the ABILTY to be started (apache etc.), via:
      sudo grep -r -e YES -e AUTOMATIC /System/Library/StartupItems
    8. Now look for programs accessing the os via:
      sudo fs_usage -f filesys | grep -v iTerm | grep -v Finder | grep -v grep
      (add more to filter out known good services.)

      or to see just what iTunes is doing do:
      sudo fs_usage -f filesys | grep iTunes

  • Things common to all users:

    1. Start by knowing what is in your:
      ls -asl /Library/StartupItems/
      ls -asl /System/Library/StartupItems/
    2. ls -asl /Library/LaunchDaemons/
      - Little Snitch etc are in here.
    3. ls -asl /System/Library/LaunchDaemons/
      - You will see a LOT of items here. Trust me, use Lingon to see if and when they are started.

  • Stuff that starts at user login:

    1. loginwindow searches this file (if exists) each time a user logs in.
      more ~/.MacOSX/environment.plist
    2. - The below item is the SAME one located via the user accounts GUI preference pane.
      This is the MOST IMPORTANT LOCATION for USER stuff !!!!!:
      open ~/Library/Preferences/loginwindow.plist

      if binary convert to ASCII by doing,
      /usr/bin/plutil -convert xml1 ~/Library/Preferences/loginwindow.plist

      This is how the ClamXav  Sentry is started:
      /usr/bin/grep ClamXavSentry ~/Library/Preferences/loginwindow.plist
      and again, if you can not read it, convert it to ASCII via,
      /usr/bin/plutil -convert xml1 ~/Library/Preferences/loginwindow.plist
    3. The current "proper" way to start stuff is the:
      ls -asl ~/Library/LaunchAgents/
      folder.

  • Things you should do to help debug your system:
    1. ALWAYS start your mac in VERBOSE MODE,
      so you can see what it is doing behind the splash screen.
      sudo /usr/sbin/nvram boot-args="-v"
    2. REDUCE the amount of stuff you need to analyze by doing a SAFE BOOT.
      Hold down the SHIFT key after the boot tone, or mod your nvRAM by
      sudo /usr/sbin/nvram boot-args="-x"
      then reboot.
      Now login via the user name of >console trick.


    3. When was the last time you investigated what was in your TMPDIR/private/var/folders/ folders ?
      Especially the "-Caches-" directory ... Many things "hide" here you know...
      cd $TMPDIR/../../ to find out more.

      Or better yet, use lynx for poke around a lot faster !

      /opt/local/bin/lynx $TMPDIR
    4. Is cron doing something you do not know about ?
      rOOt: sudo crontab -l -u root
      Yourself: sudo crontab -l -u $USER
      ... now do this for ALL your user accounts!

    MANDATORY TOOLS:
    - Ports Collection  How to install and use the Mac Ports Collection.
    
    - Lynx    Via the Mac Ports Collection.  May be the MOST important tool of all !
    - WaterRoof   http://www.hanynet.com/
    - Little Snitch   http://www.obdev.at/
    - Diablotin   http://s.sudre.free.fr/
    - Leopard Cache Cleaner  http://www.northernsoftworks.com/ Has BOTH a Virus and rOOt Kit checker!
    - Transmit   http://www.panic.com/   Best darn file transfer program out their !
    

    All three below are from Peter Borg.     http://homepage.mac.com/pgw3/  Now avail at Source Forge.
    - Lingon   http://sourceforge.net/projects/lingon/files/
    - Smultron   http://sourceforge.net/projects/smultron/files/
    - Hallon   http://sourceforge.net/projects/hallon/files/
    

    RECOMENDED TOOLS:
    - iTerm    http://iterm.sourceforge.net/
    - RCDefaultApp   http://www.rubicode.com/Software/ Fix broken mime types.
    - AppCleaner   http://www.freemacsoft.net/  Better then AppZapper, free too.
    - AppZapper   http://www.appzapper.com/
    - Preferential Treatment http://www.jonn8.com/   
    - tcpFlow   Via the Mac Ports Collection.
    - nMap    Via the Mac Ports Collection.
    - TinkerTool System     http://www.bresink.de/   Kick ass NFS tools too !!!
    - Geek Tool   http://projects.tynsoe.org/
    - Mac Pilot   http://www.koingosw.com/  Nice WiFi AirRadar tool.
    - Cocktail              http://www.maintain.se/   Cocktail, nice maintence tool like LCC.
    - OnyX                  http://www.titanium.free.fr/  OnyX, nice maintence tool like LCC.
    - Pacifist               http://www.charlessoft.com/  
    - Visage                http://keakaj.com/
    - Postfix Enabler       http://www.cutedgesystems.com/
    - HenWen   http://seiryu.home.comcast.net/
    - nTop    Via the Mac Ports Collection.
    - Carbon Copy Cloner  http://www.bombich.com/
    - AppleJack   http://applejack.sourceforge.net/
    - Printer Setup Repair  http://www.fixamacsoftware.com/  Fix Cups and free up a few gigs of space too.
    - MPEG Streamclip  http://www.squared5.com/  Will need MPEG-2 codec from Apple.
    - minicom   Via the Mac Ports Collection.  Terminal supports /dev/cu.Bluetooth-Modem and the KeySpan USB Adapter.
    - Monolingual   http://monolingual.sourceforge.net/ Delocalizer like Leopard Cache Cleaner above.
    - Gutenprint   http://gimp-print.sourceforge.net/
    - Flip4Mac   http://www.telestream.net/  Play Windows .WMV Media files using QuickTime
    - NTFS    http://www.paragon-software.com/ Read and Write NTFS partitions.
    - OpenOffice   http://www.openoffice.org/  Better then MS Office, and FREE too !
    
    - RipIt http://ripitapp.com/ Need I say more ? - Touch Copy http://www.wideanglesoftware.com/ Best BackUp and RECOVER program for you iPhone or iPod. - File Juicer http://echoone.com/filejuicer/ Extract images from, PDF, PPT and flash cards. - Better Zip http://macitbetter.com/ Password protect zips, and a LOT more !

  • iPhone and iPod Touch APPlications and more.
    • Check for pending files here too, ls /Library/Updates/
    • For detailed information see, Mac OS X Internals: A Systems Approach, by Amit Singh.
    • And to get even more confused, see the Apple developer website.
    • The very nice FREE app called "iStat Server", has a hidden precess that "phones home" every time we boot.
      - And yes, is started via /Library/LaunchDaemons/com.bjango.istatserver.plist
      - So lets do, strings "/Library/Application Support/iStat Server/iStatServer" |grep Updater, and see what we find...
      sudo /usr/libexec/StartupItemContext /usr/bin/open -a /Library/Application\ Support/iStat\ Server/iStat\ Server\ Updater.app/Contents/Resources/UpdateChecker.app
      
      /usr/bin/open -a /Library/Application\ Support/iStat\ Server/iStat\ Server\ Updater.app/Contents/Resources/UpdateChecker.app
      
      - Some may call this "UpdateChecker.appSpyware....

      Lets investigate "UpdateChecker" some more...
      - Do a strings, and see what we can find...
      connectionWithRegisteredName:host
      http://bjango.com/istat/version.php
      /Library/Application Support/iStat Server/iStat Server Updater.app
      
      Bottom line ? Yup, its Spyware...


  • Monday, August 1, 2011

    Re-Set Windows Folder Size And View To Its Default

    • Open Notepad
    • Copy and paste the below and save it in your desktop with the name: FolderDefaultSizeAndView.reg

    Windows Registry Editor Version 5.00

    [-HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\BagMRU]
    [-HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags]

    [-HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\Bags]
    [-HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\BagMRU]

    [-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU]
    [-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]

    [-HKEY_CURRENT_USER\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\Bags]
    [-HKEY_CURRENT_USER\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\BagMRU]

    • Save the file and double click it. Click “Yes” when prompted.

    Friday, July 29, 2011

    Prevent Certain Applications From Running

    If your a system administrator or a regular user you may have problems with your users running programs or applications running automatically Adobe Acrotray (acrotray.exe), iTunes, FNPLicensingService.exe, If you want to stop such programs from running, here’s how to use Group Policy to prevent users from running certain programs.

    • Click Start –> Run, type: gpedit.msc
    • Find “Don’t run specified Windows applications”

    image

    • Double-Click it

    image

    • Enable it
    • Click Show
    • Add your applications

    image

    Thursday, July 28, 2011

    i-Tweak: Windows 7 Ultimate Tweaking Guide Part 4

    I’m a tweak freak!!! I love my car clean, my desk organized, and my computer fast. I have a Lenovo W510 Core i7 1.73GHz, 128SSD, 16GB RAM. Why all that? Simply I don’t have time to waste! I’d rather spend the time eating my corn flakes than waiting for this PC to finish booting!!!
    Control your CPU and Push It To Its Limit
    Windows 7 comes with a lot of features, however it does not usually gives you the full capabilities of your CPU nor it does utilize it very well. You understand this is because Microsoft wants a generic deployment, configuration, that works for all types of PCs.
    Some of the most annoying thing I came across is Core Parking, Weight Distribution or Load Balancing, etc. There are a lot of website out there that shows you how to turn off Core Parking and load balance work between your CPU cores, but if you use their way and check your “Performance Monitor”, you’ll see Parking Status still shows are ‘1’, i.e. cores are still parked. Not a good way.
    There is a lot of configurations you have to go through, I’ve done all combination and testing and currently I have my CPU working to its Max and all cores are put to work, work is distributed among all of them.
    image
    image
    It took me some time to get to this to work perfectly, If you are copying this post to another site, please put a reference/credit to this blog.
    Steps:
    1. Backing Up Your Registry:
      • Click Start
      • Run
      • Type: regedit
      • Hit Enter
      • Select the key:
        • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00
      • Click File->Export
      • Create a name for it
    2. Download and run the configurations below (eMail me for the password: i-tweak@hotmail.com):
    3. Activate the Power Setting
      • Open your command prompt
      • Execute: Powercfg –setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
    image

    Tuesday, July 26, 2011

    Apple iOS 4.3.5 Official Direct Download

    Direct Download Links for Apple iOS 4.3.5 (Official from Apple). Choose your device:
    After you’ve downloaded your device’s respective firmware, you can install the software manually by launching iTunes, locating your device on the sidebar and pressing "Restore" while holding the Shift key on Windows and Alt on the Mac.

    Monday, July 25, 2011

    Microsoft Word 2010–Deleting Pages

    You can delete a blank page in a Word document, including a blank page that occurs at the end of the document, by deleting page breaks. You can also combine two pages by deleting the page break between them.

    Delete a blank page

    Make sure that you're in Draft view (on the View menu in the status bar, click Draft). If nonprinting characters, such as paragraph markers (¶), are not visible, on Home, in the Paragraph group, click Show/Hide Paragraph mark.

    • To delete a blank page, select the page break at the end of the page, and then press DELETE.

     

    Delete a single page of content

    You can select and delete a single page of content anywhere in your document.

    1. Place your cursor anywhere in the page of content that you want to delete.
    2. On the Home tab, in the Find group, click the arrow next to Find, and then click Go To.

    Word Ribbon image

    1. Type \page and then click Go To.

    The content of the page is selected.

    1. Click Close, and then press DELETE.

    Delete a blank page at the end of a document

    Make sure that you're in Draft view (on the View menu in the status bar, click Draft). If nonprinting characters, such as paragraph markers (¶), are not visible, on Home, in the Paragraph group, click Show/Hide Paragraph mark.

    • To delete a blank page at the end of the document, select the page break or any paragraph markers (¶) at the end of the document, and then press DELETE.

    Friday, July 22, 2011

    Windows Logon Screen Changer

    You can use this small and simple software to change your logon screen. There is no installer, just click and apply.

    Download.Com Logon Changer users

    Here is my logon screen:

    image

    i-Tweak: Windows 7 Ultimate Tweaking Guide Part 3

    I’m a tweak freak!!! I love my car clean, my desk organized, and my computer fast. I have a Lenovo W510 Core i7 1.73GHz, 128SSD, 16GB RAM. Why all that? Simply I don’t have time to waste! I’d rather spend the time eating my corn flakes than waiting for this PC to finish booting!!!

    Access Hidden Tweaks

    This is a great free program that allows you to access some hidden but powerful tweaks on Windows. You can also use the “Cleaner” button to clean your system and save some disk space.

    image

    Thursday, July 21, 2011

    Adobe PDF Printer–Disable Opening Converted Files

    When a file is converted to PDF using Adobe PDF printer, the output file will be opened by default by the Adobe PDF printer. If you are converting one file this is fine, but when you’re doing batch conversion this would be very annoying. To disable this feature:

    • Start
    • Devices and Printers
    • Right-Click on Adope PDF
    • Printing Preferences
    • Un-Check “View Adobe PDF results”

    image

    Monday, July 18, 2011

    i-Tweak: Windows 7 Ultimate Tweaking Guide Part 2

    I’m a tweak freak!!! I love my car clean, my desk organized, and my computer fast. I have a Lenovo W510 Core i7 1.73GHz, 128SSD, 16GB RAM. Why all that? Simply I don’t have time to waste! I’d rather spend the time eating my corn flakes than waiting for this PC to finish booting!!!

    Turn Off Useless Scheduled Tasks

    Windows 7 has many tasks that are scheduled to either run at boot time or triggered. Some of those tasks may not be relevant to you or you may not even need them. To view all the scheduled tasks:
    • Click Start Button
    • Click Run
      • Type: %windir%\system32\taskschd.msc /s
      • Hit enter
    Some of the useless tasks for me which I have then turned off are:
    • Application Experience
    • Autochk
    • Customer Experience Improvement Program
    • Defrag (I have SSD and this is useless)
    • Diagnosis
    • DiskDiagnostic
    • Maintenance (Eats my CPU)
    • MemoryDiagnostic
    • MobilePC
    • Registry
    • SideShow
    • SystemRestore
    • Windows Error Reporting

    Friday, July 15, 2011

    Apple iOS 4.3.4 Official Direct Download

    Direct Download Links for Apple iOS 4.3.4 (Official from Apple). Choose your device:
    After you’ve downloaded your device’s respective firmware, you can install the software manually by launching iTunes, locating your device on the sidebar and pressing "Restore" while holding the Shift key on Windows and Alt on the Mac.

    NOTE: a new iOS 4.3.5 has been released: http://i-tweak.blogspot.com/2011/07/apple-ios-435-official-direct-download.html

    Wednesday, May 25, 2011

    Apple iPad 2: Switching Applications, Multi-Tasking, Killing Process

    If you own an iPad 2, well congratulations! It’s an amazing improvements over the old iPad.

    Many of us would like to switch between running applications, multi-tasking, and killing a running process/application that is no longer needed. To do that:

    1. Double-Click on the home button
    2. To Switch to another application, just click on the application at the bottom
    3. To close an application, hold down your finger on one of the running applications. When you see the minus (-) sign, symbol just touch it.

    Happy iPad-ing!

    Sunday, May 8, 2011

    A Very Small, Fast, Smart File Manager For Windows 7 x86/x64

    I've been looking for something similar to FreeCommander, Total Commander, Norton Commander, but smaller and faster. No external dependencies or installers, no optional at install-time ad-ware or blotted software. The answer to all that is MyCo! MyCo Web Page





     Give it a try, you'll love it!

    Thursday, April 14, 2011

    IBM/Lenovo Hotkey Brightness Issue/Setup

    Issue:
    • When pressing the Fn|(Home/End), the screen brightness increases or decreases by 2-4 points.
    • I want the screen brightness to go up/down one point at a time
    Solution:
    Save the below in a file (screenbrightness.reg) then double-click on it to install it:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\monitor\Parameters]
    "MinimumStepPercentage"=dword:00000001

    Thursday, March 3, 2011

    Windows 7 Ultimate Tweaking Guide Part 1

    I’m a tweak freak!!! I love my car clean, my desk organized, and my computer fast. I have a Lenovo W510 Core i7 1.73GHz, 128SSD, 16GB RAM. Why all that? Simply I don’t have time to waste! I’d rather spend the time eating my corn flakes than waiting for this PC to finish booting!!!

    SSD Tweaks

    • Disable indexing
      Description: Indexing creates and maintains a database of file attributes. This can lead to multiple small writes when creating/deleting/modifying files. Searching for files will still work.
      Instructions: Start Menu –> Run –> services.msc –> Double-Click “Windows Search” -> Startup type set it to: Disabled –> OK
    • Disable defragmentation
      Description: Defragmenting a hard disk's used space is only useful on mechanical disks with multi-millisecond latencies. Free-space defragmentation may be useful to SSDs, but this feature is not available in the default Windows Defragmenter.
      Instructions: Start Menu -> Run –> services.msc –> Double-Click “Disk Defragmenter” -> Startup type set it to: Disabled –> OK
    • Enable Disk Write Caching
      Description: Some are saying there is no cache on the SSD, so there are no benefits to write caching. My experience and benchmarking shows there is benefits. You can easily test that using Windows Experience Index.
      Instructions: Start Menu –> Run –> devmgmt.msc -> Disk drives –> Double-Click your disk -> Policies Tab -> Check Enable write caching –> OK
    • Disable Superfetch
      Description: SSDs don’t benefit from Superfetch, actually having that enabled may affect the performance.
      Instructions: Start Menu -> Run –> services.msc –> Double-Click “Superfetch” -> Startup type set it to: Disabled –> OK.
    • Firefox - Use memory cache instead of disk cache
      Description: If you use Firefox, there's a way to write cached files to RAM instead of the hard disk. This is not only faster, but will significantly reduce writes to the SSD while using the browser. I have discussed FireFox tweaks in a previous post, look for it Smile
      Instructions: Open Firefox -> Type about:config into the address bar -> Enter -> double-click browser.cache.disk.enable to set the value to False -> Right-Click anywhere -> New -> Integer -> Preference Name "disk.cache.memory.capacity" -> value memory size in KB. Enter 32768 for 32MB, 65536 for 64MB, 131072 for 128MB, etc. -> restart Firefox
    • Disable the Page File
      Description: Eliminate writing memory to the SSD, free over 2GB of disk space and increase OS and application performance and response time. If you run out of memory, windows will be forced to use paging.
      Instructions: Start Menu -> Right-Click Computer -> Properties -> Advanced System Settings -> Settings (Performance) -> Advanced Tab -> Change -> Uncheck Automatically manage -> No paging file -> Set -> OK -> Restart your computer.
    • Disable System Restore
      Description: Don't write backup copies of files when installing new programs or making system changes. Can free up between a few hundred MB to a couple GB. Warning - Although unlikely, if a driver installation corrupts your system, there won't be an automatic way to recover.
      Instructions: Start Menu -> Right-Click Computer -> Properties -> Advanced System Settings -> System Protection Tab -> Configure -> Turn off system protection -> Delete –> OK
    • Disable Hibernate
      Description: You may free up to, in my case 16GB cause I have 16GB RAM!!! You will free up as much as your RAM. You will lose the hibernation feature which allows the equivalent of quick boots and shutdowns.
      Instructions: Start Menu -> Type cmd -> Right-Click the cmd Icon -> Run as Administrator -> Type powercfg -h off -> Type exit

    Windows 7 Ultimate Tweaking Guide Part 2

    Thursday, February 24, 2011

    Microsoft Windows 7 (x86/x64) Service Pack 1 (SP1) Direct/Offline Download

    This is a Standalone / Direct / Offline download link for the newly released Microsoft Windows 7 Service Pack 1.
    32-bit (x86): windows6.1-KB976932-X86.exe (537.8MB)
    64-bit (x64): windows6.1-KB976932-X64.exe (903.2MB)

    Wednesday, February 2, 2011

    FireFox Ultimate Tweak

    Here, I'm posting my FireFox tweaks. Just copy the below and add it to your prefs.js which should be located in:
    C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles\

    user_pref("browser.cache.disk.capacity", 1048576);
    user_pref("browser.cache.disk.enable", false);
    user_pref("browser.cache.memory.capacity", 131072);
    user_pref("browser.chrome.favicons", false);
    user_pref("browser.chrome.site_icons", false);
    user_pref("browser.chrome.toolbar_tips", false);
    user_pref("browser.download.manager.closeWhenDone", true);
    user_pref("browser.link.open_newwindow.restriction", 0);
    user_pref("browser.startup.homepage", "about:config");
    user_pref("browser.startup.page", 0);
    user_pref("browser.tabs.tabMinWidth", 30);
    user_pref("browser.tabs.warnOnClose", false);
    user_pref("browser.tabs.warnOnOpen", false);
    user_pref("browser.warnOnRestart", false);
    user_pref("dom.disable_window_move_resize", true);
    user_pref("dom.disable_window_open_feature.menubar", true);
    user_pref("dom.disable_window_open_feature.titlebar", true);
    user_pref("dom.disable_window_open_feature.toolbar", true);
    user_pref("layout.spellcheckDefault", 2);
    user_pref("network.http.max-connections", 40);
    user_pref("network.http.max-connections-per-server", 16);
    user_pref("network.http.max-persistent-connections-per-proxy", 16);
    user_pref("network.http.max-persistent-connections-per-server", 16);
    user_pref("network.http.pipelining", true);
    user_pref("network.http.pipelining.maxrequests", 8);
    user_pref("network.http.pipelining.ssl", true);
    user_pref("network.http.proxy.pipelining", true);
    user_pref("network.prefetch-next", false);
    user_pref("noscript.ABE.enabled", false);
    user_pref("privacy.clearOnShutdown.formdata", false);
    user_pref("privacy.clearOnShutdown.offlineApps", true);
    user_pref("privacy.sanitize.migrateFx3Prefs", true);
    user_pref("privacy.sanitize.sanitizeOnShutdown", true);
    user_pref("privacy.sanitize.timeSpan", 0);
    user_pref("security.dialog_enable_delay", 0);
    user_pref("security.warn_entering_weak", false);
    user_pref("security.warn_viewing_mixed", false);
    user_pref("view_source.editor.external", true);
    user_pref("view_source.editor.path", "%ProgramW6432%\\Notepad2\\Notepad2.exe");

    Saturday, January 29, 2011

    Google Chrome Startup Arguments Tweak

    Chrome can be started out of the box and will run great. However, there are a could of things I don't want to be running when I'm using Chrome to speed it up even further. My Chrome shortcut is modified to be:
    %USERPROFILE%\AppData\Local\Google\Chrome\Application\chrome.exe -disable-dev-tools -disable-hang-monitor -disable-logging -disable-metrics -disable-metrics-reporting -disable-prompt-on-repost

    Google Chrome Hidden Configurations


    Here is list of Google Chrome Hidden Pages or Configuration Parameters. You have to input about:parameter in address bar to open this hidden treasure. (Replaceparameter with respective word) as listed.
    about:network
    about:ipc
    about:histograms
    about:histograms/Loop
    about:objects

    about:crash
    about:hang
    about:shorthang
    about:dns
    about:memory
    about:cache
    about:version
    about:internets (Easter egg)

    Google Chrome Offline / Standalone Installer

    Grab it from here:
    • http://dl.google.com/chrome/install/154.36/chrome_installer.exe

    Sunday, January 23, 2011

    Firefox x64 (64-bit)

    Mozilla started to build official x64 Firefox builds and it's available here:
    • ftp://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/

    Tuesday, January 18, 2011

    Disable ThinkVantage Passowrd Manager

    • Click Start -> Run
    • Type:
      • C:\Program Files\Lenovo\Client Security Solution\css_pwmgr_toggle.exe
    • Hit enter
    • Agree to disable

    Sunday, January 9, 2011

    Create Installer With WinRar

     I am going to create an installer for SharePod. Possibly the best iPod software there is. It consists of two files:
    • SharePod.exe
    • Readme.txt
    1. Select all the two files above to include in your installer.
    2. Right Click -> WinRar -> Add to archive ...
    3. Check "Create SFX archive" and "Create solid archive".
    4. In the "Archive name" field, change the suggested name given by WinRAR to SharePodInstaller.exe, then choose "Best" from the "compression method" combo box.
    5. Go to "Advanced" tab. Press "SFX options". The "Advanced SFX options" dialog box appears with the "General" tab activated.
    6. In the "Path to extract" field, type "SharePod" without quotes.
      1. - This means that the package (SFX) will be extract, during installation, to: %ProgramFiles%\SharePod.
      2. Make sure the "Create in "Program Files" radio button is selected.
      3. Make sure the "Save and restore paths" check box is not checked.
    7. Still in the "Advanced SFX options" dialog box, press the "Advanced" tab.
    8. Press the "Add shortcut..." button. The "Add shortcut" dialog box appears.
    9. Select "Start Menu/Programs". In the "Source file name" field, type "SharePod.exe" without quotes. This is the name of the file you create a shortcut to which is you selected to be in your installer.
    10. In the "Destination folder" field, type "SharePod" without quotes.
      1. This is the name of the shortcut folder that will be created under: %UserProfile%\Start Menu\Programs.
    11. In the "Shortcut description" field, type: "Transfer music and video files from an iPod/iPod Touch/iPhone to a PC." without quotes.
    12. In the "Shortcut name" field, type "SharePod" without quotes.
      1. This is the link that will appear as: %UserProfile%\Start Menu\Programs\SharePod\SharePod.lnk 
    13. Press "Ok" to return back to the "Advanced" tab. Repeat the same steps again to create more shortcuts if needed.
    14. Still in the "Advanced SFX options" dialog box, press the "Modes" tab.
    15. Under "Silent mode", select "Hide all". This tells the SFX not to show setup screens. In this case, I left it un-checked.
    16. Under "Overwrite mode", select "Overwrite all files". This tells the SFX to overwrite any files pre-existing in the destination folder: %ProgramFiles%\SharePod, if there's any.
    17. Press "Ok" on the "Advanced SFX options" dialog box to close.
    18. Press "Ok" on the "Archive name and parameters" dialog box and wait for the compression process to finish. SharePodInstaller.exe is now created.

    Tuesday, December 28, 2010

    Show Hidden Processor Power Configurations In Windows 7

    You need to know what you're doing before changing these values. Execute the below commands in cmd.exe

     powercfg -attributes SUB_PROCESSOR 06cadf0e-64ed-448a-8927-ce7bf90eb35d -ATTRIB_HIDE
     powercfg -attributes SUB_PROCESSOR 12a0ab44-fe28-4fa9-b3bd-4b64f44960a6 -ATTRIB_HIDE
     powercfg -attributes SUB_PROCESSOR 40fbefc7-2e9d-4d25-a185-0cfd8574bac6 -ATTRIB_HIDE
     powercfg -attributes SUB_PROCESSOR 4b92d758-5a24-4851-a470-815d78aee119 -ATTRIB_HIDE
     powercfg -attributes SUB_PROCESSOR 7b224883-b3cc-4d79-819f-8374152cbe7c -ATTRIB_HIDE
     powercfg -attributes SUB_PROCESSOR 943c8cb6-6f93-4227-ad87-e9a3feec08d1 -ATTRIB_HIDE


    Then, go to Power Options, Change Plan Settings, Change Advanced Power Settings. You should see those values under Processor Power Management.

    Friday, December 24, 2010

    Blackberry Address Book Wireless Sync Option Disappeared or Disabled

    To fix this problem: You need to reset “Desktop Sync Service book” using the following steps:

    Go to Settings > Options > Advanced Options > Service Book
    Select the Desktop [Sync] Service book from the menu, and select “Delete”
    From the menu, select “Undelete” to restore the “Desktop [Sync]” service book
    Settings > Options > Advanced Options > Enterprise Activation (Sometimes this step is not needed, check your contacts options)
    From the menu, select “Activate” to re-try the wireless synchronization process
    After Enterprise Activation process finishes check your settings for synchronization of your address book.

    Address Book > Menu > Options
    You will see that “Wireless Synchronization” has a “yes” value again (as it had disappeared before)

    Warning:
    Make sure you backup your pictures, videos, etc. This is going to delete all that.

    Thursday, November 25, 2010

    Ubuntu - Adjust trackpoint sensitivity to light trouch

    Log on as su, then execute (on X201s):
    echo -n 206 > /sys/devices/platform/i8042/serio1/sensitivity
    echo -n 208 > /sys/devices/platform/i8042/serio1/speed

    Ubuntu - Set CPU Frequency

    1. Find supported frequencies
      1. cat /sys/devices/system/cpu/cpu/cpufreq/scaling_available_frequencies
        1. Examples:
          1.  cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
          2. cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_available_frequencies 
    2. Display your current set frequencies
      1. grep MHz /proc/cpuinfo
    3. Set the freqency
      1. cpufreq-selector -c -f
        1. For example:
          1. cpufreq-selector -c 0 -f 2401000
          2. cpufreq-selector -c 1 -f 2401000
    4. Your max speed is at /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq.
      # cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
      700000
      Your min speed is at /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq.
      # cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
      500000
      If you are using the userspace governor, you can write to /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed to change the current speed.
      # echo 700000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
      # cat /proc/cpuinfo
      cpu MHz  : 697.252
      # echo 900000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
      # cat /proc/cpuinfo
      cpu MHz  : 976.152

    Ubuntu - Enable TrackPoint On Thinkpads

    To query the available options
        xinput list-props "TPPS/2 IBM TrackPoint"

    To enable vertical scrolling
        xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1
        xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2
        xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 8 200

    To enable horizontal scrolling in addition to vertical scrolling
        xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 8 6 7 4 5

    To enable middle button emulation (using left- and right-click simultaneously)
        xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Middle Button Emulation" 8 1
        xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Middle Button Timeout" 8 50

    Ubuntu - Disabling SWAP

    From terminal, run:
    • sudo swapoff -a



    Friday, November 5, 2010

    Windows Live Essentials 2011 (Wave 4) Final Direct Download Links

    Languages Lang iD Links
    Arabic ar http://g.live.com/1rewlive4-all/ar/wlsetup-all.exe
    Bulgarian bg http://g.live.com/1rewlive4-all/bg/wlsetup-all.exe
    Catalan ca http://g.live.com/1rewlive4-all/ca/wlsetup-all.exe
    Czech cs http://g.live.com/1rewlive4-all/cs/wlsetup-all.exe
    Danish da http://g.live.com/1rewlive4-all/da/wlsetup-all.exe
    German de http://g.live.com/1rewlive4-all/de/wlsetup-all.exe
    Greek el http://g.live.com/1rewlive4-all/el/wlsetup-all.exe
    English en http://g.live.com/1rewlive4-all/en/wlsetup-all.exe
    Spanish es http://g.live.com/1rewlive4-all/es/wlsetup-all.exe
    Estonian et http://g.live.com/1rewlive4-all/et/wlsetup-all.exe
    Basque eu http://g.live.com/1rewlive4-all/eu/wlsetup-all.exe
    Finnish fi http://g.live.com/1rewlive4-all/fi/wlsetup-all.exe
    French fr http://g.live.com/1rewlive4-all/fr/wlsetup-all.exe
    Gujarati gu http://g.live.com/1rewlive4-all/gu/wlsetup-all.exe
    Hebrew he http://g.live.com/1rewlive4-all/he/wlsetup-all.exe
    Hindi hi http://g.live.com/1rewlive4-all/hi/wlsetup-all.exe
    Croatian hr http://g.live.com/1rewlive4-all/hr/wlsetup-all.exe
    Hungarian hu http://g.live.com/1rewlive4-all/hu/wlsetup-all.exe
    Indonesian id http://g.live.com/1rewlive4-all/id/wlsetup-all.exe
    Italian it http://g.live.com/1rewlive4-all/it/wlsetup-all.exe
    Japanese ja http://g.live.com/1rewlive4-all/ja/wlsetup-all.exe
    Kannada kn http://g.live.com/1rewlive4-all/kn/wlsetup-all.exe
    Korean ko http://g.live.com/1rewlive4-all/ko/wlsetup-all.exe
    Lithuanian lt http://g.live.com/1rewlive4-all/lt/wlsetup-all.exe
    Latvian lv http://g.live.com/1rewlive4-all/lv/wlsetup-all.exe
    Malayalam ml-in http://g.live.com/1rewlive4-all/ml-in/wlsetup-all.exe
    Marathi mr http://g.live.com/1rewlive4-all/mr/wlsetup-all.exe
    Malay ms http://g.live.com/1rewlive4-all/ms/wlsetup-all.exe
    Dutch nl http://g.live.com/1rewlive4-all/nl/wlsetup-all.exe
    Norwegian (Bokmal) no http://g.live.com/1rewlive4-all/no/wlsetup-all.exe
    Polish pl http://g.live.com/1rewlive4-all/pl/wlsetup-all.exe
    Portuguese (Brazil) pt-br http://g.live.com/1rewlive4-all/pt-br/wlsetup-all.exe
    Portuguese (Portugal) pt-pt http://g.live.com/1rewlive4-all/pt-pt/wlsetup-all.exe
    Romanian ro http://g.live.com/1rewlive4-all/ro/wlsetup-all.exe
    Russian ru http://g.live.com/1rewlive4-all/ru/wlsetup-all.exe
    Slovak sk http://g.live.com/1rewlive4-all/sk/wlsetup-all.exe
    Slovenian sl http://g.live.com/1rewlive4-all/sl/wlsetup-all.exe
    Serbian-Cyrillic sr-cyrl-cs http://g.live.com/1rewlive4-all/sr-cyrl-cs/wlsetup-all.exe
    Serbian-Latin sr-latn-cs http://g.live.com/1rewlive4-all/sr-latn-cs/wlsetup-all.exe
    Swedish sv http://g.live.com/1rewlive4-all/sv/wlsetup-all.exe
    Tamil ta http://g.live.com/1rewlive4-all/ta/wlsetup-all.exe
    Telugu te http://g.live.com/1rewlive4-all/te/wlsetup-all.exe
    Thai th http://g.live.com/1rewlive4-all/th/wlsetup-all.exe
    Turkish tr http://g.live.com/1rewlive4-all/tr/wlsetup-all.exe
    Ukrainian uk http://g.live.com/1rewlive4-all/uk/wlsetup-all.exe
    Vietnamese vi http://g.live.com/1rewlive4-all/vi/wlsetup-all.exe
    Chinese (Simplified) zh-cn http://g.live.com/1rewlive4-all/zh-cn/wlsetup-all.exe
    Chinese (Traditional) zh-tw http://g.live.com/1rewlive4-all/zh-tw/wlsetup-all.exe

    Tuesday, October 26, 2010

    FireFox - Color/Highlight The Active Tab

    If you want the active tab to stand out in your current tab exactly like below:


    Then edit your userChrome.css file located in your profile folder and add the following lines:

    tab[selected="true"] {
      background-color: rgb(205,69,50) !important;
      color: black !important;
    }

    tab {
      -moz-appearance: none !important;
    }

    Wednesday, October 20, 2010

    Change the Windows 7 Taskbar Button Length or Width Size

    Windows 7 Taskbar can be set to display on program icons only with all additional tabs or icons combine into stack, or as a buttons with application icon and label with each window has its own button on the Taskbar. By default, the length or width of the button or icon on Taskbar is fixed, and Windows 7 only allows user to change the size of Taskbar pinned icons and buttons together with font to standard or smaller.

    With the following registry trick, user can also change or adjust the width, or length of the buttons appear on the Windows 7 Taskbar. The hack has been used to simulate “not combine or stack but hide labels” option to limit the width of buttons with label so that label (text after the icon on button which normally takes the form of window’s title) is hidden and the button is left with just the icon.

    How to Adjust Button Length or Width Size in Windows 7 Taskbar

       1. Run Registry Editor (RegEdit).
       2. Navigate to the following registry key:

          HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
       3. Right click on a blank space on the right pane, select New, then String Value. Name the new string value as MinWidth.

          Note: If “MinWidth” already exists, skip this step.
       4. Double click on “MinWidth”, and change the value data according to the preferred size. 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

          MinWidth
       5. Restart the computer, or log off and log on again.

    Note: Above change button width trick only work when Taskbar is set to display “button”, which mean it doesn’t work is Taskbar buttons’ behavior is set to “Always combine, hide labels”, where Windows 7 will always use it default size for icon-only button.

    Friday, September 17, 2010

    Disable Folder Type Auto Discovery In Windows Visa and 7 (x86/x64)

    Open Notepad and paste the following and save it as FolderTweak.reg

    Windows Registry Editor Version 5.00

    [-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]

    [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]

    [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders]

    [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]

    "FolderType"="NotSpecified"

    Double-Click on the above file to import it.

    Thursday, May 6, 2010

    Cisco – Dynamips and Dynagen Run on Linux

    Running Dynamips/Dynagen on Linux after installation:

    Friday, April 23, 2010

    Ubuntu - Update Package Index

    • Open Terminal
    • Type:
      • sudo apt-get update

    Ubuntu - Removing Package

    • Open Terminal
    • Type:
      • sudo apt-get remove

    Ubuntu - Install IP Calculator

    • Open Terminal
    • Type:
      • sudo apt-get install gip

    Ubuntu - Install G++

    • Open Terminal
    • Type:
      • sudo aptitude update && sudo aptitude install g++

    Monday, April 19, 2010

    VMWare Workstation - Turning off the PC speaker for all virtual machines

    To disable the speaker emulation for virtual machines, add the following line to Workstation's global configuration file:
    mks.noBeep = "TRUE"
     
    The global configuration file should exist in ~/.vmware/config on a Linux host, and
    C:\Documents and Settings\All Users\Application Data\VMware\VMwareWorkstation\config.ini on a Windows host. If the file does not exist, create a new text file and add the mks.noBeep line to it.

    Wednesday, April 14, 2010

    Ubuntu - Extracting bz files

    • Open Terminal
    • sudo tar zxfv filename.tar.gz -C /opt/

    Ubuntu - Installing bz2 files like FileZilla

    1. The latest version of FileZilla is 3.3.2.1. You can get it from here.
    2. Run these command in terminal:

      sudo tar jxvf FileZilla_3.3.2.1_i586-linux-gnu.tar.bz2 -C /opt/
      sudo chown -R root:root /opt/FileZilla3/
      sudo chmod -R 755 /opt/FileZilla3/
    3. Create a menu item:
      sudo gedit /usr/share/applications/filezilla.desktop Add the following:

      [Desktop Entry]
      Encoding=UTF-8
      Name=FileZilla
      Comment=FTP Client
      Exec=/opt/FileZilla3/bin/filezilla
      Icon=/opt/FileZilla3/share/pixmaps/filezilla.png
      Terminal=false
      Type=Application
      Categories=Application;Network;
      StartupNotify=true
    To launch FileZilla, click Applications → Internet → FileZilla.

    Ubuntu - Enable/Disable Root Account

    •  To Enable:
      • Open Terminal
      • Type "sudo passwd root"
    • To Disable
      • Open Terminal
      • Type "sudo passwd -l root"

    Ubuntu - Show Desktop Icons

    • Open the Configuration Editor, by running the program gconf-editor from terminal.
    • Choose apps->nautilus->desktop.
    • Tick the box beside computer_icon_visible, home_icon_visible, and trash_icon_visible. The changes take effect immediately.

    Friday, April 2, 2010

    Fix: An error occurred while Windows was synchronizing with time.windows.com

    1. Most of the time you get the error is due to the time server being down, so try again later.
    2. Try another Server. ( time.nist.gov )
    3. Your firewall might be blocking W32Time, disable firewall, update time and enable again.
    4. The following steps will stop and start the time update application:

      Start > Run cmd.exe
      net stop w32time
      w32tm.exe /unregister
      w32tm.exe /register
      net start w32time

    Saturday, March 13, 2010

    Start TaskManager Minimized With Windows

    • Click Start -> Run
    • Type: regedit
    • Click ok
    • Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    • Add a string name TaskManager, Value: "C:\WINDOWS\system32\cmd.exe" /c "start" /min taskmgr.exe
    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
    "TaskMgr"=""C:\WINDOWS\system32\cmd.exe" /c "start" /min taskmgr.exe"

    Lenovo Thinkpad Discounts

    DC 37 Members:

    Lenovo's DC 37 Members Discount.

    Monday, August 31, 2009

    Stay Hidden/Private Browsing

    Enter a URL to visit via proxy:

    Thursday, June 11, 2009

    Disable Finder Auto-Opening of Mounted External Drives

    I recently made a DMG of OSX 10.5.6 off of the original Apple Install DVD via Disk Utility. I then restored it to a partition on my PCI ExpressCard to act as an installer and boot from it when needed.

    The problem I am having is that when I rebook, Finder opens as if I had inserted the actual optical disc. To solve this problem, you need to open Terminal and execute:

    sudo bless -folder /Volumes/X

    Where X is the drive name.

    Tuesday, June 9, 2009

    LifeTime of a Solid State Hard Drive (SSD)

    Solid State Hard Drives (SSD) are incredibly fast. Nowadays, you don't replace your laptop, you replace your hard drive. However, there are a couple of things you need to know about SSDs. For example, their limited lifetime. Let's take for example Intel X25-M 80GB SSD.

    Intel aimed to make it last AT LEAST 5 years under NORMAL USAGE CONDITIONS, the 5 year estimate is based on a ludicrously high amount of writes per day.

    Only Intel guarantees that their SSDs will lasts 5 years at least. If you manage to somehow use it up before that they will replace it under warranty. However, it is totally unrealistic even on a heavy server load.

    80GB x 100,000 life-time writes * (1 data unit /1.1 write amplification overhead) = 7.27 million GB lifetime writes of data. Write speed 70 MB/s = 0.07 GB/s

    7.27 million GB lifetime writes of data / 0.07 GB/s = 103.8 million seconds lifetime writes of data
    103.8 x 1,000,000/1 million x minute/60 seconds x hour / 60 minutes x day / 24 hours x year / 365 days = 3.29 year lifetime writes of data. (double it for the 160GB version)

    So if you max out the sequential writes at a nice flat 70MB/s which is the drive's max, and it has a write amplification of 1.1, and you do that 24/7/365 non stop, it will last 3.29 years.

    of course, to put this in perspective:
    0.07 GB/s x 60 seconds / minute x 60 minutes / hour x 24 hours / day = 6048 GB a day written to an 80GB drive. every day, 24/7/365 non stop writing.

    Thursday, June 4, 2009

    Windows Live Messenger Configurations

    I always wanted to start Windows Live Messenger in the background but I don't want it to automatically start when I log on to windows. In the Tools->Options, under Sign In, if you uncheck "Automatically run windows live messenger when I log on to windows" you can not un-check "Open Windows Live Messenger main window when Windows Live Messenger starts". To hack this, you need to modify your registry settings or paste the below to notepad and save it as MSN.REG then double-click on it.

    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger]
    "AppSettings"=hex:42,00,01,00
    "AlwaysOnTop"=hex:00,00,00,00


    Another settings I use is to disable the tabs, and the annoying MSN Today window, logging, and enable showing messenger in the task bar. NOTE: open your registry and change XXXXX according to your specific number.


    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\PerPassportSettings\XXXXX] "DisableTabs"=dword:00000001 "DisableMSNToday"=hex:01,00,00,00 "MessageLoggingEnabled"=dword:00000000 "ShowTaskbar"=hex:01,00,00,00

    Tuesday, May 19, 2009

    Remove AcroRd32Info.exe

    When PDF files are selected in Windows Explorer, a hook to pdfshell.dll calls on AcroRd32Info.exe to load the selected PDF file, extract the required information, and then pass it back to the shell for display. The shell integration is also what allows for the PDF tab in the file properties. If you like to stop this behavior:
    • Click on Start->Run
    • Type:
      • regsvr32 "C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\pdfshell.dll" /u
    • Click Ok