Re: [gentoo-user] mailto net-mail/metamail

2023-12-06 Thread Marco Rebhan
On Wednesday, 6 December 2023 02:45:00 CET the...@sys-concept.com wrote:
> I think "mailto" used to be part of the package net-mail/metamail
> But I think is long time gone.
> 
> What is the replacement?
> I just need to send myself an email from the command line to test postfix.

Postfix should come with a program to do this, sendmail:

> saiko@polaris ~ % sendmail 'm...@dblsaiko.net'
> Subject: Test mail
> 
> Body content
> foo
> bar
> .
> saiko@polaris ~ %

Of course, that's given you're running it on the same box as the one you set 
up Postfix on.

The man page describes it as a compatibility interface for sendmail but I'm 
not sure if there's an expliticly Postfix way to do this.

-Marco

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Boot and EFI partitions

2023-12-06 Thread Marco Rebhan
On Wednesday, 6 December 2023 17:49:43 CET Victor Ivanov wrote:
> So, without knowing much about systemd-boot from the guide linked it
> seems to me that its implementation doesn't differ too much from this
> reasonably well established model, except for a few additional
> constraints which, based on my understanding, are:
> 1. You _must_ have an XBOOTLDR partition (functionally equivalent to
> "boot" above) _in addition to_ the ESP and cannot simply use "/boot"
> under your rootfs partition
> 2. XBOOTLDR partition _must_ be of GPT type 0xEA00
> 3. XBOOTLDR partition _must_ have GUID set to
> "bc13c2ff-59e6-4262-a352-b275fd6f7172"
> 4. XBOOTLDR partition _must_ be formatted with a filesystem supported
> by your EFI BIOS with FAT32 being universally supported, though your
> particular EFI BIOS _might_ support others
> 
> I say "must" as it appears to be from the guide like this is the
> requirement for systemd-boot, the actual Boot Loader Specification
> page appears to suggest that an XBOOTLDR partition is optional. So
> there may be a viable configuration without it.

No, you do not need an XBOOTLDR partition with systemd-boot and in fact I have 
never used one, and I'm not sure why the guide advertises it so prominently.

There seems to be a lot of cargo cult around boot partitions (probably left 
over from the BIOS days), you really only need the ESP. The set up I have used 
for years is ESP at /boot, containing systemd-boot, kernel, initramfs and so 
on, and that's it (excluding of course / and other actual system partitions).

-Marco


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Debugging NFS mounts

2023-11-16 Thread Marco Rebhan
On Wednesday, 15 November 2023 17:29:19 CET Peter Humphrey wrote:
> Hello list,
> 
> My little server needs help with compiling, so I NFS-export /var (which has
> its own partition) to a chroot on my workstation. I mount all the partitions
> on both server and workstation. Then when I chroot, env-update hangs for
> ever. Well, over an hour anyway.
> 
> Is it possible to export /var in this way? I can't see anything else wrong.

I don't see why it shouldn't work, but there's a couple commands I use to 
debug NFS. They're not *great*, but they work.

I haven't used Gentoo in a while so I forget exactly what env-update does, but 
I assume mounting the network share works successfully and this is just a 
command that accesses /var.

You can use these commands to make the kernel driver output debugging 
information to dmesg.

On the client:

> # rpcdebug -m nfs -s all

On the server:

> # rpcdebug -m nfsd -s all

On both sides, if the others don't give useful info, this is for the lower 
level protocol:

> # rpcdebug -m rpc -s all

Then, try running the command again. It will spew a lot of info but hopefully 
you can figure out from it what's going on.

-Marco :-)

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] emerge asynchronous anomoly

2021-10-03 Thread Marco Rebhan
On Sunday, 3 October 2021 10:28:49 CEST n952162 wrote:
> Is it so on top of things that  it's downloading many packages early,
> and the download is so aggressive, that nothing else can run?

emerge downloads distfiles for all packages to install in the background 
while the compile jobs are running, check /var/log/emerge-fetch.log. And 
I doubt this has anything to do with it being stuck (unless your disk is 
abysmally slow and it's stuck on IO, but most likely not).

-Marco

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Master PDF Editor - version 4, without watermark

2021-09-25 Thread Marco Rebhan
On Saturday, 25 September 2021 09:06:20 CEST the...@sys-concept.com 
wrote:
> Any idea where I can find "Master PDF Editor - version 4" ebuild?
> Ver. 4 is without watermark.

You can find it in the git repository history:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?
id=56e7e82af65de580969758794453066a29ecbf85

The command I used to find that was git log 'app-text/master-pdf-editor/
master-pdf-editor-4*' in case you need to do that in the future.

Due to the commit message, I don't think you'll have much luck unless 
you have the source files:

> app-text/master-pdf-editor: removed 4.3.82 as sources are no longer
> available.

-Marco

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Advice sought on the use of a VCS (specifically git) to keep track of my Softscroll patch.

2021-09-24 Thread Marco Rebhan
On Friday, 24 September 2021 19:47:24 CEST Alan Mackenzie wrote:
> I may
> not be doing a lot of rebasing, since I'm creating patches for already
> released versions rather than keeping up to date with the head of the
> master branch.

It works the same way there: take the current branch which is some 
commit of Linux with your patch applied, and rebase your changes onto 
whichever release you want to target (might need to use git rebase --
onto).

> I don't envisage any upstream accepting my patch.  The powers that be
> were adamant that the soft scrolling be removed from the official
> kernel, ostensibly due to security reasons.  I may get around to
> posting the patch on the Gentoo wiki, but for now it'll just be on
> the mailing list, plus to any individual Linux user who asks for a
> copy.

I was more thinking about other people pulling from your repo, in which 
case repeated force pushes would cause issues when they try to pull. I 
wasn't sure if you wanted to actually have the repo public or if this 
was just to make updating for you easier.

> > I hope this helps :P
> 
> It did indeed.  Thanks!

Glad to be of help!

-Marco

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Advice sought on the use of a VCS (specifically git) to keep track of my Softscroll patch.

2021-09-24 Thread Marco Rebhan
On Friday, 24 September 2021 10:49:53 CEST Peter Humphrey wrote:
> This raises the question of which kernel to work with: vanilla source
> or Gentoo?

Gentoo's patches are kept minimal so it shouldn't really matter (and I 
don't think they'd touch this part of the code anyway). Personally I'd 
make the patches against the vanilla sources.

-Marco

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Advice sought on the use of a VCS (specifically git) to keep track of my Softscroll patch.

2021-09-23 Thread Marco Rebhan
On Thursday, 23 September 2021 20:23:57 CEST Alan Mackenzie wrote:
> Where would I find a suitable kernel git repository to clone?  An
> "official" repository, whatever that means?  Ideally, I want one with
> just the various kernel releases, not one containing gigabytes of
> intermediate versions.  Where would I even start searching to find
> this out?

Hey Alan,

The official repository I think is
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/.
What I would do is apply your patch on top of that, and then to update 
it, rebase the patch onto the new upstream commit you want to update to. 
This leads to your patches always being at the tip of the commit history 
and not somewhere buried between commits from upstream.

However, this rewrites git history so you'd have to force push the 
branch to whatever remote you're tracking it in, so keep that in mind.

You could do this though and additionally have another branch where you 
track the patch files themselves that are rebased onto a certain kernel 
commit (you can export them with "git format-patch upstream/master" if 
upstream/master is whatever branch the patch is currently rebased on). 
That of course you don't have to then force push.

I hope this helps :P

-Marco

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Official support for the s6 init on Gentoo

2021-09-19 Thread Marco Rebhan
On Sunday, 19 September 2021 19.15.50 CEST lum...@disroot.org wrote:
> The worst thing for OpenRC
> (native, by default and alternative to systemd) is to adopt binaries
> from it

Hi,

Those binaries (I'm assuming you're talking about udev and tmpfilesd) 
don't really have any overlap with what OpenRC does (init/service 
management) and from what I can see it's the exact same situation for s6 
so the same systemd code would still be required. I'm not saying that s6 
support is a bad thing but the reason you state for adding it seems out 
of place.

There's an existing s6 eclass that installs s6 services; as far as I can 
see, a total of 2 packages use it right now. My guess is that the reason 
why there's no s6 support across the board yet is lack of interest. You 
could either create a dedicated overlay or submit patches to the gentoo 
repository to directly add support to more packages.

-Marco

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] pm-suspend replacement?

2021-09-18 Thread Marco Rebhan
On Saturday, 18 September 2021 20.39.45 CEST Alan Mackenzie wrote:
> I used to have a utility pm-suspend which would suspend the current
> state of the machine to RAM (or, maybe to the swap partition) and shut
> the machine down to a resting state.  A keypress or mouse movement
> would restore full functionality in a few seconds.

> Is there anything to take its place?

I'm pretty sure pm-suspend is deprecated. loginctl suspend should do the 
same thing.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] KDE update puzzle

2021-09-18 Thread Marco Rebhan
On Saturday, 18 September 2021 17.19.45 CEST Philip Webb wrote:
> Here is the whole command + output in gruesome detail :
> 
> root:522 ~> !498
> PYTHON_SINGLE_TARGET="python3_9" emerge -pv --backtrack=30 attica
> frameworkintegration kactivities kactivities-stats kcmutils kconfig
> kcoreaddons kcrash kdesu kdnssd kglobalaccel kholidays khtml
> kidletime kimageformats knotifyconfig kpeople kross krunner
> ktexteditor kwayland kwindowsystem qqc2-desktop-style

Is this the command you ran to get this output? I assume the same 
happens with emerge -auDU @world, but did you try emerge -ac first? 
Maybe something is still installed but deselected which I believe causes 
it to not get rebuilt and potentially block other packages. All of these 
packages that claim to pull in the older versions seem to themselves be 
scheduled for update, that's why I'm thinking somewhere there is one 
package that isn't that's causing all this mess.

> It mb that I have to remove the whole of the present versions
> in order to (re-)install the new ones ; it usually happens with Qt.
> I've never understood why Portage can't handle that itself.

That's what I would suggest if what I wrote above doesn't work. I 
haven't ever encountered this issue myself yet though despite 
extensively using KDE packages, so I'm not sure what's going wrong here.

-Marco

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: [OT] ubuntu equivalent of world file

2020-05-08 Thread marco restelli
2020-05-06 16:25 GMT+02:00, Mark Knecht :
> On Wed, May 6, 2020 at 2:39 AM marco restelli  wrote:
>
>> 2020-05-06 11:29 GMT+02:00, marco restelli :
>> > Hi all,
>> >this is a bit off topic, but probably is not an unknown problem for
>> > many on the list.
>> >
>> > I am a long time gentoo user and I occasionally work on an Ubuntu
>> > system. I wonder
>> > whether there is an Ubuntu equivalent of the portage world file, to
>> > separate the packages
>> > installed because the user wants them and those that are only there as
>> > a dependency.
>>
>> So, I finally found it short after posting:
>>
>>  apt-mark showauto
>>  apt-mark showmanual
>>
>> does the job.
>>
>> Marco
>>
>>
> $ cat /var/log/apt/history.log > ~/Desktop/allhistory.log && zcat
 /var/log/apt/history.log*gz >> ~/Desktop/allhistory.log

OK, yes, this is also a solution, thank you. apt-mark gives the present state,
looking into the logs provides the whole evolution.

Marco



[gentoo-user] Re: [OT] ubuntu equivalent of world file

2020-05-06 Thread marco restelli
2020-05-06 11:29 GMT+02:00, marco restelli :
> Hi all,
>this is a bit off topic, but probably is not an unknown problem for
> many on the list.
>
> I am a long time gentoo user and I occasionally work on an Ubuntu
> system. I wonder
> whether there is an Ubuntu equivalent of the portage world file, to
> separate the packages
> installed because the user wants them and those that are only there as
> a dependency.

So, I finally found it short after posting:

 apt-mark showauto
 apt-mark showmanual

does the job.

Marco



[gentoo-user] [OT] ubuntu equivalent of world file

2020-05-06 Thread marco restelli
Hi all,
   this is a bit off topic, but probably is not an unknown problem for
many on the list.

I am a long time gentoo user and I occasionally work on an Ubuntu
system. I wonder
whether there is an Ubuntu equivalent of the portage world file, to
separate the packages
installed because the user wants them and those that are only there as
a dependency.

Thank you
   Marco



Re: [gentoo-user] Kernel modules: initramfs vs. /lib/modules

2017-02-16 Thread marco restelli
2017-02-15 16:19 GMT+01:00, Rich Freeman <ri...@gentoo.org>:
>>
>>> Anytime you see something like root=UUID=* that is being handled by an
>>> initramfs.
>>
>> I understand that this parameter is passed by the kernel to the init
>> script inside the initramfs which then uses "busybox findfs" to
>> translate the UUID into a device name. Is this correct?
>>
>
> I suppose that is one way it could be done, but of course it could be
> implemented in other ways.  As far as I can tell Dracut does not use
> busybox findfs.

OK, yes. Indeed I was looking at the init used by genkernel.

Marco



Re: [gentoo-user] Kernel modules: initramfs vs. /lib/modules

2017-02-15 Thread marco restelli
2017-02-13 12:47 GMT+01:00, Johannes Rosenberger <gen...@jorsn.eu>:
> On 13.02.2017 12:34, Rich Freeman wrote:
>> On Mon, Feb 13, 2017 at 5:53 AM, marco restelli <mreste...@gmail.com>
>> wrote:
>>> Could you suggest any reference about how an initramfs can help making
>>> it easier to identify the correct root filesystem? Does this
>>> functionality overlap with what grub can do, or is something
>>> different?
>>>
>> The dracut references are fairly extensive, but they probably assume
>> that you already know about something like this.
>>
>> [...]
>
> There is some very good documentation about crafting your own initramfs
> it the Gentoo wiki:
> https://wiki.gentoo.org/wiki/Custom_Initramfs
> https://wiki.gentoo.org/wiki/Early_Userspace_Mounting

Johannes, these documents are indeed very informative, thank you for
pointing them out.

Marco



Re: [gentoo-user] Kernel modules: initramfs vs. /lib/modules

2017-02-15 Thread marco restelli
2017-02-13 12:34 GMT+01:00, Rich Freeman <ri...@gentoo.org>:
> On Mon, Feb 13, 2017 at 5:53 AM, marco restelli <mreste...@gmail.com>
> wrote:
>>
>> Could you suggest any reference about how an initramfs can help making
>> it easier to identify the correct root filesystem? Does this
>> functionality overlap with what grub can do, or is something
>> different?
>>
>
> The dracut references are fairly extensive, but they probably assume
> that you already know about something like this.  Keep in mind that on
> virtually all other distros end-users aren't expected to set up their
> own kernels or initramfs so there isn't a lot of general documentation
> out there.  And even within Gentoo a lot of people seem to avoid an
> initramfs, so our own docs may not be as extensive as they could be.

Yes, indeed I have always used gentoo without an initramfs and I am
now looking into it because I want to make a bootable USB.

