Re: [gentoo-user] Proper permissions for /var/log/portage/elog/summary.log?
On Mon, 25 Jun 2012 18:20:22 -0400 Michael Mol mike...@gmail.com wrote: On Mon, Jun 25, 2012 at 2:19 PM, Jarry mr.ja...@gmail.com wrote: I always run emerge as root. But back to my question: on all boxes with A access rights I can not rotage portage logs. All I get is mail from my cron saying: error setting owner of /var/log/portage/elog/summary.log-20110803.gz: Operation not permitted... On the other side, on boxes with B access rights (see above) logs are rotated without problem. Logrotate-script is the same: /var/log/portage/elog/summary.log { su portage portage missingok nocreate delaycompress } So I suppose either there is something wrong with A, or logrotate script must be modified (although it works for B)... For reference: On my laptop: ls -l /var/log/portage total 4 drwxrwsr-x 2 portage portage 4096 Dec 29 18:45 elog On a very-fresh-install of Gentoo: ls -l /mnt/gentoo/var/log/portage/ total 4 drwxrwsr-x 2 portage portage 4096 Jun 25 14:16 elog It seems to me that the proper permissions for /var/log/portage/elog are likely: * chmod 0775 * chown portage.portage Agreed that these are the correct permissions (setgid seems sensible too). Bug #374287 talks about this ownership a bit. Also, when /usr/lib/portage/pym/portage/elog/mod_save.py is invoked, it copies the gid down to /var/log/portage/elog from /var/log/portage, so mystery mostly solved... But what accounts for the difference in ownership of /var/log/portage? :) - Bryan
Re: [gentoo-user] Proper permissions for /var/log/portage/elog/summary.log?
On Mon, 25 Jun 2012 23:56:10 -0700 Bryan Gardiner b...@khumba.net wrote: On Mon, 25 Jun 2012 18:20:22 -0400 Michael Mol mike...@gmail.com wrote: On Mon, Jun 25, 2012 at 2:19 PM, Jarry mr.ja...@gmail.com wrote: I always run emerge as root. But back to my question: on all boxes with A access rights I can not rotage portage logs. All I get is mail from my cron saying: error setting owner of /var/log/portage/elog/summary.log-20110803.gz: Operation not permitted... On the other side, on boxes with B access rights (see above) logs are rotated without problem. Logrotate-script is the same: /var/log/portage/elog/summary.log { su portage portage missingok nocreate delaycompress } So I suppose either there is something wrong with A, or logrotate script must be modified (although it works for B)... For reference: On my laptop: ls -l /var/log/portage total 4 drwxrwsr-x 2 portage portage 4096 Dec 29 18:45 elog On a very-fresh-install of Gentoo: ls -l /mnt/gentoo/var/log/portage/ total 4 drwxrwsr-x 2 portage portage 4096 Jun 25 14:16 elog It seems to me that the proper permissions for /var/log/portage/elog are likely: * chmod 0775 * chown portage.portage Agreed that these are the correct permissions (setgid seems sensible too). Bug #374287 talks about this ownership a bit. Also, when /usr/lib/portage/pym/portage/elog/mod_save.py is invoked, it copies the gid down to /var/log/portage/elog from /var/log/portage, so mystery mostly solved... But what accounts for the difference in ownership of /var/log/portage? :) - Bryan Ahem, _initial_ ownership of /var/log/portage. So at least, it's possible to chgrp /var/log/portage and have the ownership stick. - Bryan
Re: [gentoo-user] Re: Grub2 and is the upgrade a tooth puller.
On Mon, 25 Jun 2012 22:10:44 -0500, Canek Peláez Valdés wrote: I mostly gentoo, but ubuntu has this marvellous tool 'boot-repair' based on grub2 in the yannbuntu repo. With one click it finds all the bootable partitions on your box, writes and installs the grub.cfg. Next time you boot viola! there's all your OSes ready to be started. It should be a front-end for grub2-mkconfig, which in Gentoo uses os-prober: As does Ubuntu. But os-prober is used to find non-Linux installations. There are other scripts to detect Linux and Xen installs. All of these are configurable, which is one of the strengths of GRUB2, it is not a Linux bootloader, it is more universal and adapts itself well to the wide variety of systems it may be used on. This makes it a much better choice for distros. -- Neil Bothwick In the begining, there was nothing. signature.asc Description: PGP signature
Re: [gentoo-user] Apache server setup
On 06/25/2012 07:36 PM, Peter Humphrey wrote: Good guess, but no cigar :-) I think (hope) I've found it: http://en.gentoo-wiki.com/wiki/Apache2/Virtual_Hosts makes it clear that a subdomain's definition must /precede/ the domain's definition. I was doing it the other way around, it seeming obviously logical to me: define the whole first, then refine the parts. I didn't even consider the alternative. On the other hand this is vhost definition; is the reasoning the same? It is extraordinarily late here, but I don't think that remedy #2 makes sense. When you make a request to apache, you connect to an IP address (and port), and send a hostname; for example, www.example.com. If any of the virtual hosts on that IP address (and port) answer to that hostname via ServerName www.example.com or ServerAlias www.example.com, then that's the website you'll get. Otherwise, you get the default vhost on that IP/port. This will be whatever vhost was defined first on that IP/port (see unexpected result #1, but it works on IP/port combinations, not the entire machine). The fact that one hostname may be a subdomain of another should be irrelevant, but ask me again in the morning... In any case, your current configuration has to be pretty close to working -- you just need to figure out why Options Includes isn't kicking in.
Re: [gentoo-user] Apache server setup
On Tuesday 26 June 2012 09:07:14 Michael Orlitzky wrote: On 06/25/2012 07:36 PM, Peter Humphrey wrote: I think (hope) I've found it: http://en.gentoo-wiki.com/wiki/Apache2/Virtual_Hosts makes it clear that a subdomain's definition must /precede/ the domain's definition. I was doing it the other way around, it seeming obviously logical to me: define the whole first, then refine the parts. I didn't even consider the alternative. On the other hand this is vhost definition; is the reasoning the same? It is extraordinarily late here, but I don't think that remedy #2 makes sense. Nor to me. 8 The fact that one hostname may be a subdomain of another should be irrelevant, but ask me again in the morning... In any case, your current configuration has to be pretty close to working -- you just need to figure out why Options Includes isn't kicking in. In the figuring-out process I'm revisiting the whole idea from the beginning. I've removed PHP, MySQL and Apache from the server box, removed the /var/www tree then reinstalled. I haven't yet started reconfiguration; I want to be sure I know what I'm doing first. (Fat chance of that!) One decision that will have consequences is where in /var/www to put mysite. Should it be in /var/www/mysite/htdocs, in /var/www/localhost/mysite or in /var/www/localhost/htdocs/mysite? What I've read so far suggests that it doesn't matter, but I'm damn sure if I put it in the wrong place I'll suffer for it. And what ownership should mysite's files have? My user is in the apache group on the server. Many thanks for your help. -- Rgds Peter
Re: [gentoo-user] Apache server setup
On Tue, Jun 26, 2012 at 10:42 AM, Peter Humphrey pe...@humphrey.ukfsn.org wrote: On Tuesday 26 June 2012 09:07:14 Michael Orlitzky wrote: On 06/25/2012 07:36 PM, Peter Humphrey wrote: I think (hope) I've found it: http://en.gentoo-wiki.com/wiki/Apache2/Virtual_Hosts makes it clear that a subdomain's definition must /precede/ the domain's definition. I was doing it the other way around, it seeming obviously logical to me: define the whole first, then refine the parts. I didn't even consider the alternative. On the other hand this is vhost definition; is the reasoning the same? It is extraordinarily late here, but I don't think that remedy #2 makes sense. Nor to me. 8 The fact that one hostname may be a subdomain of another should be irrelevant, but ask me again in the morning... In any case, your current configuration has to be pretty close to working -- you just need to figure out why Options Includes isn't kicking in. In the figuring-out process I'm revisiting the whole idea from the beginning. I've removed PHP, MySQL and Apache from the server box, removed the /var/www tree then reinstalled. I haven't yet started reconfiguration; I want to be sure I know what I'm doing first. (Fat chance of that!) One decision that will have consequences is where in /var/www to put mysite. Should it be in /var/www/mysite/htdocs, in /var/www/localhost/mysite or in /var/www/localhost/htdocs/mysite? What I've read so far suggests that it doesn't matter, but I'm damn sure if I put it in the wrong place I'll suffer for it. Doesn't matter, so long as you get privileges sorted out. For example, on my server, I have stuff at /var/www/$hostname/ ...but in the past on different servers I've had it at /www/$hostname/ And I've seen servers work perfectly fine with things arranged as /sharedfiles/www/$hostname where /sharefiles was served up as a samba share. And what ownership should mysite's files have? My user is in the apache group on the server. Depends. Does your site code need to be able to write to the filesystem? If you're using mpm_prefork, ultimately all you need is for directories to be readable and executable to whatever group or user the *apache* process runs as, and for files to be *readable* (not necessarily executable) by the same. It really comes down to what user and group the apache process is running as. You only care about your own user's privileges as far as being able to edit the files yourself. ( Also, if you use something like mpm_itk, the permissions can be pretty much whatever you want; apache will fork itself to the user and group specified in your Virtualhost, Location or Directory setting contexts. As an example, I recently configured a server to put mediawiki at https://hostname/wiki/, and svn webdav at https://hostname/svn/ ... requests for https://hostname/svn/ are processed using a different uid and gid from the rest of the virtualhost. ) -- :wq
Re: [gentoo-user] Apache server setup
On 06/26/12 10:42, Peter Humphrey wrote: One decision that will have consequences is where in /var/www to put mysite. Should it be in /var/www/mysite/htdocs, in /var/www/localhost/mysite or in /var/www/localhost/htdocs/mysite? What I've read so far suggests that it doesn't matter, but I'm damn sure if I put it in the wrong place I'll suffer for it. And what ownership should mysite's files have? My user is in the apache group on the server. Many thanks for your help. We're using e.g. /var/www/com/example/www -- basically the website's hostname in reverse, stored under /var/www. With lots of sites it's nice to split them up like that. With fewer, it's probably cleaner to use /var/www/$hostname. It's unimportant; you can always move the directory and change the path in the conf files. Apache can do a graceful reload quickly even with hundreds of sites. I will second the mpm-itk suggestion if you're looking to go all-out. It's a good compromise between running everything as 'apache' (unsafe) and giving each website it's own apache process (resource-intensive). In any case, once you know what user apache is running as (either 'apache' with mpm-prefork, or whatever else), it needs: * Execute access on all directories up to and including the document root * Read access on any files its going to serve. * For PHP, write access to the temp/session directories and read access to anything you installed in /usr/share/php * For (fast)cgi, execute permissions on the scripts you want to run.
Re: [gentoo-user] Re: eselect binutils list not matching
On Sun, Jun 24, 2012 at 3:18 PM, walt w41...@gmail.com wrote: On 06/24/2012 11:27 AM, Mark Knecht wrote: Hi, One of my machines is giving an undesired response in eselect: c2stable ~ # eselect binutils list !!! Error: Pattern does not match any installed version of binutils! exiting I would start by comparing /usr/share/eselect/* between the bad machine and one of the good ones. I'd probably use scp -r to copy the bad machine's directory to /tmp on the good machine and use diff -r to do the comparison. (I just discovered sftp, which is another easy way to copy things.) I love to hear a better suggestion about how to compare two different machines, though. You could set up an nfs mount of one machine on the other, but that's too complicated for my very limited needs. Hi Walt, It isn't anything like fsck, etc. The machine is healthy in all other respects (that I know of and have tested) and everything is actually working. It's only the list option that's failing. eselect actually knows that binutils is set correctly. It just won't like it. c2stable ~ # eselect binutils show x86_64-pc-linux-gnu-2.21.1 c2stable ~ # eselect binutils set x86_64-pc-linux-gnu-2.21.1 !!! Error: Profile x86_64-pc-linux-gnu-2.21.1 is already active! exiting c2stable ~ # eselect binutils list !!! Error: Pattern does not match any installed version of binutils! exiting c2stable ~ # Actually, I don't think it's that hard to compare files or directories that are supposed to be consistent on various machines. That's what rsync does to decide what to sync. The trick is getting the options correct which is usually my downfall. Anyway, in this case I compare the /usr/share/eselect/modules directory on my local (failing) machine with one of the other machines here in the house. In the first compare I look at the binutils file specifically which passes. In the second compare I look at everything in the modules directory which shows one mismatch which in this case is that the remote machine doesn't actually have a wxwidgets.eselect file. I cannot tell that until I log into the remote machine to determine the difference. mark@c2stable ~ $ rsync --dry-run -crv /usr/share/eselect/modules/binutils.eselect mark@k2:/usr/share/eselect/modules/binutils.eselect Password: sending incremental file list sent 55 bytes received 12 bytes 19.14 bytes/sec total size is 7796 speedup is 116.36 (DRY RUN) mark@c2stable ~ $ rsync --dry-run -crv /usr/share/eselect/modules/* mark@k2:/usr/share/eselect/modules Password: sending incremental file list wxwidgets.eselect sent 1095 bytes received 15 bytes 246.67 bytes/sec total size is 147613 speedup is 132.98 (DRY RUN) mark@c2stable ~ $ A little bit of Google suggests you can diff the files themselves using something like: diff (ssh -n me@testserver cat /home/me/source/worksforme.php) (ssh -n me@clientserver cat /home/me/source/worksforme.php) I have not tested this but suspect it probably works fine once you get everything right. HTH you or someone in the future, Mark
Re: [gentoo-user] Proper permissions for /var/log/portage/elog/summary.log?
On 2012-06-24 6:11 PM, Mick michaelkintz...@gmail.com wrote: I always run emerge as root. me three... elog is owned by portage:root, summary.log within it as portage:root, other log files within /var/log/portage are owned by portage:portage. hmmm... I don't even have a 'summary.anything' file or files...
Re: [gentoo-user] Grub2 and is the upgrade a tooth puller.
On 2012-06-25 1:05 AM, Dale rdalek1...@gmail.com wrote: Howdy, It appears that grub2 is coming soon. Has the Handbook/Install docs been updated to provide for installing Grub2 with a fresh install? I'm about to do one, and would like to not have to switch this out later...
Re: [gentoo-user] Grub2 and is the upgrade a tooth puller.
On Tue, Jun 26, 2012 at 2:52 PM, Tanstaafl tansta...@libertytrek.org wrote: On 2012-06-25 1:05 AM, Dale rdalek1...@gmail.com wrote: Howdy, It appears that grub2 is coming soon. Has the Handbook/Install docs been updated to provide for installing Grub2 with a fresh install? I'm about to do one, and would like to not have to switch this out later... No, handbook only discusses grub (not grub2) and lilo. Which is sad; I'd love to use stuff like grub2 and {ext,sys}linux. It'd be sweet to make things more easily convertible to netboot or cdrom-boot scenarios. -- :wq
Re: [gentoo-user] VMWare Hypervisor - SD vs CF card?
On 2012-06-23 7:11 AM, Tanstaafl tansta...@libertytrek.org wrote: On 2012-06-22 12:26 PM, Michael Mol mike...@gmail.com wrote: OK, I missed that piece. I presumed there would be writes to the hard disk. Any reason you can't have these guys netboot? Only that I've never done that before with servers, and my only experience with netbooting at all was with LTSP about 10 years ago. I think having 4 CF cards (mirrored pair of mirrored pairs) will be enough redundancy though... ;) Well, these seem to work swimmingly well... now I just need to find some kind of non-flammable/heat resistant insulating material that I can use to keep these cards from touching themselves or the metal cage (see below)... Oh... one other question... These CF adapters only have 2 screw holes (made to go into laptops, not mounted in a cage), so I can't mount them *properly* in the cage... anyone know where I can get 2.5 'shell' cases that I could install these cards in so I can mount them properly? Right now I have to shove a piece of anti-static material in between them and the cage (and each other) to prevent them from accidentally touching (yuck!)...
[gentoo-user] Is wrong 4k sector alignment still an issue?
I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones. I suppose by now everything will just work and the various tools will now by default create correctly aligned partitions?
Re: [gentoo-user] Is wrong 4k sector alignment still an issue?
On Tue, Jun 26, 2012 at 4:13 PM, Nikos Chantziaras rea...@gmail.com wrote: I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones. I suppose by now everything will just work and the various tools will now by default create correctly aligned partitions? Most of them should. Latest fdisk and gdisk should align to 1MB and latest parted etc. should as well.
Re: [gentoo-user] Is wrong 4k sector alignment still an issue?
On Tue, Jun 26, 2012 at 2:13 PM, Nikos Chantziaras rea...@gmail.com wrote: I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones. I suppose by now everything will just work and the various tools will now by default create correctly aligned partitions? I guess it depends on what tools you use to create partitions but I believe the stable version of fdisk does now align to 4k by default. Just make sure the starting address is divisible by 8 and you should be good to go no matter what tools you use. HTH, Mark
Re: [gentoo-user] Is wrong 4k sector alignment still an issue?
On Tue, 26 Jun 2012 16:23:49 -0500, Paul Hartman wrote: I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones. I suppose by now everything will just work and the various tools will now by default create correctly aligned partitions? Most of them should. Latest fdisk and gdisk should align to 1MB and latest parted etc. should as well. I researched this for the latest issue of LXF and the only one that still uses 512K blocks is cfdisk (cgdisk is fine). -- Neil Bothwick Top Oxymorons Number 48: freewill offering signature.asc Description: PGP signature
Re: [gentoo-user] Is wrong 4k sector alignment still an issue?
LXF? On Jun 26, 2012 5:53 PM, Neil Bothwick n...@digimed.co.uk wrote: On Tue, 26 Jun 2012 16:23:49 -0500, Paul Hartman wrote: I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones. I suppose by now everything will just work and the various tools will now by default create correctly aligned partitions? Most of them should. Latest fdisk and gdisk should align to 1MB and latest parted etc. should as well. I researched this for the latest issue of LXF and the only one that still uses 512K blocks is cfdisk (cgdisk is fine). -- Neil Bothwick Top Oxymorons Number 48: freewill offering
[gentoo-user] Re: Is wrong 4k sector alignment still an issue?
On 27/06/12 00:13, Nikos Chantziaras wrote: I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones. I suppose by now everything will just work and the various tools will now by default create correctly aligned partitions? Thanks everyone for the comments. I'm using cfdisk, since I find it's the easiest CLI partitioner (fdisk and parted don't offer menus but you need to type commands; I hate that). I guess I should now switch to something else. I guess it's time for GParted (I'd prefer something for KDE, but it looks like there's nothing offered.)
Re: [gentoo-user] Re: Is wrong 4k sector alignment still an issue?
On Wed, 27 Jun 2012 01:06:53 +0300, Nikos Chantziaras wrote: I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones. I suppose by now everything will just work and the various tools will now by default create correctly aligned partitions? Thanks everyone for the comments. I'm using cfdisk, since I find it's the easiest CLI partitioner (fdisk and parted don't offer menus but you need to type commands; I hate that). If you use a GPT partition table, you can use cgdisk and banish the abominations of extended and logical partitions at the same time. -- Neil Bothwick Evolution stops when stupidity is no longer fatal! signature.asc Description: PGP signature
[gentoo-user] Re: eselect binutils list not matching
On 06/26/2012 10:51 AM, Mark Knecht wrote: On Sun, Jun 24, 2012 at 3:18 PM, walt w41...@gmail.com wrote: On 06/24/2012 11:27 AM, Mark Knecht wrote: Hi, One of my machines is giving an undesired response in eselect: c2stable ~ # eselect binutils list !!! Error: Pattern does not match any installed version of binutils! exiting I would start by comparing /usr/share/eselect/* between the bad machine and one of the good ones. I'd probably use scp -r to copy the bad machine's directory to /tmp on the good machine and use diff -r to do the comparison. (I just discovered sftp, which is another easy way to copy things.) I love to hear a better suggestion about how to compare two different machines, though. You could set up an nfs mount of one machine on the other, but that's too complicated for my very limited needs. Hi Walt, It isn't anything like fsck, etc. The machine is healthy in all other respects (that I know of and have tested) and everything is actually working. It's only the list option that's failing. eselect actually knows that binutils is set correctly. It just won't like it. c2stable ~ # eselect binutils show x86_64-pc-linux-gnu-2.21.1 c2stable ~ # eselect binutils set x86_64-pc-linux-gnu-2.21.1 !!! Error: Profile x86_64-pc-linux-gnu-2.21.1 is already active! exiting c2stable ~ # eselect binutils list !!! Error: Pattern does not match any installed version of binutils! exiting c2stable ~ # Actually, I don't think it's that hard to compare files or directories that are supposed to be consistent on various machines. That's what rsync does to decide what to sync. The trick is getting the options correct which is usually my downfall. Anyway, in this case I compare the /usr/share/eselect/modules directory on my local (failing) machine with one of the other machines here in the house. In the first compare I look at the binutils file specifically which passes. In the second compare I look at everything in the modules directory which shows one mismatch which in this case is that the remote machine doesn't actually have a wxwidgets.eselect file. I cannot tell that until I log into the remote machine to determine the difference. mark@c2stable ~ $ rsync --dry-run -crv /usr/share/eselect/modules/binutils.eselect mark@k2:/usr/share/eselect/modules/binutils.eselect Password: sending incremental file list sent 55 bytes received 12 bytes 19.14 bytes/sec total size is 7796 speedup is 116.36 (DRY RUN) mark@c2stable ~ $ rsync --dry-run -crv /usr/share/eselect/modules/* mark@k2:/usr/share/eselect/modules Password: sending incremental file list wxwidgets.eselect sent 1095 bytes received 15 bytes 246.67 bytes/sec total size is 147613 speedup is 132.98 (DRY RUN) mark@c2stable ~ $ A little bit of Google suggests you can diff the files themselves using something like: diff (ssh -n me@testserver cat /home/me/source/worksforme.php) (ssh -n me@clientserver cat /home/me/source/worksforme.php) I have not tested this but suspect it probably works fine once you get everything right. I'd never have thought of those two ideas. Thanks for the tip. /usr/bin/eselect is just a shellscript, so adding the line 'set -x' near the top of the script may give you a clue about what part of 'list' it doesn't understand :)
[gentoo-user] Re: Is wrong 4k sector alignment still an issue?
On 27/06/12 01:22, Neil Bothwick wrote: On Wed, 27 Jun 2012 01:06:53 +0300, Nikos Chantziaras wrote: I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones. I suppose by now everything will just work and the various tools will now by default create correctly aligned partitions? Thanks everyone for the comments. I'm using cfdisk, since I find it's the easiest CLI partitioner (fdisk and parted don't offer menus but you need to type commands; I hate that). If you use a GPT partition table, you can use cgdisk and banish the abominations of extended and logical partitions at the same time. I've no idea whether my mainboard can boot from it. It *seems* it has UEFI, but I'm not really sure.
Re: [gentoo-user] Re: Is wrong 4k sector alignment still an issue?
On Tue, Jun 26, 2012 at 5:33 PM, Nikos Chantziaras rea...@gmail.com wrote: On 27/06/12 01:22, Neil Bothwick wrote: On Wed, 27 Jun 2012 01:06:53 +0300, Nikos Chantziaras wrote: I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones. I suppose by now everything will just work and the various tools will now by default create correctly aligned partitions? Thanks everyone for the comments. I'm using cfdisk, since I find it's the easiest CLI partitioner (fdisk and parted don't offer menus but you need to type commands; I hate that). If you use a GPT partition table, you can use cgdisk and banish the abominations of extended and logical partitions at the same time. I've no idea whether my mainboard can boot from it. It *seems* it has UEFI, but I'm not really sure. I think it just depends on your bootloader. Gentoo's grub legacy can boot from GPT and of course grub2 can too.
[gentoo-user] Re: Is wrong 4k sector alignment still an issue?
On 27/06/12 02:06, Paul Hartman wrote: On Tue, Jun 26, 2012 at 5:33 PM, Nikos Chantziaras rea...@gmail.com wrote: On 27/06/12 01:22, Neil Bothwick wrote: On Wed, 27 Jun 2012 01:06:53 +0300, Nikos Chantziaras wrote: I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones. I suppose by now everything will just work and the various tools will now by default create correctly aligned partitions? Thanks everyone for the comments. I'm using cfdisk, since I find it's the easiest CLI partitioner (fdisk and parted don't offer menus but you need to type commands; I hate that). If you use a GPT partition table, you can use cgdisk and banish the abominations of extended and logical partitions at the same time. I've no idea whether my mainboard can boot from it. It *seems* it has UEFI, but I'm not really sure. I think it just depends on your bootloader. Gentoo's grub legacy can boot from GPT and of course grub2 can too. I guess I'll just try with a quick Ubuntu install. I suspect though that the BIOS must be able to actually find Grub in order to boot it, and it might not be able to.
Re: [gentoo-user] Is wrong 4k sector alignment still an issue?
On Tuesday 26 June 2012 22:54:32 Michael Mol wrote: LXF? Linux Format, the best monthly journal for all things Linux in the world. Bar none. (For some reason they've unsubscribed me and ignored my e-mail saying I'd not unsubscribed. I must get round to starting a new subscription.) -- Rgds Peter
Re: [gentoo-user] Grub2 and is the upgrade a tooth puller.
Dale wrote: Howdy, SNIP Thanks in advance. Dale :-) :-) Well, I got lots of info now. May just wait a bit but I do like the idea of being able to boot a CD image from grub2 tho. Then again, I don't have enough room on /boot right now anyway. Thanks to all for the info. Maybe others learned something too. ;-) Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] USE=jpeg not part of hardened/linux/x86 profile
Hello, First sorry for taking this long to answer this, somehow this mail slipped through my radar and couldn't find it when somebody moved it to the gentoo-hardened list, add to that an... interesting live and we are set. And now let's get answers: First the Gentoo Hardened team DOES support the use of Gentoo Hardened on desktop and this has been so for a long time, there are many reasons for this amongst others the fact that currently desktops tend to be more vulnerable to attacks than servers. As a matter of fact I do tend to state that my laptop is running Gentoo Hardened whenever I have to give a talk on it and I can tell you I'm not the only user here, amongst other examples I recall an interesting remotely managed kiosk project by another user. Regarding the profiles the main reason why they don't exist is the non existence of a desktop feature that makes it easier for us to have it (as it happens for example with the selinux or multilib features). This said we tend to be very open to people wanting to join the community so if you want to create them feel free to come to the meeting we are holding on 2012-06-27 20:00 at #GentooHardened and say so when we touch the profiles topic, be warned though that profiles tend to be very complex and fragile so are a thing not to be taken easily. Regarding skype, in theory you can use it but you need to paxmark it with legacy USE flags and well it is quite awkward, another option is using the new xattr based marks but I think this is still in development. You will also need to disable TPE. Regarding things like totem check also dmesg, at times you need to disable TPE to get orc code to work properly. Anyway I have no problems like that with kaffeine. Finally regarding Gwibber and Hotot make sure you don't have the jit USE flag set, jit code and hardened match just as well as a bobcat and a pitbull in a small closed box with a lit firecracker to startle them. Worst case try choqok it works well for me. That covers all on this thread, I hope this e-mail is useful and as always feel free to come back with any questions you have. klondike signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] USE=jpeg not part of hardened/linux/x86 profile
On Tue, Jun 26, 2012 at 8:48 PM, Francisco Blas Izquierdo Riera (klondike) klond...@gentoo.org wrote: Hello, First sorry for taking this long to answer this, somehow this mail slipped through my radar and couldn't find it when somebody moved it to the gentoo-hardened list, add to that an... interesting live and we are set. And now let's get answers: First the Gentoo Hardened team DOES support the use of Gentoo Hardened on desktop and this has been so for a long time, there are many reasons for this amongst others the fact that currently desktops tend to be more vulnerable to attacks than servers. As a matter of fact I do tend to state that my laptop is running Gentoo Hardened whenever I have to give a talk on it and I can tell you I'm not the only user here, amongst other examples I recall an interesting remotely managed kiosk project by another user. Regarding the profiles the main reason why they don't exist is the non existence of a desktop feature that makes it easier for us to have it (as it happens for example with the selinux or multilib features). This said we tend to be very open to people wanting to join the community so if you want to create them feel free to come to the meeting we are holding on 2012-06-27 20:00 at #GentooHardened and say so when we touch the profiles topic, be warned though that profiles tend to be very complex and fragile so are a thing not to be taken easily. Which timezone is this in? I don't normally pay attention to this type of thing, but this would be very interesting to watch. Regarding skype, in theory you can use it but you need to paxmark it with legacy USE flags and well it is quite awkward, another option is using the new xattr based marks but I think this is still in development. You will also need to disable TPE. What about the new version of Skype, 4.0.0.7, is it? Seeing as Microsoft isn't leaving Skype on Linux dead, who knows, they might be willing to work with the community on something. Regarding things like totem check also dmesg, at times you need to disable TPE to get orc code to work properly. Anyway I have no problems like that with kaffeine. Finally regarding Gwibber and Hotot make sure you don't have the jit USE flag set, jit code and hardened match just as well as a bobcat and a pitbull in a small closed box with a lit firecracker to startle them. Worst case try choqok it works well for me. That covers all on this thread, I hope this e-mail is useful and as always feel free to come back with any questions you have. klondike This was nice to read, and I am (personally) feeling more inclined to use Gentoo Hardened for the desktop now.
[gentoo-user] Hanging mount
Hi, i accidentally tried to mount the extended partition /dev/sda4 from this disk: Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x07ec16a2 Device Boot Start End Blocks Id System /dev/sda1 *2048 104447 51200 83 Linux /dev/sda2 10444812687359 6291456 82 Linux swap / Solaris /dev/sda312687360 222402559 104857600 83 Linux /dev/sda4 222402560 1953525167 8655613045 Extended /dev/sda5 222404608 232890367 5242880 83 Linux /dev/sda6 232892416 442607615 104857600 83 Linux /dev/sda7 442609664 652324863 104857600 83 Linux /dev/sda8 652326912 862042111 104857600 83 Linux /dev/sda9 862044160 1071759359 104857600 83 Linux /dev/sda10 1071761408 1281476607 104857600 83 Linux /dev/sda11 1281478656 1491193855 104857600 83 Linux /dev/sda12 1491195904 1953525167 231164632 83 Linux which results in a hanging mount process, which cannot be killed. I was urged to use the sysreq-key to reboot and get rid of that process. This happens with kernel 3.2.21 and 3.4.4. Is this the expected bahviour? Best regards, mcc
[gentoo-user] Re: eselect binutils list not matching
On Sun, Jun 24, 2012 at 11:27 AM, Mark Knecht markkne...@gmail.com wrote: Hi, One of my machines is giving an undesired response in eselect: c2stable ~ # eselect binutils list !!! Error: Pattern does not match any installed version of binutils! exiting c2stable ~ # SNIP Confirmed bug but at this point I don't understand why some machines hit it and others don't. Users should try binutils-config if they run into this problem. https://bugs.gentoo.org/show_bug.cgi?id=423525 Cheers, Mark
Re: [gentoo-user] Re: Is wrong 4k sector alignment still an issue?
On Tue, Jun 26, 2012 at 6:18 PM, Nikos Chantziaras rea...@gmail.com wrote: On 27/06/12 02:06, Paul Hartman wrote: On Tue, Jun 26, 2012 at 5:33 PM, Nikos Chantziaras rea...@gmail.com wrote: On 27/06/12 01:22, Neil Bothwick wrote: On Wed, 27 Jun 2012 01:06:53 +0300, Nikos Chantziaras wrote: I'm getting a 2TB drive which uses 4kB sectors instead of 512 byte ones. I suppose by now everything will just work and the various tools will now by default create correctly aligned partitions? Thanks everyone for the comments. I'm using cfdisk, since I find it's the easiest CLI partitioner (fdisk and parted don't offer menus but you need to type commands; I hate that). If you use a GPT partition table, you can use cgdisk and banish the abominations of extended and logical partitions at the same time. I've no idea whether my mainboard can boot from it. It *seems* it has UEFI, but I'm not really sure. I think it just depends on your bootloader. Gentoo's grub legacy can boot from GPT and of course grub2 can too. I guess I'll just try with a quick Ubuntu install. I suspect though that the BIOS must be able to actually find Grub in order to boot it, and it might not be able to. I seem to recall GPT coexisting with some kind of MBR as well, or at least enough of an MBR to get it to boot. But partitioning and installing is not something I do very often. :) I'm using GPT (created with gdisk) on my laptop which is from 2003 and it works fine, so I imagine you'll be fine with anything newer as well.
Re: [gentoo-user] eselect binutils list not matching
On Sun, Jun 24, 2012 at 1:27 PM, Mark Knecht markkne...@gmail.com wrote: Hi, One of my machines is giving an undesired response in eselect: c2stable ~ # eselect binutils list !!! Error: Pattern does not match any installed version of binutils! exiting c2stable ~ # Mine does the same thing on 1 computer but works on 2 others. All with the same versions of all involved packages. Weird.
SOLVED Re: [gentoo-user] wicd setup on a virtualbox gentoo guest
On 6/25/12 6:01 PM, Neil Bothwick wrote: On Mon, 25 Jun 2012 11:20:42 -0400, Valmor de Almeida wrote: udev persistent rules strike again The contents of /var/log/wicd/wicd.log below do indicate a mess up with eth1 and eth0. Any idea on how to fix this? Yep. All I needed to do was to change the wired interface from eth0 to eth1 in the preferences of wicd-client -n and it works. So the question is, why do I have eth1 and not eth0 and how do I set up eth0 instead? Is dhcpcd involved in this? No, it's udev persistent rules. eth0 has already been assigned to a different MAC address, so this one gets eth1. Delete /etc/udev/rules.d/70-persistent-net.rules to go back to eth0. Thanks. That did it. -- Valmor