ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] problem on running LTIB


From: aydemir kala
Subject: Re: [Ltib] problem on running LTIB
Date: Fri, 1 Oct 2010 14:34:58 +0300

Hi all,

It makes me crazy. I am loging as user aydemir on my PC.
then opening a command terminal
then change user to root
aydemir> su -
root> sudo /usr/sbin/visudo
at the end of the file adding
aydemir ALL = NOPASSWD: /bin/rpm, /opt/ltib/usr/bin/rpm
save and Quit
then leaving root
root> exit  
as a aydemir user
aydemir>mkdir /home/aydemir/LTIB
aydemir>cd /home/aydemir/LTIB
aydemir> cvs -z3 -d:pserver:address@hidden:/sources/ltib co -P ltib
after download finish
aydemir>cd ltib
aydemir> ./ltib
address@hidden ltib]$ ./ltib

ltib cannot be run because one or more of the host packages needed to run it
are either missing, failing, out of date or not in ltib's standard path.
Current the PATH environment is set to:
/opt/ltib/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin

Please correct this problem (e.g. install/upgrade these packages on your host).
If you have your own utilities in non-standard paths, please add an entry
into the .ltibrc file for example:

%path_std
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/my/own/exes

Package                Minimum ver   Installed info
-------                -----------   ---------------
wget                   0             not installed or error

Died at ./ltib line 1430.
traceback:
 main::host_checks:1430
  main:548


Started: Fri Oct  1 14:22:27 2010
Ended:   Fri Oct  1 14:22:28 2010
Elapsed: 1 seconds

Use of uninitialized value in concatenation (.) or string at ./ltib line 2791.
Use of uninitialized value in concatenation (.) or string at ./ltib line 2791.
Use of uninitialized value in concatenation (.) or string at ./ltib line 2791.
Use of uninitialized value in concatenation (.) or string at ./ltib line 2791.
VERSION          : 10.1.1
CVS_VERSION      : $Revision: 1.71 $ (Savannah)
PLATFORM         :
GNUTARCH         :
TOOLCHAIN        :
TOOLCHAIN_CFLAGS :


Build Failed

Exiting on error or interrupt

root>

address@hidden ~]# more /etc/sudoers
## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.

## Host Aliases
## Groups of machines. You may prefer to use hostnames (perhaps using
## wildcards for entire domains) or IP addresses instead.
# Host_Alias     FILESERVERS = fs1, fs2
# Host_Alias     MAILSERVERS = smtp, smtp2

## User Aliases
## These aren't often necessary, as you can use regular groups
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
## rather than USERALIAS
# User_Alias ADMINS = jsmith, mikem


## Command Aliases
## These are groups of related commands...

## Networking
# Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient
, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig
, /sbin/mii-tool

## Installation and management of software
# Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum

## Services
# Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig

## Updating the locate database
# Cmnd_Alias LOCATE = /usr/bin/updatedb

## Storage
# Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe,
 /bin/mount, /bin/umount

## Delegating permissions
# Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp

## Processes
# Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall

## Drivers
# Cmnd_Alias DRIVERS = /sbin/modprobe

# Defaults specification

#
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
 
#         You have to run "ssh -t hostname sudo <cmd>".
#
Defaults    requiretty

#
# Refuse to run if unable to disable echo on the tty. This setting should also b
e
# changed in order to be able to use sudo without a tty. See requiretty above.
#
Defaults   !visiblepw

Defaults    env_reset
Defaults    env_keep =  "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLO
RS"
Defaults    env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
Defaults    env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES
"
Defaults    env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
Defaults    env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY
"

#
# Preserving HOME has security implications since many programs
# use it when searching for configuration files.
#
# Added for backwards compatibility. See rhbz#614025.
#
Defaults    env_keep += "HOME"
Defaults   !always_set_home

Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin

## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
##     user    MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root    ALL=(ALL)     ALL

## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOC
ATE, DRIVERS

## Allows people in group wheel to run all commands
# %wheel    ALL=(ALL)    ALL

## Same thing without a password
# %wheel    ALL=(ALL)    NOPASSWD: ALL

## Allows members of the users group to mount and unmount the
## cdrom as root
# %users  ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom

## Allows members of the users group to shutdown this system
# %users  localhost=/sbin/shutdown -h now

## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d
aydemir ALL =NOPASSWD: /bin/rpm, /opt/ltib/usr/bin/rpm

-------------------------------------

wget is wprking on my OS.
address@hidden ~]#   wget --tries=45 http://fly.srk.fer.hr/jpg/flyweb.jpg
--2010-10-01 14:33:13--  http://fly.srk.fer.hr/jpg/flyweb.jpg
Resolving fly.srk.fer.hr (fly.srk.fer.hr)... 161.53.74.66
Connecting to fly.srk.fer.hr (fly.srk.fer.hr)|161.53.74.66|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2505 (2.4K) [image/jpeg]
Saving to: “flyweb.jpg”

100%[======================================>] 2,505       11.6K/s   in 0.2s   

2010-10-01 14:33:14 (11.6 KB/s) - “flyweb.jpg” saved [2505/2505]

address@hidden ~]#

as a user:
address@hidden LTIB]$  wget --tries=45 http://fly.srk.fer.hr/jpg/flyweb.jpg
--2010-10-01 14:34:11--  http://fly.srk.fer.hr/jpg/flyweb.jpg
Resolving fly.srk.fer.hr (fly.srk.fer.hr)... 161.53.74.66
Connecting to fly.srk.fer.hr (fly.srk.fer.hr)|161.53.74.66|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2505 (2.4K) [image/jpeg]
Saving to: “flyweb.jpg”

100%[======================================>] 2,505       --.-K/s   in 0.003s 

2010-10-01 14:34:12 (822 KB/s) - “flyweb.jpg” saved [2505/2505]

address@hidden LTIB]$

Best Regards

Aydemir
















On Fri, Oct 1, 2010 at 12:15 AM, Mike Nelson <address@hidden> wrote:
The instructions with board support package I have that uses LTIB also
strongly advised against running LTIB as root.  Here is an excerpt
from their instructions:

"You will likely encounter a build failure notifying you that you do
not have sudo permissions to execute rpm commands as root without a
password. For the LTIB install, this is required.

"Follow the instructions given in the error output to enable sudo
permissions to execute rpm commands. You must run visudo as root. You
can either do this by using sudo:

   ~/lpc3250> sudo /usr/sbin/visudo

"And type in the root password. Or you can do this by opening a root
shell and typing:

   /home/<username>/lpc3250 # visudo

"Either method will allow you to edit the sudoers file. For this
QuickStart, the following edit was added to the very end of the
sudoers file:

   <username> ALL = NOPASSWD: /bin/rpm, /opt/ltib/usr/bin/rpm

"Now restart the install process by executing the perl netinstall script again."

Regards:

Mike Nelson, http://michaeltnelson.com
mobile: 1-650-291-7343
office: 1-650-257-7565



On Thu, Sep 30, 2010 at 12:20, Stuart Hughes <address@hidden> wrote:
> Hi Aydemir,
>
> Please don't run as root.  It's possible, but a bad idea, one slip and
> you're whole machine disappears.
>
> Hopefully Mike's apt-get helped you fix wget.
>
> aydemir kala wrote:
>> Hi,
>>
>> When i run ltib i get error:
>>
>> address@hidden ltib]# ./ltib
>>
>> You should not be root when running ltib, do you really
>> want to continue ?  y|N
>>
>> y
>>
>> ltib cannot be run because one or more of the host packages needed to run it
>> are either missing, failing, out of date or not in ltib's standard path.
>> Current the PATH environment is set to:
>> /opt/ltib/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin
>>
>> Please correct this problem (e.g. install/upgrade these packages on your
>> host).
>> If you have your own utilities in non-standard paths, please add an entry
>> into the .ltibrc file for example:
>>
>> %path_std
>> /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/my/own/exes
>>
>> Package                Minimum ver   Installed info
>> -------                -----------   ---------------
>> wget                   0             not installed or error
>>
>> Died at ./ltib line 1430.
>> traceback:
>>  main::host_checks:1430
>>   main:548
>>
>>
>> Started: Wed Sep 29 11:25:48 2010
>> Ended:   Wed Sep 29 11:25:49 2010
>> Elapsed: 1 seconds
>>
>> Use of uninitialized value in concatenation (.) or string at ./ltib line
>> 2791.
>> Use of uninitialized value in concatenation (.) or string at ./ltib line
>> 2791.
>> Use of uninitialized value in concatenation (.) or string at ./ltib line
>> 2791.
>> Use of uninitialized value in concatenation (.) or string at ./ltib line
>> 2791.
>> VERSION          : 10.1.1
>> CVS_VERSION      : $Revision: 1.71 $ (Savannah)
>> PLATFORM         :
>> GNUTARCH         :
>> TOOLCHAIN        :
>> TOOLCHAIN_CFLAGS :
>>
>>
>> Build Failed
>>
>> Exiting on error or interrupt
>> address@hidden ltib]#
>>
>> Could you please tell me what i should do?
>>
>> Best Regards
>>
>> Aydemir
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> LTIB home page: http://ltib.org
>>
>> Ltib mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/ltib
>
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]