gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
76793 Posts in 13502 Topics by 1651 Members - Latest Member: Arnold99 November 21, 2024, 09:33:14 am
*
gfx*gfx
gfx
WinMX World :: Forum  |  WinMX Help  |  WinMX without Windows  |  For people having trouble uploading through wine
gfx
gfxgfx
 

Author Topic: For people having trouble uploading through wine  (Read 7838 times)

0 Members and 1 Guest are viewing this topic.

Offline Forested665

  • Forum Member
  • Linux:2003 FreeBSD:2004 Debian/BSD developer:2006
For people having trouble uploading through wine
« on: March 16, 2009, 02:02:10 am »
you are most likely using inetd or xinetd

The modifications listed here are for you to use at YOUR OWN RISK! they have been tested to acheive their goal but their security has not this may infact leave your set up vulnerable.

im not going to explain what this is...you can google or even wikipedia it yourself.
but heres the fix

the files we are going to be working with are as follows
/etc/inetd.conf
/etc/xinetd.conf (also uses PAM {can also google that yourself})
/etc/xinetd.d/
and for PAM we will also be using
etc/hosts.deny
etc/hosts.allow

warning-leave everything in the config alone and only add the following lines (after you replace the < > with their values) otherwise your internet for all general purposes will go BOOM!

For inetd

Code: [Select]
#wine   stream  tcp     nowait  <user>    <path to wine>
#winmx      stream  tcp     nowait.400      <user> <path to winmx.exe>

for xinetd

Code: [Select]
service wine
{
      socket_type         = stream
      wait                = no
      nice                = 10
      user                = <user>
      server              = <patch to wine>
      rlimit_as           = 8M
      rlimit_cpu          = 20
}

and

Code: [Select]
service winmx
{
      socket_type         = stream
      wait                = no.400
      nice                = 10
      user                = <user>
      server              = <path to winmx>
      rlimit_as           = 8M
      rlimit_cpu          = 20
}

For PAM
This is an extreme security risk (extreme for linux is clicking activex controls in IE)
and thus is not recomended for servers

in /etc/hosts.allow
Code: [Select]
ALL:ALL

and in /etc/hosts.deny
Code: [Select]
i suggest you add the blocklist your ISP and anyone else you dont trust
BSD -  The Daemons Are No Longer Just Inside My Head.

Offline Forested665

  • Forum Member
  • Linux:2003 FreeBSD:2004 Debian/BSD developer:2006
Re: For people having trouble uploading through wine
« Reply #1 on: March 17, 2009, 05:08:31 pm »
i forgot to mention you either net to restart the system or the inetd/xinetd and PAM modules
BSD -  The Daemons Are No Longer Just Inside My Head.

Offline Mr.Snicky

  • Forum Member
  • Yep?
Re: For people having trouble uploading through wine
« Reply #2 on: March 23, 2009, 04:05:22 am »
I still have yet to have problems uploading.

Offline GhostShip

  • Ret. WinMX Special Forces
  • WMW Team
  • *****
Re: For people having trouble uploading through wine
« Reply #3 on: March 23, 2009, 11:51:36 am »
I wasnt aware anyone was having problems with wine of this sort either.

Offline Lagerlout666

  • Forum Member
Re: For people having trouble uploading through wine
« Reply #4 on: March 23, 2009, 11:58:45 am »
The only thing i did on linux for uploads was set mine up to ignore the throttling stuff that comcast suffered
http://www.zeropaid.com/news/9608/guide_using_linux_to_beat_comcasts_bittorrent_throttling/

Not because i was suffering it, but others where so i thought id help out if i could by doing this and just replacing the ports with winmx ports.
The Solution to 99% of winmx problems

nap.winmxgroup.net        -ONLINE again YAY!!!!!! :D

Praise's daily at the church of "Kopimi"

Offline Forested665

  • Forum Member
  • Linux:2003 FreeBSD:2004 Debian/BSD developer:2006
Re: For people having trouble uploading through wine
« Reply #5 on: March 23, 2009, 10:25:18 pm »
ive come across 3 people having this issue and had it once myself (on sabayon)
two were using 2.4 kernel based distros (RHEL 9, other was an antiquated Debian)
and Kiaas on a 2.6 kernel using xubuntu
BSD -  The Daemons Are No Longer Just Inside My Head.

Offline nylly444

  • The /root of all evil ;-)
  • WMW Team
  • *****
    • WinMX World
Re: For people having trouble uploading through wine
« Reply #6 on: March 29, 2009, 10:32:33 am »
From the Linux manpage of hosts.deny:
Quote
This manual page describes a simple access control language that is based on client (host name/address, user name), and server (process name, host name/address) patterns.

This means hosts.allow and hosts.deny only works for services using client host name/address and user name like ssh, ftp, vnc etc, NOT for general p2p.
My hosts.allow only has very few entries in it and my hosts.deny contains ALL:ALL, so if this would be working for p2p I couldn't up- or download anything at all, lol

Of course IF you setup the service names in /etc/services correctly first so they're actually valid you might be able to add them in hosts.deny/hosts.allow, but then you wouldn't need ALL: as argument but the service name instead so you'd only control the access to those services ("wine" and "winmx" in your setup)

As to why spawning a daemon via inet.d/xinet.d is helping I'm kinda confused, lol.
I've been using winmx under wine on debian for quite a while now (>4 years) and have yet to experience any uploading problems....

The only thing I ever noticed is winmx sometimes having troubles resolving addresses, this can be fixed by either installing the package "winbind" (part of samba) or what I've actually done is set winmx to use external dns instead of resolving through the OS, i.e. I put in one of the openDNS addresses in settings > host name resolution in "use external DNS server".
LINUX - Legendary Intelligent Needful Universal Xperienced


Offline Forested665

  • Forum Member
  • Linux:2003 FreeBSD:2004 Debian/BSD developer:2006
Re: For people having trouble uploading through wine
« Reply #7 on: March 29, 2009, 04:54:55 pm »
And when you don't it goes through the Hosts file PAM and inet.
Unless you have reconfigured /etc/nsswitch.conf

Also seeing as wine has a "host" file theres a whole other world of options you can use for resolving DNS queries.
BSD -  The Daemons Are No Longer Just Inside My Head.

Offline Mr.Snicky

  • Forum Member
  • Yep?
Re: For people having trouble uploading through wine
« Reply #8 on: March 29, 2009, 05:06:39 pm »
You can use the regular Linux hosts file. It works just fine.

Offline Forested665

  • Forum Member
  • Linux:2003 FreeBSD:2004 Debian/BSD developer:2006
Re: For people having trouble uploading through wine
« Reply #9 on: March 29, 2009, 05:12:57 pm »
I never say you couldnt.
BSD -  The Daemons Are No Longer Just Inside My Head.

Offline nylly444

  • The /root of all evil ;-)
  • WMW Team
  • *****
    • WinMX World
Re: For people having trouble uploading through wine
« Reply #10 on: March 29, 2009, 05:15:29 pm »
well, I was talking about resolving cache addresses etc, and putting those in the hosts file would be kinda weird since the patch works just fine under wine....
It's just been my experience that putting the dns server into your winmx directly is faster than resolving the stuff through Linux, but then that's just me....

And winbind get's registered with NSS, so no need to configure stuff by hand - which is the reason for the post.

We all know there's athousand ways to configure stuff in Linux manually but I was suggesting fast and easy solutions for newbies, everything esle can be found elsewhere.
Personally I don't think it's a good idea to staret messing with security sensitive stuff right away without even knowing what the stuff does and I'd advise strongly against it.

And I bet we've confused any newbies completely by now and this post was completely unnecessary for the knowledgable in the first place...
LINUX - Legendary Intelligent Needful Universal Xperienced


Offline Mr.Snicky

  • Forum Member
  • Yep?
Re: For people having trouble uploading through wine
« Reply #11 on: March 29, 2009, 05:18:14 pm »
It was directed at Bacon, not you. I was referring to the fact that rigging things is not necessary for the same reasons you just said.

lol

Offline Forested665

  • Forum Member
  • Linux:2003 FreeBSD:2004 Debian/BSD developer:2006
Re: For people having trouble uploading through wine
« Reply #12 on: March 29, 2009, 05:32:28 pm »
The post was for as the thread title says for people having this issue.
90% of noobie freindly distros arent going to have any weird installation options that would "break" a system.
And as always for anyone who is reading this thread, seek live help or find the advice+succesfull results on google three times before you try it.
BSD -  The Daemons Are No Longer Just Inside My Head.

Offline kiaas

  • Forum Member
Re: For people having trouble uploading through wine
« Reply #13 on: March 29, 2009, 09:47:22 pm »
I was one having this issue, at least after following the directions uploads started working.
Kill 1 man and you are a murderer, kill 10 and you are a monster, kill a thousand and you are a hero, kill one million and you are a conqueror.

WinMX World :: Forum  |  WinMX Help  |  WinMX without Windows  |  For people having trouble uploading through wine
 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What program is this site about?:
What year is it next year?:
What's the name of the site this forum belongs to?:

gfxgfx
gfx
©2005-2024 WinMXWorld.com. All Rights Reserved.
SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
Page created in 0.009 seconds with 22 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!