How to Open Terminal Window Automatically on Mac OS X [closed] - macos

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
On my Mac, there is no window open when I start Terminal app. I just played with a friend's Mac, a window is automatically opened on startup of terminal. He doesn't know how it's done. I just played with preferences and couldn't find anything for that. Does anyone know how to do that?

I'm just grasping at straws here: is it possible that your Terminal program is always running in the background, and you are not actually completely exiting? You can perform this test: Run Terminal in whatever manner you usually do, and then press Command-Q to quit the application completely. Now run Terminal again. Did it open a new window?
The Mac has a slightly different paradigm on open/closed applications, namely that closing the last window doesn't actually quit the application. Combine this with the fact that Mac users rarely ever actually reboot their computers, and it's easy for relatively novice Mac users to have many applications that are simply running in the background that are never closed completely.
Just a shot in the dark. If you are for sure exiting the app completely than I can't think of a solution for the problem either.

Create a Windows Group
Go to Preferences -> Start, and select the windows group to open on start up

From the Terminal App, choose Preferences: select Startup and verify that the "On startup, open new window with settings:" radio button is selected and select Basic from the pull-down menu. That's all I have and it starts up with an open window for me.

If you've tried all the above suggestions, see if anything weird is appearing in your console. Open up /Applications/Utilities/Console.app and watch the "All Messages" log while you open Terminal.

You could try one of the other terminal apps that are out there for Mac. I prefer iTerm, it's free and works very well. It also gives you nice features like tabs, color schemes and fullscreen terminals.

You can also try this out, it is a Ruby gem that lets you automate opening mutliple tabs that run preset scripts or commands: https://github.com/Achillefs/elscripto

Related

How to make an exe in cmd from a .py not close the window when it ends? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 27 days ago.
Improve this question
I'm traying to make an app, its too many lines to output here a simple version. I don't know if there is something wrong with the dll's or the .py, with auto-py-to-exe I made it an executable,& it gave some errors (torch libreries not found), but when running the program (exe), it doesn't seem to have any problem (it runds as the py program in the terminal).
So, does the terminal closes by its own when the script is finished? if so; how can I make the program not close till I press a key or force the close?
If the terminal doesn't close by it's own, could those dll be the problem?
Please let me know if the terminal closes by its own (the script is very slow and it takes 45 min for me to see if it works or not).
Thanks.
I've uninstalled and installed torch and torchvision modules (but there's always an errors with some libreries)
The solution I'm going to use is:
import os
......
os.system("pause")
Python has a builtin function input that allows you to customize the prompt that the user will get:
input("Press enter to exit.")
This will show the prompt Press enter to exit.

Problem with explorer.exe and dwm.exe in Windows 7 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm using Window 7 Ultimate. I get a problem with two processes, namely explorer.exe and sometimes dwm.exe.
The two processes tend to use cpu between 20-30%.
And it only occurs when i play some game on my PC. My PC works perfect until I play some game.
And another important observation:
They consume no cpu as such but only consumes when I try to refresh my desktop. I mean when I right-click on desktop. It takes seconds for refresh.
I have no virus problems.
I had already tried following things:
Kill explorer.exe and relaunch from task manager. (Problem still persists)
Kill dwm.exe, well it relaunches again. (Problem still persists)
Log Off and Log On. (Problem still persists)
Restart. Problem Solved. (But need an alternative).
Can anyone kindly suggest some quick fixes to the problem?
Those who get the same problem may refer to this question at super user asked by me.
https://superuser.com/questions/254343/window-7-problem-explorer-exe-dwm-exe
My problem solved with ShellExView.
Yeah, this is to be expected. Both of those are critical components of the Windows operating system.
Explorer.exe is responsible for the desktop, the file manager, the taskbar, and most visible components of the Windows shell. Generally, when you're not interacting with a particular application program, you're interacting directly with Windows Explorer. And it's still there in the background when applications are running, managing those applications and the underlying system.
DWM stands for "Desktop Window Manager", which should help to give away what it does. It's a graphical subsystem that was introduced in Windows Vista, and it's responsible for the fancy 3D effects that you get on your desktop now. It drives the "Aero" user interface, so things like glass transparency, Aero Peek, Aero Shake, and a host of other eye candy features are implemented by this process.
Understanding what both of those processes are and what they do should help to explain the phenomenon you cite in your question:
They consume no cpu as such but only consumes when i try to refresh my desktop. I mean when i right click on desktop.
When you refresh your desktop, you're invoking functionality provided by both of those processes. Explorer is responsible for drawing the desktop itself (programmatically, it's implemented as an iconic ListView control managed by Explorer), and DWM is responsible for the graphics subsystem that gets the desktop, in all its beautifully composited glory, onto the screen in the first place.
Using between 20-30% of your CPU is hardly an outrageous draw. That leaves plenty left over for your foreground applications. It's also difficult to monitor exactly what percentage of the CPU those processes are using without altering the results.
But, from the symptoms that you've described, you can be sure that you don't have a virus or anything else wrong with your computer. That's just Windows running, doing its thing. If your computer is struggling to keep up with the game that you're playing, you may need to consider upgrading some of your computer's components (namely your RAM, processor, and/or graphics card).
If you're recently upgraded your computer to Windows 7 from an earlier version (like Windows XP), and have noticed your performance slow down as a result, your graphics card may be struggling under the 800-pound gorilla that is DWM. All of the Aero effects are expensive to run—not a problem for today's overpowered and overpriced video cards that generally sit around doing nothing, but a significant performance hit for older systems that used to run just fine with older versions of the OS. You might try reverting to the Windows Classic theme, which will disable most of the Aero-themed goodness, but will also put some of the "pep" back into your computer's step. Do that by right-clicking on your desktop, selecting "Personalize", and changing your theme to Windows Classic.
Both explorer and dwm are "necessary" files that Windows runs. Explorer.exe is basically all the user interface you see on Windows: the desktop, the taskbar, explorer, etc. Similarly, dwm.exe is the Desktop Window Manager: it governs all the effects that were added with Vista and 7, like the taskbar thumbnails that appear when you hover over a taskbar item, transparency, etc. So it makes sense that you see action on them when trying to refresh the desktop.
I've never actually looked to see how much processing power they use at any given time, so I can't say whether that's excessive or not, but there's really nothing wrong with either one; they probably ought to be running, and unless they're causing undue CPU use, you probably don't need to worry about them. And if you do need to worry about them, then it might be a consequence of your computer not being powerful enough to run Windows 7.
All that said, this isn't really a question for this site. I'm still pretty new here myself, but I think this should be moved to Superuser?

