LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-29-2011, 07:26 AM   #1
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547
Blog Entries: 7

Rep: Reputation: 55
electricsheep issues


I been using electricsheep since its first days.... for the past few days electricsheep has gave me some weird errors...

Code:
detected another electricsheep process
And it goes in to read only mode....

I have found no solution to this issues and there is no logs behind....

Any ideas?

TIA.
 
Old 08-29-2011, 10:53 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Grab the source, and in the top source dir, run
Quote:
grep -rne 'detected another electricsheep process'
grok the source around there and see if you can see what the test is.
 
Old 08-29-2011, 12:55 PM   #3
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
Quote:
Originally Posted by business_kid View Post
Grab the source, and in the top source dir, run


grok the source around there and see if you can see what the test is.
I grep the source tree with no luck.
Any other ideas?

TIA.
 
Old 08-29-2011, 01:15 PM   #4
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
I found this block from the page here: http://electricsheep.sourcearchive.c...8c-source.html:

Code:
do_lock() {
    char fn[MAXBUF];
    int fd;

    struct flock fl;
  
    sprintf(fn, "%slock", leave_prefix);
    if (-1 == (fd = creat(fn, S_IRWXU))) {
      perror(fn);
      cleanup_and_exit(1);
    }

    fl.l_type = F_WRLCK;
    fl.l_whence = SEEK_SET;
    fl.l_start = 0;
    fl.l_len = 0;

    if (-1 == fcntl(fd, F_SETLK, &fl)) {
      if ((EAGAIN == errno) || (EACCES == errno)) {
          fprintf(stderr, "detected another electricsheep process.\n"
                "using read only access, ie disabling "
                "downloading of sheep.\n");
          read_only = 1;
      } else {
          perror(fn);
          cleanup_and_exit(1);
      }
    }
    /* leave the file open & locked until our process terminates */
}
Also found you are not alone: http://community.electricsheep.org/node/1408 among others googling the "detected another electricsheep process" error

Last edited by jkirchner; 08-29-2011 at 01:18 PM. Reason: Add
 
Old 08-29-2011, 01:27 PM   #5
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
Quote:
Originally Posted by jkirchner View Post
I found this block from the page here: http://electricsheep.sourcearchive.c...8c-source.html:

Code:
do_lock() {
    char fn[MAXBUF];
    int fd;

    struct flock fl;
  
    sprintf(fn, "%slock", leave_prefix);
    if (-1 == (fd = creat(fn, S_IRWXU))) {
      perror(fn);
      cleanup_and_exit(1);
    }

    fl.l_type = F_WRLCK;
    fl.l_whence = SEEK_SET;
    fl.l_start = 0;
    fl.l_len = 0;

    if (-1 == fcntl(fd, F_SETLK, &fl)) {
      if ((EAGAIN == errno) || (EACCES == errno)) {
          fprintf(stderr, "detected another electricsheep process.\n"
                "using read only access, ie disabling "
                "downloading of sheep.\n");
          read_only = 1;
      } else {
          perror(fn);
          cleanup_and_exit(1);
      }
    }
    /* leave the file open & locked until our process terminates */
}
Also found you are not alone: http://community.electricsheep.org/node/1408 among others googling the "detected another electricsheep process" error

jkirchner,

Thanks for your reply.

I guess I didnt grep correctly... lol

Yea I found some people out there with the same issue but none of them really posted a solution. I did removed the pkg and re installed it but that only lasted about 1 day when the error came back...

Arrggghhh this is aggravating... The problem is that it has been working for many years without an issue till now. and changing anything would not help. My system has not change for anything to brake.
 
Old 08-29-2011, 05:07 PM   #6
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
I just found that for every time xscreensaver gets activated the following command spawns like 10 times....


mplayer -really-quiet -cache 8192 -monitoraspect 1920:1080 -fps 23 -vo vdpau -wid 0x4400042 -nostop-xscreensaver -

which is what could be causing the issue with electricsheep. Any ways to debug this?


TIA.
 
Old 08-29-2011, 05:20 PM   #7
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by SeRi@lDiE View Post
jkirchner,

Thanks for your reply.

I guess I didnt grep correctly... lol

Yea I found some people out there with the same issue but none of them really posted a solution. I did removed the pkg and re installed it but that only lasted about 1 day when the error came back...

Arrggghhh this is aggravating... The problem is that it has been working for many years without an issue till now. and changing anything would not help. My system has not change for anything to brake.
Well, as you can see I was at work and we have Windows....I scraped the code and used find in Notepad.... meh, it worked.

I saw the Slackbuild for it the other day and was going to try it... I had heard of Electric Sheep but never ran it....not sure if I want to now
 
Old 08-29-2011, 05:25 PM   #8
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
Quote:
Originally Posted by jkirchner View Post
Well, as you can see I was at work and we have Windows....I scraped the code and used find in Notepad.... meh, it worked.

I saw the Slackbuild for it the other day and was going to try it... I had heard of Electric Sheep but never ran it....not sure if I want to now
I never had any issues with electricsheep. After I did killall mplayer looks like it clear the error. Lets see how long would it last.
I think is the best screen saver by far.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ElectricSheep - Copying packs in to Ubuntu 10.10 Bluestreak Ubuntu 1 10-20-2010 02:07 AM
ATI Ain in Wonder 8500DV LINUX LIVE boot issues (and TV issues) Flashmahn Linux - Hardware 1 03-09-2009 06:40 AM
Error Installing Electricsheep on fiesty athanman Linux - Software 0 08-08-2007 12:59 AM
xscreensaver-electricsheep-interuption mashdot Debian 2 11-24-2004 08:40 AM
Interesting Electricsheep screen saver borks... toy Slackware 7 05-14-2004 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration