Debian :: Find & Modify Path Statement

Jul 19, 2011

I am running Debian Squeeze, 64-bit.I would like to try my hand at bash scripting. So at the author's suggestion (first chapter of Chris F. A. Johnson, Pro Bash Scripting from apress) I created a /bin directory in my home directory. So now I would like to modify my PATH statement so that when I run a script from my bin directory my shell will find it.I did that. He then says that I should add this to ".bash_profile, .bashrc, or .profile depending on how bash is invoked." The find command is unable to locate any of these files. So I searched the forum, found the link above and tried to follow that. No luck so I assume that how Debian handles PATH statements has changed since that post?

I also have checked the wiki and worked Google as hard as I know how to do.Very simply where the heck is my PATH statement and how do I modify it?

View 4 Replies


ADVERTISEMENT

Ubuntu :: How To Create Path Statement

Aug 7, 2011

I have multiple drives and software that defaults to my primary drive. I want to change preferences to use my second drive.This is the current path "/home/guy/dvdrip-data" my second drive is named "2Internal".How do I properly format the path statement to use the second drive?

View 7 Replies View Related

General :: Can PATH Statement Be Used With Python In Ubuntu 9.10?

Oct 10, 2010

On Ubuntu 9.10 I installed Python 3.1.1 successfully with Synaptic Package Manager. However the Python interpreter cannot find my scripts, currently in /home/dave/pycode. This appends _temporarily_ but python remains clueless about location of my scripts. Searched Internet and some speak of .rc or .bashrc or .profile..files. Found some of these and opened with Komodo : they are Linux script files and I am clueless as to how to modify.Currently I can import my scripts only if I change to the /pycode dir before running.Lutz's Python book says to change PATH file - Ha .Sobell's "A practical Guide to Ubuntu Linux" is no help. Ubuntu's own on line help is worth less than a fart in a hurricane. Ubuntu's gedit would not even open bash.bashrc.

View 7 Replies View Related

General :: Modify My PATH In Ubuntu Bashrc For A Software

Jan 25, 2011

I was installing a software in my Ubuntu 9.10 and after installation completed it prompted the following warning:

Warning: Your PATH does not point to your newly installed /home/pc/Reflex/software/bin/esorex.

To ensure execution of the newly installed software you should modify your PATH.

Note that "esorex" is the executable file and by typing its name in the Terminal the program starts.

What should I write in my "bashrc" as PATH to that program?

View 3 Replies View Related

Programming :: Shell Script For Adding A Statement In A File After A Particular Statement?

Jun 28, 2010

We are building our C++ project in Kdevelop IDE. Every time we run "Run Configure" from the "Build" menu, a file named "libtool" gets automatically generated. This file contains a statement as "ECHO="echo"".f we run "Automake", without modifying the "libtool" the system hangs and theputer needs to be restarted.Therefore every time we run "Run Configure" we need to include the line "echo="echo"" below the statement "ECHO="echo"" manually.I think a script can be written which does the above on its own.I am not a shell script programmer, I know the good tutorials for shell scripts are available on the net, but learning scripting only for this task would be time-consuming and painful.

View 4 Replies View Related

General :: Find Statement For Multiple Folder Names?

Jan 21, 2010

right now i'm doing a find . -type d -iname "z*" to find all folders who's name starts with z or Z.

Is there a way I could with one command find all folders who's name starts with the letters M through Z, without having to do the same command over and over and just changing the letter each time?

View 15 Replies View Related

General :: Find A Relative Statement Of Each Kernel Process?

Apr 23, 2011

as the title,I want learn how it works.

View 1 Replies View Related

Programming :: Perl Switch Statement Throwing Error Like Bad Case Statement (invalid Case Value)?

Oct 6, 2010

I've written a simple perl code to learn switches in perl.My code is pasted below,

