Re: [gentoo-user] NEW idea: Kernel panics and more info
On Sat, Jul 23, 2011 at 10:26 AM, Dale rdalek1...@gmail.com wrote: OK. New theory here. This came about in another thread about the shiney new kernel, that isn't new by the way. Anyway, look at this crap: root@fireball / # ls -al /home/dale/ total 640 drwxr-xr-x 61 dale users 2672 Jul 23 10:14 . drwxr-xr-x 7 root root 208 Jun 17 03:01 .. drwx-- 3 dale dale2 80 Sep 3 2010 .adobe -rw-r--r-- 1 dale users 24 Apr 10 16:40 .aspell.en.prepl -rw-r--r-- 1 dale users 29 Apr 10 16:40 .aspell.en.pws drwxr-xr-x 3 dale users 96 Feb 25 2010 .avidemux drwxr-xr-x 2 dale dale2 48 Feb 7 07:14 backup -rw--- 1 dale users 3685 Jul 23 01:59 .bash_history -rw-r--r-- 1 dale users127 Dec 8 2008 .bash_logout -rw-r--r-- 1 dale users193 Dec 8 2008 .bash_profile -rw-r--r-- 1 dale users551 Dec 8 2008 .bashrc drwxr-xr-x 4 dale users104 Apr 12 10:50 .cache drwxr-xr-x 10 dale users256 Jan 2 2010 .cddb drwx-- 16 dale users480 Jul 5 00:54 .config drwx-- 2 dale users 80 Aug 28 2009 .cups -rw-r--r-- 1 dale users263 Jan 25 2009 dalek1967.revoke -rw-r--r-- 1 dale users279 Oct 8 2006 dalek.revoke drwx-- 3 dale users 80 Dec 11 2008 .dbus -rw-r--r-- 1 dale ssmtp 20337 Mar 12 16:36 dead.letter drwx-- 3 dale users688 Jul 23 05:18 Desktop -rw--- 1 root root 119 Jun 17 03:03 .directory -rw--- 1 dale users 24 Jul 18 00:18 .dmrc -rw-r--r-- 1 dale users 40 Feb 10 2009 .dolphinview drwxr-xr-x 2 dale dale2 48 Jan 18 2011 Downloads drwxr-xr-x 2 dale dale2136 Jul 23 02:26 dwhelper -rw--- 1 dale users 16 Jan 26 2009 .esd_auth -rw-r--r-- 1 dale users 7669 Feb 16 2009 .face.icon -rwxr-xr-x 1 root root 786 Oct 30 2009 fahback drwxr-xr-x 6 dale dale2440 Jul 17 23:49 .fluxbox drwxr-xr-x 2 dale users 4912 Jul 18 00:15 .fontconfig drwxr-xr-x 2 dale users152 Dec 11 2008 .fonts -rw-r--r-- 1 dale users530 Feb 21 2010 .fonts.conf drwx-- 2 dale users 48 Jun 6 23:30 .gconf drwx-- 2 dale users 80 Jun 10 00:51 .gconfd drwx-- 4 dale users 96 Mar 29 2009 .gegl-0.0 drwxr-xr-x 22 dale users984 Jun 28 16:45 .gimp-2.6 drwxrwxr-x 6 dale users456 Jul 15 03:07 .gkrellm2 drwx-- 3 dale users 72 Sep 28 2009 .gnome2 drwx-- 2 dale users 48 Dec 11 2008 .gnome2_private drwx-- 3 dale users592 Jul 23 10:05 .gnupg drwx-- 6 dale users296 Jun 6 15:02 .googleearth drwx-- 2 dale users 72 Dec 25 2008 .gphoto drwxr-xr-x 5 dale users208 Mar 26 2010 .gqview drwxr-xr-x 2 dale users128 Jul 8 15:44 .gstreamer-0.10 -rw-r--r-- 1 dale users254 Jan 20 2011 .gtk-bookmarks -rw-r--r-- 1 dale dale2429 Jul 5 13:13 .gtkrc-2.0 lrwxrwxrwx 1 dale dale2 21 Jul 5 13:13 .gtkrc-2.0-kde4 - /home/dale/.gtkrc-2.0 drwxr- 2 dale users112 Jul 2 19:14 .hplip -rw-r--r-- 1 dale dale2 4364 Jun 17 00:29 .hugin -rw--- 1 dale users 0 Mar 12 2010 .ICEauthority drwxr-xr-x 3 dale dale2 72 Mar 15 10:59 .icedtea drwxr-xr-x 3 dale dale2136 Jan 24 22:11 .icedteaplugin drwxr-xr-x 2 dale dale2 72 Jul 18 00:15 .icewm drwxr-xr-x 4 dale dale2112 Sep 4 2010 .java drwxr-xr-x 6 root root 568 Jul 8 17:05 .kde4 drwxr-xr-x 6 dale users568 Dec 13 2010 .kde4.old drwxr-xr-x 5 dale dale2120 Jun 26 15:28 kdenlive -rw--- 1 dale users521 Jul 19 21:32 .kderc drwxr--r-- 2 dale dale2 72 Mar 12 16:36 .linuxcounter drwx-- 3 dale users152 May 6 2010 .local drwx-- 3 dale dale2 80 Sep 3 2010 .macromedia drwxr-xr-x 3 dale users 72 May 15 2010 .marble drwxr-xr-x 3 dale users112 Dec 11 2008 .mcop -rw--- 1 dale users 31 Mar 12 2010 .mcoprc drwx-- 5 dale users136 Jul 11 02:06 .mozilla drwxr-xr-x 2 dale users 88 Jan 2 2009 .mp3splt-gtk drwxr-xr-x 2 dale users 96 Dec 12 2009 .mplayer drwxr-xr-x 3 dale dale2 72 Jan 18 2011 .netx drwxr-xr-x 2 dale users104 Oct 11 2009 .nvclock -rw-r--r-- 1 dale dale2 1204 Jun 6 03:00 .nvidia-settings-rc drwx-- 3 dale dale2 72 Jun 16 04:14 .ooo3 drwx-- 3 dale users 72 Nov 18 2010 .ooo3.old drwx-- 10 dale users992 May 21 2009 .opera drwxr-xr-x 2 dale users 80 Jan 9 2009 .porthole -rw-r--r-- 1 dale dale2172 Feb 12 02:33 .ptbt1 drwx-- 6 dale users304 Oct 10 2010 .purple drwxr-xr-x 7 dale users272 Mar 22 2010 .PySolFC drwxr-xr-x 2 dale users296 Mar 12 2010 .qt -rw-r--r-- 1 dale users280 May 17 2009 rdalek1967.revoke -rw--- 1 dale users 9131 Jun 16 04:14 .recently-used drwxr-xr-x 4 dale users320 Apr 10 16:55 .scribus drwx-- 2 dale users 48 Dec 8 2008 .ssh drwx-- 4 dale dale2 96 Jul 22 01:20 .thumbnails drwxr-xr-x 2 dale users 72 Feb 21 2010 .tkdvd -rw-r--r-- 1 dale users
Re: [gentoo-user] Goodbye, Gentoo
On Thu, May 26, 2011 at 6:28 PM, Kevin O'Gorman kogor...@gmail.com wrote: It looks like it's time to take Gentoo off of my main machine. I feel a little sad about it, or I'd just quietly go away. A few months ago, an update made the machine headless -- well, it could no longer bring up X but I could use the console-mode for admin, and log in via SSH from my laptop and run GUI programs. I was busy at the time, first deciding and then implementing my retirement, so I let it go. Now, a couple of months into my retirement, I'm trying to fix things up, and the latest Gentoo live disk cannot talk to my monitor at all. Whatever it's trying is unacceptable to the HD monitor I've had on there for a year, and I can't even run the consoles. The video card is an ATI Rage XL on the motherboard. Like the rest of the machine, it's vintage 2000, so maybe support got dropped. But I'm not inclined to drop the machine -- it was the ballyhooed thing in Linux Journal in 2002 when I finished my PHD, so I put together these pieces: * Two XEON chips. I didn't know it right away but that means 4 cores. They are old Pentium IV-based 32-bit chips. I got the slowest still being made, so the clock speed is 1.6 GHz. On 4 cores, it's not bad at all. * 2GB of DDR ECC memory * about a dozen hard drives (some old, but mostly 500GB - 2TB Sata drives), I feel it's still worthy of respect. Some of these are in EZ-Dock docking stations and are used for rotating backups (including off-site). The main directories are on hardware RAID 1 so I have ongoing redundancy. * a Smart UPS 1500 for everything except the laser printer. So, since I am familiar with Ubuntu from work, and have it on a couple of laptops, I'm installing from the Ubuntu 11.04 live disk (video is just fine). The real headache is all the stuff I'm going to have to port. 1) Apache and dynamic (Python CGI) web site. 2) Postfix 3) About a dozen accounts that just do wget(1) data gathering triggered by the cron daemon. 4) DNS (I run my own domain on a commercial DSL account) 5) NTP client and server 6) Whatever else I forgot I set up over the years. My original reason for using Gentoo is that this machine was pretty exotic when I bought it, and I wanted to be able to tweak the compiler to get the most out of it. I can still do that for specific applications I'm working on, but otherwise it's really a non-issue now. I have gotten pretty tired of updates that take over 48 hours to compile, and the occasional mess-up that once or twice led me to rebuild with empty-tree and took a week or so. So I guess I shouldn't complain (and I'm not). I'm just not in the target market for Gentoo any more. It was fun, though. -- Kevin O'Gorman, PhD You let a small problem like the latest live cd not booting your system scare you away? Have you tried using an older live cd? If it's a video issue, maybe detecting your monitor wrong, how about turning on the framebuffer (there's an option for that)? It's doable man, don't give up.
Re: [gentoo-user] external monitor output during boot
On Tue, May 17, 2011 at 9:48 PM, Valmor de Almeida val.gen...@gmail.comwrote: Hello, What controls the screen output to an external monitor connected to a laptop during boot or when just using a plain console without an X server running? Before a recent update the output would just automatically go to an external monitor when one is connected. Now it does not; not sure it has anything to do with the openrc migration. I do get output onto the external monitor after startx runs; also the X server/clients work fine. Thanks for inputs. -- Valmor PS: fn+F8 for switching displays does not work either; but it never did before. What's the make/model of your laptop? Does the F8 key you mention have a monitor/screen icon on it? The hardware key to switch monitors is independent of software on most (all?) laptops. Also, most laptops will output on both (clone) by default.
Re: [gentoo-user] external monitor output during boot
On Tue, May 17, 2011 at 10:56 PM, Valmor de Almeida val.gen...@gmail.comwrote: On 05/17/2011 11:20 PM, Mark Shields wrote: On Tue, May 17, 2011 at 9:48 PM, Valmor de Almeida val.gen...@gmail.com mailto:val.gen...@gmail.com wrote: Hello, What controls the screen output to an external monitor connected to a laptop during boot or when just using a plain console without an X server running? Before a recent update the output would just automatically go to an external monitor when one is connected. Now it does not; not sure it has anything to do with the openrc migration. I do get output onto the external monitor after startx runs; also the X server/clients work fine. Thanks for inputs. -- Valmor PS: fn+F8 for switching displays does not work either; but it never did before. What's the make/model of your laptop? Lenovo X201. Does the F8 key you mention have a monitor/screen icon on it? Sorry. It is the fn-F7 key that has the monitor/screen icon on it; it does not work either. The hardware key to switch monitors is independent of software on most (all?) laptops. Also, most laptops will output on both (clone) by default. This was the previous behavior; but not now. Thanks, -- Valmor Does it clone during the BIOS screen?
Re: [gentoo-user] {OT} Tether a Google Nexus One?
On Wed, May 4, 2011 at 6:23 PM, Grant emailgr...@gmail.com wrote: I agree with Mark. Have you received the GB update? I know not all N1s have received it yet, so I apologize if my assumption is wrong and you're still running Froyo. But I have had the same experience as Mark (and I am running gentoo) where it is almost as plug-n-play as you can get. (Assuming you're running GB): 1) Plug in usb to phone and computer 2) Enable usb tethering in Wireless network settings 3) Tethering portable hotspot 4) USB tethering (check) As root: ---snip--- ifconfig usb0 up dhcpcd usb0 ---snip--- I don't believe the tethering experience was much more difficult in Froyo, but I could be wrong about that. - Matt Thanks guys, the wifi hotspot works great but I can't get USB tethering to work. I don't seem to have the usb0 device, even after enabling USB tethering in the settings: # ifconfig /dev/usb0 up /dev/usb0: ERROR while getting interface flags: No such device Any ideas? I'm on Android 2.3.3. - Grant Does anyone know if a Google Nexus One cell phone can be USB tethered to a Gentoo system? I use wvdial to accomplish this with other cell phones but I've read that the Nexus One doesn't work that way because it doesn't appear on the host system as a tty: http://forum.nginx.org/read.php?23,146509,147989 There is a tethering option in the Nexus One settings but I can't figure out how to get my Gentoo laptop to use the tethered cell phone's internet connection. - Grant If your phone is anything like my phone (G2, Gingerbread) that has the same option, you should be able to do the following (I did this on an Arch system late last week, never tested on Gentoo but should work): ifconfig usb0 up dhcpcd usb0 That should get you online. Drop the /dev/ part of your ifconfig command. ifconfig refers to devices by their name, not their full path+name.
Re: [gentoo-user] How to unmount bind-mounted /dev?
On Sat, Apr 30, 2011 at 5:15 AM, Alex Schuster wo...@wonkology.org wrote: I just wrote: Thomas Ulrich Nockmann writes: On Saturday 30 April 2011 Alex Schuster wrote: weird ~ # umount /32/dev umount: /32/dev: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) try 'umount -l /32/de' Cool, this does the trick! But it does not help :( After unmounting /32/dev, I can finally unmount /32, but now the fsck fails: weird ~ # fsck -Cf /dev/mapper/32 fsck from util-linux 2.19 e2fsck 1.41.14 (22-Dec-2010) fsck.ext3: Device or resource busy while trying to open /dev/mapper/32 Filesystem mounted or opened exclusively by another program? lsof and fuser report nothing. I guess I will have to reboot then. Wonko Try a lazy umount, or forced umount? # umount -f # umount -l
Re: [gentoo-user] portage Digest verification failed
On Thu, Apr 21, 2011 at 11:41 AM, Dale rdalek1...@gmail.com wrote: Coert Waagmeester wrote: Hello Dale, Managed to fix it. I downloaded a new portage snapshot, extracted it, and used a completely different mirror for the emerge --sync, and it worked. Thanks, Coert Any particular reason you downloaded a whole new snapshot? A emerge --sync would do the same only faster. Just curious. Dale :-) :-) What he said. If changing to another rsync mirror is what really fixed it, esyncing after that would've fixed the problem.
Re: [gentoo-user] I'm up, at long last!
On Sun, Apr 17, 2011 at 10:22 AM, Alan Mackenzie a...@muc.de wrote: Hi, Gentoo. After a few weeks of effort, I've just gone live with my very own Gentoo system. :-) The last stage was copying most of my files over from my old box, which involved a significant degree of screwing the disk drives. It is such a relief to say goodbye to my ancient Debian system, which no longer had a functioning package system. Also, my ten year old hardware was feeling ever more underpowered as time went by. Installing and configuring Gentoo was significantly easier than Debian, even though it took about the same amount of time. The approach insert the DVD, press the button, and everything will work OK is fine, until something _doesn't_ work OK; then you've got several hours (or days) of tedious searching for the answer. By contrast, with Gentoo's 41 pages of detailed instructions, you really can't go far wrong. And at the end of it, there's further detailed documentation to get X and window manager etc. set up. I think there's really only two ways to install Linux: you either go the Ubuntu route, where everything's done for you and you accept somebody else's defaults, or you go with Gentoo, where you do everything yourself. I think anything in the middle, like Debian, just leads to confusion and uncertainty. I don't know where Fedora and SuSE fit into all this. Anyhow, I'm now up and running, with some installation and config still to do: things like how to get British English and German keyboard layouts in XFCE, how to make it's terminal have a black background and things like that. I also need to find a decent PDF viewer, and a decent jpeg viewer. So, thanks for all the help, everybody! -- Alan Mackenzie (Nuremberg, Germany). Gentoo has it's places, but at the end of the day, I just want my desktop system to work with little effort on my part. And be consistent. Ubuntu gives me that on a desktop -- well, it did, until they decided to switch to Unity. But that's another topic... For everything else (re: servers), there's Gentoo :) I run a Gentoo VPS for a website. I love the flexibility of Gentoo, the speed, the nothingness you start with and have to mold it together like you would an artist with a block of clay.
Re: [gentoo-user] Raid1 (continued) mdadm
On Fri, Apr 15, 2011 at 2:47 PM, Florian Philipp li...@binarywings.netwrote: Am 15.04.2011 16:56, schrieb James: Hello, New day, and a fresh approach to fixing the raid one install. Following this doc (no lvm no intramfs): http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml The disk were all resync'd (end of last thread). Since this is a simple 3 partition 2 disk mirror (identical drives formatting) and I want to mirror all three (/boot, /, swap) I used these commands: mdadm --create /dev/md127 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda1 /dev/sdb1 mdadm --create /dev/md125 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda3 /dev/sdb3 mdadm --create /dev/md126 --level=1 --raid-devices=2 --metadata=0.90 /dev/sda2 /dev/sdb2 If my theory holds, it should be sufficient if /boot has metadata=0.90 because that's what grub has to access. So do I need to issue these commands? If so, are they correct? A little unclear on mknod livecd ~ # mknod /dev/md127 b 9 1 livecd ~ # mknod /dev/md125 b 9 3 or livecd ~ # mknod /dev/md127 b 9 127 livecd ~ # mknod /dev/md125 b 9 125 livecd ~ # mknod /dev/md126 b 9 126 ??? I doubt you need mknod. Udev should handle this. Maybe you should try it without and see whether udev really creates them. If so, you might still add them to the static /dev. Use something like this: mount --bind / /mnt mknod /mnt/dev/md127 b 9 1 This circumvents udev and writes directly to root. Of course, you have to replace / with whatever is the mount point of your root partition when you boot from a live-CD. Regards, Florian Philipp You need mknod during the creation process when booted from a minimal install disc; when you finish building the system and boot it the first time, udev handles it from there. And yes, you're right; only boot needs the --metadata=0.90.
Re: [gentoo-user] raid1 grub ext4
On Mon, Apr 11, 2011 at 3:49 PM, Neil Bothwick n...@digimed.co.uk wrote: On Mon, 11 Apr 2011 18:12:36 + (UTC), James wrote: grub find /boot/grub/stage1 does not work, even though the stage one file is there I used ext4 for / and /boot partitions. If /boot is on a separate partition, you should be using find /grub/stage1 -- Neil Bothwick Religious error: (A)tone, (R)epent, (I)mmolate? If the symlink is there for boot - /boot -- and it is by default -- both work.
Re: [gentoo-user] RAID1 + LVM2 booting screwed up. Help, please!
On Sun, Apr 10, 2011 at 4:33 PM, Alan McKinnon alan.mckin...@gmail.comwrote: Apparently, though unproven, at 23:11 on Sunday 10 April 2011, Alan Mackenzie did opine thusly: Hi, Gentoo. My new(ish) amd64 system has two 1TB HDDs in a (software) RAID1, and practically the entire system is under an LVM2. I rather unwisely made this addition to the startup stuff: ls -s /usr/bin/svscanboot /etc/init.d/ rc-update add svscanboot default , and now the box hangs during boot up. On the same box, I also have a trial installation which boots and I still have the installation CD from about a year ago. Would somebody please help me get into my system sufficiently to correct my mistake on the boot scripts. Pointing me in the direction of a fine manual section would be regarded as help. Boot the trial installation which does boot. vgchange -ay find and mount your lvm volumes somewhere now you can access that dodgy symlink to delete it Maybe there's other steps (like loading kernel modules), but I'm assuming you know your way around to find and detect those. -- alan dot mckinnon at gmail dot com He should be able to just do an interactive startup. Press i when prompted, and you should be able to bypass the bad startup item; alternatively, if you have access to grub boot, you can also try booting into single user mode.
Re: [gentoo-user] su doesn't work for me.
On Sun, Apr 10, 2011 at 10:08 AM, Alan McKinnon alan.mckin...@gmail.comwrote: Apparently, though unproven, at 16:28 on Sunday 10 April 2011, Dale did opine thusly: That was it! I've now got su-ability from that normal user. Funny, though, on my (very) old Debian system I don't seem to have a wheel. Thanks. Best regards, Yann I think that is a Gentoo thing. It does add some security if you don't want a user, like maybe some little kid, getting root access for any reason. No, it's pretty standard across Unix. The BSD's for example have had it since forever - members of the wheel group being allowed to sudo anything only came along much later. Leaving it *out* is a Linux-distro thing, probably from the usual usage case for Linux for many years - a server on the web that actually only had one user even though it was capable of being fully multi-user. The concept of wheel for su is pretty redundant in that case. -- alan dot mckinnon at gmail dot com Wheel has nothing to do with su; it has everything to do with sudo, but only if /etc/sudoers is edited to allow the Wheel group sudo access. Su is for changing to a different user, or running a command as another user; doing either requires the password of that user; sudo, on the other hand, only requires your password, if you're in the wheel group and the wheel group is given full sudo access, and the sudo access for wheel requires your password. Some examples, assuming your user (the one you're logged in as) is in wheel and requires a password for sudo access (see: visudo): sudo su --- escalates you to root user with your own password. This is running su with sudo. su user --- switches to user with their password required to be entered sudo su user -- switch to user with your password required to be entered sudo command -- runs command as root sudo -u user command --- runs command as user sudo su - user --- escalates you to user and cd's to their home directory Please read the man pages for sudo and su for more info.
Re: [gentoo-user] su doesn't work for me.
On Sun, Apr 10, 2011 at 5:48 PM, Alan McKinnon alan.mckin...@gmail.comwrote: Apparently, though unproven, at 00:32 on Monday 11 April 2011, Mark Shields did opine thusly: On Sun, Apr 10, 2011 at 10:08 AM, Alan McKinnon alan.mckin...@gmail.comwrote: Apparently, though unproven, at 16:28 on Sunday 10 April 2011, Dale did opine thusly: That was it! I've now got su-ability from that normal user. Funny, though, on my (very) old Debian system I don't seem to have a wheel. Thanks. Best regards, Yann I think that is a Gentoo thing. It does add some security if you don't want a user, like maybe some little kid, getting root access for any reason. No, it's pretty standard across Unix. The BSD's for example have had it since forever - members of the wheel group being allowed to sudo anything only came along much later. Leaving it *out* is a Linux-distro thing, probably from the usual usage case for Linux for many years - a server on the web that actually only had one user even though it was capable of being fully multi-user. The concept of wheel for su is pretty redundant in that case. -- alan dot mckinnon at gmail dot com Wheel has nothing to do with su; it has everything to do with sudo, but only if /etc/sudoers is edited to allow the Wheel group sudo access. Su is for changing to a different user, or running a command as another user; doing either requires the password of that user; sudo, on the other hand, only requires your password, if you're in the wheel group and the wheel group is given full sudo access, and the sudo access for wheel requires your password. Some examples, assuming your user (the one you're logged in as) is in wheel and requires a password for sudo access (see: visudo): sudo su --- escalates you to root user with your own password. This is running su with sudo. su user --- switches to user with their password required to be entered sudo su user -- switch to user with your password required to be entered sudo command -- runs command as root sudo -u user command --- runs command as user sudo su - user --- escalates you to user and cd's to their home directory Please read the man pages for sudo and su for more info. Mark, You know better than that. Re-read my post, I said that *Unix*, most especially the BSDs, have had a concept of wheel for, well, since almost when Unix started. sudo came much later and for sudo, wheel is naturally a very useful pre-existing thing to use. If Linux distros, maintainers or the GNU folk chose to not implement wheel membership as a prerequisite for su, then that's fine. They can do what they want with their stuff but it doesn't change the fact that other operating systems can, and do, do it differently. I have read man su and man sudo. Many times. I see that the ones I have are very Linux-centric. Google wheel su for more info, keeping in mind that Linux != Unix -- alan dot mckinnon at gmail dot com That response wasn't really meant for you, your reply just happened to be the one I clicked reply on.
Re: [gentoo-user] LVM for data drives but not the OS
On Thu, Apr 7, 2011 at 5:22 AM, Dale rdalek1...@gmail.com wrote: Hi, Quick question about LVM. I have a 750Gb drive that has miscellaneous stuff on it. Stuff likes videos, music, pictures, ISO files and a few other things. It's not full yet but it is working on it. I have my OS on sda. The large drive is on sdc. If I buy another drive it should be sdd. I think this is possible from what I have read but want to make sure. Could I put sdc and sdd on LVM but the OS remain as it is with LVM not involved at all? Basically, my OS stays just like it is and is not touched my LVM at all but the two larger drives are managed by LVM. I want to do it this way because I don't trust LVM enough to put my OS on. Just my personal opinion on LVM. If there is a better solution to link two large drives, I'm open to those ideas as well. LVM is all I can think of is why I mention it. Thanks. Dale :-) :-) I know I'm late to the game with a reply, but a couple of months ago, I setup a data box running Gentoo in the following configuration: OS drive: 250 GB PATA LVM2 data drives: 2 x WD Caviar Black 3 TB, raid1, LVM2 Had to partition those drives using parted, though. If that setup works fine -- and it does -- you'll have no issues.
Re: [gentoo-user] putting mysql databases from one system to another
On Tue, Apr 5, 2011 at 2:37 PM, cov...@ccs.covici.com wrote: Josh korth...@gmail.com wrote: On Tue, Apr 5, 2011 at 11:59 AM, cov...@ccs.covici.com wrote: I am trying to copy my databases from one system to another and since one is 32-bit and the other is 64-bit, I was told that I could not copy the binary databases directly, but I had to do mysqldump and then put that source file into the new system. What I am getting is that the passwords seem not to have gotten through -- the user names seem to be there, but I cannot login with the passwords the user had in the old system. Can anyone tell me why this is so and what I can do to fix? Thanks in advance for any ideas. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici cov...@ccs.covici.com Which two MySQL versions are in use here? Older versions of mysql used a different format for the passwords and there is a flag you need to pass to mysqld to get it to use old passwords (I believe) What is the connection string you are using? Specifically are you connecting via the mysql socket, using a hostname etc? Say the old server was called foo.stuff.net and the connection was made via the external interface e.g. mysql -h foo.stuff.net, the user may have been setup to allow connections from foo.stuff.net only, as where now you may be connectin from bar.stuff.net or localhost. SELECT user,host FROM mysql.user ORDER BY user; May shed some light on the situation for you. It should be localhost in all cases. The mysql versions are 5.1.53 in both cases. I am trying to login with the mysql client and I can do it on the old box, but not the new one --same host name, etc. Now I can login with the root password on the new box, maybe that is stored somewher else. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici cov...@ccs.covici.com I hate to ask the obvious, but are you passing -u username and -p to mysqldump? the -p by itself will prompt for a password, which you will then enter. The format should be mysqldump databasename -u username -p file, then enter the password at the Password: prompt.
Re: [gentoo-user] Re: RAID on new install
On Mon, Apr 4, 2011 at 9:16 AM, James wirel...@tampabay.rr.com wrote: Mark Shields laebshade at gmail.com writes: The last guide recommends using raid0 on some partitions; everytime I use LVM2, I use nothing but raid1 partitions. I'd rather have the full raid1 than partial raid 1 + speed of raid0. Well Raid 1 only would be keen. Even swap as raid 1 ? There are actually 2 docs that cross reference each other. See my post to Mark's input... thx James Well, no. I don't use raid 1 with swap; I just use a separate swap partition on each drive. But all the other partitions, I use raid 1.
Re: [gentoo-user] RAID on new install
On Thu, Mar 31, 2011 at 2:46 PM, James wirel...@tampabay.rr.com wrote: Hello, I'm about to install a dual HD (mirrored) gentoo software raid system, with BTRFS. Suggestion, guides and documents to reference are all welcome. I have this link, which is down as the best example: http://en.gentoo-wiki.com/wiki/RAID/Software Additionally, I have these links for a guide: http://www.gentoo.org/doc/en/lvm2.xml http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml Any other Raid/LVM/BTRFS information I should reference? James The last guide recommends using raid0 on some partitions; everytime I use LVM2, I use nothing but raid1 partitions. I'd rather have the full raid1 than partial raid 1 + speed of raid0.
Re: [gentoo-user] How to change from one harddrive to software raid
On Wed, Mar 30, 2011 at 8:21 PM, Einux einux...@gmail.com wrote: thank you guys, you've been helpful :) On Wed, Mar 30, 2011 at 3:31 PM, Joost Roeleveld jo...@antarean.orgwrote: On Wednesday 30 March 2011 07:28:40 Florian Philipp wrote: Am 30.03.2011 05:02, schrieb Einux: Hi, I bought a new 1T harddrive which is exactly the same as my previous harddrive. So I'm planning to make a Raid-1 layout(for security reasons). But here's the problem: I've already setup LVM2 on the existing harddrive and I don't want to destroy the existing LVM volume groups. I tried to google it, but I'm not sure which is the right keyword. Could you guys help me out? Thanks in advance:) 1. Create a degenerated RAID1 with your new disk mdadm --create /dev/md0 --level=1 --raid-devices=2 missing /dev/sdb 2. Partition the raid device 3. Add one of the partitions to your LVM volume group. pvcreate /dev/sdb2 vgextend volume_group /dev/sdb2 4. Move everything from the old physical volumes to the new pv. pvmove /dev/sda3 /dev/sdb2 5. Remove the old and now empty physical volume vgreduce volume_group /dev/sda3 6. Move everything else which is not on LVM to your new raid. Guess you need to go to single user mode to do this safely. 7. Grow your raid to also contain the old disk. mdadm /dev/md0 -a /dev/sda No, I have not tested this and you should double-check everything. No guarantees, etc. One warning, though: pvmove is known to create problems from time to time. Leaking memory, bogging systems with infinite system load and so on. If it gives you trouble, you can abort it with `pvmove --abort` and try it again later by calling `pvmove volume_group` (without physical device specified) to resume it. It SHOULD survive system crashes. Trying another kernel version sometimes helps when pvmove gives you trouble. To avoid that, with large moves, do the following: # pvmove -i 600 /dev/sda3 The -i 600 means, only report every 10 minutes. It's the reporting that causes the memory leak. Also, when just wanting to empty one physical volume, it is not necessary to specify the target. It's a good idea to mark the PVs on the existing drive non-allocatable. Then LVM won't try to move anything to that PV: # pvchange -xn /dev/sda3 The rest of the steps read correct. It's how I did a similar operation, but still double-check all the parameters and when in doubt, read the manual and/or ask on the list. -- Joost Roeleveld -- Best Regards, Einux I starred this in Gmail in case I ever need to do something like this. Thanks guys!
Re: [gentoo-user] Ebuild hacking howto
On Sat, Feb 26, 2011 at 9:56 AM, Dale rdalek1...@gmail.com wrote: Mick wrote: Not related to the OP's question, but couldn't stop myself from asking: Why is/was webmin dropped from portage? I saw bug 348432 for webmin-1.530, but other than offering an ebuild it didn't say. From gentoo-dev: # Diego E. Pettenņflamee...@gentoo.org (10 Aug 2010) # on behalf of QA team # # Breaks about any QA policy regarding not touching # live filesystem as it writes to LVM configuration, # cron configuration, current-running kernel modules, RPM # library, ... # # Removal on 2010-10-09 app-admin/webmin That help? Dale :-) :-) Not going to beat a dead horse, but that is exactly one of the things it's supposed to do. The program itself works great, it just doesn't meet the requirements of the Gentoo devs.
Re: [gentoo-user] ssh problem
On Tue, Feb 22, 2011 at 6:43 AM, dhk dhk...@optonline.net wrote: After a recent upgrade to ssh I can no longer log into my Gentoo box (amd64) from another Gentoo box (x86) that has also had a recent upgrade to ssh. However, I can log in to it from Suse and Redhat boxes. Any ideas? Thanks dhk While this may not help you now, one of the things Gentoo devs recommend, after updating the ssh daemon and restarting it, is to immediately try to ssh back in and make sure you still can. Do not close your original ssh connection when you do this. I've had these instructions save me a few times; since I was still connected, I was able to fix the sshd_config file.
Re: [gentoo-user] Ebuild hacking howto
On Fri, Feb 25, 2011 at 8:13 AM, James wirel...@tampabay.rr.com wrote: Hello, Is the link below the best howto guide as to using an existing ebuild to hack a new ebuild? JFFNMS has been languishing despite repeated requests for a version bump; so I'm taking the plunge and going to update it on one of my systems. http://en.gentoo-wiki.com/wiki/Creating_an_Updated_Ebuild Also, I found this guide: http://devmanual.gentoo.org/ and man 5 ebuild Any other documents I should reference before attempinging to update an ebuild on my own person overlay dir? Comments and ideas are most welcome James Saw that you linked to the creating an updated ebuild from gentoo-wiki, so what I say may overlay quite a bit, but hear me out: It depends on how the ebuild is built. If it references the version by the ebuild file name, which is very common, you can create an overlay for the ebuild, copy the ebuild to it, rename the ebuild file to have the new version number as part of it, digest the ebuild, make sure the overlay is listed in your make.conf file, then try to emerge it. I did this with Webmin. Yes, I know it's masked and new versions have effectively been dropped from portage; but I use it, and it worked fine. Maybe I should break it down a little: Create the appropriate directory in an overlay dir. For Webmin, I had to create app-admin, then webmin: # mkdir -p /usr/local/portage/overlay/app-admin/webmin mark@allanon /usr/local/portage/overlay/app-admin/webmin $ pwd /usr/local/portage/overlay/app-admin/webmin I then copied webmin-1.510.ebuild from the official portage tree, /usr/portage/app-admin/webmin, to it's new location and filename: # cp /usr/portage/app-admin/webmin/webmin-1.510.ebuild /usr/local/portage/overlay/app-admin/webmin/webmin-1.530.ebuild Then digest the ebuild to generate a manifest, otherwise portage will complain when you try to emerge it: # cd /usr/local/portage/overlay/app-admin/webmin # ebuild webmin-1.530.ebuild digest Now add the overlay to your make.conf: PORTDIR_OVERLAY=/usr/local/portage/overlay If you're using EIX to sync/search portage, you'll need to run eix-update after doing this. Now try to emerge the newest Webmin, but first you have to unmask it. I like to use autounmask for that: Create your package.???* directories (or files) in /etc/portage (I like the dir option), if you don't already have them: # for a in keywords unmask use; do mkdir -p /etc/portage/package.${a}; done If you just want the files: # for a in keywords unmask use; do touch /etc/portage/package.${a}; done Emerge autounmask if you don't have it: # emerge app-portage/autounmask Then unmask Webmin 1.530: # autounmask =app-admin/webmin-1.530 Now we can emerge it! # emerge -av =app-admin/webmin-1.530 I've done this on 3 servers to get Webmin on them, and have used this setup every time. Chances are the ebuild you want to use may be this simple. Ok, so I scrolled down and saw your reply mentioning the program, jffnms. What I did with Webmin can all most be done exactly the same with jffnms, except you need to modify a line of the ebuild to point to *.tgz instead of *.tar.gz. When I did this, I was able to successfully fetch the gzipped tar file from Sourceforge. You can use sed to correct it: sed -i -e 's/.tar.gz/.tgz/g' /usr/local/portage/overlay/net-analyzer/jffnms/jffnms-0.8.5.ebuild Or download the ebuild I've attached, follow the link you references to create the overlay dir/add to make.conf, etc. That should work. Let me know how it goes. jffnms-0.8.5.ebuild Description: Binary data
Re: [gentoo-user] i586 stage3 tarball
On Tue, Feb 8, 2011 at 6:54 PM, Nils Holland n...@tisys.org wrote: Hi everyone, I've already talked about it in the CHOST thread, but now it's finished: If you use anonymous FTP and go to ftp://one.tisys.org/pub/linux/tisys/gentoo you will find a file called stage3-i586-20110208.tar.bz that contains a Gentoo stage3 tarball built with CHOST = i586-pc-linux-gnu and march=i586 (CFLAGS). If you have an i586 class machine (Pentium, Pentium MMX, AMD K6, K6-II, etc.) you might want to pick up this stage3 tarball and use it for your installation in case you don't want to stick with the i486 CHOST of the official Gentoo tarball and / or manually change the CHOST to i586 after installation. Installation-wise, of course, you use it in conjunction with a Gentoo minimal installation CD as can be picked up on any Gentoo mirror, and simply follow the Gentoo Handbook, using the above mentioned stage3 tarball instead of one of Gentoo's official i486 or i686 ones. The stage3 is current portage-wise as of today, and if I actually see people downloading it in the FTP logs I will update it on a regular basis (probably not weekly as is the case with the official Gentoo tarballs, but at least once a month). DISCLAIMER: Although I believe the provided stage3 tarball to work just fine, it has not been thoroughly tested, so use at your own risk and report any problems you encounter to me. There shouldn't really be any, but who knows! ;-) Greetings, Nils -- Nils Holland * Ti Systems, Wunstorf-Luthe (Germany) Powered by GNU/Linux since 1998 Interesting. Did you build this up from a stage1 or stage2 tarball?
Re: [gentoo-user] Portage is misplaced in /usr
On Sat, Feb 5, 2011 at 6:15 PM, Alan McKinnon alan.mckin...@gmail.comwrote: Apparently, though unproven, at 00:23 on Sunday 06 February 2011, Mark Shields did opine thusly: It's just plain outright stupid to have a default location for something (that by definition is variable) in a place that by definition (or by de-facto consent) must be mountable read-only and have no ill effects on the rest of the machine. -- alan dot mckinnon at gmail dot com Just put portage on it's own partition (LVM) and be done with it. Mark, I cannot believe that you actually typed that, you know better. But my eyes don't lie. So. Someone comes along with a valid beef about a default. This default can be changed, this is Gentoo. Ye gods, we change shit around here at the drop of a hat for no good reason sometimes. And your answer is to install LVM with it's deps, re-organize the disk, learn how to use lvm (not everyone knows the product or uses it) then go through the pain of moving stuff which not all users know how to do. All to get around a silly ancient default that long ago failed the most useful to most people test. You want to re-think your answer maybe? -- alan dot mckinnon at gmail dot com No, I don't. Why are you so combative/easily threatened? My suggestion was a valid one, for those already using LVM -- I've used LVM to do RAID1 with several servers, and always put it on it's own LVM partition. The dead horse is dead.
Re: [gentoo-user] Portage is misplaced in /usr
On Sat, Feb 5, 2011 at 4:52 PM, Alan McKinnon alan.mckin...@gmail.comwrote: Apparently, though unproven, at 22:45 on Saturday 05 February 2011, Volker Armin Hemmann did opine thusly: again, you are starting from a mistaken premise. /usr/portage makes sense, when you consider its history. It may not be the appropriate decision, but with its background it was logical back then. And if something is not broken, don't change it. You do not know what old tool/setting/whatever might suffocate. PORTDIR is not a mere workaround. If you are sure that there is no old crap lingering around that might expect portdir as /usr/portage, use it. Besides /usr/src/ contains linux and other sources. Wrong too? It is f* tradition. portage does not contain temporary data or database stuff - that crap is in /var/db, /var/tmp/portage, /var/lib. So the worst stuff is somewhere already. Tradition on it's own is a lousy idea for retaining anything. A tradition worth keeping is one that's worth having because it has use. However most traditions are merely but we always did it this way... /usr/portage is a tradition, a hangover from BSD. LFS is a standard and /usr/portage gets in the way of the standard. Guess which one should trump the other? And the portage tree IS a database. You put (or cause to be put) data into it, which can be amended, edited, added to or removed, other actors query the database for information (emerge, eix, etc). The fact that it is updated on demand and not on the fly, that it is not relational in nature, that it doesn't have sql anywhere in it's name and that it is purely file-based does not detract in the slightest from the simple fact that the tree is a database. It's just plain outright stupid to have a default location for something (that by definition is variable) in a place that by definition (or by de-facto consent) must be mountable read-only and have no ill effects on the rest of the machine. -- alan dot mckinnon at gmail dot com Just put portage on it's own partition (LVM) and be done with it.
Re: [gentoo-user] Find root partition
On Thu, Jan 20, 2011 at 11:02 AM, Matthias Fechner ide...@fechner.netwrote: Dear list, I switched now to a new mainboard and it seems that the drive numbering changed or my kernel does not detect any hard disks... If I try to boot my gentoo the kernel panic because it cannot find the root partition. After the panic I cannot scroll up to check what drives are detected and which numbering is used. What must I do to be able to scroll up to see what is logged to the screen? (is there maybe a special key available, the shift+page-up and scroll is not working) Thanks Matthias -- Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning. -- Rich Cook Your best bet is to boot from a livecd or gentoo minimal, and run fdisk -l to show the disk/partition listing. Also, as Neil stated, make sure your new SATA chipset drivers are compiled into the kernel and not as a module; however, it you switched from say, for example, and nvidia-based motherboard to another nvidia-based motherboard, then you don't need to worry about that.
Re: [gentoo-user] PHP won't execute
On Fri, Jan 14, 2011 at 10:53 PM, Michael Sullivan msulli1...@gmail.comwrote: On Fri, 2011-01-14 at 22:37 -0500, Mark Shields wrote: trimmed It's no problem. Gmail realized you had already sent the same message and collapsed the whole reply as quoted text :) Try running this: # echo phpinfo(); | xargs php -r What does it output? anything? It outputs a lot of stuff. More than my gnome-terminal buffer could display (as in I issue a reset before I issue the command you sent and I can't see the command when I scroll all the way up.) Anything in particular I should be looking for? Anything I should grep for? I just wanted to see if php-cli works. And it does. I would recommend re-emerging php at this point, then run etc-update or dispatch-conf.
Re: [gentoo-user] X -config fail
On Sat, Jan 15, 2011 at 12:35 PM, Mick michaelkintz...@gmail.com wrote: On Saturday 15 January 2011 16:06:21 Kostya Sha. wrote: On 15.01.2011, at 17:17, doherty pete wrote: when i input Xorg -configure the log is [ 442.752] (EE) Failed to load module evdev (module does not exist, 0) [ 442.752] (EE) No input driver matching `evdev' i have emerg nvidia-drivers and set /etc/make.cof what's the matter? Please, check official documentation about howto configure nvidia and xorg. Did you specify your input devices (evdev, etc.) as and where the documents suggest *before* you emerged xorg-server? -- Regards, Mick What he said. I would also try to modprobe nvidia manually to see if it loads: # modprobe nvidia
Re: [gentoo-user] Web Server Memory Issues
On Wed, Jan 12, 2011 at 1:59 PM, Kaddeh kad...@gmail.com wrote: So, I have run into an interesting problem while building out a web server for a client which I haven't come across before and I was hoping that the list would be a good way for me to find the answer. A little beckground on the systems: P4 @ 3.0Ghz 2GB PC2 4200 2x 250GB drives in RAID1 The system configurations are default for the most part with the server running MySQL and Apache. The problem that I am running into at this point, however is that the machine seems to run out of memory and will segfault either apache or mysql when does so, when apache segfaults, it is a recoverable error, when mysql does it, mysql can't recover short of restarting it. At this point, I have found a soft fix by running a cron job every 6 hours or so to clear the cached memory, which seems to be the problem, however, I would like to find a more permanent fix to this issue. Anything that would help at this point would be much appreciated. Cheers Kad I've seen a similar problem before: a chrooted webhost running Apache, MySQL, and a very old version of phpnuke. MySQL ran a muck using 50%+ of CPU time, eventually. I had a cron job set to restart it once an hour, but even that became too much. We eventually moved the site to another server on a temporary basis, then migrated to vBulletin.
Re: [gentoo-user] PHP won't execute
thumbnail.php~ 011305 032907 060509 071006 090205 101004 112004 121809 directory.php.bak 011409 042608 061608 071405 091105 101405 112206 122404 index.php 020705 042810 063005 072005 092208 102304 112504 122405 oldindex.html 022807 050307 070405 080605 100206 110604 120205 123106 test.php See? There ARE files there. What am I missing here? I looked at http://www.gentoo.org/proj/en/apache/doc/troubleshooting.xml and it said that the browser cache might be full, so I closed the browser, deleted the cache directory files, and reopened the browser. No change. Please help! Sounds like your Handlers are missing. Do you have this file, with this in it? /etc/apache2/modules.d/70_mod_php5.conf IfModule !mod_php5.c LoadModule php5_modulemodules/libphp5.so AddHandler application/x-httpd-php .php .php5 .phtml AddHandler application/x-httpd-php-source .phps DirectoryIndex index.php index.phtml - Mark Shields
Re: [gentoo-user] PHP won't execute
On Fri, Jan 14, 2011 at 9:57 PM, Michael Sullivan msulli1...@gmail.comwrote: On Fri, 2011-01-14 at 21:24 -0500, Mark Shields wrote: On Thu, Jan 13, 2011 at 9:01 PM, Michael Sullivan msulli1...@gmail.com wrote: A several years ago I ran a public network out of my apartment. I had email, www, etc. etc. It all worked fine. Then one day a couple of years ago we decided that we could not afford to pay for a public IP address anymore, so we had it turned off. I haven't touched apache since then, but we still run that box as it's faster than all the others and runs distcc well. We had a picture page that I wrote back in 2005 and occassionally when we have company over we use it to show them pictures that we've taken. I went to the site in my web browser this evening, and saw only PHP code printed on the background image. I've checked the usual suspects: carter apache2 # cat /etc/conf.d/apache2 # /etc/conf.d/apache2: config file for /etc/init.d/apache2 # When you install a module it is easy to activate or deactivate the modules # and other features of apache using the APACHE2_OPTS line. Every module should # install a configuration in /etc/apache2/modules.d. In that file will be an # IfDefine NNN where NNN is the option to enable that module. # Here are the options available in the default configuration: # USERDIR Enables /~username mapping to /home/username/public_html # INFO Enables mod_info, a useful module for debugging # PROXY Enables mod_proxy # DAV Enables mod_dav # DAV_FSEnables mod_dav_fs (you should enable this when you enable DAV # unless you know what you are doing) # SSL Enables SSL # SSL_DEFAULT_VHOST Enables default vhost for SSL (you should enable this # when you enable SSL unless you know what you are doing) # LDAP Enables mod_ldap # AUTH_LDAP Enables authentication through mod_ldap # DEFAULT_VHOST Enables the default virtual host in /var/www/localhost/htdocs APACHE2_OPTS=-D DEFAULT_VHOST -D PHP5 -D MAILMAN -D USERDIR # Extended options for advanced uses of Apache ONLY # You don't need to edit these unless you are doing crazy Apache stuff # As not having them set correctly, or feeding in an incorrect configuration # via them will result in Apache failing to start # YOU HAVE BEEN WARNED. # ServerRoot setting #SERVERROOT=/usr/lib/apache2 # Configuration file location # - If this does NOT start with a '/', then it is treated relative to # $SERVERROOT by Apache #CONFIGFILE=/etc/apache2/httpd.conf # Location to log startup errors to # They are normally dumped to your terminal. #STARTUPERRORLOG=/var/log/apache2/startuperror.log # Environment variables to keep # All environment variables are cleared from apache # Use this to preserve some of them # NOTE!!! It's very important that this contains PATH # Also, it will fail if the _value_ of any of these variables contains a space KEEPENV=PATH carter apache2 # cat error_log [Tue Jan 11 03:15:22 2011] [notice] Apache/2.2.16 (Unix) configured -- resuming normal operations [Wed Jan 12 03:00:12 2011] [notice] Graceful restart requested, doing restart [Wed Jan 12 03:00:13 2011] [notice] Apache/2.2.16 (Unix) configured -- resuming normal operations [Thu Jan 13 19:24:28 2011] [error] [client 192.168.2.3] File does not exist: /home/michael/public_html/camera/$filename, referer: http://carter.espersunited.com/~michael/camera/ [Thu Jan 13 19:43:23 2011] [notice] caught SIGTERM, shutting down [Thu Jan 13 19:43:26 2011] [notice] Apache/2.2.16 (Unix) configured -- resuming normal operations [Thu Jan 13 19:43:44 2011] [error] [client 192.168.2.3] File does not exist: /home/michael/public_html/camera/$filename, referer: http://carter.espersunited.com/~michael/camera/ [Thu Jan 13 19:48:06 2011] [error] [client 192.168.2.3] File does not exist: /home/michael/public_html/camera/$filename, referer: http
Re: [gentoo-user] PHP won't execute
On Fri, Jan 14, 2011 at 10:29 PM, Michael Sullivan msulli1...@gmail.comwrote: On Fri, 2011-01-14 at 22:10 -0500, Mark Shields wrote: On Fri, Jan 14, 2011 at 9:57 PM, Michael Sullivan msulli1...@gmail.com wrote: On Fri, 2011-01-14 at 21:24 -0500, Mark Shields wrote: On Thu, Jan 13, 2011 at 9:01 PM, Michael Sullivan msulli1...@gmail.com wrote: A several years ago I ran a public network out of my apartment. I had email, www, etc. etc. It all worked fine. Then one day a couple of years ago we decided that we could not afford to pay for a public IP address anymore, so we had it turned off. I haven't touched apache since then, but we still run that box as it's faster than all the others and runs distcc well. We had a picture page that I wrote back in 2005 and occassionally when we have company over we use it to show them pictures that we've taken. I went to the site in my web browser this evening, and saw only PHP code printed on the background image. I've checked the usual suspects: carter apache2 # cat /etc/conf.d/apache2 # /etc/conf.d/apache2: config file for /etc/init.d/apache2 # When you install a module it is easy to activate or deactivate the modules # and other features of apache using the APACHE2_OPTS line. Every module should # install a configuration in /etc/apache2/modules.d. In that file will be an # IfDefine NNN where NNN is the option to enable that module. # Here are the options available in the default configuration: # USERDIR Enables /~username mapping to /home/username/public_html # INFO Enables mod_info, a useful module for debugging # PROXY Enables mod_proxy # DAV Enables mod_dav # DAV_FSEnables mod_dav_fs (you should enable this when you enable DAV # unless you know what you are doing) # SSL Enables SSL # SSL_DEFAULT_VHOST Enables default vhost for SSL (you should enable this # when you enable SSL unless you know what you are doing) # LDAP Enables mod_ldap # AUTH_LDAP Enables authentication through mod_ldap # DEFAULT_VHOST Enables the default virtual host in /var/www/localhost/htdocs APACHE2_OPTS=-D DEFAULT_VHOST -D PHP5 -D MAILMAN -D USERDIR # Extended options for advanced uses of Apache ONLY # You don't need to edit these unless you are doing crazy Apache stuff # As not having them set correctly, or feeding in an incorrect configuration # via them will result in Apache failing to start # YOU HAVE BEEN WARNED. # ServerRoot setting #SERVERROOT=/usr/lib/apache2 # Configuration file location # - If this does NOT start with a '/', then it is treated relative to # $SERVERROOT by Apache #CONFIGFILE=/etc/apache2/httpd.conf # Location to log startup errors to # They are normally dumped to your terminal. #STARTUPERRORLOG=/var/log/apache2/startuperror.log # Environment variables to keep # All environment variables are cleared from apache # Use this to preserve some of them # NOTE!!! It's very important that this contains PATH # Also, it will fail if the _value_ of any of these variables contains a space KEEPENV=PATH carter apache2 # cat error_log
Re: [gentoo-user] OT: hard disk access and recovery impossible under linux ?
On Sat, Jul 31, 2010 at 3:14 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: On Samstag 31 Juli 2010, Mick wrote: On Saturday 31 July 2010 19:04:47 Volker Armin Hemmann wrote: On Samstag 31 Juli 2010, Mick wrote: On Saturday 31 July 2010 16:33:18 Dale wrote: Kacper Kopczyński wrote: Dnia 2010-07-31, o godz. 16:15:51 Volker Armin Hemmannvolkerar...@googlemail.com napisał(a): On Samstag 31 Juli 2010, Kacper Kopczyński wrote: Hi, My problem is really strange - I can't access my hard drive from linux, but it works from windows without problems. It has some bad blocks. it has a lot of bad blocks and a fucked up firmware it seems. No way it is working 'without problems'. Well total space taken by bad blocks according to chkdsk is less than 1MB, windows is still able to access all data. Linux is only able to see partition table for a while - as you can see in dmesg. If firmware is broken then how it is possible that windows is able to use this disk? Maybe windoze is ignoring the problem? It's not like windoze has never done that before right? Just a thought. Couldn't it be that the MSWindows partition has no bad blocks, while Linux does? it is not about partitions. Please explain, I thought that bad blocks would coincide with some partitions. because defectice partitions don't give you no sense errors nor do they give you zero capacity errors. Read his dmesg. If the firmware/logic board is bad, you might be able to replace it with one from the same model. I've heard of some success from a coworker who took the logic board from a known good drive and put it on a HDD with good internals but a bad logic board, and it worked. That's if you need the data, that is. - Mark Shields
[gentoo-user] Gentoo as a Windows server replacement (Active Directory/Exchange/File server integration)
In today's economy, more and more clients are looking for low cost alternatives to Windows servers. I recently pitched the idea of offering linux-based servers to our clients as replacements for Windows Servers. I've checked out Redhat Directory Server and installed that, though having some trouble with it; no doubt I'll figure it out. I'm concerned with Samba and Zimbra integration into Redhat Directory Server. All the documentation I've found points to people setting it up on RHEL or CentOS, and none on Gentoo. Anyone have any experience with this? I've been using Gentoo for 5 years on and off for servers mainly, so I'm fairly familiar with how it works. If anyone has any tips on how to proceed, I would greatly appreciate it. - Mark Shields
Re: [gentoo-user] Re: {OT} wvdial fails with Zain Tanzanian network
Is there another ppp client I can try besides wvdial? One of the dependecies of kppp won't emerge for me so I'm out of luck there. - Grant One of the dependencies won't emerge? Which one? That should be fixable. Post the fail log for the emerge, and we'll work to get that resolved. -- - Mark Shields
Re: [gentoo-user] Can't mask a package
On Thu, Jul 2, 2009 at 6:31 AM, Pupino pupi...@gmail.com wrote: Hello everybody, i'm having troubles with the policykit package, and i've discovered that the new version (0.92) has broken all APIs and this causes some packages to not compile anymore (network manager in my case). So i tried to mask it and keep the 0.9-r1 version instead, but with no result. I've added it to /etc/portage/package.mask and tried this forms: =sys-auth/policykit-0.92 =sys-auth/policykit-0.92 and also sys-auth/policykit-0.92 that should prenvet any version of it being merged, right? none of those attempts worked for me, and emerge keeps trying to merge it... i'm running a x86 system with no accept keywords set. any ideas? Thanks in advance. Davide Other people replied with the fixes, but I just want to chime in and say 1 of those isn't a valid package atom: sys-auth/policykit-0.92 The other 2 are valid. The first one will mask only version 0.92. The 2nd one will obviously mask 0.92 and above. If you want to mask all policykit versions, just add: sys-auth/policykit -- - Mark Shields
Re: [gentoo-user] Re: {OT} wvdial fails with Zain Tanzanian network
On Sat, Jul 4, 2009 at 12:14 PM, Grant emailgr...@gmail.com wrote: Is there another ppp client I can try besides wvdial? One of the dependecies of kppp won't emerge for me so I'm out of luck there. - Grant One of the dependencies won't emerge? Which one? That should be fixable. Post the fail log for the emerge, and we'll work to get that resolved. -- - Mark Shields GREAT SUCCESS! I added the following to wvdial.conf and it works! I think this amounts to defining the APN. Init3 = AT+CGDCONT=1,IP,internet Thanks a lot for everyone's help. I don't recommend the Serena Lodge wireless internet connections in Tanzania. Very expensive and most ports don't work. The Zain SIM works great now. Incidentally, I got antlr to emerge by temporarily enabling softmode on my PAX-enabled kernel. - Grant You're running a PAX'd kernel on a laptop workstation? Really? -- - Mark Shields
Re: [gentoo-user] [OT] rrd to CSV
On Sat, Jul 4, 2009 at 11:36 AM, Mick michaelkintz...@gmail.com wrote: Hi All, I know that rrdtool dump will export the rrd data into XML, but is there something to either directly or via rrdtool create a CSV file for me? Will probably want to run this on a cron job and email/save it. -- Regards, Mick Judging from a few cursory google searches, it won't output to CSV, but you can easily convert it. Try piping the file/output to these commands (yanked from Cacti forums): | grep -v NaN | grep 'row' | tr e ' ' \ | awk {'print Q$2qcq$3qcq$9Q'} \ | tr Q '' | tr c ',' | tr q '' Haven't tested it, but looks like it should work. -- - Mark Shields
Re: [gentoo-user] new system, printing suddenly fails for all printers
On Thu, Jul 2, 2009 at 8:46 PM, Alan E. Davis lngn...@gmail.com wrote: I've been wrangling with a new gentoo install, on an AMD X2 64 bit machine. It's been a problematic experience, but when the system works right, it works really right. I would really recommend getting rid of the genkernel and compiling a kernel from sources. -- - Mark Shields
Re: [gentoo-user] Canonical place to list modules to load
On Wed, Jun 17, 2009 at 10:21 AM, Harry Putnam rea...@newsguy.com wrote: Where do we list modules we want loaded at boot? When I run modprobe fuse WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/. /etc/modprobe.conf doesn't actually appear to have any modules listed but does list a herd of aliases for modules. Looking under /etc/modprobe.d aliases.conf blacklist.conf i386.conf pnp-aliases.conf All of which appear to hold the same or more lists of aliases. So if I want to load `fuse' at boot... where do it put it? It's been the same as long as I've been using Gentoo the past 5 years: /etc/modules.autoload.d/kernel-2.6. This has always been in the handbook as long as I've been using Gentoo, too. 7.e. Kernel Modules Configuring the Modules You should list the modules you want automatically loaded in /etc/modules.autoload.d/kernel-2.6. You can add extra options to the modules too if you want. -- I recommend reading the entire handbook from start to finish; it has plenty of valuable information and will avoid unnecessary questions. -- - Mark Shields
Re: [gentoo-user] Sysloggers
On Tue, Jun 16, 2009 at 4:49 PM, Alan McKinnon alan.mckin...@gmail.comwrote: Hi, Does anyone have decent experience with sysloggers other than syslog-ng, and be willing to share experiences? I'm especially interested in some of the advanced features of syslog-ng Premium from Balabit.com (based on and extending their open source version): SSL-encrypted traffic over the network Disk-based buffering on the client Windows agents Timezone aware (which syslog doesn't do and syslog-ng only partially) Encrypted disk files Filter, parse and rewrite incoming logs (vital if you need the auth log over here and the password field stored over there, without jumping through hoops first) High scalability - 2000 Cisco devices and 200+ servers to start, distributed country wide -- alan dot mckinnon at gmail dot com syslog-ng is the de facto standard. Metalog is fine for desktops, but I use syslog-ng on all my servers. Nearly all programs that can process log files are compatible with it. -- - Mark Shields
Re: [gentoo-user] Bad mirror in portage?
On Wed, Jun 17, 2009 at 10:11 AM, Kevin O'Gorman kogor...@gmail.com wrote: On Wed, Jun 17, 2009 at 6:55 AM, Alan McKinnonalan.mckin...@gmail.com wrote: On Wednesday 17 June 2009 15:24:35 Kevin O'Gorman wrote: My latest sync was busted, and not being aware of picking my own mirrors, I wonder what to do about it. Message follows: * Running emerge --sync !! !! NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE !! !! If you are seeing this message, you are not in the right place. Please check our website http://mirror.arcticnetwork.ca for the proper hostnames for connection. This host no longer contains data. @ERROR: Unknown module 'gentoo-portage' rsync error: error starting client-server protocol (code 5) at main.c(1504) [receiver=3.0.5] --- ** April 21, 2009 ... And so on If you need a mirror run by a known person that you can blame when things go south, you *could* use mine: GENTOO_MIRRORS=ftp://ftp.is.co.za/mirror/gentoo.org/; SYNC=rsync://ftp.is.co.za/gentoo-portage That poor machine gets lonely down here in South Africa, doesn't get to speak to foreigners much, and my Network Operations guys keep pestering me to find ways to stress out the peering links to that other competing ISP (I think they just want to bloat the graphs to justify buying new expensive Cisco toys - not that there's anything wrong in that :-) Interesting offer, but I found mirrorselect on my own in the meantime, and first in its list is a site that I know is a 2-hour drive away (my grad school alma mater), and I like to keep global load down... not that I have anything against Cisco. Thnaks for the offer, though. -- Kevin O'Gorman, PhD Mirrorselect is certainly your friend, and described in the Gentoo Handbook. If you haven't already, I would use it to select a rsync mirror, too. -- - Mark Shields
Re: [gentoo-user] Canonical place to list modules to load
On Wed, Jun 17, 2009 at 10:47 AM, Neil Bothwick n...@digimed.co.uk wrote: On Wed, 17 Jun 2009 10:31:23 -0400, Mark Shields wrote: So if I want to load `fuse' at boot... where do it put it? It's been the same as long as I've been using Gentoo the past 5 years: /etc/modules.autoload.d/kernel-2.6. This has always been in the handbook as long as I've been using Gentoo, too. That's for baselayout1. For baselayout2/openrc it has moved to /etc/conf.d/modules. -- Neil Bothwick There's no place like http://www.home.com Baselayout 2 isn't used in the hardened gentoo base; it's ~x86 keyword (on x86). That's what I was going by. The handbook still references /etc/modules.autoload.d/kernel-2.6: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap7 -- - Mark Shields
Re: [gentoo-user] Re: gentoo older versions
On Sat, May 2, 2009 at 1:23 PM, William Hubbs willi...@gentoo.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, May 02, 2009 at 10:14:45AM -0700, Nitin Kanaskar wrote: Ok - I am not clear about the terminology - packages, versions... But i need to install gentoo 2004/2005 - if this is right. I am a graduate student doing research on vulnerabilities, exploits and IDS. Hence I am looking for older gentoo installations which i know have some vulnerabilities. If i have to build whole OS from source, I am willing to do that - but could not find any resource on that old stuff. Gentoo, as a distribution, is versionless. The 2004/2005 you are referring to are versions of our release media. What you would have to do is find out which packages and which versions of the packages you want to work with and see if we still have them in the tree. William -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkn8gawACgkQblQW9DDEZThqXwCgs9ZSKvDZbRgd9bzmDxe9wA36 ccUAoIrd1uKpHzEvlRXRbBEzearyYKYS =cPF9 -END PGP SIGNATURE- That isn't entirely accurate. If you can get a livecd, or a minimal cd + package cd (distfiles), and just not upgrade portage, he would be able to use it fine. -- - Mark Shields
Re: [gentoo-user] bind chrooting: mount permission denied...
On Thu, May 7, 2009 at 2:43 PM, Jarry mr.ja...@gmail.com wrote: Hi, I just emerged bind and at the end I tried to set-up chroot for it just as it is adviced in messages: # emerge --config '=net-dns/bind-9.4.3_p2' Configuring pkg... * * Setting up the chroot directory...mount: permission denied Done. Where can I find that --config script to have a look at it and to find out what is bind actually trying to mount? Jarry -- ___ This mailbox accepts e-mails only from selected mailing-lists! Everything else is considered to be spam and therefore deleted. May be obvious, but are you running the command as root/sudo? -- - Mark Shields
Re: [gentoo-user] Ssmtp gotcha
On Mon, Sep 22, 2008 at 3:40 AM, Etaoin Shrdlu [EMAIL PROTECTED]wrote: On Monday 22 September 2008, 06:26, Philip Webb wrote: After an urgent inquiry re my health from a friend, I discovered that e-mails had not been getting out of my machine for 7 days . I tracked the problem down to a change in /etc/group when I updated Ssmtp 2.61-r2 - 2.62-r3 : there's a new entry 'ssmtp', which needs to be enabled for 'user'. There was 1 line in the file in /var/log/emerge-logs/ , which didn't explicitly warn that sysadmin action was required, but nothing anywhere else AFAICS, incl in the 'man' file. Has anyone else got caught by this ? Yes, I saw that. I had to add the users who use ssmtp to the ssmtp group (or, alternatively, chmod 755 the binary). There is a bug on b.g.o.: http://bugs.gentoo.org/show_bug.cgi?id=237932 which links to the interesting one: http://bugs.gentoo.org/show_bug.cgi?id=187841 I was wondering about this. I ended up making it world executable like you mentioned. The day before I went on vacation the Gentoo box at work stopped regularly e-mailing. What a pain. -- - Mark Shields
Re: [gentoo-user] Re: A plea for calm
On Tue, Sep 16, 2008 at 6:13 PM, David Leverton [EMAIL PROTECTED]wrote: On Tuesday 16 September 2008 22:47:49 »Q« wrote: It's not backwards logic. The Paludis developer posts evidence that the liar is lying, therefore I'm going to believe the liar is entirely backwards. What's Paludis? Just kidding. Never used it, I'm happy with portage. -- - Mark Shields
Re: [gentoo-user] Mistaken gcc -unmerge with a twist
On Thu, Jul 17, 2008 at 10:43 AM, [EMAIL PROTECTED] wrote: I was in the final stages of installing gentoo when I unmerged the old gcc before installing the new. My next step was going to be an emerge system world and I'd hate to have to restart from scratch again. I do have another machine, similar (both ~x86), and wonder if I can package up the gcc on there, whether (equery files; tar cf) or something more specific to gentoo, and unpackage it on the new machine. -- ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._. Felix Finch: scarecrow repairman rocket surgeon / [EMAIL PROTECTED] GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933 I've found a solution to Fermat's Last Theorem but I see I've run out of room o -- gentoo-user@lists.gentoo.org mailing list Don't do that; use quickpkg. info emerge for details. -- - Mark Shields
Re: [gentoo-user] CD ROM does not play audio CD's
On Wed, Jun 25, 2008 at 4:21 PM, Yoav Luft [EMAIL PROTECTED] wrote: Hi, I posted a similar e-mail a couple of weeks ago and got no response. I wish not to spam the mailing list, only for maybe a better luck this time. My CD ROM drive had stopped playing audio CD's. It still works fine, data CD's work alright and various programs manage to gather useful information about the audio CD's tracks, but I hear nothing. I checked all controls in alsamixer to be unmuted and at reasonable volume, but it's not it. I can't rip the CD's neither. Any ideas what might be wrong? This may not help, but I haven't used the analog or digital cable from the cdrom to the soundcard to play audio cds in over 5 years; every software player I've ever used just read the audio data directly from the cdrom. -- - Mark Shields
Re: [gentoo-user] Installing Gentoo 2007.0
On Sun, Jun 15, 2008 at 1:07 AM, Norman Hakim [EMAIL PROTECTED] wrote: hi...I have one problem,after boot my Gentoo liveCD,after i chose to boot for the kernel and hardware,after the gui appeared and also progress bar until it finished boot the system,suddenly my monitor goes to standby mode,i'm wondering why is this happen. Thank you. Regards, Norman Hakim * NORMAN HAKIM YAHYA* Sounds like a problem with it detecting your video card or your monitor. I'd suggest doing the text-based install instead. -- - Mark Shields
Re: [gentoo-user] Installing Gentoo 2007.0
On Sun, Jun 15, 2008 at 9:06 PM, Norman Hakim [EMAIL PROTECTED] wrote: *Mark Shields [EMAIL PROTECTED]* wrote: On Sun, Jun 15, 2008 at 1:07 AM, Norman Hakim [EMAIL PROTECTED] wrote: hi...I have one problem,after boot my Gentoo liveCD,after i chose to boot for the kernel and hardware,after the gui appeared and also progress bar until it finished boot the system,suddenly my monitor goes to standby mode,i'm wondering why is this happen. Thank you. Regards, Norman Hakim * NORMAN HAKIM YAHYA* Sounds like a problem with it detecting your video card or your monitor. I'd suggest doing the text-based install instead. -- - Mark Shields Because after my monitor turn to standby mode, after a few seconds there is a sound from my graphic card. How do i actually do the text-based install? from the guideline handbook only show how to install by using gui. Thank you Norman * NORMAN HAKIM YAHYA* You'll need the minimal install cd. See: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1chap=2#doc_chap2- the handbook covers both the liveCD install and the minimal cd install. Here's a link to the minimal cd for x86: http://bouncer.gentoo.org/fetch/gentoo-2007.0-minimal/x86/ - or if you don't use x86, see: http://www.gentoo.org/main/en/where.xml The text-based install is not automated like most of the gui installer. The text-based install does not give you a bootable, gui-based system; you have to build it yourself. But I assure you, you will learn a lot more by doing so, and you'll have a lean system built to the way you want it. This used to be the only method for any install until the gui installer came along. -- - Mark Shields
Re: [gentoo-user] vixie cron
On Sat, Jun 7, 2008 at 1:12 AM, Teng Wang [EMAIL PROTECTED] wrote: Hi there, I am using vixie cron to maintain my scheduled jobs. Everything is just fine other than one. I find that when I use, for example, 0 * * * * /usr/bin/eix-sync to update the portage everyday, the cron works without any problem. But I was told by manpage I could still use @daily instead. So I tried but failed. The system does nothing at all. It is not a big issue, but I just want to make sure it has nothing to do with my setting. Furthermore, I still want to start some program like fetchmail after reboot. Then I put @reboot in crontab. I also tried, and failed. Does anybody have any idea about this? Best, -- Teng Wang -- gentoo-user@lists.gentoo.org mailing list There should be a single text file in /etc/cron.daily/ with the command you want to run daily. Like this: $ cat /etc/cron.daily/esync /usr/bin/esync You also may need to make the file executable, so chmod +x /etc/cron.daily/esync. Mine syncs daily with this command. -- - Mark Shields
Re: [gentoo-user] Is the mailing list working?
On Fri, May 9, 2008 at 9:13 AM, Frank Gruellich [EMAIL PROTECTED] wrote: * Daniel da Veiga [EMAIL PROTECTED] 7. May 08: In fact, gmail recognizes it as a mailing-list (even offering special commands, like filtering email from the list). Wow, that new and shiny Ajax-Web3.0-Gigabyte-buzzword gmail stuff does the same as my 20 years old mutt now? SCNR. Kind regards, Frank. -- Sigmentation fault -- gentoo-user@lists.gentoo.org mailing list Wow, can you be even more of an ass? He was pointing out how unlikely it was that gmail was filtering the mailing list as spam; he wasn't whipping out his dick like some elitist asshole ready to gloat about features of his e-mail client. Not like you. That said, I've had a problem every now and then where gmail would tag an e-mail from a mailing list as spam, but it's never happened with gentoo-user; just was a wordpress-hackers mailing list e-mail, and only a few. -- - Mark Shields
Re: [gentoo-user] tar a brand new Gentoo install to a USB drive for safe keeping?
On Sun, May 4, 2008 at 7:12 PM, Mark Knecht [EMAIL PROTECTED] wrote: On Sun, May 4, 2008 at 8:25 AM, Mark Knecht [EMAIL PROTECTED] wrote: Jil Neil, Thanks for the really great information! I'm going to give this a try today. It strikes me that to test my backup I could create a chroot on the very system I'm backing up. (Or some other system.) I follow the procedure we're outlining here using the install CD and when it's done I reboot the system, create a few small partitions in some extra disk space, untar the files, chroot into that environment, run some commands to test things, and then put the tar'ed files away for safe keeping feeling pretty good that everything is where I need it should the worst happen. Again, thanks for the info. I do appreciate it. Cheers, Mark Hi all, So I'm working on this and ran into a couple of questions about tar. 1) I'm having trouble figuring how to best run tar. I end up with files at the wrong level every time so far. Assume I first mount a partition that's empty, and then mount a partition I want to save that contains a number of system directories - /, tmp, etc. lib, mnt and others: mount /dev/sda8 /mnt/gentoo [[ This is empty except for a mount point called TarPoint ]] cd /mnt/gentoo mount /dev/sda5 TarPoint [[ The partition I want to backup ]] Now I can see all my directories under TarPoint. What's the best way to run tar, creating a file called SYSTEM.tar.bz2 in /mnt/gentoo, so that later, when I have an empty partition on a different hard drive (hda) where I'm going to restore the system, I can do this mount /dev/hda11 /mnt/gentoo cd /mnt/gentoo scp [EMAIL PROTECTED]:SYSTEM.tar.bz2 . tar xvfp SYSTEM.tar.bz2 and I get the system directory hierarchy back again. 2) This laptop is a dual boot machine so the system clock is set to local when I'm in my Gentoo environment. When I drop into the install CD I presume it's set to UTC as is the standard. My question has to do with any requirements to setting time prior to making the tar ball or untarring to build the environment. What I'm seeing is that the command tar xcjf SYSTEM.tar.bz2 generates lots of messages about file times being in the future. Maybe this won't matter if I use the backup later than 8 hours from the time I make it but in the short term will it cause any problems? Thanks, Mark -- gentoo-user@lists.gentoo.org mailing list Look into what's called a stage 4 backup: http://blinkeye.ch/mediawiki/index.php/GNU/Linux_System_Backup_Script_(stage4) I've had to actually use it once, and it worked fine. It already excludes the appropriate files: /dev /lost+found /mnt /proc /sys /tmp /usr/portage /usr/src /var/log /var/tmp /var/db /var/cache/edb It doesn't back up the MBR or the partition tables (primary or logical), though you could edit the script to do that. -- - Mark Shields
Re: [gentoo-user] Very old machine blocking/update questions
On Fri, Apr 25, 2008 at 6:28 PM, Alan McKinnon [EMAIL PROTECTED] wrote: On Saturday 26 April 2008, Mark Knecht wrote: Thanks Alan, Sorry for top posting. I noticed these very old machine have only 8GB drives in them. Looks like I'm actually going to replace the drives and then do new installs from scratch. 8G drives!! Wow, that comes from the previous millenium Today I worked on a machine with a 40G 7200rpm Barracuda (the office sounded like it had a Boeing in it taking off!) and I thought they were old. Now it looks like a young spring chicken in comparison... -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list I obtained, free of charge, an iMac G3 (400 mhz?) with a 1 GB of RAM installed about 6 months ago. About a year ago, I got a free Compaq mini tower with a regular cd-rom, 64 MB of PC100 RAM (1 stick), but 4 MB had to be dedicated to video (could dedicate 2, 4, or 8). I took it to my work for a project (my manager couldn't get approved to use a PC for this manner), installed 2 256 MB PC133 sticks a coworker gave me that he had in the trunk of his car from cleaning out his storage. It's running Gentoo with a 10 GB hard drive. No GUI, but eh, who needs that? Runs like a champ. -- - Mark Shields
Re: [gentoo-user] startup script in /etc/init.d does not perform the stop part.
On Mon, Mar 31, 2008 at 4:45 PM, Daniel Pielmeier [EMAIL PROTECTED] wrote: David Harel schrieb: Greetings, I added a simple init startup script with dependency need localmount The script is added to runlevel default using rc-update. The script works fine on boot time but it's stop part doesn't work on system shutdown. Any idea? # rc-update -s bootmisc | boot checkfs | boot checkroot | boot clock | boot consolefont | boot cupsd | default hostname | boot keymaps | boot local | default nonetwork localmount | boot modules | boot net.eth0 | default net.lo | boot netmount | default pcmcia | default rmnologin | boot samba | default sshd | default syslog-ng | default *train | default* urandom | boot vixie-cron | default xdm | default Maybe you should post your script too! Regards, Daniel -- gentoo-user@lists.gentoo.org mailing list What he said. Post the contents of /etc/init.d/train -- - Mark Shields
Re: [gentoo-user] {OT} Power supply or motherboard dead?
On Thu, Mar 20, 2008 at 6:29 PM, Grant [EMAIL PROTECTED] wrote: A Gentoo desktop of mine won't turn on anymore. I was hoping it was the power supply but I've installed a new one which doesn't fix the problem. Is there a sure way to know if the motherboard needs replacement or if I have two dead power supplies? Hi there, I work on PCs for a living, mostly peoples' home computers, and in the case of a dead pc the cause is nearly as often something else as it is a dead PSU. Causes such as a duff CD-ROM drive or a damaged USB connector are surprising but not uncommon, so reset the BIOS (using the method described by Volker) and if that doesn't work unplug as much as possible from the motherboard - you'll surely need the CPU RAM for it to post, but you may wish to swap out the RAM at some point in your diagnostics - and unplug most everything else. That means drives, PCI cards, USB devices, stuff connected to the USB serial headers, graphics card if possible. Also don't connect the power supply to any of the drives, or anything else that you're not currently using. I've seen cheap power supplies take out the motherboard when they go. Sorry if you find that to be the case. I removed everything from the motherboard and even tried another CPU that used to run on that same motherboard. No luck. I can't test the power supply in my P3 router because the CPU power plug is different. I should have said before that every couple times I try to turn it on, the CPU fan spins about 2% of a full rotation and some of the LEDs along the back light up for a second. Would you guys say it is most likely the motherboard at this point? - Grant -- gentoo-user@lists.gentoo.org mailing list I'm going to take a stab in the dark and say this is an Emachines PC. Am I right? Emachines, when the PSU goes bad, have a habit of taking out the motherboard, too. Hooking the old PSU up to a new motherboard fries the new one. I fried 2 motherboards (not Emachines supplied) back in my early days doing this (PSU wasn't Emachines, either). So, it can happen with other PSU/motherboards. If the motherboard has a status light and it isn't even coming on, then the motherboard is dead. Even bad CPUs I've damaged still allowed the motherboard, fans, etc. to power up (though nothing came up on the screen). -- - Mark Shields
Re: [gentoo-user] Sharing a printer to XP: Samba vs IPP
On Mon, Mar 17, 2008 at 5:42 PM, David Blamire-Brown [EMAIL PROTECTED] wrote: Hi, This is a question about a small home network set-up for printing. I can't tell if this is OT for this list, but that doesn't seem to be a firm restriction in this part of the world in any case! I have a locally attached printer on a Gentoo machine. I have a Windows XP laptop. I would like to print from my XP laptop over the network to the printer. I have followed the guide on gentoo.org. I've sort of got printing working via Samba, but haven't been able to configure it for XP users to print without having to login to Samba. So I'm looking back at using IPP on the XP laptop. Anyway, the main question is, is Samba a preferred option, or is it just more complicated than using IPP? There are a couple of brief lines about printing via IPP in the Gentoo Printing Guide, but a whole separate guide on using Samba. I can't find any information on use of IPP vs Samba via a brief Google, but maybe I'm just not searching very well. Regards, David -- gentoo-user@lists.gentoo.org mailing list It sounds like you need to enable guest and public access to the printer. Here is an older guide, but it seems to have the relevant stuff you need: http://forums.gentoo.org/viewtopic.php?t=110931 These lines: public = yes guest ok = yes Check out the guide for the appropriate places to put them. -- - Mark Shields
Re: [gentoo-user] Bizarre SSH connection reset
On Tue, Mar 11, 2008 at 10:30 AM, Mike Edenfield [EMAIL PROTECTED] wrote: Mick wrote: On Tuesday 11 March 2008, Dan Farrell wrote: On Mon, 10 Mar 2008 22:51:42 + Mick [EMAIL PROTECTED] wrote: On Monday 10 March 2008, Dan Farrell wrote: On Mon, 10 Mar 2008 15:43:55 -0400 Mike Edenfield [EMAIL PROTECTED] wrote: Comcast? I was on comcast for a long time (2.5 yrs) and never had a problem like this. They might have blocked port 25 and squelched my bittorrenting at times, but never anything like this. Of course, ymmv. IIRC they also block port 80 for sure on their retail accounts. They don't want the average punter to run a webserver at home. Even when they blocked port 25 for me bidirectionally (evidently sending 6 gigs through that port made me look like a spammer, even if it was all to the same address ;) ), and I called security assurance and they listed that among all the open ports I wasn't allowed on a residential account, even then, they still didn't block port 80 (or 26, 22, 21, 110, 993, or any other port!). Hmm, I don't know . . . The particular address I was trying to connect was definitely blocked. Other than not beeing able to connect with a browser, nc, httping and tcptraceroute confirmed it). Could it be an area/account specific block perhaps? When I questioned the owner he said that this was common practice and that his ISP does not allow webservers to run. When I was on Comcast, the only ports they blocked outright, that I found, were mail related. Presumably this was a spam prevention measure more than anything else. However, they did *monitor* other common ports for traffic. Occasionally I'd put some local service or another on my firewall during development, or for testing, or whatnot. If it happened to be on port 80, 443, or 21, I'd usually get a nasty-gram from then within a day reminding me of their AUP. --Mike -- gentoo-user@lists.gentoo.org mailing list Who knows their Sandvine equipment is horrendous. But let's not get off topic. Collin: it may not be a 5-second rule. It may just be cutting it off after a certain amount of traffic has passed based on the protocol/port used. But I'm just speculating. Let's hear what fire-eyes has to say. -- - Mark Shields
Re: [gentoo-user] Bizarre SSH connection reset
On Sun, Mar 9, 2008 at 12:03 PM, Andrey Falko [EMAIL PROTECTED] wrote: Are you using the same NIC on the laptop? If yes, then the issue could be related to your router configuration., but my money is on your keepalive settings. See if my suggestions above help. Thanks. I'll give it a shot. -Collin Something to try if the above does not worka long shot if it works, but you can try setting the server to listen on another port, like . -- gentoo-user@lists.gentoo.org mailing list Are you thinking his ISP is doing port-based connection filtering? -- - Mark Shields
Re: [gentoo-user] What's the position on Chrony?
On Jan 27, 2008 5:53 AM, Peter Humphrey [EMAIL PROTECTED] wrote: I want to run chrony on my servers for their smooth correction of system time. I have a few questions, however. 1. Is chrony accurate on P4 and AMD chips? Is it really a useful improvement on ntpd? I remember from a few years ago that its developer used to have to change his code every time a new CPU chip appeared. 2. Chrony doesn't like other programs interfering with its own control of the clock, so I want to remove both ntpd and clock from the startup process. This seems to cause a problem: 3. How do I substitute chrony for ntp in gentoo's startup scripts? I can remove ntpd easily enough, but if I rc-update del clock it gets put back into the boot run-level on shutting down. If I then move /etc/init.d/clock out of the way and just touch a blank file in its place, I get this: $ sudo /etc/init.d/chronyd restart * Caching service dependencies ... * Can't find service 'clock' needed by 'syslog-ng'; continuing... [ ok ] * Stopping chronyd ... [ ok ] * Starting chronyd ... [ ok ] It looks as though the baselayout team are assuming too much; or should I just give in and revert to clock and ntpd? Perhaps it just isn't suitable for Gentoo - it wouldn't be the first time that an ebuild had appeared for a new package before it was ready. -- Rgds Peter -- gentoo-user@lists.gentoo.org mailing list If you truly don't need clock, you can try modifying the syslog-ng init file to not require it. grep -i clock /etc/init.d/syslog-ng --context 2 -n 16- # kludge for baselayout-1 compatibility 17- [ -z ${svclib} ] config /etc/syslog-ng/syslog-ng.conf 18: need clock hostname localmount 19- provide logger 20-} Remove the 'clock' word and it should let syslog-ng start. -- - Mark Shields
Re: [gentoo-user] (no subject)
Read the website where you subscribed and read the header of all gentoo-user mailing list mails, and you will find this tidbit: List-Unsubscribe: mailto:[EMAIL PROTECTED] Send a mail to that to unsubscribe. On Jan 27, 2008 7:06 AM, Christel Dahlskjaer [EMAIL PROTECTED] wrote: unsubscribe -- gentoo-user@lists.gentoo.org mailing list -- - Mark Shields
Re: [gentoo-user] KDE4 overlay
On Jan 11, 2008 6:37 PM, Bo Ørsted Andresen [EMAIL PROTECTED] wrote: On Friday 11 January 2008 22:26:34 Alan McKinnon wrote: Anyone know where this overlay disappeared to? It moved to git. Assuming dev-util/git is installed: # layman -f layman -d kde layman -a kde Having said that KDE 4.0.0 should show up as package.mask'ed in gentoo-x86 within a few days. Eclasses for this has just been submitted to -dev@ ... -- Bo Andresen Awesome. Glad to hear it's been submitted. Thanks for the info. -- - Mark Shields
Re: [gentoo-user] Incredibly slow disk access
On Jan 8, 2008 12:53 AM, Renat Golubchyk [EMAIL PROTECTED] wrote: On Mon, 7 Jan 2008 20:51:02 -0500 Mark Shields [EMAIL PROTECTED] wrote: I'd also recommending after checking for the above, also check what level of UDMA is set. Try this: hdparm -I /dev/hda | grep -i dma Yours should say probably either udma3 or udma4. Why not udma5 ? All my PATA drives (desktop and notebook) run at udma5 for some years now without any problems. Cheers, Renat -- Probleme kann man niemals mit derselben Denkweise loesen, durch die sie entstanden sind. (Einstein) It was just a guess. Take it with a grain of salt. -- - Mark Shields
Re: [gentoo-user] Incredibly slow disk access
On Jan 7, 2008 8:37 PM, Dale [EMAIL PROTECTED] wrote: William Kenworthy wrote: Check the options for your chipset in the kernel - look at device drivers and ata/... devices. Looks like its just defaulted to the minimum as it hasnt seen what chipset you are using. Also consider moving to libata - seems better where I have tried it. BillK On Tue, 2008-01-08 at 02:26 +0200, Wayn0 wrote: Hi All, I have installed gentoo on my laptop recently and I am having a huge problem with speed. The problem is the insanely slow disk access that I am getting. here is some output: manticore ~ # hdparm -tT /dev/hda /dev/hda: Timing cached reads: 5702 MB in 2.00 seconds = 2857.11 MB/sec Timing buffered disk reads:6 MB in 3.37 seconds = 1.78 MB/sec manticore ~ # /etc/init.d/hdparm start * Running hdparm on /dev/hda ... HDIO_SET_DMA failed: Operation not permitted [ ok ] * Running hdparm on /dev/hdd ... HDIO_SET_DMA failed: Operation not permitted [ ok ] I read on a forum somewhere that this could be caused by the HAL daemon so I shut that down and no luck :-( Any ideas? Thanks Wayn0 Also check that DMA is enabled. If you have the wrong or no chipset selected in your kernel, it won't be there. lspci may be a good one to check as well. Dang, that is slow tho. Dale :-) :-) -- gentoo-user@lists.gentoo.org mailing list I'd also recommending after checking for the above, also check what level of UDMA is set. Try this: hdparm -I /dev/hda | grep -i dma Yours should say probably either udma3 or udma4. My SATA-I drive is set to udma5, for example: hdparm -I /dev/sda | grep -i dma DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 udma6 -- - Mark Shields
Re: [gentoo-user] I can't send attachments
: driver = pipe return_output address_file: driver = appendfile delivery_date_add envelope_to_add return_path_add address_reply: driver = autoreply begin retry * * F,2h,15m; G,16h,1h,1.5; F,4d,6h begin rewrite begin authenticators I have removed a lot of whitespace from this listing. Does anyone have any ideas? We just noticed it this morning, as we very rarely send attachments. We can still send attachment-less emails normally. -Michael Sullivan- -- gentoo-user@lists.gentoo.org mailing list The Mailbox Unavailable sounds like an error in the form of an e-mail bounceback from the e-mail address' server you were trying to send to. Sometimes I see this error working in tech support (cable modem). I doubt it's anything on your end. -- - Mark Shields
Re: [gentoo-user] Enabling mmx USE flag on a Pentium 4 HTT?
On Dec 21, 2007 7:10 PM, Renat Golubchyk [EMAIL PROTECTED] wrote: On Fri, 21 Dec 2007 12:25:40 -0700 Jonathan Haws [EMAIL PROTECTED] wrote: This is a really stupid question I know, but I want some second opinions: Should the mmx global USE flag be enabled on a Pentium 4 machine and why or why not? Yes, it should. (Multimedia) programs that support it, e.g. mplayer or gimp, will use it. Cheers, Renat -- Probleme kann man niemals mit derselben Denkweise loesen, durch die sie entstanden sind. (Einstein) If I remember correctly, flags like this are not recommended to enable. GCC can already pass the appropriate flags, such as MMX and SSE, to programs when compiling; the fact that this ebuild has optional use flags for this setting is a red flag, in my opinion. I would recommend researching possible problems you may have before building any programs with the MMX use flag. -- - Mark Shields
Re: [gentoo-user] Correct stripe size on nvraid
On Dec 19, 2007 10:33 AM, Yahya Mohammad [EMAIL PROTECTED] wrote: I have an nforce5 motherboard set up with two disks in a RAID0 configuration. The BIOS menu shows Striping block as 64K and Striping width as 2. What exactly does this mean? Is 64K the smallest possble chunk size written to a single disk? I want to know what's the optimum value for the stride parameter to pass to mke2fs -E when using ext3 with 4K blocks. I activated the array with dmraid and looked at some of its info output. But the various stride, stripeSize, and stripBlockSize values below don't make sense to me: # dmraid -s *** Active Set name : nvidia_abcbdgeb size : 1953546240 stride : 128 type : stripe status : ok subsets: 0 devs : 2 spares : 0 # dmraid -n /dev/sda (nvidia): 0x000 NVIDIA 0x008 size: 30 0x00c chksum: 4068594016 0x010 version: 100 0x012 unitNumber: 0 0x013 reserved: 0 0x014 capacity: 1953546240 0x018 sectorSize: 512 0x01c productID: STRIPE 931.52G 0x02c productRevision: 100 0x030 unitFlags: 0 0x034 array-version: 6553668 0x038 array-signature[0]: 658758547 0x03c array-signature[1]: 1476699144 0x040 array-signature[2]: 414004829 0x044 array-signature[3]: 332144723 0x048 array-raidJobCode: 0 0x049 array-stripeWidth: 2 0x04a array-totalVolumes: 2 0x04b array-originalWidth: 2 0x04c array-raidLevel: 128 0x050 array-stripeBlockSize: 128 0x054 array-stripeBlockByteSize: 65536 0x058 array-stripeBlockPower: 7 0x05c array-stripeMask: 127 0x060 array-stripeSize: 256 0x064 array-stripeByteSize: 131072 0x068 array-raidJobMark 0 0x06c array-originalLevel 128 0x070 array-originalCapacity 1953546240 0x074 array-flags 0x1 /dev/sdb (nvidia): 0x000 NVIDIA 0x008 size: 30 0x00c chksum: 4068528480 0x010 version: 100 0x012 unitNumber: 1 0x013 reserved: 0 0x014 capacity: 1953546240 0x018 sectorSize: 512 0x01c productID: STRIPE 931.52G 0x02c productRevision: 100 0x030 unitFlags: 0 0x034 array-version: 6553668 0x038 array-signature[0]: 658758547 0x03c array-signature[1]: 1476699144 0x040 array-signature[2]: 414004829 0x044 array-signature[3]: 332144723 0x048 array-raidJobCode: 0 0x049 array-stripeWidth: 2 0x04a array-totalVolumes: 2 0x04b array-originalWidth: 2 0x04c array-raidLevel: 128 0x050 array-stripeBlockSize: 128 0x054 array-stripeBlockByteSize: 65536 0x058 array-stripeBlockPower: 7 0x05c array-stripeMask: 127 0x060 array-stripeSize: 256 0x064 array-stripeByteSize: 131072 0x068 array-raidJobMark 0 0x06c array-originalLevel 128 0x070 array-originalCapacity 1953546240 0x074 array-flags 0x1 Thanks for any clarification. Any other tips for setting up the filesystem would be welcome. I'll be mostly using this box as a media server and some gaming. -- [EMAIL PROTECTED] mailing list I suggest reading this: http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Bios_(Onboard)_RAID -- - Mark Shields
Re: [gentoo-user] Excellent Paludis interview
On Dec 19, 2007 2:46 PM, Naga Toro [EMAIL PROTECTED] wrote: On Wednesday 19 December 2007 17.43.41 Grant wrote: Here is an excellent interview with Ciaran McCreesh about Paludis: http://lab.obsethryl.eu/content/paludis-gentoo-and-ciaran-mccreesh-uncensor ed excellent is a bit much... Seems like a propaganda pice to me. That said I did find paludis a bit hard to use but that might have been because it was quite some timeago I tried it. -- Naga -- [EMAIL PROTECTED] mailing list Portage has proved more than adequate for my needs. Paladis doesn't seem like anything I need or want. -- - Mark Shields
Re: [gentoo-user] {OT} Safe to post my MAC address?
On Dec 18, 2007 10:38 AM, Grant [EMAIL PROTECTED] wrote: A guy in an online forum where I'm trying to get help with my Cox internet service wants me to PM him my modem's MAC address so he can check my connection in some way. He appears to be a Cox representative, but what ill could he do with this info? Just target me, right? - Grant -- [EMAIL PROTECTED] mailing list Damn if this isn't one of the most off-topic posts ever... Anyways, I work in cable modem tech support. He can't access your modem directly since it has a private IP address (10.x.x.x), even if he does have the MAC address; he'd have to have access to your PC behind the modem (if he had your public IP and proper access) or some server that sits on that private network -- and have access to the encryption, since cable modems encrypt from end-to-end (modem to CTMS, which is basically the cable modem system router). So yes, I'd say it's safe to give him the MAC. If he truly is a Cox rep, he can pull up your internet account by the MAC address and check modem power levels, signals, possible area issues (depends on how advanced the software he uses to check this information is). -- - Mark Shields
Re: [gentoo-user] Silicon Image 3112 Raid Controller on Kernel 2.6.22 and 2.6.23 not working.
On Dec 8, 2007 8:32 AM, David Relson [EMAIL PROTECTED] wrote: On Sat, 08 Dec 2007 13:57:06 +0100 Norman Rieß wrote: Hi, i am using a Silicon Image, Inc. SiI 3112 [SATALink/SATARaid] Serial ATA Controller (rev 02) in a non-RAID configuration. Simply an an SATA-Controller so to speak. This worked fine ever since. But with the release of kernel 2.6.22 the controller stopped working. Here is a picture of the errormessage when the kernel loads. http://www.smash-net.org/kernel2.6.23/kernel_sil_err.jpg I googled around and found, that quite a few people had problems with SIL-Controllers. But none but one had this particular problem. This guy apparently told a kernel developer about this, who said he would take a look at it. So i waited till 3.6.23, but the problem still persists. Here is my kernel-config for 2.6.23: http://www.smash-net.org/kernel2.6.23/config-kernel-2.6.23 Maybe someone on this list has a fresh idea. Regards Norman Hello Norman, I, too, have one of their controllers (identified by lspci as RAID bus controller: Silicon Image, Inc. PCI0680 Ultra ATA-133 Host Controller (rev 02). It works ... kind of ... I bought it because my new AMD64 mobo has 1 ATA connector and I have 2 ATA hard drives and a SONY DVD RW DRU-510A, ATAPI CD/DVD-ROM drive. When I tried to boot a LiveCD from the SONY, the kernel was read then reported can't find cdrom device. Not good! To upgrade to 64-bit gentoo, I had to recable my box so that my primary HD and the SONY were attached to the mobo. My rating of the SII card? OK -- sort of. Regards, David -- [EMAIL PROTECTED] mailing list Did you try changing the boot device? I know some motherboards give an option for PCI boot, or something to that effect. -- - Mark Shields
Re: [gentoo-user] Silicon Image 3112 Raid Controller on Kernel 2.6.22 and 2.6.23 not working.
On Dec 8, 2007 7:57 AM, Norman Rieß [EMAIL PROTECTED] wrote: Hi, i am using a Silicon Image, Inc. SiI 3112 [SATALink/SATARaid] Serial ATA Controller (rev 02) in a non-RAID configuration. Simply an an SATA-Controller so to speak. This worked fine ever since. But with the release of kernel 2.6.22 the controller stopped working. Here is a picture of the errormessage when the kernel loads. http://www.smash-net.org/kernel2.6.23/kernel_sil_err.jpg I googled around and found, that quite a few people had problems with SIL-Controllers. But none but one had this particular problem. This guy apparently told a kernel developer about this, who said he would take a look at it. So i waited till 3.6.23, but the problem still persists. Here is my kernel-config for 2.6.23: http://www.smash-net.org/kernel2.6.23/config-kernel-2.6.23 Maybe someone on this list has a fresh idea. Regards Norman -- [EMAIL PROTECTED] mailing list I have this same chipset and run two SATA drives in a RAID 1 (mirrored) config, but I'm running hardened-2.6.20-r6. I will note I have had no problems using the kernel drivers and have been using the hardened kernel since 2.6.14; before that this was just a system using the gentoo-sources, not sure how far that dates ('05-ish). I'll emerge the latest stable hardened (2.6.22-r8) and test it, and check back with you guys. I was thinking about upgrading anyways. I looked at your config and noticed: CONFIG_SATA_SIL24=y You don't need this. It probably isn't causing the problem, but I would disable it anyways. Also disable CONFIG_SATA_VIA=y too. -- - Mark Shields
Re: [gentoo-user] How to tell portage about manual builds
man portage snip package.provided A list of packages (one per line) that portage should assume have been provided. Useful for porting to non- Linux systems. Portage will not attempt to update a package that is listed here unless another package explicitly requires a version that is newer than what has been listed. Basically, it's a list that replaces the emerge --inject syntax. For example, if you manage your own copy of a 2.6kernel, then you can tell portage that 'sys-kernel/development- sources-2.6.7' is already taken care of and it should get off your back about it. Virtual packages (virtual/*) should not be specified in package.provided. Depending on the type of virtual, it may be necessary to add an entry to the virtuals file and/or add a package that satisfies a virtual to pack- age.provided. /snip Also, if you've already emerged it (maybe even manually how you make/make install), you might try emerge --noreplace package, which should add the ebuild to the world file (but not re-emerge the package itself). If the package is already in the world file, then this option will do nothing. On Dec 7, 2007 9:50 PM, Michael Sullivan [EMAIL PROTECTED] wrote: A lot of the bigger packages (qt, mythtv, etc. etc) tend to lock up my PCs' hard drives while they're emerging. I use FEATURES=keepwork on all my boxes, and I can usually go into /var/tmp/portage/whatever-class/whatever-package/work/whatever-package and issue a make and then make install after I reboot the machines. How can I tell portage that the package is installed in this manner? That the package is indeed installed? -- [EMAIL PROTECTED] mailing list -- - Mark Shields
Re: [gentoo-user] radeonfb and fglrx don't mix - why?
On Dec 3, 2007 9:59 PM, Hemmann, Volker Armin [EMAIL PROTECTED] wrote: On Dienstag, 4. Dezember 2007, Andrey Vul wrote: I finally got X to work with fglrx and RTFMing said that radeonfb was crashing my X. My question is why did radeonfb mess up X and fglrx? If this is strictly kernel-related, I'll send this email to lkml. because two different drivers driving the same hardware never mixes. Is that hard to understand? radeonfb f*s around with the hardware behind the X drivers back and the X driver f*s around behind radeonfb's back. Both don't know what the other one does. Result: crash. That is not a kernel problem. This is a 'two drivers access the same hardware' problem. -- [EMAIL PROTECTED] mailing list And the solution is to use some generic framebuffer driver, like vesafb-tng or vga. -- - Mark Shields
Re: [gentoo-user] Gentoo on the server side
I run Gentoo on a server, but it's just a hobby, low-end one. Athlon XP processor, 1.5 gigs of ram, raid 1 (hardware-controlled). I have a few daemons/servers on it, such as Apache, snmp, and an MTA. Runs fine. You might try talking to some of the web hosts who run dedicated Gentoo servers. Links are on the main Gentoo website to some of these hosts. On Nov 28, 2007 1:01 PM, Rafael Barrera Oro [EMAIL PROTECTED] wrote: The issue is, as you should already must have guessed, if its a good idea to deploy Gentoo in a server. For the first time, i have the opportunity to install Gentoo on a properly set (almost pimped out) server and i wanted to be sure i know what i am doing before getting on with it. Where i work at, the tradition is to go with FreeBSD (which is, without a doubt, very stable) but since our FreeBSD guru parted i've been juggling the idea of starting to use Gentoo on servers instead of using it only on desktops. I have always found very useful stuff in www.gentoo.org, however, i have not found a specific server side faq. Does anyone know where i could get such documentation? Any pointers, opinions, faqs, insights, etc will be greatly appreciated best wishes Rafael -- - Mark Shields
Re: [gentoo-user] ssh connections time out
On Nov 27, 2007 4:19 PM, Dale [EMAIL PROTECTED] wrote: Dan Farrell wrote: On Tue, 27 Nov 2007 13:26:18 -0600 Dale [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Just to add to this, I was using the IP address too and it was very slow. This was also on a local network. After adding the lines to my host files, it was fast no matter whether I used the name or the IP address. I still don't understand why this matters tho. Just a thought. Dale I am guessing your /etc/nsswitch.conf says: hosts:files dns in this case, the /etc/hosts file will be consulted before the dns. If you provide an IP address, it will probably want to do a reverse lookup to the name (for .ssh/known-hosts for one); if provided a domain name, it will have to look it up. You are correct. It has that exact line in the nsswitch.conf file. Someone tried to explain the lookup thing but it just went over my head. I know when I go to google for example that it goes to a DNS server to get the IP to know where to go to. I just never could figure why it did that when it has the number already. I just know that adding that to the host file worked like a charm. I'm still curious as to why the OP is having this problem. I suspect, like me all the time, it will be something pretty simple. We always find the complicated stuff. LOL Dale :-) :-) :-) The lookup thing is very similar to the same kind of DNS query used when visiting a website. -- - Mark Shields
Re: [gentoo-user] Issues pinging localhost and starting apache.
On Nov 22, 2007 7:45 PM, Jordan Woehr [EMAIL PROTECTED] wrote: *I first encounter this problem while trying to setup Apache for my machine. I only want it to run locally on my network. First issue, I try to start Apache and have it listen to port 80 but it won't start with the error:* apache2ctl start * Caching service dependencies ... [ ok ] * Starting apache2 ... (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs *The only lines I have added to httpd.conf are as follows: * ServerName localhost Listen 80 *Having Apache listen on port 8080 instead results in it starting fine. Thing is, I'm pretty sure nothing is listening on port 80.* netstat -an | grep :80 tcp0 0 192.168.0.104:56125 66.150.96.119:80 ESTABLISHED tcp0 0 192.168.0.104:56123 66.150.96.119:80 TIME_WAIT tcp0 0 192.168.0.104:36115 208.65.201.178:80 TIME_WAIT tcp0 0 192.168.0.104:45155 205.150.218.4:80 ESTABLISHED *I was not happy with Apache not starting listening to port 80 but I started it on 8080 instead. Tried going to localhost:8080 in firefox but received an unable to establish connection error. From there I went to my hosts file which is as follows *127.0.0.1 localhost *Tried scanning 127.0.0.1 with nmap: *nmap -sT -PT 127.0.0.1 Starting Nmap 4.20 ( http://insecure.org ) at 2007-11-22 17:11 MST Note: Host seems down. If it is really up, but blocking our ping probes, try -P0 Nmap finished: 1 IP address (0 hosts up) scanned in 3.342 seconds *And now a ping * ping -c 5 localhost PING localhost (127.0.0.1) 56(84) bytes of data. From 10.132.0.1 icmp_seq=1 Destination Net Unreachable From 10.132.0.1 icmp_seq=3 Destination Net Unreachable From 10.132.0.1 icmp_seq=4 Destination Net Unreachable From 10.132.0.1 icmp_seq=5 Destination Net Unreachable --- localhost ping statistics --- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4000ms *localhost seems to be resolved properly to 127.0.0.1 but what I don't understand is where the 10.132.0.1 comes from. This computer's ip on the network is 192.168.0.104 (static) and my ip on the internet is 77.something.something.something (was when I did the ping at least). I hope the above is enough information. Suggestions on why Apache won't start listening on port 80 and why I can't connect to localhost:8080 from firefox when Apache is running are welcome. Thanks Jordan * -- [EMAIL PROTECTED] mailing list This may sound like a silly question, but is loopback running (/etc/init.d/lo)? -- - Mark Shields
Re: [gentoo-user] memtest86+ taking too long
On Nov 19, 2007 12:03 PM, de Almeida, Valmor F. [EMAIL PROTECTED] wrote: Hello, After looking at the /var/log/messages file, I saw an entry which seemed to indicate a memory address problem. I decided to run memtest86+. However it is taking too long. So far 17 hours and still going. The Pass field reads 25%; I hope this is an indication of how much of the total has been done. The Test field is frequently updated so it seems memtest is running. The total memory is 10GB, the chipset: Intel E7505 ECC. Is this execution time expected? Thanks for any comments, -- Valmor de Almeida -- [EMAIL PROTECTED] mailing list For 10 gigs? probably. -- - Mark Shields
Re: [gentoo-user] Gentoo dedicated servers
On Nov 16, 2007 12:20 PM, pepone.onrez [EMAIL PROTECTED] wrote: Hello all I need to rent 3 dedicated servers that mus be run gentoo. Currently i working with ran.es and i have serious problems with is maintance stuf, They format the mbr of one of the servers when i say it that bot my server with a gentoo live cd to correct a error in grub.conf. Like i don't want this happen again i decided moved my servers to other datacenter , can you sayme any recomendations of datacenters to move my servers. I only need they put the gentoo live cd and start the ssh from time to time. and god harware suport Thanks to all There a few dedicated hosts listed on the Gentoo website on the right column. -- - Mark Shields
Re: [gentoo-user] gentoo as a baseline to build a secure server OS ...
On Nov 16, 2007 9:18 PM, Albretch Mueller [EMAIL PROTECTED] wrote: Hi, ~ I wonder if this is more of a gentoo-security, gentoo-catalyst or gentoo-hardened question, but I am trying to use gentoo as a baseline to build a secure server OS (including SELinux, ...) and burn it as a CD. ~ Could you give me some directions about how to achieve this? ~ Thank you lbrtchx -- [EMAIL PROTECTED] mailing list I've never built a cd with gentoo-catalyst, but I have setup Gentoo with the hardened kernel, in addition to pax/gresecurity. Judging by the gentoo-wiki guide on catalyst [1], first setup the system the way you want the catalyst-made cd to be like (try the SELinux guide [2]), then use catalyst to make it. By the way, at the bottom of the SELinux guide [2] are other links of interest. [1] http://gentoo-wiki.com/HOWTO_build_a_LiveCD [2] http://gentoo-wiki.com/HOWTO_SELinux -- - Mark Shields
Re: [gentoo-user] how to detect the throughput in the lan?
On Nov 14, 2007 9:52 AM, Chuanwen Wu [EMAIL PROTECTED] wrote: Hi, guys! I need to know the total throughput of the LAN in real-time, for example, the total input and output of each node in the LAN. I have used tcpdump. But as I know, it cannot be use to get the statistics of the LAN. Can't you recommend some tools? Thanks in advanced! -- wcw -- [EMAIL PROTECTED] mailing list eix iftop [I] net-analyzer/iftop Available versions: 0.17 Installed versions: 0.17(02:01:38 03/16/07) Homepage:http://www.ex-parrot.com/~pdw/iftop/ Description: display bandwidth usage on an interface -- - Mark Shields
Re: [gentoo-user] glibc unmerged by accident
On Nov 13, 2007 10:49 AM, de Almeida, Valmor F. [EMAIL PROTECTED] wrote: From: Neil Bothwick [mailto:[EMAIL PROTECTED] Incidentally, how did you miss the big red warning that emerge gives when you try to unmerge a system package? I was unlucky and stupid for using cut and paste commands while distracted looking at another screen. I didn't look back until the unmerge countdown period was over. Thanks for all the comments and ideas. -- Valmor -- [EMAIL PROTECTED] mailing list Always good to use the -a flag when unmerging. -- - Mark Shields
Re: [gentoo-user] {OT} Cable latency Skype
On Nov 12, 2007 6:59 PM, Grant [EMAIL PROTECTED] wrote: I just switched from DSL to cable and I'm noticing a significant delay when using Skype, even when nothing else is happening on my network. Has anyone else noticed this and had success fixing it? I'm using a Gentoo router so I can try just about anything. - Grant -- [EMAIL PROTECTED] mailing list I work for as a cable modem technician. The first thing to check for when you're having cable internet problems is the modem. Call up tech support and ask them to check the signals on the modem (upstream power, downstream rcv, downstream SNR, upstream SNR, headend receive) and make sure they're in range. Also ask them to ping and (if available) rf ping to check for latency/packet loss. Also ask them to check the circuits/backbone. Also, can you reproduce this latency in the form of a ping/traceroute? This will go a long way with ISPs in determining where the problem is (although Comcast just blows off high latency on pings as the result of dropping them due to lower priority). -- - Mark Shields
Re: [gentoo-user] {OT} Cable latency Skype
On Nov 13, 2007 9:15 AM, Mick [EMAIL PROTECTED] wrote: On Tuesday 13 November 2007, Mark Shields wrote: On Nov 12, 2007 6:59 PM, Grant [EMAIL PROTECTED] wrote: I just switched from DSL to cable and I'm noticing a significant delay when using Skype, even when nothing else is happening on my network. Has anyone else noticed this and had success fixing it? I'm using a Gentoo router so I can try just about anything. - Grant -- [EMAIL PROTECTED] mailing list I work for as a cable modem technician. The first thing to check for when you're having cable internet problems is the modem. Call up tech support and ask them to check the signals on the modem (upstream power, downstream rcv, downstream SNR, upstream SNR, headend receive) and make sure they're in range. Also ask them to ping and (if available) rf ping to check for latency/packet loss. Also ask them to check the circuits/backbone. Also, can you reproduce this latency in the form of a ping/traceroute? This will go a long way with ISPs in determining where the problem is (although Comcast just blows off high latency on pings as the result of dropping them due to lower priority). Interesting to hear this. The OP will no doubt have a different traceroute to show the ISP, but does the comment on dropping pings explain the % loss shown below in certain hops, or is it just a matter of overloaded switches? == HOST: lappy Loss% Snt Last Avg Best Wrst StDev 5. 217.41.177.66 0.0%15 17.9 18.0 15.7 22.8 1.7 6. 217.41.177.1346.7%15 21.0 17.5 15.7 21.0 1.5 7. 217.41.177.54 0.0%15 17.0 16.6 15.1 20.7 1.4 8. 217.47.166.1060.0%15 16.0 16.9 15.3 18.9 1.1 9. core1-pos5-2.faraday.ukcore. 0.0%15 17.0 45.3 15.2 192.3 52.7 10. core1-pos0-15-0-10.ilford.uk 0.0%15 18.9 18.3 17.1 19.5 0.7 11. 194.74.77.222 0.0%15 18.1 17.1 15.5 19.1 1.0 12. t2c1-ge14-0-0.uk-ilf.eu.bt.n 6.7%15 17.9 17.3 15.7 19.1 0.9 13. t2c1-p4-0-0.us-nyc.eu.bt.net 0.0%15 107.3 108.1 106.1 109.7 1.1 14. 12.116.102.17 0.0%15 108.3 107.9 105.5 110.0 1.3 15. tbr1.n54ny.ip.att.net 0.0%15 133.2 133.8 131.2 135.4 1.4 16. cr2.n54ny.ip.att.net 0.0%15 135.2 133.5 131.6 135.7 1.3 17. cr2.wswdc.ip.att.net 0.0%15 132.2 132.9 131.3 134.7 1.1 18. cr1.attga.ip.att.net 0.0%15 134.2 133.6 132.1 135.7 1.2 19. tbr2.attga.ip.att.net 0.0%15 135.2 134.0 132.0 136.2 1.3 20. gar4.attga.ip.att.net 0.0%15 132.2 134.1 130.0 159.4 7.1 21. 12.124.64.62 20.0%15 140.2 138.6 137.0 140.4 1.1 22. te-9-1-ur01.south.tn.knox.co 6.7%15 141.2 140.4 138.1 141.5 1.0 23. te-8-3-ur02.west.tn.knox.com 0.0%15 141.2 140.3 139.1 141.2 0.6 24. ge-1-46-ur01.west.tn.knox.co 0.0%15 138.2 138.6 137.8 140.6 0.9 == Note some of these are being dropped in the UK, rather than by Comcast. -- Regards, Mick I would like to mention that while I am not a cable modem field tech, I do work in an escalated dept (Tier II). That said, most of the time when you see packet loss/high latency at one hop, you'll see it at the sequential hops after that if it's a true packet loss/latency issue and not just the ICMP packets being given lower priority/dropped. The packet loss could also be that hop/ISP dropping the packet because it detected what it might consider too many pings (flood protection, I assume). I've seen Comcast drop on a 3rd hop before.In the case of ICMP packets having lower priority, it's best to just ping the host you're trying to get to then go from there - like an average of 100 sequential pings, for example. Generally speaking, if a basic ping such as this returns latency/packet loss, there's a problem somewhere along the line, and you can continue with further testing such as traceroutes, speed tests, and individually pinging possible problematic hops. Concerning Comcast, I called them once and complained about latency; they rebutted with the fact ICMP packets have a lower priority on their network. That doesn't make any sense to me, though. If they're having to drop ICMP packets, what does that say about the capacity of the network? Regardless, the best way to test for packet loss is to run a speed test. If your speeds are decently consistent and what you pay for (or close to it), then packet loss isn't an issue (I recommend speedtest.net). One last thing: this thread is way off-topic. I suggest we take this to another forum or just e-mail off this mailing list if we wish to continue. -- - Mark Shields
Re: [gentoo-user] eth0 fallback configuration is ignored
On 10/29/07, Mick [EMAIL PROTECTED] wrote: On Sunday 28 October 2007, Dan Farrell wrote: On Sun, 28 Oct 2007 12:19:13 + Mick [EMAIL PROTECTED] wrote: On Saturday 27 October 2007, Dan Farrell wrote: On Sat, 27 Oct 2007 21:58:11 +0930 Iain Buchanan [EMAIL PROTECTED] wrote: This behaviour is called APIPA (Automatic PRivate IP Addressing) (from /etc/conf.d/net.example): # APIPA is a module that tries to find a free address in the range # Automatic Private IP Addressing (APIPA) # use APIPA to find a free address in the range # 169.254.0.0-169.254.255.255 It provides DHCP-like functionality without a DHCP server. Pretty useless, unless you use it to configure all your IPs or a route for that subnet. Even worse, if your DHCP server comes up later, your PC will still hold on to APIPA - not sure how this feature can be of any use to be honest, but most devices these days from MS Windows to PDAs tend to behave like this. Let me correct myself here: my Gentoo boxen behave like this. A WinXP that I tested for this purpose does not. It comes up with the APIPA address and when a router becomes available in the network later on, it readily obtains a dhcp address and drops the APIPA. Any idea how to configure Gentoo to do the same? I think ifplugd does this. eix ifplugd * sys-apps/ifplugd Available versions: 0.28-r7 ~0.28-r8 {doc} Homepage:http://0pointer.de/lennart/projects/ifplugd/ Description: Brings up/down ethernet ports automatically with cable detection -- - Mark Shields
Re: [gentoo-user] about to increase kernel
On 10/23/07, 525225097 [EMAIL PROTECTED] wrote: My video drive is not support(the default kernel in 2007.0livecd). My computer is new.In other operating system such as ubuntu,opensuse(to release soon)it support well. if I should increase the kernel.It sure I couldn't find the driver in linux,the company mean to just support windows. A if I should do it.How can I do in a nonetwork. Thinks -- [image: LOGO] 把爱心注入牛奶,共同凝聚这份力量http://popme.163.com/link/003515_0929_938.html 快来参加蒙牛免费赠奶爱心行动 http://popme.163.com/link/003515_0929_938.html What video card is it? The drivers may be on Gentoo, just they may be keyword or hard masked. -- - Mark Shields
Re: [gentoo-user] [OT] Pinging two devices on the same IP address
On 10/23/07, Dan Farrell [EMAIL PROTECTED] wrote: On Tue, 23 Oct 2007 18:27:10 -0300 Daniel da Veiga [EMAIL PROTECTED] wrote: I really don't get how you forward something to an Access Point, isn't this device like a dumb hub on your wireless network? Mine doesn't have an IP, nor MAC or anything that could identify it on the network. Now I am confused. How are you forwarding these pings as you say, Mick? -- [EMAIL PROTECTED] mailing list Forwarding echo request/response packets (ICMP), maybe? -- - Mark Shields
Re: [gentoo-user] speakers have no sound but headphones have
On 10/18/07, Chuanwen Wu [EMAIL PROTECTED] wrote: A message body would help ;) -- - Mark Shields
Re: [gentoo-user] Re: Break In attempts
On 10/13/07, Mick [EMAIL PROTECTED] wrote: On Sunday 07 October 2007, Remy Blank wrote: Mick wrote: I have already disabled PAM authentication on sshd so that only users with a public key in their ~/.ssh can login. This is the first and most important step. This means that the only real problem is that your logs fill with failed log in attempts. The easiest way I have found to avoid that is to change the port number of the SSH daemon to something else than 22. I am trying out fail2ban, but I am not sure I have configured it correctly. Shouldn't most of these repeated attempts have been stopped? Oct 12 21:01:01 support sshd[30347]: Did not receive identification string from 203.128.89.99 Oct 13 01:01:38 support sshd[26419]: Did not receive identification string from 85.8.136.219 Oct 13 01:01:38 support sshd[26422]: Did not receive identification string from 85.8.136.219 Oct 13 01:11:14 support sshd[31765]: Invalid user admin from 85.8.136.219 Oct 13 01:11:15 support sshd[31792]: Invalid user test from 85.8.136.219 Oct 13 01:11:15 support sshd[31814]: Invalid user guest from 85.8.136.219 Oct 13 01:11:16 support sshd[31833]: Invalid user webmaster from 85.8.136.219 Oct 13 01:11:17 support sshd[31852]: User mysql not allowed because account is locked Oct 13 01:11:18 support sshd[31902]: Invalid user oracle from 85.8.136.219 Oct 13 01:11:19 support sshd[31929]: Invalid user library from 85.8.136.219 Oct 13 01:11:19 support sshd[31945]: Invalid user admin from 85.8.136.219 Oct 13 01:11:20 support sshd[31952]: Invalid user info from 85.8.136.219 Oct 13 01:11:20 support sshd[31965]: Invalid user test from 85.8.136.219 Oct 13 01:11:20 support sshd[31974]: Invalid user shell from 85.8.136.219 Oct 13 01:11:21 support sshd[31999]: Invalid user guest from 85.8.136.219 Oct 13 01:11:21 support sshd[32015]: Invalid user linux from 85.8.136.219 Oct 13 01:11:22 support sshd[32026]: Invalid user webmaster from 85.8.136.219 Oct 13 01:11:22 support sshd[32036]: Invalid user unix from 85.8.136.219 Oct 13 01:11:22 support sshd[32058]: User mysql not allowed because account is locked Oct 13 01:11:23 support sshd[32080]: Invalid user oracle from 85.8.136.219 Oct 13 01:11:24 support sshd[32109]: Invalid user library from 85.8.136.219 Oct 13 01:11:24 support sshd[32123]: Invalid user test from 85.8.136.219 Oct 13 01:11:25 support sshd[32134]: Invalid user info from 85.8.136.219 Oct 13 01:11:25 support sshd[32164]: Invalid user shell from 85.8.136.219 Oct 13 01:11:26 support sshd[32175]: Invalid user admin from 85.8.136.219 Oct 13 01:11:26 support sshd[32192]: Invalid user linux from 85.8.136.219 Oct 13 01:11:27 support sshd[32200]: Invalid user guest from 85.8.136.219 Oct 13 01:11:27 support sshd[32224]: Invalid user unix from 85.8.136.219 I have just kept the default fail2ban config file and have not created any new log files in /var/log/. Any ideas? -- Regards, Mick Do you have anything in your default log file, /var/log/fail2ban.log ? -- - Mark Shields
Re: [gentoo-user] massive segmentation faults since 2 days with layman and portage
=adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol ELIBC=glibc INPUT_DEVICES=mouse keyboard joystick evdev KERNEL=linux LCD_DEVICES=bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text LINGUAS=de LIRC_DEVICES=inputlirc devinput hauppauge USERLAND=GNU VIDEO_CARDS=radeon ati vga fbdev vesa v4l fglrx Unset: CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Your CPU might be overheating. I saw a similar behavior with an older box, where it would crash at seemingly random times. It just so happened I had adjusted the thermostat for the house the night before, and that extra few degrees ambient temperature caused it to get hotter than it could handle without errors. -- - Mark Shields
Re: [gentoo-user] update-grub? I have no such thing.
On 10/14/07, Volker Armin Hemmann [EMAIL PROTECTED] wrote: On Sonntag, 14. Oktober 2007, Mark Shields wrote: And no, you don't need it. Writing and maintaining your own menu.lst ( grub.conf) works just fine. well, I have a 'vmlinuz' entry and a 'vmlinuz.old' entry. Since make install creates the proper symlinks there is no grub.conf/menu.lst editing needed. -- [EMAIL PROTECTED] mailing list Of course, those are symlinks. Specifying the actual kernel rather than a symlink ensures you're always booting from the correct kernel. I have one entry in grub.conf pointing to /vmlinuz , the others point to specific kernels. -- - Mark Shields
Re: [gentoo-user] update-grub? I have no such thing.
On 10/13/07, Volker Armin Hemmann [EMAIL PROTECTED] wrote: On Sonntag, 14. Oktober 2007, Kevin O'Gorman wrote: I see that building a kernel ends with checking for update-grub, which I don't have. Should I? Where does it come from? I don't know. I see that message too. Every single time. And so far I have had no problems caused by the lack of it. -- [EMAIL PROTECTED] mailing list From: http://www.fifi.org/cgi-bin/man2html/usr/share/man/man8/update-grub.8.gz NAME update-grub - program to generate GRUB's menu.lst file SYNOPSIS * update-grub* DESCRIPTION *update-grub* is a program used to generate the * menu.lst* file used by the grub bootloader. It works by looking in */boot*for all files which start with *vmlinuz-*. They will be treated as kernels, and grub menu entries will be created for each. It will also create the initial *menu.lst* if none exists, after prompting the user. It will also add initrd lines for ramdisk images found with the same version as kernels found. e.g. /boot/vmlinuz-2.4.5 and /boot/initrd-2.4.5 will cause a line of initrd=/boot/initrd-2.4.5 or simliar to be added for the kernel entry in the menu.lst. - And no, you don't need it. Writing and maintaining your own menu.lst ( grub.conf) works just fine. -- - Mark Shields
Re: [gentoo-user] whoa, this new(ish) portage is nice
On 10/9/07, William Kenworthy [EMAIL PROTECTED] wrote: Yes, I agree. Especially the messages at the end - it is really appreciated now its finally here. Ahh, progress ... BillK On Tue, 2007-10-09 at 15:52 -0700, kashani wrote: I've been buried in work again and hadn't had time to get to admin tasks on my hosting machine. Today I started some updates and was pleasantly surprised to see some nice updates to portage. 1. Dependencies are a shade darker than things in the world file when doing an emerge -pv world 2. elog/einfo stuff is now printed at the end of an emerge. Probably old news, but damn useful tweaks. kashani -- William Kenworthy [EMAIL PROTECTED] Home in Perth! -- [EMAIL PROTECTED] mailing list I was thinking the same. I remember when I first started using Gentoo (2004?) when doing updates, I always wished it would spit out the notices at the end instead of every emerge. Imagine my surprise when I saw they had implemented that. Good show, Gentoo devs! -- - Mark Shields
Re: [gentoo-user] Backups
On 9/29/07, Grant [EMAIL PROTECTED] wrote: Do you back up anything other than /etc and /home on a standard system? - Grant /var because with /var gone its complete-reinstall time. What about splitting tar.gz files across multiple CDs? Can that be done? - Grant -- [EMAIL PROTECTED] mailing list A lot of things you're asking for can be accomplished with a script I've used (and successfully recovered with) called a stage 4 backup [1]. It's just your standard bash script that uses tar, gzip, bzip2, etc. to create manageable backups. I have my server set to backup once a month (I don't make significant changes to it very often). [1] http://gentoo-wiki.com/HOWTO_Custom_Stage4 -- - Mark Shields
Re: [gentoo-user] ext3 with errors
On 9/29/07, Arnau Bria [EMAIL PROTECTED] wrote: Hi, My system runs on several ext3 partitions. Last times I restart it, it has fs errors, so I have to fsck it. Now, I have a new disk and I want to set a RAID1, but first, I'm wondering what to do to save my fs consistency. So, I want to copy data from old disk to new disk, but I'm not sure if I must do a cp -a or a dd. I mean, if I do a cp -a my new disk will have a new journaling, and if I do a dd, new disk will have same. Am I right? What do you recommend? And, following with this, any guide to configure a RAID1 with a system already installed? TIA, Arnau -- [EMAIL PROTECTED] mailing list Is it software or hardware RAID 1? Hardware RAID 1 is easy, at least for a motherboard I used that had a Silicon Image chipset. I just told it to build a RAID 1 mirror with the two disks, it created an exact copy then and there of the original. From then on in wrote to the 2nd drive whenever it wrote to the 1st one. -- - Mark Shields
Re: [gentoo-user] Help finding a tv tuner card's chipset
On 9/27/07, Hans-Werner Hilse [EMAIL PROTECTED] wrote: Hi, On Thu, 27 Sep 2007 08:59:18 +0100 Neil Bothwick [EMAIL PROTECTED] wrote: On Thu, 27 Sep 2007 01:00:33 -0500, forgottenwizard wrote: BTW, if anyone knows of a cheap tuner card (50US preferably) that is decent and works with either PCI/USB/AGP, I would love to know. Analogue or DVB? I've used a Freecom DVB dongle with Gentoo (amd64 and ppc) and it worked well. For a cheap PCI card, the KWorld cards are decent. Just a short warning: The US standards are a bit different... (but KWorld has ATSC equipment, too, not just DVB). And if commercial HDTV is to be received, special care has to be taken that everything is HDMI compliant -- I think there are only hardware based solutions to this problem, and it certainly won't be cheap -- at least not 50USD, I think... -hwh -- [EMAIL PROTECTED] mailing list You say HDMI compliant - do you mean HDCP compliant? That certainly makes more sense in the context. -- - Mark Shields
Re: [gentoo-user] Changing CHOST
On 9/22/07, David Relson [EMAIL PROTECTED] wrote: Now that my old AthlonXP mobo has been replaced by an AMD 64 X2 mobo, it's time for upgrading CHOST :- According to http://www.gentoo.org/doc/en/change-chost.xml after a couple of changes to /etc/make.conf, i.e. from: USE=x86 ... CHOST=i686-pc-linux-gnu CFLAGS=-O2 -march=athlon-xp -pipe to: USE=amd64 ... CHOST=amd64-pc-linux-gnu CFLAGS=-O2 -march=x86-64 -pipe The next step is: emerge -av1 binutils gcc glibc The emerge of binutils works fine. However the emerge of gcc fails with: In file included from .../gcc/unwind-dw2.c:257: gcc/config/i386/linux-unwind.h: In function 'x86_64_fallback_frame_state': gcc/config/i386/linux-unwind.h:63: error: 'struct sigcontext' has no member named 'rsp' A quick search of BGO didn't show anything relevant. Any suggestions??? Thanks. David -- [EMAIL PROTECTED] mailing list Besides what everyone else has already suggested, I would suggest backing up everything beforehand, or you can continue using your 32-bit environment with your shiny new 64-bit processor, but you will not be able to use any 64-bit binaries. -- - Mark Shields
Re: [gentoo-user] shared portage tree
On 9/23/07, Daniel Iliev [EMAIL PROTECTED] wrote: Hi, folks Is there any problem to share portage tree over nfs between different archs? In this particular case I want to use a machine with arc=amd64 as a nfs server and share its tree with several x86 machines. -- Best regards, Daniel -- [EMAIL PROTECTED] mailing list I made the mistake once of assuming that different archs use different sources. Someone on this mailing list was kind enough to correct me. So no, there should be no problem sharing a portage tree over nfs. -- - Mark Shields
Re: [gentoo-user] Re: tools to detect hardware
On 9/17/07, Gaurish Sharma [EMAIL PROTECTED] wrote: how to check Hdd for bad sectors? badblocks, which is part of e2fsprogs. e2fsprogs supports NTFS also?? -- Regards, Gaurish Sharma This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/ e2fsprogs is only for ext2/ext3. What you want is probably sys-fs/ntfsprogs. -- - Mark Shields
Re: [gentoo-user] root can't login on console, but can ssh...
On 9/13/07, Daevid Vincent [EMAIL PROTECTED] wrote: I've posted this about two months ago without any replies. I've been googling and trying things, but still can't get this to work like it used to. I simply want root to be able to login from console (tty[1-6]) or ssh (pts/[0-9]) without a password. Currently ssh does work fine. It's only the physical console that doesn't. This WAS working perfectly, then PAM or some other ebuild broke it on me. Just for sanity, I even assigned root a password, I now get a Password prompt, but it STILL can't login. (positive I'm typing it right) It says Login incorrect. -Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 17, 2007 3:47 PM To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] root can't login on console, but can ssh... I have a LAMP development VMWare setup so that I can login as root sans password. This was working fine until something recently changed that. It doesn't even prompt for the password, it just timesout after x seconds. Oddly I can ssh in as root (without the password as expected). I have my daevid account without password and that logs in fine on the console and ssh. I can circumvent this behaviour by logging in as 'daevid', then 'sudo su -' (which doesn't prompt for pw either), but I'd like it to work the way it did. Perhaps it was some PAM thing? Or login.defs? Or in pam.d/ ? LAMP pam.d # cat login #%PAM-1.0 auth required pam_securetty.so auth required pam_tally.so file=/var/log/faillog onerr=succeed no_magic_root auth required pam_shells.so auth required pam_nologin.so auth include system-auth accountrequired pam_access.so accountinclude system-auth accountrequired pam_tally.so deny=0 file=/var/log/faillog onerr=succeed no_magic_root password include system-auth sessionrequired pam_env.so sessionoptional pam_lastlog.so sessionoptional pam_motd.so motd=/etc/motd sessionoptional pam_mail.so # If you want to enable pam_console, uncomment the following line # and read carefully README.pam_console in /usr/share/doc/pam* #sessionoptionalpam_console.so sessioninclude system-auth LAMP ~ # cat /etc/securetty # /etc/securetty: list of terminals on which root is allowed to login. # See securetty(5) and login(1). console pts/0 pts/1 pts/2 pts/3 pts/4 pts/5 pts/6 pts/7 pts/8 vc/0 vc/1 vc/2 vc/3 vc/4 vc/5 vc/6 vc/7 vc/8 vc/9 vc/10 vc/11 vc/12 tty0 tty1 tty2 tty3 tty4 tty5 tty6 tty7 tty8 tty9 tty10 tty11 tty12 tts/0 ttyS0 ÐÆ5ÏÐ -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list Check out /etc/securetty (man securetty). There should be at least one uncommented entry listing 'tty1' if you want to be able to log in with just the first virtual terminal, or if you want root to be allowed on all virtual terminals, add tty1 through tty12. -- - Mark Shields
Re: [gentoo-user] [OT] suggestion for recombining audio with video
On 9/12/07, Iain Buchanan [EMAIL PROTECTED] wrote: On Tue, 2007-09-11 at 23:58 -0400, Mark Shields wrote: On 9/10/07, Iain Buchanan [EMAIL PROTECTED] wrote: [snip] 5. mix two (or more?) audio sources into one audio+video file, with some simple crossfade [snip] Oh, and point #5 you can do with Audacity. really? audacity can combine audio and video? -- Iain Buchanan iaindb at netspace dot net dot au A ship at sea is its own world. To be the captain of a ship is to be the unquestioned ruler of that world and requires all of the leadership skills of a prince or minister. -- Col. Corazon Santiago, Leadership and the Sea -- [EMAIL PROTECTED] mailing list Sorry, I meant to say it can combine the two audio sources. -- - Mark Shields