User:Sylvain
From KitwarePublic
crontab on MacOS
- Example
crontab -e 00 20 * * * ctest -S myScript.cmake > myScript.log 2>&1
- Problem:
When I create a cronjob with
crontab -e
I get the error message:
crontab: temp file must be edited in place
- Solution:
Use the 'nobackup' option in VI:
:set nobackup crontab: installing new crontab
Install X11 on MacOS
To install ParaView-2.4.4, you need to install X11.
- Insert 'Mac OS X Install Disc 1'
- Scroll down to 'Optional Installs'
- Click 'Continue', 'Continue', 'Accept'
- Select 'Applications', click on the arrow in front of Applications
- Select 'X11'
- Click 'Upgrade', enter your password, click 'Ok'
Setup CMake for ICC
To configure a project to use the Intel compiler icc, set CC and CXX *before* you run cmake. Type is the terminal:
CFLAGS= CXXFLAGS= CC=/opt/intel_cc_81/bin/icc CXX=/opt/intel_cc_81/bin/icpc
Then run cmake or ccmake.
Headers for Cross-platform Projects
#include <stdio.h> // for sscanf
Install Qt OpenSource for VCExpress (VS2005)
- Install VCExpress AND Platform SDK
http://msdn.microsoft.com/vstudio/express/visualc/download/
- Using Windows Unzip, extract qt-win-opensource-src-4.2.2.zip and acs-4.2.2-patch1.zip to c:/qt/qt-win-opensource-src-4.2.2
http://www.paraview.org/Wiki/Obtaining_GPL'ed_Qt_for_Windows
- Edit C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat
- Add path to Platform SDK bin, include and lib:
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
- Launch Cygwin.exe, and apply the following patch
patch -p1 -i qtwin_patch\msvc_bcc32_42.patch
- Launch Start > All Programs > Visual C++ Express Edition > Visual Studio Tools > Visual Studio 2005 Command Prompt
- cd ..; cd qt; cd qt-win-opensource-src-4.2.2
- Configure Qt and answer yes to all questions
qconfigure.bat msvc2005
- Configure ParaView3 using CMake; Compile using MSVC2005
Change shell in Debian
- Type:
chsh
- Type your password
- Logout and login again.
- Set up the .zshrc file.
Associate hostname with IP address for SSH
- Dynamic way:
Add in /etc/dhcp3/dhclient.conf
send host-name "<your_host_name>";
- Static way: (not as good)
Add IP address and hostname in /etc/hosts (Linux) or C:/WINDOWS/system32/drivers/etc/hosts (Cygwin):
102.54.94.97 rhino.acme.com # source server 38.25.63.10 x.acme.com # x client host
- On Debian, install openssh-server
SSH without password
Add to .ssh/config
Host <remote_host_name> User <your_user_name_on_remote_host>
Debian Setup
boot: expert Primary network interface: eth0: ADMtek NC100 Network Everywhere Fast Ethernet 10/100 DHCP single partition Install the kernel linux-image-2.6-686 Debian mirror: France - fr.debian.org Use non-free software Choose software to install: Desktop environment Web server SQL server (forgot to do that one!) Standard system
BuGLe setup on Debian
http://wiki.debian.org/NvidiaGraphicsDrivers
Install package nvidia-glx-dev