[Ilugc] kaniyam-05 released

2012-05-08 Thread Shrinivasan T
Happy to release Kaniyam - 05

We discuss the following topics in Tamil


What is new in Ubuntu 12.04?
284 effects & Filters for GIMP
False Depth of Field in Gimp
What is Fedora
Aptana Studio 3
Install Oracle Java SDK in ubuntu
Ubuntu Builder
Learn GNU/Linux - Part 3
Why to quit windows?
Zimbra desktop
How to contribute to open source without programming
Computer Dictionary
Open Source Cources by Green future
Events
Rights
About Kaniyam

Get your copy at
http://www.kaniyam.com/release-5/

-- 
Regards,
T.Shrinivasan


My Life with GNU/Linux : http://goinggnu.wordpress.com
Free/Open Source Jobs : http://fossjobs.in

Get CollabNet Subversion Edge :     http://www.collab.net/svnedge
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] X forwarding over reverse ssh using Xephyr

2012-05-08 Thread poomalairaj
Hi all,

I have a Nokia N900. As I could not login to the phone over 3G, I use
reverse ssh to login to the phone. I used to run the following command on
the phone

ssh -R 2:localhost:22 poo@mywebserver

Now I will login to my webserver and run the following to login to N900

ssh user@localhost -p 2

Now I want to login to my N900 and forward X from n900 and want to use it
in my desktop. Is there any way to do this? I have done this using xephyr
over normal ssh on my ubuntu pc. but I dont know how to do the same using
reverse ssh.

You don't have to worry about "n900". Just think of a pc behind firewall or
NAT and can not be port forwarded. We have to use reverse ssh to login to
the pc and want the X to be forwarded also. Thats it

Can you please help me? If there is some way other than using ssh please
let me know

Thanks in advance


- Poomalairaj

@poomalairaj 
http://blog.poomalairaj.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] X forwarding over reverse ssh using Xephyr

2012-05-08 Thread Girish Venkatachalam
My goodness I am seeing such a good question after a really long time in LUG

On Tue, May 8, 2012 at 2:18 PM, poomalairaj  wrote:
> Hi all,
>
> I have a Nokia N900. As I could not login to the phone over 3G, I use
> reverse ssh to login to the phone. I used to run the following command on
> the phone
>
> ssh -R 2:localhost:22 poo@mywebserver
>
> Now I will login to my webserver and run the following to login to N900
>
> ssh user@localhost -p 2
>

Okay

> Now I want to login to my N900 and forward X from n900 and want to use it
> in my desktop. Is there any way to do this? I have done this using xephyr
> over normal ssh on my ubuntu pc. but I dont know how to do the same using
> reverse ssh.
>

What is reverse ssh? You mean remote port fwd?

Xephyr is actually Xnest which allows multiseat and is a X in X, that
is all I know.

I dunno how you used it to do X forward. Did you use the ssh -Y switch?

> You don't have to worry about "n900". Just think of a pc behind firewall or
> NAT and can not be port forwarded. We have to use reverse ssh to login to
> the pc and want the X to be forwarded also. Thats it

It is remote port fwd. I got it. You can easily tunnel X using the ssh
-Y switch.

How can that be a problem? Or did I misunderstand?

Say instead of running,

$ ssh -R :localhost:22 you say

$ ssh -YR :...

But this would forward from the N900 to the web server. You want it
from there to
here?

Okay let me think.

>
> Can you please help me? If there is some way other than using ssh please
> let me know

When you do ssh using this ssh port forwarding use the -Y switch.

Also make sure the option is enabled in /etc/ssh/sshd_config.

-Girish

-- 
Gayatri Hitech
http://gayatri-hitech.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Fwd: May Meet - Programming with libpcap

2012-05-08 Thread AJIT KUMAR
Hi Shrinivasan ,

I am very happy to know about this talk because from last few weeks i was
trying to getting start in this.
I want to join this Talk.
How can i join this.

With Regards.
Ajit

On Tue, May 8, 2012 at 10:31 AM, Shrinivasan T wrote:

> -- Forwarded message --
> From: "MohanR" 
> Date: May 8, 2012 10:23 AM
> Subject: May Meet - Programming with libpcap
> To: "Shrinivasan T" 
>
> Hi Shrini,
>
> Here is the details,
>
> Topic : Programming with libpcap
> Description : libpcap is famous library used to capture packets going
> through a network interface. It is the core part of 'tcpdump' network
> utility. Also, it has been used by many famous applications like
> 'Wireshark', 'Snort', 'Scapy' etc.,
>
> In this talk we will explore about howto write an application using
> libpcap and the various use of filters available in libpcap to capture
> specific packets.
>
> Time : 30 mins
>
> Links:
> http://www.tcpdump.org/index.html/
> http://www.manpagez.com/man/7/pcap-filter/
> https://github.com/mohan43u/pcapstreamer/
>
> About:
> A linux programmer who is trying to fix his day-to-day issues by writing
> code.
> http://mohan43u.wordpress.com
>
> Thanks,
> Mohan R
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] X forwarding over reverse ssh using Xephyr

