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
ADVERTISEMENT
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
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
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
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
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
View Related
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
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
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
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
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
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
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
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
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
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
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
Sep 9, 2009
trying to write my thesis in Lyx 1.6. It works fine on my windows laptop at home but Not on my work computer. The problem is, when i try to view it in pdflatex it comes with with: Lyx: file name error The directory path to the document cannot contain spaces
View 1 Replies
View Related
Jun 23, 2011
need to know, how we can display the whole (till current directory) path in below highlighted way. normally it shows only the name of current working directory after the server name.
View 3 Replies
View Related
Aug 28, 2010
problem during fedora x8664 installation. how to give the command for directory path and image located drive. the procedure to install fedora for the first time.
View 2 Replies
View Related
Sep 30, 2010
is there a way to make a symlink that redirects to the directory rather than acting as an alternate path? In other word, what I have now is:
[Code]....
I want my pwd to be the hardlink pwd rather than the symlink pwd after changing my directory.
View 2 Replies
View Related
May 30, 2011
extract.ksh use this scripts topic_file_publish.sh but extract.ksh resides in /data/apps/pnbos/scripts
but topic_file_publish.sh in below directory/data/apps/pnbgstk/publication >
ls topic_file_publish.sh topic_file_publish.sh fraespappp8:/data/apps > type topic_file_publish.sh topic_file_publish.sh is hashed (/data/apps/pnbgstk/publication/topic_file_publish.sh)
How it is done?
since topic_file_publish.sh is being directly referenced in the code with absolute path.
View 2 Replies
View Related
Dec 14, 2010
I currently have an ASUS eebox which is running XBMC Live which includes a stripped down version of Ubuntu. The computer will be used by various people within a teaching environment and I have successfully installed launchers for Openoffice which can be opened within XBMC.
I am trying to the make the experience for the end user as simple as possible as the vast majority will have never used Linux before. I want to get to a point where they can open Openoffice, plug in their USB stick and navigate quickly to their files. At the moment when the program is launched and I try and navigate for a file it automatically starts in the Home Folder of xbmc. So I have navigate up a couple of times, then find the /media directory where the USB stick has been mounted and so on. What I was hoping to do is create a shortcut within the Home Directory which takes you straight to the Media folder where usb is mounted.
I have already attempted and created a folder within the Home directory and called it usbpen.
I have then added the following line into fstab /media /home/xbmc/usbpen none bind 0 0
Now when I reboot the machine and navigate to the home/xbmc/usbpen folder I can see the Drive name of the USB device mounted in /media but I cannot navigate through any of the files, I am greeted with a read error message. So the shortcut is only allowing me to see the device name only.
be aware that due to running XBMC Live I do not have a Windows manager installed and therefore everything must be done through the terminal.
View 4 Replies
View Related
Jan 18, 2010
How to install VLC media player in Fedora Core 6. I tried to find out in the net, but all went in vain. From google I got this link [URL]. But if I follow the instructions given for FC6 in that link, am getting the following error.
# rpm -ivh [URL]
Retrieving [URL]
error: open of <!DOCTYPE failed: No such file or directory
error: open of HTML failed: No such file or directory
error: open of PUBLIC failed: No such file or directory
Any other rpm's for installing the VLC media player or let me know how to resolve this error.
View 2 Replies
View Related
Apr 9, 2010
I'm running CentOS 5.4 in combination with DirectAdmin, and I'm wondering: Is it safe to remove /media and /opt directory?Because those directories /media and /opt are empty.
View 3 Replies
View Related
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
Nov 28, 2010
I am new to writing shell scripts. So, please bare with me. I am currently trying to write a shell script which will read the directory path as input from user and will traverse the Dir tree to find all available audio and video files. I have tried to write as much as I could but I don't know where I am making mistake as I get some files to be audio file which are actully tar balls. On the second note there are some files which video but script shows them to be audio. And, some video files are completely skipped. I am giving the shell script below so that you can see. I am using two external files as source which I am attaching.
Code:
#!/bin/bash
#Let's load the extensions that we want to search for
vdExt=$(cat vdExtList)
adExt=$(cat adExtList)
[code]....
View 5 Replies
View Related
May 24, 2011
I need to specify a different path to home directories on a particular server than what LDAP contains for the users, besides using a symlink. E.g. "/Users/jdoe" vs "/home/jdoe" I don't want to change the actual LDAP attributes, just want a particular server to point them in the right direction (Ubuntu 10.04).
I'm assuming it's something I could probably set in pam configurations?
View 1 Replies
View Related
Nov 24, 2010
I have just installed SABnzb application in my home folder. The executable file is SABnzb.py When I run the command in the Konsole # python SABnzb.py I have this Quote: python: can't open file 'SABnzbd.py': [Errno 2] No such file or directory
View 5 Replies
View Related
May 18, 2010
using Back In Time to backup my home directory to a second hdd that is mounted at /media/backupThe trouble is, I can do this using Back In Time (Root), but not using Back In Time without the root option. This is definitely a permissions issue - it can't write to the folder, but when I checked by right clicking on the backup directory and looking at the permission tab, it said I was the owner
View 2 Replies
View Related