Author Archives: TimL

Noodle uses 4 things on the server

  1. The Noodle folder (older versions are named IntraNet)
  2. The database folders (can be on a different server)
  3. The Java Folder
  4. Optional tools; ffmpeg, anything used by custom search filters, etc

On Windows the Noodle folder is in %PROGRAMFILES(x86)% by default.

On Linux the Noodle folder is in /opt/ by default.

Among other things the Noodle folder contains the following of potential interest:

  1. conf/server.xml (connection settings)
  2. conf/noodle.properties (application settings)
  3. logs
  4. optional files like MOTD.html/custom.js/noodle.jks

You need custom scripts enabled.

var doc=top.noodle.headWindow().document;
var el=doc.getElementById("helpLink");
el.style.fontSize="";
el=doc.getElementById("feedback");
el.style.fontSize="";
el=doc.getElementById("logout");
el.style.fontSize="";
el=doc.getElementById("logout").parentNode.parentNode;
el.style.fontSize="14px";

You need custom scripts enabled.

function HideFrames(){
this.hide=function(){
	this.navFrameSize=top.document.getElementById("lowerBody").cols;
	top.document.getElementById("lowerBody").cols="0,*";
	this.headFrameSize=top.document.getElementById("body").rows;
	top.document.getElementById("body").rows="0,0,*";
};
this.show=function(){
	top.document.getElementById("lowerBody").cols=this.navFrameSize;
	top.document.getElementById("body").rows=this.headFrameSize;
};
this.init=function(){
	var doc=top.noodle.headWindow().document;
	var cDiv=doc.getElementById("helpLink").parentNode.parentNode;
	var el = doc.createElement('a');
	el.innerHTML="hideFrames";
	el.href="#";
	el.className="whitelinks";
	top.noodle.cbc.addEventListener(el,"click",this.hide);
	cDiv.appendChild(el);
};
}
if(!top.noodle.hideFrames){
	top.noodle.hideFrames=new HideFrames();
	top.noodle.hideFrames.init();
}

Noodle will run on almost anything but we recommend the following setups:

Moderate dedicated server or VM only running operating system, Java, database, and Noodle:

  • 4GB RAM (1 for the OS 0.5 for Noodle and the rest for the RDBMS)
  • Dual core
  • 1TB drive space
  • 100mbps

Big configuration:

  • 2GB RAM + the size of your database
  • Quad core (any more cores will likely not be used)
  • AES-NI
  • software raid 0 (or SSDs)
  • 10mbps per user

An off site backup is recommended.

When using a VM shared IO can be a issue so be sure to verify your VM is getting the speed it needs.

How to reset PostgreSQL password on Windows:

0) Kill java from the task manager
1) Update your

%PROGRAMFILES%\PostgreSQL\9.0\data\pg_hba.conf

to "trust" for local connections.
2) Restart the PostgreSQL service
3) Connect as user postgres with PGAdmin
4) Set your password:

ALTER USER postgres WITH PASSWORD 'Pgsq1p@ssword';

5) Undo your changes to pg_hba.conf
6) Restart the PostgreSQL service
7) Restart the Noodle service

You need custom scripts enabled.

var doc=top.noodle.headWindow().document;
var el=doc.getElementById("status");
el.style.display="none";
el=doc.getElementById("currentUserId");
el.style.display="none";
el=doc.getElementById("currentUser");
el.style.margin="20px";
el=doc.getElementById("currentUserName").parentNode;
el.style.display="block";

--Restore from file or on attach

---------------------------------------------------------
DECLARE tabcurs CURSOR
FOR
    SELECT 'intranet.' + [name]
      FROM sysobjects
     WHERE xtype = 'u'

OPEN tabcurs
DECLARE @tname NVARCHAR(517)
FETCH NEXT FROM tabcurs INTO @tname

WHILE @@fetch_status = 0
BEGIN

    EXEC sp_changeobjectowner @tname, 'intranet2'

    FETCH NEXT FROM tabcurs INTO @tname
END
CLOSE tabcurs
DEALLOCATE tabcurs
---------------------------------------------------------
--?--EXEC sp_changeobjectowner 'intranet.AllocObjectId', 'intranet2';
---------------------------------------------------------

Edit server.xml and add the following to the Engine tag;

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="${catalina.base}/logs" prefix="access." fileDateFormat="yyyy-MM-dd" suffix=".log" pattern="%{YYYY-MM-dd HH:mm:ss}t,%a,%v,%r,%s,%p,%{user}r,%X" />

Restart Noodle.

Further options here.