Hrvat
New Member
Posts: 12
|
Post by Hrvat on Apr 7, 2009 22:59:16 GMT 7
Hello, i like to install this aplication on my N5200 Pro , but i need a little bit help... but i have no writeaccess to this directories, is there an workaround or something similar ? www.gnu.org/software/gnump3d/index.htmlthanks Hrvat
|
|
|
Post by peterfu on Apr 8, 2009 1:38:05 GMT 7
You have "make" on Your N5200? If Yes I'm very interested how You got "make" on Your box.
If You have it, then You have to edit the makefile to use other directories.
If You don't have "make", then You have to do a manual installation - check the makefile what should happen and do it manually or via a script.
br Peter
|
|
Hrvat
New Member
Posts: 12
|
Post by Hrvat on Apr 8, 2009 6:26:04 GMT 7
grüße ,
wie ich sehe verstehst du auch deutsch ...
also folgendes ... die make funktion habe ich garnicht ausgeführt weil ich sie im system nicht habe / oder nicht finde ...
also habe ich das ganze per hand installiert ...
das schöne ich habe das perl skript zum laufen bekommen und diese erstellt mir auch den index ...
ES LÄUFT ;D mit ein paar hacks ...
ach ja nochwas ... verschwinden meine ganzen einträge aus /etc /usr/bin usw ... wenn ich mein NAS neu starte ?
nun das werde ich dann gleich sehen ...
gruß Hrvat
|
|
Hrvat
New Member
Posts: 12
|
Post by Hrvat on Apr 8, 2009 20:23:35 GMT 7
ok ,
wie ich sehe verschwinden wieder die sachen aus der
/usr/bin /var/log /var/cache
ich bräuchte ein script das mit folgende sachen macht ... da bin ich nicht so fit , wie baut sich so ein script auf ist das einfach eine hinteranander anreihung von den linux befehlen , ein kleines beispiel wäre nicht schlecht und wie ich diese script dann einbinden könnte ...
1. kopieren der binarys aus /raid0/data/module/gnump3d/bin nach /usr/bin 2. erstellen eines symlinks in /usr/bin auf den perl interpreter 3. erstellen bestimmter verzeichnisse in /var/log und /var/cache 4. erstellen bestimmter leerer dateien in diesen verzeichnissen
gruß und danke Hrvat
|
|
|
Post by peterfu on Apr 8, 2009 22:18:09 GMT 7
Nachdem Du ja alle Befehle schon kennst ist ein script ein leichtes. Als erstes braucht Du das META module. Dann erstellst Du im Verzeichnis /raid/data/module/META/system/etc/startup Dein script - dazu brauchst Du vi - das ist der linux standard editor - manche lieben Ihn, manche hassen Ihn Du gehst in das Verzeichnis und gibts den Befehl: "vi <scriptname>" ein. Dann auf "i" drücken - damit bist Du im insert modus. Nun gibts Du als erstes folgendes ein: Dann jeden Deiner Befehle in eine neue Zeile. Bist Du mit der Eingabe fertig drückst Du auf <escape> Dann :w - die Datei wird geschrieben Dann :q - Du verläßt die Datei Dann musst Du Deinen script noch execute Rechte geben. Dazu dient der Befehl chmod ug+x <dateinamen> (der Inhaber der Datei und die Gruppe bekommt Ausführungsrechte) Jetzt wird das script bei jeden reboot ausgeführt. Ah ja, zum testen kannst Du das script natürlich auch laufen lassen, dazu im obigen Verzeichnis "./<scriptname>" auf der Kommandozeile eingeben lg Peter
|
|
|
Post by edgar on Apr 9, 2009 22:00:41 GMT 7
Hi, Hallo, Salut, Hola, Shalom, Konishiwa... Does it worth having this post in English ? One may be interrested... Ra
|
|
|
Post by peterfu on Apr 9, 2009 22:51:33 GMT 7
Sorry, You are right - thats an international forum.
Short summary: Manual installation works with some hacks, changes done in the directories: /usr/bin /var/log /var/cache are gone after a reboot and Hrvat wants to create a script for that. The easiest way - in my opinion - would be to install the META module and place a script in the /raid/data/module/META/system/etc/startup folder, cause the module executes on reboot all scripts in this folder. The rest is stuff how to start a script in the first line and how to use vi - the standard editor.
br Peter
|
|
Hrvat
New Member
Posts: 12
|
Post by Hrvat on Apr 10, 2009 5:25:57 GMT 7
hello ,
sorry for my bad english ...
i have not time yet to make a script , i'm drivin to croatia for business ...
download the gnump3d extract the files ... copy the gnump3d directory to /raid0/data/modules/gnump3d
look in the makefile
these directories must be created with the script , without /etc/gnump3d
then you must create an symlink to perl interpreter (with script too)
ln -s /raid0/data/module/PERL/perl/bin/perl /usr/bin/perl
now you create the /etc/gnump3d directory (/etc directory dont change after reboot) and copy the files from /raid0/data/modules/gnump3d/etc
so we have all required directories
now we create (with script) two files
touch /var/log/gnump3d/access.log touch /var/log/gnump3d/error.log
now copy (with the script) the files from the source /raid0/data/modules/gnump3d to Installation Directories
now we take a look in the config file gnump3d.conf
edit your gnump3d.conf to your need i used ut_joe (from the utils module) (vi sucks sorry peterfu ;-D)
in the gnump3d.conf , edit the follow variable to
well , now make an test
./raid0/data/modules/gnump3d/gnump3d2 --test
so thats all folks
i'll make a script when im back from croatia in 1 or 2 months
if i have time i take a look here, to see how the feedback is ...
greets Hrvat
|
|