Re: [gentoo-user] [OFF-TOPIC] Best bios type thingy to boot a computer

2018-08-31 Thread Godzil
I really enjoyed (and still) Open Firmware which was used by Apple on the 
PowerPC macintosh (starting from the first PCI models up to the latest G5)

It is a nice environment, with all the capabilities of UEFI with even more as 
it come for free and directly with a Forth interpreter (basically the CLI is an 
immediate forth interpreter)

Was quite nice and tidy, allowing lots of stuff like modifications of the 
device tree and other nice things.

Was probably underused by Apple but yet, was the key for a lot of hacks on PPC 
models!


I think it was originated from Sun and use on spark station, not really sure 
there

> Le 31 août 2018 à 18:19, Andrew Lowe  a écrit :
> 
>> On 31/08/18 23:16, Andrew Udvare wrote:
>>> On 8/31/18 10:46 AM, Andrew Lowe wrote:
>>> Hi all,
>> 
>>>This is not to start a flame war, I just want to do some reading,
>>> wikipedia pages, for self interest on how a BIOS could have/should have
>>> been done. I'm thinking of how DECStations, Alpha's SPARCs etc etc
>>> booted up.
>> 
>> Try
>> 
>> https://en.wikipedia.org/wiki/Booting#Boot_sequence
>> https://github.com/coreos/grub/tree/2.02-coreos/grub-core/boot/i386/pc
>> https://github.com/torvalds/linux/blob/master/arch/x86/boot/main.c#L135
>> 
> 
> 
>Thanks for the comment but I was more looking along the lines of "When
> I used the early SPARC 1 the boot was controlled by  and it was
> really good because.." hence my original comment about "been there,
> done that", people who are old enough to know what a SPARC1 looked like
> or even used a Personal Iris or a POWERstation.
> 
>Andrew
> 




Re: [gentoo-user] openscad seg fault

2016-03-12 Thread Godzil
If it's build using debug options, looking with GDB where it fail would be much 
more useful than a random dependency graph.

It's intriguing that it default just after doing a mmap:

mmap(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x7f50a7949000


What options did you pass to strace to get this log? Have you set the "follow 
child" option?

> Le 10 mars 2016 à 05:55, Adam Carter  a écrit :
> 
> I can open the program ok, but when I click on New it seg faults. Strace of 
> its death below.
> 
> I tried recompiling it and all its immediate dependencies. How do i 
> troubleshoot this?
> 
> Cheers.
> 
> 
> ioctl(10, 0xc020645e, 0x7ffc4f7bd9c0)   = 0
> mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_SHARED, 10, 0x1380a1000) = 
> 0x7f50a6adc000
> brk(0x2ed6000)  = 0x2ed6000
> ioctl(10, 0xc020645d, 0x7ffc4f7bd960)   = 0
> ioctl(10, 0xc020645e, 0x7ffc4f7bda00)   = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 10, 0x1380b1000) = 
> 0x7f50a794a000
> ioctl(10, 0xc020645d, 0x7ffc4f7bd800)   = 0
> ioctl(10, 0xc008646a, 0x7ffc4f7bd930)   = 0
> ioctl(10, 0x40086464, 0x7ffc4f7bd930)   = 0
> ioctl(10, 0xc020645e, 0x7ffc4f7bd950)   = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 10, 0x1380b2000) = 
> 0x7f50a7949000
> munmap(0x7f50a7949000, 4096)= 0
> ioctl(10, 0xc020645d, 0x7ffc4f7bd800)   = 0
> ioctl(10, 0xc008646a, 0x7ffc4f7bd930)   = 0
> ioctl(10, 0x40086464, 0x7ffc4f7bd930)   = 0
> ioctl(10, 0xc020645e, 0x7ffc4f7bd950)   = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 10, 0x1380b3000) = 
> 0x7f50a7949000
> munmap(0x7f50a7949000, 4096)= 0
> futex(0x2aea9f4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x2aea9f0, {FUTEX_OP_SET, 0, 
> FUTEX_OP_CMP_GT, 1}) = 1
> futex(0x2aea9c8, FUTEX_WAKE_PRIVATE, 1) = 1
> futex(0x2c652dc, FUTEX_WAIT_PRIVATE, 1, NULL) = -1 EAGAIN (Resource 
> temporarily unavailable)
> futex(0x2c652b0, FUTEX_WAKE_PRIVATE, 1) = 0
> ioctl(10, 0xc020645d, 0x7ffc4f7bdbe0)   = 0
> futex(0x35a6a2c168, FUTEX_WAKE_PRIVATE, 2147483647) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0) = 0x7f50a7949000
> --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x968} ---
> +++ killed by SIGSEGV +++
> Segmentation fault
> 




