aMule Forum

Spanish => aMule Ayuda => Topic started by: NeoRagod on April 24, 2006, 04:18:37 AM

Title: Compilar sin las X
Post by: NeoRagod on April 24, 2006, 04:18:37 AM
Bueno ando configurando un sistema nuevo basado en Gentoo, pero hasta ahora todo a sido X free (osea sin X11) y veo que el amule practicamente me obliga a compilar algunas cosas de X, existe una forma para compilarlo y solo se use via consola o webserver o remote GUI ??

Code: [Select]
Luna-sama USER # USE="amuled" emerge -pv amule

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] media-libs/libpng-1.2.8-r1  -doc 0 kB
[ebuild  N    ] app-admin/eselect-1.0  -bash-completion -doc 142 kB
[ebuild  N    ] app-admin/eselect-opengl-1.0.3  41 kB
[ebuild  N    ] x11-base/opengl-update-3.0.0  0 kB
[ebuild  N    ] media-libs/freetype-2.1.9-r1  -bindist -doc +zlib 0 kB
[ebuild  N    ] media-libs/fontconfig-2.2.3  0 kB
[ebuild  N    ] x11-apps/ttmkfdir-3.0.9-r3  19 kB
[ebuild  N    ] x11-base/xorg-x11-6.8.2-r6  -3dfx -3dnow +bitmap-fonts -cjk -debug -dlloader -dmx -doc -font-server -insecure-drivers +ipv6 -minimal +mmx +nls -nocxx +opengl +pam -sdk -sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv 45,134 kB
[ebuild  N    ] app-arch/rpm2targz-9.0-r3  2 kB
[ebuild  N    ] sys-apps/utempter-0.5.5.6  20 kB
[ebuild  N    ] x11-terms/xterm-207  -Xaw3d -doc -toolbar +truetype -unicode 727 kB
[ebuild  N    ] x11-libs/cairo-1.0.4  +X -doc -glitz +png 1,441 kB
[ebuild  N    ] x11-libs/pango-1.10.3  -debug -doc 1,157 kB
[ebuild  N    ] dev-libs/atk-1.10.3  -debug -doc -static 529 kB
[ebuild  N    ] dev-perl/XML-Parser-2.34  -minimal 224 kB
[ebuild  N    ] dev-util/intltool-0.34.1  127 kB
[ebuild  N    ] x11-misc/shared-mime-info-0.16  735 kB
[ebuild  N    ] x11-libs/gtk+-2.8.12  -debug -doc +jpeg -tiff -xinerama 11,722 kB
[ebuild  N    ] media-libs/tiff-3.7.3  0 kB
[ebuild  N    ] media-libs/libmad-0.15.1b  -debug 490 kB
[ebuild  N    ] media-libs/lcms-1.14-r1  +jpeg +python -tiff +zlib 653 kB
[ebuild  N    ] media-libs/libmng-1.0.8-r1  497 kB
[ebuild  N    ] app-text/poppler-0.5.0-r5  -cairo +jpeg 0 kB
[ebuild  N    ] net-print/cups-1.1.23-r7  -gnutls +nls +pam +samba -slp +ssl 0 kB
[ebuild  N    ] x11-libs/qt-3.3.4-r8  +cups -debug -doc -examples -firebird +gif -immqt -immqt-bc +ipv6 +mysql -nas -odbc +opengl -postgres -sqlite -xinerama 14,101 kB
[ebuild  N    ] media-libs/libogg-1.1.2  410 kB
[ebuild  N    ] kde-base/kde-env-3-r4  0 kB
[ebuild  N    ] media-libs/libvorbis-1.1.0  -aotuv 1,281 kB
[ebuild  N    ] media-sound/esound-0.2.36-r1  +alsa -debug +ipv6 -static +tcpd 0 kB
[ebuild  N    ] kde-base/arts-3.4.3  +alsa +arts -artswrappersuid -debug +esd -hardened -jack -kdeenablefinal +mp3 -nas +vorbis -xinerama 922 kB
[ebuild  N    ] dev-lang/nasm-0.98.39-r1  -build -doc 531 kB
[ebuild  N    ] media-libs/libsdl-1.2.8-r1  +X -aalib +alsa +arts -dga -directfb +esd -fbcon -ggi -libcaca -nas -noaudio -noflagstrip -nojoystick -novideo +opengl +oss -pic -svga -xinerama +xv 2,541 kB
[ebuild  N    ] media-libs/libmikmod-3.1.11-r1  +alsa +esd +oss 597 kB
[ebuild  N    ] media-libs/sdl-sound-1.0.1-r1  -flac +mikmod -physfs -speex +vorbis 995 kB
[ebuild  N    ] x11-libs/wxGTK-2.6.2-r1  +X -debug -doc -gnome -joystick -odbc +opengl +sdl -unicode 12,753 kB
[ebuild  N    ] net-p2p/amule-2.0.3-r4  +amuled -debug -gtk +nls -remote -stats -unicode 2,103 kB

Total size of downloads: 99,908 kB
Luna-sama USER #
Title: Re: Compilar sin las X
Post by: Ramiro on April 24, 2006, 10:01:19 AM
Para compilar sin X:

./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon
Title: Re: Compilar sin las X
Post by: NeoRagod on April 24, 2006, 10:10:42 AM
Mmmm eso seria desde las sources... Hay alguna forma para hacerlo con el emerge de gentoo?
Title: Re: Compilar sin las X
Post by: AnimAlf on April 24, 2006, 12:30:50 PM
si utilizas el ebuild que se creó por estos lares para el amule-cvs puedes hacer
Code: [Select]
USE="-X amuled -gtk remote -remote-gui unicode optimize" emerge -vB amule-cvs
En la versión normal es así
Code: [Select]
USE="-gtk amuled nls remote unicode" emerge -vB amule
NOTA: Te harán falta las wxBase que ya no son un paquete aparte para conseguirlo:
Code: [Select]
USE="-X -gnome -opengl -sdl unicode" emerge wxGTK
Title: Re: Compilar sin las X
Post by: AnimAlf on April 24, 2006, 12:32:53 PM
quita lo del -vB sería sólo para crear el paquete e instalarlo luego
Title: Re: Compilar sin las X
Post by: NeoRagod on April 24, 2006, 10:19:23 PM
Mmmm una asi el wxGTK me obliga a instalar muchas cosas de X11 alguna otra idea? :P
Title: Re: Compilar sin las X
Post by: wuischke on April 24, 2006, 10:48:34 PM
Hay que instalar wxBase si no se quiere X.
Title: Re: Compilar sin las X
Post by: AnimAlf on April 25, 2006, 12:12:57 AM
Quote
NeoRagod:
Mmmm una asi el wxGTK me obliga a instalar muchas cosas de X11 alguna otra idea?
¿te obliga a eso?
¿qué te obliga a instalar? yo he probado eso mismo desde un entorno chroot, aunque lo tengo ya un poco viciado. Quizás sobra algo en el USE. ¿qué te quiere instalar?
Title: Re: Compilar sin las X
Post by: darksidex on April 28, 2006, 10:29:14 PM
a mi lo que me preocupa es la versión del amule que te quiere instalar, la 2.0.3? Aunque la 2.1.1 esté marcada como inestable dentro de portage, te recomiendo que configures tu /etc/portage/package.keywords para que te deje usar las últimas versiones de amule.
Title: Re: Compilar sin las X
Post by: NeoRagod on April 29, 2006, 09:38:56 AM
Bueno ver si hago eso, que ando pensando en pasarme a otro cliente, es que queiro mi server completamente X11 free
Title: Re: Compilar sin las X
Post by: AnimAlf on April 29, 2006, 11:07:52 AM
creo que tienes que revisar los USE de las dependencias que se te quieren instalar, las más immediatas, hay alguna cosas en ellas que te plantea las instalaciones de los paquetes para las X. Voy a probarlo yo también, je je je, así me creo en entorno chrood virgen de nuevo, que ya me toca, aunque tardaré, pero creo que los tiros van por ahí (/etc/portage/package.use), a ver si logramos así una mejor definición de este modo de intalación .
Title: Yo lo he hecho
Post by: pcmaster on April 29, 2006, 11:42:39 AM
A ver si puedo ayudarte. Yo tengo instalado amuled-2.1.1 en un PC sin las X y con unicode. Me costó bastante tiempo conseguirlo.

Lo primero es conseguir instalar wxGTK con soporte unicode pero sin X. Cuando lo instalé el último ebuild oficial era el wxGTK-2.6.2-r1, que no me lo permitía. En algún sitio (creo que fue en el bugzilla de gentoo) encontré un ebuild NO oficial que me lo permitió instalar (wxGTK-2.6.2-r2):

Pentium1 ~ # ACCEPT_KEYWORDS="~x86" USE="-X" emerge -pv =wxGTK-2.6.2-r2                                        

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] x11-libs/wxGTK-2.6.2-r2  -X -debug -doc -gnome -joystick -odbc -opengl -sdl +unicode 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
Pentium1 ~ #

Ahora veo que, aunque dicha versión no está en el portage, ha salido un ebuild oficial para la versión 2.6.3.2 que quizá lo permita. No lo he podido probar porque tengo una avería en el ADSL y ahora mismo ese pc no tiene conexión.

Prueba a actualizar el árbol de portage con emerge sync, y después a instalar la última versión inestable de wxGTK con al orden:

ACCEPT_KEYWORDS="~x86" USE="-X unicode" emerge -pv wxGTK

Si todavía intenta instalar algo de las X, puedes añadirle -gtk, -gtk2, etc a los use.

Después intentas instalar la última versión de amule, también inestable, que es la 2.1.1. Deberá instalar correctamente.

Nota: te recuerdo que, en vez de usar el ACCEPT_KEYWORDS="~x86" es preferible añadir los paquetes inestables en /etc/portage/package.keywords. para que se instale la última versión de amule añades en dicho archivo una línea que ponga:

net-p2p/amule ~x86

Si te hace falta el ebuild no oficial de wxGTK-2.6.2-r2 pídemelo y lo añadiré en este hilo, aunque si te funciona con la versión 2.6.3.2 no te hará falta.

Pruébalo y nos cuentas.

Saludos.
Title: Re: Compilar sin las X
Post by: NeoRagod on April 29, 2006, 11:12:54 PM
Pos por ahora ya reduje bastante eliminando las X, pero aun me pide que compile el GTK


Luna-sama~ # USE="-X unicode -opengl -sdl -jpeg -gtk2 -png" emerge -pv wxGTK

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] x11-libs/cairo-1.0.4  -X -doc -glitz -png 0 kB
[ebuild  N    ] x11-libs/pango-1.10.3  -debug -doc 0 kB
[ebuild  N    ] dev-libs/atk-1.10.3  -debug -doc -static 0 kB
[ebuild  N    ] dev-perl/XML-Parser-2.34  -minimal 0 kB
[ebuild  N    ] dev-util/intltool-0.34.1  0 kB
[ebuild  N    ] x11-misc/shared-mime-info-0.16  0 kB
[ebuild  N    ] x11-libs/gtk+-2.8.12  -debug -doc -jpeg -tiff -xinerama 0 kB
[ebuild  N    ] media-libs/tiff-3.7.3  0 kB
[ebuild  N    ] x11-libs/wxGTK-2.6.2-r1  -X -debug -doc -gnome -joystick -odbc -opengl -sdl +unicode 12,753 kB
Total size of downloads: 12,753 kB
No estaba masked

Mira que si no hay manera , compilaria el GTK, pero el ebuild que tienes me eliminaria la necesidad del GTK?

De antemano gracias por la ayuda ;)
Title: Re: Compilar sin las X
Post by: pcmaster on April 29, 2006, 11:28:24 PM
Estás intentando instalar la versión 2.6.2-r1, que es la última estable. Con esa, yo tampoco lo conseguí. Si has leído mi mensaje, te decía que probases con la ultima versión inestable:

http://packages.gentoo.org/search/?sstring=wxGTK


# echo x11-libs/wxGTK ~x86 >>/etc/portage/package.keywords
# USE="-X -sdl " emerge -pv =wxGTK

Te intentará instalar la versión 2.6.3.2. Si te funciona, bien. Si no, te paso el ebuild no oficial. Con él, no te hará falta ni tener instalado xorg ni las gtk. Pero primero prueba si te funciona con el último ebuild oficial.

Si intentas instalar las GTK, verás que al intentar instalarlas te pedirá las Xorg. Demasiado software que no se va a usar...

Si no tienes la versión 2.6.3.2 en el árbol de portage, haz primero un emerge sync.
Title: Re: Compilar sin las X
Post by: NeoRagod on April 30, 2006, 12:43:59 AM
Vaya ahora ya capto mejor, es que no habia entendido bien que era la inestable >_> por eso no me la ponia en masked

Ahora si:

Luna-sama~ # USE="-X -sdl unicode" emerge -pv =wxGTK

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] x11-libs/wxGTK-2.6.3.2  -X -debug -doc -gnome -joystick -odbc +opengl -sdl +unicode 18,502 kB

Total size of downloads: 18,502 kB


Ya lo dejé compilando, veremos cuanto tarda en mi server a 1GHZ con proc Via Eden.

Luego intentaré con el amuled. Gracias ^^
Title: Re: Compilar sin las X
Post by: NeoRagod on April 30, 2006, 01:18:14 AM
Bueno para ser que ya


Luna-sama~ # emerge -pv amule

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] media-libs/gd-2.0.33  -fontconfig +jpeg +png +truetype -xpm 0 kB
[ebuild  N    ] net-p2p/amule-2.0.3-r4  +amuled -debug -gtk +nls +remote +stats +unicode 2,103 kB

Total size of downloads: 2,103 kB



Perfecto para lo que queria, GRACIAS  :baby:
Y creo que la ebuild modificada no sera necesaria.
Title: Re: Compilar sin las X
Post by: NeoRagod on April 30, 2006, 03:06:24 AM
Bueno me ha sucedido algo extraño, segun configuro en el config file



[eMule]
AppVersion=aMule 2.0.3
Nick=Luna-sama
QueueSizePref=50
MaxUpload=0
MaxDownload=0
SlotAllocation=2
Port=3000
UDPPort=3010
UDPDisable=0
Autoconnect=1
MaxSourcesPerFile=300
MaxConnections=500
MaxConnectionsPerFiveSeconds=20
RemoveDeadServer=1
DeadServerRetry=2
ServerKeepAliveTimeout=0
Reconnect=1
Scoresystem=1
Serverlist=0
AddServersFromServer=1
AddServersFromClient=1
SafeServerConnect=0
AutoConnectStaticOnly=0
SmartIdCheck=1
TempDir=/home/user/.aMule/Temp
IncomingDir=/home/user/.aMule/Incoming
ICH=1
AICHTrust=0
CheckDiskspace=1
MinFreeDiskSpace=1
AddNewFilesPaused=0
PreviewPrio=0
ManualHighPrio=0
FullChunkTransfers=1
StartNextFile=0
StartNextFileSameCat=0
FileBufferSizePref=16
DAPPref=1
UAPPref=1
OSDirectory=/home/user/.aMule/
OnlineSignature=0
OnlineSignatureUpdate=5
EnableTrayIcon=0
MinToTray=0
ConfirmExit=0
TransferDoubleClick=1
StartupMinimized=0
3DDepth=10
ToolTipDelay=1
ShowOverhead=0
ShowInfoOnCatTabs=0
ShowRatesOnTitle=0
VideoPlayer=
VideoPreviewBackupped=1
StatGraphsInterval=3
statsInterval=30
DownloadCapacity=3
UploadCapacity=3
StatsAverageMinutes=5
VariousStatisticsMaxValue=100
SeeShare=2
FilterLanIPs=1
IPFilterAutoLoad=1
IPFilterURL=
FilterLevel=127
FilterMessages=0
FilterAllMessages=0
MessagesFromFriendsOnly=0
MessageFromValidSourcesOnly=1
FilterWordMessages=0
MessageFilter=
ShareHiddenFiles=0
AutoSortDownloads=0
NewVersionCheck=0
Language=
SplitterbarPosition=75
YourHostname=
DateTimeFormat=%A, %x, %X
IndicateRatings=1
AllcatType=0
ShowAllNotCats=0
DisableKnownClientList=0
DisableQueueList=0
MaxMessageSessions=50
PermissionsFiles=416
PermissionsDirs=488
[FakeCheck]
Browser=0
BrowserTab=1
CustomBrowser=
[Proxy]
ProxyEnableProxy=0
ProxyType=0
ProxyName=
ProxyPort=1080
ProxyEnablePassword=0
ProxyUser=
ProxyPassword=
[ExternalConnect]
ExtractMetaDataTags=0
FullChunkAlloc=0
FullPartAlloc=0
AcceptExternalConnections=1
ECUseTCPPort=0
ECPort=4712
ECPassword=passwordXD
ShowProgressBar=1
ShowPercent=0
UseSrcSeeds=0
UseSecIdent=1
IpFilterOn=1
[WebServer]
Enabled=1
Password=passwordXD
PasswordLow=
Port=4711
UseGzip=1
UseLowRightsUser=0
PageRefreshTime=120
[Razor_Preferences]
FastED2KLinksHandler=1
FullQueueSources=0
HighQueueRankingSources=0
HighQueueRanking=1200
AutoDropTimer=240
NoNeededSourcesHandling=2
[SkinGUIOptions]
UseSkinFile=0
SkinFile=
[Statistics]
TotalDownloadedBytes=0
TotalUploadedBytes=0
DesktopMode=4


Pero al momento de executar el amuled


usuario@Luna-sama ~ $ amuled
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
Loading temp files from /home/neoragod/.aMule/Temp.

All PartFiles Loaded.
ListenSocket: Ok.

External connections disabled in config file
*** Server UDP socket (TCP+3) at 0.0.0.0:3003
*** TCP socket (TCP) listening on 0.0.0.0:3000
*** Client UDP socket (extended eMule) at 0.0.0.0:3010
Empty dir /home/neoragod/.aMule/Incoming/ shared
General: CamuleDaemonApp::OnRun()



No me crea el 4712 ni 4711 >_>

La info de netstats

user@Luna-sama ~ $ netstat -ntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:1991            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:1226            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:1386            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:1450            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:22              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:3000            0.0.0.0:*               LISTEN



que puede ser.
Title: Re: Compilar sin las X
Post by: pcmaster on April 30, 2006, 11:46:42 AM
Yo lo inicio con:

# /etc/init.d/amuled start

A mí me funciona. Prueba a ver.

Y eso que mi servidor es mucho más pequeñito que el tuyo: Pentium-s a 120 Mhz (no mmx) con 128 MB RAM y disco duro 40 GB.

Y un consejo: actualiza a la versión 2.1.1. Tiene algunas correcciones sobre la 2.0.3, como por ejemplo la posibilidad de renombrar un archivo que estás bajando.
Title: Re: Compilar sin las X
Post by: NeoRagod on April 30, 2006, 05:12:38 PM
YA ando compilando la 2.1.1 ^^

veremos si funciona, ya que en el config file no vi ningun error....
Title: Re: Compilar sin las X
Post by: NeoRagod on April 30, 2006, 06:12:28 PM
# /etc/init.d/amuled start

no me convence por ser root. en fin

me corre el amuled:


user@Luna-sama~  $ amuled
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
Loading temp files from /home/user/.aMule/Temp.