#!/usr/bin/perl
$opt = 1;
switch($opt) {

[code]...

View 3 Replies View Related

General :: Command Path Is In PATH But Bash Does Not Find The Command

Jul 12, 2011

kernel 2.6.21.5, slackware 12.0
GNU bash 3.1.17

Code:

As you can see, /usr/local/bin is in the path. However, bash does not look for nasm in /usr/local/bin.

If I am root, things go well:

Code:

View 16 Replies View Related

Ubuntu :: Find The File /etc/rsyslog.conf So Can Modify It

Jun 6, 2011

How do i find the file /etc/rsyslog.conf so i can modify it.

View 1 Replies View Related

Ubuntu One :: Cannot Find Way To Modify Account Settings For Client Software

Mar 14, 2010

When I first installed Karmic, I created a dummy Ubuntu1 account to play around with and have long since forgotten everything about it. Now I am attempting to setup a real account and I cannot find a way to modify the account settings for the client software. Is there a way or do I have to purge it?

View 6 Replies View Related

General :: Find Out Path Of Program?

May 20, 2011

On Unix I can call certain programs from everywhere, like sort, pwd or my_custom_script.sh. How can I find out, where on the system my_custom_script.sh really resides?

View 2 Replies View Related

Ubuntu :: Find The Path To Dependencies?

Sep 24, 2010

I am trying to install Staden on a Ubuntu 10.04 machine (64bit). It requires a number of dependencies to be installed prior to configuring the source. I was fortunate to find all of them using the synaptic package manager. now for the configure command I need to specify where these dependencies are as options.

how do I find the programs that I need to reference as options to the configure command such as: tcl, tk, zlib, xz utils, libpng, curl, tklib, itcl, itk, etc. Is there a standard directory that synaptic uses or what?

View 7 Replies View Related

Programming :: Find With A Regex Path?

May 5, 2010

I'm using bash scripting to find any file that matches a path governed by the following regular expression:

"(monthly|nightly).[0-9]+/home/(user1|user2)/.mailbox/"
to match files like:
monthly.9/home/user1/.mailbox/l23131564
nightly.15/home/user2/.mailbox/cur/6546213

I've tried:

Code:
myRegex="(monthly|nightly).[0-9]+/home/(user1|user2)/.mailbox/"
find ./ -regextype posix-egrep -regex $myRegex

and it just spins and never gives me an answer, even though the file structure isn't that big.

View 8 Replies View Related

Ubuntu :: How To Find Put The Mount Path Of A Folder

Aug 22, 2010

I mean I have a folder on my root /share and I want to find out how much free space do I have left on the hdd, problem is I have 4 HDD and I don't know if /share is mounted on / or where ..... what is the command line?

View 2 Replies View Related

Ubuntu Multimedia :: Find The /dev Path For Built-in Mic?

Dec 27, 2010

I am using VLC to capture video from my webcam. So to set the video device I use /dev/video0 (built in webcam), but I need to specify the path to the built in mic and I can't find what that path is. If it help any, it seem my system is configured to use pulse audio instead of alsa. Is there any script to run to find where my mic is "pathed" at? arecord -l returns this:

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC883 Analog [ALC883 Analog]
Subdevices: 1/1

[Code]....

View 9 Replies View Related

Ubuntu :: File - Can't Find The Path To The Trash

Aug 10, 2011

I'm writing a script that tidies up my system before it shuts down.

One of the things I would like it to do is clear my Trash..

Code:

But I can't find the path to the trash. Anybody know where it is?

View 8 Replies View Related

General :: Find The Location Path On Server Via SSH?

Mar 7, 2010

How can I find the lynx location path on my server via SSH

View 2 Replies View Related

General :: Find The Installation Path Of Binutils, Gcc-3.4.4.tar.gz In Ubuntu?

Apr 5, 2011

I have ubuntu 8.10. In this I could find the binutils, gcc are installed. But when ever I try to know that glibc, glibc-linuxthreads are installed are not. It showing that no package is found. For that I have downloaded glibc-2.3.3.tar.gz, glibc-linuxthreads-2.3.3.tar.gz.I want to install these two package.i dont know where to install as am novice to linux.

View 1 Replies View Related

Ubuntu Multimedia :: Can't Find Path To External Burner

Jun 9, 2010

just trying to copy a cd to ogg.. can see the music.. can see the burner gui..its asking for the path to the cd right click on the cd icon.. nothing.look in the 'computer' section of places.. useless.look in a load of folders, where it may be.. nothing.

View 2 Replies View Related

Ubuntu :: How To Find The Current (installation) Path Of A Tool

Jul 12, 2010

Assume I call a certain tool in terminal like

foobar -myoption

But a) there exists more than one installation of "foobar" on the system or b) I don't know where "foobar" is installed.

How can I find out WHICH foobar resp. WHICH path belongs to the currently active foobar tool?

I prefer a cmdline command with option similar to:

