Ubuntu :: Export PATH To Adb Directory Through Bashrc?

Feb 25, 2011

I,m having a rough time getting the terminal environment to recognize my android debug bridge path (which is set in a separate hdd) I used to paste this in my bashrc, but then found that it would make the env system bonkers whenever i attempted sudoing with an option:

# Android Debug Bridge (ADB) sdk path
alias sudo='sudo env PATH=$PATH'
export PATH=${PATH}:/media/Disk/Linux/Android/sdk/platform-tools/
The "alias" line was the one making me have a rough time with env.
Now that i got rid of it everything is well but adb's path isn't exported anymore.

[Code]...

View 3 Replies


ADVERTISEMENT

Fedora :: Add Path In .bashrc By Commenting Out Old Path And Adding New One - Command Source ~/bashrc

Jun 14, 2011

When I add some path in .bashrc by commenting out old path and adding new one like this:

#EXPORT HOME_PLAY=/home/gem/old_play
EXPORT HOME_PLAY=/home/gem/play
EXPORT PATH=$PATH:HOME_PLAY

After saving above changes, I enter the command: source ~/.bashrc Now if I do echo $PATH, the path shows both the old PLAY_HOME and new PLAY_HOME. This is really bad and messes up a lot of things in my project. This problem only goes away if I logout or reboot, a rather very long process. What is happening is that the old path is added to new path element and the old path includes the old path element you want to remove.

View 10 Replies View Related

Ubuntu :: Variables In .bashrc: How To Using Dir Path

Jun 20, 2011

I have what I hope is a fairly simple question to answer. In my ~/.bashrc file I can create this alias:

Code:
alias uChmodDP='chmod -R $1 $2' #specify permissions. and the variables work fine. But I cannot seem to get any love from this alias:

Code:
alias umnt='umount /dev/$1' I realize the likely problem is the variable following hot on the heels of a specific directory, but is there anyway to specify a variable in an alias like this? For some reason I cannot umount usb pen drives by right clicking, and have to always resort to the terminal to do so, which for me is no real biggie, but if I could create this alias it would be an even better no biggie to umount using the terminal.

Actually, the inability to right click to umount usb devices seems to be a Thunar issue since I run xubuntu. Using Nautilus I am able to right click and eject/safely remove devices. Using Thunar however, right click unmount always pukes back an error that the device must have been mounted on the command line or some such BS. But like I said it is no real biggie to use terminal, but an alias would be even nicer. I prefer using Thunar and Xubu most of the time b/c my laptop is quite underpowered.

View 3 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

General :: Get Path Of Sourced Bashrc File?

Feb 11, 2011

I want to assign the path of a sourced sub.bashrc file to an environment variable. E.g. if I type (or execute) from a known relative location

$ source ../../someDir/sub.bashrc

the sub.bashrc should set a variable like

export MyOwnLocation=/home/user1/unknownlocation/someDir

The problem is I can't use $0 as reference because the script is only sourced not executed. I also don't want to hardcode the path because the location might change and there will be more copies. Is there an easy way to create this information from within the the sourced bashrc file? I use Gnu bash 2.05b on Suse Linux 9.

View 6 Replies View Related

General :: Set Path For Different Software In The Bashrc File?

Aug 24, 2010

I have installed a software and set the variables in the .bashrc file to avoid setting them everytime I would like to run te software. Now I have installed a new software and would like to do the same thing in the .bashrc file.How can I add the path to the new software directory without affecting the first software path.

View 2 Replies View Related

Ubuntu Servers :: Exportfs: Warning: /path/to/dir Does Not Support NFS Export?

Jul 8, 2010

exportfs outputs the following error upon restart or after editing /etc/exports.

Code:
'exportfs: Warning: /exports does not support NFS export.'
here is my info and configs.

[code]....

View 6 Replies View Related

General :: How To Create /.bashrc In My Home Directory

Nov 12, 2010

How to create /.bashrc in my home directory? do i make a folder naming it /.bashrc or i make its as a file?

View 7 Replies View Related

Fedora Servers :: Make An Entry In /etc/exports To Export A Directory?

Mar 13, 2009

Is there an easy to make an entry in /etc/exports to export a directory for every entry in /etc/hosts?

View 2 Replies View Related

OpenSUSE Network :: NFSv4 Oddity On 4 Servers - Directory Export?

Jan 27, 2011

I'm running OpenSuSE 11.3 (64 bit) with the latest kernel update as of yesterday. I've recently moved from NFSv3 to NFSv4 on 4 servers. Between the 4 servers there are 9 exported directories. All of them work except 1 on 1 of the 4 servers.

/etc/exports
# NFSv4 fsid=0 for the top level directory
/export *(rw,fsid=0,async,no_subtree_check,insecure)
# End

# NFSv3
/export/apps/oracle *(rw,async,fsid=7,no_subtree_check,insecure)
/export/ftpserver *(rw,async,fsid=6,no_subtree_check,insecure)
# End

I had to keep the NFSv3 entry as I need that as the mount doesn't work with v4.
/export directory listing
/export:
total 5
drwxr-xr-x 4 root root 104 2002-08-08 16:47 .
drwxr-xr-x 33 root root 944 2011-01-25 17:28 ..
drwxr-xr-x 10 root root 232 2010-01-26 10:01 apps
drwxr-xr-x 8 root root 4096 2010-12-13 12:31 ftpserver

/export/apps:
total 0
drwxr-xr-x 10 root root 232 2010-01-26 10:01 .
drwxr-xr-x 4 root root 104 2002-08-08 16:47 ..
drwx------ 3 root root 72 2008-08-06 16:40 etc
drwxr-xr-x 2 root root 240 2011-01-24 03:00 htdig
drwx------ 3 root root 72 2008-08-06 16:40 lib
drwx------ 2 root root 48 2002-07-02 13:18 lost+found
drwxr-xr-x 4 oracle oinstall 104 2009-01-07 09:59 oracle
drwx------ 5 root root 120 2008-08-06 16:40 usr

Now on any of the 4 servers if I do:
# mount -t nfs4 machinename:/apps/oracle /mnt
mount.nfs4: mounting lister:/apps/oracle failed, reason given by server:
No such file or directory

But the other sub-dir of /export is fine:
# mount -t nfs4 machinename:/apps/ftpserver /mnt

If I mount the pseudo root:
# mount -t nfs4 machinename:/ /mnt
# ls -l /mnt
total 4
drwxr-xr-x 2 root root 48 2002-08-08 15:20 apps
drwxr-xr-x 8 root root 4096 2010-12-13 12:31 ftpserver

But the apps sub-dir is empty
# ls -l /mnt/apps
total 0

On the server:
# ls -l /export/apps
total 0
drwx------ 3 root root 72 2008-08-06 16:40 etc
drwxr-xr-x 2 root root 240 2011-01-24 03:00 htdig
drwx------ 3 root root 72 2008-08-06 16:40 lib
drwx------ 2 root root 48 2002-07-02 13:18 lost+found
drwxr-xr-x 4 oracle oinstall 104 2009-01-07 09:59 oracle
drwx------ 5 root root 120 2008-08-06 16:40 usr

Well that explains why the NFSv4 mount of /apps/oracle fails because for some reason it can't "see" any files below that, but as I say the ftpserver sub-dir & mount are fine.

View 9 Replies View Related

General :: 3. Etc/exports Entry Would Export A Directory Named /nfs To All Clients On The?

Jan 22, 2011

3.What /etc/exports entry would export a directory named /nfs to all clients on the subnet 192.168.10.0 and give them read-only access?

View 3 Replies View Related

Server :: NFS Export Mounts On Client But Normal Users Can't Get Into The Directory

Jul 1, 2010

I have set up an NFS server on Fedora 13, and I am connecting to it with Fedora 13 and Ubuntu 10.

On both clients the command

Code:

works fine. On Fedora I can get into the directory with Nautilus and have read/write permissions as specified in /etc/exports on the server, but on Ubuntu I can only get into it from a sudo'd command line.

The ownership of the file on Fedora is "nobody" and on Ubuntu it's "user #500", with only people in the "500" group having access to it.

Obviously the permissions can't be changed on the client, but with the Fedora box being able to read/write to it with no problems I'm not sure what else I can do on the server to let normal users on the Ubuntu box read it.

View 1 Replies View Related

Ubuntu Security :: Seahorse Export Menu Is Always Disabled - Export The Passwords To Restore It After Formatting Machine?

Jun 12, 2010

seahorse export menu is always disabled. I need to export the passwords to restore it after formatting my machine.

View 1 Replies View Related

OpenSUSE :: How To "source Bashrc" - Get An Error File Or Directory Not Found

Jun 12, 2010

in order to install OpenFOAM, I need to

> source ~/.bashrc

but I get an error file or directory not found...

View 6 Replies View Related

Ubuntu :: Cannot Add A Directory To The PATH

Dec 8, 2010

After trying to add a directory to the PATH, I get the message that the folder doesn't exist.

Code:

View 4 Replies View Related

Ubuntu :: Fix Path To /home Directory ?

Feb 3, 2010

I thought i'd set up the partitions correctly when i installed ubuntu, with a 15 gig "/" partision and a 45 gig "/home" and a 3.8gig "swap"

I was wrong i somehow misplaced the /home partition, and therefore didn't install it

I found this out about 4 days ago as i was running though video tutorial and realized i didnt have it setup correctly afterall

So... i did some research and found this site...[url] and i found something that seemed to work for various people, i deleted the 'now' windows partition and so i had this:

However i unmounted the /home folder following the instructions without realizing that i didnt have permissions to mount the /new home partition as it is not in the extended ubuntu 9.04 linux partition and i have no rights to it

So my question is, how do i fix the path to the /home folder (original) in ubuntu so that i can start over and do this correctly (ie; resize the extended partition and add the /newhoe directory/patition to ubuntu)

I realize that i can use a sudo command before lines to run su commands that are blocked in ubuntu, which is how i screwed up =

I cannot use anything in the menu as all links to programs are dead, i can run the add app, but it cannot install as the install folders are "not there"... i can see them in the terminal so i know my data is there and i can run the live disc to salvage it, but i cannot see it while ubuntu is loaded

Note; i have not restarted the computer and i don't know if this will block ubuntu from restarting either, so i need to fix via terminal, before i can do anything else, like letting the laptop rest.

View 5 Replies View Related

Ubuntu :: Add Directory On Media To Path?

Feb 13, 2010

I need to add a directory to path in ubuntu. The directory I want to add is on Windows drive .If I try to add a directory , lets say "some directory" to path , then on adding I get following error. The directory resides on HD.

user@user-desktop:~$ PATH=$PATH:/media/New Volume/some directory/javacc-5.0/bin
bash: Volume/some: No such file or directory.
------------------------------------------------------------------------------------------------------------

[code]....

View 1 Replies View Related

Ubuntu Servers :: CD Into Directory Of Path Available

Apr 13, 2010

I was wondering if we could cd in the directory of the PATH variable. For example, if I type in echo $DISPLAY. It will give me /tmp/launch-3ee4fg/org.x:0
Is there any way that I can just take the value '/tmp/launch-3ee4fg/' from the output of $DISPLAY and exclude out the filename to the end of the command. I tried using the read command and the IFS variable..apparently IFS does not recognise / I guess.

View 2 Replies View Related

Ubuntu :: Directory Structure - What Does The Dot Mean Before Freevo In The Path

Mar 28, 2010

I'm trying to configure Freevo and can seem to find this directory "~/.freevo/local_config" .

My question is what does the Dot mean before freevo in the path ? and where is it pointing to I'am looking in the home directory but not seeing it ?

View 3 Replies View Related

Ubuntu :: MATLAB Installation - Adding Directory To $PATH

May 27, 2010

I've followed the guide here for installing MATLAB. The installation completed successfully, however, the launcher created doesn't launch MATLAB as MATLAB isn't installed anywhere pointed to by $PATH. What's the best way of solving this - adding MATLAB's directory to $PATH (in which case how do I go about doing so), or (re)installing MATLAB to somewhere already in $PATH?

View 2 Replies View Related

General :: Setting PATH Variable To Bin Directory In Ubuntu

Feb 18, 2011

I installed java in my pc by running the following on the shell
./jdk-6u24-linux-i586.
I need to set the path to the bin directory and also a new environmental variable JAVA_HOME.

View 2 Replies View Related

General :: Specifying A Directory Path In Python?

Nov 20, 2009

I'm trying to write a script in python to extract data from maillogs in gz format. I wrote a shell script but i now want to do this in python, as thats the preferred method where i work. anyway does anyone know how to specify directory paths for example the maillogs exist in /var/log so i want the script to go to that directory would LOG_DIR="/var/log/" work?

View 1 Replies View Related

General :: Put A '/' In The Directory Path With Apache?

Nov 8, 2010

I am using Apache/2.2.3 on Centos 55. I am having an issue that is pretty strange to me. Whenever I navigate to a url on my webserver from outside my network. I have to put a '/' in the directory path for example When I type in: mydomain.com/directory1 it winds up redirecting to the hostname for my server HOWEVER When I type in mydomain.com/directory1/ it works, since I am adding the '/' at the end of the path. I suspect it is because I do not have my FQDN set up correctly.I did not have this issue when I was using Ubuntu 10.04 , I suspect because Ubuntu automagically set this up for me. Is there a particular way I need to setup my FQDN in centos to get this to work properly? I have tried going into /etc/hosts and adding my FQDN in there, but I do not think I did it properly, is there a particular way the /etc/hosts file needs to be setup?

View 1 Replies View Related

Software :: Zip - Excluding Whole Directory Path ?

Sep 12, 2010

I'm trying to compress with zip for linux utility a file

Is need to be done (example):

But I would like that in the zip file there is only one file: source.file instead the whole directory path /usr, /src,... and the file.

I can't move up to the directory /usr/src/ to execute the command.

I must do this from / directory.

If this possible? I Windows systems even if I do the zip C:directory1directory2source.zip C:directory1directory2source.file, it does what I need: a Zip in directory2 with just the file source.file.

I've been looking up the man page for zip, but did not find anything useful, tried, -j, -D with no success.

View 1 Replies View Related

Programming :: Adding Directory To The Path?

Apr 2, 2009

I have made the installation of Qt4 in my Fedora/MacBookPro. It also got a first compiling and running a simple program. The point is that for the compiler to run I need to point out every time where the bin is located, as that:

$ /home/threader/kinetic/bin/qmake -project

I have tried the following, but it still doesn't work:

# script
#-----------------------------------------------------------#
# /etc/bashrc or /home/threader/.bash_profile
# config to Qt compiler

[code]....

View 5 Replies View Related

Slackware :: PATH -13.0: No Such File Or Directory

Apr 21, 2010

I am working on getting my software packages installed on my fresh Slackware64-13.0 installation. Some (but definitely not all) of my executables are unable to be run.

I understand what PATH is for. It is for locating files, folders, executables in those directories when running from a Terminal window.

So, for example, I have just installed Cisco VPN Client for Linux, and it is the strangest thing. I should have access to this. I must not be understanding something here. Does anyone have any idea why this is not working for me? I have put in an example of what I am talking about.

I have no idea why this is not working.

View 9 Replies View Related

Programming :: Getting Directory Names From A Given Path In Bash?

Apr 11, 2009

I am programming in bash and really stuck finding directory names. I have a script to find all the .php files on my / partition which will return the whole path. Is there a way to print directory hierarchy with all those values leaving out the forward slashes.

View 10 Replies View Related

Programming :: Return The Directories In Subject Dir, But Only The Directory Without Path?

May 21, 2010

Very new to this shell scripting/Linux scripting.

subject_dir=/labs/tricam/MERIT/MERIT_0*
for subject in `ls $subject_dir` ; do
if [ ! -d $subject_dir/$subject/feat/glm2010/doublegz/SRRTA.feat ] ; then

[code]....

View 1 Replies View Related

General :: Shell Script - Use Variable In A For Loop With Directory Path?

Jan 19, 2011

I modified files in several directories, and need to run a diff on the backup I created before modifying the file.

I'm trying to compose a simple shell script to speed up the task, but getting a syntax error.

Here is what I have:

for i in DIR1 DIR2 DIR3 DIR4 DIR5 do;
diff /maindir/subdir/subdir/$i/filename.txt.old /maindir/subdir/subdir/$i/filename.txt;
done

I know the paths are valid, and if I run just the diff command with the actual DIR1 instead of $i it works.

View 2 Replies View Related

General :: Command For Finding File / Directory From Current Path

Apr 30, 2010

I am total new to linux as I worked mostly on RTOS (symbian). My problem is, I need to find the file IOSTREAM.H and I am following commands below:
1) cd /
2) find . iostream.h ( finds the file / directory from the current path)
It shows No such File or Directory

View 7 Replies View Related







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