All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:3003
*** TCP socket (TCP) listening on 0.0.0.0:3000
*** Client UDP socket (extended eMule) at 0.0.0.0:3010
Empty dir /home/user/.aMule/Incoming shared


me corre el amuleweb:

user@Luna-sama ~/.aMule $ amuleweb
This is amuleweb 2.1.1

Creating client...
Succeeded! Connection established to aMule 2.1.1

--------------------------------------
|          aMule Web Server          |
--------------------------------------

Use 'Help' for command list

Web Server: Started

WSThread: Thread started
aMuleweb$ WSThread: created socket listening on :4711


Mas si intento entrar al amuleweb via Browser simplemente no me deja, me deja entrar a la interface con mi password, pero un vez dentro, si le doy click a transfers o lo que sea, me manda al login screen.

Cada vez es menos  :P
Title: Re: Compilar sin las X
Post by: NeoRagod on April 30, 2006, 06:22:07 PM
WTF!!!!!!!!!!

OK, por simple curiosidad intente entrar desde el IE y ENTRÖ!!!!

Como es que con firefox no >_>.
Title: Re: Compilar sin las X
Post by: pcmaster on April 30, 2006, 07:12:20 PM
Quote
Originally posted by NeoRagod
# /etc/init.d/amuled start

no me convence por ser root.

Amuled se ejecuta con el usuario que le digas. Mira en /etc/conf.d/amuled.
Title: Re: Compilar sin las X
Post by: NeoRagod on April 30, 2006, 07:46:55 PM
Pos si, pero aun asi me entra en el IE pero cuando le doy conectar a algun server nada pasa ?(

Arg!!! dios que molesto soy  :]
Title: Re: Compilar sin las X
Post by: pcmaster on May 01, 2006, 11:23:01 AM
¿Has probado el amulegui?
Title: Re: Compilar sin las X
Post by: NeoRagod on May 01, 2006, 07:40:07 PM
Sip, curiosamente eso andaba configurando y me va perfecto ^^

Gracias por todo pcmaster 8)
Title: Re: Compilar sin las X
Post by: pcmaster on May 02, 2006, 12:04:28 AM
De nada, hombre. Para eso estamos.
Title: Re: Compilar sin las X
Post by: doragasu on November 01, 2006, 11:59:27 AM
Ayuda con aMuleGUI

He encontrado este hilo sobre compilar sin las X y me ha parecido francamente interesante. He estado siguiendo los pasos y ya tengo amuled configurado. Lo lanzo como servicio sin problema, pero luego al intentar conectarme con aMuleGUI desde mi máquina Windows no soy capaz. Lanzo aMuleGUI y me pregunta el host (donde pongo la IP de mi máquina Linux) y la contraseña (donde pongo la que he establecido en amule.conf). Tras darle a conectar, no pasa nada. No se abre ninguna ventana de aMuleGUI, sin embargo el proceso se que se está ejecutando porque aparece en el Administrador de Tareas de Windows.

¿Qué puede estar fallando?

EDITO: He intentado probar también con aMuleCmd y tampoco parece que funcione. Lo lanzo así:

Code: [Select]
amulecmd -h 192.168.1.12 -P contraseña
Y me pone lo siguiente:

Code: [Select]
Esto es amulecmd 2.1.2

Creando cliente...

Y ahí se queda congelado.

¿Alguna idea?
Title: Re: Compilar sin las X
Post by: doragasu on November 01, 2006, 01:43:14 PM
Ya di con el problema. Lo pongo por si a alguien le ocurre también.

Mi error es que había puesto la contraseña en el fichero amule.conf sin encriptar. La he puesto encriptada y ya me funciona perfectamente desde entonces.
Title: Re: Compilar sin las X
Post by: Kry on November 01, 2006, 03:47:26 PM
Yo ya me lo esperaba antes de leer tu post ;)
Title: Re: Compilar sin las X
Post by: doragasu on November 01, 2006, 11:11:08 PM
Es lo que tiene ser un novato total... :(