Re:Re: Re: [gentoo-user] Cannot start up KDE desktop Environment

2011-11-13 Thread Lavender

I don't think that has anything to do with KDE.

Maybe this forum thread is part of the answer?

http://forums.gentoo.org/viewtopic-t-886248-start-0.html

- Mark

This problem has solved,but I got another one.When I use startx , it says 
that modules ati vesa fbdev don't existand no screens found .-_-||  
Alright, how to get it done?

Re: [gentoo-user] Cannot start up KDE desktop Environment

2011-11-13 Thread Mick
On Sunday 13 Nov 2011 08:03:25 Lavender wrote:
 I don't think that has anything to do with KDE.
 
 Maybe this forum thread is part of the answer?
 
 http://forums.gentoo.org/viewtopic-t-886248-start-0.html
 
 - Mark
 
 This problem has solved,but I got another one.When I use startx , it
 says that modules ati vesa fbdev don't existand no screens found
 .-_-||  Alright, how to get it done?

It seems that you have not installed the correct drivers for your card and/or 
have not defined these correctly in /etc/X11/xorg.conf, if indeed you have 
created such a file (it may not be necessary to create it unless there is a 
particular configuration need for your hardware).

I suggest you go back to the Gentoo instructions on how to install Xorg and 
retrace your steps.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re:Re: [gentoo-user] Cannot start up KDE desktop Environment

2011-11-13 Thread Lavender

It seems that you have not installed the correct drivers for your card and/or 
have not defined these correctly in /etc/X11/xorg.conf, if indeed you have 
created such a file (it may not be necessary to create it unless there is a 
particular configuration need for your hardware).

I suggest you go back to the Gentoo instructions on how to install Xorg and 
retrace your steps.

I have already read it , it's not complicated just few steps to follow. I just 
don'tknow where the problem is.

Re: [gentoo-user] Something weird and I'm confused. BIOS and SATA is empty

2011-11-13 Thread Joost Roeleveld
On Friday, November 11, 2011 08:48:42 AM Dale wrote:
 J. Roeleveld wrote:
  On Tue, November 8, 2011 10:33 am, Dale wrote:
  The only report that raccoon will give is a bright flash of light.
  Shorting out 250,000 volts sort of puts a period on the end of the
  briefest report there has ever been.  Those lines are the TVA lines
  that
  come from a few hundred miles away.  There is no telling how much
  power
  comes through those lines either.  Heck, even one amp is a lot.
  
  That raccoon better get a new plan.  The current one is shockingly the
  wrong way to do it.  lol   Plus I hate when the lights go out.  Winter
  is about here and we have electric heat.  :/
  
  Nah, no new plan needed. The raccoon that physically caused the problem
  was a convicted criminal. (For refusing to cause havoc) and was
  sentenced
  to death by electrocution.
  The specific location was picked by the actual scientist running the
  experiments.
  
  --
  Joost
 
 Now that you mention it, maybe they will run out of test subjects.  o_O

They're currently in the middle of negotiations to take over the penal system 
of the rabbits ;)

Once they get that contract, they'll have a really steady supply.

--
Joost



Re: [gentoo-user] Cannot start up KDE desktop Environment

2011-11-13 Thread Mick
On Sunday 13 Nov 2011 08:34:55 Lavender wrote:
 It seems that you have not installed the correct drivers for your card
 and/or have not defined these correctly in /etc/X11/xorg.conf, if indeed
 you have created such a file (it may not be necessary to create it unless
 there is a particular configuration need for your hardware).
 
 I suggest you go back to the Gentoo instructions on how to install Xorg
 and retrace your steps.
 
 I have already read it , it's not complicated just few steps to follow. I
 just don'tknow where the problem is.

I've explained where the problem is:  you seem to have defined the ati driver 
on your system but not installed it?
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] how can I disable renaming of root fs to /dev/root?

2011-11-13 Thread Alan Mackenzie
Hello, Victor.

On Sat, Nov 12, 2011 at 03:43:33PM +0400, victor romanchuk wrote:
 Jarry wrote, at 11/11/2011 09:37 PM:
  Hi,
  this is actually not problem but rather a matter of customs:
  My new fresh installed system shows root-fs in df as
  /dev/root, not actuall device (in my case /dev/md2).

[  ]

  Jarry

 try that patch (attached):

Thank you very much for this.  This annoyance has been bugging me for
quite some time, but not severely enough to make me try and fix it for
myself.  It even works for mount.  :-)

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] [OT] Binary install distro

2011-11-13 Thread Lorenzo Bandieri
 One more question.  What is a easy to install but WELL tested and STABLE
 binary distro?  I'm thinking something that needs a update 2 or 3 times a
 year or something.

If you want a *really* well tested and *really* stable linux binary
distro, Debian stable is your friend :D

I have a debian install on my home desktop (used by my sister and my
parents); I choosed debian basically because I didn't wanted to
bother: I just wanted to install and update once in a while. I'm
really happy with it.

Pros:
- stable
- tested
- once configured, requires minimal maintenance. Basically, all you
have to do is apt-get update  apt-get upgrade once in while. It'll
install only security fixes. No headaches, no massive breakage or
something. At least, this is my experience.
 - easy and fast installation

Cons:
- softwares tend to be outdated on stable. On my debian stable I have
Gnome 2.30.2, Firefox (iceweasel) 3.5.16, OpenOffice 3.2.1... Consider
that debian stable versions are released, on average, every two years.
- debian has its own way to do things. I had to get used to it...
- the default DE is gnome; if you want kde you have to install
yourself, and, needless to say, it is not the last version [1]

The biggest cons about debian stable is outdated software... If you
can cope with it/it is not a priority, give it a try.

Otherwise, the previous suggestions (Ubuntu, Kubuntu, OpenSUSE etc)
are all good choiches - stable, tested, up-to-date.

[1] http://packages.debian.org/en/squeeze/kde-full

Best regards,

Lorenzo



Re: [gentoo-user] Re: Another hardware thread

2011-11-13 Thread Neil Bothwick
On Sun, 13 Nov 2011 00:11:11 -0200, Érico Porto wrote:

 What kind of computer are you looking for? If you are not a gamer but do
 like to watch high res videos, go for a fanless video board. If you
 like to do image processing, nvidia boards are also a good idea because
 of CUDA capabilities..

General desktop use, but that does include some image processing and
plenty of virtualisation. It will also be a build host for some lower
powered Gentoo systems, so fast compile times, and plenty of cores, are
advantages.


-- 
Neil Bothwick

DOS never says EXCELLENT command or filename...


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: app-emulation/virtualbox-modules and kernel sources

2011-11-13 Thread Neil Bothwick
On Sun, 13 Nov 2011 00:32:31 +0100, Jonas de Buhr wrote:

  Presumably there isn't a Makefile in /usr/src/Linux?  
 
 sorry, i was in a hurry, i really should have asked more specific
 questions. yes, there is no makefile in the kernel sources and that
 causes all make commands in the kernel source dir to fail (of course).
 
 i have the sources for 3.0.6 installed and configured emerge to change
 the symlinks on install of kernel sources.
 but... does emerge delete the older makefiles? why would it? 

No it doesn't, but the /usr/src/linux symlink no longer points to a
directory containing a makefile.

/usr/src/linux
make oldconfig

will fix it.


-- 
Neil Bothwick

I'm in shape ... Rounds a shape isn't it?


signature.asc
Description: PGP signature


Re: [gentoo-user] Cannot start up KDE desktop Environment

2011-11-13 Thread Neil Bothwick
On Sun, 13 Nov 2011 16:03:25 +0800 (CST), Lavender wrote:

 This problem has solved,but I got another one.When I use startx ,
 it says that modules ati vesa fbdev don't existand no screens
 found .-_-||  Alright, how to get it done?

What is VIDEO_CARDS set to in /etc/make.conf?


-- 
Neil Bothwick

If a man is standing in the middle of the forest speaking and there is
no woman around to hear him - Is he still wrong?


signature.asc
Description: PGP signature


Re: [gentoo-user] Cannot start up KDE desktop Environment

2011-11-13 Thread Alan McKinnon
On Sun, 13 Nov 2011 16:34:55 +0800 (CST)
Lavender  lavender_mat...@163.com wrote:

 
 It seems that you have not installed the correct drivers for your
 card and/or have not defined these correctly in /etc/X11/xorg.conf,
 if indeed you have created such a file (it may not be necessary to
 create it unless there is a particular configuration need for your
 hardware).
 
 I suggest you go back to the Gentoo instructions on how to install
 Xorg and retrace your steps.
 
 I have already read it , it's not complicated just few steps to
 follow. I just don'tknow where the problem is.

Post the complete output of /etc/make.conf please.

You almost certainly didn't define the right drivers, or never built
them, or they are outdated. It's one of those three, and the output of
make.conf tells the list what your next step is.


p.s. you are still a newbie at this Gentoo thing. I *highly* recommend
that when someone asks for output or files, that you just give it. Don't
make it more complicated for yourself and others by claiming that it is
correct and not post the output - you are almost certain to be wrong at
this stage. Nothing personal, that's just what happens when you are new
to something.

Besides, if you knew how to solve the problem, you would already have
fixed it, right? If you don't know how to solve it, then you also
usually don't know where to look for the problem, right?


  
-- 
Alan McKinnnon
alan.mckin...@gmail.com



[gentoo-user] Xen-4.1 + Gentoo-Sources 3.0.6 in Dom0 = no blktap

2011-11-13 Thread Konstantinos Agouros
Hi,

I am using Xen 3.4.2 with xensources for Dom0 and DomU at the moment.
Now I tried to upgrade on a testsystem to 4.1.1 and a 3.0.6 Kernel
for Dom0. The problem is, since there is no blktap driver in the 
3.0.6 Kernel I have to fall back to file:// instead of tap:aio for the
disks for the guests. Anybody knows a way around this?

Also I tried a 3.0.6 as a DomU kernel but this panics during boot time
with:

[0.335389] Hangcheck: starting hangcheck timer 0.9.1 (tick is 180 seconds,
margin is 60 seconds).
[0.335411] Hangcheck: Using getrawmonotonic().
[0.336220] [ cut here ]
[0.336236] WARNING: at arch/x86/xen/mmu.c:486
xen_make_pte_debug+0xa0/0xfa()
[0.336248] 0xfed4 is using VM_IO, but it is 0xf000!
[0.336259] Modules linked in:
[0.336278] Pid: 1, comm: swapper Not tainted 3.0.6-gentoodomU #1
[0.336289] Call Trace:
[0.336309]  [8103bc74] warn_slowpath_common+0x80/0x98
[0.336327]  [8103bd20] warn_slowpath_fmt+0x41/0x43
[0.336344]  [81005999] xen_make_pte_debug+0xa0/0xfa

Somebody can hint me, what in the Kernel-Config of the DomU kernel
might be wrong here? Xen-Sources 2.6.38 boots in this setup.

Regards,

Konstantin
-- 
Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elw...@agouros.de
Altersheimerstr. 1, 81545 Muenchen, Germany. Tel +49 89 69370185

Captain, this ship will not survive the forming of the cosmos. B'Elana Torres



[gentoo-user] Cant emerge asterisk 1.8