> The short version is that the kernel is very limited in what it can
> take in the root= option on the command line, and grub and other
> bootloaders don't do anything to ID the root filesystem other than
> passing whatever root= parameter you specify (I'd be interested in any
> info to the contrary).

I have always generated grub.cfg files with grub-mkconfig. In some
cases I see here

search --no-floppy --fs-uuid --set=root 
linux   /kernel-XYZ root=/dev/sda4 ro

As far as I understand it, the first line searches the partition where
the kernel is located identifying it through the UUID. Then the second
line loads the kernel passing /dev/sda4 as the system root.

On the bootable USB stick, with an initramfs, however I have

search --no-floppy --fs-uuid --set=root 
linux   /kernel-XYZ root=UUID= ro

so now also the root filesystem is identified by its UUID.

Based on your comment that:

> Anytime you see something like root=UUID=* that is being handled by an
> initramfs.

I understand that this parameter is passed by the kernel to the init
script inside the initramfs which then uses "busybox findfs" to
translate the UUID into a device name. Is this correct?

> Basically an initramfs should be viewed as an extended bootloader.
> For more exotic setups they're essentially required (such as
> network-based root filesystems).  The trend has also been to not add
> new root-finding capabilities to the kernel as the initramfs is the
> preferred way of doing things.  If lvm+mdadm were being built today,
> I'm not sure they would make the kernel capable of directly mounting
> them as root.

OK.

Thank you again,
   Marco



Re: [gentoo-user] Kernel modules: initramfs vs. /lib/modules

2017-02-13 Thread marco restelli
2017-02-10 13:35 GMT+01:00, Rich Freeman <ri...@gentoo.org>:
> On Fri, Feb 10, 2017 at 6:58 AM, marco restelli <mreste...@gmail.com>
> wrote:
>> Hi all,
>>I am trying to understand a bit initramfs and genkernel and I have
>> few (basic) questions.
>
>> - how does genkernel decide which modules to put in the initramfs ?
>
> I can't speak to genkernel specifically, but most initramfs generators
> include all modules.  Other than space and miniscule load time there
> isn't much reason not to.

After checking, genkernel copies only some modules into the initramfs,
unless the --all-ramdisk-modules flag is used.

Concerning the rest of your reply: thank you so much, it really helped
me a lot!

Could you suggest any reference about how an initramfs can help making
it easier to identify the correct root filesystem? Does this
functionality overlap with what grub can do, or is something
different?

Thank you,
   Marco



[gentoo-user] Kernel modules: initramfs vs. /lib/modules

2017-02-10 Thread marco restelli
Hi all,
   I am trying to understand a bit initramfs and genkernel and I have
few (basic) questions.

I understand that one must have in the initramfs those modules which
are required to boot the system, for instance to access /dev . Now:

- can a module be present both in the initramfs and as kernel module
  in /lib/modules ?

- how does genkernel decide which modules to put in the initramfs ?

- can modules included in the initramfs be unloaded once the system is
  running, as  modprobe -r

- can modprobe load modules from the initramfs ?


Well, clearly I am a bit confused about the topic - I hope somebody
can help me a bit!

Thank you,
   Marco



[gentoo-user] Re: USB installation using grub 2 and efi

2017-02-07 Thread marco restelli
2017-02-06 21:44 GMT+01:00, marco restelli <mreste...@gmail.com>:
> Hi all,
>I would like to build a bootable USB which behaves as a normal
> installation (saving files, updates etc.) and which is reasonably
> portable across various computers. I am following
>
> https://wiki.gentoo.org/wiki/Install_Gentoo_on_a_bootable_USB_stick/en
>
> which seems to describe what I am looking for. I am adapting the above
> instructions to use grub2 with efi, using one partition for /boot and
> another for /boot/efi .
>
> I can boot the USB once, but then at the next reboot my hard drive
> installation is corrupted and can not be booted anymore. I have to
> reinstall grub from another live USB.

Replying to my e-mail: it seems that using --removable when calling
grub-install solves the problem.

Marco



[gentoo-user] USB installation using grub 2 and efi

2017-02-06 Thread marco restelli
Hi all,
   I would like to build a bootable USB which behaves as a normal
installation (saving files, updates etc.) and which is reasonably
portable across various computers. I am following

https://wiki.gentoo.org/wiki/Install_Gentoo_on_a_bootable_USB_stick/en

which seems to describe what I am looking for. I am adapting the above
instructions to use grub2 with efi, using one partition for /boot and
another for /boot/efi .

I can boot the USB once, but then at the next reboot my hard drive
installation is corrupted and can not be booted anymore. I have to
reinstall grub from another live USB.

My questions:

1) is the above link a good reference for what I am trying to do?

2) what can corrupt the main driver when booting from the USB
installation?

3) is there another reference for what I am doing? (live USB are a
different thing, since unless I am mistaken the installation can not
be changed, although it is possible to mount a writable partition)

The fact that the main installation is corrupted is of course what
worries me most, since for this USB to be make sense I should be more
or less confident that at least it does not corrupt the main
installation.

I have no problems providing additional details, if I knew what would
be useful.

Thank you!
Marco



Re: [gentoo-user] inittab changes sysvinit-2.88-r7 to sys-apps/sysvinit-2.88-r9

2016-06-24 Thread Marco Felettigh
Thanks

Ciao
Marco


On Fri, 24 Jun 2016 08:17:26 +
"Luigi 'Comio' Mantellini" <luigi.mantell...@gmail.com> wrote:

> Hi,
> 
> you can find the answer here:
> 
> https://bugs.gentoo.org/show_bug.cgi?id=487384
> 
> ciao
> 
> luigi
> 
> UE is us. We are UE.
> 
> Il giorno ven 24 giu 2016 alle ore 10:12 <ma...@nucleus.it> ha
> scritto:
> 
> > After update to sys-apps/sysvinit-2.88-r9 the inittab want to change
> > some parameters:
> >
> > -l0s:0:wait:/sbin/halt -dhp
> > +l0s:0:wait:/sbin/halt -dhnp
> >
> > -l6r:6:wait:/sbin/reboot -dk
> > +l6r:6:wait:/sbin/reboot -dkn
> >
> > halt/reboot man:
> > -n Don't sync before reboot or halt. Note that the kernel and
> > storage drivers may still sync.
> >
> > why changig default to -n so no syncing ?
> > This seems a bad default .
> >
> > Any reasons for this change ?
> > I didn't find any bugs o other doc.
> >
> > Best regards
> > Marco
> >
> > --  
> Luigi Mantellini




[gentoo-user] inittab changes sysvinit-2.88-r7 to sys-apps/sysvinit-2.88-r9

2016-06-24 Thread marco
After update to sys-apps/sysvinit-2.88-r9 the inittab want to change
some parameters:

-l0s:0:wait:/sbin/halt -dhp
+l0s:0:wait:/sbin/halt -dhnp

-l6r:6:wait:/sbin/reboot -dk
+l6r:6:wait:/sbin/reboot -dkn

halt/reboot man:
-n Don't sync before reboot or halt. Note that the kernel and
storage drivers may still sync.

why changig default to -n so no syncing ?
This seems a bad default .

Any reasons for this change ?
I didn't find any bugs o other doc.

Best regards
Marco 



Re: [gentoo-user] Layman and Git branch

2016-06-17 Thread marco
I have a profile for my config , additional ebuilds , packages etc but
i'm looking for the best way to have a production-profile and a
devel-profile.

Better have two separeted git , one for production and one for devel ?
or better one git and use branch functions ?

With Layman and two git repo i can sync each repo when i want and i can
enable/disable one of them to switch from/to production/devel .


I don't know how to do that directly with git.

Best regards
Marco




On Thu, 16 Jun 2016 11:46:12 -0700
Bryan Gardiner <b...@khumba.net> wrote:

> On Thu, 16 Jun 2016 17:52:26 +0200
> ma...@nucleus.it wrote:
> 
> > Hi,
> > i have a layman git profile to store my stuff.
> > 
> > Is possible to force layman -S to sync a specific branch ?  
> 
> This is speculation (and a bit of looking at Portage code), since I
> haven't tried this.  Ignoring Layman, repos.conf repositories support
> syncing[1], so does it work to create:
> 
> /etc/portage/repos.conf/myrepo.conf:
> 
> [myrepo]
> location = /path/to/local/repo
> sync-type = git
> sync-uri = git://...
> auto-sync = yes
> 
> and just emerge --sync?  If you didn't have the local repo already
> then it would clone and use master, but I suspect that you can switch
> branches afterward, and Portage will simply call "git pull".
> 
> There also seem to be extra options "sync-git-clone-extra-opts" and
> "sync-git-pull-extra-opts" for git modules, so you might be able to
> set:
> 
> sync-git-clone-extra-opts = --branch somebranch
> 
> to fix initially checking out master.
> 
> HTH,
> Bryan
> 
> [1] https://wiki.gentoo.org/wiki/Project:Portage/Sync
> 




[gentoo-user] Layman and Git branch

2016-06-16 Thread marco
Hi,
i have a layman git profile to store my stuff.

Is possible to force layman -S to sync a specific branch ?



Re: [gentoo-user] Emerge config files update question

2016-06-16 Thread marco
Ok ,
/var/lib/portage/config keeps the hashes of the original modified files.

Thanks
Marco



On Wed, 15 Jun 2016 17:14:01 +0100
Neil Bothwick <n...@digimed.co.uk> wrote:

> On Wed, 15 Jun 2016 18:07:21 +0200, ma...@nucleus.it wrote:
> 
> > then i change parameters in /etc/dhcp/dhcpd.conf
> > and /etc/conf.d/dhcpd
> > 
> > then i upgrade the net-misc/dhcp (net-misc/dhcp ~amd64)
> > 
> > emerge -v1 net-misc/dhcp 
> > [ebuild U ~] net-misc/dhcp-4.3.4::gentoo [4.3.3_p1::gentoo]
> > 
> > but when the update finished i don't have any etc-update to do .
> > 
> > Why emerge do not create new ._cfg_dhcpd.conf
> > and ._cfg_dhcpd ?  
> 
> Because portage has a degree of intelligence. If the upstream config
> file has not changed, there is no need to run etc-update.
> 
> 



[gentoo-user] Emerge config files update question

2016-06-15 Thread marco
Hi all,
i need explanation about how emerge does updates of config files.

example:
emerge -v1 =net-misc/dhcp-4.3.3_p1

then i change parameters in /etc/dhcp/dhcpd.conf and /etc/conf.d/dhcpd

then i upgrade the net-misc/dhcp (net-misc/dhcp ~amd64)

emerge -v1 net-misc/dhcp 
[ebuild U ~] net-misc/dhcp-4.3.4::gentoo [4.3.3_p1::gentoo]

but when the update finished i don't have any etc-update to do .

Why emerge do not create new ._cfg_dhcpd.conf and ._cfg_dhcpd ?

best regards
Marco




[gentoo-user] Re: Problem compiling dev-lang/gdl-0.9.4

2015-04-28 Thread marco restelli
Sorry, the subject in my previous message was wrong.

Marco

2015-04-28 15:53 GMT+0200, marco restelli mreste...@gmail.com:
 Hi all,
I am trying to install dev-lang/gdl-0.9.4 but I see the following
 error:


 -- Could NOT find PLPLOT (missing:  PLPLOT_LIBRARIES)
 CMake Error at CMakeLists.txt:313 (message):
   plplot library is required but was not found.

   Use -DPLPLOTDIR=DIR to specify the plplot directory tree.

   (suitable Debian/Ubuntu packages: libplplot-dev,
   [plplot9-driver-xwin])(suitable Fedora package: plplot-devel)


 I have plplot with use flags

  * Found these USE flags for sci-libs/plplot-5.11.0:
  U I
  + + X: Add support for X11
  - - ada  : Add bindings for the ADA programming
 language
  + + cairo: Enable support for the cairo graphics
 library
  + + cxx  : Build support for C++ (bindings, extra
 libraries, code generation, ...)
  - - doc  : Add extra documentation (API, Javadoc,
 etc). It is recommended to enable per package instead of globally
  + + dynamic  : Build with dynamic drivers
  - - examples : Install examples, usually source code
  + + fortran  : Add support for fortran
  - - gd   : Add support for media-libs/gd (to
 generate graphics on the fly)
  - - java : Add support for Java
  + + jpeg : Add JPEG image support
  + + latex: Add support for LaTeX (typesetting package)
  + + lua  : Enable Lua scripting support
  - - ocaml: Add support/bindings for the Ocaml language
  - - octave   : Add bindings for sci-mathematics/octave
  + + pdf  : Add general support for PDF (Portable
 Document Format), this replaces the pdflib and cpdflib flags
  - - pdl  : Add bindings for dev-perl/PDL
  + + png  : Add support for libpng (PNG images)
  - - python   : Add optional support/bindings for the
 Python language
  + + python_targets_python2_7 : Build with Python 2.7
  - - qhull: Add bindings for media-libs/qhull
  + + qt4  : Add support for the Qt GUI/Application
 Toolkit version 4.x
  - - shapefile: Enable support for ESRI shapefiles
  + + svg  : Add support for SVG (Scalable Vector
 Graphics)
  - - tcl  : Add support the Tcl language
  - - test : Workaround to pull in packages needed
 to run with FEATURES=test. Portage-2.1.2 handles this internally, so
 don't set it in make.conf/package.use anymore
  - - threads  : Add threads support for various
 packages. Usually pthreads
  - - tk   : Add support for Tk GUI toolkit
  + + truetype : Add support for FreeType and/or FreeType2
 fonts
  - - wxwidgets: Add support for wxWidgets/wxGTK GUI toolkit


 Does anybody have a suggestion?

 Thank you,
Marco




[gentoo-user] Problem compiling sci-libs/plplot-5.11.0

2015-04-28 Thread marco restelli
Hi all,
   I am trying to install dev-lang/gdl-0.9.4 but I see the following
error:


-- Could NOT find PLPLOT (missing:  PLPLOT_LIBRARIES)
CMake Error at CMakeLists.txt:313 (message):
  plplot library is required but was not found.

  Use -DPLPLOTDIR=DIR to specify the plplot directory tree.

  (suitable Debian/Ubuntu packages: libplplot-dev,
  [plplot9-driver-xwin])(suitable Fedora package: plplot-devel)


I have plplot with use flags

 * Found these USE flags for sci-libs/plplot-5.11.0:
 U I
 + + X: Add support for X11
 - - ada  : Add bindings for the ADA programming language
 + + cairo: Enable support for the cairo graphics library
 + + cxx  : Build support for C++ (bindings, extra
libraries, code generation, ...)
 - - doc  : Add extra documentation (API, Javadoc,
etc). It is recommended to enable per package instead of globally
 + + dynamic  : Build with dynamic drivers
 - - examples : Install examples, usually source code
 + + fortran  : Add support for fortran
 - - gd   : Add support for media-libs/gd (to
generate graphics on the fly)
 - - java : Add support for Java
 + + jpeg : Add JPEG image support
 + + latex: Add support for LaTeX (typesetting package)
 + + lua  : Enable Lua scripting support
 - - ocaml: Add support/bindings for the Ocaml language
 - - octave   : Add bindings for sci-mathematics/octave
 + + pdf  : Add general support for PDF (Portable
Document Format), this replaces the pdflib and cpdflib flags
 - - pdl  : Add bindings for dev-perl/PDL
 + + png  : Add support for libpng (PNG images)
 - - python   : Add optional support/bindings for the
Python language
 + + python_targets_python2_7 : Build with Python 2.7
 - - qhull: Add bindings for media-libs/qhull
 + + qt4  : Add support for the Qt GUI/Application
Toolkit version 4.x
 - - shapefile: Enable support for ESRI shapefiles
 + + svg  : Add support for SVG (Scalable Vector Graphics)
 - - tcl  : Add support the Tcl language
 - - test : Workaround to pull in packages needed
to run with FEATURES=test. Portage-2.1.2 handles this internally, so
don't set it in make.conf/package.use anymore
 - - threads  : Add threads support for various
packages. Usually pthreads
 - - tk   : Add support for Tk GUI toolkit
 + + truetype : Add support for FreeType and/or FreeType2 fonts
 - - wxwidgets: Add support for wxWidgets/wxGTK GUI toolkit


Does anybody have a suggestion?

Thank you,
   Marco



[gentoo-user] Mysql upgrade from 5.5 to 5.6 not trigger rebuild fot php-5.3

2015-02-19 Thread marco
Hi,
i have a server with dev-db/mysql-5.5.40 and dev-lang/php-5.3.29 .
After the upgrade from dev-db/mysql-5.5.40 to dev-db/mysql-5.6.22 the
mysql_connect give some warnings:

PHP Warning:  mysql_connect(): Headers and client library minor version
mismatch. Headers:50540 Library:50622 in 

The warning disappear if i rebuild dev-lang/php-5.3.29 .

The question is:
why the mysql update dind't triggered the rebuild for
dev-lang/php-5.3.29 ?

Thanks Marco



[gentoo-user] openrc and sysvinit init script

2014-09-03 Thread marco
Hi ,
i know that maybe this question was asked many many times :) .

Openrc has a compatibility for run, add/delete to runlevel etc ,
sysvinit init script or i have to rewrite the scripts or maybe use a
wrapper ?

Thanks Marco




[gentoo-user] binary package signature

2014-02-07 Thread marco
Hi,
is it possible to sign a binary package to prevent it to be
compromised ?

If yes how can i check the signature from the package downloaded by
PORTAGE_BINHOST ?

Thanks :)




Re: [gentoo-user] serial in /sys

2012-11-29 Thread Marco Bonfiglio
2012/11/29 Jorge Almeida jjalme...@gmail.com

 Anyone knows how to dig into /sys to find the serial number of a device
 (say,
 a USB pen)? I few days ago I found by trial and error something like
 $ cat
 /sys/devices/pci:00/:00:06.1/usb2/2-4/2-4:1.0/host13/target13:0:0/13:0:0:0/block/sdc/../../../../../serial
 which gave me E68911000519
 Now I can't find nothing of the sort. (Yes, I know the path changes
 each time the
 device is plugged in, but even so)
 Any information that would put some order into this mess would be great.

 TIA

 Joreg Almeida


If by serial you mean UUID I personally use ls -l /dev/disk/by-uuid/

Marco Bonfiglio


Re: [gentoo-user] How to build a time machine on Gentoo

2010-08-16 Thread Marco
On Mon, Aug 16, 2010 at 1:11 AM, Nganon nganon+gen...@gmail.com wrote:
 [...]
 Here is what I wanna do. I want to have only one big backup for, say,
 userA-2010.08.07.tgz and other small backup tars containing only the
 files/folders that were modified since last update, 2010.08.07, as
 userA-diff-2010.08.14.tgz, userA-diff-2010.08.21.tgz,
  userA-diff-2010.08.28.tgz
 etc. Now if I want to take the userA back to the future, 2010.08.21,  I want
 to
 do it by first extracting the huge tar userA-2010.08.07.tgz and then the
 tiny
 backup userA-diff-2010-08-21.tgz.

backup2l can do exactly what you want:

http://backup2l.sourceforge.net/

HTH!

--
Marco



Re: [gentoo-user] Fluxbox not starting after login with SLIM

2010-01-18 Thread Marco
Hi,

sorry for late reply. I was on a business trip.

Mick's link got me to the solution of the problem. Related information
can also be found under
http://www.gentoo.org/doc/en/openrc-migration.xml

echo 'XSESSION=fluxbox'  /etc/env.d/90xsession

solved my problem.

(Now I've got to find out what other impacts this Baselayout and
OpenRC Migration Guide causes...)

Thanks for your tips!

--
Regards,
 Marco














On Mon, Jan 11, 2010 at 10:48 AM, Mick michaelkintz...@gmail.com wrote:
 2010/1/10 Ngoc Nguyen Bao baongoc...@gmail.com:


 On Mon, Jan 11, 2010 at 3:42 AM, Marco listwo...@gmail.com wrote:

 Hi,

 I updated my system and beside others, Xorg got updated. Now, when I
 log in with SLIM, fluxbox does not start anymore. I just get into an
 ugly x-session.

 In my ~/.xinitrc I have  exec startfluxbox which always got me into
 fluxbox after log in with SLIM. This is according to
 http://www.gentoo.org/doc/en/fluxbox-config.xml

 Killing X and then startx as user (non-root) I get into fluxbox...

 Thanks in advance for your tips!

 --
 Regards,
  Marco


 Hi, remove the line exec startfluxbox in your .xinitrc and append
 startfluxbox to sessions in /etc/slim.conf like this:
 # Available sessions (first one is the default).
 # The current chosen session name is replaced in the login_cmd
 # above, so your login command can handle different sessions.
 # see the xinitrc.sample file shipped with slim sources
 sessions   startfluxbox,compiz-session,startlxde,openbox

 And try to login again. Maybe it helps.

 I think that the OP's problem was caused by rc.conf not being sourced
 by the latest baselayout.  Have a look at this thread:

 http://article.gmane.org/gmane.linux.gentoo.user/224058

 --
 Regards,
 Mick





[gentoo-user] Fluxbox not starting after login with SLIM

2010-01-10 Thread Marco
Hi,

I updated my system and beside others, Xorg got updated. Now, when I
log in with SLIM, fluxbox does not start anymore. I just get into an
ugly x-session.

In my ~/.xinitrc I have  exec startfluxbox which always got me into
fluxbox after log in with SLIM. This is according to
http://www.gentoo.org/doc/en/fluxbox-config.xml

Killing X and then startx as user (non-root) I get into fluxbox...

Thanks in advance for your tips!

--
Regards,
 Marco



Re: [gentoo-user] Re: URGENT: Dead Keyboard after emerge --update world --deep

2009-10-07 Thread Marco
On Tue, Oct 6, 2009 at 8:49 PM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 On Dienstag 06 Oktober 2009, Grant Edwards wrote:
 On 2009-10-06, Marco listwo...@gmail.com wrote:
[...]
 there is a FAT warning. Maybe people should start reading the warnings and
 infos instead of panicing

I usully tend to read after I encounter an issue. So for the next
time, where can the postinst warns be found (log-file)?

--
Regards,
 Marco



[gentoo-user] URGENT: Dead Keyboard after emerge --update world --deep

2009-10-06 Thread Marco
Hi all,

after emerge --sync  emerge --update world --deep my keyboard (in X)
does not work anymore. Since I am switching to slim after boot, I
cannot even change to a console with Ctrl-Alt-F1. I guess something
went wrong with the Xorg-update.

I am now using a live-CD to be able to write this email.

Please let me know what information you need else (logs, etc.)

Any tips, hints and suggestions on how to solve my problem highly appreciated!

--
Best regards,
 Marco



Re: [gentoo-user] URGENT: Dead Keyboard after emerge --update world --deep

2009-10-06 Thread Marco
On Tue, Oct 6, 2009 at 3:56 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Tue, 6 Oct 2009 15:17:12 +, Marco wrote:

 after emerge --sync  emerge --update world --deep my keyboard (in X)
 does not work anymore. Since I am switching to slim after boot, I
 cannot even change to a console with Ctrl-Alt-F1. I guess something
 went wrong with the Xorg-update.

 What did you update?

Lots! About 140 packages (did not update for quite some time...).
Cannot attach a list since I am not having any gentoo-tools available
in my (SuSE Live-CD).

 Does startx work?

Yes, X does start. At least I get the slim login manager displayed.

 What does /var/log/Xorg.0.log show?

File is attached to this mail. Seems as module mouse and kbd cannot be loaded.

-- (EE) module ABI major version (2) doesn't match the server's version (4)

Two questions:
- Since Xorg is in the default runlevel, how can I boot into gentoo
without starting X (boot prompt option)?
- How can I recreate functional modules for mouse and kbd?

--
Regards,
 Marco

This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the xorg product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.4.0.90
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux linux 2.6.25.5-1.1-default #1 SMP 2008-06-07 01:55:22 +0200 x86_64
Build Date: 07 June 2008  01:46:20AM
 
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Tue Oct  6 17:01:54 2009
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout Layout[all]
(**) |--Screen Screen[0] (0)
(**) |   |--Monitor Monitor[0]
(**) |   |--Device Device[0]
(**) |--Input Device Keyboard[0]
(**) |--Input Device Mouse[1]
(**) |--Input Device Mouse[3]
(**) Option ZapWarning on
(**) Option AllowMouseOpenFail on
(**) Option Xinerama off
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory /usr/share/fonts/local does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/100dpi does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/Type1 does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/Speedo does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/PEX does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/cyrillic does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/latin2/misc does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/latin2/75dpi does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/latin2/100dpi does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/latin2/Type1 does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/latin7/75dpi does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/baekmuk does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/japanese does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/kwintv does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/uni does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/CID does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/ucs/misc does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/ucs/75dpi does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/ucs/100dpi does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/hellas/misc does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/hellas/75dpi does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/hellas/100dpi does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/hellas/Type1 does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/misc/sgi does not exist.
	Entry deleted from font path.
(WW) The directory /usr/share/fonts/xtest does not exist.
	Entry deleted from font path.
(WW) The directory /opt/kde3/share/fonts does not exist.
	Entry deleted from font path.
(==) Including the default font path /usr/share/fonts/misc:unscaled,/usr/share/fonts/TTF/,/usr

Re: [gentoo-user] Re: URGENT: Dead Keyboard after emerge --update world --deep

2009-10-06 Thread Marco
On Tue, Oct 6, 2009 at 4:24 PM, Grant Edwards grant.b.edwa...@gmail.com wrote:
 On 2009-10-06, Marco listwo...@gmail.com wrote:

 after emerge --sync  emerge --update world --deep my
 keyboard (in X) does not work anymore.

 I'm betting you need to re-emerge x11-drivers/xf86-input-keyboard
 (and probably x11-drivers/xf86-input-mouse and any other
 xf96-input-* packages you use).

That seems to be the problem! See my answer to Neil's mail.

 That seems to happen to me regularly.  One might think that the
 xorg-server ebuild should know that xf86-input-* needs to be
 rebuilt as well, but it doesn't seem to work that way.

Bug or feature?   ;-)



Re: [gentoo-user] URGENT: Dead Keyboard after emerge --update world --deep

2009-10-06 Thread Marco
On Tue, Oct 6, 2009 at 4:26 PM, Dale rdalek1...@gmail.com wrote:
 Marco wrote:
[...]
 What happens if you emerge xorg-server with hal disabled?

Cannot try this since I am not able to do anything as long as I am not
able to boot in to text-mode only... X is in default runlevel.

--
Regards,
 Marco



Re: [gentoo-user] Re: URGENT: Dead Keyboard after emerge --update world --deep

2009-10-06 Thread Marco
On Tue, Oct 6, 2009 at 7:09 PM, Albert Hopkins mar...@letterboxes.org wrote:
 On Tue, 2009-10-06 at 16:24 +, Grant Edwards wrote:
 That seems to happen to me regularly.  One might think that the
 xorg-server ebuild should know that xf86-input-* needs to be
 rebuilt as well, but it doesn't seem to work that way.

 It does. And the postinst warns that you need to re-merge all installed
 packages in the x11-drivers category.

You might be right there. Did not really read carefully...



Re: [gentoo-user] URGENT: Dead Keyboard after emerge --update world --deep

2009-10-06 Thread Marco
On Tue, Oct 6, 2009 at 7:04 PM, Kenneth Prugh ken69...@gmail.com wrote:
 Two questions:
 - Since Xorg is in the default runlevel, how can I boot into gentoo
 without starting X (boot prompt option)?

 Ever notice the press I for interactive mode during init? That's how
 you can stop it from launching X.

 - How can I recreate functional modules for mouse and kbd?

 emerge -av $(eix -IC x11-drivers --only-names) or emerge -av $(qlist -I
 x11-drivers) will rebuild all the modules.

That solved the problem! Still a build-error with the nvidia driver
though... But at least I can work again now.



Re: [gentoo-user] URGENT: Dead Keyboard after emerge --update world --deep

2009-10-06 Thread Marco
On Tue, Oct 6, 2009 at 6:51 PM,  meino.cra...@gmx.de wrote:
 Marco listwo...@gmail.com [09-10-06 18:44]:
 On Tue, Oct 6, 2009 at 4:26 PM, Dale rdalek1...@gmail.com wrote:
  Marco wrote:
 [...]
  What happens if you emerge xorg-server with hal disabled?

 Cannot try this since I am not able to do anything as long as I am not
 able to boot in to text-mode only... X is in default runlevel.

 --
 Regards,
  Marco


 Hi Marco,

 bad and ugly:

 Boot into grub menu (I only know this for grub, other bootmangers
 should have similiar).
 Inhibtit automatic boot by moving the select bar up and down with the
 cursor keys.
 If you have locked grub with a password (you have?) enter p and
 enter the password.
 Move the select bar onto the commandline, which give the kernel
 parameter.
 Press e for edit.
 Goto the end of the line
 Enter ' 2' after the last parameter.
 Press b for boot.
 You will end up on a commandline and you will be able to login.

 By the way:
 By giving  init=/bin/sh instead of  2 you can bypass the root
 and any other login.
 Thats why it is important to lock grub with a passsword.

 Thats only my lightspeed, your time machine brand may vary ;)

Thanks for that tip, but no success with it. I just found out about
the interactive boot mode ;-)



[gentoo-user] Re: URGENT: Dead Keyboard after emerge --update world --deep

2009-10-06 Thread Marco
On Tue, Oct 6, 2009 at 5:17 PM, Marco listwo...@gmail.com wrote:
 Hi all,
[...]

Problem solved! Thanks for all your tips and suggestions! Now back to
preparation of my job-interview tomorrow...

--
Best regards,
 Marco



[gentoo-user] QT4 Development

2009-09-24 Thread Marco
Hi all

I want to install QT4 for development. Since the QT4 meta ebuild is
masked, I am not sure what split packages are needed.
http://dev.gentoo.org/~yngwin/qt4-split-ebuilds.xml only tells me what
to install for applications depending on QT4.

Thanks for your help!

--
Regards,
 Marco



Re: [gentoo-user] QT4 Development

2009-09-24 Thread Marco
On Thu, Sep 24, 2009 at 12:08 PM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 On Donnerstag 24 September 2009, Marco wrote:
[...]
 just install the qt4 set. Meta packages are being phased out.

Not sure if I understand what you mean. I thought sets only exist for
world and system?

 Or unmask the meta package. /etc/portage/package.unmask.

That's what I want to avoid since apparently this meta package gets
removed in the future.

--
Regards,
 Marco



Re: [gentoo-user] QT4 Development

2009-09-24 Thread Marco
On Thu, Sep 24, 2009 at 12:33 PM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 On Donnerstag 24 September 2009, Marco wrote:
 On Thu, Sep 24, 2009 at 12:08 PM, Volker Armin Hemmann

 volkerar...@googlemail.com wrote:
  On Donnerstag 24 September 2009, Marco wrote:

 [...]

  just install the qt4 set. Meta packages are being phased out.

 Not sure if I understand what you mean. I thought sets only exist for
 world and system?

  Or unmask the meta package. /etc/portage/package.unmask.

 That's what I want to avoid since apparently this meta package gets
 removed in the future.

 --
 Regards,
  Marco


 so what? it really does not matter if it is there or not. And no - with 2.2*
 portage there are many more sets than just world and system. You can even
 easily create your own.

Well, I try to avoid installing such packages to not have migration
issues later.

And, yes, portage 2.2* apparently supports many more sets, but portage
2.2* is still masked and I don't know if there is a potental risk to
use it already.



Re: [gentoo-user] Luks: Which cipher to use

2009-09-09 Thread Marco
Hi Mike,

Thanks for your very detailed description and explanation!

On Wed, Sep 9, 2009 at 12:30 PM, Mike Kazantsevmk.frag...@gmail.com wrote:
 On Tue, 8 Sep 2009 11:21:12 +0200
 Marco listwo...@gmail.com wrote:

[...]

 ESSIV, on the other hand, uses the hash of these counters with the key
 itself to salt IV, so it seem to rule out all the aforementioned
 vulnerabilities. Hash strength here ensures that it can't be turned
 into former 'plain counters' case due to hash collision.


 XTS/LRW/CBC/... are methods to encrypt the single data block to a disk
 block. Since data is read in blocks, block also seem to be the atomic
 unit of data encryption - everything is en-/decrypted in whole blocks
 when read/written from/to disk.

 These methods further divide the disk block into a smaller units to
 ensure that there won't be a (similar to the above) case when two
 similar, say, 16-byte pieces in a single 512k disk block would look
 identical, otherwise some data with such watermarks can be generated
 and proven to be on this disk - whole blocks can be marked with them,
 so they can later be found, along with any known data between them.

 They also mix the key with some generated salt for these units.
 CBC relies on plain data, so it can be broken by crafted data. LRW also
 seem to suffer from some known vulnerabilities, so XTS seem to be the
 best and recommended one.

So I think I'll go with xts-essiv:sha256. In terms of performance, a
keylength of 256 might not be ideal. But since this external drive is
mainly thought as a backup device,this is not too much of a drawback.

--
Best regards,
 Marco



[gentoo-user] Luks: Which cipher to use

2009-09-08 Thread Marco
Hi all,

I am about to encrypt my external hard drive. I found the howtos
http://de.gentoo-wiki.com/wiki/DM-Crypt and
http://de.gentoo-wiki.com/wiki/DM-Crypt/Daten-Partition_verschl%C3%BCsseln
(sorry, German...). They give a good understanding of how to do the
stuff, but I am unsure about which cipher to use. LRW is considered
insecure in some cases so thus it should be replaced by XTS which is
experimental though... Furthermore, if using XTS is used, there is
different options like xts-plain, xts-benbi, xts-essiv:sha256. Which
option is preferable? What about the key size? Is there any relation
between key size and block size of the file system in terms of data
security?

Thanks for your tips and suggestions!

--
Regards,
 Marco



[gentoo-user] {OT} Printer recommendation

2009-08-10 Thread Marco
Hi,

I intend to buy a new printer and would like to get some
recommendations/experiences from you (to be sure to get it working
with Linux). Here is what I'd like:
- B/W and Color printing
- Network attached (LAN)
- Mostly used for office documents / rare graphics printing
- Reasonably priced refill cartridges
- Price up to ~ 180 US$

I am especially interested in your experience to get it working under Linux.

Thanks for your tips!

--
Best regards,
 Marco



Re: [gentoo-user] iptables

2009-07-16 Thread Marco
Hi Dave,

this one is rather informative:

http://www.novell.com/coolsolutions/feature/18139.html

Also, this one from gentoo (although for 2.4) is worth reading:

http://www.gentoo.org/doc/en/articles/linux-24-stateful-fw-design.xml

HTH!

--
Regards,
 Marco



On Thu, Jul 16, 2009 at 5:32 AM, Davedave.meh...@gmail.com wrote:
 Hello,
        I'm looking for a guide for iptables specifically for gentoo 2.6.
        I was also wondering if anyone was using apf Advanced Policy
 Firewall on a gentoo 2008.0 2.6 machine?
 Thanks.
 Dave.






Re: [gentoo-user] iptables

2009-07-16 Thread Marco
Maybe this thread could be helpful as well:

http://marc.info/?l=gentoo-userm=124058693215810w=2

--
Regards,
 Marco


On Thu, Jul 16, 2009 at 10:41 AM, Marcolistwo...@gmail.com wrote:
 Hi Dave,

 this one is rather informative:

 http://www.novell.com/coolsolutions/feature/18139.html

 Also, this one from gentoo (although for 2.4) is worth reading:

 http://www.gentoo.org/doc/en/articles/linux-24-stateful-fw-design.xml

 HTH!

 --
 Regards,
  Marco



 On Thu, Jul 16, 2009 at 5:32 AM, Davedave.meh...@gmail.com wrote:
 Hello,
        I'm looking for a guide for iptables specifically for gentoo 2.6.
        I was also wondering if anyone was using apf Advanced Policy
 Firewall on a gentoo 2008.0 2.6 machine?
 Thanks.
 Dave.







[gentoo-user] Re: Getting Cardreader running on Asus F3SC

2009-07-11 Thread Marco
Hi again,

I got my card reader running:

~# lspci
[...]
09:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro
Host Adapter (rev 22)
09:01.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
09:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host
Adapter (rev 12)
09:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)
[...]

Then I had to recompile my kernel:
~# cd /usr/src/linux
~# diff .config.old .config
2647c2647,2648
 # CONFIG_MMC_SDHCI_PCI is not set
---
 CONFIG_MMC_SDHCI_PCI=m
 CONFIG_MMC_RICOH_MMC=m

Rebooting and the SD card appears as /dev/mmcblk0.

--
Regards,
 Marco


On Tue, Jul 7, 2009 at 6:11 PM, Marcolistwo...@gmail.com wrote:
 Hi all,

 I'm trying to get my SD-card reader running on my Asus F3SC notebook.
 http://www.linlap.com/wiki/asus+f3sc tells me that I have to load
 modules sdhci and mmc_core.

 ~# modprobe mmc_core
 ~# modprobe sdhci
 ~# lsmod | grep mmc_core
 mmc_core               34496  1 sdhci
 ~# lsmod | grep sdhci
 sdhci                  15364  0
 mmc_core               34496  1 sdhci
 ~# tail -f /var/log/messages

 I insert my SD card, but there is not device recognized in the log.

 Any tips on what I'm doing wrong or what I'm missing?

 Thanks!

 --
 Best regards,
  Marco




[gentoo-user] Getting Cardreader running on Asus F3SC

2009-07-07 Thread Marco
Hi all,

I'm trying to get my SD-card reader running on my Asus F3SC notebook.
http://www.linlap.com/wiki/asus+f3sc tells me that I have to load
modules sdhci and mmc_core.

~# modprobe mmc_core
~# modprobe sdhci
~# lsmod | grep mmc_core
mmc_core   34496  1 sdhci
~# lsmod | grep sdhci
sdhci  15364  0
mmc_core   34496  1 sdhci
~# tail -f /var/log/messages

I insert my SD card, but there is not device recognized in the log.

Any tips on what I'm doing wrong or what I'm missing?

Thanks!

--
Best regards,
 Marco



[gentoo-user] Wireless not working anymore

2009-06-29 Thread Marco
Hi all,

after some updating (emerge --sync and emerge --update --deep world,
etc.) my wirelss card does not work anymore.

In the boot messagesI have:
[...]
 * Starting wlan0
SIOCSIFFLAGS: No such file or directory
SIOCSIFFLAGS: No such file or directory
 *   Starting wpa_supplicant on wlan0 ...
SIOCSIFFLAGS: No such file or directory
SIOCSIFFLAGS: No such file or directory
Could not set interface 'wlan0' UP
[ ok ] *   Starting wpa_cli on wlan0 ...
[ ok ] * Backgrounding ...
[...]

And dmesg shows:
[...]
iwl3945 :03:00.0: PCI INT A - GSI 17 (level, low) - IRQ 17
iwl3945 :03:00.0: restoring config space at offset 0x1 (was
0x100102, writing 0x100106)
firmware: requesting iwlwifi-3945-1.ucode
iwl3945: iwlwifi-3945-1.ucode firmware file req failed: Reason -2
iwl3945: Could not read microcode: -2
iwl3945 :03:00.0: PCI INT A disabled
iwl3945 :03:00.0: PCI INT A - GSI 17 (level, low) - IRQ 17
iwl3945 :03:00.0: restoring config space at offset 0x1 (was
0x100102, writing 0x100106)
firmware: requesting iwlwifi-3945-1.ucode
iwl3945: iwlwifi-3945-1.ucode firmware file req failed: Reason -2
iwl3945: Could not read microcode: -2
iwl3945 :03:00.0: PCI INT A disabled
iwl3945 :03:00.0: PCI INT A - GSI 17 (level, low) - IRQ 17
iwl3945 :03:00.0: restoring config space at offset 0x1 (was
0x100102, writing 0x100106)
firmware: requesting iwlwifi-3945-1.ucode
iwl3945: iwlwifi-3945-1.ucode firmware file req failed: Reason -2
iwl3945: Could not read microcode: -2
iwl3945 :03:00.0: PCI INT A disabled
iwl3945 :03:00.0: PCI INT A - GSI 17 (level, low) - IRQ 17
iwl3945 :03:00.0: restoring config space at offset 0x1 (was
0x100102, writing 0x100106)
firmware: requesting iwlwifi-3945-1.ucode
iwl3945: iwlwifi-3945-1.ucode firmware file req failed: Reason -2
iwl3945: Could not read microcode: -2
iwl3945 :03:00.0: PCI INT A disabled
[...]

Some research on 'SIOCSIFFLAGS: No such file or directory' showed that
this is often caused by missing firmware for the wireless card. But
net-wireless/iwl3945-ucode is installed on my system.

Any hints on how to fix?

Thanks!

--
Regards,
 Marco



Re: [gentoo-user] Wireless not working anymore

2009-06-29 Thread Marco
On Mon, Jun 29, 2009 at 11:30 AM, Alan McKinnonalan.mckin...@gmail.com wrote:
 On Monday 29 June 2009 11:29:22 Marco wrote:
 Hi all,

 after some updating (emerge --sync and emerge --update --deep world,
 etc.) my wirelss card does not work anymore.

 In the boot messagesI have:
 [...]
  * Starting wlan0
 SIOCSIFFLAGS: No such file or directory
 SIOCSIFFLAGS: No such file or directory
  *   Starting wpa_supplicant on wlan0 ...
 SIOCSIFFLAGS: No such file or directory
 SIOCSIFFLAGS: No such file or directory
 Could not set interface 'wlan0' UP
 [ ok ] *   Starting wpa_cli on wlan0 ...
 [ ok ] *     Backgrounding ...
 [...]

 And dmesg shows:
 [...]
 iwl3945 :03:00.0: PCI INT A - GSI 17 (level, low) - IRQ 17
 iwl3945 :03:00.0: restoring config space at offset 0x1 (was
 0x100102, writing 0x100106)
 firmware: requesting iwlwifi-3945-1.ucode
 iwl3945: iwlwifi-3945-1.ucode firmware file req failed: Reason -2
 iwl3945: Could not read microcode: -2

 Did you install the microcode?

emerge -pv net-wireless/iwl3945-ucode

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-wireless/iwl3945-ucode-15.32.2.9  66 kB

Total: 1 package (1 reinstall), Size of downloads: 66 kB

Yes, it seems to be installed.

--
Regards,
 Marco



Re: [gentoo-user] Wireless not working anymore

2009-06-29 Thread Marco
On Mon, Jun 29, 2009 at 11:44 AM, Neil Bothwickn...@digimed.co.uk wrote:
 On Mon, 29 Jun 2009 11:29:22 +0200, Marco wrote:

 after some updating (emerge --sync and emerge --update --deep world,
 etc.) my wirelss card does not work anymore.

 What did you update? Telling us you updated wporld means nothing, it just
 tells us that one of the unknown packages you updated may have broken
 something. Use genlop or qlop to produce a list of the exact packages
 installed.

I installed a file containing the output of 'qlop -l'

 iwl3945: iwlwifi-3945-1.ucode firmware file req failed: Reason -2
 iwl3945: Could not read microcode: -2
 [snip]
 Some research on 'SIOCSIFFLAGS: No such file or directory' showed that
 this is often caused by missing firmware for the wireless card. But
 net-wireless/iwl3945-ucode is installed on my system.

 You may have it installed, but it is either in the wrong place or an
 incompatible version as the kernel cannot load it.

How can I find out about that? Where should it be located?

--
Regards,
 Marco


qlop.list
Description: Binary data


Re: [gentoo-user] Wireless not working anymore

2009-06-29 Thread Marco
On Mon, Jun 29, 2009 at 11:57 AM, Marcolistwo...@gmail.com wrote:
 On Mon, Jun 29, 2009 at 11:44 AM, Neil Bothwickn...@digimed.co.uk wrote:
 On Mon, 29 Jun 2009 11:29:22 +0200, Marco wrote:

 after some updating (emerge --sync and emerge --update --deep world,
 etc.) my wirelss card does not work anymore.

 What did you update? Telling us you updated wporld means nothing, it just
 tells us that one of the unknown packages you updated may have broken
 something. Use genlop or qlop to produce a list of the exact packages
 installed.

 I installed a file containing the output of 'qlop -l'
