Installing Cygwin
Overview
Cygwin is a required component for running the EPMware Agent on Windows servers. It provides a Linux-like environment that allows the agent's shell scripts to execute properly on Windows systems.
Windows Only
Cygwin installation is only required for Windows servers. Linux servers can skip this section and proceed to Java Configuration.
Prerequisites
Before installing Cygwin:
- [ ] Windows Administrator privileges
- [ ] Internet connection for downloading packages
- [ ] At least 1 GB of free disk space
- [ ] Proxy server information (if applicable)
Download Cygwin
Step 1: Access Cygwin Website
- Navigate to www.cygwin.com
- Click on "Install Cygwin" link
- Choose the appropriate installer:
- setup-x86_64.exe for 64-bit Windows (recommended)
- setup-x86.exe for 32-bit Windows
Step 2: Save the Installer
- Download the setup file to your Desktop or Downloads folder
- Right-click the downloaded file and select "Properties"
- If blocked, check "Unblock" and click OK

Cygwin download page with installer options
Installation Process
Step 1: Run the Installer
- Right-click setup-x86_64.exe
- Select Run as administrator
- Click Yes on the User Account Control prompt
Step 2: Installation Type
Select Install from Internet and click Next

Selecting installation type - Install from Internet
Step 3: Installation Directory
Configure the installation paths:
| Setting | Recommended Value | Notes |
|---|---|---|
| Root Directory | C:\cygwin64 |
Default location recommended |
| Install For | All Users | Ensures all users can access |

Configuring Cygwin root directory
Custom Installation Path
If installing to a different drive, ensure the EPMware Agent configuration reflects the correct path.
Step 4: Local Package Directory
Specify where to store downloaded packages:
- Recommended:
C:\cygwin64\packages - Important: Do not use the Cygwin root folder

Setting local package directory
Step 5: Connection Method
Configure your internet connection:
- Direct Connection: If connected directly to the internet
- Use Proxy: If behind a corporate proxy server
For proxy configuration:
Step 6: Download Site Selection
Choose a mirror site for downloading packages:
- Select any available mirror from the list
- Prefer sites with good connectivity to your location
- Click Next to proceed

Selecting a download mirror site
Step 7: Package Selection
For EPMware Agent, the default packages are sufficient:
- Keep "Category" view
- Leave all defaults selected
- Click Next to begin installation
Required Packages
The EPMware Agent requires only the base Cygwin packages. Additional packages are not necessary unless specified by your environment requirements.
Step 8: Installation Progress
The installer will: 1. Download selected packages 2. Install Cygwin base system 3. Create shortcuts and icons 4. Configure the environment

Cygwin installation in progress
Step 9: Completion
- Select Create icon on Desktop (optional)
- Select Add icon to Start Menu (recommended)
- Click Finish
Post-Installation Verification
Verify Installation
- Open Windows Explorer
- Navigate to
C:\cygwin64 - Verify the following directories exist:
bin\etc\home\usr\var\
Test Cygwin Terminal
- Double-click the Cygwin Terminal icon on desktop
-
The terminal should open with a prompt:
-
Test basic commands:

Cygwin terminal showing successful installation
User Configuration
Identify Cygwin User
The EPMware Agent will run under a specific Windows user. This user needs a Cygwin home directory:
- Open Cygwin Terminal
- Check current user:
- Verify home directory:
Expected output:
Create Service Account Home (Optional)
If using a service account:
- Open Cygwin Terminal as the service account
- Cygwin will automatically create the home directory
- Verify creation:
Environment Variables
PATH Configuration
Cygwin's bin directory should be in the system PATH:
- Open System Properties → Advanced → Environment Variables
- Edit the Path variable
- Add:
C:\cygwin64\bin
Verify PATH
Expected output:
Required Components for EPMware
Essential Binaries
Verify these commands are available:
File Permissions
Ensure proper permissions for the agent user:
# Check permissions
ls -la /home/$(whoami)
# Set correct permissions if needed
chmod 755 /home/$(whoami)
Troubleshooting Cygwin Installation
Common Issues
| Issue | Cause | Solution |
|---|---|---|
| Setup fails to download | Proxy/firewall blocking | Configure proxy settings or try different mirror |
| "Permission denied" errors | Incorrect user permissions | Run installer as administrator |
| Missing home directory | User hasn't logged into Cygwin | Open Cygwin Terminal as that user |
| Commands not found | PATH not configured | Add Cygwin bin to system PATH |
Reinstallation
If you need to reinstall Cygwin:
- Backup any important files from
/home/directories - Uninstall Cygwin through Control Panel
- Delete the
C:\cygwin64directory - Run the installer again
Cygwin Updates
To update Cygwin packages:
- Run the setup program again
- Select "Keep" for existing packages
- Update any packages marked with "New"
Security Considerations
File System Permissions
- Cygwin inherits Windows NTFS permissions
- Ensure only authorized users can access Cygwin directories
- Protect the agent installation directory
Service Account Best Practices
- Use a dedicated service account for the agent
- Grant minimum necessary permissions
- Avoid using domain administrator accounts
Special Considerations for EPMware
Multiple Agents
If running multiple agents on the same server:
- Use the same Cygwin installation
- Create separate home directories for each agent
- Configure unique properties for each instance
Server-Specific Requirements
For specific EPM applications:
- HFM Servers: Ensure Cygwin user can access HFM utilities
- Planning Servers: Verify access to Planning utilities
- Essbase Servers: Check MaxL script execution capability
Validation Checklist
Before proceeding to agent installation:
- [ ] Cygwin installed successfully
- [ ] Terminal opens without errors
- [ ] Home directory exists for agent user
- [ ] Basic commands work (ls, pwd, etc.)
- [ ] Java is accessible from Cygwin
- [ ] zip/unzip commands are available
Installation Complete
Once Cygwin is installed and verified, proceed to Java Configuration to set up the Java environment.
Next Steps
- Configure Java - Set up Java environment
- Download Agent - Get EPMware Agent files
- Extract Files - Deploy agent components
