You are not logged in.

#1 2011-10-10 17:31:30

jwhendy
Member
Registered: 2010-04-01
Posts: 621

[SOLVED] startx: /usr/bin/hostname not found

I'm getting a brief and nonfatal error when I start my WM (openbox) after logging in with "startx". It says something like the title (to quick to get exactly); essentially complaining about no /usr/bin/hostname.

Indeed, /usr/bin/hostname does not exist on my system. Should it?

$ cat ~/.xinitrc
exec ck-launch-session dbus-launch openbox-session

Last edited by jwhendy (2011-10-10 21:02:18)

Offline

#2 2011-10-10 17:44:14

jaco
Member
From: Toulouse, France
Registered: 2011-03-17
Posts: 149

Re: [SOLVED] startx: /usr/bin/hostname not found

Have you read the announce on the Arch Linux home page ?

You have now to install the inetutils package to have hostname command.

Offline

#3 2011-10-10 17:53:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] startx: /usr/bin/hostname not found

And in general, use pkgfile to see what package provides the files you're missing https://wiki.archlinux.org/index.php/FA … is_X_in.3F and use logs - e.g. log the output of startx - to see the exact error.

Offline

#4 2011-10-10 18:53:45

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED] startx: /usr/bin/hostname not found

@jaco: That was the ticket. I should read that more often.

@karol:

1) `$ pkgfile hostname` produces no output.
2) Thanks for the tip about logging. I wasn't sure how to do this but found something that should do if I need it in the future.

Offline

#5 2011-10-10 19:13:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] startx: /usr/bin/hostname not found

@jwhendy
Have you updated pkgfile database?

[karol@black ~]$ pacman -S pkgtools

<snip>

(1/1) installing pkgtools                                  [################################] 100%
 - Make sure to run pkgfile --update before use
 - pkgfile includes a "command not found" hook for both zsh and bash.
   This will automatically run pkgfile whenever you run
   a command which the shell cannot find. If you want
   this functionality, set CMD_SEARCH_ENABLED to 1 in
   /etc/pkgtools/pkgfile.conf (or per-user by copying
   that file to ${XDG_CONFIG_HOME}/pkgtools/pkgfile.conf), then
   in your current shell run:
     source /etc/profile
 - An entry has been placed in /etc/cron.daily to run pkgfile --update
   If you do not want this functionality, set UPDATE_CRON=0 in /etc/pkgtools/pkgfile.conf
Optional dependencies for pkgtools
    cron: For pkgfile --update entry
    abs: Provides proto packaging files for newpkg
    python-yaml: for gem2arch
    python2: for pkgconflict

Last edited by karol (2011-10-10 19:16:59)

Offline

#6 2011-10-10 21:02:06

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED] startx: /usr/bin/hostname not found

@karol: sigh... I shouldn't do these things at work when I'm prone to ignoring documentation like this. Alas, you are correct and I should have rtfm. Thanks for the assistance.

Offline

Board footer

Powered by FluxBB