Re: [gentoo-user] Postgresql emerge question

2011-03-03 Thread Florian Philipp
Am 03.03.2011 04:55, schrieb Walter Dnes:
   Am I supposed to emerge postgresql-server?  Any Gentoo-specific
 gotcha's that anyone's aware of?  This will be on pure 64-bit
 (no-multi-lib) Intel i3 with 8 gigs of ram.
 

Yes, if you want to run a postgresql server you emerge this package.
When emerge has finished, take a look at the output at the end. It
contains information on one last step before installation is complete.

I'm not aware of any issues.

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


[gentoo-user] LXDE

2011-03-03 Thread dhk
I want to use LXDE as a Desktop on a fresh install of Gentoo on a laptop
(amd64).  It seems to work, but when I logout it hangs.  It never
returns to the command prompt and the keyboard doesn't work so I can
switch to an alternate terminal.  Has anyone had this problem and know
how to fix it?

Thanks,

dhk



Re: [gentoo-user] LXDE

2011-03-03 Thread Alex Schuster
dhk writes:

 I want to use LXDE as a Desktop on a fresh install of Gentoo on a laptop
 (amd64).  It seems to work, but when I logout it hangs.  It never
 returns to the command prompt and the keyboard doesn't work so I can
 switch to an alternate terminal.  Has anyone had this problem and know
 how to fix it?

No. But try Alt-SysRq-R, this removes keyboard control from X, and you 
should be able to switch to a text terminal.
If not, Alt-SysRq-{E,I,S,U,B} (with little pasues between each) will at 
least do a cleaner reboot than hitting the reset button.

If you have another PC to log in from, try this, and use the chvt commadn to 
change the virtual terminal.

Wonko



Re: [gentoo-user] internal-sftp and logs files

2011-03-03 Thread Naira Kaieski

Good afternoon,

http://groups.google.com/group/comp.security.ssh/browse_thread/thread/ce30a1d9889dc2e2?pli=1

The tip above link to solve the problem. I had found this link, however 
I was creating the log file in the dev directory of the chroot user. 
With the command strace I noticed what was happening permission error 
file access.


Effectively you need only create the dev directory, the Log Files 
syslog-ng will automatically create. The log file is actually a socket 
file that syslog-ng will create.


Solution:

My mistake was to manually create the log file in the dev directory of 
the chroot user.


An example of directory is:
User: naira
Home directory: /var/www/naira.com.br

-- File sshd_config
Match Group customers
ChrootDirectory %h
ForceCommand internal-sftp-l VERBOSE f-AUTH

-- File syslog-ng.conf
source src {
unix-stream(/dev/log);
internal();
unix-stream(/var/www/naira.com.br/dev/log);
};

# ls -lah /var/www/naira.com.br/
drwxrwxr-x  13 root root 3.8K Mar  1 14:58 dev

Restart syslog-ng.

Thanks.

Naira Kaieski
Nucleo de Internet/Redes - Faccat
Linux Professional Institute - LPI000223834

Em 2/3/2011 14:05, Ivan Kharlamov escreveu:

2011/3/1 Naira Kaieskina...@faccat.br:

Good afternoon,

Staff set up openssh to direct users to a certain group members to a chroot
environment and these users will have access only to the server using sftp
protocol.

Put in the sshd_config file:
Match Group customers
ChrootDirectory% h
ForceCommand internal-sftp-l VERBOSE f-AUTH

Thus each user is directed to the chroot environment indicated in the
variable% h (home directory defined in / etc / passwd)

An example of directory is:
User: naira
Home directory: /var/www/naira.com.br

The problem is that I am not able to capture logs of the user group
clients that are targeted to the chroot environment. Access via
internal-sftp from other users who do not belong to the client I get the
logs in auth.log files.

I'm using syslog-ng.

Has anyone ever made this kind of setup?

Thanks,

--
Naira Kaieski
Nucleo de Internet/Redes - Faccat
Linux Professional Institute - LPI000223834




Hi!

Actually, I am incompetent at this area, but have you tried this?
http://groups.google.com/group/comp.security.ssh/browse_thread/thread/ce30a1d9889dc2e2

Best regards,
Ivan





Re: [gentoo-user] Re: OT: mobo and Ati video

2011-03-03 Thread Volker Armin Hemmann
On Wednesday 02 March 2011 22:38:02 James wrote:
 Volker Armin Hemmann volkerarmin at googlemail.com writes:
  since I changed that f*er for a 880GA-UD3H
 
 OK, how's the 7.1 audio output? Is it analog
 or digital audio output that you have
 set up and used.
 
 Do you like it?
 
 
 james

I have an audigy2 which has great sound - so I simply don't know ;)



[gentoo-user] Re: udevd not running after boot

2011-03-03 Thread klondike
2011/3/1 klondike franxisco1...@gmail.com:
 Hi I have installed sys-fs/udev-151-r4  USE=extras -devfs-compat
 -old-hd-rules (-selinux) -test on an almost clean hardened stage3 and I
 found that after rebooting it won't run. It could be a problem of the
 .config but turns out it runs and works like a charm when started
 manually. So my question is, what could be happening? How can I fix it?

 FWIW the system uses baselayout-1
Seem that the initrd leaked a mounted /dev/ at then end, fixing the
initrd solved the problem.



Re: [gentoo-user] LXDE

2011-03-03 Thread Walter Dnes
On Thu, Mar 03, 2011 at 02:35:08PM +0100, Alex Schuster wrote

 No. But try Alt-SysRq-R, this removes keyboard control from X,
 and you should be able to switch to a text terminal.  If not,
 Alt-SysRq-{E,I,S,U,B} (with little pasues between each) will at
 least do a cleaner reboot than hitting the reset button.

  Note that this requires Magic SysRq key support in the kernel.
Under make menuconfig enable...

Kernel hacking  ---
[*] Magic SysRq key

-- 
Walter Dnes waltd...@waltdnes.org



Re: [gentoo-user] LXDE

2011-03-03 Thread daid kahl
 I want to use LXDE as a Desktop on a fresh install of Gentoo on a laptop
 (amd64).  It seems to work, but when I logout it hangs.  It never
 returns to the command prompt and the keyboard doesn't work so I can
 switch to an alternate terminal.

Strange.  Never used LXDE, but KDE and Xfce I never had such a problem
with startx.  Anyway, if you're serious about using it, probably
you'll want xdm and likely slim (since you're running something
lightweight).  Yeah, I ran startx for two years because I'm that
lazy, but anyway, it's a good idea.

From XDM you can get a terminal if you want.  This is only at best a
work around (or indication of deeper problems), but you may try it.

Just make sure you edit slim.conf for your login_cmd since for zsh you
get a little wrecked if you don't...

Cheers,
daid



Re: [gentoo-user] Gnumeric USE options and .xlsx files?

2011-03-03 Thread daid kahl
On 3 March 2011 11:44, Walter Dnes waltd...@waltdnes.org wrote:
  Is Gnumeric unable to handle Excel .xlsx files or am I missing a USE
 flag somewhere?

 emerge -pv libreoffice

 http://www.autoobserver.com/car-data-center/assets/2011-03%20Sales.xlsx

Tried your file in OO.o 3.2.1.  Let me get you my USE flags for
reference: cups dbus gstreamer gtk java ldap nsplugin opengl* pam
(-aqua) -bash-completion* -binfilter -debug -eds -gnome -kde
(-kdeenablefinal) -odk -templates

I hope that's cool for you.  So I didn't build it with opengl, but I
did with bash-completion, and I changed make.conf since.

Anyway, if you ask me, libreoffice is still in the works in terms of
the ebuild.  I don't want to toot my own horn, but see
http://bugs.gentoo.org/show_bug.cgi?id=295268 which very well
indicates that the libreoffice ebuild was not derived from, nor
seriously considering past problems encountered by, the openoffice
ebuild.  IMO I'd hash it to a libreoffice problem, since I can open
your document over here.

Don't get me wrong, I'll be more than happy to switch to libreoffice,
but I'm not convinced, at the very least, that the Gentoo team has it
squared away yet.  No blame there, it's just as easily an upstream
problem.

But I really doubt it's a USE flag...

Cheers,
daid



[gentoo-user] tmux first impression

2011-03-03 Thread Walter Dnes
On Wed, Mar 02, 2011 at 06:48:47PM -0600, Dale wrote

 I read that but still would love to here of someone else's experience.  
  From that link tho, it sounds . . . interesting.

  I emerged tmux a couple of hours ago and have been playing around with
it.  It looks like fun.  I have a 24 LCD monitor.  I prefer console text
mode for non-graphic stuff (e.g. email).  Here's what I've done so
far...
1) grep 1280 /var/log/Xorg.0.log
   This gives me a list of 1280xwhatever modes that my monitor supports.
In my case, it's 1280x720 and 1280x960 and 1280x1024. 

2) I entered the line

CONSOLEFONT=lat1-14

in /etc/conf.d/consolefont

3) and also video=1280x720 in the append line of /etc/lilo.conf

4) I entered the line

set -g prefix C-a

in ~/.tmux.conf because every site on the web that reviewed it said that
was the way to go.  Apparently, the developer uses {CONTROL-B} as the
default hotkey to avoid colliding with {CONTROL-A} which screen uses.
But everyone agrees that {CONTROL-B} is badly placed on the keyboard.

5) Then I rebooted

  The text console mode is now 1280 pixels x 720 pixels as per the
video= parameter.  The consolefont sets 8x14 (EGA) font.  A bit of
division gives...
1280 / 8 = 160
720 / 14 = 51 plus a bit.
  So I have a 160 x 51 text console.  I fired up tmux, and split the
screen vertically.  I now have 2 panes.  The first one is 80 x 50 and
the second is 79 x 50.  This is after allowing for the vertical dividing
line (one column) and the status bar at the bottom.  The 14-pixel high
font is quite nice.  And on a 24 monitor it's very readable.  If you
prefer, you could go with the 16-pixel high (VGA) font.  That gives 720
/ 16 = 45 rows, or 44 working rows plus the status line.  Both text
pages are in portrait mode, i.e. they're higher than they are wide.
Sort of like 2 facing pages of a book.  This could be useful for
editing a program in one pane, and then compile and execute in another.

  If your eyesight is better than mine, you could try video=1280x960
and 16-pixel high font, which will give a 160 x 60 text console.

  I like it.  One of these days, when desktop monitors hit 30, I'll set
the video to 1920x1080 and have 3 pages across. G

-- 
Walter Dnes waltd...@waltdnes.org



Re: [gentoo-user] tmux first impression

2011-03-03 Thread Dale

Walter Dnes wrote:

On Wed, Mar 02, 2011 at 06:48:47PM -0600, Dale wrote

   

I read that but still would love to here of someone else's experience.
  From that link tho, it sounds . . . interesting.
 

   I emerged tmux a couple of hours ago and have been playing around with
it.  It looks like fun.  I have a 24 LCD monitor.  I prefer console text
mode for non-graphic stuff (e.g. email).  Here's what I've done so
far...
1) grep 1280 /var/log/Xorg.0.log
This gives me a list of 1280xwhatever modes that my monitor supports.
In my case, it's 1280x720 and 1280x960 and 1280x1024.

2) I entered the line

CONSOLEFONT=lat1-14

in /etc/conf.d/consolefont

3) and also video=1280x720 in the append line of /etc/lilo.conf

4) I entered the line

set -g prefix C-a

in ~/.tmux.conf because every site on the web that reviewed it said that
was the way to go.  Apparently, the developer uses {CONTROL-B} as the
default hotkey to avoid colliding with {CONTROL-A} which screen uses.
But everyone agrees that {CONTROL-B} is badly placed on the keyboard.

5) Then I rebooted

   The text console mode is now 1280 pixels x 720 pixels as per the
video= parameter.  The consolefont sets 8x14 (EGA) font.  A bit of
division gives...
1280 / 8 = 160
720 / 14 = 51 plus a bit.
   So I have a 160 x 51 text console.  I fired up tmux, and split the
screen vertically.  I now have 2 panes.  The first one is 80 x 50 and
the second is 79 x 50.  This is after allowing for the vertical dividing
line (one column) and the status bar at the bottom.  The 14-pixel high
font is quite nice.  And on a 24 monitor it's very readable.  If you
prefer, you could go with the 16-pixel high (VGA) font.  That gives 720
/ 16 = 45 rows, or 44 working rows plus the status line.  Both text
pages are in portrait mode, i.e. they're higher than they are wide.
Sort of like 2 facing pages of a book.  This could be useful for
editing a program in one pane, and then compile and execute in another.

   If your eyesight is better than mine, you could try video=1280x960
and 16-pixel high font, which will give a 160 x 60 text console.

   I like it.  One of these days, when desktop monitors hit 30, I'll set
the video to 1920x1080 and have 3 pages across.G

   


I installed it too.  It seems a lot like screen to me and screen seems 
to do what I need.  I did hit ctrl a several times tho.  lol  I was 
wondering what would happen if you started tmux then started a screen 
session inside it.


My 22 LCD monitor is 1920x1080.  Since my glasses are sort of old, I 
would rather have a slightly smaller screen.  I need new glasses for 
sure.  Anyway, I got everything set up for this size now.


I may play with tmux some more tho.  I do like the little status thingy 
at the bottom.  I had that on screen on my old rig but forgot to copy it 
over to my new rig.


Thanks for the post and the tips.

Dale

:-)  :-)