Re: [gentoo-user] Re: Gentoo install script
On Wed, Jul 4, 2012 at 12:53 PM, Mark Knecht wrote: > On Sun, Jul 1, 2012 at 5:28 PM, Michael Mol wrote: >> On Wed, Jun 27, 2012 at 10:13 PM, Michael Mol wrote: >>> Very rough, and very much a works-for-me thing, but I thought I'd share. >>> >>> https://github.com/mikemol/gentoo-install >>> >>> I wrote it to ease the pain of the "install-configure-build" cycle I >>> was going through to figure out what was breaking glibc. >> >> Just a bit of a followup. I've got most of the bugs worked out, and >> I'm very pleased with it. I've used it to get through most of the >> install sequence for inara, and it's currently on package 113/158 of >> its second pass of 'emerge -e @world'. >> >> If anyone else gets around to trying it, let me know. :) >> >> -- >> :wq >> > > Hi Michael, >Looks interesting. From reading the code it looks like this was a > (proper) reaction to rebuilding the two machines you recently had > trouble with, right? Indeed. Inara and kaylee are still incomplete, but the script at least helped me get to a working, up-to-date chroot environment, and that's a major improvement over where I was. > >Not sure when I'll get to it but I'll likely give it a try building > a VM in Virtualbox as a test. I can tell you right now that you'll hit a circular dependency problem toward the end, where it starts installing what I'd call "comfort tools." The general(ish) solution is probably going to be a two-pass emerge. One with USE="-gtk", followed by a one-two sequence without that. It's a typical gtk->cups->avahi cyclic dependency, and since gtk is the most-core element in the cycle, I figure it probably it'll be part of most cyclic dependency problems that might crop up in the future, so suppressing it likely covers the most ground. (By the same reasoning, it's probably appropriate to include -qt, -gnome and -kde in that first pass, too.) > >Thanks for doing the heavy lifting and posting the work output. Np. It beat the *pants* off of manually trying different CFLAGS to figure out why glibc was puking. I only had to go through the manual steps twice before I got sick of it and wrote the bulk of the script in a couple hours. The rest has mostly been letting the thing run, discover where I missed something, modify the script, and let it run again. -- :wq
Re: [gentoo-user] Re: Gentoo install script
On Wed, Jul 4, 2012 at 1:20 AM, Kaddeh wrote: > Very well done, reminded me of some code that I wrote (poorly, I might add) > but, I dug it up and found some changes that you might be able to implement > instead of lines and lines of static configs. That being said, take some of > these changes into consideration. > > Dynamic detection of drives and partitions: > > # Get Existing Drives > existing_drives=$(fdisk -l | grep /dev | grep -i disk | cut -c11-13) > > # Set default drive > default_drive=$(fdisk -l | grep --max-count=1 /dev | cut -c11-13) > > echo -e "What drive do you want to partition? [$existing_drives]: \c" > read drive > > and then creating the partition table later: > > # Make Drive Selection > if [ "$drive" == "" ] > then > selected_drive=$default_drive > else > # Verify Drive Exists > does_exist=$(fdisk -l | grep --max-count=1 -ci $drive) > > if [ "$does_exist" == "1" ] > then > selected_drive=$drive > else > echo -e "The selected drive" $drive "does not exist. Using" > $default_drive "instead." > selected_drive=$default_drive > fi > fi > > num_partitions=$(fdisk -l | grep ^/dev | grep -ic $selected_drive) > > echo "There are" $num_partitions "partitions on" $selected_drive > > partitions=1 > > # Clear existing partition file > rm -rf partition_table > touch partition_table > > while [ "$partitions" -le "$num_partitions" ] > do > # Find partition numbers > edit_partitions=$(fdisk -l | grep ^/dev/$selected_drive | cut -c9) > > # Parse out extra partitons > if [ "$partitions" == "1" ] > then > work_partition=$(echo -e $edit_partitions | cut -c$partitions) > # Write to partition_table file > echo -e "d\n$work_partition" >> partition_table > else > if [ "$partitions_cut" == "" ] > then > # If First Partition after partition 1, cut off > $partitions + 1 > partitions_cut=$(($partitions+1)) > else > partitions_cut=$(($partitions_cut+1)) > fi > work_partition=$(echo -e $edit_partitions | cut > -c$partitions_cut) > # Write to partition_table file > echo -e "d\n$work_partition" >> partition_table > ((partitions_cut += 1)) > fi > ((partitions += 1)) > > done > > # build the rest of the table > # Get Total System Memory > total_mem=$(cat /proc/meminfo | grep -i memtotal | cut -c16- | sed s/\ // | > sed s/kB//) > swap_space=$(expr $(expr $total_mem + $total_mem) / 1024) > > # Write first partition to file > echo -e "n\np\n1\n\n+100M\n" >> partition_table > > # Write Swap Space (double system memory) > echo -e "n\np\n2\n\n+"$swap_space"M\n">> partition_table > > # Write / partition to file > echo -e "n\np\n3\n\n\n" >> partition_table > > # Write partition setting to file and drive write > echo -e "a\n1\nt\n2\n82\nw\n" >> partition_table > > # Set drive number variables > boot_drive=$(echo $selected_drive"1") > swap_drive=$(echo $selected_drive"2") > root_drive=$(echo $selected_drive"3") > > # KEEP THIS COMMENTED OUT BELLOW HERE > fdisk /dev/$selected_drive < partition_table > > Mainly due to the fact that you statically set the UUIDs of the drive that > you want to use. > > Cheers, > Kad Thank you very much. I'd gladly entertain a pull request if you'd like to integrate it. I'm not doing much in the way of active development on the script until I have either (or both) of my machines operational again; they're almost there, but I'm a sticking point with the 3.3.8 kernel, got past that, and have now discovered that stable genkernel and stable gentoo-sources don't play well together. (Because stable genkernel is using a slightly older version of busybox which doesn't know about some moved kernel header files). That stuff is slowly moving on b.g.o, and I'm slowly working around at home. It's only a matter of time, of which nobody seems to have enough... -- :wq
Re: [gentoo-user] Wrong font displayed in opera
Am 2012-07-04 19:04, schrieb Paul Hartman: > On Wed, Jul 4, 2012 at 11:34 AM, Stefan G. Weichinger wrote: >> >> Strange issue on my thinkpad: >> >> When I run the opera browser the menu font is displayed as Comic Sans >> (no, I am not working at CERN ;-) ) even when it is SET as Droid Sans >> Mono in the settings. >> >> I double-checked the operaprefs.ini, I even rsynced over my .opera from >> another machine where the same opera-release does not behave this way. >> >> Re-emerging the droid-fonts didn't fix it. >> >> What could be the reason? revdep-rebuild checked, yes. >> >> ~amd64, btw >> >> Should I compare the font-files ... ? >> >> Thanks, Stefan, scratching head ... > > Apparently Opera 12 contains a new Font Engine and there are many > reports of people having font issues. Basic answers are try to disable > hardware acceleration in Opera (it is disabled by default), use a > different font/remove the misbehaving font from your system, or > downgrade to Opera 11 until they improve the new version. > > None of that really explains why you have one system that works and > one that doesn't, of course. I suggest you file a support request/bug > report with Opera, since they are the only ones who can fix their > program. Thanks a lot, Paul, for this information. I will consider filing a bug there, or at least browse their bugzilla (or equivalent) ... hw-accel should be off, I never enabled it afaik. Checked both settings, hw-accel and webgl, both were ON! Disabled, restarted opera, same ugly font ... We will see how things work out ... thanks once more, Stefan
Re: [gentoo-user] Wrong font displayed in opera
On Wed, Jul 4, 2012 at 11:34 AM, Stefan G. Weichinger wrote: > > Strange issue on my thinkpad: > > When I run the opera browser the menu font is displayed as Comic Sans > (no, I am not working at CERN ;-) ) even when it is SET as Droid Sans > Mono in the settings. > > I double-checked the operaprefs.ini, I even rsynced over my .opera from > another machine where the same opera-release does not behave this way. > > Re-emerging the droid-fonts didn't fix it. > > What could be the reason? revdep-rebuild checked, yes. > > ~amd64, btw > > Should I compare the font-files ... ? > > Thanks, Stefan, scratching head ... Apparently Opera 12 contains a new Font Engine and there are many reports of people having font issues. Basic answers are try to disable hardware acceleration in Opera (it is disabled by default), use a different font/remove the misbehaving font from your system, or downgrade to Opera 11 until they improve the new version. None of that really explains why you have one system that works and one that doesn't, of course. I suggest you file a support request/bug report with Opera, since they are the only ones who can fix their program.
Re: [gentoo-user] Re: Gentoo install script
On Sun, Jul 1, 2012 at 5:28 PM, Michael Mol wrote: > On Wed, Jun 27, 2012 at 10:13 PM, Michael Mol wrote: >> Very rough, and very much a works-for-me thing, but I thought I'd share. >> >> https://github.com/mikemol/gentoo-install >> >> I wrote it to ease the pain of the "install-configure-build" cycle I >> was going through to figure out what was breaking glibc. > > Just a bit of a followup. I've got most of the bugs worked out, and > I'm very pleased with it. I've used it to get through most of the > install sequence for inara, and it's currently on package 113/158 of > its second pass of 'emerge -e @world'. > > If anyone else gets around to trying it, let me know. :) > > -- > :wq > Hi Michael, Looks interesting. From reading the code it looks like this was a (proper) reaction to rebuilding the two machines you recently had trouble with, right? Not sure when I'll get to it but I'll likely give it a try building a VM in Virtualbox as a test. Thanks for doing the heavy lifting and posting the work output. Cheers, Mark
[gentoo-user] Wrong font displayed in opera
Strange issue on my thinkpad: When I run the opera browser the menu font is displayed as Comic Sans (no, I am not working at CERN ;-) ) even when it is SET as Droid Sans Mono in the settings. I double-checked the operaprefs.ini, I even rsynced over my .opera from another machine where the same opera-release does not behave this way. Re-emerging the droid-fonts didn't fix it. What could be the reason? revdep-rebuild checked, yes. ~amd64, btw Should I compare the font-files ... ? Thanks, Stefan, scratching head ...
Re: [gentoo-user] Re: Grub2 and is the upgrade a tooth puller.
On Fri, Jun 29, 2012 at 8:45 PM, walt wrote: > On 06/29/2012 08:05 AM, Mike Gilbert wrote: >> >> http://wiki.gentoo.org/wiki/GRUB2_Quick_Start > > Thanks for the tip. /etc/make.conf strikes me as an odd > place to put settings that apply to only one package. > > Any idea why that decision was made? > GRUB_PLATFORMS is a use-expanded variable. Portage translates it into special use flags at runtime. Other use-expands include LINGUAS, VIDEO_CARDS, INPUT_DEVICES. The easiest place to define a use-expanded variable is make.conf. You could use package.env instead, or specify the use flags manually without the use-expand magic in package.use.
Re: [gentoo-user] Re: genkernel 3.3.8 fails to build initramfs
Hi, It should be https://bugs.gentoo.org/show_bug.cgi?id=419511 Which fixed in version >=sys-kernel/genkernel-3.4.35 -- Regards, Kenny Cheng On Wed, Jul 4, 2012 at 2:20 AM, Sebastian Pipping wrote: > Hello David, > > > it seems that this bug has been reported before: > > https://bugs.gentoo.org/show_bug.cgi?id=424579 > > Best, > > > > > Sebastian >
Re: [gentoo-user] Suspend, hibernate and mount stopped working as a regular user.
On 07/04/12 at 02:48pm, Alex Schuster wrote: > Or maybe sys-auth/polkit? There were issues lately with a nonexisting > home directory, the elog message tells us to fix this with: > > usermod -d "/var/lib/polkit-1" "polkitd" > > Wonko > Hi, Thanks for the reply. Oddly the only polkit related message in my summary.log is something about the user group wheel being changed to adm. I ran your command though it says "no changes". The path is already set in /etc/passwd. -- - Yohan Pereira The difference between a Miracle and a Fact is exactly the difference between a mermaid and a seal. -- Mark Twain
Re: [gentoo-user] Suspend, hibernate and mount stopped working as a regular user.
Yohan Pereira writes: > This happened after a recent world upgrade. I am currently using kde > 4.8.4. I can however suspend, hibernate using the pm-utils as root. > Google has lead me to believe this has something to do with consolekit. Or maybe sys-auth/polkit? There were issues lately with a nonexisting home directory, the elog message tells us to fix this with: usermod -d "/var/lib/polkit-1" "polkitd" Wonko
[gentoo-user] Suspend, hibernate and mount stopped working as a regular user.
Hi, This happened after a recent world upgrade. I am currently using kde 4.8.4. I can however suspend, hibernate using the pm-utils as root. Google has lead me to believe this has something to do with consolekit. I found this thread [1] which is more or less what I am experiencing (I can't mount too). Running that dbus command gives me the same output mentioned there. yohan@powerslave ~ $ dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend Error org.freedesktop.UPower.GeneralError: not authorized However I am not sure how to solve this. I don't have an .xinitrc file in my home folder. So I looked at /etc/X11/xinit/xinitrc.d/, I tried removing the file called 90-consolekit, which didn't help. Anybody has any idea how to proceed in debugging this problem? any use full output I can post?I have this feeling that I missed some important piece of information from my portage log. I skimmed over summary.log nothing caught my attention. [1]https://bbs.archlinux.org/viewtopic.php?id=141337 -- - Yohan Pereira The difference between a Miracle and a Fact is exactly the difference between a mermaid and a seal. -- Mark Twain
Re: [gentoo-user] Re: Gentoo Laptop Looks to be Trashed
On 4 July 2012 07:16, Nikos Chantziaras wrote: > > ... install Ubuntu (or one of its spin-offs.) Having a laptop with Gentoo > that wasn't updated for months looks to me like the wrong usage case for > Gentoo. If you want periods of several months of base package stability, > you do not use a rolling-release distro. With Gentoo you need to update > often and *pay attention* to the changes. > > > My experiences differ with this somewhat. The longest between updates on a Gentoo system I had was 18 months. I did *pay attention*, and that is what got me through and updated. I would not recommend this for most users. ...Ric -- Ric de France Ph: +61412945554 (international) or 0412945554 (Australia) --> Do you, uh... Gentoo? Gent-hooo!! <-- --> http://www.gentoo.org/main/en/about.xml <--
Re: [gentoo-user] Failed to emerge Spamassassin
On Wed, Jul 4, 2012 at 2:21 AM, Adam Carter wrote: >> I tried to emerge Spamassassin bit it failes due to >> missing dependencies, which I would exspect to be >> resolved by emerge itsself. >> >> I wanted, I will post the referenced logfiles >> also. >> >> How can I fix this? > Try perl-cleaner --reallyall http://www.gentoo.org/proj/en/perl/perl-cleaner.xml HTH, David
Re: [gentoo-user] Re: Gentoo Laptop Looks to be Trashed
120704 Alex Schuster wrote: > Philip Webb writes: >> 120704 Nikos Chantziaras wrote: >>> ... install Ubuntu (or one of its spin-offs). > Ik ! My view exactly (grin). >> Why does he need KSM ? -- Google found an article which advises : >> "if you need to run multiple virtual machines >> on a host where memory is a constraint, then KSM is your solution". >> Why would he need to do that on a laptop ? > KMS != KSM :) No, of course it isn't, but that's what the OP wrote. Yes, there's an article in the Gentoo Wiki re KMS, which does seem of interest if you're juggling laptop displays. OTOH that doesn't seem to be the source of his problems, eg LVM, so my advice to him wb to deal with one issue at a time. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca