Operating Systems

Computer wakes up from Sleep mode immediately – Microsoft Community

Source: Computer wakes up from Sleep mode immediately – Microsoft Community …

How to Fix a Corrupted Windows 10 Installation

System corruption is the worst that could happen to your Windows installation. We show you how to get Windows 10 back on track when suffering from BSODs, driver errors, or other unexplained issues. …

Windows 10 file explorer not responding – Refresh Windows Update

I see several people are having a similar issue and none of the posted solutions I’ve tried have worked for me. I’ve deleted antiviruses, run the SFC, installed updates, rebooted several times. Source: Windows 10 file explorer not responding – Microsoft Community …

Disable WGA Notification on Windows XP

Windows Genuine Advantage (WGA for short) is a Windows Update component rolled out to XP users long after XP was released. It is intended to validate your …

Solved: The driver detected a controller error on \Device\Ide\IdePort2

My son and I went through rather painful ordeal with this Event 11 that Windows quietly generates. It took us few weeks to fully work out why Windows suddenly started hanging, misbehaving or even c Source: Solved: The driver detected a controller error on \Device\Ide\IdePort2 …

How to Set Up VPN in Windows 7 | PCWorld

Set up a virtual private network in a few simple steps. Source: How to Set Up VPN in Windows 7 | PCWorld …

How to install Code::Blocks with a Fortran compiler

To install a Fortran compiler (gFortran) to be used within the Code::Blocks IDE editor: Go to http://www.codeblocks.org/downloads Click on “Download the binary release” Click on “Windows 2000/XP/Vista/7//8” Click on “codeblocks-13.12mingw-setup.exe” to download from SourceForge.net Once downloaded (~100MB), install Code::Blocks IDE Full installation Destination “Program Files\CodeBlocks” “Do you want to run CodeBlocks now?” NO Start Code::Blocks from …

How to remove a “not a member of the local group” user in Windows XP Home

You receive the following error when you try to delete a local user account in Windows XP Home: Remove Domain Name\Computer Name. Error 1377: The specified account name is not a member of the local group. Error removing Domain Name\Computer Name. This may be due to a corrupted user profile and usually occurs when a …

How to check a Hard Disk’s health status

You can check the health of your hard disk by using a command in Windows (S.M.A.R.T.). Start a cmd window wmic diskdrive get status This should output the following result: status ok ok   …

How to create a simple Backup script using windows HTA

