DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th November 2008
richBSD richBSD is offline
New User
 
Join Date: Nov 2008
Posts: 8
Thanked 0 Times in 0 Posts
Default fbsetbg -i gives; xmessage: not found

Using FreeBSD 7.0

Like the title says, when I issue the command;

fbsetbg -i

I get back;

xmessage: not found

Now that's not very helpful, what is it not finding?

I can get feh to display my background wallpaper but can't get fluxbox to see feh I guess. It's supposed to say something to the effect "Feh is a nice wall papersetter, you should have no problem" or something like that.

whereis feh shows;

feh: /usr/local/bin/feh

echo $PATH shows;
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11/R6/bin:/root/bin

Any suggestions?
Reply With Quote
  #2   (View Single Post)  
Old 14th November 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

you need to install it
x11/xmessage

seams you installed minimal X (am i right?)
Reply With Quote
  #3   (View Single Post)  
Old 14th November 2008
richBSD richBSD is offline
New User
 
Join Date: Nov 2008
Posts: 8
Thanked 0 Times in 0 Posts
Default

Here's the output of whereis xmessage, this shows it's installed right?

# whereis xmessage
xmessage: /usr/local/bin/xmessage /usr/local/man/man1/xmessage.1.gz /usr/ports/x11/xmessage

If I try to install it it says it's already installed.

===> xmessage-1.0.2 is already installed
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of x11/xmessage
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1


Anything else I can check?
Reply With Quote
  #4   (View Single Post)  
Old 14th November 2008
richBSD richBSD is offline
New User
 
Join Date: Nov 2008
Posts: 8
Thanked 0 Times in 0 Posts
Default

Running fbsetbg with no arguments shows the help:

# fbsetbg
xmessage: not found
Usage: fbsetbg [-u/-U [wallpapersetter]] [-fFcCtTaA] /path/to/wallpaper
fbsetbg [-u/-U [wallpapersetter]] [-fFcCtTaA] -r/-R /path/to/wallpaperdirectory
fbsetbg [-b/-B fbsetrootoptions]
fbsetbg [-lhip]
Use ``fbsetbg -h'' for a complete help message.

This shows it's finding fbsetbg right?
Reply With Quote
  #5   (View Single Post)  
Old 14th November 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

A couple comments:
  • If you just installed xmessage, and you're using a csh-based shell, type rehash to make sure everything in your path is detected.
  • You probably don't want to be setting the background as root.
__________________
Kill your t.v.
Reply With Quote
  #6   (View Single Post)  
Old 14th November 2008
richBSD richBSD is offline
New User
 
Join Date: Nov 2008
Posts: 8
Thanked 0 Times in 0 Posts
Default

# rehash
bash: rehash: command not found

Just out of curiosity, why shouldn't root set a background wallpaper for his desktop?
Reply With Quote
  #7   (View Single Post)  
Old 14th November 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

I don't want to go off on too many tangents here, but you also should not change root's shell to bash. (There is a thread on that topic here.)

It's usually not necessary / not a good idea to fire up your X environment as root.

---

Back to the original problem, you might take a closer look about what fbsetbg is doing and how it's failing using truss(1).
__________________
Kill your t.v.
Reply With Quote
  #8   (View Single Post)  
Old 15th November 2008
richBSD richBSD is offline
New User
 
Join Date: Nov 2008
Posts: 8
Thanked 0 Times in 0 Posts
Default

Thanks, truss helped. here's the output:

# truss fbsetbg -i
__sysctl(0xbfbfe6a4,0x2,0xbfbfe6ac,0xbfbfe6b0,0x0, 0x0) = 0 (0x0)
mmap(0x0,272,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 671674368 (0x2808f000)
munmap(0x2808f000,272) = 0 (0x0)
__sysctl(0xbfbfe708,0x2,0x2808ba3c,0xbfbfe710,0x0, 0x0) = 0 (0x0)
mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MA P_ANON,-1,0x0) = 671674368 (0x2808f000
)
issetugid(0x28084b6c,0xbfbfe7d4,0x104,0x0,0x0,0x0) = 0 (0x0)
open("/etc/libmap.conf",O_RDONLY,0666) ERR#2 'No such file or directory'
open("/var/run/ld-elf.so.hints",O_RDONLY,00) = 3 (0x3)
read(3,"Ehnt\^A\0\0\0\M^@\0\0\0Z\0\0\0\0"...,128) = 128 (0x80)
lseek(3,0x80,SEEK_SET) = 128 (0x80)
read(3,"/lib:/usr/lib:/usr/lib/compat:/u"...,90) = 90 (0x5a)
close(3) = 0 (0x0)
access("/lib/libedit.so.6",0) = 0 (0x0)
open("/lib/libedit.so.6",O_RDONLY,00) = 3 (0x3)
fstat(3,{mode=-r--r--r-- ,inode=16575,size=88384,blksize=4096}) = 0 (0x0)
read(3,"\^?ELF\^A\^A\^A\t\0\0\0\0\0\0\0"...,4096) = 4096 (0x1000)
mmap(0x0,86016,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP _NOCORE,3,0x0) = 671707136 (0x28097000
)
mprotect(0x280aa000,4096,PROT_READ|PROT_WRITE|PROT _EXEC) = 0 (0x0)
mprotect(0x280aa000,4096,PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x280ab000,4096,PROT_READ|PROT_WRITE,MAP_PRIV ATE|MAP_FIXED,3,0x14000) = 671789056 (
0x280ab000)
close(3) = 0 (0x0)
access("/lib/libncurses.so.7",0) = 0 (0x0)
open("/lib/libncurses.so.7",O_RDONLY,027757763374) = 3 (0x3)
fstat(3,{mode=-r--r--r-- ,inode=16558,size=276832,blksize=4096}) = 0 (0x0)
read(3,"\^?ELF\^A\^A\^A\t\0\0\0\0\0\0\0"...,4096) = 4096 (0x1000)
mmap(0x0,274432,PROT_READ|PROT_EXEC,MAP_PRIVATE|MA P_NOCORE,3,0x0) = 671793152 (0x280ac00
0)
mprotect(0x280e5000,4096,PROT_READ|PROT_WRITE|PROT _EXEC) = 0 (0x0)
mprotect(0x280e5000,4096,PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x280e6000,32768,PROT_READ|PROT_WRITE,MAP_PRI VATE|MAP_FIXED,3,0x3a000) = 672030720
(0x280e6000)
mmap(0x280ee000,4096,PROT_READ|PROT_WRITE,MAP_PRIV ATE|MAP_FIXED|MAP_ANON,-1,0x0) = 67206
3488 (0x280ee000)
close(3) = 0 (0x0)
access("/lib/libc.so.7",0) = 0 (0x0)
open("/lib/libc.so.7",O_RDONLY,027757763374) = 3 (0x3)
fstat(3,{mode=-r--r--r-- ,inode=16553,size=1026692,blksize=4096}) = 0 (0x0)
read(3,"\^?ELF\^A\^A\^A\t\0\0\0\0\0\0\0"...,4096) = 4096 (0x1000)
mmap(0x0,1032192,PROT_READ|PROT_EXEC,MAP_PRIVATE|M AP_NOCORE,3,0x0) = 672067584 (0x280ef0
00)
mprotect(0x281d0000,4096,PROT_READ|PROT_WRITE|PROT _EXEC) = 0 (0x0)
mprotect(0x281d0000,4096,PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x281d1000,24576,PROT_READ|PROT_WRITE,MAP_PRI VATE|MAP_FIXED,3,0xe2000) = 672993280
(0x281d1000)
mmap(0x281d7000,81920,PROT_READ|PROT_WRITE,MAP_PRI VATE|MAP_FIXED|MAP_ANON,-1,0x0) = 6730
17856 (0x281d7000)
close(3) = 0 (0x0)
sysarch(0xa,0xbfbfe770,0x280650cb,0x2808a3f4,0x280 76379,0x2808a3f4) = 0 (0x0)
mmap(0x0,1064,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 673099776 (0x281eb000)
munmap(0x281eb000,1064) = 0 (0x0)
mmap(0x0,1008,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 673099776 (0x281eb000)
munmap(0x281eb000,1008) = 0 (0x0)
mmap(0x0,4872,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 673099776 (0x281eb000)
munmap(0x281eb000,4872) = 0 (0x0)
mmap(0x0,20928,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 673099776 (0x281eb000)
munmap(0x281eb000,20928) = 0 (0x0)
__sysctl(0xbfbfe734,0x2,0x281d7ae0,0xbfbfe73c,0x0, 0x0) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKIL L|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGST
OP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|S IGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWI
NCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
getpid(0xbfbfe8e0,0x80618d8,0x28069b16,0xbfbfe960, 0x3,0xbfbfe914) = 1815 (0x717)
geteuid(0x1,0xbfbfe884,0x1,0x0,0x0,0x1) = 0 (0x0)
getppid(0x1,0xbfbfe884,0x1,0x0,0x0,0x1) = 1814 (0x716)
__sysctl(0xbfbfe03c,0x2,0x281db8c0,0xbfbfe048,0x0, 0x0) = 0 (0x0)
__sysctl(0xbfbfdb78,0x2,0x281e803c,0xbfbfdb80,0x0, 0x0) = 0 (0x0)
__sysctl(0xbfbfdbc8,0x2,0xbfbfdbd4,0xbfbfdbd8,0x0, 0x0) = 0 (0x0)
readlink("/etc/malloc.conf",0xbfbfdc3b,1024) ERR#2 'No such file or directory'
issetugid(0x281c900a,0xbfbfdc3b,0x400,0xbfbfe048,0 x0,0x0) = 0 (0x0)
break(0x8100000) = 0 (0x0)
__sysctl(0xbfbfdee4,0x2,0xbfbfdeec,0xbfbfdef0,0x0, 0x0) = 0 (0x0)
mmap(0x0,2097152,PROT_READ|PROT_WRITE,MAP_PRIVATE| MAP_ANON,-1,0x0) = 673099776 (0x281eb0
00)
munmap(0x281eb000,86016) = 0 (0x0)
munmap(0x28300000,962560) = 0 (0x0)
stat("/var/mail/root",{mode=-rw------- ,inode=353288,size=84573,blksize=4096}) = 0 (0x0)
getuid(0xbfbfef98,0x9,0x80565f2,0xbfbfe8e0,0x3,0xb fbfe970) = 0 (0x0)
geteuid(0xbfbfef98,0x9,0x80565f2,0xbfbfe8e0,0x3,0x bfbfe970) = 0 (0x0)
getgid(0xbfbfef98,0x9,0x80565f2,0xbfbfe8e0,0x3,0xb fbfe970) = 0 (0x0)
getegid(0xbfbfef98,0x9,0x80565f2,0xbfbfe8e0,0x3,0x bfbfe970) = 0 (0x0)
open("/usr/local/bin/fbsetbg",O_RDONLY,027757764544) = 3 (0x3)
fcntl(3,F_DUPFD,0xa) = 10 (0xa)
close(3) = 0 (0x0)
fcntl(10,F_SETFD,FD_CLOEXEC) = 0 (0x0)
sigaction(SIGINT,0x0,{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGINT,{ 0x805cbb0 SA_RESTART ss_t },{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGINT,0x0,{ 0x805cbb0 SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGINT,{ 0x805cbb0 0x0 ss_t },0x0) = 0 (0x0)
sigaction(SIGQUIT,0x0,{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGQUIT,{ 0x805cbb0 SA_RESTART ss_t },{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGQUIT,0x0,{ 0x805cbb0 SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGQUIT,{ 0x805cbb0 0x0 ss_t },0x0) = 0 (0x0)
sigaction(SIGTERM,0x0,{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGTERM,{ SIG_DFL SA_RESTART ss_t },{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGWINCH,0x0,{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGWINCH,{ SIG_DFL SA_RESTART ss_t },{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
__getcwd("/root",1024) = 0 (0x0)
read(10,"#!/bin/sh\n#\n# Set wallpaper fo"...,1023) = 1023 (0x3ff)
read(10,"OF CONTRACT,\n# TORT OR OTHERWIS"...,1023) = 1023 (0x3ff)
read(10,"ay qiv xv xsri xli xsetbg}" # br"...,1023) = 1023 (0x3ff)
stat("/sbin/whoami",0xbfbfe428) ERR#2 'No such file or directory'
stat("/bin/whoami",0xbfbfe428) ERR#2 'No such file or directory'
stat("/usr/sbin/whoami",0xbfbfe428) ERR#2 'No such file or directory'
stat("/usr/bin/whoami",{mode=-r-xr-xr-x ,inode=353455,size=9352,blksize=4096}) = 0 (0x0)
pipe(0xbfbfe540,0x1,0x1,0xbfbfeb42,0xbfbfe6ec,0x4) = 3 (0x3)
fork(0x4,0xbfbfe578,0x28064419,0x28091000,0x108,0x 0) = 1816 (0x718)
close(4) = 0 (0x0)
read(3,"root\n",128) = 5 (0x5)
read(3,0xbfbfe66c,128) = 0 (0x0)
close(3) = 0 (0x0)
getpgrp(0xbfbfe7d4,0x3d,0x7ab8a40,0x0,0x2820326b,0 x2820323c) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe588,0x2,0x0,0x213,0x1) = 1816 (0x718)
stat("/bin/basename",0xbfbfe428) ERR#2 'No such file or directory'
stat("/usr/bin/basename",{mode=-r-xr-xr-x ,inode=353387,size=4612,blksize=4096}) = 0 (0x
0)
pipe(0xbfbfe540,0x1,0x1,0x2820c0b3,0xbfbfe6ec,0x4) = 3 (0x3)
fork(0x1569a398,0x0,0x47c1aee1,0x0,0x0,0x0) = 1817 (0x719)
close(4) = 0 (0x0)
read(3,"fbsetbg\n",128) = 8 (0x8)
read(3,0xbfbfe66c,128) = 0 (0x0)
close(3) = 0 (0x0)
getpgrp(0xbfbfe7d4,0xbfbfe624,0x28066a76,0x0,0x282 0328b,0x2820325a) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe588,0x2,0x0,0x3,0x1) = 1817 (0x719)
read(10,"sed but without remembering.\n\n"...,1023) = 1023 (0x3ff)
read(10,") Use $command -i to find out wh"...,1023) = 1023 (0x3ff)
stat("/bin/which",0xbfbfe678) ERR#2 'No such file or directory'
stat("/usr/bin/which",{mode=-r-xr-xr-x ,inode=353598,size=4720,blksize=4096}) = 0 (0x0)
fork(0x1aa072d0,0x0,0x47c1aef2,0x0,0x0,0x0) = 1818 (0x71a)
getpgrp(0x0,0x0,0x71a,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe6b8,0x2,0x0,0x8,0x1) = 1818 (0x71a)
read(10," "$command: $@" &\n else"...,1023) = 1023 (0x3ff)
read(10," file \nif [ ! -d "$HOME/.fluxb"...,1023) = 1023 (0x3ff)
stat("/root/.fluxbox",{mode=drwxr-xr-x ,inode=22,size=512,blksize=4096}) = 0 (0x0)
read(10,"omcommandline=true\n "...,1023) = 1023 (0x3ff)
read(10,"lpaper=$2 # in this case it's a "...,1023) = 1023 (0x3ff)
read(10,"1\n fi\n "...,1023) = 1023 (0x3ff)
read(10," fi\n if [ "$style"...,1023) = 1023 (0x3ff)
read(10," wallpaper=$1\n "...,1023) = 1023 (0x3ff)
stat("/root/.fluxbox/lastwallpaper",{mode=-rw-r--r-- ,inode=76,size=66,blksize=4096}) =
0 (0x0)
eaccess(0x2820390c,0x4,0xfc,0x4a,0x282035dc,0x2820 34b4) = 0 (0x0)
stat("/bin/awk",0xbfbfe308) ERR#2 'No such file or directory'
stat("/usr/bin/awk",{mode=-r-xr-xr-x ,inode=353385,size=122956,blksize=4096}) = 0 (0x0)
pipe(0xbfbfe420,0x1,0x1,0x2820c0b3,0xbfbfe5cc,0x4) = 3 (0x3)
fork(0x3d50ce83,0x0,0x47c1aee1,0x0,0x0,0x0) = 1819 (0x71b)
close(4) = 0 (0x0)
read(3,0xbfbfe54c,128) = 0 (0x0)
close(3) = 0 (0x0)
getpgrp(0xbfbfe6b4,0xbfbfe494,0x28069b16,0x282038e 8,0x282038f2,0x282033c4) = 1815 (0x717
)
wait4(0xffffffff,0xbfbfe468,0x2,0x0,0x3,0x1) = 1819 (0x71b)
fork(0x1f4,0xc,0xbfbfe3c8,0x8056b9b,0x1f4,0x28084e e4) = 1820 (0x71c)
getpgrp(0x1f4,0x28084ee4,0x71c,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe398,0x2,0x0,0x1f4,0x1) = 1820 (0x71c)
fork(0x2822617c,0xbfbfe3b8,0xa,0x80618d5,0x0,0x280 84ee4) = 1821 (0x71d)
getpgrp(0x0,0x28084ee4,0x71d,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe398,0x2,0x0,0x8,0x1) = 1821 (0x71d)
fork(0x2822617c,0xbfbfe3b8,0xa,0x80618d5,0x0,0x280 84ee4) = 1822 (0x71e)
getpgrp(0x0,0x28084ee4,0x71e,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe398,0x2,0x0,0x8,0x1) = 1822 (0x71e)
fork(0x1f4,0xc,0xbfbfe3c8,0x8056b9b,0x1f4,0x28084e e4) = 1823 (0x71f)
getpgrp(0x1f4,0x28084ee4,0x71f,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe398,0x2,0x0,0x1f4,0x1) = 1823 (0x71f)
fork(0x2822617c,0xbfbfe3b8,0xa,0x80618d5,0x0,0x280 84ee4) = 1824 (0x720)
getpgrp(0x0,0x28084ee4,0x720,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe398,0x2,0x0,0x8,0x1) = 1824 (0x720)
fork(0x2822617c,0xbfbfe3b8,0xa,0x80618d5,0x0,0x280 84ee4) = 1825 (0x721)
getpgrp(0x0,0x28084ee4,0x721,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe398,0x2,0x0,0x8,0x1) = 1825 (0x721)
fork(0x2822617c,0xbfbfe3b8,0xa,0x80618d5,0x0,0x280 84ee4) = 1826 (0x722)
getpgrp(0x0,0x28084ee4,0x722,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe398,0x2,0x0,0x8,0x1) = 1826 (0x722)
fork(0x2822617c,0xbfbfe3b8,0xa,0x80618d5,0x0,0x280 84ee4) = 1827 (0x723)
getpgrp(0x0,0x28084ee4,0x723,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe398,0x2,0x0,0x8,0x1) = 1827 (0x723)
fork(0x2822617c,0xbfbfe3b8,0xa,0x80618d5,0x0,0x280 84ee4) = 1828 (0x724)
getpgrp(0x0,0x28084ee4,0x724,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe398,0x2,0x0,0x8,0x1) = 1828 (0x724)
fork(0x2822617c,0xbfbfe3b8,0xa,0x80618d5,0x0,0x280 84ee4) = 1829 (0x725)
getpgrp(0x0,0x28084ee4,0x725,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe398,0x2,0x0,0x8,0x1) = 1829 (0x725)
fork(0x2822617c,0xbfbfe3b8,0xa,0x80618d5,0x0,0x280 84ee4) = 1830 (0x726)
getpgrp(0x0,0x28084ee4,0x726,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe398,0x2,0x0,0x8,0x1) = 1830 (0x726)
read(10,"it. Consider installing\nfeh, wm"...,1023) = 1023 (0x3ff)
read(10,"rant\n ;;\n Esetroot)"...,1023) = 1023 (0x3ff)
read(10," ;;\n xv)\n full"...,1023) = 1023 (0x3ff)
read(10,"nstall the package provided by y"...,1023) = 1023 (0x3ff)
fork(0x2822617c,0xbfbfe278,0xa,0x80618d5,0x0,0xbfb fe284) = 1831 (0x727)
getpgrp(0x0,0xbfbfe284,0x727,0x0,0x2820e080,0x0) = 1815 (0x717)
wait4(0xffffffff,0xbfbfe258,0x2,0x0,0x8,0x1) = 1831 (0x727)
stat("/bin/xmessage",0xbfbfe418) ERR#2 'No such file or directory'
stat("/usr/bin/xmessage",0xbfbfe418) ERR#2 'No such file or directory'
xmessage: not found
write(2,"xmessage: not found\n",20) = 20 (0x14)
process exit, rval = 1


It seems like it's looking for it in /bin or /usr/bin but it's in:

# whereis xmessage
xmessage: /usr/local/bin/xmessage /usr/local/man/man1/xmessage.1.gz /usr/ports/x11/xmessage


But I have /bin and /usr/bin in my path:

# echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11/R6/bin:/root/bin


Can you see anything wrong that I might still need to install?
Reply With Quote
  #9   (View Single Post)  
Old 15th November 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

It's strange. It does not seem to be honoring your PATH. Instead of using whereis, try using which xmessage. Is that able to find xmessage?

If not, try export PATH=/usr/local/bin:${PATH} and try setting the bg again...
__________________
Kill your t.v.
Reply With Quote
Old 20th November 2008
richBSD richBSD is offline
New User
 
Join Date: Nov 2008
Posts: 8
Thanked 0 Times in 0 Posts
Default root has problems with environment variables

I'm seeing another issue that I think may be related. I've set a custom prompt in .cshrc like this:

if ($?prompt) then
# An interactive shell -- set some stuff up
#set prompt="`whoami`@`hostname -s` $cwd ->" #Custom Prompt settings
set prompt = '%n@%m:%/%# '
set filec
set history = 100
set savehist = 100
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif

Then I copied the same .cshrc file to the root directory /.
Using either the current prompt or the one in the commented out line above it gives the same results, the prompt changes in the user account when I change directories but not in the root account. The prompt displays the path when I first su in a terminal window but doesn't change after that when I change directories. But it does change when in the user account like this:

root@CubeTest /usr/home ->cd ..
root@CubeTest /usr/home ->pwd
/usr
root@CubeTest /usr/home ->exit
exit
Rich@CubeTest:/usr/home> cd ..
Rich@CubeTest:/usr> pwd
/usr
Rich@CubeTest:/usr>

It seems like the root account is having trouble seeing the environment variables sometimes. Any clues on what I could check? Also fbsetbg works fine in the user account but still can't find it in the root account. The root account has trouble finding things in the path.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mk.conf not found mtm0 NetBSD Package System (pkgsrc) 2 4th September 2009 04:42 PM
kernel not found isamu FreeBSD Installation and Upgrading 13 24th October 2008 12:24 AM
Fluxbox fbsetbg problem rex FreeBSD General 6 12th September 2008 05:18 PM
I finally found it!!! crayoxide FreeBSD General 8 23rd July 2008 05:41 AM
pkg-get command not found whispersGhost Solaris 2 11th June 2008 01:06 PM


All times are GMT. The time now is 08:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick