Hansel
Posts: 65
Joined: Mon Apr 30, 2012 10:13 pm

Re: Very slow to download Samba using apt-get

Mon Apr 30, 2012 11:19 pm

Hi all,

So I'm pretty much a Linux noob.  I know enough to just scrape by, but only just

Anyway, got the Pi hooked up and I'm trying to install Samba, but it's downloading at a crawl (currently 2000 B/s, which will take 30 mins).

I have the Pi hooked up to a wired network, and I'm using the latest Debian image.   If I open a web browser and download a test file from my ISP, it comes down nice and fast (not sure how to tell exactly how fast, but it downloaded around 5mb in a few seconds, so fast enough).

I've tried the command (sudo apt-get install samba) both from the initial boot terminal type screen, and also from with a terminal after the startx command.  Same issue both ways.

Is this normal, or am I doing something wrong

Thanks

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Very slow to download Samba using apt-get

Mon Apr 30, 2012 11:53 pm

my gut says somethings wrong.  I've downloaded samba with the same image in maybe a as slow as a couple minutes.  That said I can't think of any reason why it would be happening... are you running the apt-get in a terminal window with the xserver?
Dear forum: Play nice ;-)

Hansel
Posts: 65
Joined: Mon Apr 30, 2012 10:13 pm

Re: Very slow to download Samba using apt-get

Mon Apr 30, 2012 11:55 pm

I am, yep.  I initially tried it before issuing the startx command (in the initial terminal like environment) with the same issue.  That's what led me to try it in a terminal after issuing the startx command.

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Very slow to download Samba using apt-get

Mon Apr 30, 2012 11:57 pm

hmm... I can understand it going slowly after doing startx (it's kinda taxed in there to begin with, but it's odd that it's doing the same thing from outside X
Dear forum: Play nice ;-)

Hansel
Posts: 65
Joined: Mon Apr 30, 2012 10:13 pm

Re: Very slow to download Samba using apt-get

Mon Apr 30, 2012 11:59 pm

Abishur said:


hmm... I can understand it going slowly after doing startx (it's kinda taxed in there to begin with, but it's odd that it's doing the same thing from outside X


I'm having a heap of issues with repeat key presses as well, so perhaps my keyboard and mouse are trying to suck too much power or something.

I'm using a Dell keyboard that I 'borrowed' from work, and a Logitech MX518 mouse.  I'm just about to head out to buy a cheap powered hub so I guess I'll try it after I get that hooked up.

I'm using an iphone charger to power it by the way, which is 5v and 1A so I'd assume it's getting enough power...

User avatar
RaTTuS
Posts: 10558
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Very slow to download Samba using apt-get

Tue May 01, 2012 8:20 am

has the dell keyboard got USB expansion slots - if so it will pull far to much power

get a  [good] powered hub
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Hansel
Posts: 65
Joined: Mon Apr 30, 2012 10:13 pm

Re: Very slow to download Samba using apt-get

Tue May 01, 2012 8:38 am

has the dell keyboard got USB expansion slots – if so it will pull far to much power

It has a couple yeah. I"ll look for an elcheapo keyboard somewhere

User avatar
RaTTuS
Posts: 10558
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Very slow to download Samba using apt-get

Tue May 01, 2012 8:59 am

I'd go for the powered HUB myself ;-p
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Hansel
Posts: 65
Joined: Mon Apr 30, 2012 10:13 pm

Re: Very slow to download Samba using apt-get

Tue May 01, 2012 9:01 am

RaTTuS said:


I'd go for the powered HUB myself ;-p


I got one today (and it's fixed the repeat keypresses at least, but now my mouse doesn't work  :D), but it's a bit of a cheapo $10 job.

Didn't seem to do anything to speed up the apt-gets.     I'm thinking (off the top of my head) it might help to change the debian mirror, as I'm in Australia and I notice it's using the UK one).   Just not sure how to actually do that

Hansel
Posts: 65
Joined: Mon Apr 30, 2012 10:13 pm

Re: Very slow to download Samba using apt-get

Wed May 02, 2012 2:53 am

Well, changing the mirror from UK to AU seems to have fixed the speed issues.  Nice and fast now  Took me a while to work out how to do it, but at least I learned something

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Very slow to download Samba using apt-get

Wed May 02, 2012 3:39 pm

Good to know!  And thanks for posting the solution instead of keeping it to yourself!  (As is the unfortunate habit of some)
Dear forum: Play nice ;-)

Return to “Beginners”