I use Emacs at work and at home, both on Windows XP, both EmacsW32. On my work computer, if I setup FTP login details for a site, for example:
machine ftp.stackoverflow.com login codinghorror password orange
then if I want to ftp there from Emacs, I just type
/ftp.s<tab>
and it knows from my .netrc that it can autocomplete to
/ftp.stackoverflow.com:
which is exactly what I want. On my home computer, the autocomplete just doesn't work, although it does once I'm on the server, so if I type:
/ftp.stackoverflow.com:public_h<tab>
it will autocomplete the html. Does anyone have any ideas as to why this might be?
Related
i was told to work on a Windows System....
Now i would like to use a mature texteditor like emacs. I downloaded and installed XEmacs (21.4.22). XEmacs ist starting, but behaves strange. It ha no org-mode, i canĀ“t go threw the proxy to the internet, for updating or installing packaes. Therefore, i tried to configure a proxy in this Windows-Directory. XEmacs is not able to save the init-el File in the HOME-Path/.xemacs, although the file is there (XEmacs claims "no such File or Directory"). The User (me) also has permissions to save a file, i can do it with "notepad" for instance.
But i cant figure out, wat is going on, Xemacs is obviously not able to save a file in the .xemacs directory.
I'm very new to GitHub and I'm trying to figure out how I can upload to GitHub through Putty. I am using Windows 8 and am using a Linux environment through Putty. I was following this guide: https://help.github.com/articles/generating-ssh-keys#platform-windows and it worked until (step 3) where it wanted me to copy the contents of the file to clipboard. I am assuming this is not possible because my Linux environment does not have clipboard.
The issue is mostly due to the fact that my code is on the linux envirnonment and I am not sure how I can upload it to GitHub. Does anyone have any advice as to how I can do this?
Cat the file out, and copy the contents from the putty session (just highlighting the text in putty will copy it to your clipboard):
cat ~/.ssh/id_rsa.pub
Make sure to remove any new lines inserted caused by putty wrapping the text.
You will have an easier time using MinGW on Windows, or even the Github for Windows client (the latter works "out of the box")
If using MinGW, I would recommend opening C:\Users\YourUserName\.ssh\id_rsa.pub in a text editor, such as sublime text, and copying the text, instead of using cat, because that will ensure that you do not get extra whitespace inserted by the shell (Windows command prompt is pretty bad with that sort of thing).
If using the Github for Windows client, you don't need to do any of this (it happens behind the scenes for you), and instead you simply need to login to your Github account in the client.
My school (UCSB) has us use PuTTY to remotely access our CS account that's ran on the school's server. Whenever I attempt to use the school's emacs via PuTTY, it's extremely tedious because it's all in text user interface. I do have an option to use Xming to access the GUI Emacs, but that's incredibly slow since it still relies on the server's emacs. So now I'm fed up of relying on using WinSCP as a text-editor (I know it isn't suppose to be a text-editor) on my laptop, and want to use emacs without the terrible interface or speed. I finally went to the GNU website to download a local copy of emacs on my laptop. However I can't do anything with it unless I constantly transfer my files from the school's server to my laptop for editing, and vice-versa for compiling, which can be very tedious.
So, is there a way I can use PuTTY to access the files on my school's account and then have them opened using my local emacs? Or is there any other ideas or tools to help me with my situation?
TRAMP would be the way to go. In order for TRAMP to use PuTTY by default do this
(setq tramp-default-method "plinkx")
After that you can access the files or use dired on your remote host by using paths like
/name_of_Putty_session:/path/on/remote/host
Could be a flaming thread but hope you dont mind a question from a curious Joe here.
I have Desktop computer running downstairs running with winxp pro,cygwin,sshd,xwin.
Whilst that, I am working upstair with my laptop and my wife will be using the desktop downstair(watching movie,etc,etc). My laptop upstairs is already loaded with Mobaxterm (which actually translate to cygwin as well).
I have already configure my desktop properly with user and ssh and xwin. When I use my laptop to ssh into desktop downstairs, starting the xclock, all works fine. I can see the xclock on my laptop.
Here is my question:
Is it possible now to run firefox(C:\Program Files\Mozilla\Firefox.exe) on my desktop via ssh and getting the display to laptop, so I could control the desktop downloading from upstairs.
After I ssh to my desktop downstair and when I try
cd \cygdrive\c\Program/ Files\Mozilla
./Firefox
Nothing came through display on my laptop.
Any advice. I know vnc could work but meaning to say it would interupt my wife work periodically where she is using on the desktop downstair. And, I have already intended to buy another nettop to do this.
Is there any solutions to this for the time being?
Thanks.
This won't work the way you are describing it. You are using SSH + Xwindows to remotely display unix programs like xclock, not native Windows apps like firefox. You need to see if you can get Firefox compiled for cygwin on X. I have no idea if it is even possible, you may want to search with keywords "firefox xwindows cygwin".
You may be able to do something with Remote Desktop, I'm not sure if it would interrupt your wife's work though. There's a write-up with using it over ssh here.
This is really confusing me, because however much I search I don't seem to be able to come across this problem on Google.
I'm trying to edit files on a web server using Emacs Ange-FTP on Ubuntu. I type in /user#ftp.host.com:/, Emacs then prompts for a password, which I give, and then it says:
Listing /user#ftp.host.com:/...
forever.
What I don't get is that a) the same thing works in Emacs on Windows, b) FTPing to other web servers with the same technique (and with the same web host) works fine, and c) FTPing to this server using gFTP in Ubuntu works fine.
I can't see why this isn't working and it's driving me up the wall! Does anyone have any suggestions?
Well, stsquad worked it out, it was passive mode not being used for certain servers. Using M-x customize-option RET ange-ftp-try-passive-mode and changing to t (found at EmacsWiki) made it work though.
You could set debug-on-quit and type C-g when Emacs gets stuck to see what's happening at elisp level, and then see if there are any settings you can toggle for your particular situation. But if you can access the host with ssh, you could just skip the debugging and start using Tramp.