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


ADVERTISEMENT

Ubuntu Servers :: Set Home Directory Path Different From LDAP's Home?

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

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 :: 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 :: 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 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

General :: Lyx: File Name Error The Directory Path To The Document Cannot Contain Spaces

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

General :: Present Working Directory Path Display - RHEL5

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

Ubuntu Servers :: Using Apt For Updating From A Local Directory And Samba Shared Directory

Jul 9, 2010

I want to update all the machines in the network from a central repository which is on my master server and whose archive directory is shared through samba.I searched in the man page of sources.list and found that there is an option for this but can't able to implement this. Can anybody kindly tell me the way to do the same.

View 1 Replies View Related

Fedora :: Give The Command For Directory Path And Image Located Drive

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

General :: Make A Symlink That Redirects To The Directory Rather Than Acting As An Alternate Path?

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

General :: Shell Script Is Defined In Someother Directory - How It Is Being Invoked With Path

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

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

General :: Write A Shell Script Which Will Read The Directory Path As Input From User?

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

Ubuntu Servers :: No Path In Smb.conf File

Mar 21, 2010

I successfully shared a subdirectory of my home directory, using GNOME under Ubuntu 8.04 LTS Desktop. What drives me crazy is that I can't find this directory listed in /etc/samba/smb.conf, in a "path" line. Please tell me where is this directory specified, since smb.conf seems to be the only samba config file.

View 5 Replies View Related

Ubuntu Servers :: Can't Change Cgi-bin Path In Apache

Aug 11, 2010

Installed Apache and the default web root was /var/www I wanted to change the cgi-bin to somewhere within the /var/www but I cannot. It only works at /usr/lib/cgi-bin. I am trying to work out the Python CGI to be precise. It works at /usr/lib/cgi-bin but gives a 404 at other places like /home/aj/public_html/cgi-bin or /var/www/cgi-bin.I even tried it with putting a webroot directory in my home directory with a cgi-bin in it and made the changes accordingly in the conf. but the only way it works is when cgi-bin settings point to /usr/lib/cgi-bin otherwise it gives 404.

View 2 Replies View Related

Ubuntu Servers :: UNC Path In Firefox Not Working?

Dec 19, 2010

I setup Dokuwiki (local use only) and have done some testing. The following works under Windows in IE and Firefox: (Firefox needed some tweaks to open local links. no errors in the console)

[URL]

But it does not work in Ubuntu. I get Firefox can't find the file at ///192.168.0.150/images/test.jpg I have to use the locallink plugin, and several clicks, and this syntax for it to work in Ubuntu. [URL] I hate having to open each link using several clicks and even more so, having to make two types of links in my wiki posts! (SMB:// does not work in Windows.)

192.168.0.150 is a WD NAS. I will also be setting up my software RAID 5 that runs on Ubuntu to hold data for clickable in links on the wiki as well. What do I need to do to get Firefox/Ubuntu to be able to click on and use file://///192.168.0.150/images/test.jpg

Wirehsark shows NO PACKETS when I click on the link file://///192.168.0.150/images/test.jpg, so Firefox is not even trying to find the file! [URL] I have tried epiphany and it did not work either. (No packets being sent either.) This seems to be a Linux issue.

View 1 Replies View Related

Ubuntu Servers :: /dev/disk/by-path Missing On Fresh 11.04?

Jul 25, 2011

On a freshly installed Ubuntu server 11.04 I noticed that the /dev/disk/by-path directory (and of course it's contents) are missing:

Code:
root@xfiles2:~# ls -lA /dev/disk/
total 0

[code]....

View 1 Replies View Related







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