Prerequisites: a notepad (I recommend: notepad++) some HTML knowledge Start a simple HTML page and add the following as the main structure:<head> <title>Backup Reminder</title> <HTA:APPLICATION APPLICATIONNAME=”Backup Reminder” ID=”myware” VERSION=”1.0″ CAPTION=”yes” BORDER=”normal” SYSTEMMENU=”yes” MAXIMIZEBUTTON=”no” MINIMIZEBUTTON=”no” ICON=”gumware.ico” SCROLL=”no” SCROLLFLAT=”yes” SINGLEINSTANCE=”yes” CONTEXTMENU=”yes”/><style> img{border: 0px} input{color: blue; background-color: white; font-variant:small-caps; font-family: Arial,Helvetica,sans-serif; border: 1px solid blue} H1,H2,H3,H4,H5,H6,P,BODY,UL{font-family: Arial, Helvetica, …

How to create a multiboot USB with XBoot 1.0 b14

Repartition and format the USB: Primary volume, 4k cluster size (default), FAT32 format. XBoot requires dot.NET Framework 4.0 installed on the system it will be run off Download a copy of XBoot 1.0 beta 14 and run it, not install required! Download your favourite ISO distros and drag-n-drop them on the XBoot “Drag-n-drop Box” (each …

How to create a bootable usb to install Windows X

Firstly, insert your USB  (WARNING: the following steps will erase ALL DATA on selected USB!!). Open a cmd prompt and type “diskpart” to start the partitioning program: list disk # <– to list the disks on the system # Disk ### Status Size Free Dyn Gpt # ——– ————- ——- ——- — — # Disk …

How to fix VB application not running on Windows Vista, 7 or 8

Older VB application built on VB 5 or 6 may not work properly under the newer versions of Windows Vista, 7 or 8. The app may even require specific dll or other file to be registered on the system. You may need to register MSCOMCT2.OCX and/or COMCTL32.OCX For a 32bit system run as follows: Regsvr32 MSCOMCT2.OCX …

How to manually restore Sage Line 50 v9.x data files

This is what you need to do if your Sage Accounts application has been corrupt and you can’t open it: Save your data files directory (Sage\Accounts) Uninstall/completely remove the Sage installation Re-install Sage Line 50 v9.x Start Sage and complete the Company wizard with typical information Close it Copy the ACCDATA folder with contents to …

How to install VB 6.0 with SP6 on Windows 7

1. Install Visual Basic 6.0 (as Administrator) Select custom install as follows: Microsoft VB 6.0 Active X Data Access Graphics 2. Skip MSDN and all other install options (Source Safe, VC++, etc). 3. Uncheck registration and complete the setup. 4. Run VB (should run fine). Note: VB should run fine, but in some cases may …

How to create a System Repair Disc for Windows 7

Creating a System Repair Disc can solve you a few boot problems encountered with Windows 7. Note the OS type (x32 or x64 bit) Insert an empty DVD into your drive Start > Programs > Maintenance > Create a System Repair Disc Select the drive and click on Create disc Your repair disc is now …

How to install Windows 7 on HP-3400 Pro PC with FreeDOS

Note: Some business-line PCs may come with pre-installed non Windows OS like FreeDOS. These systems most probably use Linux as there main boot system and this is why a typical Windows installation may not boot properly in some cases. Case: Install Windows 7 (64bit) Boot with a Windows 7 (64bit) setup DVD and install windows …

How to capture input from a command prompt / batch

Write the following in a batch file and say the input was “andreas”: @echo off echo == Capture Input === set server=192.168.1.12 SET /P Choice=Type your Username and press Enter: echo Logging on to %server% with %choice%… Output: Logging on to 192.168.1.12 with andreas… …

How to automate a commit/update with Tortoise SVN using a batch file

Your SVN project should already be checked out. Enter the following in a batch file (.bat): @echo off echo. echo. :: The two lines below should be changed to suit your system. set SOURCE=C:\projects\my_svn_project\ set SVN=C:\Program Files\TortoiseSVN\bin echo. echo. Committing %SOURCE% to SVN… “%SVN%\TortoiseProc.exe” /command:commit /path:”%SOURCE%” /closeonend:0 echo. done. echo. echo. …

How to login with Windows Telnet automatically using vbs

Enter the following script and save it as a .vbs file: Set obj = CreateObject(“WScript.Shell”) obj.run”cmd” WScript.Sleep 500 obj.SendKeys”telnet your.ip.add.ress” obj.SendKeys(“{Enter}”) WScript.Sleep 500 obj.SendKeys”username”  ‘telnet username obj.SendKeys(“{Enter}”) WScript.Sleep 500 obj.SendKeys”password”  ‘telnet password obj.SendKeys(“{Enter}”) WScript.Sleep 500 …

Total Commander vs Windows Explorer

How would the typical Windows Explorer compare to alternative file manager Total Commander:  Total Commander  Windows Explorer  Two pane window view Instant view of source and destination and no scrolling via a tree-view or loose any open path Full Keyboard and/or mouse operation Other of the basic function keys shown at the bottom, there is …

How to set PL/SQL Developer or TOAD to use a different oracle instance

Whether you have an oracle home setup or not: * copy/setup PL/SQL Developer or TOAD to your system * copy/setup Oracle Instantclient to your system * add a System PATH Variable for Instantclient i.e. c:\users\oracle\instantclient -if this is a 2nd instance add it after 1st instance: c:\Oracle\Middleware\as_1\bin;c:\users\oracle\instantclient * Run PL/SQL Developer or TOAD and configure …

How to tail log, trc, etc. files on Windows

Find a “tail” cmd-line program like “tail-f” or “WinTail” (gui) and load to your c:\ path. I’ve been using tail for windows by TriSun Software Inc. and does the job fine and its FREE! Typical usage: c:\tail.exe -f c:\myfile.log #log the whole file c:\tail -f -10 myfile.log #log the last 10 lines of the file …

How to expand, shrink or do other disk operations in VMware from cmd

In most cases to utilise your vm-disk it needs to be dynamic. So if you have preallocated space for your disk then convert it to a dynamic one. # make the vm-disk from pre-alloc. to dynamic (-t 0 = dynam. single file) vmware-vdiskmanager -r sourceDisk.vmdk -t 0 targetDisk.vmdk # expand the size of a vm-disk …

How to quickly cancel Autologin on Windows XP

Open the Run dialog and enter the following: control userpasswords2 The User Accounts dialogue opens up and you should select the option: Users must enter a user name and password to use this computer …

How to tail live log files on Linux

To tail a file use: tail -f -v Name_of_file_*.log …

Check or change default port numbers of Oracle Database

Check or change the default port numbers by editing the file (in VI): vi $ORACLE_HOME/install/portlist.ini …

how to setup windows PuTTY to load x-windows via xming

Once you have XMing installed on windows do as follows: Set xming shorcut target as: ”C:\Program Files (x86)\Xming\Xming.exe” :0 -clipboard -multiwindow :0 sets the x,y stating point of the displayed window Start xming (you should see a xming icon next to clock on desktop. Start PuTTY and configure as: Select the session On the left …

how to configure tnsname.ora, hosts and internet browser correctly

The following configuration should fix problems between tnsname, the hosts file and browser: tnsnames.ora (file) DBNAME_DEV = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.99.98)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = ORADB1) ) ) DBNAME_PRD= (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.99.99)(PORT = 1521)) ) (CONNECT_DATA = …

how to add a printer port mapped to a shared printer (win7)

How to add a printer port mapped to a shared printer (most useful windows when it gets stubburn not installing the drivers): 1. Add Printer 2. Create New Port: Local Port 3. Enter Port Name: \\server\printShareName 4. Next: use Windows Update to find a driver or browse to find it 5. Finish You should now …

Show Desktop shorcut on Taskbar in Windows 7

To re-create the lost Show Desktop shortcut on previous versions of Windows and now set to the far right of the screen, follow these instructions: Create a text file and enter the following: Command=2 IconFile=explorer.exe,3 Command=ToggleDesktop Save this file on disk as “Show.scf” i.e. “C:\” Take an existing shortcut from desktop i.e. Firefox …

how to check if a solaris has ftp enabled

To check if  a Solaris machine has ftp enabled: inetadm | grep ftp #check the status inetadm -e ftp #enable inetadm -d ftp #disable …may also try: /usr/sbin/svcadm enable ftp /usr/sbin/svcadm disable ftp …

how to install Midnight-Commander in Linux

To install Midnight-Commander (MC) in Linux: wget http://www.midnight-commander.org/downloads/mc-4.7.5.2.tar.gz tar -zxvf mc-4.7.5.2.tar.gz cd mc-4.7.5.2 ./configure make make install #to run Midnight commander use: mc Notes: – if link don’t work look for an updated link – may need to install pcre* (perl) and glib* (gnome) libraries Credits: http://www.webhostingtalk.com/showthread.php?t=345710 …

how to start the Oracle Application Server and Enterprise Manager (opmn)

To start the Oracle Enterprise Manager do: 1. Log in <oracle_user>/<password> 2. Start-up the instance cd $ORACLE_HOME/opmn/bin opmnctl startall #start all services opmnctl status #view the services active/down opmnctl status -l #view statuses and ports used 3. Start em console ./emctl start dbconsole #start the em console 4. Log on to em console (web interface) http://<domain_name>:7777/em/console oc4jadmin/<password> …

Oracle AS 10g R3 (10.1.3) install on linux CentOS 5.5

Oracle Application Server 10g Release 3 (10.1.3) installation on CentOS 5.5 (2.6.18-194.el5): Using: rpm > install packages, vi > editing, cpio, unzip > unpack archives Download and extract the OAS Suite cpio to i.e. /tmp/orainstall Check that the following packages are installed on the system: gcc-3.4.3-22.1 gcc-c++-3.4.3-22.1 openmotif21-2.1.30-11 (this failes on check, installs ok) …

Import/Export an oracle db/schema

Prerequisites: Import: Oracle DB setup with default DB the username that has access to the import DB Remember to set the character set if importing Unicode Import/Export: ip-address, SID, user/pass (sysDBA) …

Using cpio to extract/create archives in Linux

Commands to create or extract cpio files in Linux. To create a cpio archive from a list of files: ls | cpio -ov > nameOfArchive.cpio usage: ls #to list the files to pack | #pipe to cpio o #create pack v #list the files > #pack to name-of-archive To extract a cpio archive to a …

Share Linux resource via Samba for Win access

How to share a Linux folder using Samba for Windows access: (procedure using CENTOS networked on a Windows 7) System > Administration > Server Settings > Samba Preferences > Server Settings Basic tab: Workgroup = YourLocalWorkgroup Description = anything Security tab: Application Mode = Share Encrypt Passwords = no Guest Account = No guest account …

Useful Linux/Dos Commands

Navigation: cd /usr/local/i-net\ crystal-clear #use \ (backslash) to replace space in path ls #list dirs/files of current path, normal column-view dir #dos dir /q /a:r|h|s #to list dirs and files with attributes and owners dir /-n #to list dirs and files with their short 8.3 names dir /x #to list dirs and files with short …

Install Win7 over existing XP (Lenovo Netbook)

The procedure is for the Lenovo Netbook but may also work with other brands in a similar way. Insert boot media and start installation When prompted, select Custom/advanced setup Install on partition where ‘Lenovo’ volume sits This will add the new OS and keep the older for dual-booting. Note: partition 1 = general data partition …

how to move dir/file in linux

To move a dir/file in linux: mv ./sourceDir ./destDir …this moves the current sourceDir to a destination dir …

how to delete contents of dir in linux

To delete all contents of a dir including other dirs: rm -rf ./* rm = remove -r = recursive -f = force non-emty deletion ./* = everything in current dir …

useful vi commands…

Some of the most useful vi commands: Insert (key) …edit mode Esc (key) …exit edit mode :wq or ZZ …save and exit vi (must not be in edit mode) :q! …exit vi without saving (must not be in edit mode) :w myfilename …save vi editor buffer to new file (must not be in edit mode) …

how to check the environment vars -linux

To check environment vars in a linux setup: set …this should return a list of the environment entries and can retrieve entries like: HOME # the active user’s home dir HOSTNAME # the server’s name ORACLE_HOME # the default path of an oracle installation ORACLE_SID # the service/name of a db instance …

how to check if listener working from linux

When checking if a listener is active or not in Oracle: lsnrctl status This command should return something similar to the following. Check-out the Services summary: Services Summary… Service “PLSExtProc” has 1 instance(s). Instance “PLSExtProc”, status UNKNOWN, has 1 handler(s) for this service… Service “domain.name.com” has 1 instance(s). Instance “dmcl”, status READY, has 3 handler(s) …

find files/dirs with bash-shell in linux

Finding files/dirs in the bash shell: find /home -print | grep php #/home = the path to search in #-print = print output to screen #grep = what follows is the search pattern #php = the search term #| = pipe, feed left object of | into right object This will look in /home …

look for a service status in linux

You need to look for a service in linux: ps -ef | grep crystal e = look in all processes f = display full output details grep = print lines matching a pattern crystal = the search term to check for its status …

install phpbb3 forum on OAS

To install forum on Oracle Application Server: need access to OAS server (http server) log-in to OAS manager (em) and add a ‘virtual host’ under HTTP-Server -set path (Document Root:  i.e. ‘/phpbb3’ ) -set port (any available ports, i.e. ‘8888’ ) start the installation of phpBB3 from web browser Note: domain path ‘http://domain.name.com: 8888’ would point …

how to copy text from/to PuTTY

To copy selected text within a command-line window from/to PuTTY… from PuTTY to windows: to copy the text from PuTTY, select it and right-click to paste into windows, use the normal Ctrl + V from windows to PuTTY: to copy text from windows, select and Ctrl + V to paste into PuTTY, just right-click …

Apache configuration file

The Apache configuration file is an entry point for how and what can be seen from the domain’s public url. config file is found: /home/username/Apache/Apache/conf/httpd.conf important settings: Port = the port the server will listen when not using SSL (defaults to 7778) User = the default user-name that is used Group = the group that …

how to check if php is installed on linux

To check whether your linux-box has PHP installed or not: From the command-shell run: rpm -qa | grep -i php this should return something like this: php-cli-5.1.6-5.el5 php-5.1.6-5.el5 php-common-5.1.6-5.el5 php-ldap-5.1.6-5.el5 Or, you could run a test.php file within the htdocs dir in Apache: <HTML> <HEAD> <TITLE>PHP Test Page</TITLE> </HEAD> <BODY><?php phpinfo() ;?></BODY> </HTML> You can …

how to login as different user in linux

after logged-in as some user (i.e. as root) $ type ‘su -dennis’ this should prompt you to enter the password of the user success if you see the prompt as: $ …

how to copy text from xming to windows

To copy selected text within a command-line window in xming: to copy the text, use Alt + Shift + C to paste into windows, use the normal Ctrl + V …

how to show the linux-box version

login to your linux-box enter the command i.e.:  cat /etc/redhat-release (outputs i.e. #Red Hat Enterprise Linux Server release 5) This will display the rehat version you are using. Similar is for other linux-boxes like i.e. using slackware-version instead would show the version of Slackware Linux. …

how to connect to a RedHat server via PuTTy

download PuTTY and run it (all windowz) select Category > Session -on the left pane of PuTTY on the right-pane enter the server info: – Host name (or IP addres): the.server.ip (i.e. 192.168.10.205) – Port: the.port.number (i.e. 22) – Connection type: SSH – Saved session: give.a.name (i.e. RH_7.o) and click ‘Save’ click ‘Open’ This should …