General :: Getting Duplicated Entries In $PATH?

Apr 28, 2010

I'm using Ubuntu 9.10 (karmic). And, my ~/.pam_environment looks like the following.

PATH DEFAULT=${PATH}:~/Adobe/Reader9/bin:~/texlive/2009/bin/x86_64-linux
GIT_EDITOR DEFAULT=vim
MANPATH DEFAULT=${MANPATH}:~/texlive/2009/texmf/doc/man
INFOPATH DEFAULT=${INFOPATH}:~/texlive/2009/texmf/doc/info

But, echo $PATH returns me duplicated entries as the following.

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:~/Adobe/Reader9/bin:~/texlive/2009/bin/x86_64-linux:~/Adobe/Reader9/bin:~/texlive/2009/bin/x86_64-linux

I've tried replacing DEFAULT by OVERRIDE in my ~/.pam_environment file. But, that didn't help.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Remove Duplicated Menu Entries?

Jul 18, 2010

I am trying out Xubuntu 10.04 but after I installed "Gnome-desktop" package to include gnome support I now have duplicated entries on my start menu. Does anyone know how to purge these duplicates? (a terminal based de-duplicating command would be very handy).

View 3 Replies View Related

Ubuntu :: How To Remove Duplicated Menu Entries

Dec 7, 2010

I am trying out Xubuntu 10.04 but after I installed "Gnome-desktop" package to include gnome support I now have duplicated entries on my start menu. Does anyone know how to purge these duplicates? (a terminal based de-duplicating command would be very handy).

View 1 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 :: How To Add Entries / How To Delete Entries

Oct 13, 2010

I am working on Red Hat Linux since last six months and learning it steps by steps. like configurating ftp server,NSF ,DNS and then email server. I want to learn squid server but technically before going into it what you suggest me that may I first learn to configure Linux as a router,Firewall machine or do IP masquerading on a server. Because all these things are directly or indirectly involve in squid.So guide me because going to start squid i may understand Linux IP table ,how to add entries in it,how to delete entries ,I think you understand my point which i want to ask for guidence.

View 4 Replies View Related

General :: Backup Data From Hdd's Where Volume Groups Are Duplicated?

Jul 30, 2009

I have couple hard drives from different linux distro's. on the hdd's are logical volumes created. what i want to do is to backup the data from those hdd's. but when I connect some of them and boot up the system it
gives me an error that there are volume group duplicated and it list the UUID. My host system is centos 5. What is the best solution to rename those volume groups or to mount the drives from other systems, so the data will not get lost?

View 2 Replies View Related

General :: How Can Interactive Login Environment Be Duplicated In Cron

May 24, 2010

My execution environment is Linux steamboy 2.6.31-21-generic-pae #59-Ubuntu SMP.If I log in and run a program, the program works properly. The program is a shell script, which executes an environment file, so that path and library settings point correctly.If I have cron run the same program as the same user who logged in, one of the libraries cannot be found. I have sourced .bashrc and the same environment setting file, even though .bashrc executes the same environment file . /home/amr/bin/informix_env.sh

View 1 Replies View Related

General :: Move A File To Some Path And Create That Path When It Doesn't Exist?

Oct 8, 2010

I use this command:

Code:

find ./ -atime +360

to figure out the files that haven't been accessed since 360 days. The command above will return results like this:

Code:

/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc

I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:

Code:

mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext

But I want the executed command to create this path

Code:

/old-files/uploads/2010/02/

If it doesn't exist.

View 6 Replies View Related

General :: Forcing An Absolute Path Where A Relative Path Is Expected

Feb 21, 2011

I have a program that takes a relative path as input appends it to a some path string to get the actual path.

Now all I can input is the relative path. So if I want to go one level above my input will be ../mypath.

If I know the depth of the path used internally, I can use .. as many times to go to the root directory and then give the absolute path. But suppose I do not know the depth of the directory, can I construct a relative path string such that it considers it as a relative path. One way could be to have enough .. in the path string so that I can force an absolute path for some maximum depth of path.

Is there some path string syntax that I am not aware of but can achieve this?

View 2 Replies View Related

General :: Deleted Path Variable - How To Return To The Original Path Value

Apr 26, 2011

Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.

View 3 Replies View Related

General :: Change Windows Path To Unix Path?

Sep 14, 2009

I have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup

View 7 Replies View Related

General :: Change Absolute Path To Relative Path?

May 31, 2011

Current script:-

prefix=user@my-server:
find . -depth -type d -name .git -printf '%h�' | while read -d "" path ; do (
cd "$path" || exit $?

[code]....

How shall i go about changing the absolute path to relative path, so that /home/git/mirror/android/adb/ndk.git gets converted to /mirror/android/adb/ndk.git //echo <command> "$prefix$PWD.git" ?? - anything for relative path?

View 7 Replies View Related

Ubuntu :: Data Being Duplicated

Jun 15, 2010

why my data is being duplicated. I store all my data in BOB so the 26.2 GB of data is expected. I don't store anything in .ecryptfs so the 26.2 GB of data is completely unexpected. Could you please explain why this is happening and how to fix it.

View 9 Replies View Related

Ubuntu :: USB Drive Duplicated After Upgrade

Jun 7, 2010

I have a USB hard drive that is called "My Book", which was listed in the Media folder whenever it was connected. Since I upgraded to Lucid, I now have a permanent folder/drive called "My Book" with an X over the folder icon, and whenever I connect the hard drive, it is given the name "My Book_". I can't change anything about the new, permanent folder; apparently I don't have permission. This has meant that all the applications that linked to files on the hard drive - Banshee etc - can no longer find the files because the hard drive now has a different name.

Does anyone know why this has happened and what I can do to fix it - ie. get rid of this new 'drive'. I'm guessing that the reason the underscore is added when I plug the drive in is due to the existing, redundant but unmoveable, drive icon.

View 2 Replies View Related

Software :: Duplicated Filenames In The Same Directory?

Apr 3, 2011

The (WD 320GB) drive has a single ext3 FS on it. It has had some problems in the past, but all were fixed with fsck -y. Now there are several directories with duplicate filenames. The files with duplicated names are hard links of each other, but the names are identical. I've run several diagnostics over them, looking for, eg, non-printing characters in the name, but they are completely identical. Here are some examples:

[code]....

These are (obviously) from a directory of mp3s, but similar duplications occur throughout the fs - there are several thousand files affected. Some of the diagnostics were programmes I wrote that accessed the directory itself (through the dirent structure). I always thought duplicate filenames in the same directory were impossible in unix/linux; this appears to prove me wrong. Am I missing something? (Kernel version 2.4.20 with xfs extensions. The installation was originally Red Hat 7, but I've changed almost everything, so it's probably more accurate to call it a custom distro.)

View 7 Replies View Related

Software :: Managing Duplicated Files

Sep 11, 2010

I reckon I waste several tens of gigabytes of storage by holding unwanted copies of personal data and media files over very many partitions. Sometimes they will have identical names, dates and sizes. Other times they may be slightly different in terms of metadata but nonetheless essentially identical in respect of content. It is becoming a nightmare. Any suggestions for how best to get rid of these unwanted files?

View 13 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 :: OPEN WITH Listed Duplicated Applications

Mar 24, 2010

I was trying to install some Windows applications in Wine/PlayOnLinux. The result was not very useful for what I wanted and I removed all the application including wine and Playonlinux completely from my computer (9.10 64bit).But I was not really able to completely clean up what I did because when I right click on any files and use "OPEN WITH", I got a LONG list of application with many of them are uninstalled and duplicated.

View 9 Replies View Related

Hardware :: Duplicated Directory On Ext3 Filesystem?

Jul 11, 2010

I was looking in a dir I haven't used for a while (I use it for data storage) and found a directory was repeated - that is, two directories with the same name. I renamed one of them, on the assumption that one of them has a non-printing character in its name, and that worked without a problem, but ls -i lists their inodes as the same. ls -l says they both have two inodes (. and ..), and the files they contain have the same names. The inodes of the files is the same (that is, the inode of a file in dir A is the same as the file of the same name in dir B.) Each file in each dir is listed as having only one inode, but it's the same as that in the other dir.

View 1 Replies View Related

Fedora :: When Open Rhythmbox It Shows The Mp3s As Duplicated

Dec 13, 2010

I synced my Music Folders on all my computers with rsync. Now when I open Rhythmbox it shows the mp3s as duplicated. So, every album will have two of track 1 and two of track 2 and so on except for the new records and files that were put into that computers Music Folder because they weren't there before.

So, obviously I am doing something wrong with the path of the files/folders because the rsync must be giving the same file different paths or tags or some such. I know from google searching that Rhythmbox will not display duplicates that are true duplicates.

So, short of simply deleting my music folder on every computer and then putting all of the songs back into it... is there anything I can do?

I should mention that the files/folders are not in reality duplicated. I checked both in the folders and also I opened a folder with VLC and it produced a list of tracks that was not duplicated. Its only Rhythmbox that shows them as duplicates.

I am talking about Rhythmbox on my Fedora 13 64 bit installation.

View 2 Replies View Related

Fedora X86/64bit :: All Gnome Related Processes Are Duplicated

Feb 18, 2011

I noticed this weird behaviour yesterday after the last update (not sure if it's really related, but I didn't notice this before).When I do a fresh start and log in - all the gnome related processes are DOUBLED in the memory Of course it causes weird errors, applet hanging or crashes, very sensible slowness while booting and operating, etc, etc.Basically I have 2 gnome-session loaded at once - one as a child process of gdm-binary and another separate one. Both sessions have all the child process loaded, so I turned out to have 2 Nautilus, 2 Metacity, 2 Gnome-panel, 8 python processes and all the set of applets are also doubled.

View 2 Replies View Related

Ubuntu :: Internal Drives Duplicated And NOT Readable/writeable?

Nov 7, 2010

I just upgraded from 9.10 to 10.10 and simultaneously added 4 new hard drives. However I can not read or write to any of the disks (without sudo). They are also showing up twice (mounted and removable on top, unmounted underneath) in the "Places" menu. Of course I want them to be mounted, not removable, R/W'able and only show up once. Here'a a screenshot of where I'm at:I believe I set up fstab correctly:

Code:
# /
UUID=4204d07b-c450-4461-a001-1ef6d4ecb1a3 / ext4 errors=remount-ro 0 1
# swap
UUID=bd1aaecb-ab8c-4f44-ab22-fe25893f671b none swap sw 0 0
#DVD/CDROM
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

[Code]...

View 7 Replies View Related

Networking :: VMware Duplicated Ping Responses From Hosts In Same LAN

Nov 20, 2010

Host machine is a "2.6.32-24-generic-pae #38-Ubuntu" and VMware Workstation version is 7.1.2 build-301548.In addition to those three IP addresses(192.168.1.254/24, 192.168.1.68/24 and 192.168.1.221/24) seen on a drawing, there are four identical virtual machines inside the 192.168.1.68/24 machine. Virtual machines are named Olive0-3. Olive0 has IP address 192.168.1.100, Olive1 has 192.168.1.101, Olive2 has 192.168.1.102 and Olive3 has 192.168.1.103.

View 1 Replies View Related

Programming :: Java Applet Not Loading Image With Relative Path But With Absolute Path / Resolve It?

Jul 17, 2009

Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server

View 2 Replies View Related

Red Hat / Fedora :: Appending A Path To PATH Variable Permanently?

Oct 21, 2010

how to add a path to PATH variable permanently so that it remains persisent even after closing shell and rebooting the system when i added a path, to variable it remained there as long as i didn't closed the shell. but when i reopened it ,changed were undone.

View 2 Replies View Related

General :: How To Clear Out SSH Agent Entries (on Mac OS X)

Apr 16, 2011

I'm running OS X and it appears that after SSHing to several machines, using identity files, my ssh-agent builds up a lot of identity / keys and then offers too many sometimes to a remote machines, causing them to kick me off before connecting.
Received disconnect from 10.12.10.16: 2: Too many authentication failures for cwd

It's pretty obvious what's happening, and this page talks about it in more detail:
SSH servers only allow you to attempt to authenticate a certain number of times. Each failed password attempt, each failed pubkey/identity that is offered, etc, take up one of these attempts. If you have a lot of SSH keys in your agent, you may find that an SSH server may kick you out before allowing you to attempt password authentication at all. If this is the case, there are a few different workarounds.

Rebooting clears the agent and then everything works OK again. I can also add this line to my .ssh/config file to force it to use password authentication:
PreferredAuthentications keyboard-interactive,password
Anyhow, I saw the note on the page I referenced talking about deleting keys from the agent, but I'm not sure if that applies on a mac since they appear to be cleared after reboot anyhow. So, my question is, is there a simple way to clear out all keys in the ssh-agent (the same thing that happens at reboot)?

View 1 Replies View Related

General :: Deleted Entries Under Username Panel?

Jul 28, 2010

Broadcast Accounts...' and 'Ubuntu One...' from under the username menu on the top panel So it went from Screenshot2.jpg to Screenshot.jpg. (The first screenshot is from my laptop which works perfectly - just to demonstrate what I want my desktop (on the right) to look like)I have no idea how I did it, but have spent all day trying to get the buttons back, downloading many applications (and learning a lot about customising gnome!) but to no availEDIT: I've also noticed that the 'Synchronize on Ubuntu One' option when you right click on files and folders does not exist on the desktop pc

View 1 Replies View Related

General :: Filter Snmpd Entries From /var/log/messages

Mar 11, 2011

All, i am receiving numerous entries for programs such as snmpd in my messages file. Is there a way to add a rule somewhere to have these and other annoying unimportant entries go to /dev/null or something?

I tried adding an entry to /etc/syslog.conf, but that hosed any logging into the messages file, so maybe i added it wrong?

I want to try and do this with out installing anything additional.

View 6 Replies View Related

General :: Correct Entries In Sudoers Files

Sep 24, 2010

After adding what I thought were the correct entries in /etc/sudoers so I'd be able to run commands without needing to sudo them, I keep having to. My sudoers file entries look like this:

Code:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
user_me ALL=(ALL) ALL

## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
user_me ALL=(ALL) ALL

## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
user_me ALL=(ALL) NOPASSWD: ALL

I have also confirmed that I'm a member of the wheel group in /etc/group:
Code:
wheel:x:10:root,user_me
And yet, I still have to sudo to do pretty much anything.

View 7 Replies View Related

General :: Which File Has The Main Menu Entries

Apr 15, 2011

I want to edit the Main menu to regroup the applications, and change the paths of some of them.. I have done some yum install and remove, but the entries in the main menu are still present.=

View 3 Replies View Related







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