General :: Do Symlink Or Hardlink At Start Up?

Jun 7, 2011

2.6.38-8-generic
Mint 11 64 bit

I'm trying to move a file from a directory to another one and create a symlink but seem to be doing something wrong. Have done "man ln" and looked up info in coreutils but I don't seem to be able to get it right. There are two files in ./home/jim/.config/banshee-1/ that I want to move to ./home/jim/Dropbox/banshee. I have created backups of both and created the new folder in Dropbox. see attached screen shots. I then run

Code: jim@saturn ~ $ sudo ln - ./home/jim/Dropbox/banshee/banshee.db ./home/jim/.config/banshee-1/banshee.db
ln: creating symbolic link `./home/jim/.config/banshee-1/banshee.db': No such file or directory and get the above error message. Now I know symlinks do not need to be complete at the time of creation, but I'm not sure if I have done this right or not and if I try and read and write banshee.db at the original location if it will do it properly and efficiently. Is this a case where I should do a hardlink instead and have both files. If I want to do this every time at start up, how do I automate the commands once I have them right?

View 5 Replies


ADVERTISEMENT

Ubuntu :: How To Hardlink A File

Apr 29, 2011

I have three nodes with

node1 192.168.1.1
node2 192.168.1.2
node3 192.168.1.3

and the node1 is the head. Problem is when I a new user comes in, I have to create that user on the same machines separately. It is possible to hardlink /etc/passwd and /etc/groups among them. So only one user will be created on the head node.

View 7 Replies View Related

Software :: Difference Between Hardlink Vs Copy

Apr 8, 2010

Assuming that f1 is not a directory file, ln f1 f2 cp f1 f2 What's the difference between both?

View 8 Replies View Related

General :: Symlink And Sudo Executable?

Jun 14, 2010

If I have the below sudoers entryusera ALL=(userb) NOPASSWD: /home/userc/bin/executable-fileusera ALL=(userb) NOPASSWD: /home/userc/bin/link-to-another-executable-fileWhen I log-on as usera and try running the below commands, it workssudo -u userb /home/userc/bin/executable-filebut NOT the one below.sudo -u userb /home/userc/bin/link-to-another-executable-fileSorry, user usera is not allowed to execute '/home/userc/bin/link-to-another-executable-file' as userb on hostname.

View 1 Replies View Related

General :: Why Can't Make Symlink Except As Root

Mar 13, 2010

In my MIDI music collection, I have a "best" folder with duplicate copies of only my favorite files. Recently I thought, why waste memory with duplicates--can't I just put symlinks in the "best" folder? So I tried to, in Konqueror. It would only let me make the symlinks from the Konqueror superuser account.

View 4 Replies View Related

General :: Create Symlink For Every File Want To Include?

Jul 4, 2010

I have a CMS I have developed, which will run on several sites all hosted in sub directories on my dedicated server. I want to create symlinks for the main files of the CMS, including all config files, functions and admin sections. Then there will be a few files specific to each site.I read some tutorials on creating symlinks, although most are not very good in my opinion.

Do you have to create a symlink for every file I want to include? Or can I just create a symlink to a directory? For example:CMS is located at /www/cms/.Can I make www/domain1/ point to that directory, and if so, will all files include themselves correctly. I think I am a bit confused on how this works.

View 1 Replies View Related

General :: Shell - On (CentOS 5), Remembering When We've Followed A Symlink And Being About To 'cd?

Dec 10, 2010

I'm trying to figure out how to tell the shell (tcsh) to remember when I've gone into a symlinked folder, and allow 'cd' to navigate back out of the symlink rather than just navigate to the parent directory of the linked-to folder...

For example:

$ ls -al /jobs
tech -> /mnt/projects1/tech
temp -> /mnt/projects2/temp
$ cd /jobs/tech
$ cd ../temp
../temp: No such file or directory.
$ pwd
/mnt/projects1/tech

View 2 Replies View Related

General :: Symlink All Files But Copy Certain Extensions?

Jul 27, 2011

I'm wondering how I'd be able to symlink all the files in a dir structure and then also copy files of a certain extension in that dir. I'm basically symlinking all files within /foo/a,b,c to /bar/a,b,c and then copying over certain files with a certain extensions.

View 1 Replies View Related

General :: Rdiff-backup Keeps Backing Up A Symlink, Ignoring Files Under It

Dec 6, 2010

I've got a backup.list file that looks like this:

+ /ext/installs
+ /ext/media
- /ext
- /backup
- /dev
- /mnt
- /proc

/ext is a symlink to /mnt/vg1/vol1, under which are installs and media directories.

I'm running:

rdiff-backup --backup-mode --include-globbing-filelist backup.list / /backup

rdiff-backup keeps recreating a symlink: /backup/ext -> /mnt/vg1/vol1, which is kind of missing the point, because then it doesn't actually back up the files in /mnt/vg1/vol1/installs, etc.

View 1 Replies View Related

General :: Use Symlink To Provide Access To A Specific File Under A Restricted Directory

Jan 24, 2011

My home directory's permissions allow only myself access to it. Is it possible to put a file inside my home directory with.. say.. full permissions, and create a symlink to it so other users can access that file alone inside my home folder? System is Ubuntu Karmic.

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 :: Symlink Each Of The Files In One Directory To Another Directory?

Feb 11, 2011

If I have a directory /foo with a few files in it, how do I symlink each entry in /foo into /bar/? For instance, if /foo has the files a, b and c, I want to create three symlinks:

/bar/a -> /foo/a
/bar/b -> /foo/b
/bar/c -> /foo/c

View 3 Replies View Related

Ubuntu :: How Can Be Changed Symlink From / Etc / Rc2.d Directory

Feb 27, 2010

How can be changed a symlink from the /etc/rc2.d directory.I want tho change the time of start from S20 to S60.

View 1 Replies View Related

Ubuntu :: Samba Symlink Change With 10.10?

Oct 10, 2010

I have a server with my music on it. There is a network share where all my machines can access that music. In the past I have created a link inside the Music folder of each user/machine which links to the Samba share. I have been doing this by linking to /home/[username]/.gvfs/share on server.

In 8.10 I am able to drag and drop to create the necessary link from Music to share on server. With maybe 9.10 I lost the ability to drag and drop the link and had to resort to the command line ( ln -s "/home/[username]/.gvfs/share on server" /home/[username]/Music ). With 10.10 I don't seem to be able to create this link using any method. (Any link which is created is linked to / .) (After 8.10 admin rights are required to create the link from ~/.gvfs/whatever.) This method is very handy as all of the machines and users point to the exact same location for their music (~/Music/share) and if I can't create that link this system of organization fails.

View 1 Replies View Related

Ubuntu :: How To Undo Changing Symlink

Feb 4, 2011

how to undo this?

"Simply change the symlink so that it points to /bin/bash. To do this, open a terminal, and type the following:

sudo rm -f /bin/sh
sudo ln -s /bin/bash /bin/sh

From now on your scripts should work as their authors expected."

View 2 Replies View Related

Ubuntu :: Can't Execute A Symlink In /etc/init.d?

Aug 22, 2011

So, I made a bash script that I need to be executed on booting, I created it in /etc/sbin/mount_folder.sh

Code:
sudo chmod +x mount_folder.sh
sudo ln -s mount_folder.sh /etc/init.d/mount_folder.sh
Then I try to:

[Code].....

Also, if I create the symbolic link in the same folder I can execute it normally

View 5 Replies View Related

Software :: KDE Paste A File As A Symlink?

Jun 16, 2010

if it is possible to copy and paste as a symlink.

It seems to me that the only way to create a shortcut or symlink is through the command line. I use KDE.

This was one of the most basic things Windows could do since Windows 95, and is one of the simplest shortcuts I dearly miss since leaving Windows.

View 5 Replies View Related

Software :: How To Change Timestamp Of Symlink

Feb 10, 2010

I have a directory containing files and symlinks to files elswhere. I make a copy of the directory like this:
cp -rp dir/* new_dir

The files in new_dir have their original timestamps, but the symlinks have the current time. touch -t does not operate on the symblink but on the files they reference. Is there a way to set the timestamp of the symlink to a time in the past?

View 1 Replies View Related

Software :: Creating Symlink With Gcc To Libgcc.a In LFS V6.7

Feb 11, 2011

I have been using linux for about 4 months now and decided i fancy the challenge of building a LFS system(Using book version 6.7). I have got all the way up to the point of gcc being installed and then have to create the symlink to libgcc.a

Now i have typed in the command and tried copy and pasting but i always get the following output:

Code:

Now it cannot find -gcc it appears but states at the bottom ./libgcc.a file exists.

If its a fatal error or what I can do to possibly correct it!

View 4 Replies View Related

Fedora :: Change Lib Symlink Everytime Restart F14?

Feb 19, 2011

Because I am working with some 3d software, and to be able to start it I need to symlink libGL.so.1 and libGL.so.1.2 from /usr/lib64/ to libGL.so.1 and libGL.so.1.2 from /usr/lib64/catalyst/ folder. I move existing libs to new names by adding .bak at the end of file name.

But everytime I restart machine soemthing changes libGL.so.1 linking from libGL.so.1.2 (in catalyst folder) to libGL.so.1.2.bak (in usr/lib64/ folder), original file. And I can not start 3d software. Can I stop that from happening somehow? Why is that happening at all?

View 6 Replies View Related

Ubuntu Networking :: Samba Share With Symlink?

Jul 26, 2010

I have mounted a samba share on my desktop from a remote server (with smb4k). There I created a symlink to "/". When I open the symlink with konqueror it opens the right one (the root directory of the server), but when i open this link with the shell (cd rootfs/), then it opens my local root directory (of my host)... Is it possible to open the right link with the shell?

View 1 Replies View Related

Ubuntu :: Command Line Symlink Reallocation?

Aug 7, 2010

I'm running a clean install of Lucid on a new HD. I've moved over all my old data and files from the previous Karmic system, and am having trouble with a directory full of symlinks. This is a collection of links into my photographs, which I use for wallpaper with Desktop Drapes, and the directory has 1300 symlinks which now point to the wrong place.

I only need to change the first part of the link target:
/oldplace/somedir/subdir/photo.jpg
into:
/newplace/somedir/sudir/photo.jpg

I believe this needs the application of _ ln _ in a terminal to re-write the symlink, and the use of a bash line including _ if . . fi _ or possibly _ IFS _ ? I might also need to use _ sed, - but I'm not sure of the syntax for this.

View 3 Replies View Related

Security :: Symlink On Public Folder - Problem Or Not

Jul 22, 2010

I have to make sym link of phpmyadmin in /var/www in order to run phpmyadmin. I read that links can't be chmod-ed. The link ot folder phpmyadmin has 777 permissions. When browse in it every file has only read and for the root read/write access.

Is that a problem (777 access rights on sym link phpmyadmin on /var/www folder)?

View 1 Replies View Related

Slackware :: Upgrade - Rc.modules - Symlink To Old Kernel

Apr 10, 2011

I upgrade my slackware to slackware-current. But, when I look /etc/rc.d/rc.modules, it's still symlink to old kernel. Is this normal? Or i must change the symlink manually?

[Code]...

View 2 Replies View Related

Fedora :: Symlink And Yum - Dependency In The Main Package Installation

Aug 11, 2011

I'm still fighting to migrate my Evolution email from F13 to F15. My unsuccessful attempt at data conversion (from Ver 2.32/mbox to Ver 3.2/maildir) is documented here: [URL] As a last resort I decided to try installing evolution 2.32.2-1 in F15. The process went fairly smoothly once I figured out that evolution-data-server-2.32.2-1 must be installed first. Installing the data server package first eliminated all but 1 dependency problem in the main package installation. That 1 remaining dependency is where I?m stuck.

[Code]...

View 5 Replies View Related

Ubuntu :: Replaced Music With Symlink - Lost Icon

Jul 4, 2010

I have a docs partition with my music on it. I replaced the Music folder in the system's home folder with a symlink pointing to the music folder on the docs partition, but the special music icon has now disappeared (it just looks like a regular folder).

View 3 Replies View Related

Ubuntu :: Pidgin Symlink Or Fstab For Windows Share?

Aug 14, 2010

I have been using pidgin on windows XP with .purple on another networked computer [also win XP]. in windows you can set the environmental variable to change the location of purplehome to the //windows_share/.purple and it 'just works' I am now trying to replicate this using ubuntu 10.04 LTS I need some answers: should a symlink be used? should it be added to fstab? should properties, command be changed in pidgin? I have tried all of these but I must not be doing it right cos it is not working! Trust you can help me out on this. I am a relative newbie but have been using ubuntu for a year or so, just never sorted this one out.

View 1 Replies View Related

Software :: BIND Can't Open Its Config File (via A Symlink)

Jan 26, 2010

Got these messages in syslog:

Code:
Jan 26 15:24:58 marconi named[28544]: starting BIND 9.6.1-P2 -u bind
Jan 26 15:24:58 marconi named[28544]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool'

[Code]....

This is BIND 9.6.1-P2 running on Ubuntu Server 9.10. When I move all the files from /var/bind into /etc/bind (replacing the symlink that was at /etc/bind), and change all instances of "/var" to "/etc", then it works. It seems to be the symlink that is doing it. Yet I need to get this moved over to "/var" and the Ubuntu packagers built it to use "/etc/bind".

Also, when I su to user "bind" and run "md5sum /etc/bind/named.conf" (with the symlink in place) it is able to read it just fine. Other users can read it just find. It's the "/usr/sbin/named" program that can't.

View 2 Replies View Related

Software :: Udev Rule Fails When Symlink Is Defined?

Sep 19, 2010

I'm having some trouble with udev, in that it won't create me a symlink for the infrared device which is part of my Hauppauge Nova-TD-500 TV card.I've got the card installed, and for the most part working, but I want to have the infrared device on /dev/ir.I've created a rule in /etc/udev/rules.d/ called 55-dvb_usb_dib0700-ir.rules which contains this:

Code:
SUBSYSTEM=="input", ATTR{name}=="IR-receiver inside an USB DVB receiver", RUN="/bin/date > /home/xbmc/foo", SYMLINK+="ir"

[code]....

View 6 Replies View Related

Programming :: Possible To Open A Symlink (won't Follow) And Read Data From It?

Nov 9, 2010

I try to use open(2) system call, and I find one relevant flag: O_NOFOLLOW. But it will only return -1 rather than the symlink's file descriptor

View 5 Replies View Related







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