Re: [Ilugc] IR Receiver that works on Linux for an XBMC HTPC

2012-07-17 Thread Mohan Sundaram
On Tue, Jul 17, 2012 at 10:58 AM, Arun Khan knu...@gmail.com wrote:
 On Sat, Jul 14, 2012 at 8:29 PM, Roshan George  wrote:

 By the way, I'm thinking of running XBMC because it looks way better.
 The output will be an ancient CRT TV for now, but my brother can
 probably work things out once I have everything set up so that if they
 buy a newer LCD TV, things will be fine. Any opinions on that are
 welcome as well. I have little experience with this, but hopefully
 things will go smoothly.

 As an alternate, I would suggest dispense away with all this research
 of what works and does not.

 I use an USB wireless keyboard/mouse combo.   I get to control XBMC
 and also use the same as a PC to browse the net, read email etc. when
 I am in the mood to be a couch potato :)   OK it is less glamorous
 than an IR remote control but it meets my functional requirements.

I'm also intending to build a HTPC using the Raspberry Pi which has
XBMC ported on it. I was planning to use a wireless keyboard cum
trackball device with its own dongle from Logitech that costs approx
2K. Advantage I saw was - no drivers needed. Was important as I had
little control on the XBMC distro.

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


[Ilugc] Shell script with arguments

2012-07-17 Thread Vijay Kumar
Hi All,

I need some help/ideas in coming up with a shell script.

Basically, the script should install 1 or 2 or 3 packages based on the
input arguments.

For example, if I type in pkgscript.sh a1 a2 a3, it should install all the
3 scripts and pkgscript.sh a1 should install only a1.

If a user enters only pkgscript.sh, it should ask for arguments and then
proceed accordingly.

Thanks in advance.

-- 

With regards,

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


Re: [Ilugc] Shell script with arguments

2012-07-17 Thread kenneth gonsalves
On Tue, 2012-07-17 at 17:57 +0530, Vijay Kumar wrote:
 For example, if I type in pkgscript.sh a1 a2 a3, it should install all
 the
 3 scripts and pkgscript.sh a1 should install only a1.
 
 If a user enters only pkgscript.sh, it should ask for arguments and
 then
 proceed accordingly. 

does not yum or apt-get do this?
-- 
regards
Kenneth Gonsalves

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


Re: [Ilugc] Shell script with arguments

2012-07-17 Thread Balachandran Sivakumar
Hi,

On Tue, Jul 17, 2012 at 5:57 PM, Vijay Kumar vijayakumarn...@gmail.com wrote:
 Hi All,

 I need some help/ideas in coming up with a shell script.
 For example, if I type in pkgscript.sh a1 a2 a3, it should install all the
 3 scripts and pkgscript.sh a1 should install only a1.



Use $# and $@. A rough outline is :

if  [[ $# == 0 ]]; then
do something
fi

for pkg in $@
do
 install ${pkg}
done

Please read up on bash programming. This will be covered there. thanks

-- 
Thank you
Balachandran Sivakumar

Arise Awake and stop not till the goal is reached.
 - Swami Vivekananda

Mail: benignb...@gmail.com
Blog: http://benignbala.wordpress.com/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Shell script with arguments

2012-07-17 Thread Krishna
On Tue, Jul 17, 2012 at 2:27 PM, Vijay Kumar vijayakumarn...@gmail.comwrote:

 Hi All,

 I need some help/ideas in coming up with a shell script.

 Basically, the script should install 1 or 2 or 3 packages based on the
 input arguments.

 For example, if I type in pkgscript.sh a1 a2 a3, it should install all the
 3 scripts and pkgscript.sh a1 should install only a1.

 If a user enters only pkgscript.sh, it should ask for arguments and then
 proceed accordingly.


you can find it here.

http://codelectron.com/blog/38-bash-script-command-line-iterator-to-install-batch-of-apps

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


[Ilugc] how to add sudo user

2012-07-17 Thread snegan
hi lugs,


aim using linux mint 13 i couldn't con fig ppp con fig it is showing
following error

anwar@anwar-Lenovo-G560 ~/Desktop $ sudo ppp config
[sudo] password for anwar:
anwar is not in the sudoers file.  This incident will be reported.
anwar@anwar-Lenovo-G560 ~/Desktop $



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


Re: [Ilugc] sudo file on multiple machines

2012-07-17 Thread Ashish Verma
I have 4 machines..

server1
server2
server3
server4
I have configured sudo file on server1. I want all other servers to use the
same file. Everytime I update the file I shouldnt have to copy it to all
other servers, instead they should use the same file.



Regards,
Ashish
On Sun, Jul 15, 2012 at 7:26 AM, Sathishkumar Duraisamy 
bewithsath...@gmail.com wrote:

 On Sun, Jul 15, 2012 at 2:25 PM, Ashish Verma ilu...@gmail.com wrote:
  Hi,
 
  Please advise me on how to use the same sudoers file for multiple
 machines.
 
  And also earlier there was an option to use the same usr partition for
  different machines, will that still apply, as fedora 17 doesnt allow for
 a
  different usr partition.
 
  Also please let me know as to why arent files created for all the eth
  interfaces. I only see the ifcfg file for the first interface and for the
  other 2 I later added to my VM, I only see dhco lease files and no ifcfg
  files.


 Can you give some more details, please?
 ___
 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] how to add sudo user

2012-07-17 Thread Arun Venkataswamy
On Tue, Jul 17, 2012 at 11:30 PM, snegan textma...@gmail.com wrote:

 aim using linux mint 13 i couldn't con fig ppp con fig it is showing
 following error

 anwar@anwar-Lenovo-G560 ~/Desktop $ sudo ppp config
 [sudo] password for anwar:
 anwar is not in the sudoers file.  This incident will be reported.
 anwar@anwar-Lenovo-G560 ~/Desktop $



Login as root.
Open the /etc/sudoers file

Add the following line (don't change the line which has the root user):
anwar ALL=(ALL)  ALL
or, if you don't want to provide your password all the time you use sudo:
anwar ALL=(ALL)  NOPASSWD: ALL


Regards,
Arun
http://wondroussky.blogspot.in/

கற்றது கைமண் அளவு, கல்லாதது உலகளவு - ஔவையார்
Known is a drop, Unknown is an ocean
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] IR Receiver that works on Linux for an XBMC HTPC

2012-07-17 Thread Roshan George
Arun, Mohan,

On Jul 17, 2012 12:44 PM, Mohan Sundaram mohan@gmail.com wrote:

 On Tue, Jul 17, 2012 at 10:58 AM, Arun Khan knu...@gmail.com wrote:
 
  I use an USB wireless keyboard/mouse combo.   I get to control XBMC
  and also use the same as a PC to browse the net, read email etc. when
  I am in the mood to be a couch potato :)   OK it is less glamorous
  than an IR remote control but it meets my functional requirements.
 I was planning to use a wireless keyboard cum
 trackball device with its own dongle from Logitech that costs approx
 2K. Advantage I saw was - no drivers needed. Was important as I had
 little control on the distro.

This sounds like great advice. I think I'll get a wireless keyboard as
well. I did order an Intex TV tuner card as well. Now that I think about
it, the wireless keyboard is far superior. You can type stuff in and
whatnot. It'll look a bit odd lying on the coffee table is all.

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