Jump to content

uTorrent running in Ubuntu Edgy via Wine


delphiguy

Recommended Posts

Cheers,

I am using uTorrent as my preferred BitTorrent Client for my Ubuntu Edgy system, however I have stumbled on something that I am not sure whether it is a uTorrent issue or a Linux one...

On some of the torrents I tried to download I get the error "too many open files", does somebody from here knows how to fix this?

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

'ulimit -n 4096' fixed the problem for me.However, since you can't run this as a normal user you need to do this:

xhost + 
su
ulimit -n 4096
su <your username>
wine utorrent.exe

Using 'xhost +' is security risk itself, though.

Under gentoo you can set this permanently by adding the following to /etc/security/limits.conf :

<your username>     hard    nofile  4096

I haven't rebooted to test the above yet, but it should work.Check your distribution's documentation/forums if your distribution doesn't have /etc/security/limits.conf.

Link to comment
Share on other sites

  • 1 month later...

Hi,

since you are using Ubuntu here is the clean solution for Debian-based systems:

You can do exactly what the user darklegion suggested for Gentoo.As root edit the file /etc/security/limits.conf and append the line

<your username>      hard    nofile  8192

to increase the limit from 1024 to 8192. You will have to logout and login again to make the new setting work. Verify that it is set correctly with ulimit -n (as user).

cheers

anonymous

Link to comment
Share on other sites

  • 8 months later...
  • 1 year later...
Cheers,

I am using uTorrent as my preferred BitTorrent Client for my Ubuntu Edgy system, however I have stumbled on something that I am not sure whether it is a uTorrent issue or a Linux one...

On some of the torrents I tried to download I get the error "too many open files", does somebody from here knows how to fix this?

Thanks

same problem in Fedora Core 8

tried ulimit -n on various numers 8192,10240 etc

and changing max half open but now half open is 8 and 8192 is ulimit -n but can please any1 fix the problem? because of torrent stops and have to sit infront of UT so that when it stops can start it again :(

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...

OKAY,... I'M PISSED... I don't have the time to google anymore..! I already wasted 3 weeks, 4 formats to fix this problem and it's reaaaallllyyyyy pissing to redo allllll the setting.. I think this is the solution for my high cpu usage and continous 'Error, can't open file'!!!! I'm on ubuntu 10.04.1. The line which fritzroy15 mentioned doesn't seem to work for me!

Like how do I find the actual username because in the user account windows, I see my name and underneath is another name in italic. I tired both name and added it to my /etc/security/limits.conf file

userssettings029.th.png

Uploaded with ImageShack.us

Doesn't seem to work!!!!!! I tried adding all the type of format mentioned in thread.. what am I missing????????

Here the complete file below with the added line. Tell me what I should try adding/removing!!!


#/etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - an user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
# - NOTE: group and wildcard limits are not applied to root.
# To apply a limit to the root user, <domain> must be
# the literal username root.
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open files
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit (KB)
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to values: [-20, 19]
# - rtprio - max realtime priority
# - chroot - change root to directory (Debian-specific)
#
#<domain> <type> <item> <value>
#

#* soft core 0
#root hard core 100000
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#ftp - chroot /ftp
#@student - maxlogins 4

bahie soft nofile 8192

#End of file

One more thing, after running 'users' command on terminal, I get 'bahie bahie'!! why double 'bahie'?

Link to comment
Share on other sites

Did you log out and in after applying the setting change?

What are your settings for preferences - queueing and preferences - bandwidth?

How many files are in the torrents you're loading?

Yes, I applied, logged out, checked - no change, check the file to see if it went default -no it didn't, rebooted again, check ulimit still default, x10 times!

Queuing - 3, limited up 15kb/sec, limited down 150kb/sec,

preferences, pretty much default... other than custom port

500 download, 200 completed..

100 cpu also!!!!! see my filed bug http://bugs.winehq.org/show_bug.cgi?id=24755

Link to comment
Share on other sites

hello..this is serious

Well let's see.

#/etc/security/limits.conf

#

#Each line describes a limit for a user in the form:

#

#<domain> <type> <item> <value>

#

#Where:

#<domain> can be:

# - an user name

# - a group name, with @group syntax

# - the wildcard *, for default entry

# - the wildcard %, can be also used with %group syntax,

# for maxlogin limit

# - NOTE: group and wildcard limits are not applied to root.

# To apply a limit to the root user, <domain> must be

# the literal username root.

If you are trying to use Abdusamed which is your Administrator (root) account, in your /etc/security/limits.conf file you may want to reread the comments and understand what you are doing.

I have no idea what bahle (group name?) might be, but the Username is Abdusamed.

uTorrent in Wine just works for me on openSUSE 11.2 and suggest you contact an Ubuntu forum.

You are aware that you should never do anything online except update as root in Linux?

Link to comment
Share on other sites

Update as root? ah... My bahie [account name : Abdusamed] is administrator. I don't know if can all it root. I still need to enter password for updating, installing, other admin tasks.

I don't know if bahie is a group name because in the top menu bar for chat, it says 'bahie' not Abdusamed.

It's confusing... but the ulimit don't seem to change no matter what I do.

Link to comment
Share on other sites

Asking on the ubuntu forums would probably be a better option for you. I didn't realize it had a root group and Administrator group. :/

On openSUSE root is root, and root administers the OS, The users in the users group use the OS.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...