Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, i just recently install Arch Linux, and i had a few questions.
1. What file do i have to edit in order to include /usr/local/bin in the class path (ie. I put an executable in /usr/local/bin and when I try to execute it, it says the command cannot be found, etc.)
EDIT: Solved, just didn't set PATH correctly.
EDIT: New problem. When I try to execute a program in /usr/local/bin, it says "fopen: john.ini: File not found" Yet when i cd to /usr/local/bin, it doesn't say that. What would cause this?
2. Once I get my system setup the way i like it, how would i go about making it into a bootable CD/DVD?
3. How would I pass arguments from a shell script to a program?
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
Maybe the program and/or the directory doesn't have executable permissions. To change this, "chmod a+x" (assuming you want everyone -- "all" -- to be able to run it).
For the /usr/local/ directory (and directories in it such as /usr/local/bin), you may just wish the user (root) and the group (whatever group you have set) to have write permissions (so, members that are not a part of the group could not write to the directory). So, for the directories, try "chmod ug+w". Presumably everyone would be allowed to read the contents, so "chmod a+r".
[extraneous information]
For my /usr/local directory, I have set it up belonging to the group "staff". I had my normal user join this group, allowing the normal user to install programs here (in Debian the default prefix is /usr when packages are installed, not /usr/local. So, I use /usr/local as the place where I install programs from source to keep them separate from everything else).
[/extraneous information]
Last edited by mark_alfred; 05-07-2010 at 08:16 PM.
Reason: corrected a grammar error
Maybe the program and/or the directory doesn't have executable permissions. To change this, "chmod a+x" (assuming you want everyone -- "all" -- to be able to run it).
For the /usr/local/ directory (and directories in it such as /usr/local/bin), you may just wish the user (root) and the group (whatever group you have set) to have write permissions (so, members that are not a part of the group could not write to the directory). So, for the directories, try "chmod ug+w". Presumably everyone would be allowed to read the contents, so "chmod a+r".
[extraneous information]
For my /usr/local directory, I have set it up belonging to the group "staff". I had my normal user join this group, allowing the normal user to install programs here (in Debian the default prefix is /usr when packages are installed, not /usr/local. So, I use /usr/local as the place where I install programs from source to keep them separate from everything else).
[/extraneous information]
That's why I put the executable in/usr/local/bin because it is compiled code from the source i downloaded (john the ripper).
the folder " /usr/local/bin" is not in the system default
nor is there that folder .Unless you installed something to that folder .
Do not install things there UNLESS this IS a network set-up and the "/usr/local" IS THE HARD DISK of the box you are sitting in front of .
for arch ( not using gdm as a service) but as a daemon ( the default)
this file IS NOT USED BY DEFAULT ( changes here will NOT do anything)
/home/user-name/.bash_profile
you need to edit /etc/profile ( as root from the terminal )
and add that path to it .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.