Solution: Start cygwin installation with “–no-admin”
Solution: Start cygwin installation with “–no-admin”
I wanted to add a “Bash Here” context entry when I right click on a directory:
This Bash Here would open that directory in Cygwin (mintty).
My current PC is fairly regulated, so without admin rights and thus I can’t use the CHere option which I would normally use.
I just created the registry keys via regedit and that works fine.
You can use two options:
Create a file called cygwin_bash_here.reg with the following contents:
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\Directory] [HKEY_CURRENT_USER\Software\Classes\Directory\shell] [HKEY_CURRENT_USER\Software\Classes\Directory\shell\bashhere] @="Bash Here" [HKEY_CURRENT_USER\Software\Classes\Directory\shell\bashhere\command] @="C:\\cygwin\\bin\\mintty.exe"
Save the file and double click on it to import it to the registry.
Both options will create a context menu item which opens Cygwin at your current windows directory!
This message occurs every time you start your freshly installed Cygwin when you’re logged in as a domain user.
Your group is currently "mkpasswd". This indicates that your gid is not in /etc/group and your uid is not in /etc/passwd. The /etc/passwd (and possibly /etc/group) files should be rebuilt. See the man pages for mkpasswd and mkgroup then, for example, run mkpasswd -l [-d] >> /etc/passwd mkgroup -l [-d] >> /etc/group Note that the -d switch is necessary for domain users.
Important: You need to install Cygwin with the user you are logged in with.
Tip: Remove the word “setup” from the cygwin executable to be able to install it without administrator privileges. (e.g. setup-x64.exe should be renamed to cygwin-x64.exe)
We just need our current user ( mkpasswd -c ) to be sent to the /etc/passwd and /etc/group files, to do this, we use this command:
mkpasswd -c >> /etc/passwd mkgroup -c >> /etc/group
After that, our current account is added to both /etc/passwd and /etc/group and the annoying greeting message is gone!
I wanted to run UltraVNC on my laptop to share the screen towards my desktop computer. I have no administrator rights on this pc but I can run the standalone UltraVNC server fine.
To run it without admin rights, download the zip file from the latest version from here, choose the “bin zip” downloads for your OS at the bottom of the page.
When you run winvnc.exe, the following message presented itself in a pop-up:
No password has been set & this machine has been preconfigured to prevent users from setting their own. You must contact a System Administrator to configure WinVNC properly.
This means you need to set the password first, but you need to run WinVNC to be able to set the password (kind of a Catch 22 there)
Add the contents below in a new file called ultravnc.ini in the same folder as winvnc.exe and your password is set to “nopassword” (without the quotes). You can now startup WinVNC by doubleclicking winvnc.exe.
[Permissions] [admin] FileTransferEnabled=1 FTUserImpersonation=1 BlankMonitorEnabled=1 BlankInputsOnly=0 CaptureAlphaBlending=0 BlackAlphaBlending=0 DefaultScale=1 UseDSMPlugin=0 DSMPlugin= DSMPluginConfig= primary=1 secondary=0 SocketConnect=1 HTTPConnect=1 XDMCPConnect=0 AutoPortSelect=0 InputsEnabled=1 LocalInputsDisabled=0 IdleTimeout=0 EnableJapInput=0 QuerySetting=2 QueryTimeout=10 QueryAccept=0 LockSetting=0 RemoveWallpaper=1 RemoveEffects=0 RemoveFontSmoothing=0 RemoveAero=1 DebugMode=0 Avilog=0 path=C:\development\programs\UltraVNC DebugLevel=0 AllowLoopback=0 LoopbackOnly=0 AllowShutdown=1 AllowProperties=1 AllowEditClients=1 FileTransferTimeout=30 KeepAliveInterval=5 SocketKeepAliveTimeout=10000 DisableTrayIcon=0 MSLogonRequired=0 NewMSLogon=0 ConnectPriority=0 PortNumber=5900 HTTPPortNumber=5800 [ultravnc] ; both passwords are "nopassword" passwd=33117E54AA0D4D3B55 passwd2=33117E54AA0D4D3B55
Important: Do change your password in the settings when you can run WinVNC!
With this blog post, it’s possible to format any xml you’ve selected.
It will take about 5 minutes to get this working, a couple of manual steps are necessary.
These are the tools being used:
[Clean Indent XML] input-xml: yes bare:no clean:no fix-bad-comments:no fix-backslash:no indent:yes indent-attributes:no indent-spaces:4 char-encoding:raw replace-color:no wrap:0 wrap-asp:no wrap-jste:no wrap-php:no write-back:yes
#x:: sleep 50 Send ^c ClipWait clipboard = %clipboard% FileDelete, C:\autohotkey\format_with_tidy.xml FileAppend, %clipboard%, C:\autohotkey\format_with_tidy.xml sleep 50 RunWait, %comspec% /c C:\autohotkey\tidy.exe -config C:\autohotkey\tidycfg.ini C:\autohotkey\format_with_tidy.xml clipboard = FileRead, clipboard, C:\autohotkey\format_with_tidy.xml Return
These are the steps what is happening in the autohotkey file:
So this is a nuisance for quite a while, when you open the Downloads folder on Windows 7 it takes a long time before the contents is displayed. It keeps taking longer and longer when there are more and more items there.
Apparently this is because the folder is optimized for Pictures. You can change this setting by right clicking the Downloads folder and choose properties. Then select the tab “Custimize” and look at the setting “Optimize this folder for:”
The folder contents is instantanious when you change that to “General Items”.