findactivepath -tool=foobar
....
Output: Used location=/usr/bin/foobar

I don't want to dig around with PATH investigations by searching every PATH component. Furthermore I don't want to get recommendations and expectations like "normally tools are installed in...". Think of unusual installed software.

View 1 Replies View Related

Ubuntu :: Setup Jde With Emacs - Find My Jdk Path And Verison To It?

Feb 2, 2011

How do i setup jde with emacs and how do i find my jdk path and verison to it?

Here the link i try to found.

[url]

View 1 Replies View Related

General :: Find Command To Search Wildcard In Path?

Dec 8, 2009

I need a command to search for any file in a directory like so:

/home/*/upload/* and then change permissions any file in that directory.

Find doesn't seem to match what I need.

View 12 Replies View Related

Server :: Samba And Karmic - Can't Find Network Path

Mar 8, 2010

a new hardisk and a reinstall later I find myself face with 2 problems now. firstly I followed, [URL]... which seemed to work fine, accross the network I can "see" all the workgroup computers. Now try login to karmic's or (other linux box) jaunty, can't find network path. tried turning off the firewalls, still no go. the two linux boxes can chat merrily, and the 2 windows boxes can chat, but to each other. however after fidling a bit , on karmic i now get

Quote: Could not display "network:///" Nautilus cannot handle "network" locations

so firstly how do i reinstall everything, the how deal with windows.

View 3 Replies View Related

General :: Difference Between PATH=$PATH:$1 & PATH=$1:$PATH?

Jan 16, 2011

I found the following function in /etc/profile file.

[Code]...

1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??

2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH

View 14 Replies View Related

Ubuntu Installation :: Installations Got Messed Up - Programs Don't Find Path To Run

Jan 14, 2010

I have this weird problem. The other day I asked a question about restore the backup file after dual boot installation. I have done the dual boot ( XP installed first) then restored the backup file. Now the problem is that I forgot if I excluded system files from backup or not, so when I restored and rebooted, my installations got messed up, many programs do not find their path to run, etc. But the real problem is when I rebooted again, I got error 15: file not found tried to follow some other posts here to solve this and noticed that running fdisk -l gives me:

[Code]....

View 1 Replies View Related

Ubuntu :: Installed A Program But Can't Find Its Path For Startup Manager?

Nov 15, 2010

I installed a new program called the "Android Notifier Desktop 0.2.1" and within the program it say to use the systems startup manager to start the program with every system boot.I have no idea where to begin looking for the programs file and main start up link.

View 9 Replies View Related

Software :: LD_LIBRARY_PATH Is Mentioned With The Library Path: /usr/bin/ld: Cannot Find -ljson

Aug 5, 2011

I am using json library for my application. I have mentioned the path where the library resides in the LD_LIBRARY_PATH. while compiling i have given the following commands.

gcc -o pafitest pafi_test_app.o -ljson

but still i am getting this following error.

/usr/bin/ld: cannot find -ljson
collect2: ld returned 1 exit status

View 1 Replies View Related

General :: Error: Cannot Find GLIB Version >= 2.0: Is Pkg-config In Path?"

Apr 12, 2010

I am trying to install syslog-ng-3.0.2 on Fedora 12 and have run into an issue I don't know how to solve. When runing the "configure --enable-ssl" I get the following "checking for pkg-config... (cached) /usr/bin/pkg-config checking pkg-config is at least version 0.14 checking for GLIB - version >= 2.0... 2.0, bad version string no configure: error: Cannot find GLIB version >= 2.0: is pkg-config in path?" I have glib-2.24.0 installed on this system so I don't understand where this issue is coming from or how to fix it.

Back ground on my system -
[root@syslog-ng]# set PKG_CONFIG=/usr/lib/pkgconfig
[root@syslog-ng]# export PKG_CONFIG

View 8 Replies View Related

Software :: Install Libclamav With PHP - Cannot Find Clamav Files In Default Path

May 26, 2011

I am having a big problem trying to allow PHP to scan files, using clamav libs in PHP.

I downloaded the relevant files from:[url]

Anyways I am stuck on the tutorial for installing it in the 'INSTALL' file, where it says to run the command:

Quote:

It runs for a duration but then halts on the following error:

Quote:

It suggests that 'configure:3465' that the files where not found going by the line above that.

Not being in the default path, does anyone know where to make libclamav work?

An easier way of locating such files that it's looking for?

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved