aMule Forum
English => aMule Help => Topic started by: sulliwane on June 22, 2010, 06:41:08 PM
-
Hi there !
thanks to the devellopers of amule, great job !
i installed amule, then amuled and finally amuleweb on my ubuntu 9.10 server
by default, everything works fine.
But i'd like to customize some preferences like UDP/TCP port, incoming folder, make amuleweb running permanently. All of that using a bash terminal !
here are the steps i followed :
- stop amuled (#/etc/init.d/amule-daemon stop)
-i edited /home/me/.aMule/amule.conf
-changed the incoming folder, and the port.
-saved amule.conf
-launched amuled (#/etc/init.d/amule-daemon start)
i got a crash from amuled, or the amule.conf is resumed (overwrite by a default amule.conf, and i lose all my modifications) !!
and concerning amuleweb, i don't know how to make it running permanently (exempt me to open a new terminal, and type "amuleweb" to launch it)
Please, someone could help me to solve that problem ..??
thanks a lot,
cheers from france (sorry for my baad english)
victor
-
Could you attach the config file? Perhaps there's a syntax error in it.
-
thanks a lot for your reply.
Here is my config file : http://55brux.fr/amule.conf.txt
in this config file, i just tried to change the incoming directory.
maybe your right, because i succeeded to change my password (for amuleweb) without any problem.
Here is my remote.conf for amuleweb : http://55brux.fr/remote.conf.txt (http://55brux.fr/remote.conf.txt)
two more question : 1-does the amuled process be stopped before make modifications in the amule.conf file ?
2- i never run amule in my case (just amuled) no problem with that ? (it runs on a server, no GUI. i thought amuled is like amule, just miss the GUI. Maybe i'm wrong, and start amule is needed in some ways....just wondering
thanks !
-
ah, and i got this message after trying to launch amuled by #amuled bash command
Current version is: aMuled 2.2.6 using wxGTK2 v2.8.10
Running on: Linux 2.6.31-20-server x86_64
[2] ?? in amuled [0x42dc14]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0x7f8d3732e57c]
[4] ?? in /lib/libpthread.so.0 [0x7f8d386db190]
[5] GSocket::Input_Timeout() in /usr/lib/libwx_baseu_net-2.8.so.0[0x7f8d375bbebf ]
[6] GSocket::Read(char*, int) in /usr/lib/libwx_baseu_net-2.8.so.0[0x7f8d375bbf5 d]
[7] wxSocketBase::_Read(void*, unsigned int) in /usr/lib/libwx_baseu_net-2.8.so. 0[0x7f8d375b7f49]
[8] wxSocketBase::Peek(void*, unsigned int) in /usr/lib/libwx_baseu_net-2.8.so.0 [0x7f8d375b8065]
[9] wxProtocol::ReadLine(wxSocketBase*, wxString&) in /usr/lib/libwx_baseu_net-2 .8.so.0[0x7f8d375b2f35]
[10] wxHTTP::ParseHeaders() in /usr/lib/libwx_baseu_net-2.8.so.0[0x7f8d375b149c]
[11] wxHTTP::BuildRequest(wxString const&, wxHTTP::wxHTTP_Req) in /usr/lib/libwx _baseu_net-2.8.so.0[0x7f8d375b2277]
[12] wxHTTP::GetInputStream(wxString const&) in /usr/lib/libwx_baseu_net-2.8.so. 0[0x7f8d375b268d]
[13] ?? in amuled [0x493f8a]
[14] ?? in amuled [0x4944a6]
[15] wxThreadInternal::PthreadStart(wxThread*) in /usr/lib/libwx_baseu-2.8.so.0[ 0x7f8d373299a1]
[16] ?? in /lib/libpthread.so.0 [0x7f8d386d2a04]
[17] clone in /lib/libc.so.6[0x7f8d3680680d]
got that too :
All PartFiles Loaded.
No shareable files found in directory: /root/.aMule/Incoming
and here is my .aMule folder :
-rw-r--r-- 1 victor victor 78 2010-05-10 20:40 addresses.dat
-r-xr-xr-- 1 victor victor 2957 2010-06-23 10:34 amule.conf
-rw-r--r-- 1 victor victor 1396232 2010-06-22 18:17 clients.met
-rw-r--r-- 1 victor victor 1396232 2010-06-22 18:17 clients.met.BAK
-rw-r--r-- 1 victor victor 365 2010-05-10 20:40 cryptkey.dat
-rw------- 1 victor victor 0 2010-05-10 20:40 ED2KLinks_lock
-rw-r--r-- 1 victor victor 5 2010-06-22 18:17 emfriends.met
drwxr-xr-x 2 victor victor 4096 2010-06-09 16:43 Incoming
-rw-r--r-- 1 victor victor 182 2010-05-10 20:40 ipfilter.dat
-rw-r--r-- 1 victor victor 298 2010-05-10 20:40 ipfilter_static.dat
-rw-r--r-- 1 victor victor 28 2010-06-22 18:17 key_index.dat
-rw-r--r-- 1 victor victor 146817 2010-06-09 16:43 known2_64.met
-rw-r--r-- 1 victor victor 20925 2010-06-22 18:17 known.met
-rw-r--r-- 1 victor victor 6 2010-06-22 18:17 lastversion
-rw-r--r-- 1 victor victor 0 2010-06-22 18:17 last_version_check
-rw-r--r-- 1 victor victor 12 2010-06-22 18:17 load_index.dat
-rw-r--r-- 1 victor victor 1538 2010-06-22 18:17 logfile
-rw-r--r-- 1 victor victor 1538 2010-06-22 18:17 logfile.bak
-rw-r--r-- 1 victor victor 6812 2010-06-22 18:17 nodes.dat
-rw-r--r-- 1 victor victor 17 2010-06-22 18:17 preferences.dat
-rw-r--r-- 1 victor victor 23 2010-06-22 18:17 preferencesKad.dat
-rw-r--r-- 1 victor victor 237 2010-05-10 22:27 remote.conf
-rw-r--r-- 1 victor victor 247 2010-06-22 18:17 server.met
-rw-r--r-- 1 victor victor 247 2010-06-22 17:41 server_met.old
-rw-r--r-- 1 victor victor 0 2010-06-22 18:17 shareddir.dat
-rw-r--r-- 1 victor victor 12 2010-06-22 18:17 src_index.dat
drwxr-xr-x 2 victor victor 4096 2010-06-22 18:17 Temp
drwxr-xr-x 6 victor victor 4096 2010-05-10 23:14 webserver
-
Regarding the amuled crash:
It should be fixed (http://forum.amule.org/index.php?topic=17781.0) in the latest SVN version (http://amule.sourceforge.net/tarballs/tarballs.xml).
What amuled version do you use btw.?
EDIT: Just saw you use 2.2.6. Please try the SVN version then.
You are correct in thinking the amuled is amule without the gui. So your scenario is a perfectly valid one.
Regarding the config files:
I have to check them on the developer machine. I get back to you later.
-
does the amuled process be stopped before make modifications in the amule.conf file ?
Yes, if you make any modifications to amule.conf while amule or amuled is running, they will be overwritten on exit.
Please make sure that "etc/init.d/amule-daemon stop" really stops amuled.
-
1 - do you mean i have to compile amule sources? does exist a .deb ? (i'm not familiar with compiling sources...:o) (SVN, does it means subversion ??)
2 - how can i make sure that "etc/init.d/amule-daemon stop" really kill the process ?
thanks ,
victor
-
#./configure
configure: error:
wxWidgets must be installed on your system but wx-config
script couldn't be found. Please check that wx-config is
in path or specified by --with-wx-config=path flag, the
directory where wxWidgets libraries are installed (returned
by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
equivalent variable and wxWidgets version is 2.8.8 or above.
then
#apt-get install libwxgtk2.6-dev
then
#./configure
configure: error:
The requested wxWidgets build couldn't be found.
The configuration you asked for aMule requires a wxWidgets
build with the following settings:
--unicode=yes
but such build is not available.
To see the wxWidgets builds available on this system, please use
'wx-config --list' command. To use the default build, returned by
'wx-config --selected-config', use the options with their 'auto'
default values.
If you still get this error, then check that 'wx-config' is
in path, the directory where wxWidgets libraries are installed
(returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
or equivalent variable and wxWidgets version is 2.8.8 or above.
then
# wx-config --list
Default config is gtk2-unicode-release-2.6
Default config will be used for output
Alternate matches:
base-unicode-release-2.6
what's wrong....all seems to be fine...but ./configure display that error.. ?!!
-
what's wrong....all seems to be fine...but ./configure display that error.. ?!!
Both error messages end with "and wxWidgets version is 2.8.8 or above". You have just installed the development packages for 2.6.
how can i make sure that "etc/init.d/amule-daemon stop" really kill the process ?
After stopping amuled with "/etc/init.d/amule-daemon stop", execute "ps -A | grep amule" to whether it reports any amule(d) processes still running.
-
thanks for your reply,
1- Now i see that line you're talking about : "checking for wxWidgets version >= 2.8.8 (--unicode=yes)... no (version 2.6.3 is not new enough)"
but i don't get the meaning...does it imply that i have to upgrade my kernel ? how can i solve that issue so ? sorry, but it's not clear to me, and i still don't know what to do...
2- okay, there no sign of amule process after executed #/etc/init.d/amule-daemon stop
thanks yet !
victor
-
1- i just understood that the version of wxwidgets i'm using is too old. So do i have to compile a new one ?
if yes, which version do i have to compile, and do i have to uninstal the old version before compiling/installing the new one ?
tkx !
-
i downloaded wxwidgets tar.gz, the try to compile it
#./configure
is ok
but
#make -j2
display after 1 minute
./include/wx/gsocket.h:40: error: using typedef-name ‘GSocket’ after ‘class’
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a previous declaration here
In file included from ./include/wx/gsocket.h:179,
from ./src/gtk/gsockgtk.cpp:21:
./include/wx/unix/gsockunx.h:40: error: using typedef-name ‘GSocket’ after ‘class’
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a previous declaration here
./src/gtk/gsockgtk.cpp: In function ‘void _GSocket_GDK_Input(void*, gint, GdkInputCondition)’:
./src/gtk/gsockgtk.cpp:34: error: ‘struct _GSocket’ has no member named ‘Detected_Read’
./src/gtk/gsockgtk.cpp:36: error: ‘struct _GSocket’ has no member named ‘Detected_Write’
./src/gtk/gsockgtk.cpp: In member function ‘virtual bool GSocketGUIFunctionsTableConcrete::Init_Socket(GSocket*)’:
./src/gtk/gsockgtk.cpp:56: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’
./src/gtk/gsockgtk.cpp:57: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’
./src/gtk/gsockgtk.cpp: In member function ‘virtual void GSocketGUIFunctionsTableConcrete::Destroy_Socket(GSocket*)’:
./src/gtk/gsockgtk.cpp:67: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’
./src/gtk/gsockgtk.cpp: In member function ‘virtual void GSocketGUIFunctionsTableConcrete::Install_Callback(GSocket*, GSocketEvent)’:
./src/gtk/gsockgtk.cpp:72: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’
./src/gtk/gsockgtk.cpp:75: error: ‘struct _GSocket’ has no member named ‘m_fd’
./src/gtk/gsockgtk.cpp:83: error: ‘struct _GSocket’ has no member named ‘m_server’
./src/gtk/gsockgtk.cpp:90: error: ‘struct _GSocket’ has no member named ‘m_fd’
./src/gtk/gsockgtk.cpp: In member function ‘virtual void GSocketGUIFunctionsTableConcrete::Uninstall_Callback(GSocket*, GSocketEvent)’:
./src/gtk/gsockgtk.cpp:98: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’
./src/gtk/gsockgtk.cpp:108: error: ‘struct _GSocket’ has no member named ‘m_server’
make: *** [coredll_gtk_gsockgtk.o] Error 1
make: *** Waiting for unfinished jobs....
wonder i can execute #make install or this is a serious error...
if i succeed to install wxwidget 2.8.10 then i could install amule last version, and then...my problems would be done !
any idea ?
-
1- i just understood that the version of wxwidgets i'm using is too old. So do i have to compile a new one ?
Your distro should offer a more current version. Is there no libwxgtk2.8-dev package available? What is your distro anyway?
There are lots of infos about compiling aMule (and wx) in the wiki.
You can't make install after a compilation error of course.
-
news ;D ;D
my previous error is due to the 2.8.10 version.
So i compiled/installed successfully the 2.8.11 version,
go back to amule tarball but...
always this message :
checking for wxWidgets version >= 2.8.8 (--unicode=yes)... no
configure: error:
The requested wxWidgets build couldn't be found.
The configuration you asked for aMule requires a wxWidgets
build with the following settings:
--unicode=yes
but such build is not available.
To see the wxWidgets builds available on this system, please use
'wx-config --list' command. To use the default build, returned by
'wx-config --selected-config', use the options with their 'auto'
default values.
If you still get this error, then check that 'wx-config' is
in path, the directory where wxWidgets libraries are installed
(returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
or equivalent variable and wxWidgets version is 2.8.8 or above.
though wxWidget 2.8.11 is installed
The installation of wxWidgets is finished. On certain
platforms (e.g. Linux) you'll now have to run ldconfig
if you installed a shared library and also modify the
LD_LIBRARY_PATH (or equivalent) environment variable.
wxWidgets comes with no guarantees and doesn't claim
to be suitable for any purpose.
Read the wxWidgets Licence on licencing conditions.
doing
#./configure
#make
#make install
#ldconfig
what should i do ?
hope someone can help me...
[edit] thanks for your reply [edit]
[edit 2]
i now compile/installed wxgtk_2.8.11-1_amd64.deb
but no way...it still doesn't work >:(
and still have that :
wx-config --list
Default config is gtk2-unicode-release-2.6
Default config will be used for output
Alternate matches:
base-unicode-release-2.6
could you give me some tracks ? thanks in advance
-
Remove the old packages first. Then install these:
- http://packages.ubuntu.com/hu/lucid/amd64/libwxgtk2.8-dev/download
- http://packages.ubuntu.com/hu/lucid/amd64/libwxgtk2.8-0/download
- http://packages.ubuntu.com/hu/lucid/amd64/libwxbase2.8-dev/download
-
thanks a lot for your reply...
i downloaded and installed these .deb and their depedencies,
so it's better now, i got a new error :
checking which wxWidgets toolkit was selected... base
configure: error:
The selected components need a wxWidgets library with GUI,
but your installation is base-only. Please install a GUI
enabled version of wxWidgets and then retry.
i work on a ubuntu server edition...i have no screen. is a GUI really usefull ? and so, how solve this new error message ?
-
In aMule's configure, disable everything that requires a GUI (this includes wxCas, etc). Most probably you only want amuled, amuleweb and amulecmd in your server.
-
hi,
i understand the aim of disabling everything that requires a GUI...but i just opened the file "configure" and there is a huge number of line....
do you really think it's possible to "disable everything that requires a GUI" ?? without spending 2 hours on the configure file ...? (where is wxcas, what do you mean by "etc", how to disable all of that...)
i'm really noob and think maybe it's easier to compile everything, and after disable amule and just let amuled running.
what do you think ? If so, how install WxWidget library with GUI ?
thanks
victor
-
When you run ./configure, you are telling the configure script to use the defaults for all values.
If you run "./configure --help" (without the quotes, of course), you will see a lot of options to fine-tune your aMule compilation. This is true for most applications you compile, not just aMule.
The important ones for you right now are:
--disable-monolithic disable building of the monolithic aMule app
--enable-amule-daemon compile aMule daemon version
--enable-amulecmd compile aMule command line client
--enable-webserver compile aMule WebServer
--enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
--enable-cas compile C aMule Statistics
--enable-wxcas compile aMule GUI Statistics
--disable-ed2k don't compile aMule ed2k links handler
--enable-alc compile aMuleLinkCreator GUI version
--enable-alcc compile aMuleLinkCreator for console
--enable-xas install xas XChat2 plugin
--enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
--enable-plasmamule compile aMule plasma applet and engine
Now, those are the defaults. For example, aMule monolithic (full aMule) is enabled by default. You want to disable anything that needs a GUI, and only leave what you want. In your case,
./configure --disable-monolithic --enable-amule-daemon --enable-webserver
should disable the only GUI thing enabled by default (aMule) and enable amuled and amuleweb. You can add "--enable-amulecmd" if you want to that line. Everything else is disabled by default except ed2k, which is a small app used for link handling and it doesn't matter much if you compile it or not in your server.
-
Hi kry,
thank you for your reply (very clear !)
i'd like everything would work perfectly this time...but i encounter a new problem (very sorry with all that trouble >:(
checking for libupnp version >= 1.6.6... no (try to use --with-libupnp-prefix=PREFIX)
configure: WARNING:
UPnP code has been disabled because libupnp >= 1.6.6 not found (try to use --with-libupnp-prefix=PREFIX).
checking for crypto++ version >= 5.1... no
configure: error:
Could not find crypto++ header file "cryptlib.h".
Please try again with --with-crypto-prefix=/my_crypto_prefix
(replace /my_crypto_prefix with a valid path to your crypto++
installation directory).
i don't find the file the error message is dealing with (cryptlib.h)
Should i add a magic option to ./configure ??
thank you again,
victor
[edit] solve with
apt-get install libcrypto++-dev
that's it :o)
-
then
make
then
checkinstall
and it has failed to install the debian package compiled before....
is libupnp required ? i'm going to give up....don't uderstand why it failed, and only if someone wants it, i can post the bug report.
thank you all for your reply,
bye
victor
-
is libupnp required ? i'm going to give up....don't uderstand why it failed, and only if someone wants it, i can post the bug report.
Add --disable-upnp as parameter when calling "./configure" so the UPNP code will not be compiled.