How To Install Xfce On Cygwin

Posted on by  admin

How To Install Xfce On Cygwin Average ratng: 3,3/5 4691 votes
  1. Install Xfce On Ubuntu
  2. How To Install Xfce Themes
  3. How To Install Cygwin Ssh

My cygwin workflow is as follows Run XServer Start xfce session (by running xfce4-session) Start xfce4-terminal Everything works well, except that xfce4-session seems to bring up an empty floating. From the Cygwin shell, navigate to the directory where the XFCE files are located. Type./installpkg.sh -v *.bz2 and press [Enter]. This will install XFCE into Cygwin. Type./installpkg.sh -v *.bz2 and press [Enter]. This will install XFCE into Cygwin. Okay, so this is probably going to be a really stupid question but. Is there any possible way to put on a Linux-based LXDE, XFCE or equivalent lightweight.

I just had my desktop computer replaced. Both my previous computer and this one have Windows XP. In order to work with the many Linux servers we have, I installed Cygwin along with its xterm package. However, I cannot run startx to start the X-window server as I did with my previous computer. I've been looking online to see why startx is missing from my install, but I haven't found anything yet. Any help would be greatly appreciated.

Arch

[Does more research] Well, I just installed the xinit package, which I do not recall having to do before. (It may have been a requirement for the xterm package the last time I installed Cygwin.) startx now exists, but I wouldn't say it works. The X-window server it starts creates a window that covers my entire monitor with three terminals within it, unlike the old 25 line x 80 column single terminal window I'm used to. Worse, I can't just spawn child windows like I used to, which was the real power of using Cygwin with X-windows.

DLJessup
DLJessupDLJessup

5 Answers

OK, after doing more research and getting help from one of my coworkers, I have found a solution to my problem.