How to fix broken paste clipboard in VNC on Windows [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
When using RealVNC on Windows, I can sometimes cut and paste from VNC into Window's apps, and sometimes it just stops working. How can I get it reset so it works again? I've tried restarting VNC, but that doesn't do it.
http://rreddy.blogspot.com/2009/07/vncviewer-clipboard-operations-like.html
Many times you must have observed that clipboard operations like copy/cut and paste suddenly stops workings with the vncviewer. The main reason for this there is a program called as vncconfig responsible for these clipboard transfers. Some times the program may get closed because of some bug in vnc or some other reasons like you closed that window.
To get those clipboard operations back you need to run the program "vncconfig &".
After this your clipboard actions should work fine with out any problems.
Run "vncconfig &" on the client.
You likely need to re-start VNC on both ends. i.e. when you say "restarted VNC", you probably just mean the client. But what about the other end? You likely need to re-start that end too.
The root cause is likely a conflict. Many apps spy on the clipboard when they shouldn't. And many apps are not forgiving when they go to open the clipboard and can't. Robust ones will retry, others will simply not anticipate a failure and then they get fouled up and need to be restarted. Could be VNC, or it could be another app that's "listening" to the clipboard viewer chain, where it is obligated to pass along notifications to the other apps in the chain. If the notifications aren't sent, then VNC may not even know that there has been a clipboard update.
I use Remote login with vnc-ltsp-config with GNOME Desktop Environment on CentOS 5.9. From experimenting today, I managed to get cut and paste working for the session and the login prompt (because I'm lazy and would rather copy and paste difficult passwords).
I created a file vncconfig.desktop in the /etc/xdg/autostart directory which enabled cut and paste during the session after login. The vncconfig process is run as the logged in user.
[Desktop Entry]
Name=No name
Encoding=UTF-8
Version=1.0
Exec=vncconfig -nowin
X-GNOME-Autostart-enabled=true
Added vncconfig -nowin & to the bottom of the file /etc/gdm/Init/Desktop which enabled cut and paste in the session during login but terminates after login. The vncconfig process is run as root.
Adding vncconfig -nowin & to the bottom of the file /etc/gdm/PostLogin/Desktop also enabled cut and paste during the session after login. The vncconfig process is run as root however.

Using command as ctrl in a Mac OS X terminal [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'd like to have my command key work as a ctrl key in the Mac OS X terminal. That is, I want "command-c" to do the same thing as "ctrl-c". Does anyone know of a way to do this?
Specifically, I would really like this to work in emacs. Emacs uses a LOT of ctrl key bindings and reaching for the control key is beginning to strain my wrists. You may say that the command key is actually harder to reach, but I've swapped the command key and the caps-lock key on my MacBook Pro to make that easier.
Any help is appreciated!
I don't think that you can have the same key act as both command and ctrl, and I don't think that there's a way to override the keys for a specific program, at least not without a third-party program. Personally, I recommend having the command key once again be the one with the apple/command label, and using caps lock as your ctrl key as Emacs commands are more complicated (and require pressing multiple keys with ctrl held down).
By the way, if pressing the command key is difficult, you're probably trying to do so with your pinky and not your thumb.
As a side note, if you are using Emacs in the terminal, you may be interested in using option as meta. If you want to use your command key as meta, you can check out Carbon Emacs. It doesn't run in the terminal, but it might fill your needs.
You could (in Leopard) map the Caps Lock key to act as control for all apps.
System Preferences->Keyboard and Mouse->keyboard Modifier Keys button at bottom
Perhaps you could hack http://doublecommand.sourceforge.net/ for this purpose.
I don't think this is possible because the command key is already mapped to a bunch of system-level shortcuts. For example Cmd-C is copy, Cmd-X is paste. I don't think an application can override those system commands.

Overcoming "It is being used by another person or program." [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is there a way to unlock Windows files without downloading a utility?
I have a few files on my Windows XP C: drive that are very old and very useless. When I try to delete these files I get the following message:
Cannot delete FILENAME.zip: It is being used by another person or program
Close any programs that might be using the file and try again.
No one is accessing this file. No program is using it currently. Windows has screwed up the file locking mechanism.
Is there a way to delete this file without downloading someone's unlocking utility? I find the sites offering these programs to be a tad sketchy.
How could you force the file to unlock from within a program? I'm competent in Java, Perl, and Ruby, but I haven't seen anything among their libraries that would aid me here.
I've successfully used Process Explorer to find out which process has the file open. It saves a reboot that may not fix the problem anyway.
In process explorer: Find > Handle or DLL... then search for the name of the folder/file, then double click one of the search results. It'll select a handle in the main window, which you can right click and close.
Try downloading "Unlocker". Google it and take my words that it doesn't have any worm/spyware/virus. It is pretty cool utility and works great. Give it a try.
Did you try the commandline command OpenFiles
It is built in (XP and above I believe) and has several arguments that can be passed in.
Use msconfig and start up with everything turned off.
Then try to move / delete the file.
Or you can always boot up in safe mode and delete it.
You do that by hitting f8 when the machine boots up.
If you reboot and the files are still locked, then there is some process on your machine that is still using them. First you should figure out what that process is and determine if the files really aren't used any more or not.
Rebooting to Safe Mode is often a very easy way to do it. When you boot in safe mode, it won't load all the stuff set to run on startup. Press F8 while it's booting to access the boot menu, and choose "safe mode".
I had a .jpg pfile that hasd that issue and I couldn't delete. That brought me to this thread. When nothing else worked I renamed the file and left off the .jpg. THEN I could delete it easily. Not sure why, but worked for me
You don't need any utility.
Just use Win32 api to unlock them (simply close the handle)

Resources