LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-07-2010, 07:03 PM   #1
Zymus
LQ Newbie
 
Registered: Feb 2010
Posts: 14

Rep: Reputation: 1
A few questions regarding Arch Linux usability


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?

Last edited by Zymus; 05-07-2010 at 07:39 PM.
 
Old 05-07-2010, 08:10 PM   #2
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
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
 
Old 05-07-2010, 08:45 PM   #3
Zymus
LQ Newbie
 
Registered: Feb 2010
Posts: 14

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by mark_alfred View Post
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).
 
Old 05-07-2010, 10:16 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
First, none of your questions have anything to do with Arch---they are generic Linux questions.

When you say "class path', I think you mean the $PATH environment variable. If a command does not work, then it's path is not in $PATH.

To add something to $PATH (eg /opt/stuff), do this:
export PATH="$PATH:/opt/stuff"

To make this happen on system startup, you need to put it in one of the init scripts.

2. For making a Live CD, search on Google--I'm sure there are a bazillion hits.

3. to pass arguments to a program, put them after the call to the program---just as you would when running interactively in a terminal

Last edited by pixellany; 05-07-2010 at 11:09 PM. Reason: typo
 
Old 05-08-2010, 12:10 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make questions and ARCH questions for gentoo/calculate linus72 Calculate 5 04-09-2010 12:53 AM
LXer: Second FLOSS Usability Sprint: Extreme Usability, August 22-24, 2005 LXer Syndicated Linux News 0 08-10-2006 09:21 AM
Arch Questions cheetahman Arch 3 07-05-2006 09:56 AM
Couple of simple usability questions... dangerousdave Linux - Newbie 2 08-21-2005 06:56 PM
questions about sound in arch linux. greythorne Arch 2 06-27-2005 07:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration