Linux-Noob Forums

Full Version: make install to /usr/local/bin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Well, I decided to be adventurous and install something from source. While Fedora's not a source-based distribution, I know, I've found some things work better when compiled from source.

 

Specifically, I'm speaking of Wine, which I decided to compile from source from someone's recommendation. I downloaded the source tar.gz, extracted it, followed the directions to install, and it seemed to work perfectly. Unfortunately, after the installer copied all the compiled files to their default directories, I couldn't get Wine to work as a normal user. As root, no problem, but as a user, it refused to work.

 

When I found the executables, I found they'd been put in /usr/local/bin. That seems right, because I read or heard somewhere that it's the default directory for compiled software, or something like that. But it doesn't seem to be working for me.

 

So what should I be doing or changing here? And also, just randomly, why is there no useradd utility?

I will, but why doesn't Fedora see the files in /usr/local/bin when I'm just a regular user?

This is due to your PATH settings (although fedora should be looking there).

 

Edit the file ~/.bashrc and at the bottom append:



Code:
export PATH=$PATH:/usr/local/bin




 

That should amend it to YOUR login only, if you wish it to be global then you will need to look in the /etc/profile file. I'm not sure of the layout to this file but the solution should be similar.

 

Quote:why is there no useradd utility
 

When you chose to become root you MUST use this



Code:
su -




 

The - indicates the addition of superuser PATH's etc (as before!). This will let you "see" the useradd binary.


Hi,

 

Fedora by default does search the /usr/local/bin could to do the following:

 

ls -ltr /usr/local/bin/wine


Quote:This is due to your PATH settings (although fedora should be looking there). 

Edit the file ~/.bashrc and at the bottom append:



Code:
export PATH=$PATH:/usr/local/bin

<div>


 

That should amend it to YOUR login only, if you wish it to be global then you will need to look in the /etc/profile file. I'm not sure of the layout to this file but the solution should be similar.

 

<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="2270" data-ipsquote-contentclass="forums_Topic">why is there no useradd utility
 

When you chose to become root you MUST use this



Code:
su -




 

The - indicates the addition of superuser PATH's etc (as before!). This will let you "see" the useradd binary.



</div></blockquote>
Ahh, thank you very much, znx! Of course, I'll have to reinstall Fedora to do this, I thought it was a problem with my install or something, so I deleted the partitions :)

 

Here's another question, this time about Gnome. Is there a way to have a particular application grab ALL keyboard/mouse shortcut combos when it's got focus? Specific example being:



Code:
Ctrl + Alt + D




is grabbed by Gnome, and minimizes all windows. But it's actually a keyboard shortcut for a game I play, and I'd like the game to recieve the keystrokes and not Gnome. How might I go about this?


Quote:Ahh, thank you very much, znx!
Sweet .. :)

 

Quote:How might I go about this?
 

You can simply remap the Gnome key settings, so that some other keypress (or disable it of course) will do the minimize all windows.

 

You will probably find the preferences ..

Fedora > Preferenes > Keyboard Shortcuts .. or at least i hope :P

 

In there you can search for the binding and remove it .. or alter it.


Quote:In there you can search for the binding and remove it .. or alter it.
Ah... But I'd like to keep the binding, yet have it nonfunctional within one of my games. Heh... would the best way to do that be to simply run the game without a window manager?


Quote:Ah... But I'd like to keep the binding, yet have it nonfunctional within one of my games. Heh... would the best way to do that be to simply run the game without a window manager?
 

You can run the game .. by adding it into the .xinitrc on its one and startx .. i suppose if you were happy enough you could even start the game on another display :1 .. and keep it there (then Ctrl+Alt+8 .. say to play Ctrl+Alt+7 to get back)..