^^
attached I mean...



Re: [gentoo-user] Wireless not working anymore

2009-06-29 Thread Marco
On Mon, Jun 29, 2009 at 12:09 PM, Neil Bothwickn...@digimed.co.uk wrote:
 On Mon, 29 Jun 2009 11:57:41 +0200, Marco wrote:

[...]

 It looks like you installed a new microcode package two days ago, that
 may be incompatible with your card. Have you tried rolling back to the
 previous version?

I just rolled back to iwl3945-ucode-15.28.1.6. Wireless is working again.

Is the fact that the new version 15.32.2.9 does not work anymore
something I should report in the bug database?

  You may have it installed, but it is either in the wrong place or an
  incompatible version as the kernel cannot load it.

 How can I find out about that? Where should it be located?

 qlist will show where is is installed, /lib/firmware is the standard
 location.

There it is!

Thanks for your support!

--
Regards,
 Marco



Re: [gentoo-user] Removing qt4 meta

2009-06-28 Thread Marco
Hi all,

thanks for all your tips! Also found some inconsistencies in my
installation, which I was able to fix.

--
Regards,
 Marco



On Sat, Jun 27, 2009 at 7:04 PM, Alan McKinnonalan.mckin...@gmail.com wrote:
 On Saturday 27 June 2009 18:13:56 Marco wrote:
 On Sat, Jun 27, 2009 at 2:33 PM, Sebastian

 Beßlerwebmas...@darkmetatron.de wrote:
  Marco schrieb:
  On Sat, Jun 27, 2009 at 2:02 PM, Dirk Heinrichsdirk.heinri...@online.de
 wrote:
  Am Samstag 27 Juni 2009 15:51:20 schrieb Marco:

 [...]

  If you have eix installed you could use
  eix -I --only-names x11-libs/qt |xargs emerge -C
 
  or if you have no package that depends on qt
  emerge --depclean -a
  after emerge -C x11-libs/qt
  should do the job.

 Is there a way to find out if packages depend on qt? Although I think
 I did not install any packages that depend on qt (saving space) I am
 not 100% sure...

 equery depends package_name

 Note that this lists packages that *could* depend on the named package, not
 just those that *do* depend on your specific machine.

 also look at qdepends -d

 --
 alan dot mckinnon at gmail dot com





[gentoo-user] Removing qt4 meta

2009-06-27 Thread Marco
Hi all,

some time ago I installed qt4 for testing. Now, after I run 'emerge
--sync' and 'emerge --update world --pretend --verbose' I get a
message that the qt4 meta ebuild is hard masked and that the meta
ebuild should not be used anymore in the future. How can I remove all
the packages in the meta package? 'emerge --unmerge qt' only removes
x11-libs/qt but not the dependencies/meta ebuild

Thanks for your help!

--
Best regards,
 Marco



Re: [gentoo-user] Removing qt4 meta

2009-06-27 Thread Marco
On Sat, Jun 27, 2009 at 2:02 PM, Dirk Heinrichsdirk.heinri...@online.de wrote:
 Am Samstag 27 Juni 2009 15:51:20 schrieb Marco:

 How can I remove all the packages in the meta package?

 No need to do that. It's about the meta package only.

Just in case I would want to remove all the packages, how could I do
that? (I'm not doing any qt develoment anyway and I take care not to
install any software that depends on qt)

 'emerge --unmerge qt' only removes
 x11-libs/qt but not the dependencies/meta ebuild

 That's correct, x11-libs/qt _is_ the meta ebuild.

 You may need to re-install a couple of packages which depend on it their
 installed version, but have their deps corrected in the portage tree. For me,
 those where avahi and qimageblitz.

How to do that? Is 'emerge --update --newuse --deep world' enough?

--
Regards,
 Marco



Re: [gentoo-user] Removing qt4 meta

2009-06-27 Thread Marco
On Sat, Jun 27, 2009 at 2:33 PM, Sebastian
Beßlerwebmas...@darkmetatron.de wrote:
 Marco schrieb:
 On Sat, Jun 27, 2009 at 2:02 PM, Dirk Heinrichsdirk.heinri...@online.de 
 wrote:
 Am Samstag 27 Juni 2009 15:51:20 schrieb Marco:
[...]

 If you have eix installed you could use
 eix -I --only-names x11-libs/qt |xargs emerge -C

 or if you have no package that depends on qt
 emerge --depclean -a
 after emerge -C x11-libs/qt
 should do the job.

Is there a way to find out if packages depend on qt? Although I think
I did not install any packages that depend on qt (saving space) I am
not 100% sure...


 You should do
 emerge -DuNva world and revdep-rebuild
 afterwards to be sure the system is still in clean state.







[gentoo-user] Fonts and OpenOffice

2009-06-11 Thread Marco
Hi,

I am using OpenOffice and am missing the Helvetica font. If I run fc-list:

~ $ fc-list | grep -i helv
Helvetica:style=Oblique
Helvetica:style=Bold
Helvetica:style=Regular
Helvetica:style=Bold Oblique

It seems that the Helvetica fonts are installed on my system.
Nevertheless, they don't show up in OpenOffice. Any tips on how to use
them in Oo?

Thanks!

--
Best regards,
 Marco



Re: [gentoo-user] Fonts and OpenOffice

2009-06-11 Thread Marco
On Thu, Jun 11, 2009 at 3:27 PM, Florian
Philippli...@f_philipp.fastmail.net wrote:
 Marco schrieb:
 Hi,

 I am using OpenOffice and am missing the Helvetica font. If I run fc-list:

 ~ $ fc-list | grep -i helv
 Helvetica:style=Oblique
 Helvetica:style=Bold
 Helvetica:style=Regular
 Helvetica:style=Bold Oblique

 It seems that the Helvetica fonts are installed on my system.
 Nevertheless, they don't show up in OpenOffice. Any tips on how to use
 them in Oo?


 At least on my system, Helvetica is a bitmap font. OOo doesn't seem to
 put these in its font list.

Hi,

how can i see if a font is a bitmap or a truetype?

--
Regards,
 Marco



Re: [gentoo-user] cannot completely shut down my system from command line

2009-06-05 Thread Colombetti Marco
On Friday 05 June 2009 08:41:17 Steffen Loos wrote:
 Hello,

 Colombetti Marco schrieb:
  ...
  I have a similar issue on my laptop after upgrading to the kernel 2.6.29.
  The alsasound service wont stop i have to unload the snd_hda_intel
  module first (it is an alsa related issue).
  If it is the same problem you could add modprobe -r snd_hda_intel
  in /etc/conf.d/local.stop or /etc/conf.d/local.

 i've had the same problem. The unloading of alsa-modules is'nt needed
 according to alsa-developers. So setting

 UNLOAD_ON_STOP=no

 in /etc/conf.d/alsasound  helps for me.

 Steffen

Thanks Steffen!!!
The link for bugzilla:

http://bugs.gentoo.org/show_bug.cgi?id=232875

Ciao



Re: [gentoo-user] cannot completely shut down my system from command line

2009-06-03 Thread Colombetti Marco
On Wednesday 03 June 2009 03:01:57 John covici wrote:
 on Tuesday 06/02/2009 James Ausmus(james.aus...@gmail.com) wrote

   2009/6/2 John covici cov...@ccs.covici.com
  
on Tuesday 06/02/2009 Sebastian G nther(sam...@guenther-roetgen.de)
wrote
   
  * John covici (cov...@ccs.covici.com) [02.06.09 09:24]:
   Hi.  I am running unstable gentoo and baselayout2, however when I
   shutdown my system with something like shutdown -r now -- it gets
   into a state where it says
   init: no more processes in this run level, but it never will
   restart or shutdown if I use -h.  How in the heck do I even debug
   such a thing or fix?
  
   Thanks in advance for any good ideas.
 
  Did you enable ACPI in your kernel configuration?
   
Yep.
  
   Make sure
   CONFIG_ACPI_BUTTON
   is enabled in your kernel config (for menuconfig, under Power Management
ACPI - ACPI Support - Button) - without this, Linux can't
   auto-shut-off your system.

 Its a module, not built-in.  But even shutdown -r now does not work as
  I get the message mentioned above and the computer hangs there
  forever.

I have a similar issue on my laptop after upgrading to the kernel 2.6.29.
The alsasound service wont stop i have to unload the snd_hda_intel module 
first (it is an alsa related issue).
If it is the same problem you could add modprobe -r snd_hda_intel 
in /etc/conf.d/local.stop or /etc/conf.d/local.

Ciao  



Re: [gentoo-user] pdftk emerge error

2009-05-31 Thread Marco
On Sun, May 31, 2009 at 1:05 PM, Stroller
strol...@stellar.eclipse.co.uk wrote:

 On 30 May 2009, at 14:38, Marco wrote:

 ...
 I had the same problem. The fix in bug
 http://bugs.gentoo.org/show_bug.cgi?id=264510 solved it for me.

 Since I am rather new to gentoo, I am not sure how to apply the
 patches together with emerge. Could you give me a short info on that
 or point me to the corresponding documentation/howto?

 Download both the patch  the ebuild attachments from that bug, create a
 directory /usr/portage/app-text/pdftk and put them both in there. Run
 `ebuild /usr/portage/app-text/pdftk/pdftk-1.41-r2.ebuild manifest` and then
 you should be able to emerge the new version. You might need to unmask it
 manually in /etc/portage/package.keywords, I'm not sure if that's necessary.


Thanks for the tip! Will try.

--
Regards,
 Marco



Re: [gentoo-user] pdftk emerge error

2009-05-30 Thread Marco
On Sat, May 30, 2009 at 7:02 AM, Dan Johansson dan.johans...@dmj.nu wrote:
 On Saturday 30 May 2009, Marco wrote:
 Hi all,

 I am trying to emerge pdftk on my amd64 machine. After re-emerging gcc
 with gcj, compilation fails with:

 * ERROR: app-text/pdftk-1.12 failed.
  * Call stack:
  *               ebuild.sh, line   48:  Called src_compile
  *             environment, line 2238:  Called die
  * The specific snippet of code:
  *       make -f Makefile.Generic || die Compilation failed.
  *  The die message:
  *   Compilation failed.

 I also attached the build log and the  ebuild environment file.

 Any suggestions on how to solve this problem? Kind of urgent cause I
 need to finish my job-application...

 I had the same problem. The fix in bug
 http://bugs.gentoo.org/show_bug.cgi?id=264510 solved it for me.

Since I am rather new to gentoo, I am not sure how to apply the
patches together with emerge. Could you give me a short info on that
or point me to the corresponding documentation/howto?

Thanks

--
Regards,
 Marco



[gentoo-user] Resizing ext3 Partition

2009-05-04 Thread Marco
Hi all,

I am new to gentoo and so far I really like it. But now, I am running
out of disk space on my root partition (10 GB), although I have a
rather small system with fluxbox (no KDE, GNOME,...). Thought gentoo
would not waste my resources that much. Now I am thinking about how to
resize my ext3 partitions. Bellow is the output of fdisk:

fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbbc58b91

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   1 893 7168000   1c  Hidden W95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary.
/dev/sda2   * 8935968407654407  HPFS/NTFS
/dev/sda3   10622   1945870975488f  W95 Ext'd (LBA)
/dev/sda5   10622   13575237199727  HPFS/NTFS
/dev/sda6   13575   13581   54819   83  Linux
/dev/sda7   13582   13831 2008093+  82  Linux swap / Solaris
/dev/sda8   13832   1507710008463+  83  Linux
/dev/sda9   15078   1945835182990   83  Linux

sda8 is my root partition and sda9 is my home partition where there is
plenty of space. Is there any safe way to resize with Linux tools? The
descriptions found on google did not help me a lot...

Thanks for your help!

--
Regards,
 Marco



Re: [gentoo-user] Resizing ext3 Partition

2009-05-04 Thread Marco
On Mon, May 4, 2009 at 1:52 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Mon, 4 May 2009 12:56:05 +, Marco wrote:

[..]

 I'd look to see what is filling up the root partition, 10GB should be more
 than enough.

Good tip! cd /usr/src/linux and make clean gave me back 2 GB.



Re: [gentoo-user] Resizing ext3 Partition

2009-05-04 Thread Marco
On Mon, May 4, 2009 at 1:44 PM, Andrew MacKenzie amack...@edespot.com wrote:
 +++ Marco [gentoo-user] [Mon, May 04, 2009 at 12:56:05PM +]:
[...]
 Just to be sure you checked - Gentoo keeps temporary files in
 /var/tmp/portage/ (build temp location, sometimes things get left here) and
 /usr/portage/distfiles/ (download location).

 /usr/portage/distfiles can get pretty large over time.

I cleaned this directory frequently, but still running low on disk space...

--
Regards,
 Marco



[gentoo-user] Is this firewall safe?

2009-04-24 Thread Marco
Hi all,

I set up my first firewall on my notebook (not running any services
reachable from outside) using iptables. Since I am new to the topic,
could you please verify if the output of 'iptables -L -v' is
considered to be a safe firewall? Thanks!

Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target prot opt in out source
destination
0 0 ACCEPT all  --  lo any anywhere
anywhere
0 0 ACCEPT all  --  eth0   any anywhere
anywherestate RELATED,ESTABLISHED
0 0 REJECT tcp  --  eth0   any anywhere
anywherereject-with tcp-reset
0 0 REJECT udp  --  eth0   any anywhere
anywherereject-with icmp-port-unreachable
0 0 DROP   udp  --  eth0   any anywhere
anywhereudp spt:bootps
0 0 LOGall  --  eth0   any anywhere
anywhereLOG level warning prefix `INPUT   '
179 ACCEPT all  --  wlan0  any anywhere
anywherestate RELATED,ESTABLISHED
0 0 REJECT tcp  --  wlan0  any anywhere
anywherereject-with tcp-reset
0 0 REJECT udp  --  wlan0  any anywhere
anywherereject-with icmp-port-unreachable
0 0 DROP   udp  --  wlan0  any anywhere
anywhereudp spt:bootps
0 0 LOGall  --  wlan0  any anywhere
anywhereLOG level warning prefix `INPUT   '

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target prot opt in out source
destination
0 0 LOGall  --  anyany anywhere
anywhereLOG level warning prefix `FORWARD '
0 0 LOGall  --  anyany anywhere
anywhereLOG level warning prefix `FORWARD '

Chain OUTPUT (policy ACCEPT 5 packets, 1691 bytes)
 pkts bytes target prot opt in out source
destination
0 0 ACCEPT all  --  anylo  anywhere
anywhere
0 0 LOGall  --  anyeth0anywhere
anywhereLOG level warning prefix `OUTPUT  '
152 LOGall  --  anywlan0   anywhere
anywhereLOG level warning prefix `OUTPUT  '



Re: [gentoo-user] Is this firewall safe?

2009-04-24 Thread Marco
On Fri, Apr 24, 2009 at 4:59 PM, Eric Martin freak4u...@gmail.com wrote:
 Marco wrote:
 Hi all,

 I set up my first firewall on my notebook (not running any services
 reachable from outside) using iptables. Since I am new to the topic,
 could you please verify if the output of 'iptables -L -v' is
 considered to be a safe firewall? Thanks!

 Chain INPUT (policy DROP 0 packets, 0 bytes)
  pkts bytes target     prot opt in     out     source
 destination
     0     0 ACCEPT     all  --  lo     any     anywhere
 anywhere
     0     0 ACCEPT     all  --  eth0   any     anywhere
 anywhere            state RELATED,ESTABLISHED
     0     0 REJECT     tcp  --  eth0   any     anywhere
 anywhere            reject-with tcp-reset
     0     0 REJECT     udp  --  eth0   any     anywhere
 anywhere            reject-with icmp-port-unreachable
     0     0 DROP       udp  --  eth0   any     anywhere
 anywhere            udp spt:bootps
     0     0 LOG        all  --  eth0   any     anywhere
 anywhere            LOG level warning prefix `INPUT   '
     1    79 ACCEPT     all  --  wlan0  any     anywhere
 anywhere            state RELATED,ESTABLISHED
     0     0 REJECT     tcp  --  wlan0  any     anywhere
 anywhere            reject-with tcp-reset
     0     0 REJECT     udp  --  wlan0  any     anywhere
 anywhere            reject-with icmp-port-unreachable
     0     0 DROP       udp  --  wlan0  any     anywhere
 anywhere            udp spt:bootps
     0     0 LOG        all  --  wlan0  any     anywhere
 anywhere            LOG level warning prefix `INPUT   '

 Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
  pkts bytes target     prot opt in     out     source
 destination
     0     0 LOG        all  --  any    any     anywhere
 anywhere            LOG level warning prefix `FORWARD '
     0     0 LOG        all  --  any    any     anywhere
 anywhere            LOG level warning prefix `FORWARD '

 Chain OUTPUT (policy ACCEPT 5 packets, 1691 bytes)
  pkts bytes target     prot opt in     out     source
 destination
     0     0 ACCEPT     all  --  any    lo      anywhere
 anywhere
     0     0 LOG        all  --  any    eth0    anywhere
 anywhere            LOG level warning prefix `OUTPUT  '
     1    52 LOG        all  --  any    wlan0   anywhere
 anywhere            LOG level warning prefix `OUTPUT  '


 It all depends on what you're trying to do.  My internet facing boxes
 have a default OUTPUT policy of DROP and I only allow certain traffic
 off of the box (helps protect me from unauthorized services).  Also,
 you're dropping bootps (same ports as dhcp) on udp so I don't think you
 can get a dhcp address like that.  If you're running any services you
 won't be able to talk to them (ssh).  Turn off forwarding in the kernel
 config (via /etc/sysctl.conf) as well.

I am dropping bootps to not have my log file flooding due to the DHCP
server in my wireless router (as suggested in
www.novell.com/coolsolutions/feature/18139.html). As it seems I still
get a dynamic ip from it.

So far, I am not running any services that have to be exposed to the outside.

 It also took me a few runs to figure out the firewall config (due to the
 rules and formatting).  The last two output rules can be combined into
 one.  Have 1 log line at the bottom of your tables and that will take
 care of that.  Clean and short configs will help immensely when things
 don't work.

Sorry for the bad format. gmail decided to insert some sub ideal pagebreaks...

Talking about the 1 log line at the bottom you mean I should configure
it to not specify an interface (eth0, wlan0)?

Thanks!



Re: [gentoo-user] Is this firewall safe?

2009-04-24 Thread Marco
On Fri, Apr 24, 2009 at 5:00 PM, Chris Frederick cdf...@cdf123.net wrote:
 Marco wrote:

[...]

 Your firewall looks good, but I would change a few things.

 First off, change your FORWARD chain to DROP.  Unless you are doing
 routing on your laptop, there's no reason to have it.

My thought here was to be able to perform some network maintanance
task using wireshark. I ave forwarding disabled normally and I could
just 'echo 1  /proc/sys/net/ipv4/ip_forward' to have it enabled. Is
there anything unsafe about this setup?

 I would also get rid of the REJECT targets.  It's better to DROP
 instead.  If someone is scanning the network, and you start sending icmp
 rejections back, they will know you are there and may try other
 techniques to break through your defenses, but if you DROP and send
 nothing back, it will be much harder for them to see you at all.

I was following
http://www.gentoo.org/doc/en/articles/linux-24-stateful-fw-design.xml
in section 'Handling rejection' of the article. I guess this is kind
of a philosophical question here...

 I would also re-write your INPUT chain to be a bit less verbose.
 Something like this:

 Chain INPUT (policy DROP 0 packets, 0 bytes)
 target     prot opt in    out     source   destination
 ACCEPT     all  --  lo    any     anywhere anywhere
 ACCEPT     all  --  any   any     anywhere anywhere   state
 RELATED,ESTABLISHED
 LOG        all  --  any   any     anywhere anywhere   LOG level warning
 prefix `INPUT   '

So basically not distinguishing between the external interfaces (eth0, wlan0)?

 Everything else looks good from a security standpoint.  From a
 performance standpoint, you might want to add a line to the beginning of
 your output chain like this:

 Chain OUTPUT (policy ACCEPT 5 packets, 1691 bytes)
 target     prot opt in     out     source   destination
 ACCEPT     all  --  any    lo      anywhere anywhere
 ACCEPT     all  --  any    any     anywhere anywhere  state
 RELATED,ESTABLISHED
 LOG        all  --  any    any     anywhere anywhere  LOG level warning
 prefix `OUTPUT  '

 This will log only NEW packets.  Otherwise you could end up with a lot
 of log output.

That makes sense!

 After you run this for a while, go back and look through your logs and
 see if you have enough data there to change your OUTPUT chain to DROP,
 and only allow packets through to ports you actually use.  That's only
 if you're really paranoid though.

Kind of paranoid, yes ;-)

[...]

Thanks for the tips!

--
Regards,
 Marco



Re: [gentoo-user] Is this firewall safe?

2009-04-24 Thread Marco
On Fri, Apr 24, 2009 at 5:05 PM, Hazen Valliant-Saunders
haze...@gmail.com wrote:
 Just a thought:

 http://www.fwbuilder.org/

I've seen fwbuilder already. I thought since I only need a simple
firewall, I probably make the thing worse if I don't really know how
to use the tool. And learning iptables is a good thing I guess. In
case I'd have to set up some servers, I would of course reconsider
fwbuilder.

--
Regards,
 Marco



Re: [gentoo-user] Is this firewall safe?

2009-04-24 Thread Marco
Hello again,

I took your considerations into account and changes my setting. Could
you please have look again to the output of 'iptables -L -v' (in the
attachment for better formating)?

Thanks a lot!

--
Best regards,
 Marco
Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target prot opt in out source   destination 

0 0 ACCEPT all  --  lo any anywhere anywhere

   30 18812 ACCEPT all  --  !loany anywhere anywhere
state RELATED,ESTABLISHED 
0 0 REJECT tcp  --  !loany anywhere anywhere
reject-with tcp-reset 
0 0 REJECT udp  --  !loany anywhere anywhere
reject-with icmp-port-unreachable 
0 0 LOGall  --  !loany anywhere anywhere
LOG level warning prefix `INPUT   ' 

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target prot opt in out source   destination 

0 0 LOGall  --  anyany anywhere anywhere
LOG level warning prefix `FORWARD ' 

Chain OUTPUT (policy ACCEPT 33 packets, 6039 bytes)
 pkts bytes target prot opt in out source   destination 

0 0 ACCEPT all  --  anylo  anywhere anywhere

   33  6039 LOGall  --  any!lo anywhere anywhere
LOG level warning prefix `OUTPUT  ' 


Re: [gentoo-user] Is this firewall safe?

2009-04-24 Thread Marco
On Fri, Apr 24, 2009 at 5:23 PM, Daniel Troeder dan...@admin-box.com wrote:
 On Fri, 2009-04-24 at 12:00 -0500, Chris Frederick wrote:
[...]
 While all that is correct, I would also consider it bad network
 behavior (no offense intended).

So you consider my 'reject-with' settings to be good practice?

 It feels like security through obscurity. It may hamper the
 well-working of a TCP/IP network, as that relies heavily on ICMP.

I was not really sure how to configure ICMP (ping) correctly. Any
input appreciated!

 Probably it will never be a problem for you, but it could be a problem
 for a network administrator.

 Also: if you wish to scan (nmap) yourself to check your system
 (configuration), you'll wish for REJECT instead of DROP :)

You mean as the default policy?

 On a (not so) different topic:
 If you're going to make your firewall more complex (more services, or
 other stuff), I'd suggest to use a widely used firewall script. That is
 more secure than writing your own firewall configuration, because in the
 long run it will be better maintainable (and they often also do smart
 stuff(TM) ;)

 My recommendation is net-firewall/shorewall. It has a well balanced
 abstraction/granularity-ratio, and the produced iptable-rules are still
 readable :)

This is considered to be my learning example. Later I will definitely
consider using shorewall (learning one thing at a time).

Thanks!

--
Regards,
 Marco



Re: [gentoo-user] Kernel 2.6.27 and iwl3945-ucode

2009-04-23 Thread Marco
[...]
  You can try Wicd which is  a great network manager, until you are more
 familiar with gentoo/wifi configuration.
  I have the same chip, with wpa2, wicd handless this without problems.


This is cool! For the moment this is perfectly ok for me!

Thanks for the tips!



Re: [gentoo-user] Wrong keyboard map in Fluxbox

2009-04-22 Thread Marco
Hi all,

I found the silly reason: slim set NumLock to be active and that does
not turn out to be a good thing on a notebook.

Thanks for the tip anyway!

--
Best regards,
 Marco



[gentoo-user] Kernel 2.6.27 and iwl3945-ucode

2009-04-22 Thread Marco
Hi all,

I am trying to get my wireless adapter (Intel 3945ABG) running.
following the instructions on http://en.gentoo-wiki.com/wiki/Iwlwifi I
compiled the kernel accordingly. Now the howto states:

 For kernel 2.6.27 and later, use the second slot(version 228.57.2.21)
which needs to be unmasked in package.keywords.

Since I am rather new to gentoo, I am not really sure what to do. I added

=net-wireless/iwl3945-ucode-228.57.2.21 ~amd64

to /etc/portage/package.keywords to use the version mentioned. Testing
what would be installed:

emerge net-wireless/iwl3945-ucode --pretend --verbose

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N] net-wireless/iwl3945-ucode-15.28.1.6  66 kB

Total: 1 package (1 new), Size of downloads: 66 kB

So version 15.28.1.6 would be used... What am I missing?

Thanks for your help!

--
Best regards,
 Marco



Re: [gentoo-user] Kernel 2.6.27 and iwl3945-ucode

2009-04-22 Thread Marco
On Wed, Apr 22, 2009 at 12:28 PM, Florian Philipp
li...@f_philipp.fastmail.net wrote:
 Marco schrieb:
[...]
 You somehow mixed iwl4965 and iwl3945. Version 228.57.2.21 belongs to
 iwl4965.

 If you really want iwl3945, you don't need to unmask/keyword anything.
 I'm on 2.6.28 with version 15.28.1.6.

 For iwl4965, I don't see any versions which are not marked stable (I'm
 on AMD64).

I see. It was not really clear to me if it is only related to 4965 or
if it also is true for the 3945. Thanks for pointing out!

One more question: I followed the howto for Intel 3945 and also the
handbook ( http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=4
). I am using wpa_supplicant. But I think I am missing now a
configuration for /etc/init.d/net. What information do I have to
provide there?



[gentoo-user] Wrong keyboard map in Fluxbox

2009-04-21 Thread Marco
Hi all,

I have a fresh installation of gentoo with fluxbox. I added exec
startfluxbox to my ~/.xinitrc and set the DISPLAYMANAGER variable in
/etcconf.d/xdm to use slim.

When I start my machine now, when slim starts a wrong keymap is set.
This is also the case in fluxbox after login. If I stop X and restart
it using startx, the key mapping is correct.

Any  ideas on how slim interferes with the keymap and how to solve that?

Thanks a lot for your help!

--
Best regards,
 Marco



[gentoo-user] 20 Minutos para talvez mudar uma vida

2008-08-15 Thread Marco Antônio da Veiga
http://video.google.com/videoplay?docid=-3412294239230716755hl=en


[gentoo-user] glsa-check question

2008-05-30 Thread Marco Simeone
Hello.
Do you know why glsa-check tells me to update sun-jdk, even if it's alredy
updated ?

# glsa-check -p $(glsa-check -t all)
This system is affected by the following GLSAs:
Checking GLSA 200705-23
The following updates will be performed for this GLSA:
 dev-java/sun-jdk-1.5.0.15 (1.6.0.06)

Checking GLSA 200702-07
The following updates will be performed for this GLSA:
 dev-java/sun-jdk-1.5.0.15 (1.6.0.06)

Checking GLSA 200701-15
The following updates will be performed for this GLSA:
 dev-java/sun-jdk-1.5.0.15 (1.6.0.06)

On my system there are installed sun-jdk-1.6.0.06 and sun-jdk-1.4.2.17
(required by eclipse-sdk-3.2),  but not sun-jdk-1.5.0.15.

Thanks,
Marco.


[gentoo-user] ASUS F3SC : Kernel Configuration

2008-04-15 Thread Marco Schuler
Hi

My brand new ASUS F3SC (actually a F3SC-F3SC-AS293C) just arrived. I
want to install gentoo with a tailored kernel on it to have maximum
performance out of my 2.2 GHz dual core processor. Googling on the
net, I could not find any kernel configuration file. Is there anybody
out there with the same notebook that has a running kernel
configuration file? The only page mentioning an ASUS F3SC I found is
http://gentoo-wiki.com/HARDWARE_Asus_F3SC but cannot find anything
related to kernel configuration...

Any tips and suggestions highly appreciated!

Thanks a lot in advance!

--
Best regards,
 Marco
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-laptop] Re: [gentoo-user] Problem with CPU temperature (Santa Rosa CPU)

2007-10-16 Thread Marco Calviani
Hi,
  just for information, i report that i've filed a bug on bugzilla:

http://bugzilla.kernel.org/show_bug.cgi?id=9167

regards,
m

On 10/13/07, Marco Calviani [EMAIL PROTECTED] wrote:
 Beso,
yes i'm always staying in powersave mode.. but in any case the
 CPU temperature tends to increase. I hope that the ACPI guys will work
 on this (hoping i'm not the only one experiencing these problems). The
 fans unfortunately are masked to the user in most Acer laptops, and
 they are controlled fully by ACPI.

 Thanks again,
 m

 On 10/13/07, Beso [EMAIL PROTECTED] wrote:
  i think that you'll have to wait a little more and always stay aware when
  using the pc till acpi supports it.
  i'd recommend to stay on powersave when using the processor extensively so
  that you'd not incur in hardware errors and failures. and it the fan is not
  starting try to modify it by command prompt via echo on 
  /proc/acpi/fan/..
  this will work at least the thermal doesn't reach the state when it would
  stop the fan, but since you don't have that point and that you cannot read
  temperature starting it via echo on should always stay on. you'd have some
  noise maybe, but you'd be sure that the processor would not run overheat.
  and hope that the acpi people would fix that in the near future.
  i'm sorry for not being able to help you more.
  and as an advice for the future: before getting a notebook in the future
  have some surf on the web to see if it's fully supported by linux (acer
  sells linux only notebooks actually but only from taiwan). i had my linux
  notebook not working with linux for 5-6 months and yet i had to change the
  wireless since it wasn't supported after almost 2 years. for what i know
  dell, hp and compaq are quite well supported.
 

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-laptop] Re: [gentoo-user] Problem with CPU temperature (Santa Rosa CPU)

2007-10-13 Thread Marco Calviani
Just to give a short update:
1) no luck with the acer_acpi module: it does not load in the system,
as the developer is having a look at it. However he told me that the
module can do practically nothing on the thermal zone since this last
point is controlled fully by ACPI
2) i've tried to modify the DSDT table: it had errors, but also after
correction the system behave in practically the same way. I've mailed
to the acpi-linux mailing list, hoping that the acpi gurus can try to
solve the issue.
As far as i understand now it is just a matter of ACPI implementation.

Regards,
m

On 10/11/07, Beso [EMAIL PROTECTED] wrote:
 normally all acer have dsdt problems and don't work unless you load
 acer_acpi.
 now, in the portage tree there's only the 0.8.2 version, so you have to go
 here:

  http://code.google.com/p/aceracpi/

 download the latest version and install it. there's a 5720 product listed
 (under travelmate and not aspire, but it may have been an error). simply
 search for acer_acpi in the /lib/modules/2.6.22-gentoo-r8 and delete it then
 do a depmod -a and update the modules installed and retry loading the newly
 compiled driver. if you manage to get it working in this way ok, if not try
 contacting the guy maintaing the aceracpi module and tell him about you
 problems. he may be of help.


 2007/10/11, Marco Calviani [EMAIL PROTECTED]:
  Hi Beso,
 i have an Acer Aspire 5720. I've tried with the acer_acpi, it
  compiles well but when it comes to loading it fails, saying
  No or unsupported WMI interface, unable to load.
 
  However as far as i can understood, this module deals with issues of
  buttons and hotkey not with ACPI issues.
 
  Yes, my DSDT failed during recompiling, but i have managed to solve
  the issues, and now it compiled well (with warning but i'm not
  caring). I'll try to recompile the new DSDT in the kernel, maybe it
  could help (but i'm not sure).
 
  Regards,
  m
 
  On 10/11/07, Beso [EMAIL PROTECTED] wrote:
   yep you're right i cannot modify my trippoints so this file cannot
 be
   modified
   i don't think that it's random, since it is 40 c try doing some
   compiling or so and see if it goes up and then stop compiling and do
 nothing
   and see if it goes down this will tell you if thermal is working
   for dsdt problem you have follow this guide:
   http://gentoo-wiki.com/HOWTO_Fix_Common_ACPI_Problems
   if it gives you errors when recompiling dsdt then it may be a dsdt
 problem,
   but if it gives you no problem recompiling it then it may be that you
 need
   some additional modules like asus_acpi or ibm or toshiba ones based on
 your
   pc model. i don't know what you're using (i've managed to see some
 lenovo,
   asus toshiba and acer models around and for what i know every one of
 then
   needs an additional acpi module to have it work correctly). that was why
   i've asked you for your brand and model name.
  
   2007/10/11, Marco Calviani [EMAIL PROTECTED]:
Hi Beso,
   i've tried with your trip_points modification but it gives this
 error:
   
bash: echo: write error: Invalid argument
   
like i'm not able to write on that file.
   
And of course acpitool gives me a random ACPI temperature:
   
  Battery #1 : charged
  AC adapter : on-line
  Thermal zone 1 : ok, 40 C
   
PS: i followed all your suggestions concerning the microcode and fan
option in the kernel.
Could this be a problem of DSDT?
   
regards,
m
   
On 10/10/07, Beso [EMAIL PROTECTED]  wrote:


 2007/10/10, Marco Calviani  [EMAIL PROTECTED]:
  Hi Beso,
sorry i misunderstood your suggestion. I did what you suggest
 and
  this is the result of the trip_points:
 
  critical (S5):  100C

 wow you don't have anything that says to the cpu to slow down
 when
   it
 reaches some point
 now, to add some other trip points you have to copy these in a
 konsole
   with
 root priviledges:
 echo passive: 78 C: tc1=3 tc2=1 tsp=150
 devices=CPU0 \
 active[0]:   68 C: devices= FN1 \
 active[1]:   58 C: devices= FN2 
 /proc/acpi/thermal_zone/TZ01/trip_points

 then do a cat on the thermal_zone/TZ0/trip_points to see if you've
 added
   the
 lines for passive and active  lines.
 that means that when your thermal reaches 78 degrees it will slow
 down
   the
 processor. from 58 to 68 it will turn on the fan but don't turn down
 the
 speed of the processor, below 58 it will turn off the fan.
 
 

  which i suppose is the reason why at that temperature the laptop
   switch
 off.
  So, nothing except for the critical state. Should i have to add
 there
 something?

 if the pc turns down then it can read from somewhere the actual
 thermal
 point. you try to see after actually setting the things i've just
 said,
   if
 your pc is behaving as it should

Re: [gentoo-laptop] Re: [gentoo-user] Problem with CPU temperature (Santa Rosa CPU)

2007-10-13 Thread Marco Calviani
Beso,
   yes i'm always staying in powersave mode.. but in any case the
CPU temperature tends to increase. I hope that the ACPI guys will work
on this (hoping i'm not the only one experiencing these problems). The
fans unfortunately are masked to the user in most Acer laptops, and
they are controlled fully by ACPI.

Thanks again,
m

On 10/13/07, Beso [EMAIL PROTECTED] wrote:
 i think that you'll have to wait a little more and always stay aware when
 using the pc till acpi supports it.
 i'd recommend to stay on powersave when using the processor extensively so
 that you'd not incur in hardware errors and failures. and it the fan is not
 starting try to modify it by command prompt via echo on 
 /proc/acpi/fan/..
 this will work at least the thermal doesn't reach the state when it would
 stop the fan, but since you don't have that point and that you cannot read
 temperature starting it via echo on should always stay on. you'd have some
 noise maybe, but you'd be sure that the processor would not run overheat.
 and hope that the acpi people would fix that in the near future.
 i'm sorry for not being able to help you more.
 and as an advice for the future: before getting a notebook in the future
 have some surf on the web to see if it's fully supported by linux (acer
 sells linux only notebooks actually but only from taiwan). i had my linux
 notebook not working with linux for 5-6 months and yet i had to change the
 wireless since it wasn't supported after almost 2 years. for what i know
 dell, hp and compaq are quite well supported.

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-laptop] Re: [gentoo-user] Problem with CPU temperature (Santa Rosa CPU)

2007-10-11 Thread Marco Calviani
Hi Beso,
   i've tried with your trip_points modification but it gives this error:

bash: echo: write error: Invalid argument

like i'm not able to write on that file.

And of course acpitool gives me a random ACPI temperature:

  Battery #1 : charged
  AC adapter : on-line
  Thermal zone 1 : ok, 40 C

PS: i followed all your suggestions concerning the microcode and fan
option in the kernel.
Could this be a problem of DSDT?

regards,
m

On 10/10/07, Beso [EMAIL PROTECTED] wrote:


 2007/10/10, Marco Calviani [EMAIL PROTECTED]:
  Hi Beso,
sorry i misunderstood your suggestion. I did what you suggest and
  this is the result of the trip_points:
 
  critical (S5):  100C

 wow you don't have anything that says to the cpu to slow down when it
 reaches some point
 now, to add some other trip points you have to copy these in a konsole with
 root priviledges:
 echo passive: 78 C: tc1=3 tc2=1 tsp=150 devices=CPU0 \
 active[0]:   68 C: devices= FN1 \
 active[1]:   58 C: devices= FN2 
 /proc/acpi/thermal_zone/TZ01/trip_points

 then do a cat on the thermal_zone/TZ0/trip_points to see if you've added the
 lines for passive and active  lines.
 that means that when your thermal reaches 78 degrees it will slow down the
 processor. from 58 to 68 it will turn on the fan but don't turn down the
 speed of the processor, below 58 it will turn off the fan.
 
 

  which i suppose is the reason why at that temperature the laptop switch
 off.
  So, nothing except for the critical state. Should i have to add there
 something?

 if the pc turns down then it can read from somewhere the actual thermal
 point. you try to see after actually setting the things i've just said, if
 your pc is behaving as it should. remember to also turn on the polling
 frequency. without it it will not look for thermal changes. and remember to
 actually compile the mce and speedstep features in the kernel and not as
 module and reboot and then set the things i've mentioned. after that type
 acpitool (it should be installed by default with the acpi package) and see
 what it says. it should give something like this:

Battery #1 : charging, 46.00%, 01:17:04
AC adapter : on-line
Thermal zone 1 : activ, 58 C

 it indicates, as you can see not only the battery and ac status but also the
 current processor mode (active) and the current thermal temperature if
 you don't have acpitool try acpi -t (you'll surely have either one or the
 other) and it should indicate the thermal state and temperature. if this
 command don't give you these infos then you'll have to be very careful using
 your pc since acpi probably don't support santarosa well. you should then
 unmask newer acpi in portage (adding acpi in /etc/package.keywords) and try
 with the new acpi ( 1.0.6).
 you may need some additional acpi modules, like ibm_acpi for example, but
 that depends on your's pc brand. i'm looking around to see if there were
 someone that had problems with santarosa and linux acpi, but for the moment
 i couldn't find something useful. try what i've said and see if the things
 work. if they work then append the tweak in some script that starts at boot
 like the top of xdm script and you'll have a functional system. let me know
 if you were succesful on that.


  An additional problem is this:
  doing a
  $ cat /proc/acpi/thermal_zone/TZ01/temperature
  it gives only a:
 
  temperature: 0C
 
  My question is:
  even if i change the polling frequency, how the fan can start if the
  temperature gives 0??
  Do you know if it's possible to link the fan start with the core
  temperature instead of the ACPI thermal zone?

 probably the fan don't start since  you have it as a module. i've curently
 had the same problem which solved by compiling it integrated in the kernel.
 the fan in your case should always be on, not always be off

 
  Regards,
  m
 
  
   thats why i told you to do this commanda:
echo 2 seconds 
   /proc/acpi/thermal_zone/TZ01/polling:frequency
   
this enables the polling of your thermal every 2 seconds. this should
 be
   enough.
   do you have the other file that i mentioned:
/proc/acpi/thermal_zone/TZ01/trip_points ?!
   this sets the trip points for your processor. whitout it you governor
 cannot
   understand what to do even if it polls right.
  
   as for the kernel thigs, set these options:
   select processor type: intel core2 instead of normal x86
   CONFIG_X86_SPEEDSTEP_CENTRINO=y instead of m
   CONFIG_ACPI_FAN=y instead of m
   CONFIG_MICROCODE=y instead of m (for what i know cpu micocode is needed
 on
   intels)
   CONFIG_K8_NUMA=n instead of y (this should be the amdk8 numa, that you
   should not need. if it's not then let him be)
   CONFIG_X86_MCE_AMD=n instead of y (you don't need amd mce features since
   they are not included into intel cpus)
   CONFIG_NR_CPUS=32 -- this leaves me a little dazzled: do you really
 have 32
   cpus in your core

Re: [gentoo-laptop] Re: [gentoo-user] Problem with CPU temperature (Santa Rosa CPU)

2007-10-11 Thread Marco Calviani
Hi Beso,
   i have an Acer Aspire 5720. I've tried with the acer_acpi, it
compiles well but when it comes to loading it fails, saying
No or unsupported WMI interface, unable to load.

However as far as i can understood, this module deals with issues of
buttons and hotkey not with ACPI issues.

Yes, my DSDT failed during recompiling, but i have managed to solve
the issues, and now it compiled well (with warning but i'm not
caring). I'll try to recompile the new DSDT in the kernel, maybe it
could help (but i'm not sure).

Regards,
m

On 10/11/07, Beso [EMAIL PROTECTED] wrote:
 yep you're right i cannot modify my trippoints so this file cannot be
 modified
 i don't think that it's random, since it is 40 c try doing some
 compiling or so and see if it goes up and then stop compiling and do nothing
 and see if it goes down this will tell you if thermal is working
 for dsdt problem you have follow this guide:
 http://gentoo-wiki.com/HOWTO_Fix_Common_ACPI_Problems
 if it gives you errors when recompiling dsdt then it may be a dsdt problem,
 but if it gives you no problem recompiling it then it may be that you need
 some additional modules like asus_acpi or ibm or toshiba ones based on your
 pc model. i don't know what you're using (i've managed to see some lenovo,
 asus toshiba and acer models around and for what i know every one of then
 needs an additional acpi module to have it work correctly). that was why
 i've asked you for your brand and model name.

 2007/10/11, Marco Calviani [EMAIL PROTECTED]:
  Hi Beso,
 i've tried with your trip_points modification but it gives this error:
 
  bash: echo: write error: Invalid argument
 
  like i'm not able to write on that file.
 
  And of course acpitool gives me a random ACPI temperature:
 
Battery #1 : charged
AC adapter : on-line
Thermal zone 1 : ok, 40 C
 
  PS: i followed all your suggestions concerning the microcode and fan
  option in the kernel.
  Could this be a problem of DSDT?
 
  regards,
  m
 
  On 10/10/07, Beso [EMAIL PROTECTED] wrote:
  
  
   2007/10/10, Marco Calviani  [EMAIL PROTECTED]:
Hi Beso,
  sorry i misunderstood your suggestion. I did what you suggest and
this is the result of the trip_points:
   
critical (S5):  100C
  
   wow you don't have anything that says to the cpu to slow down when
 it
   reaches some point
   now, to add some other trip points you have to copy these in a konsole
 with
   root priviledges:
   echo passive: 78 C: tc1=3 tc2=1 tsp=150 devices=CPU0 \
   active[0]:   68 C: devices= FN1 \
   active[1]:   58 C: devices= FN2 
   /proc/acpi/thermal_zone/TZ01/trip_points
  
   then do a cat on the thermal_zone/TZ0/trip_points to see if you've added
 the
   lines for passive and active  lines.
   that means that when your thermal reaches 78 degrees it will slow down
 the
   processor. from 58 to 68 it will turn on the fan but don't turn down the
   speed of the processor, below 58 it will turn off the fan.
   
   
  
which i suppose is the reason why at that temperature the laptop
 switch
   off.
So, nothing except for the critical state. Should i have to add there
   something?
  
   if the pc turns down then it can read from somewhere the actual thermal
   point. you try to see after actually setting the things i've just said,
 if
   your pc is behaving as it should. remember to also turn on the polling
   frequency. without it it will not look for thermal changes. and remember
 to
   actually compile the mce and speedstep features in the kernel and not as
   module and reboot and then set the things i've mentioned. after that
 type
   acpitool (it should be installed by default with the acpi package) and
 see
   what it says. it should give something like this:
  
  Battery #1 : charging, 46.00%, 01:17:04
  AC adapter : on-line
  Thermal zone 1 : activ, 58 C
  
   it indicates, as you can see not only the battery and ac status but also
 the
   current processor mode (active) and the current thermal temperature
 if
   you don't have acpitool try acpi -t (you'll surely have either one or
 the
   other) and it should indicate the thermal state and temperature. if this
   command don't give you these infos then you'll have to be very careful
 using
   your pc since acpi probably don't support santarosa well. you should
 then
   unmask newer acpi in portage (adding acpi in /etc/package.keywords) and
 try
   with the new acpi ( 1.0.6).
   you may need some additional acpi modules, like ibm_acpi for example,
 but
   that depends on your's pc brand. i'm looking around to see if there were
   someone that had problems with santarosa and linux acpi, but for the
 moment
   i couldn't find something useful. try what i've said and see if the
 things
   work. if they work then append the tweak in some script that starts at
 boot
   like the top of xdm script and you'll have a functional system

Re: [gentoo-laptop] Re: [gentoo-user] Problem with CPU temperature (Santa Rosa CPU)

2007-10-11 Thread Marco Calviani
As far as i know unfortunately the Travelmate 5720 exists, together
with the entry level Aspire 5720... I've tried also the new version
and the load error appears at the same level.
I've mailed Carlos of acer-acpi, let's see what comes out.

Thanks again for your help,
i'll let you know about the improvement of this situation,
m


On 10/11/07, Beso [EMAIL PROTECTED] wrote:
 normally all acer have dsdt problems and don't work unless you load
 acer_acpi.
 now, in the portage tree there's only the 0.8.2 version, so you have to go
 here:

  http://code.google.com/p/aceracpi/

 download the latest version and install it. there's a 5720 product listed
 (under travelmate and not aspire, but it may have been an error). simply
 search for acer_acpi in the /lib/modules/2.6.22-gentoo-r8 and delete it then
 do a depmod -a and update the modules installed and retry loading the newly
 compiled driver. if you manage to get it working in this way ok, if not try
 contacting the guy maintaing the aceracpi module and tell him about you
 problems. he may be of help.


 2007/10/11, Marco Calviani [EMAIL PROTECTED]:
  Hi Beso,
 i have an Acer Aspire 5720. I've tried with the acer_acpi, it
  compiles well but when it comes to loading it fails, saying
  No or unsupported WMI interface, unable to load.
 
  However as far as i can understood, this module deals with issues of
  buttons and hotkey not with ACPI issues.
 
  Yes, my DSDT failed during recompiling, but i have managed to solve
  the issues, and now it compiled well (with warning but i'm not
  caring). I'll try to recompile the new DSDT in the kernel, maybe it
  could help (but i'm not sure).
 
  Regards,
  m
 
  On 10/11/07, Beso [EMAIL PROTECTED] wrote:
   yep you're right i cannot modify my trippoints so this file cannot
 be
   modified
   i don't think that it's random, since it is 40 c try doing some
   compiling or so and see if it goes up and then stop compiling and do
 nothing
   and see if it goes down this will tell you if thermal is working
   for dsdt problem you have follow this guide:
   http://gentoo-wiki.com/HOWTO_Fix_Common_ACPI_Problems
   if it gives you errors when recompiling dsdt then it may be a dsdt
 problem,
   but if it gives you no problem recompiling it then it may be that you
 need
   some additional modules like asus_acpi or ibm or toshiba ones based on
 your
   pc model. i don't know what you're using (i've managed to see some
 lenovo,
   asus toshiba and acer models around and for what i know every one of
 then
   needs an additional acpi module to have it work correctly). that was why
   i've asked you for your brand and model name.
  
   2007/10/11, Marco Calviani [EMAIL PROTECTED]:
Hi Beso,
   i've tried with your trip_points modification but it gives this
 error:
   
bash: echo: write error: Invalid argument
   
like i'm not able to write on that file.
   
And of course acpitool gives me a random ACPI temperature:
   
  Battery #1 : charged
  AC adapter : on-line
  Thermal zone 1 : ok, 40 C
   
PS: i followed all your suggestions concerning the microcode and fan
option in the kernel.
Could this be a problem of DSDT?
   
regards,
m
   
On 10/10/07, Beso [EMAIL PROTECTED]  wrote:


 2007/10/10, Marco Calviani  [EMAIL PROTECTED]:
  Hi Beso,
sorry i misunderstood your suggestion. I did what you suggest
 and
  this is the result of the trip_points:
 
  critical (S5):  100C

 wow you don't have anything that says to the cpu to slow down
 when
   it
 reaches some point
 now, to add some other trip points you have to copy these in a
 konsole
   with
 root priviledges:
 echo passive: 78 C: tc1=3 tc2=1 tsp=150
 devices=CPU0 \
 active[0]:   68 C: devices= FN1 \
 active[1]:   58 C: devices= FN2 
 /proc/acpi/thermal_zone/TZ01/trip_points

 then do a cat on the thermal_zone/TZ0/trip_points to see if you've
 added
   the
 lines for passive and active  lines.
 that means that when your thermal reaches 78 degrees it will slow
 down
   the
 processor. from 58 to 68 it will turn on the fan but don't turn down
 the
 speed of the processor, below 58 it will turn off the fan.
 
 

  which i suppose is the reason why at that temperature the laptop
   switch
 off.
  So, nothing except for the critical state. Should i have to add
 there
 something?

 if the pc turns down then it can read from somewhere the actual
 thermal
 point. you try to see after actually setting the things i've just
 said,
   if
 your pc is behaving as it should. remember to also turn on the
 polling
 frequency. without it it will not look for thermal changes. and
 remember
   to
 actually compile the mce and speedstep features in the kernel and
 not as
 module and reboot and then set the things i've

Re: [gentoo-user] Is this normal?

2007-10-11 Thread Marco Antônio da Veiga
Files with trivial changes will be updated automatically as indicated.

On 10/11/07, Etaoin Shrdlu [EMAIL PROTECTED] wrote:

 On Thursday 11 October 2007, Etaoin Shrdlu wrote:

  Where are the other 6 files that need updating?
  Thanks

 Ok, I found bug #194043. Is the one I'm seeing?
 Thanks
 --
 [EMAIL PROTECTED] mailing list




Re: [gentoo-user] Problem with CPU temperature (Santa Rosa CPU)

2007-10-10 Thread Marco Calviani
Hi Volker,
  yes i can imagine there could be something wrong with ACPI, but how
can i recognize it? What is fancontrol?

m

 ACPI. You might be missing some options there. Or something else. Are you
 using fancontrol? If yes, try without, if no, try with it ;)
 --
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: [gentoo-laptop] Problem with CPU temperature (Santa Rosa CPU)

2007-10-10 Thread Marco Calviani
Hi Beso,
actually i'm getting this error:

cat /proc/acpi/thermal_zone/TZ01/polling_frequency
polling disabled

cat /proc/acpi/thermal_zone/TZ01/cooling_mode
setting not supported

m

On 10/9/07, Beso [EMAIL PROTECTED] wrote:
 your thermal doesn't poll make it poll like this:
 echo 2 seconds 
 /proc/acpi/thermal_zone/THRM/polling_frequency
 or wichever thermal zone is in /proc/acpi/thermal_zone. then verify your
 trip points in the same THRM directory but in the file trip_points. you
 should see something like this:
 critical (S5):   105 C
 passive: 76 C: tc1=3 tc2=1 tsp=150 devices=CPU0
 active[0]:   67 C: devices= FN1
 active[1]:   57 C: devices= FN2

 in the eg passive means that your cpu is downclocked since it has passed 76
 degrees C
 active [0] means that your fan is triggered to on
 active[1] means that the fan is not triggered and it is shut down.
 the critical point is when the system shuts down.
 if the polling_frequency tweak doesn't work then you have another problem
 (eg i had to compile the fan and thermal module included in kernel since
 modprobing them would not start the fan). if it works copy the tweak command
 and put it in some init script (i put it at the start of /etc/init.d/xdm so
 that i'm sure it loads after acpi, since that file doesn't exists without
 acpi loaded).
 then try installing kima if you're using kde and add the kima kmenu applet
 to monitor some things. you should be able to see that the processor hardly
 passes 60 degrees while thermal goes high till the passive point and over;
 if you monitor also the cpu load and freq you should be able to see how your
 processors reacts to programs. remember to also install the klaptopdaemon
 since is quite useful in controlling the cpufreq_utils governors and acpi
 settings. try also the laptop_mode-tools and see if they can help you have a
 better use for your disk. the last thing that you can also install is the
 hddtemp for monitoring your disk temperature.

 2007/10/9, Marco Calviani [EMAIL PROTECTED]:
 
  Hi list,
 i have a Santa Rosa (Core 2 Duo T7300) Acer AS5720 laptop, and i'm
  getting problems with the temperature of the CPU. In particular i'm
  using the coretemp module for determining the core temperature.
  Normally (using cpufreqd and the ondemand governor) the CPU stays at
  nearly 50C  (which i think is quite high since in windows , using Core
  Temp it gives about 30C).
  While compiling this increases up to 95-100C (after which it shuts
  down). The problem is that the fan is not spinning up at all!
  What can be the cause of this behaviour? consider that i'm using an up
  to date system with gentoo-sources-2.6.22-r8.
 
  Any help appreciated,
  Regards,
  Marco
  --
  [EMAIL PROTECTED] mailing list
 
 



 --
 dott. ing. beso
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Problem with CPU temperature (Santa Rosa CPU)

2007-10-10 Thread Marco Calviani
Hi Volker,
  i'm attaching my kernel .config. As you can see all the ACPI related
points are enabled.

 posting your config? make menuconfig and reading the help-text to all the
 acpi-options?


Thanks, i've found fancontrol, but since the laptop lacks some chipset
to control the fan itself, the /etc/fancontrol is not created.

I've realized that the temperature given in the
/proc/acpi/thermal_zone/TZ01/temperature is more or less random at a
given machine startup and it does not change while the machine is on.
When it start at a temperature above 60C, the fan starts (and never
switch off) but the cores temperature remains low (~35C). If it's 0C
or 50C or something below this threshold, the fan does not switch on
and the core temp increases up to 100C.
It would be nice to be able to link the fan control directly with the
coretemp and not with the ACPI thermal zone

m
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-laptop] Re: [gentoo-user] Problem with CPU temperature (Santa Rosa CPU)

2007-10-10 Thread Marco Calviani
Hi Beso,
  sorry i misunderstood your suggestion. I did what you suggest and
this is the result of the trip_points:

critical (S5):  100C

which i suppose is the reason why at that temperature the laptop switch off.
So, nothing except for the critical state. Should i have to add there something?

An additional problem is this:
doing a
$ cat /proc/acpi/thermal_zone/TZ01/temperature
it gives only a:

temperature: 0C

My question is:
even if i change the polling frequency, how the fan can start if the
temperature gives 0??
Do you know if it's possible to link the fan start with the core
temperature instead of the ACPI thermal zone?

Regards,
m


 thats why i told you to do this commanda:
  echo 2 seconds 
 /proc/acpi/thermal_zone/TZ01/polling:frequency
 
  this enables the polling of your thermal every 2 seconds. this should be
 enough.
 do you have the other file that i mentioned:
  /proc/acpi/thermal_zone/TZ01/trip_points ?!
 this sets the trip points for your processor. whitout it you governor cannot
 understand what to do even if it polls right.

 as for the kernel thigs, set these options:
 select processor type: intel core2 instead of normal x86
 CONFIG_X86_SPEEDSTEP_CENTRINO=y instead of m
 CONFIG_ACPI_FAN=y instead of m
 CONFIG_MICROCODE=y instead of m (for what i know cpu micocode is needed on
 intels)
 CONFIG_K8_NUMA=n instead of y (this should be the amdk8 numa, that you
 should not need. if it's not then let him be)
 CONFIG_X86_MCE_AMD=n instead of y (you don't need amd mce features since
 they are not included into intel cpus)
 CONFIG_NR_CPUS=32 -- this leaves me a little dazzled: do you really have 32
 cpus in your core?! for what i know this sets the real number of cpus inside
 the kernel, but i might be wrong. so if this is really what i think it is,
 ie the real nr of cpus (not virtual ones) set this to 2 or 4 based on your
 cpu cores.
 CONFIG_HOTPLUG_CPU=n instead of y (i don't really think that you'll unplug
 your cpu from your laptop when the laptop is still running considering that
 you don't use multi cpus but a single multicore cpu. the same goes for
 memory hotplug: i don't think that your laptop supports it, so just disable
 it.)
 for what i have seen the acpi problems may be due to a failure in loading
 the intel speedstep module. if you look into the modules loaded (lsmod) you
 should not see it. so it's better to insert it directly in the kernel, since
 it is one of the first modules called (if you use it as a module you should
 be loading it with initramdisk before loading acpi to have a full acpi
 configuration).
 try setting these options and recompile and install the new kernel and
 modules and reboot (kexec is not working on my amd turion with 64bit enabled
 and so may also be for your core2duo).

  2007/10/10, Marco Calviani [EMAIL PROTECTED]:
  Sorry i missed the attachment.
 
  regards,
  m
 
 



 --
 dott. ing. beso
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-laptop] Re: [gentoo-user] Problem with CPU temperature (Santa Rosa CPU)

2007-10-10 Thread Marco Calviani

 AFAIK only if you have lm_sensors installed and sensors working.

Yes there are both installed. But what do you mean?

m
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Problem with CPU temperature (Santa Rosa CPU)

2007-10-09 Thread Marco Calviani
Hi list,
   i have a Santa Rosa (Core 2 Duo T7300) Acer AS5720 laptop, and i'm
getting problems with the temperature of the CPU. In particular i'm
using the coretemp module for determining the core temperature.
Normally (using cpufreqd and the ondemand governor) the CPU stays at
nearly 50C  (which i think is quite high since in windows , using Core
Temp it gives about 30C).
While compiling this increases up to 95-100C (after which it shuts
down). The problem is that the fan is not spinning up at all!
What can be the cause of this behaviour? consider that i'm using an up
to date system with gentoo-sources-2.6.22-r8.

Any help appreciated,
Regards,
Marco
-- 
[EMAIL PROTECTED] mailing list



  1   2   3   4   >