Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[NEWS] September GMN
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
KillerX
Retired Dev
Retired Dev


Joined: 28 Jun 2006
Posts: 12
Location: India

PostPosted: Tue Sep 30, 2008 6:01 pm    Post subject: [NEWS] September GMN Reply with quote

This thread is for discussion of the September issue of the Gentoo Monthly Newsletter. We hope you enjoyed reading it!

If you liked a certain article or felt that the GMN was published with something that we could do without, let us know. You can also put your comments and suggestions on how you think the next GMN should be.

The latest issue may not appear on the webnodes immediately, so please be patient.
_________________
Anant
http://www.kix.in/
Back to top
View user's profile Send private message
ukavi
Apprentice
Apprentice


Joined: 09 Feb 2007
Posts: 181
Location: The Netherlands

PostPosted: Tue Sep 30, 2008 7:09 pm    Post subject: Reply with quote

the newsletters have become WAY better since they're now monthly instead of weekly :)
good summary of the important news. keep on going.
_________________
English is not my native language, please notify me of any mistakes.
Back to top
View user's profile Send private message
ebuc99
n00b
n00b


Joined: 13 Mar 2008
Posts: 12

PostPosted: Tue Sep 30, 2008 7:34 pm    Post subject: Reply with quote

Yes, good work!
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Tue Sep 30, 2008 8:13 pm    Post subject: Reply with quote

