Ubuntu :: Script To Pull Data From Remote To Local
Jul 1, 2011
I want to have a script that pull db from remote server to my local. Beside that the filename should contain current date the time the db was dumped.
Ex: getdb databaseName
Then the filename should be like this:
So basically I have an archive of DB. Similar to this I need also a script that pull directory from remote to my local.
Ex: getdir htdocs
Then the filename should be like this:
View 1 Replies
ADVERTISEMENT
Nov 10, 2010
I have 2 files to compare and then print out information that match a certain pattern. I know basic scripting and was heading down the path of merging the 2 files together but this is the wrong approach. Would really appreciate a script that can do what is required:
file 1 contains dates, times and ID's:
2010-10-28 10:42 5939697357
2010-10-28 11:56 5919543491
[code]...
View 4 Replies
View Related
Feb 19, 2010
Running Ubuntu 9.10. In the Remote Desktop config dialog I get: "Your desktop is only reachable over the local network. Others can access your computer using the address 127.0.0.1 or tabatha.local." I understand this means only the loopback ip address is available. All my other machines show their true local ip address (e.g., 192.168.1.104) in this dialog. Thus I cannot log on to this desktop from other machines.
When I try to do a remote logon from another Ubuntu 9.10 box (or from an XP box using a VNC viewer), I get: "Connection to 192.168.1.102 has been closed." What steps are needed to make this machine show its actual ip address? All file sharing between the various machines is working properly and all windows shares back and forth between XP and 'nix, and among the the vaious XP boxes and linux boxes are available as designed.
View 1 Replies
View Related
Jul 13, 2010
I have Ubuntu 10.04 (fresh install) and it is my work computer/Server and i'd like access to this PC from my home. But with Remote Desktop it only says i can do local.
I've look around and opened up port 5900 in my router. Set this IP to to static and forwarded the port to this computer.
I've read that unchecking the "configure network automatically to accept connections" as it seems to cause an issue in ports i've read. Still nothing.
Here is a screen cap of my settings
Uploaded with ImageShack.us
How can i allow access from my Windows Based PC to this computer over the internet?
View 1 Replies
View Related
May 12, 2011
I'm looking to convert my HTPC into a remote android dev server for my girlfriend and myself, however I want to make sure that it is possible to do what I am looking to do.Is it possible to map local devices to the VNC server (such as an android phone) so that we can work on development over VNC with phones we have on our client computers? I know its a trivial matter to map local drives over VNC, but what about non-HD devices, can I still maintain full functionality as if the device itself was plugged directly into the server?'ll be installing ubuntu again this weekend, never got around to it after my last HD failure.
View 1 Replies
View Related
Aug 27, 2010
I have a remote drive mounted on my system(ubuntu 10.04 x64), and i have the contents of that drive backed up to dropbox. the problem is, if i unmount the drive, the files disappear from dropbox. is there a way to mirror the contents of the network drive to a localfolder(preferably in such a way that all changes and file deletions are changed on the local folder instantly, but unmounting doesn't delete it all)? It looks like rsync would work, but im not sure how to make it work.
View 2 Replies
View Related
May 31, 2011
I am having difficulty sending files from a remote machine to local one using
Code:
scp
. It is working the other way however. local > remote. I am using the verbose options
[code]....
View 3 Replies
View Related
Sep 22, 2010
I'm trying to rsync a folder(and all subfolders) down to a local directory, upon completion I'd like the remote folder to be deleted.
What I've come up with is
Code:
rsync -rvtW --remove-sent-files -e ssh user@example.com:/remote/folder /local/folder
What this is doing is simply wiping the remote files within folders(not the folders themselves) and not actually syncing anything down to my local folder(as in no files at all on my /local/folder)
View 1 Replies
View Related
Nov 14, 2010
I have the need to SSH into a Slackware 12 box to provide remote support. I got this, but it doesn't provide for a real 2-way communication.
while : ;
do read -p "Enter text to Local: " TXT ;
DISPLAY=:0 Kdialog --inputbox "$TXT" ;
done
So this loops and all, but it doesn't have a history and I have to wait for a return from the Local operator. If the operator has changed focus I can be waiting all day for a response and I would have to start another session to post a second comment.
What is nice is that it's small and I can create the .sh when I remote in.
-----Update since I started
I now have two scripts to take over from the first one. I have to have 4 SSH running to get this to work.
1 SSH to move(archive) and create a chat.txt; it also fires off a .sh that fires off a console that tails a chat.txt so the operator can see the chat history
2nd SSH to fire off a .sh that loops a Local kdialog input box that appends the chat.txt 3rd SSH to tail -f the chat.txt file on the remote so I can see the chat history 4th SSH to loop a read -p on the SSH so I can append the chat.txt
View 5 Replies
View Related
Aug 14, 2010
I am having trouble to make my SSH server working with remote machine.
Code:
telnet 192.168.1.102 22
PHP Code:
[Code].....
View 9 Replies
View Related
Mar 18, 2016
I am trying to stream audio from one machine to several others via pulseaudio.
Following a bit of digging, I configured the "sender" with:
load-module module-null-sink sink_name=rtp
load-module module-rtp-send source=rtp.monitor rate=48000 channels=2 format=s16be
..and the "listeners" with: load-module module-rtp-recv
Then, playing on the sender, and using PulseAudio Volume Control /Playback to set "Null Output", my listeners all start working as expected. The outstanding problem is that the sender is silent - nothing from its speakers. Perhaps not surprising after the "Null" setting above.
Is it possible to stream like this and also listen on the sender at the same time -
View 6 Replies
View Related
Sep 27, 2010
I'm using Windows XP. I'm connecting to a UNIX box using putty SHH(ksh). Now I want to copy a text file present in remote host to my local system.
View 5 Replies
View Related
Mar 29, 2011
I'm doing some commands on a remote server (using ssh to log on to the remote server, did a ssh key swap), how do i redirect the output of a command back to the local server ?the person who helps me out is my HERO i'm really stuck on this and it would bring me a lot further if i get this to work
View 14 Replies
View Related
Oct 15, 2010
As many developers probably do, I have a Windows based machine on which I run XAMPP locally to test my code and a Linux machine with Fedora as my remote server.As I sometimes use .htaccess as a way to authenticate some parts of the website, I end up having two .htaccess files: one with the local path (something line D:My_Webs) and one with my remote path (something like /var/www/html/) to the password file.I have searched high and low, but I cannot seem to find any trick so that I only have to maintain one version of the .htaccess file which can work on both Linux and on Windows machines.
View 6 Replies
View Related
Sep 1, 2011
my local box is centos 5.5 running gnome.
I have a eucalyptus instance (vm) running an older version of centos (5.3?). As a vm it has no graphical display. I'd like to run a graphical app there so that it displays back on my local machine.
Used xhost locally and it shows the remote IP (eucalyptus instance) as enabled. On the remote side (eucalyptus instance) I set DISPLAY with:
export DISPLAY xx.xx.xx.xx:0.0
where xx.xx.xx.xx is my local ip address. Oh, I did install X in the vm instance (yum groupinstall "X Window System"). X is installed but not running there (does the point of origin of the x app need to have X running as well - and what does this mean in a vm which is a non-graphicla environment?).
Anyway, I try to run (from remote to local) xclock and get the typical
Error: Can't open display.
View 3 Replies
View Related
Jul 24, 2010
I would like to experiment a "green" idea of virtual desktop where multiple users are served by a single powerful machine.
I have a server running 24/7. The monitor of this machine is turned off most of the time and the OS is on the login screen.
Other users, in the same local network, use less powerful machines, which could be a thin client or an old Pentium 3 machine. They access their accounts remotely and work with the GUI as if they were sitting in front of the server. Each user sees their own desktop (different themes, screen resolution, etc.). And of course it can happen that several users could log in at the same time.
The usage is modest: mostly web browsing and the usual default applications (office, wine, gimp, etc.). In particular no games or any demanding applications. The users want to use their desktop in graphical mode only.
Question: How do we call this way of using a server? Is it possible with Ubuntu? And how to implement it?
View 3 Replies
View Related
Sep 22, 2010
I have a fast computer in my office and I want the person using the slow computer in the same office to boot up and see the login window (gdm) and log-in from there into the fast computer and be able to use their session on the fast computer the same time I am locally logged in to the fast computer as a different user and session.Is this best done through XDMCP? Where is a good tutorial on how to set this up?
View 9 Replies
View Related
Nov 5, 2010
Is there any software that will do full mirroring between a local and a remote file system. I have a server (9.04) and a laptop (9.10). Each user has shared a shared directory on the server, and on the laptop. Updates to files may be done on either system. I want to keep both copies syncronised. Currently I use a script based on rsync (scheduled by cron) to keep the local and remote copies in sync.
The problem with this approach is that rsync only seems to be able to handle deletion of files if one file system is the master, which is not the case in my set-up. If I move a file to a different directory, rsync will reinstate the old file as well as copying the new one. I was hoping there was some software that could do proper mirroring between the 2 systems, but6 so far I cannot find anything.
View 3 Replies
View Related
Jul 14, 2010
I have two linux box that i would like to keep in sync. I see option -avz syncs the remote with local but new local files are not pushed.
View 2 Replies
View Related
Aug 12, 2010
How do you transfer a file from a local Mac to a remote Linux machine
View 5 Replies
View Related
Jun 28, 2011
I have a Ubuntu server hosted on Amazon EC2. I need to create an automated backup scheme so I created another Ubuntu instance on my local network which is hosted in a virtual environment. I managed to transfer the necessary files between 2 machines on the same network using the rsync command:
rsync -azvv -e ssh /home/path/folder1/ remoteuser@remotehost.remotedomain:/home/path/folder2
How can I do the same thing but transferring files from my Amazon server to my local server? Is there a way I can achieve this with port forwarding, or by VPN, or anything else? It doesn't have to be rsync. If you know about a better method, kindly let me know.
View 2 Replies
View Related
Apr 15, 2011
I know I can ssh login without password from a local to a remote. My question is how I can ssh without password from the remote to another remote. Say, I have three machines: A, B, C where A is the local machine. I use the same private/public key pair for all the login. What I can do are:
1. ssh from A to B.
2. ssh from A to C.
3. If I am sitting in the computer B (or B is local), then I can ssh from B to C.
What I am not able to do is:
After I ssh from A to B, I cannot ssh from the B to C. When I try to ssh from B to C, it asks me a passphrase.
View 1 Replies
View Related
Jan 28, 2010
Is is possible to move a process from one shell to another (local to remote)
e.g.
if
my_code.sh &
#jobs
[1]- Running my_code.sh &
was started on one remote shell is it possible to move it to the foreground on another shell as root or another user?
View 5 Replies
View Related
Jan 26, 2011
I have a problem while copying files from a remote computer to my local one using the scp command. I am sure that I am using it correctly, please check it below:
---
blah@blah.com:~/g4work> scp blah2@blah2.com:IndirectMethod_Spher...s/H_1.mac.root .
---
What I get in return (instead of the statement saying 100% of file copied) is:
---
On this machine the G4SYSTEM=Linux-g++
---
The interesting point is that the above returned statement is one of the Environment variables set on both the machines that are necessary to work with a toolkit called Geant4. Here is what I get when I type 'printenv | grep G4' just to show you (note the statement in bold):
---
G4LEVELGAMMADATA=/home/blah/geant4/geant4.9.3.p02/data/PhotonEvaporation2.0
G4INSTALL=/home/blah/geant4/geant4.9.3.p02
G4LEDATA=/home/blah/geant4/geant4.9.3.p02/data/G4EMLOW6.9
G4NEUTRONHPDATA=/home/blah/geant4/geant4.9.3.p02/data/G4NDL3.13
G4VIS_BUILD_OPENGLX_DRIVER=1
G4RADIOACTIVEDATA=/home/blah/geant4/geant4.9.3.p02/data/RadioactiveDecay3.2
G4ABLADATA=/home/blah/geant4/geant4.9.3.p02/data/G4ABLA3.0
G4LIB=/home/blah/geant4/geant4.9.3.p02/lib
G4VIS_BUILD_RAYTRACERX_DRIVER=1
G4LIB_BUILD_SHARED=1
G4VIS_USE_OPENGLX=1
G4UI_USE_TCSH=1
G4VIS_USE_RAYTRACERX=1
G4REALSURFACEDATA=/home/blah/geant4/geant4.9.3.p02/data/RealSurface1.0
G4SYSTEM=Linux-g++
G4WORKDIR=/home/blah/g4work
---
The other thing that I would like to mention is that these Geant4 Env. Variables are loaded each time a new (bash) shell is started as a result of the bash login script.
View 6 Replies
View Related
Mar 16, 2010
I'm using a fingerprint reader on my laptop, works pretty well:
Code:
$sudo echo hi
Please swipe your finger:
[swipe finger here of course]
[Code]....
Like I said, it works nicely... until I try to SSH in and sudo something remotely, when it will ask me kindly to swipe my finger over the reader that's attached to the laptop which is on my desk at home thirty kilometres away. Naturally there's no method built into pam_fprint to abort via a keypress.
So, is there any way to tell PAM to only use certain modules if I'm in a locally logged in session?
View 2 Replies
View Related
Jan 12, 2010
I have a local git repository that pushes to a remote repository. That remote repository moved to a new server. How do I make "git push" and "git pull" push/pull to/from the new repo?
View 3 Replies
View Related
Dec 31, 2010
I have a slack 64 13.1 box, that I want to be able to control the monitor of from my laptop. Here's the scenario: I can already control the music remotely via X forwarding banshee to my laptop (banshee shows up on the laptop and music comes out on the desktop). Now I want to be able to open a movie on the desktop's display via the laptop.
Now googling this comes up with solutions for X forwarding, but I don't want it to forward X I want it to display on the desktop.
View 3 Replies
View Related
May 13, 2010
I installed syslog-ng so I can receive remote logs. this is working however since I disabled syslog on my syslog-ng server I am not logging in /var/log/messages cron and some others.locally)I know this is because my syslog-ng.conf only references remote and not local.How can I edit the syslog-ng.conf file so that I can receive remote and local? I tried this however when adding in portions of the default config, I only receive local and not remote logs anymore. I am forwarding my config.
# syslog-ng configuration file.
#
# This should behave pretty much like the original syslog on RedHat. But
[code]....
View 2 Replies
View Related
Jun 9, 2011
I'm running nxfree to log into my remote xubuntu PC from my local xubuntu laptop since the X protocol was broken.Has been working fine. Recently upgraded from Lucid 32bit to Maverick 64bit Xubuntu.Now when I run nxclient in fullscreen mode, if I minimize the window (or just log out) my local display does not return.I'm left with just the background colour. The windows are still there but not visible. For example I can:* randomly right-click and a menu pertaining to the invisible window appears;* press alt-tab and cycle through the windows but activating one does not display it (it remains invisible);* press ALT-F and bring up the current active (but invisible) application file menu;Basically I press ALT-F and ALT-TAB and close everything and then log out and log back in to restore the windows/panels.
View 3 Replies
View Related
Apr 20, 2011
I have a "remote" server and I want to have it's X exported to my "local" laptop. Preferably, it gets done automatically from boot. I know that virtual terminals 1-6 are all text terminals and 7 is the local X. How can I get my laptop to automatically create a virtual terminal on 12 that's dedicated to receiving the X display from the server?
I know how to get it over SSH/putty. And also how to stop the local and restart the X client on 7 to use the remote. But one of the beauties of Linux is the automation and multi-user environment. It's essentially going to act as a KVM with gui replacement over IP.
View 1 Replies
View Related