Re: [gentoo-user] how to move overlays to a new storage location
On Thursday 28 May 2009 06:18:22 Valmor de Almeida wrote: Hello, A recent update of layman changed the storage variable in /etc/layman/layman.cfg to storage : /usr/local/portage/layman It was previously /usr/portage/local/layman. As a result I would like to move things to the new location. I actually like it better under /usr/local/portage. Is this just a matter of manually fixing the content of the files: /etc/makec.conf and /usr/portage/local/layman/make.conf to reflect the change and moving the directory /usr/portage/local/ to /usr/local/portage/ ? Store your own custom overlays in PORTDIR_OVERLAY in /etc/make.conf layman maintains it's own list of overlays and locations, so you must source /var/portage/local/layman/make.conf in /etc/make.conf and defined the overall storage area for layman overlays in /etc/layman/layman.cfg -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] get fences failed: -1 and [drm:i915_getparam] *ERROR*
On Thu, 28 May 2009 01:44:58 -0400, Valmor de Almeida wrote: Anytime I fireup openoffice-3.0.0 components, I get this message at the command prompt: get fences failed: -1 param: 6, val: 0 I used to get this, although it caused no apparent problems. The message disappeared after upgrading to OOo 3.1.0. Whether it was the upgrade or rebuilding OOo that fixed it, I have no idea. -- Neil Bothwick I'm not broke, I'm `financially challenged'. signature.asc Description: PGP signature
Re: [gentoo-user] ARGH I uninstalled python
On Wed, May 27, 2009 at 5:55 PM, Neil Bothwick n...@digimed.co.uk wrote: On Wed, 27 May 2009 16:28:35 -0400, Wyatt Epp wrote: You know, I wonder if that's not a bug? There is no eselect module for setting your python version, U % eselect python help Manage the /usr/bin/python and python.1 man symlinks. Usage: eselect python action options Whoops, guess I just didn't have it installed. My bad, then. Regards, Wyatt
Re: [gentoo-user] USE=mmx mmxext sse sse2 ssse3 3dnow 3dnowext
On Thu, 28 May 2009 00:23:52 +0300 Arttu V. arttu...@gmail.com wrote: On 5/27/09, Wyatt Epp wyatt@gmail.com wrote: Reading this thread, though, it seems like it would be useful to have a FEATURES=cpudetection for Portage. Congratulations, it's already there! Sort of. -march=native ;) Not the same thing. -march= instructs gcc to produce a binary designed to run only on the given CPU architecture, while USE flags instruct the build system to include or not support for a given feature. Think of the USE flags this and that as shortcuts to ./configure --enable-this --disable-that. So, for example mplayer could be a binary which can take advantage (or not) of SSSE3 and is designed to run only (or not) on core2. P.S. And what's next - feature like: FEATURES=do_the_best_system_ever where do_the_best_system_ever is a shorthand for: detect_best_cflags detect_best_cxxflags detect_best_ldflags detect_best_uselags Sounds good and it's not against Gentoo philosophy - the end user has the choice to use this feature or not. Any volunteers for the implementation? Oh, wait! Somebody define best, please! :) -- Best regards, Daniel
[gentoo-user] Re: [SOLVED] Re: xterm fonts not loaded
Valmor de Almeida wrote: Paul Hartman wrote: And specifically make sure that media-fonts/font-misc-misc is not having problems. It was not installed. Now xterm is happy. Thanks, Hmm, how can that be? It's a dependency of x11-base/xorg-x11.
Re: [gentoo-user] Question about xorg and a kill process
On Wed, 27 May 2009 10:01:12 -0500 Dale rdalek1...@gmail.com wrote: I only have one machine right now. Someone gave me a HP laptop but I haven't fixed it yet. Power connector is shorted out big time. Then for example on tty2 start sleep 300 ; /etc/init.d/xdm stop ; killall X and on tty1 do /etc/init.d/xdm start Another approach is to use acpid. I've read this tip here posted by Volker Hemmann IIRC. If you use acpid, there should be a file called /etc/acpi/default.sh Modify it, substituting the lines: 19 case $action in 20 power) 21/sbin/init 0 with 19 case $action in 20 power) 21/usr/bin/chvt 1 then do /etc/init.d/acpid restart. Now pressing the power button on your machine should switch to the active TTY to tty1 -- Best regards, Daniel
[gentoo-user] k3b doesn't show in KDE 4's menu
I installed k3b (a KDE 3 application) but it doesn't show in KDE 4's application launch menu (aka Start menu). Can this be seen as a bug or am I supposed to create the desktop entry myself?
Re: [gentoo-user] change output of passwd
On Wed, May 27, 2009 at 14:55, Raul Gonzales rg0...@googlemail.com wrote: To something like: New UNIX password: BAD PASSWORD: password must be at least 6 characters long and must contain at least 1 digit, 1 special character Write a patch for the program? Make a new translation of the program? Ward
Re: [gentoo-user] get fences failed: -1 and [drm:i915_getparam] *ERROR*
Neil Bothwick wrote: On Thu, 28 May 2009 01:44:58 -0400, Valmor de Almeida wrote: Anytime I fireup openoffice-3.0.0 components, I get this message at the command prompt: get fences failed: -1 param: 6, val: 0 I used to get this, although it caused no apparent problems. The message disappeared after upgrading to OOo 3.1.0. Whether it was the upgrade or rebuilding OOo that fixed it, I have no idea. I just noticed that I do get the same messages when I run glxinfo and glxgears In fact glxgears seems quite slow: - glxgears get fences failed: -1 param: 6, val: 0 300 frames in 5.0 seconds = 59.565 FPS 298 frames in 5.0 seconds = 59.524 FPS 299 frames in 5.0 seconds = 59.737 FPS 300 frames in 5.0 seconds = 59.884 FPS Also I finally can reproduce a strange thing that I see when I run ooimpress, namely as the mouse pointer moves from the original window where the application was run to another window, a portion of the original window is highlighted as if it were selected for copy? Not sure I am doing a good job at describing it. For instance the frames info I listed above cannot be seen on the window once I move the mouse pointer out of it because the entire window is highlighted; in my case with yellow color. Then I kill glxgears and scroll the xterm up and down to see the frames output from glxgears; always ~60 FPS. Shouldn't I be getting a lot more? I wonder whether I should reemerge mesa? I just did an updated of x11 * x11-base/xorg-server Latest version available: 1.5.3-r6 Latest version installed: 1.5.3-r6 Size of files: 5,549 kB Homepage: http://xorg.freedesktop.org/ Description: X.Org X servers License: xorg-server MIT * x11-base/xorg-x11 Latest version available: 7.2 Latest version installed: 7.2 Size of files: 0 kB Homepage: http://xorg.freedesktop.org Description: An X11 implementation maintained by the X.Org Foundation (meta package) License: as-is Thanks for any inputs. -- Valmor - glxinfo name of display: :0.0 get fences failed: -1 param: 6, val: 0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: SGI server glx version string: 1.2 server glx extensions: GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_OML_swap_method, GLX_SGI_swap_control, GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group client glx vendor string: SGI client glx version string: 1.4 client glx extensions: GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory, GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap GLX version: 1.2 GLX extensions: GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group OpenGL vendor string: Tungsten Graphics, Inc OpenGL renderer string: Mesa DRI Intel(R) 945GM GEM 20090114 OpenGL version string: 1.4 Mesa 7.4 OpenGL extensions: GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_pixel_buffer_object, GL_ARB_point_parameters, GL_ARB_shadow, GL_ARB_texture_border_clamp, GL_ARB_texture_compression, GL_ARB_texture_cube_map, GL_ARB_texture_env_add, GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two, GL_ARB_texture_rectangle, GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate, GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint, GL_EXT_cull_vertex, GL_EXT_compiled_vertex_array, GL_EXT_copy_texture, GL_EXT_draw_range_elements, GL_EXT_framebuffer_object, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil, GL_EXT_packed_pixels, GL_EXT_pixel_buffer_object, GL_EXT_point_parameters, GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color, GL_EXT_separate_specular_color, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap, GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
Re: [gentoo-user] Re: [SOLVED] Re: xterm fonts not loaded
Nikos Chantziaras wrote: Valmor de Almeida wrote: Paul Hartman wrote: And specifically make sure that media-fonts/font-misc-misc is not having problems. It was not installed. Now xterm is happy. Thanks, Hmm, how can that be? It's a dependency of x11-base/xorg-x11. My xorg has been acting strange since the update to 1.5. Little problems here and there. As of now I need font-misc-misc emerged into world. Therefore - equery depends font-misc-misc [ Searching for packages depending on font-misc-misc... ] There were other posts in this list with the same problem. -- Valmor
Re: [gentoo-user] Cleaning up world
Volker Armin Hemmann wrote: Look into /usr/portage/profiles/base/packages. Everything in there must not be in your world file. Afterwards start the big deleting. You have gnome installed? Remove everything X11, glib, gtk from world. kde? qt does not belong there. With a little bit of thinking you can reduce world A LOT. I find sys-devel/gcc in my world file. It is listed in ...base/packages too. How exactly do I remove it from world? Just edit the world file by removing the sys-devel/gcc line and do a revdep-rebuild --ignore followed by a emerge --depclean ? Thanks for inputs; I don't want to break my system. -- Valmor
Re: [gentoo-user] Cleaning up world
On Thu, May 28, 2009 at 8:31 AM, Valmor de Almeida val.gen...@gmail.com wrote: Volker Armin Hemmann wrote: Look into /usr/portage/profiles/base/packages. Everything in there must not be in your world file. Afterwards start the big deleting. You have gnome installed? Remove everything X11, glib, gtk from world. kde? qt does not belong there. With a little bit of thinking you can reduce world A LOT. I find sys-devel/gcc in my world file. It is listed in ...base/packages too. How exactly do I remove it from world? Just edit the world file by removing the sys-devel/gcc line and do a revdep-rebuild --ignore followed by a emerge --depclean ? Thanks for inputs; I don't want to break my system. -- Valmor Yes, just edit it, but remember what you did. Depending on how the tools react you may want to put it back in. Well, not gcc necessarily, but if you do this for other packages pay attention to what happens. When I do this I rerun emerge -pdDuN world, eix-test-obsolete, revdep-rebuild -p, etc., to make sure nothing really changed. Hope this helps, Mark
[gentoo-user] [ot] no more inodes
Hi group, For a netbook 4G SSD. Attempting to install mozilla-firefox. jdk fails: No space left on device. df -i reveals no more inodes. I reboot thinking this will help. Wrong. Lots of 'No space left on device messages' with reference to /var/lib/iinit.d/* in the boot console. And this gem: '*ERROR: local is already starting'. And: '*ERROR: netmount is already starting'. df -i FilesytemInodes Iused IFree IUse% Mounted on /dev/sda2 244320 244301 19 100% / udev 128448 612 1278361% /dev /dev/sda1 8032 39 79931% /boot tmpfs 128448 3 1 284451% /tmp FYI sda2 is formatted ext3. I know 4G is pretty small by today's standards but apart from xorg and firefox everything else on this unit is command-line type utilities and such. That can't account for 4G already. Maxim
[gentoo-user] Re: [SOLVED] Re: xterm fonts not loaded
Valmor de Almeida wrote: Nikos Chantziaras wrote: Valmor de Almeida wrote: Paul Hartman wrote: And specifically make sure that media-fonts/font-misc-misc is not having problems. It was not installed. Now xterm is happy. Thanks, Hmm, how can that be? It's a dependency of x11-base/xorg-x11. My xorg has been acting strange since the update to 1.5. Little problems here and there. As of now I need font-misc-misc emerged into world. Therefore - equery depends font-misc-misc [ Searching for packages depending on font-misc-misc... ] There were other posts in this list with the same problem. Weird. Here's mine: equery depends font-misc-misc * Searching for font-misc-misc ... x11-base/xorg-x11-7.4 (=media-fonts/font-misc-misc-1.0.0) How can that be? Do you actually have x11-base/xorg-x11-7.4 installed? If not, I can imagine many problems popping up.
Re: [gentoo-user] [ot] no more inodes
Maxim Wexler schrieb: Hi group, For a netbook 4G SSD. Attempting to install mozilla-firefox. jdk fails: No space left on device. df -i reveals no more inodes. I reboot thinking this will help. Wrong. Lots of 'No space left on device messages' with reference to /var/lib/iinit.d/* in the boot console. And this gem: '*ERROR: local is already starting'. And: '*ERROR: netmount is already starting'. df -i FilesytemInodes Iused IFree IUse% Mounted on /dev/sda2 244320 244301 19 100% / udev 128448 612 1278361% /dev /dev/sda1 8032 39 79931% /boot tmpfs 128448 3 1 284451% /tmp FYI sda2 is formatted ext3. I know 4G is pretty small by today's standards but apart from xorg and firefox everything else on this unit is command-line type utilities and such. That can't account for 4G already. Maxim That you run out of inodes doesn't mean that you run out of physical (or logical) space on your disk. It just means that you run out of what you could call file descriptors. There is exactly one inode per file which stores meta information about this file. Ext2-4 have a fixed amount of inodes set when you format the partition. Reiserfs and JFS create them on the fly and therefore don't have problems with running out of inodes or wasting space on unused ones. Most likely you have a bunch of very small files on our disk, for example the portage tree. These don't consume much space but a lot of inodes. My advice: Save everything to another disk and then reformat the partition with a higher amount of inodes. If you use ext2, format it with mke2fs -N 732960 /dev/sda2 This will create a file system with three times as many indoes as you had before. Hope this helps.
Re: [gentoo-user] Re: [SOLVED] Re: xterm fonts not loaded
Nikos Chantziaras wrote: Valmor de Almeida wrote: Nikos Chantziaras wrote: Valmor de Almeida wrote: Paul Hartman wrote: And specifically make sure that media-fonts/font-misc-misc is not having problems. It was not installed. Now xterm is happy. Thanks, Hmm, how can that be? It's a dependency of x11-base/xorg-x11. My xorg has been acting strange since the update to 1.5. Little problems here and there. As of now I need font-misc-misc emerged into world. Therefore - equery depends font-misc-misc [ Searching for packages depending on font-misc-misc... ] There were other posts in this list with the same problem. Weird. Here's mine: equery depends font-misc-misc * Searching for font-misc-misc ... x11-base/xorg-x11-7.4 (=media-fonts/font-misc-misc-1.0.0) How can that be? Do you actually have x11-base/xorg-x11-7.4 installed? If not, I can imagine many problems popping up. No I am using the stable 7.2 * x11-base/xorg-x11 Latest version available: 7.2 Latest version installed: 7.2 Size of files: 0 kB Homepage: http://xorg.freedesktop.org Description: An X11 implementation maintained by the X.Org Foundation (meta package) License: as-is I typically try to stick with the stable version of packages specially when dealing with xorg. I wonder whether other problems I am having are related to the version of xorg-x11 I am using. Thanks, -- Valmor
[gentoo-user] [OT] Running two apaches and MySQLs on the same server
Hi All, I am considering running an ecommerce website (php+mysql) on a server which is already running apache (with a number of virtual hosts) and a couple of php+mysql driven websites. The ecommerce website is meant to be used to process customer payments. I have not looked into setting up something like this before and I am not sure where to start. Should I be thinking of chroot jails, multiple apache/mysql installations, or what else is recommended? How do you do it in your implementations? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] USE=mmx mmxext sse sse2 ssse3 3dnow 3dnowext
On 28 May 2009, at 11:17, Daniel Iliev wrote: ... Not the same thing. -march= instructs gcc to produce a binary designed to run only on the given CPU architecture, while USE flags instruct the build system to include or not support for a given feature ... Actually, I _think_ in mplayer the difference is that the USE flags enable the use of hand-written assembler code which takes advantage of the MMX or whatever. I'm not 100% sure about this at all, but what's the difference in the architectures of the Pentium 2 the Pentium 3, if not for the support for SSE? (and / or whatever) Sure they are designed differently, but surely the instruction sets of all 32-bit processors from the earliest Pentiums even to Core Duos (not Core2s) are all basically x86. Some have these extended instruction sets (EIS, I think you called them earlier in the thread) and those are the additions from one generation to the next. So if you choose -march=pentium3 it will not run on a Pentium 2 because Pentium 2s do not have SSSE, and it's the *compiler* that added the code that utilises SSE. I believe that mplayer is one of those exceptional packages which uses some assembler optimisations. These don't make any sense for most programs, because it takes too much time to write much maintenance is loads of hassle, and assembler will make little difference. Most programs are one minute opening a new window, and the next minute are waiting for the mail server to reply and are doing lots of different tasks which are not worth hand optimising. But once mplayer has started decoding a video, then it's doing the same thing time time again, decoding each frame of the picture - it does exactly the same thing 25 times per second for an hour or two at a time, so that may be worth optimising for if the compiler is found to be less clever than someone like John Carmack. I'm not absolutely sure that the USE flags enable hand-written assembler code, but what I do know is that: 1) ASM stands for assembler. See http://en.wikipedia.org/wiki/Asm 2) Google mplayer asm returns a bunch of hits. 3) MMX was marketed as MultiMedia eXtension 4) mplayer is a multimedia player. 5) MMX doesn't have floating point support, but SSE adds that and has dedicated functions for multiplying floating point numbers [1], which is just the sort of thing that one are useful in decoding mpegs playing back video. Stroller. [1] http://en.wikipedia.org/wiki/Streaming_SIMD_Extensions
Re: [gentoo-user] [OT] Running two apaches and MySQLs on the same server
On Thursday 28 May 2009 20:57:08 Mick wrote: Hi All, I am considering running an ecommerce website (php+mysql) on a server which is already running apache (with a number of virtual hosts) and a couple of php+mysql driven websites. The ecommerce website is meant to be used to process customer payments. I have not looked into setting up something like this before and I am not sure where to start. Should I be thinking of chroot jails, multiple apache/mysql installations, or what else is recommended? How do you do it in your implementations? A chroot jail is of no real use to you here - it's a development tool and amazingly useful for gentoo installs, but has no real security or process separation benefits. So says Alan - not me, a different one. Your problem will be that only one apache instance can run on port 80. Your options: 1. Run the ecommerce apache on a different port. 2. Install a second NIC with a different IP and bind each apache to port 80 on it's own nic. 3. If you use separate mysqls, run them on different ports. However, it's an e-commerce site so one must state the obvious: You must be out of your mind running an ecommerce site on the same machine as other php vhosts. Please give me the URL so I know never to buy there - I have no way of knowing what those vhosts are, who the webmaster is and how secure they are. So I recommend option 4: Pony up the money for server #2 -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] [ot] no more inodes
On Thursday 28 May 2009 17:46:03 Maxim Wexler wrote: Hi group, For a netbook 4G SSD. Attempting to install mozilla-firefox. jdk fails: No space left on device. df -i reveals no more inodes. I reboot thinking this will help. Wrong. Lots of 'No space left on device messages' with reference to /var/lib/iinit.d/* in the boot console. And this gem: '*ERROR: local is already starting'. And: '*ERROR: netmount is already starting'. df -i FilesytemInodes Iused IFree IUse% Mounted on /dev/sda2 244320 244301 19 100% / udev 128448 612 1278361% /dev /dev/sda1 8032 39 79931% /boot tmpfs 128448 3 1 284451% /tmp FYI sda2 is formatted ext3. I know 4G is pretty small by today's standards but apart from xorg and firefox everything else on this unit is command-line type utilities and such. That can't account for 4G already. Your problem isn't that you have no more space. Your problem is that you cannot create any more files. Inodes - google it. Maxim -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] [OT] Running two apaches and MySQLs on the same server
On Thursday 28 May 2009, Alan McKinnon wrote: A chroot jail is of no real use to you here - it's a development tool and amazingly useful for gentoo installs, but has no real security or process separation benefits. So says Alan - not me, a different one. OK, thanks for this to both of you! :) Your problem will be that only one apache instance can run on port 80. That's no problem. I can run the payment managing website on a different port. Your options: 1. Run the ecommerce apache on a different port. Yep, SSL, different port. 2. Install a second NIC with a different IP and bind each apache to port 80 on it's own nic. How do you do this? 3. If you use separate mysqls, run them on different ports. I'll need to run them using /usr/bin/mysql --options I guess, rather than using the /etc/init.d scripts, right? However, it's an e-commerce site so one must state the obvious: You must be out of your mind running an ecommerce site on the same machine as other php vhosts. Please give me the URL so I know never to buy there - I have no way of knowing what those vhosts are, who the webmaster is and how secure they are. Is the fear that one of these apache vhosts installations will be compromised and then the ecommerce/payment website will get hacked from the inside? So I recommend option 4: Pony up the money for server #2 Hmm, yes that's what I was trying to avoid. ;-) Would running complete virtual servers to achieve separation be any/much better? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] [OT] Running two apaches and MySQLs on the same server
Alan McKinnon wrote: On Thursday 28 May 2009 20:57:08 Mick wrote: I am considering running an ecommerce website (php+mysql) on a server which is already running apache (with a number of virtual hosts) and a couple of php+mysql driven websites. The ecommerce website is meant to be used to process customer payments. I have not looked into setting up something like this before and I am not sure where to start. Should I be thinking of chroot jails, multiple apache/mysql installations, or what else is recommended? How do you do it in your implementations? A chroot jail is of no real use to you here - it's a development tool and amazingly useful for gentoo installs, but has no real security or process separation benefits. So says Alan - not me, a different one. Your problem will be that only one apache instance can run on port 80. Your options: 1. Run the ecommerce apache on a different port. 2. Install a second NIC with a different IP and bind each apache to port 80 on it's own nic. 3. If you use separate mysqls, run them on different ports. However, it's an e-commerce site so one must state the obvious: You must be out of your mind running an ecommerce site on the same machine as other php vhosts. Please give me the URL so I know never to buy there - I have no way of knowing what those vhosts are, who the webmaster is and how secure they are. So I recommend option 4: Pony up the money for server #2 Ad.2: he can assign 2 IPs to single NIC. No need to buy the second NIC. BTW, I was in a similar situation: one user wanted to use notoriously buggy phpBB, but I did not want to risk compromising my other web-pages. So I have opted for #5: vserver-sources, and I have multiple instances of apache running in pretty good isolated vserver-guests. My €0.0144 ... Jarry -- ___ This mailbox accepts e-mails only from selected mailing-lists! Everything else is considered to be spam and therefore deleted.
Re: [gentoo-user] [OT] Running two apaches and MySQLs on the same server
On Thursday 28 May 2009 21:33:02 Mick wrote: On Thursday 28 May 2009, Alan McKinnon wrote: A chroot jail is of no real use to you here - it's a development tool and amazingly useful for gentoo installs, but has no real security or process separation benefits. So says Alan - not me, a different one. OK, thanks for this to both of you! :) Your problem will be that only one apache instance can run on port 80. That's no problem. I can run the payment managing website on a different port. Your options: 1. Run the ecommerce apache on a different port. Yep, SSL, different port. 2. Install a second NIC with a different IP and bind each apache to port 80 on it's own nic. How do you do this? It' sin the apache docs, called IP based virtual hosts if memory serves. Basically, you'll modify the standard apache init script and make a copy to be able to treat two apaches as separate apps. Instead of simply specifying the port, specify an IP and a port in the config. You must use different hostnames too obviously, and get this info into DNS. Start apache-1, start apache-2, voila 3. If you use separate mysqls, run them on different ports. I'll need to run them using /usr/bin/mysql --options I guess, rather than using the /etc/init.d scripts, right? Yup, two configs, two init scripts, two instances. Just like apache. However, it's an e-commerce site so one must state the obvious: You must be out of your mind running an ecommerce site on the same machine as other php vhosts. Please give me the URL so I know never to buy there - I have no way of knowing what those vhosts are, who the webmaster is and how secure they are. Is the fear that one of these apache vhosts installations will be compromised and then the ecommerce/payment website will get hacked from the inside? Yes. You do not ever want people's credit card details exposed or stolen. You need to take extraordinary efforts or customers will not trust you. Any thought you ever have along the lines of I don't need to do thing X as that will not happen - beware, that's the very time that Murphy makes X happen... So I recommend option 4: Pony up the money for server #2 Hmm, yes that's what I was trying to avoid. ;-) Would running complete virtual servers to achieve separation be any/much better? It's almost as good as separate hardware, especially if you have a good virtual machine system that gives you complete separation of network interfaces - either physical or virtual. If the box can handle the load, I say go with this approach. You have to have an enormous site with heaps of users to outrun an average modern server -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] [OT] Running two apaches and MySQLs on the same server
On Thursday 28 May 2009 21:34:33 Jarry wrote: Ad.2: he can assign 2 IPs to single NIC. No need to buy the second NIC. BTW, I was in a similar situation: one user wanted to use notoriously buggy phpBB, but I did not want to risk compromising my other web-pages. So I have opted for #5: vserver-sources, and I have multiple instances of apache running in pretty good isolated vserver-guests. My €0.0144 ... I used vserver once, and was very impressed with the performance. I didn't use it eventually, as I found administering a real running instance was non- intuitive to anyone but me and I found it very hard to get people to grok how to run the things. That was in the days of pre-baselayout-2 when one had to use a very hackish and buggy baselayout. How does it fare with v2? -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] [OT] Running two apaches and MySQLs on the same server
On 28 May 2009, at 20:12, Alan McKinnon wrote: ... Your problem will be that only one apache instance can run on port 80. Your options: 1. Run the ecommerce apache on a different port. 2. Install a second NIC with a different IP and bind each apache to port 80 on it's own nic. Or run the separate instance of Apache on a different port, then have a vhost on the instance of Apache on port 80 redirect to the instance of Apache running on port 81 (or wherever). I believe there is more than one way to de-fur this particular feline (mod_proxy mod_rewrite). However, it's an e-commerce site so one must state the obvious: You must be out of your mind running an ecommerce site on the same machine as other php vhosts. Please give me the URL so I know never to buy there - I have no way of knowing what those vhosts are, who the webmaster is and how secure they are. So I recommend option 4: Pony up the money for server #2 Just for the sake of satanic advocacy, could you indulge me, please? Let's say Mick is the administrator for all domains in question. He decides to run the two sites on different machines, one for MickBlog.org and one for MicrophoneShoppe.com. If MickBlog is insecure, what makes you think he will administer MicrophoneShoppe any more securely? If Mick decides to run both sites on the same machine, served by the same MySQL sever Apache instances, surely he can set permissions in such a way that MickBlog.org is unable to access the data of MicrophoneShoppe.com? I don't know all the details, but (at least) the SQL server should be able to host multiple databases, each with different permissions; thus someone obtaining the admin WordPress password for MickBlog.org may be able to edit the blog posts on that site, but they shouldn't be able to access the shop's DB (which should be separate (a separate MySQL user?) and secured with a different password). My biggest reservation to my the thoughts I've outlined above (and I'm by no means saying those are sound, either) is that PHP is mentioned, and I've heard that's not the most secure language. Is that also your concern? There are loads of web hosting companies out there that offer ecommerce options, and I'd have thought that some of them are $30/year deals which are run in vhosts and shared databases just like this. So I'm inclined to imagine that this must be possible with _some_ level of security. Clearly, yes, the best option is to isolate things as much as possible, but the site's income might not justify the expense of a dedicated server at present - does that render secure ecommerce truly impossible? Stroller.
Re: [gentoo-user] [OT] Running two apaches and MySQLs on the same server
On Thursday 28 May 2009 21:51:26 Stroller wrote: So I recommend option 4: Pony up the money for server #2 Just for the sake of satanic advocacy, could you indulge me, please? Let's say Mick is the administrator for all domains in question. He decides to run the two sites on different machines, one for MickBlog.org and one for MicrophoneShoppe.com. If MickBlog is insecure, what makes you think he will administer MicrophoneShoppe any more securely? I suffer from a healthy dose of paranoia :-) Added to that, my employer is an ISP and not shy with budgets, so a purchase order for new hardware in a case like this will not raise any eyebrows. For me, it's a low level of risk high impact scenario and the $ cost is low. In a budget-constrained environment, it would obviously work very differently And yes, I do indeed not trust php code at all. I've seen the audit results of too many php projects that were diligently hardened and what it took to get them from working state to an acceptably secure state. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] USE=mmx mmxext sse sse2 ssse3 3dnow 3dnowext
On Thu, May 28, 2009 at 21:13, Stroller strol...@stellar.eclipse.co.uk wrote: I'm not absolutely sure that the USE flags enable hand-written assembler code, but what I do know is that: Don't make it more difficult then it is. SSE, etc means the CPU support a certain set of instructions. When you enable the use flag for it, mplayer will make use of the instructions. And to do that, it will use assembly if necessary. If you want to know where and how, take a look at the mplayer source code. For example the file libavcodec/x86/h264_idct_sse2.asm does exactly what the name suggests. Ward
Re: [gentoo-user] USE=mmx mmxext sse sse2 ssse3 3dnow 3dnowext
On 28 May 2009, at 21:08, Ward Poelmans wrote: On Thu, May 28, 2009 at 21:13, Stroller strol...@stellar.eclipse.co.uk wrote: I'm not absolutely sure that the USE flags enable hand-written assembler code, but what I do know is that: Don't make it more difficult then it is. SSE, etc means the CPU support a certain set of instructions. When you enable the use flag for it, mplayer will make use of the instructions. But, surely -march= also instructs gcc to support the additional instructions. Suggest you re-read Daniel's post that I was replying to. What's the difference between supporting the certain set of instructions with -march= and doing so with USEs? Or doesn't -march= support additional certain sets of instructions. What does it do, then? Stroller.
Re: [gentoo-user] USE=mmx mmxext sse sse2 ssse3 3dnow 3dnowext
On Thu, May 28, 2009 at 22:19, Stroller strol...@stellar.eclipse.co.uk wrote: What's the difference between supporting the certain set of instructions with -march= and doing so with USEs? Or doesn't -march= support additional certain sets of instructions. What does it do, then? The difference is that with the USE flag, you enable the use of assembly code in the source of mplayer that makes use of the certain set of instructions. The -march option enables the use of the certain set of instructions when gcc is optimizing and so gcc will use the certain set of instructions when it converts the source code into assembly code. Ward
Re: [gentoo-user] [OT] Running two apaches and MySQLs on the same server
Alan McKinnon wrote: So I have opted for #5: vserver-sources, and I have multiple instances of apache running in pretty good isolated vserver-guests. My €0.0144 ... I used vserver once, and was very impressed with the performance. I didn't use it eventually, as I found administering a real running instance was non- intuitive to anyone but me and I found it very hard to get people to grok how to run the things. That was in the days of pre-baselayout-2 when one had to use a very hackish and buggy baselayout. How does it fare with v2? I've been using vserver just for a few months. baselayout2 is still ~arch iirc, but I never had any problem with it. Once baselayouts2 goes finally stable, you can install guests with standard stage3. Untill then a slightly tweaked stage3 (with baselayout2) must be used... I'm running now 27 guests on very moderate server (AMD64/X2, 4GB RAM), every service on its own guest, with only ssh and logging on host. Even for gcc-upgrade I created new vserver-guest, to test it a little before updating server (host). Configuration is rather complex (especially for a newbie), but not very difficult. It is definitelly an adult-looking project now, worth giving a try... Jarry -- ___ This mailbox accepts e-mails only from selected mailing-lists! Everything else is considered to be spam and therefore deleted.
Re: [gentoo-user] USE=mmx mmxext sse sse2 ssse3 3dnow 3dnowext
On 28 May 2009, at 21:27, Ward Poelmans wrote: On Thu, May 28, 2009 at 22:19, Stroller strol...@stellar.eclipse.co.uk wrote: What's the difference between supporting the certain set of instructions with -march= and doing so with USEs? Or doesn't -march= support additional certain sets of instructions. What does it do, then? The difference is that with the USE flag, you enable the use of assembly code in the source of mplayer that makes use of the certain set of instructions. The -march option enables the use of the certain set of instructions when gcc is optimizing and so gcc will use the certain set of instructions when it converts the source code into assembly code. Right. That's what I was surmising in the post (28 May 2009 20:13:57 BST) you previously replied to. Stroller.
Re: [gentoo-user] [ot] no more inodes
My advice: Save everything to another disk and then reformat the partition with a higher amount of inodes. Everything? Won't that copy over the extraneous inodes? This will create a file system with three times as many indoes as you had before. Is 3x enough? I haven't even gotten off the ground yet, 28 lines in /var/db/pkg/world and my alotted inodes have been already used up? No gnome, kde, gimp, office etc etc. FWIW, I thought I'd chroot in and do an emerge -C mozilla-firefox but it hadn't even been installed yet! It choked on dev-java/jdk. So, did emerge mozilla-firefox. Same thing: IOError: [Errno 28] No space left on device: '/var/db/pkg/dev-java/-MERGING-sun-jdk-1.6.0.13/CFLAGS' mw
Re: [gentoo-user] [ot] no more inodes
On Thursday 28 May 2009 23:43:19 Maxim Wexler wrote: My advice: Save everything to another disk and then reformat the partition with a higher amount of inodes. Everything? Won't that copy over the extraneous inodes? You appear to not understand what an inode is. The inode IS THE FILE. It's a specially formatted block on disk, the filesystem knows how to interpret it, and it contains all known information (except one piece) about the file - as in, everything that ls can display. The missing bit of information is the name you call it by, that is stored in the directory (which is really just a special file and contains file names and their corresponding inode numbers - this is how the fs driver finds files). When you copy a file, the inode is read and a new one initialized in the new location. Then the disk blocks are read from the original and copied to the destination. As the destination does this, the fs driver knows how to keep it's inode accounting intact. So, there is no such thing as an extraneous inode. It's either being used (and thus gets copied) or it is not used (and does not get copied). You cannot copy a file without copying it's inode, and you cannot copy an inode without copying the file (special exception - files of zero length). This will create a file system with three times as many indoes as you had before. Is 3x enough? I haven't even gotten off the ground yet, 28 lines in /var/db/pkg/world and my alotted inodes have been already used up? No gnome, kde, gimp, office etc etc. You will need approx 500,000 inodes on an average machine total, split that up amongst your mounted volumes as appropriate. Use find -x | wc on an existing machine per mount point to get a rough idea of the scale. FWIW, I thought I'd chroot in and do an emerge -C mozilla-firefox but it hadn't even been installed yet! It choked on dev-java/jdk. So, did emerge mozilla-firefox. Same thing: IOError: [Errno 28] No space left on device: '/var/db/pkg/dev-java/-MERGING-sun-jdk-1.6.0.13/CFLAGS' Well, what did you expect? You have used up all the index entries for files, and you are trying to create more files. What else could it do apart from fail? Log onto the machine and delete some stuff. Then try unmerge to free up more space. Then backup, reformat, restore. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] get fences failed: -1 and [drm:i915_getparam] *ERROR*
- glxgears get fences failed: -1 param: 6, val: 0 300 frames in 5.0 seconds = 59.565 FPS 298 frames in 5.0 seconds = 59.524 FPS 299 frames in 5.0 seconds = 59.737 FPS 300 frames in 5.0 seconds = 59.884 FPS I have run into this same problem following an xorg-server upgrade, The problem started with the upgrade to xorg-server-1.5.x, using intel graphics driver version 2.7.1 and mesa version 7.4.2, my thread ran dead and as of writing this email I still have yet to find a solution to the problem. To the best of my knowledge there are known issues with new versions of the intel video drivers, however I cannot personally confirm this nor do I know of any plans or time line for the fixes to be made. AJ
Re: [gentoo-user] [ot] no more inodes
On Donnerstag 28 Mai 2009, Florian Philipp wrote: Maxim Wexler schrieb: Hi group, For a netbook 4G SSD. Attempting to install mozilla-firefox. jdk fails: No space left on device. df -i reveals no more inodes. I reboot thinking this will help. Wrong. Lots of 'No space left on device messages' with reference to /var/lib/iinit.d/* in the boot console. And this gem: '*ERROR: local is already starting'. And: '*ERROR: netmount is already starting'. df -i FilesytemInodes Iused IFree IUse% Mounted on /dev/sda2 244320 244301 19 100% / udev 128448 612 1278361% /dev /dev/sda1 8032 39 79931% /boot tmpfs 128448 3 1 284451% /tmp FYI sda2 is formatted ext3. I know 4G is pretty small by today's standards but apart from xorg and firefox everything else on this unit is command-line type utilities and such. That can't account for 4G already. Maxim That you run out of inodes doesn't mean that you run out of physical (or logical) space on your disk. It just means that you run out of what you could call file descriptors. There is exactly one inode per file which stores meta information about this file. Ext2-4 have a fixed amount of inodes set when you format the partition. Reiserfs and JFS create them on the fly and therefore don't have problems with running out of inodes or wasting space on unused ones. Most likely you have a bunch of very small files on our disk, for example the portage tree. These don't consume much space but a lot of inodes. My advice: Save everything to another disk and then reformat the partition with a higher amount of inodes. If you use ext2, format it with mke2fs -N 732960 /dev/sda2 This will create a file system with three times as many indoes as you had before. Hope this helps. or don't use extX.
Re: [gentoo-user] k3b doesn't show in KDE 4's menu
On Donnerstag 28 Mai 2009, Nikos Chantziaras wrote: I installed k3b (a KDE 3 application) but it doesn't show in KDE 4's application launch menu (aka Start menu). Can this be seen as a bug or am I supposed to create the desktop entry myself? hmm...k3b- shows up in the 'multimedia' section of kmenu. Which version did you try to install? If the .desktop file is missing it is a bug. You don't have to do it by hand (you can add k3b manually - right click on the menu button..)
[gentoo-user] Re: k3b doesn't show in KDE 4's menu
Volker Armin Hemmann wrote: On Donnerstag 28 Mai 2009, Nikos Chantziaras wrote: I installed k3b (a KDE 3 application) but it doesn't show in KDE 4's application launch menu (aka Start menu). Can this be seen as a bug or am I supposed to create the desktop entry myself? hmm...k3b- shows up in the 'multimedia' section of kmenu. Which version did you try to install? If the .desktop file is missing it is a bug. You don't have to do it by hand (you can add k3b manually - right click on the menu button..) 1.0.5-r5. Latest version available in portage. Desktop file is there actually: /usr/kde/3.5/share/applications/kde/k3b.desktop but KDE 4 doesn't seem to be picking it up. I think it should though, since when I had Amarok 1 installed (meanwhile I'm on Amarok 2) it was appearing just OK in the menu.
Re: [gentoo-user] Re: k3b doesn't show in KDE 4's menu
On Freitag 29 Mai 2009, Nikos Chantziaras wrote: Volker Armin Hemmann wrote: On Donnerstag 28 Mai 2009, Nikos Chantziaras wrote: I installed k3b (a KDE 3 application) but it doesn't show in KDE 4's application launch menu (aka Start menu). Can this be seen as a bug or am I supposed to create the desktop entry myself? hmm...k3b- shows up in the 'multimedia' section of kmenu. Which version did you try to install? If the .desktop file is missing it is a bug. You don't have to do it by hand (you can add k3b manually - right click on the menu button..) 1.0.5-r5. Latest version available in portage. Desktop file is there actually: /usr/kde/3.5/share/applications/kde/k3b.desktop but KDE 4 doesn't seem to be picking it up. I think it should though, since when I had Amarok 1 installed (meanwhile I'm on Amarok 2) it was appearing just OK in the menu. well because it is in kde 3.5 duh. Btw, get the kde-testing overlay and try k3b- it is sweet and works very well. (or 1.6.something - the beta).
Re: [gentoo-user] get fences failed: -1 and [drm:i915_getparam] *ERROR*
AJ Spagnoletti wrote: - glxgears get fences failed: -1 param: 6, val: 0 300 frames in 5.0 seconds = 59.565 FPS 298 frames in 5.0 seconds = 59.524 FPS 299 frames in 5.0 seconds = 59.737 FPS 300 frames in 5.0 seconds = 59.884 FPS I have run into this same problem following an xorg-server upgrade, The problem started with the upgrade to xorg-server-1.5.x, using intel graphics driver version 2.7.1 and mesa version 7.4.2, my thread ran dead and as of writing this email I still have yet to find a solution to the problem. To the best of my knowledge there are known issues with new versions of the intel video drivers, however I cannot personally confirm this nor do I know of any plans or time line for the fixes to be made. AJ Same here the upgrade to xorg-server-1.5.x introduced lots of surprises. There were too many changes for me: upgrade of gcc to 4.3.2, and configuration of hal (a difficult thing to do on a laptop at the moment). What really slowed me down was that for some unknown reason my windowmaker was completely messed up and took me almost a day to get it fixed. Back to the glxgears problem. This is critical for me since my ooimpress presentations have embedded animated gifs and they play really really slow under slideshow after the xorg upgrade. A random run of glxgears gave me this clue (go figure; I must have ran glxgears a hundred times before I saw this message) - glxgears get fences failed: -1 param: 6, val: 0 298 frames in 5.0 seconds = 59.518 FPS 297 frames in 5.0 seconds = 59.293 FPS 297 frames in 5.0 seconds = 59.281 FPS do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. Try adjusting the vblank_mode configuration parameter. Googling vblank_mode on the web I came across this web site http://en.gentoo-wiki.com/wiki/Intel_GMA which is pertinent to my hardware and kernel/drivers. Therefore if I do - vblank_mode=0 glxgears ATTENTION: default value of option vblank_mode overridden by environment. get fences failed: -1 param: 6, val: 0 4418 frames in 5.0 seconds = 883.510 FPS 4490 frames in 5.0 seconds = 897.871 FPS 4491 frames in 5.0 seconds = 898.054 FPS 4481 frames in 5.0 seconds = 896.043 FPS 4382 frames in 5.0 seconds = 876.251 FPS I get much better performance as I used to have before the xorg upgrade. This is where I am now trying to gather information on how to deal with dri and vblank_mode settings. Hope this helps. -- Valmor
[gentoo-user] Re: k3b doesn't show in KDE 4's menu
Volker Armin Hemmann wrote: On Freitag 29 Mai 2009, Nikos Chantziaras wrote: Volker Armin Hemmann wrote: On Donnerstag 28 Mai 2009, Nikos Chantziaras wrote: I installed k3b (a KDE 3 application) but it doesn't show in KDE 4's application launch menu (aka Start menu). Can this be seen as a bug or am I supposed to create the desktop entry myself? hmm...k3b- shows up in the 'multimedia' section of kmenu. Which version did you try to install? If the .desktop file is missing it is a bug. You don't have to do it by hand (you can add k3b manually - right click on the menu button..) 1.0.5-r5. Latest version available in portage. Desktop file is there actually: /usr/kde/3.5/share/applications/kde/k3b.desktop but KDE 4 doesn't seem to be picking it up. I think it should though, since when I had Amarok 1 installed (meanwhile I'm on Amarok 2) it was appearing just OK in the menu. well because it is in kde 3.5 duh. So is Amarok 1 though but it does show up. Btw, get the kde-testing overlay and try k3b- it is sweet and works very well. (or 1.6.something - the beta). I'll give it a spin.
Re: [gentoo-user] USE=mmx mmxext sse sse2 ssse3 3dnow 3dnowext
Stroller strol...@stellar.eclipse.co.uk writes: But, surely -march= also instructs gcc to support the additional instructions. Suggest you re-read Daniel's post that I was replying to. What's the difference between supporting the certain set of instructions with -march= and doing so with USEs? Or doesn't -march= support additional certain sets of instructions. What does it do, then? I am not sure, $ gcc -Q --help=target -march=core2 The following options are target specific: -m128bit-long-double [disabled] -m32 [enabled] -m3dnow [disabled] -m3dnowa [disabled] -m64 [disabled] -m80387 [enabled] -m96bit-long-double [enabled] -mabm [disabled] -maccumulate-outgoing-args[disabled] -maes [disabled] -malign-double[disabled] -malign-functions= -malign-jumps= -malign-loops= -malign-stringops [enabled] -march= core2 -masm= -mavx [disabled] -mbranch-cost= -mcld [disabled] -mcmodel= -mcx16[disabled] -mfancy-math-387 [enabled] -mfma [disabled] -mforce-drap [disabled] -mfp-ret-in-387 [enabled] -mfpmath= -mfused-madd [enabled] -mglibc [enabled] -mhard-float [enabled] -mieee-fp [enabled] -mincoming-stack-boundary= -minline-all-stringops[disabled] -minline-stringops-dynamically[disabled] -mintel-syntax[disabled] -mlarge-data-threshold= -mmmx [disabled] -mms-bitfields[disabled] -mno-align-stringops [disabled] -mno-fancy-math-387 [disabled] -mno-fused-madd [disabled] -mno-push-args[disabled] -mno-red-zone [disabled] -mno-sse4 [enabled] -momit-leaf-frame-pointer [disabled] -mpc -mpclmul [disabled] -mpopcnt [disabled] -mpreferred-stack-boundary= -mpush-args [enabled] -mrecip [disabled] -mred-zone[enabled] -mregparm= -mrtd [disabled] -msahf[disabled] -msoft-float [disabled] -msse [disabled] -msse2[disabled] -msse2avx [disabled] -msse3[disabled] -msse4[disabled] -msse4.1 [disabled] -msse4.2 [disabled] -msse4a [disabled] -msse5[disabled] -msseregparm [disabled] -mssse3 [disabled] -mstack-arg-probe [disabled] -mstackrealign[enabled] -mstringop-strategy= -mtls-dialect= -mtls-direct-seg-refs [enabled] -mtune= -muclibc [disabled] -mveclibabi=