From cutolo at unina.it Fri Dec 1 05:27:21 2006 From: cutolo at unina.it (Giovanni Cutolo) Date: Fri Dec 1 05:27:41 2006 Subject: [X-Unix] enable remote desktop from CLI Message-ID: Hi, I have a G3 iBook with MacOSX 10.4 whose video board is as good as dead. So, there is no way to use a monitor (built-in or external) with it. What I would like to do is to use the iBook remotely from another computer in my LAN. The only problem, I suppose, is that remote desktop (as well as remote ssh login) were disabled when the iBook crashed. I am able to switch the iBook on, log in and open the terminal, where I can effectively issue commands. (I am sure that this is working: I can see the iBook hard disk from remote, so I can test that commands like creating a file do actually work.) Does anybody know what is the command to activate remote desktop or remote (ssh) login from the terminal? I suppose some defaults xxxx would do, but I would like to know before going to the try -with-finger-crossed stage. Thanks a lot in advance. Giovanni Cutolo From rob2 at atvetsystems.com Fri Dec 1 18:21:07 2006 From: rob2 at atvetsystems.com (Robert Tillyard) Date: Fri Dec 1 18:20:34 2006 Subject: [X-Unix] enable remote desktop from CLI In-Reply-To: References: Message-ID: <17F80656-D2B4-4503-8492-342B4CE73B90@atvetsystems.com> See http://docs.info.apple.com/article.html?artnum=108030 Regards, Rob. On 1 Dec 2006, at 13:27, Giovanni Cutolo wrote: > Hi, > > I have a G3 iBook with MacOSX 10.4 whose video board is as good as > dead. So, there is no way to use a monitor (built-in or external) > with it. What I would like to do is to use the iBook remotely from > another computer in my LAN. The only problem, I suppose, is that > remote desktop (as well as remote ssh login) were disabled when the > iBook crashed. > I am able to switch the iBook on, log in and open the terminal, > where I can effectively issue commands. (I am sure that this is > working: I can see the iBook hard disk from remote, so I can test > that commands like creating a file do actually work.) Does > anybody know what is the command to activate remote desktop or > remote (ssh) login from the terminal? I suppose some defaults xxxx > would do, but I would like to know before going to the try -with- > finger-crossed stage. > > Thanks a lot in advance. > > Giovanni Cutolo From jerry at ieee.org Wed Dec 6 12:34:31 2006 From: jerry at ieee.org (Jerry Krinock) Date: Wed Dec 6 12:34:44 2006 Subject: [X-Unix] Backup and Restore of Symbolic Links Message-ID: Traffic has been slow lately. Here's something I figured out yesterday. Say you have a file A.txt and a symbolic link (symlink) ALink which links to it, at the root level of your boot drive. The data in Alink is the string "/A.txt". Many backup regimens are based on the unix "cp" command or engines which behave similarly. By default, cp does not "follow" symlinks. Say that you cp both A.txt and ALink to a mounted Firedrive named FW. Now doubleclick on the copy of Alink on FW. Because the data in Alink is the string "/A.txt", you will open /A.txt on your boot drive, NOT on FW. The same thing happens if you have a file on FW, create a symlink to it on FW, and then cp both of them over to your boot drive. When you doubleclick on the symlink copy on the boot drive, you'll open the target file on FW, because the text in the symlink file begins with "/Volumes/FW/...". Unmount FW, doubleclick the symlink again and you'll get "no such file", "file not found", or whatever. Thinking back, I believe I have been confounded by this behavior more than once in my life. However, say FW is bootable and you re-boot from FW. If you doubleclick on this symlink now, you'll get the target file on the FW drive, as expected, because the "/" in "/A.txt" is now, in fact, FW. The same thing will happen if you "restore" (cp) files copied from your boot drive to FW, back to your boot drive. From macmonster at myrealbox.com Thu Dec 7 23:05:28 2006 From: macmonster at myrealbox.com (Stroller) Date: Thu Dec 7 23:05:54 2006 Subject: [X-Unix] Backup and Restore of Symbolic Links In-Reply-To: References: Message-ID: <73AFE580-F3B6-4E59-B379-D7ED308E68FB@myrealbox.com> On 6 Dec 2006, at 20:34, Jerry Krinock wrote: > > ...Here's something I figured out yesterday. > > Say you have a file A.txt and a symbolic link (symlink) ALink which > links to > it, at the root level of your boot drive. The data in Alink is the > string > "/A.txt". "The data in" is, if you'll excuse me saying, a poor choice of words for the path described by the symlink. From a program or user's point of view the data in Alink is whatever you see when you `cat Alink` or double-click on the symlink. > ... Say that you > cp both A.txt and ALink to a mounted Firedrive named FW. Now > doubleclick on > the copy of Alink on FW. Because the data in Alink is the string "/ > A.txt", > you will open /A.txt on your boot drive, NOT on FW. This is why one can describe symlinks by relative path. Compare: $ ls -l bar* lrwxr-xr-x 1 stroller stroller 7 Dec 8 07:02 bar -> foo.txt lrwxr-xr-x 1 stroller stroller 9 Dec 8 07:03 bar2 -> ./foo.txt lrwxr-xr-x 1 stroller stroller 23 Dec 8 07:03 bar3 -> /Users/ stroller/foo.txt $ pwd /Users/stroller $ HTH, Stroller. From jerry at ieee.org Sat Dec 9 22:30:10 2006 From: jerry at ieee.org (Jerry Krinock) Date: Sat Dec 9 22:30:29 2006 Subject: [X-Unix] Backup and Restore of Symbolic Links In-Reply-To: <73AFE580-F3B6-4E59-B379-D7ED308E68FB@myrealbox.com> Message-ID: on 06/12/07 23:05, Stroller at macmonster@myrealbox.com wrote: > "The data in" is, if you'll excuse me saying, a poor choice of words > for the path described by the symlink. From a program or user's point > of view the data in Alink is whatever you see when you `cat Alink` or > double-click on the symlink. Yes, I should have said "the contents of the symlink's data fork; what you see when you look at the symlink's data fork with a hex file editor like HexEdit or Hex Fiend". > This is why one can describe symlinks by relative path. > > Compare: > > $ ls -l bar* > lrwxr-xr-x 1 stroller stroller 7 Dec 8 07:02 bar -> foo.txt > lrwxr-xr-x 1 stroller stroller 9 Dec 8 07:03 bar2 -> ./foo.txt > lrwxr-xr-x 1 stroller stroller 23 Dec 8 07:03 bar3 -> /Users/ > stroller/foo.txt > $ pwd > /Users/stroller > $ Thanks. I didn't realize you could put relative paths in there like that. From rick at rickgordon.com Thu Dec 21 20:51:54 2006 From: rick at rickgordon.com (Rick Gordon) Date: Thu Dec 21 20:52:13 2006 Subject: [X-Unix] Expanding a Mounted Sparse Image while Copying Message-ID: How do you copy to a sparse image so that the image will be expanded as required? I tried creating a small sparse image using Disk Utility, mounting it, and then running a shell script that successively makes directories on the mounted image, and then copying data to it. #! /bin/sh cd /Applications mkdir /Volumes/PSCS3_Installation/Applications sudo cp -R -pv ... /Volumes/PSCS3_Installation/Applications/ cd /Applications/Utilities mkdir /Volumes/PSCS3_Installation/Applications/Utilities sudo cp -R -pv ... /Volumes/PSCS3_Installation/Applications/Utilities/ ... etc. ... But I soon get a "No space left on device" error. What should I be doing to avoid this? -- ___________________________________________________ RICK GORDON EMERALD VALLEY GRAPHICS AND CONSULTING ___________________________________________________ WWW: http://www.shelterpub.com From kirklists at wanadoo.fr Fri Dec 22 00:43:30 2006 From: kirklists at wanadoo.fr (Kirk McElhearn) Date: Fri Dec 22 00:43:46 2006 Subject: [X-Unix] Expanding a Mounted Sparse Image while Copying In-Reply-To: References: Message-ID: <5EE93115-E546-4606-8CAF-B9B4836E331D@wanadoo.fr> On Dec 22, 2006, at 5:51 AM, Rick Gordon wrote: > How do you copy to a sparse image so that the image will be > expanded as required? > > I tried creating a small sparse image using Disk Utility, mounting > it, and then running a shell script that successively makes > directories on the mounted image, and then copying data to it. > > #! /bin/sh > cd /Applications > mkdir /Volumes/PSCS3_Installation/Applications > sudo cp -R -pv ... /Volumes/PSCS3_Installation/ > Applications/ > cd /Applications/Utilities > mkdir /Volumes/PSCS3_Installation/Applications/Utilities > sudo cp -R -pv ... /Volumes/PSCS3_Installation/ > Applications/Utilities/ > ... etc. ... > > But I soon get a "No space left on device" error. What should I be > doing to avoid this? I've never tried copying to a sparseimage from Terminal, but from the Finder it expands as needed. Perhaps it won't expand from Terminal... Kirk Co-author of: Mastering Mac OS X - Tiger Edition http://www.mcelhearn.com/tiger.html - - - - - - Read my blog: Kirkville -- http://www.mcelhearn.com Musings, Opinion and Miscellanea, on Macs, iPods and more From vze2rwkt at verizon.net Fri Dec 22 07:00:41 2006 From: vze2rwkt at verizon.net (Karl) Date: Fri Dec 22 07:04:19 2006 Subject: [X-Unix] ACT for Mac's or other software In-Reply-To: <5EE93115-E546-4606-8CAF-B9B4836E331D@wanadoo.fr> References: <5EE93115-E546-4606-8CAF-B9B4836E331D@wanadoo.fr> Message-ID: <458BF319.4010405@verizon.net> Hello folks, Sorry if posting this here is wrong, but it's the only place I've found so far. Does anyone use ACT or a similar program, and if so, what program, and your thoughts on it. Skip From macmonster at myrealbox.com Sun Dec 24 15:20:52 2006 From: macmonster at myrealbox.com (Stroller) Date: Sun Dec 24 15:21:29 2006 Subject: [X-Unix] ACT for Mac's or other software In-Reply-To: <458BF319.4010405@verizon.net> References: <5EE93115-E546-4606-8CAF-B9B4836E331D@wanadoo.fr> <458BF319.4010405@verizon.net> Message-ID: <347B34D4-428E-41F8-9782-44E479259389@myrealbox.com> On 22 Dec 2006, at 15:00, Karl wrote: > Hello folks, Sorry if posting this here is wrong, but it's the only > place I've found so far. > > Does anyone use ACT or a similar program, and if so, what program, > and your thoughts on it. This list is for discussing Unix & the command-line on Mac OS X; if you're a Windows user then think "the people reading this list are only interested in using the DOS window" (although the Unix environment is far more powerful). You would be better posting this sort of question to the "OS X For Users" list, x4u@listserver.themacintoshguy.com but beware that many subscribers there will not be familiar with ACT if it is a Windows- only program, so I might advise you to ask something like "can anyone recommend a program for undertaking $GENERIC_TASK; is there a Macintosh version of ACT?" Stroller.