Re: [gentoo-user] After logging into a console. text flashes on the screen and returns to the login

2016-01-30 Thread Godzil
I think that you can use a standard passwd command with specificaly given 
passwd/shadow files

But passwd can also be edited by hand, you just need to add a new entry and a 
not used uid, and the shadow file can also easily edited by hand, but you will 
need to he sure that the password hash you add is correct.

There is a way to have no password but I'll remember what to put in the Shadow 
file, maybe an empty entry for the password, I'm not sure, I'll take a look 
when I can, but I'm sure plenty of people would know here

Good luck,
Manoël 

> Le 30 janv. 2016 à 17:24, Andrew Lowe <a...@wht.com.au> a écrit :
> 
>> On 01/30/16 23:34, Godzil wrote:
>> So you can log from SSH or telnet but not the console?
>> 
>> If not, I would check all the profile and bashrc files to be sure there is 
>> nothing wrong there.
>> 
>> If you can log from outside, could you have forbidden root to log from tty0?
>> You should try adding another user connecting from outside, them log into 
>> that user on the local screen, if it works that mean something prevent root 
>> to log from the main terminal..
>> 
>> I hope that could help,
>> Manoël
> 
> Manoel,
>No access from ssh. I had to physically remove the disk from the
> machine, place it in another, fiddle the shadow file, then replace it in
> the ARM machine.
> 
>Do you know of any doco that explains how to add a user manually. By
> manually I mean that I will have to remove the disk, place it in another
> machine and then manually edit the appropriate files to add a new user.
> I have no idea as to what I need to fiddle.
> 
>Andrew
> 



Re: [gentoo-user] After logging into a console. text flashes on the screen and returns to the login

2016-01-30 Thread Godzil
So you can log from SSH or telnet but not the console?

If not, I would check all the profile and bashrc files to be sure there is 
nothing wrong there.

If you can log from outside, could you have forbidden root to log from tty0?
You should try adding another user connecting from outside, them log into that 
user on the local screen, if it works that mean something prevent root to log 
from the main terminal..

I hope that could help,
Manoël

> Le 30 janv. 2016 à 15:10, Andrew Lowe  a écrit :
> 
> Hi all,
>I have an ARM device that I have Gentoo on. In the past I had it
> successfully running and then one day I managed to "customise" something
> and I could no longer get it to boot. At the time I though "I'll have to
> fix that...". Today I'm trying.
> 
>The machine in question operates as a small server hence runs headless.
> For the work at hand, I've attached it to the TV hence everything is in
> text mode, no X.
> 
>When it boots, I'm presented with the login prompt. I enter "root", the
> password & enter. The screen flashes, a frame by frame viewing of a
> video of this shows that it's printing the last time I logged in and
> then am represented with the login again. This just repeats. I though
> that I had forgotten the root password hence accessed the disk via
> another machine, reset things in the shadow file and rebooted. Once
> again the screen flashed, with the same output, and I was presented with
> the login prompt again.
> 
>Any thought on what could be going wrong here? I've ensured all the
> files that should be owned by root are owned by root - I think. Logging
> appears not to be working so I can't get much from that. I'm 99.99% sure
> this is not an ARM specific problem as the machine was running perfectly
> beforehand.
> 
>Any thoughts greatly appreciated,
> 
>Andrew
> 



Re: [gentoo-user] After logging into a console. text flashes on the screen and returns to the login

2016-01-30 Thread Godzil
Chroot will only work if the host is an ARM computer or it fill just be a nice 
failure :)


But qemu-static and chroot is a good functional solution

Manoël

> Le 30 janv. 2016 à 20:41, Willie Matthews <matthews.willi...@gmail.com> a 
> écrit :
> 
> On Sun, 31 Jan 2016 01:24:48 +0800
> Andrew Lowe <a...@wht.com.au> wrote:
> 
>>> On 01/30/16 23:34, Godzil wrote:
>>> So you can log from SSH or telnet but not the console?
>>> 
>>> If not, I would check all the profile and bashrc files to be sure
>>> there is nothing wrong there.
>>> 
>>> If you can log from outside, could you have forbidden root to log
>>> from tty0? You should try adding another user connecting from
>>> outside, them log into that user on the local screen, if it works
>>> that mean something prevent root to log from the main terminal..
>>> 
>>> I hope that could help,
>>> Manoël
>> 
>> Manoel,
>>No access from ssh. I had to physically remove the disk from
>> the machine, place it in another, fiddle the shadow file, then
>> replace it in the ARM machine.
>> 
>>Do you know of any doco that explains how to add a user
>> manually. By manually I mean that I will have to remove the disk,
>> place it in another machine and then manually edit the appropriate
>> files to add a new user. I have no idea as to what I need to fiddle.
>> 
>>Andrew
> 
> You can use a chroot in another machine.
> 
> -- 
> 
> Willie Matthews
> matthews.willi...@gmail.com
> (702) 659-9966



Re: [gentoo-user] OOM memory issues

2014-09-18 Thread Godzil
You could also disable the overcommitment so that an app that ask for too much 
memory will be denied (you know the possible NULL pointer malloc could return. 
With overcommit, it will never return NULL whatever the memory status is. 
Without this, all requested memory is really allocated, and malloc will fail if 
it is unable to reserve the asked memory size.

 

 Le 18 sept. 2014 à 17:27, Kerin Millar kerfra...@fastmail.co.uk a écrit :
 
 
 On 18/09/2014 16:48, James wrote:
 Hello,
 
 Out Of Memory seems to invoke mysterious processes that kill
 such offending processes. OOM seems to be a common problem
 that pops up over and over again within the clustering communities.
 
 
 I would greatly appreciate (gentoo) illuminations on the OOM issues;
 both historically and for folks using/testing systemd. Not a flame_a_thon,
 just some technical information, as I need to understand these
 issues more deeply, how to find, measure and configure around OOM issues,
 in my quest for gentoo clustering.
 
 The need for the OOM killer stems from the fact that memory can be 
 overcommitted. These articles may prove informative:
 
 http://lwn.net/Articles/317814/
 http://www.oracle.com/technetwork/articles/servers-storage-dev/oom-killer-1911807.html
 
 In my case, the most likely trigger - as rare as it is - would be a runaway 
 process that consumes more than its fair share of RAM. Therefore, I make a 
 point of adjusting the score of production-critical applications to ensure 
 that they are less likely to be culled.
 
 If your cases are not pathological, you could increase the amount of memory, 
 be it by additional RAM or additional swap [1]. Alternatively, if you are 
 able to precisely control the way in which memory is allocated and can 
 guarantee that it will not be exhausted, you may elect to disable overcommit, 
 though I would not recommend it.
 
 With NUMA, things may be more complicated because there is the potential for 
 a particular memory node to be exhausted, unless memory interleaving is 
 employed. Indeed, I make a point of using interleaving for MySQL, having 
 gotten the idea from the Twitter fork.
 
 Finally, make sure you are using at least Linux 3.12, because some 
 improvements have been made there [2].
 
 --Kerin
 
 [1] At a pinch, additional swap may be allocated as a file
 [2] https://lwn.net/Articles/562211/#oom
 



Re: [gentoo-user] Enable password echo during login

2014-08-03 Thread Godzil
I don't think normal login utility allow this. Unix never does this.

Look at the Getty, login man pages but I really don't think it is possible.



 Le 3 août 2014 à 14:49, Nikos Chantziaras rea...@gmail.com a écrit :
 
 
 Does someone know how to enable the echoing of passwords when logging in? I 
 mean in the console or terminal. By default there's nothing displayed. I'd 
 like to have the more traditional method of displaying asterisks instead.
 
 Possible?
 
 



Re: [gentoo-user] Enable password echo during login

2014-08-03 Thread Godzil
There is one possibility: modify the login app code to display stars ;)

 Le 3 août 2014 à 15:02, Anan Laksmana ananda.laksm...@gmail.com a écrit :
 
 I think it's not possible
 
 On Aug 3, 2014 7:50 PM, Nikos Chantziaras rea...@gmail.com wrote:
 Does someone know how to enable the echoing of passwords when logging in? I 
 mean in the console or terminal. By default there's nothing displayed. I'd 
 like to have the more traditional method of displaying asterisks instead.
 
 Possible?


Re: [gentoo-user] Demise of Truecrypt - surprised I haven't seen t his discussed here yet?

2014-06-02 Thread godzil

Le 2014-06-02 13:23, Matti Nykyri a écrit :

On Jun 2, 2014, at 16:40, J. Roeleveld jo...@antarean.org wrote:


Well i have a switch in the door of the server room. It opens when you
open the door. That signals the kernel to wipe all the encryption keys
from kernel memory. Without the keys there is no access to the disks.
After that another kernel is executed which wipes the memory of the
old kernel. If you just pull the plug memory will stay in its state
for an unspecified time.

Swap uses random keys.

network switches and routers get power only after firewall-server is
up and running.

There is no easy way to enter the room without wipeing the encryption
keys. Booting up the server requires that a boot disk is brought to
the computer to decrypt the boot drive. Grub2 can do this easily. This
is to prevent some one to tamper eith a boot loader.

System is not protected against hardware tamperment. The server room
is an RF-cage.

I consoder this setup quite secure.


It's nice to encrypt and wipe things automatically, but what about the 
backups?




Re: [gentoo-user] Demise of Truecrypt - surprised I haven't seen t his discussed here yet?

2014-06-02 Thread godzil
So you backup on harddrive, not tape and theses are not incremental 
backups.


But my question about backup was not only for you but for all that 
encrypt their servers.


The backup part is generally the weakest point.


Le 2014-06-02 13:58, Matti Nykyri a écrit :

On Jun 2, 2014, at 15:36, godzil god...@godzil.net wrote:


Le 2014-06-02 13:23, Matti Nykyri a écrit :

On Jun 2, 2014, at 16:40, J. Roeleveld jo...@antarean.org wrote:
Well i have a switch in the door of the server room. It opens when 
you
open the door. That signals the kernel to wipe all the encryption 
keys

from kernel memory. Without the keys there is no access to the disks.
After that another kernel is executed which wipes the memory of the
old kernel. If you just pull the plug memory will stay in its state
for an unspecified time.
Swap uses random keys.
network switches and routers get power only after firewall-server is
up and running.
There is no easy way to enter the room without wipeing the encryption
keys. Booting up the server requires that a boot disk is brought to
the computer to decrypt the boot drive. Grub2 can do this easily. 
This

is to prevent some one to tamper eith a boot loader.
System is not protected against hardware tamperment. The server room
is an RF-cage.
I consoder this setup quite secure.


It's nice to encrypt and wipe things automatically, but what about the 
backups?


Well i have backups on their own drive with its own keys. I have
backups of the keys in another location. The drives are LUKS drivers
with detached LUKS info.




Re: [gentoo-user] OT: Regular v Ordinary

2014-04-30 Thread godzil

Le 2014-04-30 09:47, Peter Humphrey a écrit :

On Tuesday 29 Apr 2014 16:05:04 walt wrote:

On 04/29/2014 05:49 AM, Peter Humphrey wrote:

I don't suppose it's misuse, just different use, which is fine when
separated by
a few thousand miles :-) . It just annoys me when I'm offered a regular 
coffee,
when I would have said standard, or medium (size). It's happened 
particularly

since our high streets were flooded with Starbucks and the like. To me,
regular is closely associated to regularity, as one might think of 
in
personal habits (sorry!). Or, regular as clockwork is a common phrase 
and

gets my meaning across.


I suspect that your habits for regular or ordinary came from French, 
where the first translation of regular is régulier, habituel which 
mean that it is something is a habits.


And ordinary will be translate to ordinaire that have the means of 
common, standard.


I know that some difference from UK and US English come from the nearby 
European country (monstly France) (i.e: colour vs color, behaviour vs 
behavior, etc.)





Re: [gentoo-user] OT: Regular v Ordinary

2014-04-30 Thread godzil

Le 2014-04-30 12:47, Peter Humphrey a écrit :

On Wednesday 30 Apr 2014 10:21:11 godzil wrote:

I suspect that your habits for regular or ordinary came from 
French,

where the first translation of regular is régulier, habituel which
mean that it is something is a habits.

And ordinary will be translate to ordinaire that have the means of
common, standard.

I know that some difference from UK and US English come from the 
nearby

European country (mostly France) (i.e: colour vs color, behaviour vs
behavior, etc.)


Yes, true, except that habits is not the right word: usage would be
better, which in this context in English means custom.



Thanks

Countries being adjacent is not the explanation. I haven't seen an 
authority
on this, but I believe that a good half of English words come from 
French (as
a result of the most recent invasion of these islands in 1066), most of 
the
rest coming from Latin and Greek. (That's now largely forgotten in USA, 
where
efforts are now directed at absorbing German, Italian and Spanish.) 
There's a
smattering of words from India and other parts of the Empire as well. 
Hardly
any from Italian or Spanish, which accounts for a lot of differences 
between

American and English.

Yes that true, lots of English words came from old French, and funnily 
some word that were lost goes back into French :)
But I don't agree, on the origin of Old English it is more a 
germano-celtic language than a latino-greek one. French clearly come 
from Latin and Old Greek, like Spanish or Italian. On the contrary, the 
German language have nearly no roots in Latin and Greek.


The spelling differences you mention are I think a result of attempts 
to

simplify the language by your founding fathers.


Wikipedia have a nice article on this: 
http://en.wikipedia.org/wiki/American_and_British_English_spelling_differences 
(I tried to read it, but now my head is hurting!)



Similarly, today, sentence
structure is changing, with a wholesale ditching of previously useful 
tenses
and, for instance, an insistence on putting adverbs before their verbs. 
Are
those German influences? And why do so many insist on a single word 
never being
both a noun and a verb (use, usage)? What do you do with compact, 
which can

be noun, verb or adjective?

I could go on, but I'd better not  :-)






Re: [gentoo-user] problem: frequently auto suspend

2014-04-30 Thread godzil
 

For the suspend after a wakeup, I've a similar problem on my EEEPC
1000HE, I didn't investigate a lot, but on my case I strongly suspect
that it is caused by a two process/script that try to manage the same
event. 

It does not happen when I press the Sleep button (Fn+F1 if I recall
correctly) but happen everytime when closing the lid. I remember to had
lots of problem with ACPI configuration, and some key are still not
working as expected, anyway, I've may in my case mess with some ACPI
script. Maybe you could look at this first? 

Manoel 

Le 2014-04-30 15:13, simsilver Lee a écrit : 

 Forget to mention, I have tried kernel 3.14, 3.14.1, 3.13.7, and none works 
 well on this. 
 
 On Wed, Apr 30, 2014 at 10:11 PM, simsilver Lee yihuanlingj...@gmail.com 
 wrote:
 
 Hello everyone, I have met a problem recently after once update. My laptop 
 suspends automatically after booting up, and suspends on and on after 
 wakeup. I have checked up the log and there is no obvious errors. It works 
 well on Win7 and Ubuntu Live, and on Gentoo the CPU is about 60 ℃. It also 
 works well in single mode, but suspends quickly after I start NetworkManager 
 service. And I found that it echo ^@ before the first-time suspend in the 
 console.
 
 I have tried some solutions such as pass pcie_aspm=force to kernel, 
 disable gdm service, none works. Masking suspend.target and 
 systemd-suspend.service helps, but I want a better solution.
 
 Could someone help me? And what info do I need to attach?
 
 Simsilver

 

Re: [gentoo-user] Merging separate /usr back into / - one last time...

2013-12-06 Thread godzil

Le 2013-12-06 11:07, Tanstaafl wrote :
And for the record (you didn't specifically say so), are you in 
agreement that


cp -a /usr/. /usr.tmp/.

will accomplish the exact same thing as the rsync command I was
planning on using?



For me, it's best to use rsync, because rsync will not copy file if they 
are already existing, and are the same. It's quite usefull when using a 
copy over a network, or even locally when spurious error can occur and 
especially when the filesystem is live and file may be modified during 
the copy.


To copy large file tree rsync is, for me, always the best choice, and 
I'm pretty sure that there are some cases that rsync will behave better 
than a simple recursive cp


Cheers,
Godzil



[gentoo-user] Re: Headsup: bad breakage from today's xcb update

2011-04-28 Thread godzil
I have similar breakage with xcb*-0.3.8 but with gnome-base/nautilus 
this time, but seems related with startup-notification...


During the ebuild compilation, it fail with a link error searching for 
libxcb-aux, libxcb-event and libxcb-atom. I search in all .la file, run 
lafilefixer to verify if all la is fixed


---

  CCLD   libeel-2.la
  CCLD   check-program
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../../i686-pc-linux-gnu/bin/ld: 
cannot find -lxcb-aux
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../../i686-pc-linux-gnu/bin/ld: 
cannot find -lxcb-event
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../../i686-pc-linux-gnu/bin/ld: 
cannot find -lxcb-atom

collect2: ld returned 1 exit status
make[2]: *** [check-program] Error 1
make[2]: Leaving directory 
`/var/tmp/portage/gnome-base/nautilus-2.32.2.1-r1/work/nautilus-2.32.2.1/eel'

make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/var/tmp/portage/gnome-base/nautilus-2.32.2.1-r1/work/nautilus-2.32.2.1'

make: *** [all] Error 2
emake failed

---

I found refs about this libs in some .la files inside /usr/lib (here 
libcheese-gtk.la,  libgksu2.la libgnome-desktop-2.la, 
libmetacity-private.la and libstartup-notification-1.la)


It looks like nautilus search for libstartup-notification and the .la 
file end with screw everything. Maybe lafilefixer should have some logic 
to search for missing lib inside la file, like revdep-rebuild do on 
binary files. Searching for such breakages is really a pain, and can 
happen oftenly with such bad tools as libtool...



Both xcb and startup-notification are latest version and compile 
without a problem:


[I] x11-libs/startup-notification
 Available versions:  0.10 (~)0.10_p20110426 {static-libs}
 Installed versions:  0.10_p20110426(16:40:14 
04/27/11)(-static-libs)

[I] x11-libs/xcb-util
 Available versions:  0.3.6 (~)0.3.8 {debug doc static-libs test}
 Installed versions:  0.3.8(10:15:14 04/28/11)(-doc -static-libs 
-test)


(of course revdep-rebuild found nothing to do on 
/usr/lib/libstartup-notification-1.so, so no easy way to find and 
eliminate such painful bugs.)


Manoel


There is already a bug filed against xlibs/xcb*-0.3.8, and 0.3.6 has 
already

been removed from portage (a very bad decision).

The major problem is with libstartup-notification, which relies on a 
function

defined in xcb-util-0.3.6 and no longer exists in 0.3.8.