Ok after eapi2 we`ll going to get kde4 are we :mrgreen:
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
Matthijs70
n00b
n00b


Joined: 01 Oct 2006
Posts: 43
Location: the Netherlands

PostPosted: Tue Sep 30, 2008 8:33 pm    Post subject: Reply with quote

I also agree it's much better these days ... so keep up the good work !!!
Back to top
View user's profile Send private message
drsound
n00b
n00b


Joined: 20 Sep 2004
Posts: 10
Location: Italy

PostPosted: Tue Sep 30, 2008 10:06 pm    Post subject: About "Running commands on many machines" Reply with quote

I post here too the email I just sent to gmn-feedback@gentoo.org, maybe it could be interesting for somebody:

Hi, about "Running commands on many machines" on last GMN issue, I have my own method:
  1. I run Keychain and I use SSH public key authentication on each of my servers to avoid typing passwords all the time
  2. I run a bash script calling KDE DCOP to instantiate multiple Konsole sessions and running SSH on each one: each session is properly named as the respective server.
  3. I independently use each session or I activate "send input to all sessions" Konsole feature to send commands to all of them.
An interesting thing about the script is that I'm able to reach internal servers by chaining SSH commands (see "Customer 1: internal server" for example). Here it is:

Code:
#!/bin/bash

i=0

host[i]=111.222.111.222
name[i]='Customer 1: firewall'
i=$((i + 1))

host[i]=111.222.111.222
name[i]='Customer 1: internal server'
command[i]='ssh root@192.168.0.1'
i=$((i + 1))

host[i]=123.234.123.234
name[i]='Customer 2: firewall'
i=$((i + 1))

#insert as many servers as you want using the previous ones as templates...

konsole=$(dcopstart konsole-script)
for ((i=0 ; i<${#host[*]} ; i++)) ; do
    if [[ i -eq 0 ]] ; then
        session[i]=$(dcop $konsole konsole currentSession)
    else
        session[i]=$(dcop $konsole konsole newSession)
    fi
    dcop $konsole ${session[i]} renameSession "${name[i]}"
done
sleep 1

for ((i=0 ; i<${#host[*]} ; i++)) ; do
    if [[ ${command[i]} ]] ; then
        dcop $konsole ${session[i]} sendSession "ssh -A -t root@${host[i]} ${command[i]}"
    else
        dcop $konsole ${session[i]} sendSession "ssh root@${host[i]} || exit"
    fi
done


Yes, I know, I could have written a function and call it for each server, it would be nicer...
Back to top
View user's profile Send private message
golding
Apprentice
Apprentice


Joined: 07 Jun 2005
Posts: 232
Location: Adelaide / South Australia

PostPosted: Tue Sep 30, 2008 10:23 pm    Post subject: What does EAPI mean? Reply with quote

There's that acronym "EAPI" again!

I started using Gentoo around 5 or 6 years ago and joined the forums around 3 years ago, but until 6 months ago, I had not seen, or heard the term, "EAPI". It seemed to spring up, fully developed, as an acronym from nowhere.

I don't know about others, but I have searched the Gentoo site and all of its affiliate sites (that I could think of), Googled and Asked Jeeves and other than East Asian Pastoral Institute or Education Arts Partnership Initiative, (not likely for this though), I am unable to find what "EAPI" for portage actually means.

I know it has something to do with Portage/Ebuild/Emerge so I have tried the following expansions;
    "E" = Ebuild or Emerge ??
    "A" = Application ??
    "P" = Portage ??
    "I" = Interface ??


A friend of mine who programs for a living suggested it may mean;
    Ebuild/Emerge - API


which seems more likely, but I would have written it as E-API rather than EAPI to stop confusion among the masses.

Anyway, what is the correct expansion of the acronym? I really would like to know, thankyou .. :?
_________________
Regards, Robert

..... Some people can tell what time it is by looking at the sun, but I have never been able to make out the numbers.
Back to top
View user's profile Send private message
tanderson
Retired Dev
Retired Dev


Joined: 11 Apr 2007
Posts: 193

PostPosted: Tue Sep 30, 2008 11:52 pm    Post subject: Re: What does EAPI mean? Reply with quote

golding wrote:
There's that acronym "EAPI" again!

I started using Gentoo around 5 or 6 years ago and joined the forums around 3 years ago, but until 6 months ago, I had not seen, or heard the term, "EAPI". It seemed to spring up, fully developed, as an acronym from nowhere.

I don't know about others, but I have searched the Gentoo site and all of its affiliate sites (that I could think of), Googled and Asked Jeeves and other than East Asian Pastoral Institute or Education Arts Partnership Initiative, (not likely for this though), I am unable to find what "EAPI" for portage actually means.

I know it has something to do with Portage/Ebuild/Emerge so I have tried the following expansions;
    "E" = Ebuild or Emerge ??
    "A" = Application ??
    "P" = Portage ??
    "I" = Interface ??


A friend of mine who programs for a living suggested it may mean;
    Ebuild/Emerge - API


which seems more likely, but I would have written it as E-API rather than EAPI to stop confusion among the masses.

Anyway, what is the correct expansion of the acronym? I really would like to know, thankyou .. :?


Ebuild Application programming interface. It's a specification of what ebuilds can expect to be able to use.
_________________
No Man is Just a Number!

--The Prisoner
Back to top
View user's profile Send private message
draino
n00b
n00b


Joined: 03 Dec 2007
Posts: 22
Location: Perth WA, Australia

PostPosted: Wed Oct 01, 2008 12:45 am    Post subject: Reply with quote

What an awesome issue!

Apart from hearing about Diego Pettenò leaving the council (he's pretty awesome IMO), I particularly liked the re-visit of both the RAID and lsof tips, as well as the new "Running commands on many machines" (something witch I will need to look into in the near future).

Also about the changes to the release strategy of Gentoo. I would like to see more minimal CD releases and stage tarball updates. This is all that I seem to need since getting, an rsync/ftp server, automated daily syncing and weekly portage tarball snapshots (yeah snapshots are a bit redundant, but what else can I make the sever do when it's not compiling? :P), it is not nearly as effective as it could be, unless there is more/better info on how to create a build host/boot media creator for multiple (sub)arch types w/optimisations etc.

Either way, I am hopeful to see more regular minimal CD releases/stages...

I sill have a lot more to learn about portage (and maybe one day become a dev).


I <3 Gentoo
_________________

Dell XPS M1370 (MXG071) | Dell 2707WFP | IBM Model M (1391401) | Logitech MX320
Linux 2.6.24-tuxonice-r9 #1 SMP PREEMPT x86_64 Intel(R) Core(TM)2 Extreme CPU X7900 @ 2.80GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
kimael
n00b
n00b


Joined: 01 Oct 2008
Posts: 2
Location: Cachan, 94, France

PostPosted: Wed Oct 01, 2008 8:03 am    Post subject: Re: [NEWS] September GMN Reply with quote

Hi !

Thank you for the tips, but... :)

I have just tried to install "iotop", but I failed (strangely, the ebuild was added to my "world" anyway) :
Code:

 * Checking for suitable kernel configuration options...
 *   CONFIG_TASK_IO_ACCOUNTING:  is not set when it should be.
 *   CONFIG_TASKSTATS:   is not set when it should be.


Both of them are flagged experimental. Maybe you should add a warning (or not).
NB : using "2.6.24-gentoo-r8", may be Ok in higher versions...

Thanks anyway.

--
Mickaël
Back to top
View user's profile Send private message
sigra
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2006
Posts: 118

PostPosted: Wed Oct 01, 2008 8:33 am    Post subject: Re: [NEWS] September GMN Reply with quote

kimael wrote:
Both of them are flagged experimental. Maybe you should add a warning (or not).
NB : using "2.6.24-gentoo-r8", may be Ok in higher versions...
Still experimental in linux-2.6.25-gentoo-r7.
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Wed Oct 01, 2008 8:50 am    Post subject: Reply with quote

--

Last edited by 96140 on Wed Sep 11, 2013 9:10 am; edited 1 time in total
Back to top
View user's profile Send private message
kimael
n00b
n00b


Joined: 01 Oct 2008
Posts: 2
Location: Cachan, 94, France

PostPosted: Wed Oct 01, 2008 1:06 pm    Post subject: Reply with quote

nightmorph wrote:
It's okay that it's experimental. It doesn't matter.

:) thank you, but no thank you. I will try iotop later...
That was the personnal part of the subject.

By the way, is it "normal" the installation failed (kernel not configured to let iotop being installed) but succeeded (added to world, emerge did not stop with an error message) ?

--
Mickaël
Back to top
View user's profile Send private message
sigra
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2006
Posts: 118

PostPosted: Wed Oct 01, 2008 1:44 pm    Post subject: Reply with quote

kimael wrote:
nightmorph wrote:
It's okay that it's experimental. It doesn't matter.

By the way, is it "normal" the installation failed (kernel not configured to let iotop being installed) but succeeded (added to world, emerge did not stop with an error message) ?


The installation did not fail. It successfully installed iotop. The installation itself does not require a kernel with those features. The message just informed the user that he must get those features to use iotop. But he does not have to reinstall iotop when he has fixed his kernel. So yes, the behaviour is "normal".
Back to top
View user's profile Send private message
Azik
Apprentice
Apprentice


Joined: 03 Apr 2005
Posts: 151
Location: Russia, Ufa

PostPosted: Thu Oct 02, 2008 4:53 am    Post subject: Reply with quote

Quote:
EAPI-2: the new EAPI is approved.

Ehh, why EAPI specifications written in TeX and not GuideXML?
_________________
From Siberia with Love!
Back to top
View user's profile Send private message
tanderson
Retired Dev
Retired Dev


Joined: 11 Apr 2007
Posts: 193

PostPosted: Thu Oct 02, 2008 11:27 am    Post subject: Reply with quote

Azik wrote:
Quote:
EAPI-2: the new EAPI is approved.

Ehh, why EAPI specifications written in TeX and not GuideXML?


Because the person who wrote the EAPI specification found it best to use TeX. If that's a problem to your viewing, here's an HTML copy: http://dev.gentoo.org/~gentoofan23/pms/pms.html
_________________
No Man is Just a Number!

--The Prisoner
Back to top
View user's profile Send private message
Azik
Apprentice
Apprentice


Joined: 03 Apr 2005
Posts: 151
Location: Russia, Ufa

PostPosted: Thu Oct 02, 2008 11:45 am    Post subject: Reply with quote

gentoofan23 wrote:

Because the person who wrote the EAPI specification found it best to use TeX. If that's a problem to your viewing, here's an HTML copy: http://dev.gentoo.org/~gentoofan23/pms/pms.html


Thank you. So why this link not appear on PMS project-page :)? It would be great.
_________________
From Siberia with Love!
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Thu Oct 02, 2008 12:00 pm    Post subject: Reply with quote

About Gentoo releases:
A distro needs to put out new releases from time to time (or face extinction?).
Since Gentoo is a "rolling release" the new install cd's/dvd's are needed to
enable newer hardware only (IMHO).
I think there are quite a few Gentooïsts that use sysrescuecd to install Gentoo.
Since it's based on Gentoo wouldn't it be a good idea to stop bringing out new
releases and recommend using sysrescue instead?
That way the devs working on these releases would be free to work on other
more important parts of Gentoo.
This is not meant as criticism of any kind,I love Gentoo and will not trade it
for any other flavor of Linux.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Oct 02, 2008 7:08 pm    Post subject: Reply with quote

Hi, I like your idea for SystemRescueCD.

In fact, that little CD has a 32 bits kernel and a 64 bits kernel builtin :P

But, if Gentoo does that, then what happen if the SystemRescueCD ends ?

Also, what about that the SystemResueCD become a Gentoo SystemRescueCD Officially ?

It would leave some time for the devs to work on the Portage tree.

I must say that I'm sure that we can push your idea with this :

Why not leave the Stages and the Snapshot to our friend Daniel Robbins ?

I like his Funtoo.org project and I must say that his Stages and Snapshot are rock solid.

What do you think ?
Back to top
View user's profile Send private message
einheitlix
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2004
Posts: 144
Location: Saarbrücken, Germany

PostPosted: Mon Oct 06, 2008 10:21 am    Post subject: Reply with quote

I also liked this issue of the GMN very much. I always especially enjoy the "Tips&Tricks" section, which has improved massively since the newsletter is being published only once a month.

A little improvement to one of the tips, which may be useful to some people:

Quote:

+----------------------------------------------------------------------------+
| Code Listing 4.1 |
| Running emerge on multiple machines |
+----------------------------------------------------------------------------+
| $ for i in `seq 10`; do ssh gentoo-box-$i "emerge --info"; done |
+----------------------------------------------------------------------------+

Warning: Do not try run interactive commands in parallel with this "for"
loop. This includes running it without public key encryption. The machines
will prompt you for passwords, but you will be unable to input your
passwords.


True, you cannot use interactive commands using this method, but if you want to be able to, there's still the -t option of ssh, so commands passed though ssh are run in a terminal. Of course, if they're interactive, you still have to somehow quit that application so the 'for' loop is continued on the next machine, but anyway, it should work like this:

Code:

for i in `seq 10`; do ssh -t gentoo-box-$i "emerge --ask --update --deep world"; done


..and that's it ;)

Keep up the great work!

Malte
_________________
Collecting data is only the first step toward wisdom. But sharing data is the first step toward community.
Back to top
View user's profile Send private message
CptFastbreak
n00b
n00b


Joined: 04 Sep 2007
Posts: 16

PostPosted: Tue Oct 07, 2008 11:53 am    Post subject: Reply with quote

At first glance, I also liked the TnT section. But then I actually tried Tentakel which just throws strange errors. A visit on their web page tells me that the newest Tentakel release is from 2005, and that the last activity is the announcement of a supposedly new release in 10/2007 - almost one year ago. Since then, there seems to have been no activity on that page. The mailing list uses a certificate that expired in 2005, and only has one posting made in 12/2007.

Could that be the reason why I'm getting runtime errors when I try the example config from the GMN? Shouldn't it be considered necromancy to recommend such a program, hence be prohibited by Christian faith?[/b]
Back to top
View user's profile Send private message
Ma3oxuct
Guru
Guru


Joined: 18 Apr 2003
Posts: 523

PostPosted: Tue Oct 07, 2008 4:36 pm    Post subject: Reply with quote

einheitlix: Thanks for that!

CptFastbreak: What error is Tentakel giving you? It worked flawlessly for me. (I'm the culprit behind it being in GMN this month, it seemed like a really good solution for doing what cssh did with xterm, but on the cmd line...of course I should have payed attention to the age :/)
Back to top
View user's profile Send private message
CptFastbreak
n00b
n00b


Joined: 04 Sep 2007
Posts: 16

PostPosted: Tue Oct 07, 2008 5:22 pm    Post subject: Reply with quote

I'm not at work right now, so I can't give you the exact message. It was something like "foo is not an index".
Back to top
View user's profile Send private message
CptFastbreak
n00b
n00b


Joined: 04 Sep 2007
Posts: 16

PostPosted: Thu Oct 09, 2008 4:27 pm    Post subject: Reply with quote

The exact error messages seem to indicate that there is something wrong with the config but it's copied from the example. My /etc/tentakel.conf looks like this:
Code:

# first section: global parameters                                                                                     
set ssh_path="/usr/bin/ssh"
set method="ssh"

# second section: groups
group default () @cippool

group cippool (user="guru")
        +b111-03 +b111-05 +b111-07 +b111-09
        +b111-11 +b111-13 +b111-15 +b111-17

group local ()
        +127.0.0.1


When I try to just run tentakel, I get this error:
Code:

Traceback (most recent call last):
  File "/usr/bin/tentakel", line 101, in <module>
    conf.load(f)
  File "/usr/lib64/python2.5/site-packages/lekatnet/config.py", line 181, in load
    self.parse("".join(file.readlines()))
  File "/usr/lib64/python2.5/site-packages/lekatnet/config.py", line 175, in parse
    self.update(tp(txt))
  File "/usr/lib64/python2.5/site-packages/lekatnet/tpg.py", line 921, in __call__
    return self.parse('START', input, *args, **kws)
  File "/usr/lib64/python2.5/site-packages/lekatnet/tpg.py", line 934, in parse
    value = getattr(self, axiom)(*args, **kws)
  File "<string>", line 8, in START
  File "<string>", line 5, in SETTING
  File "<string>", line 15, in PARAM
  File "/usr/lib64/python2.5/site-packages/lekatnet/tpg.py", line 986, in extract
    return self.lexer[start:stop]
TypeError: object cannot be interpreted as an index


When I explicitly ask for group cippool with "tentakel -g cippool", I get this:
Code:

Traceback (most recent call last):
  File "/usr/bin/tentakel", line 101, in <module>
    conf.load(f)
  File "/usr/lib64/python2.5/site-packages/lekatnet/config.py", line 181, in load
    self.parse("".join(file.readlines()))
  File "/usr/lib64/python2.5/site-packages/lekatnet/config.py", line 175, in parse
    self.update(tp(txt))
  File "/usr/lib64/python2.5/site-packages/lekatnet/tpg.py", line 921, in __call__
    return self.parse('START', input, *args, **kws)
  File "/usr/lib64/python2.5/site-packages/lekatnet/tpg.py", line 934, in parse
    value = getattr(self, axiom)(*args, **kws)
  File "<string>", line 8, in START
  File "<string>", line 5, in SETTING
  File "<string>", line 15, in PARAM
  File "/usr/lib64/python2.5/site-packages/lekatnet/tpg.py", line 986, in extract
    return self.lexer[start:stop]
TypeError: object cannot be interpreted as an index
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum