General :: Running Command On Remote System
Jun 29, 2010
I want to remote login as a non root user and then run a command under the root account.I have set up the ssh/scp for the non root user and this configuration works fine. What I dont know is how to run a command under root once remotly logged in as the non-root account.I have to run this command under root, it cannot be changed.
View 5 Replies
ADVERTISEMENT
Jun 21, 2011
I need to know what operating system currently running on given remote pc IP address.
View 4 Replies
View Related
Aug 10, 2010
Does anyone know of any way (preferably fully documented/tutorialed, but even theoretical would be great) to remotely install Ubuntu to a machine currently running Windows...
We have 8 machines powering a digital signage system. The machines are not physically accessible (without extreme difficulty) and are currently running windows XP with a VNC server for control.
I want them to run Ubuntu instead. Is there any way anyone can think of that I can do this? My only thought so far is WUBI...but once it boots into Ubuntu ssh isn't installed by default and vnc isn't enabled by default so I wouldn't be able to control it.
Also I'd really like to completely wipe out Windows and use only Ubuntu.
View 1 Replies
View Related
May 9, 2011
Up until now I've been using plink to remotely compile a project I'm working on. But recently the administrator from the remote server updated the distribution and messed up some configurations. My project has a lot of scripts written for tc shell (tcsh), and now the default shell is bash. There is no way to change this. Another problem is that now I need to run newgrp to change my default user group.
So... to work around this problem I've changed my .bashrc to run newgrp and then tcsh. If I do a normal connection using SSH, everything works as expected, but when using plink, or SSH to remotely execute commands, the shell gets stuck on the newgrp command. I think it's because both applications need a return value from newgrp to send the command I need to execute. Remotely running scripts that call a shell also get stuck like newgrp (newgrp also opens a new shell and that's why it gets stuck) my .bashrc is as follows:
Code:
user_grp=`id -g`
if [ $user_grp != 4919 ]; then
newgrp new_group_id
else
[code]....
View 4 Replies
View Related
Jul 8, 2011
I am not seeing what i am doing wrong here, but here goes:
From my server I need to run a command for backup on 25 remote servers (through a script). Now I have pushed the public keys for remote ssh connectivity on all of them and it works ( I can push files using rsync without the need to enter passwords on the remote servers), howver, I need to run the following command:
ssh odsadmin@10.139.111.1 'cp -a /var/www/life /var/www/life-v4'
when I run this command, I keep getting asked to enter the password, I even tried putting sudo in front of the cp, but still get the request to enter the password.
View 9 Replies
View Related
Feb 22, 2010
I'm trying to run a command that will let me run some programs. If I run the command in a terminal, then I can launch the programs from it fine, but not from anywhere except that terminal. This is the command that makes things work:Code:export GTK_RGBA_APPS=allbut:exe:checkgmail:swiftfox:firefoxThis command disables RGBA for the programs listed, which seem to have problems with it. I hoped I could use this command to somehow apply it system wide permanently. I've tried adding it /etc/rc.local and rebooting, but it doesn't work.Is there a way of doing this? Or am I barking up the wrong tree entirely? Is there a better way to disable RGBA for certain programs?
View 3 Replies
View Related
Oct 23, 2009
How would I find out what servers are running on my local system from the command line? I cannot find out how to accomplish this anywhere?
View 3 Replies
View Related
Dec 22, 2010
On Linux I do:
rdesktop remotepc
How do I copy and paste between my local system and the remote system?
View 1 Replies
View Related
Jan 20, 2011
I am connecting to remote Linux PCs via ssh, to update software and do other tasks. I want to send a notification to the remote PCs screen (eg, "Do not run program X, it is being updated now"), so the users do know what is happening.
Is there a reverse way for ssh -X host so I can connect to a remote Linux machine and run notify-send and it appears on the other display?
View 2 Replies
View Related
Jan 24, 2011
Is there any unix command to list services running on remote unix box.
View 6 Replies
View Related
Feb 12, 2009
Is it possible to log into a remote windows computer from my local linux computer and vice-versa using the "telnet" command?
View 2 Replies
View Related
Jan 20, 2010
Imaging-copying a working remote share on WindowsNT to a local Linux disk target is needed .
Is that possible with dd command(how if remote share is connected as smb://ipnumber/share) and do you need root privilleges on local and remote machine for that?Perhapson source machine:dd if=/dev/hda bs=16065b | netcat targethost-IP 1234on target machine:netcat -l -p 1234of=/dev/hdc bs=16065borrsh 192.168.xx.yy "dd if=/dev/sda ibs=4096 onv=notrunc,noerror" | dd of=/dev/sda obs=4096(any difference to dd/privilleges if you use it as windows dd version since remote is running windowsNT)?
View 1 Replies
View Related
Jun 24, 2011
I'm using Ubuntu 11.04. I have a Windows XP box in which I've installed SFU 3.5 and Interix (Subsystem for Unix-based Applications). I want to run a batch script on the Windows machine from my Linux box, whether on-demand or in a cron. How do I do this from the Linux side?
View 4 Replies
View Related
Sep 23, 2010
I'm playing around with trying to access a Fedora 13 system from a Ubuntu 10.04 system. Both are relatively new vanilla installations.I went into System - Preferences - Remote Desktop on the Fedora system and enabled Remote Desktop. When I connect with the Ubuntu system (ssh), I can login, but all I see is an ssh terminal session. I was expecting the desktop environment (GNOME right?) to come up.
View 4 Replies
View Related
Dec 29, 2010
I'm in a situation, that I have no access to one of my remote server. And I CAN'T EVEN INSTALL ANY SOFTWARE in any linux boxes to determine the remote OS name and version.Can you please enlighten me on how could I find out the OS version of remote host without installing any software or without login to that server.
View 1 Replies
View Related
Jun 7, 2010
I am fresh out the box to linux I am using mysql for the 1st time also, my question is what is the correct command to run on a mysql command line to connect to remote server.
View 5 Replies
View Related
Apr 27, 2011
How can i do that.. Today is my first day writing a script.. and correct me if this Thread should be somewhere else..
Code:
if [ $1=$anyvariable ]; then
ssh www.a.com <Have to set few variables and give commands >
View 8 Replies
View Related
Feb 1, 2010
Because of my English skills I'll try to explain this subject as best I can, thank you for understanding. Fisrt of all, I am running some program on my slackware in background (using standard method - &). I need to make a script, which allows sending command to this process on my machine from another one. Furthermore this program have to be logged out (standard output f.e. ./myprogram > log.out.txt).It might be a separate Program A which runs my Program B but it cannot be screen, because it is not working like I'd like to and it cannot be java, because it's slow and working not the best so to speak
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
Dec 6, 2010
How to enable the remote desktop in a Red Hat system?
View 4 Replies
View Related
Feb 3, 2010
me using opensuse. when i wnat to access it from a remote system using ssh.the following error occur. permition denied (publickey,keyboard interactive)
View 2 Replies
View Related
Jun 22, 2010
i was browsing one of my friend hard drive using knoppix live CD, i was amazed to find that all the folder which he uses was empty, there was no files present in them, for example there was a folder in /usr/local named web, but when i browsed that folder using knoppix it was empty.I searched for files in every partition but still no result found.
After some time when i placed hard disk back and booted the PC normally, everything was in its proper place. Then i thought to make image of the hard drive and use it on my PC, the image booted well, but still those particular files were missing. I want to know how is that possible? Is there any way to get files from the remote system during bootup?
View 8 Replies
View Related
Apr 22, 2011
Let's say I have a Linux workstation at work, behind a firewall. So even though I may have a remote access server set up on it (such as the most excellent NoMachine NX Server), I can't access it from home.
My home network happens to have a Linux server. Is it possible to ssh from work to the home Linux machine and set up a tunnel so that once I'm at home, I can run the NX client, point it to my home Linux box on some port like 9000, and have that forward through the tunnel to port 22 on my work Linux box? How would I set this up?
View 2 Replies
View Related
Aug 14, 2009
I'm trying to connect to a Win XP computer via Remote Desktop/Terminal Server. (Note: WinXP refers to Remote Desktop, or RDP; Ubuntu uses Terminal Server client for this function.)
The problem is that my XP computer requires the use of Microsoft's RDP version 6 because it uses a Terminal Server Gateway. The TS client in Ubuntu is compatible with version 5, not version 6.
Is there a MS RDP version 6 compatible program/client for Linux?
View 14 Replies
View Related
Jan 12, 2010
How do I (through command line) download folder X and all of its content from the remote system to my local system?
View 7 Replies
View Related
Jan 12, 2011
I need to remote access a PC(running winxp) from my laptop(running ubuntu 10.10) over internet.
View 1 Replies
View Related
Jan 16, 2011
i have a shell script which some of the lines should be running as root and some other not.the problem is that su is not practically work,it means it take root password from me but it does not run the commands in script.the other problem is thatthere are some commands which should be run as normal user so how it exits from root mode and run that particular command. i tried exit in script file but it dos not work.
View 1 Replies
View Related
Nov 17, 2010
I am trying to use the at command to run a script file. The test was quite simple, wanted to run today and every 2 days.Here is the at command:at 15:20 today + 2 days -f every2daysDo.shHere is the script:echo "every2daysDo.sh ran on $(date)" >> /home/stacy/attest.logI see the 'output' of the echo command in my log file on today+2 days, but not on the day that I start it.
View 3 Replies
View Related
Jun 3, 2011
I'm running this command, and seems not to work, following the command:Quote:for nic in `ls /sys/class/net | grep -v lo`; do echo ${nic}; udevinfo -a -p /class/net/{nic} | grep -i address; doneThe output is the following:Quote:eth0eth1But the output should show something like this: (showing the MAC address)uote:
View 6 Replies
View Related
Jan 21, 2010
I am trying to run an scp command on my linux server, this is working fine, however I changed the output folder to one which has spaces and now when run, it's coming up saying SCP ambiguous target
Here's my string:
expect -c 'spawn scp -r /var/lib/asterisk/backups/Everyday/ administrator@192.1.1.1:
/Volumes/Data1/My Backup Folder/ ; expect assword ; send "MYPASSWORD " ; interact;'
View 4 Replies
View Related