hotdogg: Can't run any games in NetBSD


Results 1 to 12 of 12

Thread: hotdogg: Can't run any games in NetBSD

  1. #1
    Join Date
    Feb 2003
    Location
    aisenodni
    Posts
    104
    I got a little problem again in my netbsd.

    I can not run any bsd games. I did choose 'yes' for bsd games in the netbsd install process.

    If I type hangman , My netbsd says something like 'hangman not found'. Same for fortune, atc, etc.

    What's wrong?
    There's no such thing as "free bandwidth"

  2. #2
    Join Date
    Apr 2001
    Location
    Nashville, TN
    Posts
    3,198
    Hey there, I split this thread out of the other one, since it's unrelated to the initial topic.

    What is your path set to? Does it include /usr/games in it?
    Registered Linux user #230403! Since March 2001! YAY.

    Try doing a forum search or a google search before asking a question. And please don't use HELP! in the topic of your post... it's so lame... Please don't PM me for help-- post a question in the forum instead.

  3. #3
    Join Date
    Oct 2002
    Location
    Illinois
    Posts
    3,281
    alex is prolly setting you in the right direction, most likely the path does not include your games

  4. #4
    Join Date
    Feb 2003
    Location
    aisenodni
    Posts
    104
    I forgot whether it is in /usr/games or /usr/share/games, but in either of this path the bsd games list are all there, and yet I cannot run one of them.
    Last edited by hottdogg; 01-02-2006 at 01:56 PM.
    There's no such thing as "free bandwidth"

  5. #5
    Join Date
    Oct 2002
    Location
    Illinois
    Posts
    3,281
    then add that to your path export PATH=/usr/share/games:$PATH

  6. #6
    Join Date
    Feb 2003
    Location
    aisenodni
    Posts
    104
    I notice the games is in the /usr/games. /usr/share/games is place like fortune's adage repository,etc.

    then add that to your path export PATH=/usr/share/games:$PATH
    Add to where? sorry, i'm a noob.
    There's no such thing as "free bandwidth"

  7. #7
    Join Date
    Jan 2003
    Location
    México
    Posts
    335

    Why don't you share this with us

    Type this inside any xterm window or from any terminal:

    Code:
    echo $SHELL
    and post the results please.

  8. #8
    Join Date
    Jan 2004
    Location
    Ukraine
    Posts
    228
    You have to read a lot of documentation before starting playing games on NetBSD...
    http://netbsd.org/guide/en/

    Firt find the binaries of you games. I don't remember exactly where they are (I'd have to reboot in NetBSD to find out). It could be /usr/games, /usr/share/games, /usr/pkg/games ... e.t.c.

    Try to run "locate" or "find" command:

    find / -name hangman
    find / -name hangman | more
    ("q" to quit "more" pager)

    If you locate something named "hangman", check the permissions:

    ls -l /path/to/my/game/hangman
    -r-xr-xr-x 1 user group 179616 Jul 29 02:36 /path/to/my/game/hangman

    if it has an execute permission and it is not a directory. Run it (as a regular user):

    /path/to/my/game/hangman

    To be able to run it just as hangman, you have to add it to your $PATH environment variable. Most likely your default $SHELL is csh. You will have to modify (the hidden file) .cshrc in you home ($HOME or ~ ) directory.

    (all these $PATH, $SHELL, $HOME are your environment variables, you can see their value with "env" command.)

    Find out which editors available:

    man -k editor

    If you are using X, you could do it even with "xedit":

    xedit ~/.cshrc

    othewise will have to learn some console editors. Dependin on what you have, issue the command name_of_an_editor ~/.cshrc:

    ee ~/.cshrc
    edit ~/.cshrc
    jed ~/.cshrc
    pico ~/.cshrc
    nano ~/.cshrc
    mcedit ~/.cshrc
    and if you ar good: vi ~/.cshrc

    In .cshrc you change this line:

    set path = ( ~/bin /bin /sbin /usr/{bin,sbin,X11R6/bin,local/bin,local/sbin} /path/to/my/game .)

    Just be careful. Keep one terminal open (in X) or switch to virtual terminal (Alt-F2) (without X )and login, just in case you make a mistake.

    Afer editing the csh configuration, save it, and update your environment:

    source ~/.cshrc
    hangman

    If it does not work, don't blame me

    A tip: later on, change the shell to something more comfortable (bash, zsh ...).
    Last edited by nabis; 01-02-2006 at 09:13 PM.
    Slackware + *BSD :: RLU 301327

  9. #9
    Join Date
    Feb 2003
    Location
    aisenodni
    Posts
    104
    echo $SHELL
    /bin/ksh

    nabis, i'll try your tips.
    There's no such thing as "free bandwidth"

  10. #10
    Join Date
    Feb 2003
    Location
    aisenodni
    Posts
    104
    I didn't follow nabis' tips because after I explored further, non-root user can play games. So, what I complained before is the root that can't play games. Is "root can't play games" a default configured by netbsd developers? or the root should can play games?
    There's no such thing as "free bandwidth"

  11. #11
    Join Date
    Oct 2002
    Location
    Illinois
    Posts
    3,281
    what is in roots path and a users path may be two different things

    which is why we suggested you check your paths

    for the reason of why root would ever need to play any games, therefore i doubt they have the path to the games bin directory in roots path

    root is for administrative use, not gaming

  12. #12
    Join Date
    Feb 2003
    Location
    aisenodni
    Posts
    104
    root is for administrative use, not gaming
    yeah, I know.
    BUt I'm just curious, here my question again
    Is "root can't play games" a default configured by netbsd developers?
    or by default the root should can play games?
    There's no such thing as "free bandwidth"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •