網頁

顯示具有 技術---Cygwin 標籤的文章。 顯示所有文章
顯示具有 技術---Cygwin 標籤的文章。 顯示所有文章

2013年7月20日 星期六

Cygwin/X --- Uninstall & Remove Cygwin/X Component and related setting

Due to Cygwin/X never have uninstall facility by Setup tool, we have to do some method manually if need to remove all Cygwin/X component.
How to do it?
Stop and Remove any Cygwin Services
If the Cygwin services (# 1) such as sshd are running, ScreenHunter_02we have to stop all services by using cygrunsrv –E sshd commandScreenHunter_03ScreenHunter_04and uninstall all service by using cygrunsrv –R ssh command.ScreenHunter_05ScreenHunter_06
Delete the Cygwin root folder and all subfolders
Based on the logon account, we will take ownership of the recursive files and folders of the Cygwin installation path by using takeown /r /f c:\cygwin commandScreenHunter_02So does that the status is as follows:
AS-ISScreenHunter_01TO-BEScreenHunter_03
We also have to delegate Full Access to Everyone in the recursive files and folders of the Cygwin installation path by using icacls c:\cygwin /t /grant Everyone:F command.ScreenHunter_05So does that the status is as follows:
AS-ISScreenHunter_04TO-BEScreenHunter_06
In the moment, we can completely delete the cygwin folder and its subfolders by using rmdir /s c:\cygwin command.
ScreenHunter_07
Delete key from registry
Start...Run... regedit and Delete Cygwin keys from registry tree “Computer\HKEY_CURRENT_USER\SoftwareScreenHunter_08Delete the system variable (option)
To remove the Environment Variable as 'CYGWIN' if ever create it.ScreenHunter_02Delete the related Account (option)
To remove the related account as cyg_server & sshd if ever create it in the installation process.ScreenHunter_01Until now, the Cygwin/X will be uninstalled clearly.

Reference(# 1) we can know what services are running now by using cygrunsrv –list on the prompt command.ScreenHunter_23

2013年6月29日 星期六

Cygwin/X --- Install Cygwin/X on Windows 8 x64 (part 1)

In general, we use Microsoft Windows as Workstation that connects with Server as Linux(CentOS) for managing system or accessing resource. In X Windows as Gnome environment, we can use some tools as Cygwin/X to remote access. How to do it?

At first, go to Cygwin/X web site http://x.cygwin.com next to download installation package.
ScreenHunter_01After download completion, double-click setup package and launch the Cygwin Setup wizard to install Cygwin/X on my Windows platform. ScreenHunter_02In Choose A Download Source dialog, select Install from Internet option next to click Next > buttonScreenHunter_03In Select Root Install Directory dialog, select Root Directory as default value “C:\cygwin” and Install for someone as All Users or Just Me to use it.ScreenHunter_04In Select Local Package Directory dialog, click Browse button for selecting a local package directory next to click Next > buttonScreenHunter_05In Select Your Internet Connection dialog, select an option as Use Internet Explorer Proxy Settings for contacting with the Internet next to click Next > buttonScreenHunter_06In Choose A Download Site dialog, select an available download site is neighboring with your location next to click Next > buttonScreenHunter_07Due to the Cygwin is installed firstly,we can ignore this Setup Alert message at the moment next to click Ok button to go ahead.ScreenHunter_08According to the Official User guide Installing Cygwin/X ,  we can select some packages as follows and change the value from “Skip” to “special version”.
Net -- > openssh        ※ for using ssh connection to run remote X Client
Net – > inetutils         ※ for using telnet connection to run remote X Client
X11 – > xorg-server                ※for Cygwin/X X Server
X11 – > xinit                         ※ for starting X Server
Of course, we can select the X11 package for using graphic program so that change the value from “Default” to “Install”.ScreenHunter_18In Resolving Dependencies dialog, click Select required package (RECOMMENDED) check bot next to click Next > buttonScreenHunter_19The installation progress is running nowScreenHunter_10To click Finish button to complete installationScreenHunter_11
In the next article, I will introduce How to configure Cygwin setting?
Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.