04.08.2020»»вторник

Terminal Services For Mac Os X

04.08.2020
Terminal Services For Mac Os X Average ratng: 5,8/10 3999 votes
  • Terminal provides a command line interface to control the UNIX-based operating system that lurks below macOS (or Mac OS X). Here's everything you need to know about Terminal, and what it can do.
  • Gathering information through the GUI option “About this Mac” can be annoying and not reveal all the information you wanted. Fortunately, there is an existing command line that can provide what you are looking for. Terminal can be launched through: Go Utilities Terminal.
  • To print the routing table on a Mac OS X computer, you must open a Terminal window. Terminal can be found by opening the Finder, selection Applications and Utilities. To open a terminal session, double-click on 'Terminal.app'. Inside the Terminal application, the route print command is 'netstat -nr'.
  • Mar 08, 2015  It is possible to connet from Mac OS X to RD Web access on Windows Server 2012 R2? Thank you for answer. Hi Jakub, As per my research this is a normal screen which we can see. Dharmesh Solanki Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact.

Gathering information through the GUI option “About this Mac” can be annoying and not reveal all the information you wanted. Fortunately, there is an existing command line that can provide what you are looking for. Terminal can be launched through: Go Utilities Terminal.


How to rebuild the LaunchServices database 38 comments Create New Account
Terminal
Click here to return to the 'How to rebuild the LaunchServices database' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.

I can't see it, but a '?' pops into the command when I paste it into Terminal. If anyone else has the same problem, you could try pasting into a text editor, deleting the backslashes and excess spaces, and then copying and pasting the result into Terminal. It worked for me!
Apart from that, I'm really grateful for this hint - I'm the kind who gets really irritated by three copies of GraphicConverter in the Open With list!
Many thanks - Nick

When I type 'lsregister' in Terminal (bash or tcsh shell), I get 'command not found' in 10.3.2. Anyone else?

Would that not be because the directory where it is to be found is not in your search path? That must be why the hint includes the complete path to it.
Nick

When I used the lsregister command as given in the hint, with the full path, it did not work. I had to do 'locate lsregister' to find the complete path for my system, which included two 'Versions/A' folders in the folder tree.
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister
Whatever the path is for your system, 'locate' should find it for you.
---
Microsoft MVP for Entourage
AppleScripts for OE and Entourage

Mainstage 3 apple. MainStage 3 lets you take your Mac to the stage with a full-screen interface optimized for live performance, flexible hardware control, and a massive collection of plug-ins and sounds that are fully compatible with Logic Pro X.

If you use this hint and have applications located someplace other than /Applications you need to append the path to the end of the command. The first time I ran it without any paths and my LaunchServices database included only applications on the boot volume.
---
Mike Newman
Saipan and Narita Layover Pages:
http://net.saipan.com/personal/mike_newman/

I had a strange problem in Tiger that when I clicked on a folder in the dock or dragthing it would launch iPhoto or Entourage. Running this command fixed everything.
---
-Mr. Unknown-

I tried a couple of hints here. This is the one that finally worked for me. I added -f, and I also appended the path to my personal applications folder (within the applications folder) at the end:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -f -domain local -domain system -domain user '/Applications/MyApps'

I tried this hint and it worked by removing duplicate items in my Open With contextual menu. But now, it seems the icons on certain file types are wrong even though double clicking on them opens them up in the correct application.
Has anyone seen this too and/or know how to fix it? ;-)

My mp3 files had strange icons.
A reboot fixed me right up.

When I have strange icons, at times, quiting Finder usually takes care of that..

I'm still running 10.2.8, plan to install Panther this next week. Neither the path nor the command (-kill) worked for me as is. I found the app at ..LaunchServices.framework/Versions/A/Support/lsregister. Upon invoking the hint's command line using my path, I got the 'usage' spiel: different from that listed by the hint's author, mine does not include -kill, -lint, -f or -dump.
When I tried the command with my path and leaving out the -kill switch, it seemed to work. As I've not been having any trouble with 'Open with' and allies, I saw no result. A little anti-climactic, but filed away for future reference. Thanks very much!
btw, who (or what) is CF that we should ask about the domains' applications locations?
Ganymede

CF must refer to CoreFoundation.

Thank you for this tip! Ever since I upgraded to Panther I get a lot of double entries in the Open with.. context menu, seems to be gone now.

Rdp For Mac Os X

I tried this hint and it appears to have cleaned up my 'Open with' context menu. But a strange thing happened afterward that may or may not have been related. I have an external FireWire drive mounted. As some of you know, this shows up on your desktop even when your Finder preferences are set to not display dirves in 10.3. You can remove it from the desktop by also not displaying CDs, DVDs and iPods, which I chose not to do- I lived with it on my desktop even though I don't want it there.
But immediately after using this hint, my drive disappeared from my desktop. It's still visible in the left-hand portion of my Finder windows and I can access it from there (which I much prefer). But no matter what Finder preferences I set, it never shows up on my desktop. I've rebooted twice and it still won't show up.
Not a bad thing in my case, but a little alarming nontheless. Has anyone else experienced this behavior after using this hint?

If you tried this with the most recent security update installed
http://docs.info.apple.com/article.html?artnum=61798
You'll be asked many times when you try to open some documents the first time. Type 'lsregister -dump less' will show you that all entries for third-party applications now have the form like this:
B00001546 APPL/CHIM Tue Jun 8 15:16:55 2004 Camino.app
-pad----hn---sr-----! v0.8.0 Camino
Contents/Resources/appicon.icns org.mozilla.navigator
Contents/MacOS/Camino 6263372, 6263906, Mach-O
V00000008 /Applications/Internet/Camino.app
Note the ending '!' - that means it's never been run before.
I wonder if there's a way to reset all of these '!' using some tool.

I'm running 10.3.5, which includes those security updates, and this hint worked great for me.
I used the System Migration tool on a new Powerbook to pull the account information from an old one, and the only (knock wood) problem was that the Open With.. menu was bloated with double entries for everything. This hint solved the problem quickly and easily.

In case anyone runs into the error message application [application name] cannot be launched because it may be damagaed or incomplete, rebuilding the LaunchServices database using the command from this hint may fix it.

I had no luck until I added the -f (force-update registration info even if mod date is unchanged) switch to the command line like so..
System/Library/Frameworks/ApplicationServices.framework/
Frameworks/LaunchServices.framework/Support/lsregister
-kill -r -f -domain local -domain system -domain user
Fixed me right up!

I have tried every iteration of the command listed here, but I still have 4 instances of Adobe Acrobat 6.0.3 listed in my 'Open With' menu.
When I add -v to the command, it shows me a long list of errors:
'error 10811 registering <filename> '
Any ideas why?
Ethan

Hope I can keep this thread going a bit longer.. I tried the command given (adding the -f): I got a 'no such file or directory' result. Following the path, I found that the Support folder was an alias. Using the pathname to the original worked like a charm: Have wanted to fix this for who knows how long. Thanks a lot! Just a tidbit: if you still have multiple copies of Opera in this menu, as I did, check your Studio MX 2004 Flash and Contribute directories if you have them.

Alright! That one did the trick!

This worked for me:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -f -domain local -domain system -domain user '/Applications'
Just wish there was a way to manually edit the applications in the list as there are many listed that I never use!

I can confirm this worked for me on 10.4.9.

I had applications that were opening Script Editor instead of the desired application. (i.e. double-clicking InDesign 2.0.1 would open Script Editor instead of InDesign)
Applying the command in this hint seems to have resolved that issue.
Thanks!

I can confirm this works with 10.4.6, but by using 'locate lsregister' first.
Thanks!

I see from the comments that many here are not familiar with Unix. Here's the way to run any command that is in your currrent directory.
[your_prompt]: ./CommandName
The trick is that many shells (tcsh, bash, etc) don't include the current working directory in their .cdpath list. '.' is shorthand for 'where I am right now,' so './command' will always work
Carl

I'm confused by your comment. AFAICT, it implies that you don't need the path to lsregister. However, when I run this, it doesn't do what I inferred.
localhost:~ baltwo$ ./lsregister
-bash: ./lsregister: No such file or directory
Please clarify.

This is still a very useful hint - I just used it today. Thanks!
Wish Apple had a GUI or a cron that took care of this for us though..

and here's how to use this hint in Leopard, which has moved the location of the file.
Open a Terminal window and type in
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
This worked for me, but YMMV, so use at your own risk.

worked for me too on 10.5.1
---
~/.sig: not found

Mac Os X Terminal Commands

In Mac OS X 10.5.1 it seems the command line option have changed to: So I used: Seemed to work fine.

I couldn't get this command to run successfully from the command line even using sudo.
Happily enough TinkerTool System from Marcel Bresink includes a rebuild Launch Services feature User - > Launch Services which took care of the problem in 20 seconds. Finally I can right click jpegs again!
Thanks for the tip anyway.
---
WordPress SEO Secrets - foliovision.com/weblog

Here's an AppleScript that can be saved as a script and launched from the Script menu, or saved as an application and launched from anywhere.
(*
rebuildLaunchServicesDB.scpt
Locates the lsregister command regardless of OS version, then tells it to rebuild the Launch Services Database for all applications in the canonical Applications folder
Paul Henegan
[email protected]
20.Aug.2008
*)
set theCommand to (do shell script 'locate lsregister')
set theArguments to ' -kill -r -f -domain local -domain system -domain user'
set thePath to ' /Applications'--edit this as needed
set theScript to theCommand & theArguments & thePath
do shell script theScript

appears to havecleaned up my 'Open with' context menu. But a strangething happened afterward that may or may not have been related. I have an external FireWire drive mounted. As some of you know, this shows up on your desktop even when your Finder preferences are set to not display dirves in 10.3. You can remove it from the desktop by also not displaying CDs, DVDs and iPods, which I chose not to do- I lived with it on my desktop
Rdp
How to rebuild the LaunchServices database - the GUI-phile / shell-phobic way
This is a great tip and many, myself included, are perfectly comfortable mucking about in the shell.
But for those of you that get nervous at the mention of Terminal.app, there is a graphical alternative for this hint.
The popular utility Cocktail can rebuild the Launch Services database with a simple GUI click.
Happy DB rebuilding.
How to rebuild the LaunchServices database - the GUI-phile / shell-phobic way

just in fairness, there are a number of 'service utility' apps that do this - Yasu and Onyx are two the spring to mind. or you can do what I did - write the code into an applescript and save it in the script menu. that way you only have to deal with the terminal command once.

Use Onxy rebuild launchservices to fix the problem

10.6.4 here and I used Onxy maintenance > rebuild > launchservices. Fixed the problem. Onxy is a free program.

On 10.8 Mountain Lion: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user