2011-11-13 Thread William Kenworthy
Has anyone come across this error before? Emerge bails out at this point
with this error - Ive just re-run make in the build directory to
recreate the error.  Ive been running various versions of asterisk on
the machine for a few years - but cant get any version of 1.8 to build
because of this error.  I think its looking for a library as the header
is there, but I dont know what.  Another similar machine at work builds
1.8 fine, so what gives?


moriah asterisk-1.8.7.1 # make
   [LD] ../res/res_adsi.o abstract_jb.o acl.o alaw.o aoc.o app.o ast_expr2.o 
ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o 
autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o chanvars.o 
cli.o config.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o 
dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o framehook.o 
fskmodem.o global_datastores.o hashtab.o heap.o http.o image.o indications.o 
io.o jitterbuf.o loader.o lock.o logger.o manager.o md5.o netsock.o netsock2.o 
pbx.o plc.o poll.o privacy.o rtp_engine.o say.o sched.o security_events.o 
sha1.o slinfactory.o srv.o ssl.o stdtime/localtime.o strcompat.o strings.o 
stun.o syslog.o taskprocessor.o tcptls.o tdd.o term.o test.o threadstorage.o 
timing.o translate.o udptl.o ulaw.o utils.o version.o xml.o xmldoc.o 
editline/libedit.a db1-ast/libdb1.a  - asterisk
channel.o: In function `__init__ast_monitor_start':
/tmp/portage/net-misc/asterisk-1.8.7.1-r2/work/asterisk-1.8.7.1/include/asterisk/monitor.h:54:
 undefined reference to `__ast_monitor_start'
channel.o: In function `__init__ast_monitor_stop':
/tmp/portage/net-misc/asterisk-1.8.7.1-r2/work/asterisk-1.8.7.1/include/asterisk/monitor.h:60:
 undefined reference to `__ast_monitor_stop'
channel.o: In function `__init__ast_monitor_change_fname':
/tmp/portage/net-misc/asterisk-1.8.7.1-r2/work/asterisk-1.8.7.1/include/asterisk/monitor.h:65:
 undefined reference to `__ast_monitor_change_fname'
channel.o: In function `__init__ast_monitor_setjoinfiles':
/tmp/portage/net-misc/asterisk-1.8.7.1-r2/work/asterisk-1.8.7.1/include/asterisk/monitor.h:70:
 undefined reference to `__ast_monitor_setjoinfiles'
channel.o: In function `__init__ast_monitor_pause':
/tmp/portage/net-misc/asterisk-1.8.7.1-r2/work/asterisk-1.8.7.1/include/asterisk/monitor.h:75:
 undefined reference to `__ast_monitor_pause'
channel.o: In function `__init__ast_monitor_unpause':
/tmp/portage/net-misc/asterisk-1.8.7.1-r2/work/asterisk-1.8.7.1/include/asterisk/monitor.h:80:
 undefined reference to `__ast_monitor_unpause'
features.o: In function `__init__ast_monitor_start':
/tmp/portage/net-misc/asterisk-1.8.7.1-r2/work/asterisk-1.8.7.1/include/asterisk/monitor.h:54:
 undefined reference to `__ast_monitor_start'
features.o: In function `__init__ast_monitor_stop':
/tmp/portage/net-misc/asterisk-1.8.7.1-r2/work/asterisk-1.8.7.1/include/asterisk/monitor.h:60:
 undefined reference to `__ast_monitor_stop'
features.o: In function `__init__ast_monitor_change_fname':
/tmp/portage/net-misc/asterisk-1.8.7.1-r2/work/asterisk-1.8.7.1/include/asterisk/monitor.h:65:
 undefined reference to `__ast_monitor_change_fname'
features.o: In function `__init__ast_monitor_setjoinfiles':
/tmp/portage/net-misc/asterisk-1.8.7.1-r2/work/asterisk-1.8.7.1/include/asterisk/monitor.h:70:
 undefined reference to `__ast_monitor_setjoinfiles'
features.o: In function `__init__ast_monitor_pause':
/tmp/portage/net-misc/asterisk-1.8.7.1-r2/work/asterisk-1.8.7.1/include/asterisk/monitor.h:75:
 undefined reference to `__ast_monitor_pause'
features.o: In function `__init__ast_monitor_unpause':
/tmp/portage/net-misc/asterisk-1.8.7.1-r2/work/asterisk-1.8.7.1/include/asterisk/monitor.h:80:
 undefined reference to `__ast_monitor_unpause'
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2
moriah asterisk-1.8.7.1 #




Re: [gentoo-user] [OT] Binary install distro

2011-11-13 Thread Dale

Lorenzo Bandieri wrote:

One more question.  What is a easy to install but WELL tested and STABLE
binary distro?  I'm thinking something that needs a update 2 or 3 times a
year or something.

If you want a *really* well tested and *really* stable linux binary
distro, Debian stable is your friend :D

I have a debian install on my home desktop (used by my sister and my
parents); I choosed debian basically because I didn't wanted to
bother: I just wanted to install and update once in a while. I'm
really happy with it.

Pros:
- stable
- tested
- once configured, requires minimal maintenance. Basically, all you
have to do is apt-get update  apt-get upgrade once in while. It'll
install only security fixes. No headaches, no massive breakage or
something. At least, this is my experience.
  - easy and fast installation

Cons:
- softwares tend to be outdated on stable. On my debian stable I have
Gnome 2.30.2, Firefox (iceweasel) 3.5.16, OpenOffice 3.2.1... Consider
that debian stable versions are released, on average, every two years.
- debian has its own way to do things. I had to get used to it...
- the default DE is gnome; if you want kde you have to install
yourself, and, needless to say, it is not the last version [1]

The biggest cons about debian stable is outdated software... If you
can cope with it/it is not a priority, give it a try.

Otherwise, the previous suggestions (Ubuntu, Kubuntu, OpenSUSE etc)
are all good choiches - stable, tested, up-to-date.

[1] http://packages.debian.org/en/squeeze/kde-full

Best regards,

Lorenzo




Thanks.  Now I know the goods and bads about Debian.  If Kubuntu starts 
to slack off, I got a replacement to test.


Two years.  That's a good while.  It should be stable. lol

Dale

:-)  :-)



Re: [gentoo-user] Something weird and I'm confused. BIOS and SATA is empty

2011-11-13 Thread Dale

Joost Roeleveld wrote:

On Friday, November 11, 2011 08:48:42 AM Dale wrote:


Now that you mention it, maybe they will run out of test subjects.  o_O

They're currently in the middle of negotiations to take over the penal system
of the rabbits ;)

Once they get that contract, they'll have a really steady supply.

--
Joost





Oh no, not rabbits.  We may never have power again.  :/

Dale

:-)  :-)



Re: [gentoo-user] {OT} Are push backups flawed?

2011-11-13 Thread Grant
 And if I pull, none of my backed-up systems are secure because anyone
 who breaks into the backup server has root read privileges on every
 backed-up system and will thereby gain full root privileges quickly.

 IMO that depends on whether you also backup the authentication-related
 files or not. Exclude them from backup, ensure different root passwords
 for all boxes, and now you can limit the infiltration.

 If you're pulling to the backup server, that backup server has to be
 able to log in to and read all files on the other servers. Including
 e.g. your swap partition and device files.

What if I have each system save a copy of everything to be backed up
from its own filesystem in a separate directory and change the
ownership of everything in that directory so it can be read by an
unprivileged backup user?  Then I could have the backup server pull
that copy from each system without giving it root access to each
system.  Can I somehow have the correct ownerships for the backup
saved in a separate file for use during a restore?

- Grant



[gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ?

2011-11-13 Thread Mark Knecht
Hi,
   Pandu asked a similar question a few days ago about serving up
files, but mostly for distfiles IIRC. It got me thinking about doing
the same sort of thing, but this time to serve up MP4 video files for
my Kindle Fire as well as other computers on _only_ my home network.
Sort of an in-house Mark's Watch Instantly setup. I've now got a few
hundred gigabyte of mp4 files ripped with Grant's suggested app
Handbrake. They look good on my desktop playing in xine. When the
Kindle Fire arrives I'd like to have a web server running on my
private network that Silk (Amazon's KF broswer) could access, possibly
presenting nothing but the alphabetical folders that the video files
are in, and then if I select one it starts streaming that file.

   My main issue isn't really the lightest in terms of memory or CPU
usage, but rather something that's VERY easy to setup the config so
that I don't have to spend much time reading manuals.

   From browsing around a lot of pages on the web it seems that there
are a number of small  light servers (in terms of memory anyway) in
portage. Some names: fnord, thttpd, boa, monkeyd  cherokee. Does
anyone know if one of those would fit my main need of just being
extremely simple to setup and keep running for this one purpose?

Thanks in advance,
Mark



Re: [gentoo-user] [OT] Binary install distro

2011-11-13 Thread Mick
On Sunday 13 Nov 2011 10:45:46 Lorenzo Bandieri wrote:
  One more question.  What is a easy to install but WELL tested and STABLE
  binary distro?  I'm thinking something that needs a update 2 or 3 times a
  year or something.
 
 If you want a *really* well tested and *really* stable linux binary
 distro, Debian stable is your friend :D
 
 I have a debian install on my home desktop (used by my sister and my
 parents); I choosed debian basically because I didn't wanted to
 bother: I just wanted to install and update once in a while. I'm
 really happy with it.
 
 Pros:
 - stable
 - tested
 - once configured, requires minimal maintenance. Basically, all you
 have to do is apt-get update  apt-get upgrade once in while. It'll
 install only security fixes. No headaches, no massive breakage or
 something. At least, this is my experience.
  - easy and fast installation
 
 Cons:
 - softwares tend to be outdated on stable. On my debian stable I have
 Gnome 2.30.2, Firefox (iceweasel) 3.5.16, OpenOffice 3.2.1... Consider
 that debian stable versions are released, on average, every two years.
 - debian has its own way to do things. I had to get used to it...
 - the default DE is gnome; if you want kde you have to install
 yourself, and, needless to say, it is not the last version [1]
 
 The biggest cons about debian stable is outdated software... If you
 can cope with it/it is not a priority, give it a try.
 
 Otherwise, the previous suggestions (Ubuntu, Kubuntu, OpenSUSE etc)
 are all good choiches - stable, tested, up-to-date.
 
 [1] http://packages.debian.org/en/squeeze/kde-full

From what I've come across Ubuntu seems to be the only distro that has 
automatic upgrades - i.e. some sort of script which will upgrade your distro 
to the next version without having to completely reinstall.  I think I've been 
through one such upgrade cycle without any breakage.  Gentoo it ain't, but on 
the other hand I value this seamless upgrade of Ubuntu as one of its plusses 
compared to other distros which require a re-installation.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ?

2011-11-13 Thread Pandu Poluan
On Nov 14, 2011 1:25 AM, Mark Knecht markkne...@gmail.com wrote:

 Hi,
   Pandu asked a similar question a few days ago about serving up
 files, but mostly for distfiles IIRC. It got me thinking about doing
 the same sort of thing, but this time to serve up MP4 video files for
 my Kindle Fire as well as other computers on _only_ my home network.
 Sort of an in-house Mark's Watch Instantly setup. I've now got a few
 hundred gigabyte of mp4 files ripped with Grant's suggested app
 Handbrake. They look good on my desktop playing in xine. When the
 Kindle Fire arrives I'd like to have a web server running on my
 private network that Silk (Amazon's KF broswer) could access, possibly
 presenting nothing but the alphabetical folders that the video files
 are in, and then if I select one it starts streaming that file.

   My main issue isn't really the lightest in terms of memory or CPU
 usage, but rather something that's VERY easy to setup the config so
 that I don't have to spend much time reading manuals.

   From browsing around a lot of pages on the web it seems that there
 are a number of small  light servers (in terms of memory anyway) in
 portage. Some names: fnord, thttpd, boa, monkeyd  cherokee. Does
 anyone know if one of those would fit my main need of just being
 extremely simple to setup and keep running for this one purpose?

 Thanks in advance,
 Mark


Try:

python -m SimpleHTTPServer port number 

(the trailing ampersand detaches the process and makes it run in the
background)

Or for something that survives a logout, try:

nohup python -m SimpleHTTPServer port number 

Of course, RAM usage will be huge compared to the lightweight HTTP servers,
but I can't think of a simpler thing atm.

Rgds,


Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ?

2011-11-13 Thread Mick
On Sunday 13 Nov 2011 18:21:17 Mark Knecht wrote:
 Hi,
Pandu asked a similar question a few days ago about serving up
 files, but mostly for distfiles IIRC. It got me thinking about doing
 the same sort of thing, but this time to serve up MP4 video files for
 my Kindle Fire as well as other computers on _only_ my home network.
 Sort of an in-house Mark's Watch Instantly setup. I've now got a few
 hundred gigabyte of mp4 files ripped with Grant's suggested app
 Handbrake. They look good on my desktop playing in xine. When the
 Kindle Fire arrives I'd like to have a web server running on my
 private network that Silk (Amazon's KF broswer) could access, possibly
 presenting nothing but the alphabetical folders that the video files
 are in, and then if I select one it starts streaming that file.
 
My main issue isn't really the lightest in terms of memory or CPU
 usage, but rather something that's VERY easy to setup the config so
 that I don't have to spend much time reading manuals.
 
From browsing around a lot of pages on the web it seems that there
 are a number of small  light servers (in terms of memory anyway) in
 portage. Some names: fnord, thttpd, boa, monkeyd  cherokee. Does
 anyone know if one of those would fit my main need of just being
 extremely simple to setup and keep running for this one purpose?
 
 Thanks in advance,
 Mark

Both thttpd and boa that I am using are extremely simple to configure - just a 
few lines in their config files and your iptables rules to allow access from 
your LAN, or from a particular IP address.  Apache is also not *too* 
complicated, although it is more work for sure and much more demanding on 
resources.  Certainly an overkill for your needs.

lighttpd is another feature rich alternative, not as small footprint, but in 
some tests marginally faster than thttpd.  monkeyd also quite fast.

If your priorities are low demand on resources on the host PC and a high 
response/throughput speed for single threads, then I'd say give boa a spin.  
If you will be connecting in parallel with multiple clients check lighttpd, or 
thttpd.

If you are keen on exotica consider nginx, or G-WAN, but their configuration 
may be more involved.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] [OT] Binary install distro

2011-11-13 Thread Florian Philipp
Am 13.11.2011 19:26, schrieb Mick:
 On Sunday 13 Nov 2011 10:45:46 Lorenzo Bandieri wrote:
 One more question.  What is a easy to install but WELL tested and STABLE
 binary distro?  I'm thinking something that needs a update 2 or 3 times a
 year or something.

 If you want a *really* well tested and *really* stable linux binary
 distro, Debian stable is your friend :D

 I have a debian install on my home desktop (used by my sister and my
 parents); I choosed debian basically because I didn't wanted to
 bother: I just wanted to install and update once in a while. I'm
 really happy with it.

 Pros:
 - stable
 - tested
 - once configured, requires minimal maintenance. Basically, all you
 have to do is apt-get update  apt-get upgrade once in while. It'll
 install only security fixes. No headaches, no massive breakage or
 something. At least, this is my experience.
  - easy and fast installation

 Cons:
 - softwares tend to be outdated on stable. On my debian stable I have
 Gnome 2.30.2, Firefox (iceweasel) 3.5.16, OpenOffice 3.2.1... Consider
 that debian stable versions are released, on average, every two years.
 - debian has its own way to do things. I had to get used to it...
 - the default DE is gnome; if you want kde you have to install
 yourself, and, needless to say, it is not the last version [1]

 The biggest cons about debian stable is outdated software... If you
 can cope with it/it is not a priority, give it a try.

 Otherwise, the previous suggestions (Ubuntu, Kubuntu, OpenSUSE etc)
 are all good choiches - stable, tested, up-to-date.

 [1] http://packages.debian.org/en/squeeze/kde-full
 
 From what I've come across Ubuntu seems to be the only distro that has 
 automatic upgrades - i.e. some sort of script which will upgrade your distro 
 to the next version without having to completely reinstall.  I think I've 
 been 
 through one such upgrade cycle without any breakage.  Gentoo it ain't, but on 
 the other hand I value this seamless upgrade of Ubuntu as one of its plusses 
 compared to other distros which require a re-installation.

Scientific Linux (and probably all other RHEL clones) can do this, too.
At least for updates of the minor version number (5.6 - 5.7, for example).

This is more or less a middle ground: Between minor versions, binary
compatibility is (mostly?) ensured, especially for libraries and runtime
environments (great if you still need a python-2.4 installation with
regular security fixes). Older major numbers are also still released and
maintained after the next major update happened (e.g. 5.7 was released
after 6.0), therefore you can update at your own convenience.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ?

2011-11-13 Thread Chris Brennan
On Sun, Nov 13, 2011 at 1:21 PM, Mark Knecht markkne...@gmail.com wrote:

Hi,
   Pandu asked a similar question a few days ago about serving up
 files, but mostly for distfiles IIRC. It got me thinking about doing
 the same sort of thing, but this time to serve up MP4 video files for
 my Kindle Fire as well as other computers on _only_ my home network.
 Sort of an in-house Mark's Watch Instantly setup. I've now got a few
 hundred gigabyte of mp4 files ripped with Grant's suggested app
 Handbrake. They look good on my desktop playing in xine. When the
 Kindle Fire arrives I'd like to have a web server running on my
 private network that Silk (Amazon's KF broswer) could access, possibly
 presenting nothing but the alphabetical folders that the video files
 are in, and then if I select one it starts streaming that file.

   My main issue isn't really the lightest in terms of memory or CPU
 usage, but rather something that's VERY easy to setup the config so
 that I don't have to spend much time reading manuals.

   From browsing around a lot of pages on the web it seems that there
 are a number of small  light servers (in terms of memory anyway) in
 portage. Some names: fnord, thttpd, boa, monkeyd  cherokee. Does
 anyone know if one of those would fit my main need of just being
 extremely simple to setup and keep running for this one purpose?

 Thanks in advance,
 Mark


nginx comes to mind, very easy to set up and it should be able to serve
your video's w/o issue...


 --
 Chris Brennan
 A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting frowned upon?
 http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/
 GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8  9E4A EECD 9A84 D5B2 0C0C)



Re: [gentoo-user] {OT} Are push backups flawed?

2011-11-13 Thread Florian Philipp
Am 13.11.2011 19:03, schrieb Grant:
 And if I pull, none of my backed-up systems are secure because anyone
 who breaks into the backup server has root read privileges on every
 backed-up system and will thereby gain full root privileges quickly.

 IMO that depends on whether you also backup the authentication-related
 files or not. Exclude them from backup, ensure different root passwords
 for all boxes, and now you can limit the infiltration.

 If you're pulling to the backup server, that backup server has to be
 able to log in to and read all files on the other servers. Including
 e.g. your swap partition and device files.
 
 What if I have each system save a copy of everything to be backed up
 from its own filesystem in a separate directory and change the
 ownership of everything in that directory so it can be read by an
 unprivileged backup user?  Then I could have the backup server pull
 that copy from each system without giving it root access to each
 system.  Can I somehow have the correct ownerships for the backup
 saved in a separate file for use during a restore?
 
 - Grant
 

You could just as well use an NFS share with no_root_squash. It is
really more a question of finding the right combination of tools to
ensure proper separation of concern for server and client.

In fact, I think we are intermixing three distinct problems:
1. (Possible) limitations of rdiff-backup with regard to untrusted
backup servers or clients.
2. The purely technical question which file transfer protocols protect
against write access from backup server to backup client and backup
client to older backups on the server.
3. The more or less organisational question what level of protection
backups need and how fast security breaks have to be detected.

I think push vs. pull is just a secondary concern with regard to the
second question and has practically no relevance to the third one.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ?

2011-11-13 Thread Mark Knecht
On Sun, Nov 13, 2011 at 11:16 AM, Pandu Poluan pa...@poluan.info wrote:

 On Nov 14, 2011 1:25 AM, Mark Knecht markkne...@gmail.com wrote:
SNIP
   From browsing around a lot of pages on the web it seems that there
 are a number of small  light servers (in terms of memory anyway) in
 portage. Some names: fnord, thttpd, boa, monkeyd  cherokee. Does
 anyone know if one of those would fit my main need of just being
 extremely simple to setup and keep running for this one purpose?

 Thanks in advance,
 Mark


 Try:

 python -m SimpleHTTPServer port number 

 (the trailing ampersand detaches the process and makes it run in the
 background)

 Or for something that survives a logout, try:

 nohup python -m SimpleHTTPServer port number 

 Of course, RAM usage will be huge compared to the lightweight HTTP servers,
 but I can't think of a simpler thing atm.

 Rgds,


Wow! That certainly qualifies for the simple part! The trick seemed to
be to cd to the video directory before running python, but once I did
that I am able to get video.

One 'problem' if you will is the video isn't streaming but rather the
whole file is being copied and then xine is being run. That leads to
no disk space over time.

Is this a function of Firefox being set up to use xine as opposed to
some other app or plugin? I'd really like to understand a little more
about getting it to stream instead of copy, if possible.

The other thing I just tested was accessing the server using my wife's
iPod Touch. It can browse to the video files but then Quicktime
doesn't play them. Back in the python terminal I see a lot of message
like this:


192.168.1.243 - - [13/Nov/2011 11:44:26] GET /H/Howard%27s%20End.m4v
HTTP/1.1 200 -

Exception happened during processing of request from ('192.168.1.243', 49450)
Traceback (most recent call last):
  File /usr/lib64/python2.7/SocketServer.py, line 284, in
_handle_request_noblock
self.process_request(request, client_address)
  File /usr/lib64/python2.7/SocketServer.py, line 310, in process_request
self.finish_request(request, client_address)
  File /usr/lib64/python2.7/SocketServer.py, line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
  File /usr/lib64/python2.7/SocketServer.py, line 641, in __init__
self.finish()
  File /usr/lib64/python2.7/SocketServer.py, line 694, in finish
self.wfile.flush()
  File /usr/lib64/python2.7/socket.py, line 303, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe


None the less it's an interesting start. Thanks!!

Cheers,
Mark



Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ?

2011-11-13 Thread Mark Knecht
On Sun, Nov 13, 2011 at 11:22 AM, Mick michaelkintz...@gmail.com wrote:
SNIP

 Both thttpd and boa that I am using are extremely simple to configure - just a
 few lines in their config files and your iptables rules to allow access from
 your LAN, or from a particular IP address.  Apache is also not *too*
 complicated, although it is more work for sure and much more demanding on
 resources.  Certainly an overkill for your needs.

 lighttpd is another feature rich alternative, not as small footprint, but in
 some tests marginally faster than thttpd.  monkeyd also quite fast.

 If your priorities are low demand on resources on the host PC and a high
 response/throughput speed for single threads, then I'd say give boa a spin.
 If you will be connecting in parallel with multiple clients check lighttpd, or
 thttpd.

 If you are keen on exotica consider nginx, or G-WAN, but their configuration
 may be more involved.
 --
 Regards,
 Mick


OK, thttpd seems like what I was looking for. One line in
/etc/conf.d/thttpd to point at the video directory and it has an init
file so I can start it with rc-update. It works fine, at least in the
sense that I can play the files on other computers if not the iPod.

It's interesting that in the case of the iPod with python as the
server it just showed some broken link icon. However with thttpd it
actually said the iPod couldn't play it because the file was too
large. I happen to know that the iPod right now doesn't have enough
disk space to store a 1GB movie so maybe that's all it's complaining
about. I'll get my wife to clean up the device if she's interested in
using this.

For now though I'd guess this solution might work with the Kindle Fire
which was my main goal before the device arrives.

It's really only the stream vs copy question that would make this a
really complete solution for me.

Cheers,
Mark



Re: [gentoo-user] {OT} Are push backups flawed?

2011-11-13 Thread Michael Orlitzky
On 11/13/11 13:03, Grant wrote:
 And if I pull, none of my backed-up systems are secure because anyone
 who breaks into the backup server has root read privileges on every
 backed-up system and will thereby gain full root privileges quickly.

 IMO that depends on whether you also backup the authentication-related
 files or not. Exclude them from backup, ensure different root passwords
 for all boxes, and now you can limit the infiltration.

 If you're pulling to the backup server, that backup server has to be
 able to log in to and read all files on the other servers. Including
 e.g. your swap partition and device files.
 
 What if I have each system save a copy of everything to be backed up
 from its own filesystem in a separate directory and change the
 ownership of everything in that directory so it can be read by an
 unprivileged backup user?

You've just reinvented the push backup =)

If separate-directory is on the same server, an attacker can log in and
overwrite all of your files with zeros. Those zeros will be pulled to
the backup server, destroying your backups.

If separate-directory is on the backup server...



Re: [gentoo-user] {OT} Are push backups flawed?

2011-11-13 Thread Michael Orlitzky
On 11/13/11 13:03, Grant wrote:
 
Then I could have the backup server pull
 that copy from each system without giving it root access to each
 system.  Can I somehow have the correct ownerships for the backup
 saved in a separate file for use during a restore?
 

If you're intent on making a two-stage pull work; you can do it by
creating a 'backups' user on your servers, and then using filesystem
ACLs to grant backups+r to every file/directory you want to back up.
That way, an attacker on the backup server can't decide to peruse the
rest of your stuff.

The easiest method, though, is to just add a third stage. Either move
the backups on the backup server to another directory after the backup
job completes, or sync/burn/whatever them off-site. In this case the
backup server can't access anything you don't give it, and the
individual servers can't trash their backed-up data.



[gentoo-user] Display name and Wacom tablet

2011-11-13 Thread Daniel D Jones
I have an Nvidia GeForce GTX 560 Ti running nvidia-drivers 275.09.07.  It 
supports dual monitors via Twinview.  I have a Wacom Inspire3 6 x 8 Tablet.  
The tablet is working but it covers the entire display across both monitors 
and I'd like to restrict it to one monitor.

This is supposed to be done via

xsetwacom set Wacom Intuos3 6x8 pad MapToOutput VGA1

VGA1 is supposed to be the name of the display you want to restrict it to, and 
that name is supposed to be available via xrandr.  xrandr gives me the 
following output:

ddjones@kushiel ~ $ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 2048 x 768, current 3360 x 1050, maximum 3360 x 1050
default connected 3360x1050+0+0 0mm x 0mm
   3360x1050  50.0* 
   2048x768   51.0  


ddjones@kushiel ~ $ xrandr --verbose
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 2048 x 768, current 3360 x 1050, maximum 3360 x 1050
default connected 3360x1050+0+0 (0x166) normal (normal) 0mm x 0mm
Identifier: 0x165
Timestamp:  13703
Subpixel:   unknown
Clones:
CRTC:   0
CRTCs:  0
Transform:  1.00 0.00 0.00
0.00 1.00 0.00
0.00 0.00 1.00
   filter: 
  3360x1050 (0x166)  176.4MHz *current
h: width  3360 start0 end0 total 3360 skew0 clock   
52.5KHz
v: height 1050 start0 end0 total 1050   clock   50.0Hz
  2048x768 (0x167)   80.2MHz
h: width  2048 start0 end0 total 2048 skew0 clock   
39.2KHz
v: height  768 start0 end0 total  768   clock   51.0Hz

I've tried guessing at the display name, trying VGA, DVI and LVDS with various 
numbers appended but xsetwacom simply complains that the display does not 
exist.

I've also tried setting the Coordinate Transformation Matrix as described 
here:

http://sourceforge.net/apps/mediawiki/linuxwacom/index.php?title=Dual_and_Multi-
Monitor_Set_Up#Dual_Monitors

I can set the matrix via the xinput command and xinput list-props for the 
device confirms that the matrix is set to the new value but it does not alter 
the behaviour of the tablet - it still spans both displays.  I set and 
confirmed the matrix for the pad, the eraser and the cursor.

Any advice or suggestions on how to either either identify the display names 
(or fix whatever issue causes xrandr not to display the info) or to otherwise 
restrict the tablet to one monitor would be greatly appreciated.

-- 
Never explain. Your friends do not need it and your enemies will not believe 
you anyway. - Elbert Hubbard



Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ?

2011-11-13 Thread Mick
On Sunday 13 Nov 2011 19:45:38 Mark Knecht wrote:

 Wow! That certainly qualifies for the simple part! The trick seemed to
 be to cd to the video directory before running python, but once I did
 that I am able to get video.
 
 One 'problem' if you will is the video isn't streaming but rather the
 whole file is being copied and then xine is being run. That leads to
 no disk space over time.

It is not streaming, because you are not running a streaming server and in all 
likelihood the video file is not in 'streaming' media format.  Therefore when 
you click on the link the ipod downloads a complete file.


 Is this a function of Firefox being set up to use xine as opposed to
 some other app or plugin? I'd really like to understand a little more
 about getting it to stream instead of copy, if possible.

You can have a true streaming server (MMS, RTP, RTSP) or you can have a 
webserver (HTTP) which serves streaming media format files.

Have you tried setting up vlc as a streaming server on your PC?  It will also 
transcode files into streaming media.

Alternatively, use a device with a large enough storage on it to be able to 
save the whole of the downloaded file.


 The other thing I just tested was accessing the server using my wife's
 iPod Touch. It can browse to the video files but then Quicktime
 doesn't play them. Back in the python terminal I see a lot of message
 like this:
 
 
 192.168.1.243 - - [13/Nov/2011 11:44:26] GET /H/Howard%27s%20End.m4v
 HTTP/1.1 200 -
 
 Exception happened during processing of request from ('192.168.1.243',
 49450) Traceback (most recent call last):
   File /usr/lib64/python2.7/SocketServer.py, line 284, in
 _handle_request_noblock
 self.process_request(request, client_address)
   File /usr/lib64/python2.7/SocketServer.py, line 310, in process_request
 self.finish_request(request, client_address)
   File /usr/lib64/python2.7/SocketServer.py, line 323, in finish_request
 self.RequestHandlerClass(request, client_address, self)
   File /usr/lib64/python2.7/SocketServer.py, line 641, in __init__
 self.finish()
   File /usr/lib64/python2.7/SocketServer.py, line 694, in finish
 self.wfile.flush()
   File /usr/lib64/python2.7/socket.py, line 303, in flush
 self._sock.sendall(view[write_offset:write_offset+buffer_size])
 error: [Errno 32] Broken pipe
 
 
 None the less it's an interesting start. Thanks!!

I'm pretty much clueless in python so can't interpret the messages - hopefully 
someone more knowledgeable will chime in.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ?

2011-11-13 Thread Pandu Poluan
On Nov 14, 2011 6:01 AM, Mick michaelkintz...@gmail.com wrote:

 On Sunday 13 Nov 2011 19:45:38 Mark Knecht wrote:

  Wow! That certainly qualifies for the simple part! The trick seemed to
  be to cd to the video directory before running python, but once I did
  that I am able to get video.
 
  One 'problem' if you will is the video isn't streaming but rather the
  whole file is being copied and then xine is being run. That leads to
  no disk space over time.

 It is not streaming, because you are not running a streaming server and
in all
 likelihood the video file is not in 'streaming' media format.  Therefore
when
 you click on the link the ipod downloads a complete file.


Actually, if the server supports the byte-range option (i.e., ability to do
random access 'seek') AND the server returns the proper Content-Type
header, then the server can stream.

  Is this a function of Firefox being set up to use xine as opposed to
  some other app or plugin? I'd really like to understand a little more
  about getting it to stream instead of copy, if possible.

 You can have a true streaming server (MMS, RTP, RTSP) or you can have a
 webserver (HTTP) which serves streaming media format files.

 Have you tried setting up vlc as a streaming server on your PC?  It will
also
 transcode files into streaming media.


That will make the server neither light nor simple, though :-)

 Alternatively, use a device with a large enough storage on it to be able
to
 save the whole of the downloaded file.


  The other thing I just tested was accessing the server using my wife's
  iPod Touch. It can browse to the video files but then Quicktime
  doesn't play them. Back in the python terminal I see a lot of message
  like this:
 
  
  192.168.1.243 - - [13/Nov/2011 11:44:26] GET /H/Howard%27s%20End.m4v
  HTTP/1.1 200 -
  
  Exception happened during processing of request from ('192.168.1.243',
  49450) Traceback (most recent call last):

- 8 snip -

 
  None the less it's an interesting start. Thanks!!

 I'm pretty much clueless in python so can't interpret the messages -
hopefully
 someone more knowledgeable will chime in.


Neither am I, but it seems SimpleHTTPServer is too simple.

Rgds,


Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ?

2011-11-13 Thread Stroller

On 13 November 2011, at 19:45, Mark Knecht wrote:
 ...
 One 'problem' if you will is the video isn't streaming but rather the
 whole file is being copied and then xine is being run. That leads to
 no disk space over time.

See if you can run Samba client on this device (and Samba on the server, too).

Stroller.




[gentoo-user] bash date puzzle

2011-11-13 Thread Philip Webb
To convert a UNIX date to a human-readable version the command is :

  556: ~ date -d @1321251520
  Mon Nov 14 01:18:40 EST 2011
  
I would like to create a Bash alias or function to do this,
but can't get the Bash syntax right: it keeps telling me
date: the argument `1321251520' lacks a leading `+';
when using an option to specify date(s), any non-option
argument must be a format string beginning with `+'
Try `date --help' for more information.

I can't find any explanation for the '@' in the CLI version
nor do various attempts to insert '+', escape '\@' etc succeed.

Can anyone suggest a way to do this ?

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca