You are not logged in.

#1 2008-03-01 08:45:50

Jedimind
Member
Registered: 2008-02-15
Posts: 24

Linking files

I have two separate questions on linking ...

1) I compiled cfv and ncdu and the binary files is in /usr/local/bin, this does not make me able to just type cfv or ncdu to run the programs. What is the best way to 'link' these programs? I know of several alternatives

a) Bash-alias
b) Make a file in /usr/bin and put +x with chmod on it and that this links to the binary files in /usr/local/bin ...
c) Use ln to create a link

But what is the best way, or to put it another way -- the recommended way? I don't want to type the full path all the time

2) I run mpd+icecast on this computer, however I have two music folders and mpd just runs on my big music folder not the smaller one. What is the recommended way to get the two folders togheter so I can listen to all my music via mpd? Via ln or by mounting or what is the best way?

Offline

#2 2008-03-01 09:15:38

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,487
Website

Re: Linking files

It is best to have programs just go in /usr/bin in the first place.  You should have a look at the PKGBUILDs in the AUR to install them.

Take a look in the wiki for more info:
http://wiki.archlinux.org/index.php/ABS
http://wiki.archlinux.org/index.php/AUR
http://wiki.archlinux.org/index.php/Makepkg

Offline

#3 2008-03-01 09:18:25

Lachkater
Member
From: Germany
Registered: 2008-02-04
Posts: 40

Re: Linking files

I think adding /usr/local/bin to PATH is the best method.

Offline

#4 2008-03-03 18:28:58

Jedimind
Member
Registered: 2008-02-15
Posts: 24

Re: Linking files

Allan wrote:

It is best to have programs just go in /usr/bin in the first place.  You should have a look at the PKGBUILDs in the AUR to install them.

Take a look in the wiki for more info:
http://wiki.archlinux.org/index.php/ABS
http://wiki.archlinux.org/index.php/AUR
http://wiki.archlinux.org/index.php/Makepkg

Oh, that's great. Thank you very much. And thank you too Lachkater, it cleared up things for me.

Offline

Board footer

Powered by FluxBB