2012-05-08 Thread 0
> ssh -R 2:localhost:22 poo@mywebserver
>
> Now I will login to my webserver and run the following to login to N900
>
> ssh user@localhost -p 2
>
> Now I want to login to my N900 and forward X from n900 and want to use it
> in my desktop. Is there any way to do this? I have done this using xephyr
> over normal ssh on my ubuntu pc. but I dont know how to do the same using
> reverse ssh.
>

 From my understanding, we have 3 systems here, a desktop, a webserver 
and N900. Correct me if i am wrong. I am assuming the desktop runs the 
X11 display which needs to be eventually forwarded to N900. The 
following commands should work,

[N900]$ ssh -R 2:localhost:22 poo@mywebserver

[Desktop]$ ssh -t -X poo@mywebserver "ssh -X user@localhost -p 2"

Hope this helps. Let me know if you face any problems.
-- 
0
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] How to list the users in a particular group

2012-05-08 Thread Thanigai rajan
Hi All,

I want to list the users belongs to particular group.

For this I executed the command  "grep -i groupname /etc/group" . This
shows entries only when the user is added as secondary group.

While searching the web , I found a command "members" with an option
--secondary for Debian based distros.

Is there any command  same as "members"  in redhat based distros ?

--
Thanks & Regards
MThanigairajan

The Most Certain Way To Succeed Is To Try One More Time

          -- By Edison
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to list the users in a particular group

2012-05-08 Thread Kumar Appaiah
On Tue, May 08, 2012 at 11:40:23AM -0400, Thanigai rajan wrote:
> I want to list the users belongs to particular group.
> 
> For this I executed the command  "grep -i groupname /etc/group" . This
> shows entries only when the user is added as secondary group.
> 
> While searching the web , I found a command "members" with an option
> --secondary for Debian based distros.
> 
> Is there any command  same as "members"  in redhat based distros ?

This would be a classic use case for awk. Split fields by colons and
then display all the fourth fields where the first field is the group
name:

awk 'BEGIN { FS = ":" } $1 ~ /powerdev/ { print $NF}' /etc/group

I can help further if needed.

Thanks.

Kumar
-- 
:
[ Linux One Stanza Tip (LOST) ]###

Sub : Bothered by spam ? LOST #354

Spamassassin tries to figure out heuristically if a message is
spam. It does this by applying many rules to the  message, and
assigning each rule a score (positive OR negative) ...  If the
score goes above a predefined number, it's flagged as spam and
you can do the rest. [Visit: http://www.spamassassin.org].

[ajitabhpandey (at) users.sourceforge.net]
:
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] How to list the users in a particular group

2012-05-08 Thread Murugan, Naresh Kumar
Hi,

Below commands will satisfy your requirement. 

List the users belong to the group
$ lid -g groupname| cut -f1 -d'('   
Or
$ egrep -i  "^groupname" /etc/group|awk -F : '{print $4}'

To print the primary group membership for a user:
$ id -g -n username
To print the secondary group membership for a user:
$ id -G -n username

Regards,
M.Naresh Kumar

-Original Message-
From: ilugc-boun...@ae.iitm.ac.in [mailto:ilugc-boun...@ae.iitm.ac.in] On 
Behalf Of Kumar Appaiah
Sent: Wednesday, May 09, 2012 10:41 AM
To: ilugc@ae.iitm.ac.in
Subject: Re: [Ilugc] How to list the users in a particular group

On Tue, May 08, 2012 at 11:40:23AM -0400, Thanigai rajan wrote:
> I want to list the users belongs to particular group.
> 
> For this I executed the command  "grep -i groupname /etc/group" . This
> shows entries only when the user is added as secondary group.
> 
> While searching the web , I found a command "members" with an option
> --secondary for Debian based distros.
> 
> Is there any command  same as "members"  in redhat based distros ?

This would be a classic use case for awk. Split fields by colons and
then display all the fourth fields where the first field is the group
name:

awk 'BEGIN { FS = ":" } $1 ~ /powerdev/ { print $NF}' /etc/group

I can help further if needed.

Thanks.

Kumar
-- 
:
[ Linux One Stanza Tip (LOST) ]###

Sub : Bothered by spam ? LOST #354

Spamassassin tries to figure out heuristically if a message is
spam. It does this by applying many rules to the  message, and
assigning each rule a score (positive OR negative) ...  If the
score goes above a predefined number, it's flagged as spam and
you can do the rest. [Visit: http://www.spamassassin.org].

[ajitabhpandey (at) users.sourceforge.net]
:
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.


___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc