Java Home symbolic links broken
I followed a tutorial to install Tomcat on Mac OS X. When running, I got an error saying /Library/Java/Home/bin/java: No such file or directory. After going to /Library/Java, I saw that Home was a broken symbolic link to /System/Library/Frameworks/JavaVM.framework/Home. So, going to /System/Library/Frameworks/JavaVM.framework I saw that the Home file there was a broken symbolic link to /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home. As you could guess, CurrentJDK was a broken symbolic link to /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents, and /System/Library/Java/JavaVirtualMachines/ doesn't even exist. Where should I set all of these to?
Have you installed Java yet on Lion?
http://support.apple.com/kb/DL1421
Similar Messages
-
Downloading java 5 + nwds - link broken?
Hello
I'm trying to follow the link to download the complete java 5 package including NWDS, and after i agree to the Ts & Cs, the link seems to be broken. Is there somewhere else I can download it?
Also, is there a similar package with Java 1.4.1? This would be preferable since this is the version our servers are on.
Thanks
ChrisHi,
is there any particular error you get at that point? I tried it myself and it did work.
Perhaps it's worth mentioning that FTP is used for downloading the package, could it be you have any restrictions using FTP?
>> Also, is there a similar package with Java 1.4.1?
By that, do you mean the version of the supported JDK, or the Java EE compatibility? The Java EE 5 edition comes with the SAPJVM, which is J2SE 5.0 compatible. This edition is Java EE 5-certified, but can also run J2EE 1.4 applications (backward compatibility of Java EE standards!)
If you're asking about versions that run on JDK 1.4.x, those would be the NW04, or NW2004s. They can, however, support J2EE 1.3 applications.
Hope that helps! -
Does Java/JVm have a way to ditinguish between real files and Symbolic link
Hello guys,
I am using java.io.File.listFiles to list files in a directory. I have a symbolic link in the directory. the "listFiles" listing symbolic file contents too. As the real directory Symbolic link pointing is huge, the application taking too much time to load. is it a normal behaviour? are there any work arounds?Short version: If getCannonicalPath() and getAbsolutePath() return different values, then the file you look at is a symlink.
[longer version|http://www.idiom.com/~zilla/Xfiles/javasymlinks.html] -
It appears from my limited research and attempts that symbolic link command in Terminal is broken in 10.8.2
Can anyone confirm or deny my observation ?It appears from my limited research and attempts that symbolic link command in Terminal is broken in 10.8.2
Can anyone confirm or deny my observation ? -
Java - too many levels of symbolic links
Hi everyone,
Today I've tried to launch eclipse and I noticed this strange error :
[^81%][11:12][cafe][~]$ eclipse
/usr/bin/java: line 2: /usr/lib/jvm/default/bin/java: Too many levels of symbolic links
/usr/bin/java: line 2: exec: /usr/lib/jvm/default/bin/java: cannot execute: Too many levels of symbolic links
Inspecting the /usr/lib/jvm folder revealed the issue:
[^82%][11:14][cafe][~]$ cd /usr/lib/jvm
[^82%][11:15][cafe][jvm]$ ls -lhA
total 4.0K
lrwxrwxrwx 1 root root 7 Sep 5 11:12 default -> default
lrwxrwxrwx 1 root root 11 Sep 4 16:44 default-runtime -> default/jre
drwxr-xr-x 3 root root 4.0K Jul 3 16:02 java-7-openjdk
lrwxrwxrwx 1 root root 7 Sep 4 16:44 java-default-runtime -> default
So I've just removed the default symbolic link and replaced with :
[^82%][11:15][cafe][jvm]$ sudo rm default
[^84%][11:16][cafe][jvm]$ sudo ln -s java-7-openjdk/jre default
[^84%][11:17][cafe][jvm]$ ls -lhA
total 4.0K
lrwxrwxrwx 1 root root 18 Sep 5 11:17 default -> java-7-openjdk/jre
lrwxrwxrwx 1 root root 11 Sep 4 16:44 default-runtime -> default/jre
drwxr-xr-x 3 root root 4.0K Jul 3 16:02 java-7-openjdk
lrwxrwxrwx 1 root root 7 Sep 4 16:44 java-default-runtime -> default
and now eclipse launches without any issues.
So I ask, is this the correct behavior? and..
Why do we have so many symbolic links in this folder?
Cheers,https://bbs.archlinux.org/viewtopic.php … 4#p1453804
-
we found a broken symbolic link /platform/sun4u/kernel/drv/sparv9/disk_ata
this is on a V440, Solaris 9
would like to ask, any issue if we remove this link, think it should not be a problem, but this is a live server.
Thanks!This is also surprising the fact that your server is a SunFire V440 means
it should only be using SCSI harddisks. This is really weird.
Anyway, since it is a broken link, you could actually delete for security reasons.
But since you are worried ( I don't blame you, coz I will feel the same way),
the best way is to keep a record of this broken link in a file where you could
access it in the future. So my final advise is, record the broken link (comlete path ) into a file
( you can do a cut and paste ) then secure the file ( chmod 400 filename)
and then delete your broken link. Do you agree ? -
How to Create Symbolic link using pure Java code?
Hi,
I would appreciate if someone can tell me how to create symbolic link using JAVA API. I have looked into many forums but couldn't get a better answer.Java is likely not the tool to use here, as symlinks are not present in Windows while "pure" Java attempts to be platform independent. You could use Runtime.exec to execute the ln -s command
http://forum.java.sun.com/thread.jspa?threadID=664475&messageID=3892685
Good Luck
Lee -
HELP! Creating symbolic link to home folder for installer DMG
Guys,
I'm in a bit of a bind. I need to create a symbolic link for an installer DMG to distribute a communal Bookmarks.plist to all the computers in my department. Unfortunately 'ln -s ~/Library/Safari /Volumes/Bookmarks/.' doesn't do the trick! While it creates an alias that functions on my machine, when that DMG is compiled and distributed from the original sparse image, the alias fails to link to that location on whoever attempts to mount the DMG. Any ideas?? Thanks!Symbolic links break when you change the machine on which they were created. Use an standard Mac alias instead as I believe they will work as expected.
-
Symbolic links on samba network drives broken?
Note: I first posted this in Apple.com > Support > Discussions > Mac OS X v10.5 Leopard > Using Mac OS X Leopard where it was suggested I post here. In my readings it looks like 10.6 may solve some of this but I'm not sure.
I'm seeing the following sort of behaviour on all of the macs I have tested in the following configuration:
Network file server:
Solaris 10
samba 3.4.2
Macs:
Leopard 10.5.6
Connect to exported folders via smb in finder "connect to server". In the examples below abc123 is a remote folder.
Open terminal and try the following tests:
1. Attempting to remove a symbolic link fails.
* cd /Volumes/abc123/tmp
* touch foo
* ln -s foo .bar # this works
* rm .bar # fails with no message
* rm foo # succeeds
* rm .bar # fails with no message
If the symbolic link is to a socket then you at least get a message when rm fails ("rm: .parentlock: No such file or directory" as an example for a link created on the remote drive by Thunderbird or Firefox).
2. Removing linked file removes unlinked file??
* touch foo
* ln -s foo bart
* touch ._bart
* ls -la # observe that ._bart exists
* rm bart
* ls -la # observe that bart still exists, but that ._bart is gone!!!
3. Removing linked file does not work.
* ln -s bart ._bart
* rm bart # fails
4. Hard links do not delete either.
* touch foo
* ln foo ._bart
* rm foo
* ln -s bar ._bart # ln: ._bart: File exists
* rm ._bart # rm: ._bart: No such file or directory
5. Symbolic links are copied instead of the file contents.
* touch foo
* ln -s foo ._blaht
* cp ._blaht /tmp
and observe that, in /tmp, you have "._blaht -> foo" instead of the actual file.
So can anyone else reproduce any of the above problems? In my limited searching for samba related problems I did not see any posting about this type of situation. Also, everything works just fine on local drives.Depending on the filesystem, Mac OS X creates ._foo files when you create a foo file, so you'll probably have to live with that. For example, for each file on my FAT32-formatted USB flash drive there is a ._xxx file. Others may be able to explain what these things are. I'm pretty sure they contain file metadata, perhaps like .DS_Store files created for other file systems.
-
Java File IO getCanonicalFile() handling Linux Symbolic links
Does anyone have any experience using the File.getCanonicalFile() method. I would prefer to use the getCanonicalFile() to obtain the real file pointed to by a symbolic link, rather than the Linux "ls" command.
I currently check for any changes by executing a "ls" every second,when I test the getCanonicalFile() method, I see he doesn't seem to keep up with the real situation on the FileSystem ?
Example:
2009-04-28 13:56:57:575 [00000] TEST: ls file=/ama/log/PPT/ape/feAPE_090428_135651 getCanonicalFile()=/ama/log/PPT/ape/feAPE_090428_135627
2009-04-28 13:56:58:569 [00000] TEST: ls file=/ama/log/PPT/ape/feAPE_090428_135651 getCanonicalFile()=/ama/log/PPT/ape/feAPE_090428_135627
2009-04-28 13:56:59:594 [00000] TEST: ls file=/ama/log/PPT/ape/feAPE_090428_135651 getCanonicalFile()=/ama/log/PPT/ape/feAPE_090428_135627
2009-04-28 13:57:00:592 [00000] TEST: ls file=/ama/log/PPT/ape/feAPE_090428_135651 getCanonicalFile()=/ama/log/PPT/ape/feAPE_090428_135627
2009-04-28 13:57:01:543 [00000] TEST: ls file=/ama/log/PPT/ape/feAPE_090428_135651 getCanonicalFile()=/ama/log/PPT/ape/feAPE_090428_135627
2009-04-28 13:57:02:503 [00000] TEST: ls file=/ama/log/PPT/ape/feAPE_090428_135701 getCanonicalFile()=/ama/log/PPT/ape/feAPE_090428_135627
2009-04-28 13:57:04:058 [00000] TEST: ls file=/ama/log/PPT/ape/feAPE_090428_135701 getCanonicalFile()=/ama/log/PPT/ape/feAPE_090428_135627
2009-04-28 13:57:04:460 [00000] TEST: ls file=/ama/log/PPT/ape/feAPE_090428_135701 getCanonicalFile()=/ama/log/PPT/ape/feAPE_090428_135627
2009-04-28 13:57:05:526 [00000] TEST: ls file=/ama/log/PPT/ape/feAPE_090428_135701 getCanonicalFile()=/ama/log/PPT/ape/feAPE_090428_135701
2009-04-28 13:57:06:546 [00000] TEST: ls file=/ama/log/PPT/ape/feAPE_090428_135701 getCanonicalFile()=/ama/log/PPT/ape/feAPE_090428_135701
Thx.Hi ejp, nice picture :) .
The task:
Trying to count specific records in a log file (A type of modified Linux tail). I've tried to use the symbolic name as the original filename (FileInputStream) but when the file gets switched (link deleted and recreated) the fileDescriptor knows nothing about the new file, no changes are ever seen.
So basically, how can I track the latest "real" log file ? I'm using "ls" every iteration, If the filename changes, I close the current stream and open new one?
I've also tested using "new File(...)" and using a Filter on the list output but this is slower than the "ls". I hoped getCannonicalFile() was the answer.
// Close the current Buffered Input stream
is.close();
// Open a new buffered input stream with the NEW Filename
is = new BufferedInputStream(new FileInputStream(filename));
// Log the details of the found file
sp.getLog().msg(clientBean.getPort(), "Tracking new filename: " + filename + " InputStream Found available to read: " + is.available());
// Connect the Input stream to a Data input stream
dis = new DataInputStream(is); -
Symbolic link error when exporting during heterogeneous system copy
My enviroment is ECC6.0/Oracle 10.2.0.2/SUN Solaris 10 . I'm performing heterogeneous system copy to Oracle 10.2.0.2/AIX 6.1 enviroment.
I've succesfully exported & imported two systems ie DEV & Solutin Manager , but PRD system has an OS problem with symbolic links ie Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS
I want to export both ABAP & JAVA stack but only the java stack is getting picked.
Below is part of the resultng sapinst.log
Thanks
INFO 2011-09-05 10:44:30.573
Execute step verifyJavaHome of component |NW_Export|ind|ind|ind|ind|0|0|NW_getJavaHome|ind|ind|ind|ind|2|0
INFO[E] 2011-09-05 10:44:33.851
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/._), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:44:33.851
FSL-02061 Link /._ is invalid: Unable to link a link to itself.
INFO 2011-09-05 10:44:46.118
Execution of the command "/usr/j2sdk1.4.2_09/bin/java -classpath /tmp/sapinst_exe.29247.1315208256/JAR/ins-j2ee.jar com.sap.ins.j2ee.GetSystemProperty" finished with return code 0. Output: #
#Mon Sep 05 10:44:45 EAT 2011
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path=/usr/j2sdk1.4.2_09/jre/lib/sparc
java.vm.version=1.4.2_09-b05
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http\://java.sun.com/
path.separator=\:
java.vm.name=Java HotSpot(TM) Client VM
file.encoding.pkg=sun.io
user.country=US
sun.os.patch.level=unknown
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/oracle/PRD/INSTDIR/sapinst_dir
java.runtime.version=1.4.2_09-b05
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.endorsed.dirs=/usr/j2sdk1.4.2_09/jre/lib/endorsed
os.arch=sparc
java.io.tmpdir=/var/tmp/
line.separator=\n
java.vm.specification.vendor=Sun Microsystems Inc.
os.name=SunOS
sun.java2d.fontpath=
java.library.path=/usr/j2sdk1.4.2_09/jre/lib/sparc/client\:/usr/j2sdk1.4.2_09/jre/lib/sparc\:/usr/j2sdk1.4.2_09/jre/../lib/sparc\:/tmp/sapinst_exe.29247.1315208256\:/usr/openwin/lib\:/usr/lib
java.specification.name=Java Platform API Specification
java.class.version=48.0
java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory
os.version=5.10
user.home=/
user.timezone=Africa/Nairobi
java.awt.printerjob=sun.print.PSPrinterJob
file.encoding=ISO8859-1
java.specification.version=1.4
java.class.path=/tmp/sapinst_exe.29247.1315208256/JAR/ins-j2ee.jar
user.name=root
java.vm.specification.version=1.0
java.home=/usr/j2sdk1.4.2_09/jre
sun.arch.data.model=32
user.language=en
java.specification.vendor=Sun Microsystems Inc.
java.vm.info=mixed mode
java.version=1.4.2_09
java.ext.dirs=/usr/j2sdk1.4.2_09/jre/lib/ext
sun.boot.class.path=/usr/j2sdk1.4.2_09/jre/lib/rt.jar\:/usr/j2sdk1.4.2_09/jre/lib/i18n.jar\:/usr/j2sdk1.4.2_09/jre/lib/sunrsasign.jar\:/usr/j2sdk1.4.2_09/jre/lib/jsse.jar\:/usr/j2sdk1.4.2_09/jre/lib/jce.jar\:/usr/j2sdk1.4.2_09/jre/lib/charsets.jar\:/usr/j2sdk1.4.2_09/jre/classes
java.vendor=Sun Microsystems Inc.
file.separator=/
java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding=UnicodeBig
sun.cpu.endian=big
sun.cpu.isalist=sparcv9vis2 sparcv9vis sparcv9 sparcv8plusvis2 sparcv8plusvis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc
INFO 2011-09-05 10:44:47.076
Execution of the command "/usr/j2sdk1.4.2_09/bin/java -classpath /tmp/sapinst_exe.29247.1315208256/JAR/ins-j2ee.jar:/tmp/sapinst_exe.29247.1315208256/JAR/sapxmltoolkit.jar -d64 com.sap.ins.j2ee.TestClassLoader" finished with return code 0. Output: CORRECT
INFO 2011-09-05 10:44:47.572
Execute step verifyPolicy of component |NW_Export|ind|ind|ind|ind|0|0|NW_getJavaHome|ind|ind|ind|ind|2|0
INFO 2011-09-05 10:44:47.715
Execute step setNWOption of component |NW_Export|ind|ind|ind|ind|0|0|NW_getJavaHome|ind|ind|ind|ind|2|0
WARNING 2011-09-05 10:44:47.944
Could not determine a valid JAVA_HOME directory from the environment.
INFO 2011-09-05 10:44:48.86
Execute step assignUsersToSapinstGroup of component |NW_Export|ind|ind|ind|ind|0|0
INFO 2011-09-05 10:44:48.890
Account sapinst already exists.
INFO 2011-09-05 10:44:48.894
Account prdadm already exists.
INFO 2011-09-05 10:44:48.917
Account oraprd already exists.
INFO 2011-09-05 10:44:49.73
Execute step useDatabaseMethod of component |NW_Export|ind|ind|ind|ind|0|0
INFO 2011-09-05 10:44:49.217
Execute step setDatabaseMethodOra of component |NW_Export|ind|ind|ind|ind|0|0
INFO 2011-09-05 10:44:49.341
Execute step setDatabaseMethodDB6 of component |NW_Export|ind|ind|ind|ind|0|0
INFO 2011-09-05 10:44:49.480
Execute step mainExportParameters of component |NW_Export|ind|ind|ind|ind|0|0
INFO[E] 2011-09-05 10:44:52.251
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/._), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:44:52.252
FSL-02061 Link /._ is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.760
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/cntrl), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:45:01.761
FSL-02061 Link /oracle/PRD/cntrl is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.762
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/._), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:45:01.762
FSL-02061 Link /oracle/PRD/._ is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.763
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/sdubhibq), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:45:01.764
FSL-02061 Link /oracle/PRD/sdubhibq is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.765
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/sduccayx), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:45:01.765
FSL-02061 Link /oracle/PRD/sduccayx is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.766
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/inventory), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:45:01.767
FSL-02061 Link /oracle/PRD/inventory is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.768
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/OPatch), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:45:01.768
FSL-02061 Link /oracle/PRD/OPatch is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.769
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/assistants), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:45:01.770
FSL-02061 Link /oracle/PRD/assistants is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.771
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/bin), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:45:01.772
FSL-02061 Link /oracle/PRD/bin is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.773
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/clone), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:45:01.773
FSL-02061 Link /oracle/PRD/clone is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.774
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/crs), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:45:01.775
FSL-02061 Link /oracle/PRD/crs is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.776
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/css), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:45:01.777
FSL-02061 Link /oracle/PRD/css is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.778
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/ctx), line (346) in file (syuxclink.cpp).
INFO[E] 2011-09-05 10:45:01.778
FSL-02061 Link /oracle/PRD/ctx is invalid: Unable to link a link to itself.
INFO[E] 2011-09-05 10:45:01.779
FSL-00001 System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/dbs), line (346) in file (syuxclink.cpp).Hi,
In PRD system, u might have craeted many symbolic links in /oracle/PRD fileystem . This should be avoided. Symbolic link should not be created in /oracle/PRD ...
Please check why symbolic links are created and get help from System Operation team . Please becareful to unlink symbolic links that are created by non-SAP. Make sure to perform full offline backup .
Please get the help from Unix System Operation team. Also it does not makes any sense to increase value of Unix parameter for maximum symbolic links.
Regards
APR -
Support symbolic links (symlinks or Unix's 'ln -s') in the iTunes Media folder hierarchy
As of iTunes version 12.0.1.26, iTunes has partial support for symbolic links in the iTunes Media folder hierarchy. I'd like Apple to enhance iTunes to treat any symlink or folder alias within the hierarchy the same as folders. With the Unix core under OS X, there is no clear reason to not support this feature.
Why is this important? As more of us try to use iTunes as the single repository of all media, the library size becomes larger than is possible to hold on a single partition. The simplest and most convenient solution is to allow users to move large folders (e.g. Music, or Movies) to a different drive or partition, then put an alias or symlink in the original location within the iTunes hierarchy. Users with large collections or small partitions may need to split multiple times. Other users may want to put the bulk of their media on their home/work NAS and only keep a portion on their laptop for mobile access (think long overseas flights), but not have to constantly fiddle with iTunes.
The point is not whether any one of these scenarios may be supported today though a crude hack or third-party tool. Support for symlinks would be relatively easy for Apple to implement and extremely flexible for advanced users.
This is partially supported today. For example, if you do what I described above, iTunes will play all of your existing media. The part that is definitely broken is when you try to use the "Automatically Add to iTunes" folder, iTunes will not copy the file to a location under a symlink or alias. The new file will sit in the "Automatically Add to iTunes" folder and iTunes will generate multiple instances/tracks inside iTunes (e.g. movies appear in the "Unwatched" tab). While there are ways to work around this limitation, they are tedious and ultimately unnecessary if full symlink/alias support is provided.
Best,
PeteClick here and fill out the form.
(119798) -
Can I Create A Symbolic Link to folders stored on an SMB Share folder?
Hello,
I am very new to Unix and was hoping that someone could point me in the right direction with regards to Symbolic links and an SMB share folder ....
Have purchased an ext. LAN Drive enclosure (http://www.macpower.com.tw/products/hdd3/pleiades/pd_usblan) which connects to my wireless router via ethernet like my G5 (main Mac) - our iBook connects via Airport. I have copied all my general documents/files to the SMB share folder on the ext. drive so that I can access them from the G5 and also the iBook.
However I'd also like to be able to store my actual Mail folder (/Users/Mark/Library/Mail/), , Safari folder (/Users/Mark/Library/Safari) + my Address Book and other folders sitting in the Application Support folder on my SMB share so all important docs/folders are in the one place. I've tried storing these folders on the SMB share and putting an Alias to these back in Users/Mark/Library/Mail etc but of course an Alias doesn't work.
Question 1: Can I create a symbolic link to these files if these are stored on an SMB share folder? If so, could you please tell me exactly what I'd need to type into Terminal? My SMB Share path is smb://STORAGE-XXXX/MARK
I have copied my iPhoto library and iTunes library to the SMB share and are working fine.
Question 2: Is it possible/worth attempting to move my whole home folder to the SMB share folder? Ideally, I'd like to be able to access my Mail from the iBook as well. If I could log into either the G5 or the iBook and access my latest Mail, Address Book and other Application Settings, that would be perfect. Would this be possible?
Thanks
Mark.
Dual 1.8GHz G5 (Rev.B), 2Gig RAM, 9600XT Mac OS X (10.4)Dear Mark,
Yes you can. The command to create a link will look something like this:
$ ln -s thisFolder /Users/mark/thatFolder
I did this while I was hosting a microsoft based game. This put all of the players into a common directory.
SMB just resolved the link and everything worked fine.
However, as I understand it, some other applications do NOT work very well with links. As I have NOT tried it with other applications, I fear I can be of NO help to you in this matter.
The only way to find out which applications work with links is to try them and see what happens.
Best of luck,
Kurt -
Maintaining Multiple Arch Installs, Symbolic Links, BTRFS
Hi again.
A quick update on my previous post (https://bbs.archlinux.org/viewtopic.php?id=164627). The GRUB problem I was having seems to have stopped. I got a very useful recommendation regarding pacman and XBMC still hasn't been fixed, but is fully usable with the workaround I am using and have just gotten used to it so it's not so much of an issue now. I think now that it should be marked as solved but how do I do that? Was looking around but guess I'm just missing it.
Anyway now I have a few more issues, or more just questions I guess that I would like help on. Recently I found an old laptop of mine and so to learn more about the Arch system I decided to try and install Arch. Now this laptop is around 5-6 years old and I haven't been able to get WiFi working fully for around 3 years and eventually upgraded 2 years ago to my current laptop. The WiFi was always 'soft-locked' until after about 4-5 restarts (in windows it was fine, but any Linux Distribution post Ubuntu 10.10 had the same issue). The issues still remains in other distributions even after "rfkill all". In Arch ever since running that command (the first boot from install media the issue occurred) this laptops WiFi has been brilliant. I also installed XFCE4 desktop for speed of set up. Now I'm looking to give my laptop to my younger brother before he heads of to University in September until he can afford a new one (or he breaks this one - somehow his laptops never last), as this old one now runs better than it ever did on Windows Vista. My girlfriend is also looking for me to install Linux again on her laptop (we used WUBI in the past) but a full install since her Windows Vista laptop is near unusable in Windows. So far I have got hamachi set up between my new and old laptop, this gives static IP addresses and will allow me to SSH into the laptop for upgrades every so often. I'm planning to do the same for my girlfriends laptop. Would I be stupid to do this via Arch? I've heard it breaks often and I don't want to have to be doing fixes for other peoples laptops as I won't have the time to do so. I guess the reason I want to use Arch is both laptops are quite old and Arch has breathed new life into my old one.
Secondly I have symbolic links set up in my "Music" and "Video" folders in my home directory to their counterparts in my Windows partition. However my music player "Clementine" doesn't find every album in the music folder. Does symbolic links have "flaws" like this or is it more likely to be my music player behaving badly with symbolic links? I would try another music player but I can't seem to find one which plays FLAC files with external / embedded .cue files so can't really test this out. I can of course link directly to the location but I thought I would ask, just to learn more I guess.
Now when I installed Arch using BTRFS file system I didn't know that I had to mount using compression immediately, I thought I could add it to the fstab at a later point - obviously not. Now I found a command which will defragment my drive and supposedly compress everything. However this command doesn't make any sense to me and I don't want to just run it without knowing what it does. Could anyone other me any insight into this please? Also does defragmentation after the fstab mount options have been added cause the compression?
"find -xdev -type f -exec btrfs fi defrag '{}' \;"
or I also found
"btrfs filesystem defragment ~/stuff"
Thanks for any help, I understand this post is quite long so I really appreciate it.
Last edited by BradPJ (2013-06-13 10:19:47)Ah right thanks. I thought as much which is why I asked before I did so, I'll find another distribution. Just where I've been running Arch for a few weeks now and haven't had to do any maintenance at all really, but weren't too sure what I'd be in for in the long-run. I mean to be fair I was always planning on another distribution but as I was playing around at first on the old laptop I ended up with my current way to SSH in and just wondered if it would be viable to do it this way.
I knew it would be a driver issue at the core of my problem, just weren't too sure if it something else could of been affecting it. Guess I'll try and find another distribution which runs near as new software to Arch as possible as it seems the issue has been fixed in newer versions of the kernel and drivers. Granted the old laptop had been unused for around a year so any update in the last year could of fixed it in this case. Thanks for your input!
Last edited by BradPJ (2013-06-13 11:35:16) -
How do you open a Java Pop Up link in a new tab without looking at the properties of every link
In the next version of Firefox, please include an option when a user right-clicks a java pop-up link, there is an option to "open link in new tab".
90% of most links are “normal” links and not java popup links. It is actually frustrating when a link is a java link because I right click it and it and I get denied. I then have to "left click it". One too many clicks. The menu options when you right-click a java pop up link aren't too extenisive anyway, so adding this option shouldn't take up much real estate.
I understand the user can look down at the link properties when hovering over a link, but that would suck to glance down before every link click.
Please let me know if I am simply surfing the innefficient way.
Thanks,
Danandtrobs wrote:
Something I have noticed with the iPad that it is possible for webpages to run as if they are in their own app.
No, what you're seeing is the actual webpage
For example, the BBC iplayer (www.bbc.co.uk/iplayer). Open this site in safari, add an icon for it to your home screen, then when you use this icon to open the iplayer it opens as if it is an app, it doesn't have the address bar or back and forward buttons etc.
Actually, it does. Or should do, ay least. It does for me
Also when you double click the home button the iplayer icon shows up with the rest of the apps (usually you just get safari there) and if you open safari and look at the pages you have open it doesn't show there. It really does look as though it is an app, although what I'm guessing is happening is that it is open in a new instance of safari.
That's correct
My question is, does anyone know how to get a site to do this? I'm assuming there are some meta tags in the HTML but I can't find any references to this being possible let alone how to do it.
The site doesn't do it. Safari does it. All you have on your Home screen is the iPad equivalent of a webloc, a small text snippet containing the URL for whatever page you saved.
Message was edited by: Michael Morgan1
Maybe you are looking for
-
How can I transfer photos from my iphone to my computer without emailing each one to myself
how can I transfer photos from my iphone to my computer without emailing each one to myself, and I thought they would be in icloud but I can't find them
-
How to view iPhoto pictures from Air on iPad
Hi all I have a MacBook Air with lots of pictures sorted in iPhoto. I also have an iPad and aiCloud account. How can I set myself so that I can see the pictures on the Air's hard drive on my iPad? Any help would be welcome. Regards, Sam.
-
Can't access Facebook w my mac book pro (lion)
and i fiddled with terminal (following instructions from the internet) to fix it and probably made it worse. how do i fix this? when i try to open the page it says Invalid URL The requested URL "/", is invalid. Reference #9.54e0fc7d.1343822724.68af1
-
[Solved] Problems after upgrading graphics card
I just upgraded my 8800GTX to a GTX650. I ran "nvidia-xconfig" initially then "nvidia-settings" to make sure both of my monitors looked good. After rebooting I have Openbox running on only my "main" screen. I can move my mouse to the second screen, b
-
I'm unable to save my files on the cloud why is that ?
every time i try to upload my files to the cloud service a message pops saying an error occurred