General :: Edit Remote Files On Emacs From Windows?
Jul 31, 2011
What's the fastest and most reliable way of working on files on a remote linux machine with emacs on a windows host machine? I need to be able to easily copy and paste text between emacs frames and use all the keyboard shortcuts, so putty and cygwin are out of the question. I've tried tramp mode but it just hangs when I try to connect.
I can ssh to the server but it wont allow me edit files, even though I have basic text editors like gedit and notepad installed on my windows computer. Anyone have an idea what the problem is? (I get an error message like this-(gedit:23978): Gtk-WARNING **: cannot open display
I have a remote server running Ubuntu, but the only computer that I have physical access to runs windows xp. Is there any way to edit the files remotely? Right now, I'm using ssh and then nano to edit the files, but I'd rather use a windows text editor (notepad++). I know I can use pscp to copy files, but every time I make a change to the file, I have to uploaded again to see the results (very tedious).
PS- the win xp computers im using are at my college. You CAN install software on them, but there's a firewall to the outside internet blocking SOME ports... SSH, port 80, port 8080 work fine right now. I can get admin access to the windows computer, and I have root control over the ubuntu one. Also, I can only use whatever computer is open... so I'd prefer to use a program that can be installed on a USB stick.
my macbook(2008-2009) isnt booting ubuntu 10.10(on a usb drive) corectly. im just getting a black screen, where i can type in commands. now i found the scripts online, but how can i edit efi files either on mac or windows?
my issue is that i want to boot from windows boot loader neither than booting form grub loader...
I have installated windows and then installated red hat...I am able to login to windows and red hat without any issue but my prob is to load red hat and windows from windows boot loader...
Can u guys tell me where to edit and configure the files.
I have a server I can ssh into, and I am also running Ubuntu. How do I edit this remote file using any program I have installed on my local Ubuntu, without copying it to local, editing it, and copying it back?
I just installed Ubuntu server 9.04 and am try to get it all set up but Ive run into a snag with Samba. I cant delete, add, or change files from my windows machine like I could before. Here is my minimalist Samba config that I used on my old ubuntu server:
Quote:
[global] server string = %h server (Samba, Ubuntu) security = SHARE map to guest = Bad User obey pam restrictions = Yes
[Code]....
Im sure its just one small thing Im forgetting..Its been a while since I played around with my server!
I'm using andLinux and for whatever reason, emacs seems to think that the file I'm editing has been changed every time I try to edit/save and keeps reprompting me. Very annoying. Is there a way to make emacs stop checking the file on the disk?
I ssh connect with a remote machine and have to use emacs.But emacs run only in term-mode. does anyone have a solution how can i run emacs in graph mode in the remote machine
I use a linux machine at work and a mac at home. I can ssh from my machine at home to my work machine. But the only editor that I have access to on the command line then is vi, which I don't like.
Is there a way to use gedit on my mac to edit files remotely over an ssh connection?
This page says that it can be done, but I think that it assumes that you are using gedit on ubuntu. On my mac (os 10.5.8) I don't have the "bookmark" option when I click "connect to server".
I have a directory with hundreds of html files. For all the files I have to: - delete all the row from the beginning of the file to the sentence "<img src="immagini/_navDxBottom.gif" />".
- delete all the rows from the sentence "<br clear="right" />" to the end of the file.
I'm needing to read the Adam's Assembly Tutorials, that are old EDIT *.txt files, I'm on Linux and I need to read this files.What can I do?Is there any GUI editor that can read the files?There is any way to convert them into another file that is more modern1?
I downloaded Grub4DOS and tried to edit the default menu.lst but it's all on one line and has a bunch of blocks □□□ between the commands. How do I properly edit this file in windows?
Reading and revising LaTex 20-page documents seems to be much more easier with a printout (hardcopy) then reading them off a screen. However, I cannot edit the document in real-time (just scrabble comments on the paper) which is cumbersome.
So it there a tablet or even better an ebook device (with e-ink which is easier on the eyes) where I can read document similarly to a printout and edit them in real-time?
I have a webGUI in php where users can make certain settings. How can I edit a file on a remote server from my php webserver? Currently I use my FTP client, vsFTPd and a chrooted user in a specific directory where the file resides. I think this is pretty save as long a nobody else uses my FTPclient. How can I make changes to this file on the remote server from within my php-code on my webserver ?? (so that not I need to make the changes but my users can do it from a html-form) I found this but the credentials for the FTP-connection are plain :
<?php $file = fopen ("ftp://loginasswd@server", "w"); if (!$file) { echo "<p>Unable to open remote file for writing. ";
[code].....
I use https for the webGUI, but I guess this does not mean the connection to the remote server will be encrypted also ? Can I use my FTP-user (has no shell) from within php to edit the file ?
I suspect that this has come up numerous times, but I am new to Linux and I am setting up a new in-house server using Ubuntu 9.04 and Apache, etc. I can see the welcoming "It Works!" message when I log in via Firefox. I can see "index.html" when I FTP the server with the site name and password at /var/www. I can also see the -rw-r-r-- attributes, but I can't edit the HTML file or replace it. When I try to rename the "index.html" file.
I get the following message: "Request denied. Verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation."
I haven't been able to determine where to enter the password or what changes I need to make to be able to work with the /var/www directory via FTP.
I intend to configure my extensions.conf and sip.conf but asterisk in configured on a remote host in another city, i have to travel there to configure it. Is there any way to access it using internet instead of vnc and teamviewer. how can i use telnet to access it or how can i ssh the remote host.
I need sshd (thats the ssh host) to enable, or be allowed to enable audo when I log in. Once I log in to my server locally, sound is enabled as long as a local bash is active. When local bash is active, I can run command line audio operations, in various audio programs via an SSH terminal, and have the sound work at the server.
I want the sound (device(s)?) to be active, enabled, loaded, (NOOB here) when I am ONLY logged in via SSH. I don't want to have to go to the server and log in to a local terminal to have audio loaded, this defeats the point of using SSH.. LOL sound needs to work on that server with no local login, I.e. the screen says "computername login:"
So there is something I'm missing here. Ive read over the sshd documentation many times.. Some of it is beyond my skill set, so I'm sure i'm missing something.
Or perhaps sshd needs permission to load the audio? I don't know here I'm a noob.
(I suppose I should add, this is gnome system with X disabled with the runlevel edit to gdm.conf. but audio works without starting X, so I doubt the problem lies here, as I said before the SSH connection does what I need it to as long as a local BASH (not X) session is logged in.)
I'd like to remote into my Linux (Ubuntu) desktop from a Windows desktop. Of course there is VNC, among others. The trick is that I just want to have a remote session without having any local screen sharing. In other words, when I type and move the mouse on the Windows computer, I don't want that activity to show up on the screen remote Linux system. The Linux box should just sit there at the login prompt or whatever it was doing prior to my remote login.
with 11.2 and now with 11.3 (using KDE4) i got two issues with emacs:
1) The emacs window doesn't properly snap to other windows. There is mostly a small gap inbetween. 2) When switching between buffers with C-x b the emacs window shrinks vertically from below!
I need to delete all files inside remote directory using ssh P.S. The directory must not be deleted, so @Wes answer is not what I need. If it would be local dir, I would run "rm -rf dir/*"
I would like to copy several files from a remote machine. This archives are contained in different folders and their name have a commun caractheristic (also the folders).I have tried something like that:
ftp open machine@ prompt %to get into the non interactive mode