This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
other:win7apps [2014/11/06 09:51] jypeter More cygwin stuff |
other:win7apps [2016/02/19 07:59] jypeter [Download] Added the ref card and improved the section |
||
---|---|---|---|
Line 40: | Line 40: | ||
* View => Pending will display the selected packages and the dependencies that will be downloaded | * View => Pending will display the selected packages and the dependencies that will be downloaded | ||
* Select the following packages, from: | * Select the following packages, from: | ||
- | * X11: xorg-server, xinit, xterm, all the font-* packages, font-config, showfont, xlsfonts | + | * X11: xorg-server, xinit, xterm, all the font-* packages, font-config, showfont, xlsfonts, xdpyinfo |
* X11 optional: mesa-demos, x11perf | * X11 optional: mesa-demos, x11perf | ||
* Net: openssh | * Net: openssh | ||
Line 55: | Line 55: | ||
* Click on the //View// button till it displays //Pending//, and the list of packages requiring an update are displayed (with the //Current// (installed) and the //New// version number) | * Click on the //View// button till it displays //Pending//, and the list of packages requiring an update are displayed (with the //Current// (installed) and the //New// version number) | ||
* Click Next and accept the suggested extra packages (dependencies) | * Click Next and accept the suggested extra packages (dependencies) | ||
- | * Click Next and wait for the download | + | * Click Next and wait for the download and installation |
+ | * Warning! If you get the //unable to extract /usr/bin/cygwin1.dll// error message during the installation, open the task manager, go to the Processes tab, kill the //cygserver// process, then click on //Retry// | ||
* Accept the default icons creations and exit | * Accept the default icons creations and exit | ||
Line 65: | Line 66: | ||
* Note: this will **NOT** work if you already have a running X server connected to the LSCE asterix servers in XDMCP mode | * Note: this will **NOT** work if you already have a running X server connected to the LSCE asterix servers in XDMCP mode | ||
* Type 'xterm' and check you get a new xterm window | * Type 'xterm' and check you get a new xterm window | ||
- | * In the notification zone, right-click on the X icon and choose About. You should get Version 1.16.0 (2014-08-16) or higher | + | * In the notification zone, right-click on the X icon and choose About. You should get Version 1.16.1 (2014-10-17) or higher |
* Type 'glxgears' and check that you get a window with rotating gears | * Type 'glxgears' and check that you get a window with rotating gears | ||
* Type 'glxinfo|grep -i opengl' and check the vendor string: it should be the same as your computer's graphics card | * Type 'glxinfo|grep -i opengl' and check the vendor string: it should be the same as your computer's graphics card | ||
Line 81: | Line 82: | ||
Notes: | Notes: | ||
* Log files are in: C:\cygwin64\var\log\xwin\XWin.0.log | * Log files are in: C:\cygwin64\var\log\xwin\XWin.0.log | ||
+ | * You can find the installed version of Cygwin at the top of the file (e.g. //Release: 1.16.0.0//) | ||
* Discussion: http://blog.gmane.org/gmane.os.cygwin.xfree | * Discussion: http://blog.gmane.org/gmane.os.cygwin.xfree | ||
+ | |||
+ | ==== Cygwin-X tips and tricks ==== | ||
+ | |||
+ | === Where are the directories? === | ||
+ | |||
+ | * You can use ''df -h'' to get information about the partitions | ||
+ | * The Linux root (''/'') directory is located in ''C:\cygwin'' or ''C:\cygwin64'' (depending if you are using a 32bit or 64bit Windows).\\ e.g. ''/home'' is actually in ''C:\cygwin64\home'' | ||
+ | * The ''C:'' Windows partition (accessible with ''cd c:'' from cygwin) is in ''/cygdrive/c'' (from cygwin) | ||
+ | |||
+ | === Solving Cygwin directories access rights === | ||
+ | |||
+ | You may encounter Windows access rights problem when using cygwin: | ||
+ | * you don't have the correct ownership or enough rights to remove c:\cygwin | ||
+ | * when starting cygwin/X, you get an error message saying that you can't write/access ''/var/log/xwin/XWin.0.log'' | ||
+ | * ... | ||
+ | |||
+ | These problems can be solved with cygwin! | ||
+ | * Start a cygwin shell with administrator rights\\ ''Start => All Programs => Cygwin Bash Shell => right-click and choose to run as administrator'' | ||
+ | * Use standard Linux commands to check and fix the access rights | ||
+ | * ''ls -l'', ''chmod'', ''chown'', ''chgrp'', ... | ||
+ | * e.g., to solve the XWin.0.log above, you can use: ''chmod a+rwx /var/log/xwin'' | ||
+ | |||
+ | ==== Uninstalling Cygwin-X ==== | ||
+ | |||
+ | You may have to uninstall Cygwin-X if you want to really restart from scratch, or because of some unforeseen technical problems | ||
+ | |||
+ | * Official uninstall instructions: https://cygwin.com/faq/faq.html#faq.setup.uninstall-all | ||
+ | * An interesting thread about uninstall: http://superuser.com/questions/167219/how-to-completely-uninstall-remove-cygwin-from-windows-7 | ||
+ | * Look for hints in there if you get some weird access rights problems! | ||
+ | * Some Windows command lines have some potential: ''takeown'', ''icacls'' | ||
==== Using Cygwin-X at LSCE ==== | ==== Using Cygwin-X at LSCE ==== | ||
Line 93: | Line 125: | ||
* Note: the //-wgl// argument is optional. It may (or not) give you some increased performance | * Note: the //-wgl// argument is optional. It may (or not) give you some increased performance | ||
* Select a name for the shorcut: //Asterix64//, //Asterix//, etc... | * Select a name for the shorcut: //Asterix64//, //Asterix//, etc... | ||
+ | |||
+ | Once you have started Cygwin and logged in with you account on one of the asterix servers, it is highly suggested to activate the windows wireframe moving mode by typing:\\ ''gconftool-2 --set /apps/metacity/general/reduced_resources --type bool true'' | ||
==== Trying to have Cygwin-X work faster on Win7+Intel HDxxx cards ==== | ==== Trying to have Cygwin-X work faster on Win7+Intel HDxxx cards ==== | ||
+ | * Activate wireframe mode\\ ''gconftool-2 --set /apps/metacity/general/reduced_resources --type bool true'' | ||
+ | * Check if other metacity parameters should be set? | ||
+ | * http://www.yolinux.com/TUTORIALS/GNOME.html#GCONF | ||
+ | * [[http://ubuntu-tutorials.com/2008/01/10/gconftool-2-gconf-editor-from-the-shell/|Using gconftool-2]] | ||
* [[http://aaron-kelley.net/blog/2013/03/cygwinx-xwin-causes-nvidia-optimus-to-run-all-of-the-time/|Should we disable OpenGL ?]] | * [[http://aaron-kelley.net/blog/2013/03/cygwinx-xwin-causes-nvidia-optimus-to-run-all-of-the-time/|Should we disable OpenGL ?]] | ||
+ | * Start with ''-nowgl'' option, or use the //GLWIN_NO_WGL_EXTENSIONS// environment variable | ||
* Check the performance and basic parameters with: glxgears -info | * Check the performance and basic parameters with: glxgears -info | ||
* [[http://www.mesa3d.org/envvars.html|Should we play with the Mesa 3D Graphics Library environment variables]] | * [[http://www.mesa3d.org/envvars.html|Should we play with the Mesa 3D Graphics Library environment variables]] | ||
Line 103: | Line 142: | ||
* https://sourceware.org/cgi-bin/search.cgi?wm=wrd&form=extended&m=all&s=D&ul=%2Fml%2Fcygwin-xfree%2F%25&q= | * https://sourceware.org/cgi-bin/search.cgi?wm=wrd&form=extended&m=all&s=D&ul=%2Fml%2Fcygwin-xfree%2F%25&q= | ||
* What can we do with cygserver-config ? | * What can we do with cygserver-config ? | ||
+ | * Enable //MIT-SHM extension// ([[http://en.wikipedia.org/wiki/MIT-SHM|MIT Shared Memory Extension ]])? | ||
+ | * http://x.cygwin.com/docs/ug/using-shared-memory.html | ||
+ | |||
+ | ===== GIMP ==== | ||
+ | |||
+ | Web: http://www.gimp.org/ | ||
+ | |||
+ | Download: http://www.gimp.org/downloads/ | ||
===== Gnu emacs + GnuWin DiffUtils ===== | ===== Gnu emacs + GnuWin DiffUtils ===== | ||
Line 108: | Line 155: | ||
==== Download ==== | ==== Download ==== | ||
- | - http://vgoulet.act.ulaval.ca/emacs/windows (Emacs installer for Windows) | + | - Emacs installer for Windows: http://vgoulet.act.ulaval.ca/emacs/windows |
- | - http://gnuwin32.sourceforge.net/packages/diffutils.htm (Recompiled diff programs for Windows) | + | - Recompiled diff programs for Windows (needed for the //ediff// mode): http://gnuwin32.sourceforge.net/packages/diffutils.htm |
- | - {{:other:emacs_win_7_64_140408.zip|}} (JYP's .emacs file) | + | - JYP's .emacs file: {{:other:emacs_win_7_64_140408.zip|for Windows}} - {{:other:emacs_linux_150806.tar|for Linux}} |
+ | - Annotated reference card of the emacs text editor: {{:other:newppl:emacs_jyp.pdf}} | ||
==== Configuration ==== | ==== Configuration ==== | ||
Line 139: | Line 186: | ||
- Start Emacs | - Start Emacs | ||
- | ==== Notes ==== | + | ==== Misc. emacs related notes ==== |
+ | |||
+ | === Windows specific notes === | ||
* Installing the DiffUtils packages makes it possible to use the emacs Tools => Compare (ediff) menu | * Installing the DiffUtils packages makes it possible to use the emacs Tools => Compare (ediff) menu | ||
* If you get the following error when starting emacs\\ error: The directory `~/.emacs.d/server' is unsafe\\ Use the following solution: http://stackoverflow.com/a/2944197 | * If you get the following error when starting emacs\\ error: The directory `~/.emacs.d/server' is unsafe\\ Use the following solution: http://stackoverflow.com/a/2944197 | ||
+ | |||
+ | === Other notes === | ||
+ | |||
+ | * Commenting/commenting lines (in a python script, or anything) : ''M-;'' | ||
+ | * Improving python support: https://samrelton.wordpress.com/2013/09/16/emacs-and-python/ | ||
+ | * Not tested! FIXME | ||
===== QtGrace ===== | ===== QtGrace ===== | ||
Line 164: | Line 220: | ||
Download: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html (Get the //Windows installer for everything except PuTTYtel//) | Download: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html (Get the //Windows installer for everything except PuTTYtel//) | ||
+ | |||
+ | More information: http://ciclad-web.ipsl.jussieu.fr/data/documents/ssh_putty_v2_2011-1.pdf | ||
==== Configuring and using pageant ==== | ==== Configuring and using pageant ==== | ||
Line 181: | Line 239: | ||
===== Microsoft synctoy ===== | ===== Microsoft synctoy ===== | ||
- | <note tip>This is a free and easy to install backup program that will only copy new/modified files</note> | + | <note tip>This is a free and easy to install backup program that will only copy new/modified files\\ \\ Using synctoy is very similar to using Linux //rsync//</note> |
Web & Download: http://www.microsoft.com/en-us/download/details.aspx?id=15155 | Web & Download: http://www.microsoft.com/en-us/download/details.aspx?id=15155 | ||
Line 189: | Line 247: | ||
The idea is to create pairs of folders (//left// folder and //right// folder) and to keep them synchronized | The idea is to create pairs of folders (//left// folder and //right// folder) and to keep them synchronized | ||
- | * Click on Create New Folder Pair | + | * Click on //Create New Folder Pair// |
- | * Choose a Left Folder on the computer\\ e.g. F:\Users\jypeter | + | * Choose a //Left Folder// **on the computer**\\ e.g. ''F:\Users\jypeter'' |
- | * Choose a Right Folder on the backup disk\\ e.g. J:\Backup_JYP\<your_computer_model>\Windata_<your_login> | + | * Choose a //Right Folder// **on the backup disk**\\ e.g. ''J:\Backup_JYP\Dell_Precision_T1700\Windata_jypeter'' |
- | * Click Next and choose Echo, because we want the backup to be an exact copy of the original folder | + | * Click //Next// and choose //Echo//, because we want the backup to be an exact copy of the original folder |
- | * Click Next and give a meaningful name to the folder pair\\ e.g. \<your_computer_model> Windata_<your_login> | + | * Warning! //Exact copy// means that if something is removed in the //left// folder and you run synctoy, synctoy will also erase the same thing in the //right// folder |
+ | * Click Next and give a meaningful name to the folder pair\\ e.g. ''<your_computer_model> Windata_<your_login>'' | ||
* Finish... | * Finish... | ||
- | * Select the folder pair and click on Change options | + | * Select the folder pair and click on //Change options// |
- | * Enable Exclude system files | + | * Enable //Exclude system files// |
- | * Disable Save overwritten files in the Recycle Bin | + | * Disable //Save overwritten files in the Recycle Bin// |
- | * Click on Preview and check the list of actions that the backup program will use | + | * Click on //Preview// and check the list of actions that the backup program will use |
* Click on Run | * Click on Run | ||
+ | |||
+ | ===== Google Drive ===== | ||
+ | |||
+ | Web & Download: https://www.google.com/drive/download/ | ||
===== VLC ===== | ===== VLC ===== | ||
Line 219: | Line 282: | ||
Download: http://www.xnview.com/en/xnview/#downloads | Download: http://www.xnview.com/en/xnview/#downloads | ||
+ | |||
+ | ===== BlueScreenView ===== | ||
+ | |||
+ | This utility makes it possible to display information about previous crashes of a Win computer. Use this if your PC has experienced a BSOD (//Blue Screen of Death//) and you want to know what happened | ||
+ | |||
+ | Web & Download: http://www.nirsoft.net/utils/blue_screen_view.html | ||
/* standard page footer */ | /* standard page footer */ |