What has happened is that, although startx exists, it now starts the X server in fullscreen mode by default instead of multiwindow mode. Looking back, I probably could have copied /etc/X11/xinit/xinitrc to ~/.xinitrc and customized it. However, it turns out that there are other startup scripts for the X server which are easier to modify. (See http://x.cygwin.com/docs/ug/using.html.)

In this case, I took the script startxwin.bat. I then made a couple of changes to startxwin.bat:

  • I added a drive letter to the CYGWIN_ROOT because my work environment has my home directory outside of the C drive.
  • I added a '+tb' option to the xterm call to suppress the menubar at the top of the X-window.

The nifty thing is that by going to Start → Programs → Cygwin-X → Xwin Server, I can open a GUI Cygwin X-window without ever opening the standard Cygwin command line. This was decidedly not the case with my previous installation.

I should add that I made these changes after expanding my selection of packages. Instead of just installing X11 → xterm, I followed the recommendations in step 15 of http://x.cygwin.com/docs/ug/setup-cygwin-x-installing.html and installed:

  • X11 → X-start-menu-icons
  • X11 → xinit
  • X11 → xorg-docs
  • X11 → xorg-server

(This selection picked up X11 → xterm as a required package.) While I see no obvious reason why the directions above wouldn't have worked with just X11 → xterm and X11 → xinit installed, I haven't put that theory to the test, and I have little desire to blow away my current installation and rebuild it to prove my theory.

I hope this helps other people avoid some pain.

DLJessupDLJessup

Disclaimer: I know this answer does not answer your question directly, but it offers a good alternative.

I use Cygwin + XMing to run remote X applications:

  1. Launch XMing
  2. Start my favorite Cygwin shell (zsh)

  3. Run X programs

Works like a charm. The best part is that XMing can neatly integrate X windows into the Windows GUI, i.e. each X app has its own full-right window.

David HanakDavid Hanak

When you installed Cygwin, did you install the full package set? The default is to only install a baseline of packages which may not include X.

Run setup.exe again and ensure the X11 packages are installed. I just click on the little double arrows next to 'All' until it says 'Install'. It may be you chose 'Default' instead.

It's better to have a full install since I remember having problems with Cygwin dependencies in the past and now, when I run 'Start', 'All Programs', 'CygWin-X', 'XWin Server', it runs fine, opening up one shell, then 'xterm &' opens another shell.

So I really think you need to install the lot. You could try, at a bare minimum, the whole X11 group (not just xinit) but you may as well do the lot, especially given the powerful commands you get.

paxdiablopaxdiablo

I always run Cygwin install twice .. the first time, I just install default packages, and the second time, I install EVERYTHING. The download takes forever, but in this way I always have almost everything I could possibly want. (I like how on Cygwin I can install everything and there are no conflicts, unlike some Linux distributions where there are packages that do the same thing in different ways which can't be installed at the same time. But of course Cygwin has an easier job of this than a full OS .. there's no Cygwin sendmail, for example.)

I have to install Cygwin on a new machine tomorrow, so this question freaks me out. I'm going to die if startx isn't working. I hope it turns out that you're just missing a package. I highly recommend installing everything.

skiphoppyskiphoppy

Thanks, this helped me a bit (finding out about installing xinit). That new startx window was really crappy, a friend helped me solve it in another way: by starting with: startxwin.sh instead of startx. Then it looked like the 'old' one, and worked much better.

Love Cederström

Not the answer you're looking for? Browse other questions tagged cygwinxterm or ask your own question.

If you are a Linux or Unix user, I am sure you will miss the terminal (and all the wonderful things you can do with command lines) in a Windows environment. Most of the time you won’t need to use the command prompt in Windows, and its user-interface is not as friendly either. However, if you have the need to use a terminal, Cygwin is the best tool for you. Let us see how to install and configure Cygwin in the Windows environment.

What is Cygwin

Cygwin is a free and open source software with tons of optional packages which lets you run and execute the age-old Unix-like commands right in your Windows system. Do note that it can’t be used to run any Linux/Unix software though.

Installing Cygwin

To install Cygwin, head to the official site of Cygwin and download the executable depending on your system preference (32-bit or 64-bit). The executable itself is small as it downloads all the required packages while installing the software.

Minecraft indev download. Once you have downloaded the Cygwin installer, launch the installer as the Administrator. You will be greeted with the welcome screen,;just click on the “Next” button to continue. Here in this screen, select the radio button “Install from Internet” and click on the “Next” button. This option will download all the required packages for the installation and will store them in the local directory for future use.

Here you can select the root directory for the Cygwin installation. The default settings are fine unless you want to customize the installation directory and user access. Click on the “Next” button to continue.

In this screen, you can select the local package directory where the downloaded files are stored. If you want to change it, go ahead and change the directory location by click on the “browser” button. Otherwise, click on the “Next” button to continue.

Unless you are using some sort of HTTP proxy to access the internet, just leave the default option and click on the “Next” button to continue.

Install Xfce On Ubuntu

Here you can select the download site from which you wish to download the required packages. Unfortunately, Cygwin doesn’t provide any additional details like site location. So just select a random site and click on the “Next” button.

As soon as you click on the “Next” button, Cygwin will show you all the available packages in categories. At this point, you can keep them at the default settings and click the “Next” button. If you ever want to add packages to your Cygwin installation, you can do so by running the installer as needed.

How To Install Xfce Themes

Now Cygwin will download all the default packages and install them. The downloading and installing may take some time depending on your Internet speed and the selected server speed.

Once the installation is complete, you can start using Cygwin by launching it using the desktop shortcut or from the start menu.

Alternatively, you can configure Cygwin to work with the normal Windows command prompt so you don’t have to launch Cygwin specifically. To do that, open up your Start menu, type “system” and select the option “System” in the control panel section. If you are using Windows 8, you can access the same section by pressing “Win + X” and selecting “System” from the power user menu.

Click on the “Advanced System Settings” located on the left pane to open “System properties.”

Click on the “Environmental Variables” button.

Scroll down and select the variable “path” under the “system variables” and click on the “Edit” button.

Now add the below location (variable value) at the end of the line. Don’t forget to separate it using ;. If you have chosen a different installation directory while installing the Cygwin, then change the below location variable accordingly. Once you have added it, click on the “Ok” button to save the changes.

How To Install Cygwin Ssh

From this point onward, you can use Linux commands right in your regular Windows command prompt.

Hopefully that helps, and do comment below if you face any difficulties while installing and configuring Cygwin.

Ebooks

Comments are closed.