c++ - NetBeans Remote Development with additional configuration -
i'm trying use netbeans (7.3.1) work on remote project.
my configuration following:
- my local machine windows 7 laptop. doesn't have tools. in particular neither compiler nor debugger. have netbeans ide , putty example.
- source code, make scripts , (eventually) build results located on remote storage shared across servers , "locals". (i might switch single server storage faster don't think matters @ all.)
- i'm accessing using sshfs manager. sshfs manager takes server name, path on server, user name , ssh private key. in result mounts directory on server disk on windows. works fine. (although directories, possibly links, represented files in windows explorer, don't know if matters...)
- netbeans project located on local machine don't think matters , place remotely well. prefer keep "off source" don't have add ignores version control.
- in netbeans did procedure described in remote developement tutorial. seems successful. netbeans connected server , found gnu compiler collection.
- then added project using file | new project..., there c/c++ | c/c++ project existing sources. seems successful. files visible , staff.
the issue our work "procedure" requires setup environment first. when log in putty example have first call setsee proper argument. , heavily influences environment adding lots of variables example including:
gcc_homeset/opt/gcc/linux64/ix86/gcc_4.3.2-7p3, opposed/user/bin/g++shown netbeans in gnu compiler collection c++ compiler andcplus_include_pathpoints path (while netbeans doesn't see many includes, lacking path).
so there way tell netbeans call setsee on remote server before doing else?
it turned out setsee more or less internal tool. yet “the core question” remains: how have arbitrary script executed on behalf of ssh session created ide, before ide uses script.
answer “how can set environment variables remote rsync process?” question on super user says all.
to summarize shortly: in ~/.ssh/authorized_keys 1 has modify entry corresponding key ide log in. there 1 has add command parameter script executed after logging in before “returning control”.
there thing associated solution. if script executed within command option outputs break many tools (possibly ide well). such tools expect on output whatever called tool does. parsing such output fail on command script outputs.
a simple solution use tail. disadvantage of loos “progress”. lengthy operation hung , output in 1 shot. in cases doesn’t work (for example doing git clone --progress through ssh on tortoise git fail if command script outputs anything).
Comments
Post a Comment