Wrote A Shell Script From My Windows Desktop.. Script Doesn't Work On Linux Server

May 16, 2007

I have write up a simple shell script from my windows desktop.
After i upload the file via ftp and run it as root, it doesn't run properly.

any file i copy over will end up in "
" ..nothing else.

why is this happening?
Should i write all my code on the server instead?

View 3 Replies


ADVERTISEMENT

Ping Doesnt Work Until Remote Desktop Connection Is Made

Nov 14, 2007

I have a remote XP PC: 172.16.1.5 OpenVPN connection with route added for 192.168.2.0/24 to go via the VPN

Now on the other end the network consists of:

I have a OpenVPN server inside the lan on 192.168.2.245
Its default gateway is 192.168.2.1

I have 3 Windows Servers, 192.168.2.246, 247 and 248. All gateways are set to 192.168.2.1.

I have a ethernet router on the network, 192.168.2.1, it has a route added for 192.168.0.0/16 to go via 192.168.2.245, and route added for 172.16.0.0/24 to go via 192.168.2.245 also). the 192.168.0.0/16 is incase any other LANs are connected at a later date, if computers saw any packets not on the the 192.168.2.x subnet they would be routed to the default gateway which would then pass them to the OpenVPN router.

The trouble is, i can remotely connect and ping to the OpenVPN router fine and also the ethernet router, however when i ping any of the Windows boxes it times out. But i can open up Remote Desktop and connect to the windows box without problem, infact if i am running 'ping 192.168.2.246 -t' it will suddenly come alive but only after the RDP connection is made.

Is this something funny with the routing? I want to keep the OpenVPN server internal to the network and i appreciate it is hitting the ethernet router then being passed to the OpenVPN but something is weird as it fires up RDP fine but not ping. No firewalls are enabled on any of the boxes. If i log into ssh on the OpenVPN router or ethernet router i can ping from that to the windows boxes fine.

Its as if a ICMP redirect is issued, and all is well after the 1st connection. Not too sure but could anyone be kind enough to enlighten me?

View 1 Replies View Related

Webalizer Doesnt Work Using EnsimPro X

Mar 11, 2007

After migrating from the old ensim to the new "X", everything is working fine, except for the webalizer, I activated webalizer in one domain a few days ago.. and everyday Im trying to see the webalizer information, and it is always displaying this message:

Could not retrieve the requested site report because the Web server logs have not yet been generated. These are generated once a day. Please check again later.

I also tried forcing the log rotating for that site, but the problem still there.

Server is RHES 4 with EnsimPro X, log generation and webalizer is activated for the domain.

View 2 Replies View Related

Monit + Qmail Alerts Doesnt Work

May 9, 2007

I configured monit to send me email alerts when apache is using too many resources but I cannot receive email alerts. I use Qmail.
As for syslog, there is this message:

monit[6473]: Sendmail: error receiving data from the mailserver 'localhost' -- Resource temporarily unavailable

I tried to add for server name the name used in MX record but with the same result.
Btw: other things configured in cron (eg. RKHUNTER) send me alerts OK.

View 0 Replies View Related

Perl Script Doesnt Seem To Work On My System

Dec 30, 2007

im using centos and a perl script doesnt seem to work on my system.

it gives an error on this line.

use LWP::UserAgent;
$ua = LWP::UserAgent->new;
$ua->agent("MyApp/0.1 ");

BEGIN failed--compilation aborted at line 8.

is it a problem with my perl or is it an error with the script?

View 6 Replies View Related

Installed Apache Can Access Via LAN IP + Localhost But WAN IP Doesnt Work

Oct 30, 2008

I'm on windows vista. I've got an SDSL line into the house with a dedicated IP 62.etc. I've then got a Prestige 791R and all PC's plugged in to that. I've also got a wireless router for my Wii set up.

Basically I've set up this DHCP thingy to start at 192.etc.3 and the Wireless router is at 192.etc.1 and the Prestige is at 192.etc.2 my pc is at 192.etc.9

This is about where my knowledge stops unfortunately.

I have installed apache as the most basic default install I think you can and it seems to be working absolutely fine. I'm assuming I could also install PHP and MySQL etc and wouldn't have too much of a problem, however, my friend cannot seem to access the environment from the WAN IP and when I type in my WAN IP I get the prestige router's control panel.

I read somewhere that I needed to forward port 80, now I can 'open' ports in the prestige control panel but I did try opening port 80 in the control panel and pointing it to my LAN IP (92.etc.9) but it didn't seem to work.

I'm at a bit of a loss so if anyone could point me in the right direction I would be most grateful, just to clarify:

//localhost loads the html file 100%
//192.etc.9 loads the html file 100%
//62.WANIP internally loads my prestige routers control panel
//62.WANIP externally does not load a page (cannot be found)

If you need any more info just let me know and I'll get it.

View 0 Replies View Related

Linux Desktop VPS Kinda Like Windows VPS

May 14, 2009

a while back i had good experience with windows vps.i could remote login, and run things and just relax.

i am looking for ubuntu desktop vps, or any linux desktop vps, that has gui. i think this will be cheaper because there is no license fee to pay unlike windows.

i am looking to purchase around 20 of these small vps, for a project, so i would like the price per vps to be as low as possible.

View 14 Replies View Related

Windows And Linux Remote Desktop Connection

May 25, 2009

I know we can get remote Desktop connection only on those servers based on Windows 2003 OS or Windows 2008 OS.

But what about Linux? Can I have such remote desktop connection on CentOS 5?

Another question is, what is nxclient?
[url]

Im bit confused. Can I get remote desktop connection of Linux OS ( CentOS ) on my Windows XP by using this software?

[url]

View 7 Replies View Related

Forwarding/Default+POP3 Addy Doesnt Work - Piping/Webmail Works

Sep 13, 2007

My server which runs cPanel (license issued touchsupport) is having problems with handling emails.

I use an external DNS provider (editdns.net) only for this 1 particular domain for handling many Records and such. Through their panel, I have added my mail server's record, i.e. "mailserver.tld".

Now there is a problem with one part of the email issue. I have email piping setup and 1 webmail account setup too. These two work flawlessly. No issues with them. But email forwarding and default address doesn't work.

I am confident that the email settings are working right because, when my clients send an email, piping works and my support system creates a new ticket. But the email forwarding/Default EMail doesn't.

Not just that, I cannot even connect to the webmail account I created via POP3. I 100% sure that I used the correct login credentials and also tried the "+" and ":" for the username part. Just doesn't work. But I can access and read my emails via the Webmail (squirrelmail).

Please help me out with this as soon as possible.

View 3 Replies View Related

Gnome Doesn't Have Any Icons, Desktop, Or Shell Icon.

Aug 15, 2007

I just installed freenx and connected to my server.

When I logged in, I don't see any icons on the botton, or on the desktop. And when I click on desktop, an error message comes up.

And I'm trying to run shell prompt, but there's no icon like the guide says there is.

Here's a screenshot

[url]

View 2 Replies View Related

Windows Server Remote Desktop

Mar 25, 2009

to install a server for data sharing. My user want a Windows server with remote desktop to write, edit and share document.

The server will host 5 users. one admin and 4 users. each user will have there own account and folder. The user will update word files and save it directly on the server. The admin will have access to each directory (like a fileserver).

I want your recommandation for the share, the OS and the upgradability

View 4 Replies View Related

Remote Desktop On Windows 2003 Server

May 20, 2009

I am having a VPS and tried to use RDC from home and it i working. But from my office I couldn't since it looks like RDC is blocked when connecting to out of LAN.

I have tried with the support to change the ports couple of times but still didn't work.

I tried: GoToMyPC, IRemotePC etc. But I believe these 3rd part software doesnt work in Windows 2003 Server.

how to overcome RDC problem or web service or web service that can work on Windows 2003 Server for RDC?

View 2 Replies View Related

Windows Doesnt Detected All 4GB RAM

Jun 15, 2007

I am using Windows 2003 Enterprise Edition SP1 and i have recently set the computer up to 4GB RAM. I notice a problem occur error :

When I start the computer, Bios detected all 4GB Ram. However, i have checked Total physical memory in General (My Computer-> Properties) doesnot detect all 4GB Ram. it only detect 3GB Ram.

I have checked that this OS support up to 32GB . Why it doesn't detect all 4GB ?
What happen to it?

Mainboard : Intel chipset 915GL

I did following the instruction in internet (exactly is Microsoft) is /PAE in boot.ini file. But, it doesnt work.

View 8 Replies View Related

What Difference Between "desktop"、"work Station"、"server" Board

Jun 9, 2008

we may class the board into "desktop"A"work station"A"server" board,

i know they have price difference,

i want to ask any other main difference of them?

View 1 Replies View Related

How Do I Make My PHP Form Script Work On My Fasthost Windows Dedicated Server

Aug 12, 2008

We have a Fasthosts Dedicated Windows Server and I now need to run a PHP script to enable us to use a online enquiry form. I have contact Fasthosts and the are not able to advise how to enable/use these scripts as it falls outside the support package.

Does anyone know how to enable or make it work in the Matrix Control?

The error i get is:

The page cannot be displayed
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.

Please try the following:

* Contact the Web site administrator if you believe this directory should allow execute access.

HTTP Error 403.1 - Forbidden: Execute access is denied.
Internet Information Services (IIS)

Technical Information (for support personnel)

* Go to Microsoft Product Support Services and perform a title search for the words HTTP and 403.
* Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Configuring ISAPI Extensions, Configuring CGI Applications, Securing Your Site with Web Site Permissions, and About Custom Error Messages.
* In the IIS Software Development Kit (SDK) or at the MSDN Online Library, search for topics titled Developing ISAPI Extensions, ISAPI and CGI, and Debugging ISAPI Extensions and Filters.

View 3 Replies View Related

DoS + This Perl Script I Wrote...

Apr 10, 2007

I'm nearly at my wits end with this.

My server keeps going down lately, and I suspect some kind of DoS. Whenever it does, sometimes I can even watch it happen. Such as:

Quote:

80 requests currently being processed, 0 idle workers

WWWWWWWWWWWWWWWWWWKWWWWWWWWWWWWWWWWWWWKWWWWWWWWWWWWWWCWWWWWWCWWW
WWWWWWCWKWWWWWWW

I watched it fill up like that, from my NORMAL status:

Quote:

13.8 requests/sec - 33.6 kB/second - 2484 B/request
22 requests currently being processed, 36 idle workers

___K__C____CC__C_C_____.C_C____C_CC_K___K_K_KKK__KCKK__W___.....
................

That's what it usually looks like. Anyway, more and more Ws were added in a matter of seconds as I watched it. Next thing, my site doesn't load, and it goes dead. My TimeOut in apache was set to 5 seconds. Now it's at 2, though. I do have keep alive on, but it is VERY low, like its set to 2 seconds and the max keep alives is set to 15 or so.

I have been working on even just catching who is doing this for about 2 weeks now, trying everything to my ability. Here is everything from start to finish:

1. First I tried mod_evasive - this program seems worthless, it doesn't ever detect anything. I can post settings if need be, but ive played with it and it just doesn't work well I find. I have more trouble with it getting false positives. Also, I tried going over the apache logs. For me, this has been a nightmare because its just so hard to see between attackers and non attackers... and i've come up with nothing.

2. I tried APF with AntiDOS but it didn't seem to do anything...

3. I read about DDoS deflate by medialayer, and installed it and gave it a shot. It didn't do anything for me. I tried poking around with the command they have on their website and I found the results quite weird, it didnt show me all of the IPs like it was supposed to, but rather some mess like:

Code:
1 (ip here)
3 (ip here)
9
(1 addres
ses)
So I did more searches online, and eventually came across this command:

Code:
netstat -ntu | grep ':' | awk '{print $5}' | awk '{sub("::ffff:","");print}' | cut -f1 -d ':' | sort | uniq -c | sort -nr
This seemed nice, looked like it was working as it should this time. I used the test.pl ( my only test for this, I have trouble finding other tools )that comes with mod_evasive and sure enough it showed connections by me in there about like 150 or so after. I thought, 'hey thats pretty good, now ill try to make a script to parse it.' I did this, and then croned the script to run every minute.

Then I asked a friend of mine who I know has a better "DoS"er (though won't give it to anyone, understandably) to test the defence. It didn't hold up well at all. He suggested making the script run in an infinite loop instead of a cron, and make it sleep in the loop forever.

I did just that, and it now runs every 5 seconds. Here is the script, it's not the best, but it's all I've got now:

Code:
#!/usr/bin/perl

# Dos

use IO::Socket;
my $command;

for (my $i=0; 1; $i++) {
$command = `netstat -ntu | grep ':' | awk '{print $5}' | awk '{sub("::ffff:","");print}' | cut -f1 -d ':' | sort | uniq -c | sort -nr`;

@lines = split /
/, $command;
foreach my $line (@lines)
{
@twospleet = split(" ", $line);
if($twospleet[0] > 150) {
if($twospleet[1] != "") {
$carp=$twospleet[1];
$carp2=$twospleet[0];
$block = "/usr/local/sbin/apf -d $carp $carp2";
system($block);
}
}
}
sleep(5);
}

This actually worked; he started his attack, it found his IP, and he was blocked, and I didn't go down. The netstat command showed him in with some 200 something connections before he was blocked.

I was not able to see if this was effective against this issue until today, haven't been hit for 4 days now or so (perhaps some sort of easter vacation?). Today though, I watched the same thing happen again, filled to the brim with Ws.

The netstat command I found doesn't seem to be helping me here. If I am correct:

W means Sending Reply, according to the server status page. So what's going on here, someones making lots of connections and my system can't send a reply back for some reason?

My main questions are,

1. Am I right, that this is some kind of DoS?

2. If yes, how is this being done? And are there any test scripts available that I can download and try on myself to watch the statistics & test some more?

3. And again, how can I go about detecting whatever this is? Maybe some better netstat command, or something I can look for on the command page?

4. Is there any way to improve my perl script to protect against this?

5. If it isn't a DoS attack, what else might it be?

View 7 Replies View Related

Windows Remote Desktop Account For Utorrent And Winrar

May 4, 2009

i need windows remote desktop account

for utorrent and winrar.

30GB space atleast.

price range $5-15 max.

View 1 Replies View Related

Plesk 11.x / Windows :: Remove Remote Desktop Icon From Domains

Apr 29, 2014

We have the Windows version of Plesk 11.5 installed. I've removed the "Management of access to the server over Remote Desktop" but two of my sites (there's only 4 so far) still have the remote desktop button available if you log into the user account and switch to those two domains. Switching to the other two doesn't display the icon. I'm not sure if there's another place where it gets turned on/off as I've tested creating a new subscription with the "Management of access to the server over Remote Desktop" ticked and it's not giving me the desktop icon there.

View 1 Replies View Related

Linux Remote Desktop

Jan 16, 2008

Linux Remote Desktop using NOMachine..

This Is newbies Guide for Linux Remote Desktop using windows XP, This is basic guide. I will Update from Feedback from community..

Download Install NX Free Edition for Linux..

View 5 Replies View Related

Remote Desktop Linux

Oct 1, 2007

about connecting to linux desktop, but can you actually use it like a desktop functionally?

Like remote pc or windows remote desktop?

View 2 Replies View Related

Remote Desktop Linux VPS

Nov 5, 2007

Ive seen it on Windows VPS, is it available or possible on a linux (CentOS) based VPS?

find it more comfortable working within the gui than the shell.. and just wondered if possible

View 5 Replies View Related

Apache :: 2.0 Wrote Error Log File In Virtual Store But Not 2.4

Jan 30, 2015

We use Apache as part of a 'consumer' software which as been working fine with Apache 2.0.64 (running as a 'regular' user). We want to transition to version 2.4, but it seems to be working a little bit differently than the 2.0 version.

In httpd.conf, we have "ErrorLog logs/error.log". With version 2.0, the error.log file is created in the "...AppDataLocalVirtualStore..." path (since user cannot write to 'Program Files (x86)' were it is installed), but with version 2.4.10 we only get an "Access is denied. AH00015: Unable to open logs" error.Is this a known difference between 2.0 and 2.4.

View 4 Replies View Related

Linux Remote Desktop Hosting

Oct 19, 2009

I know that Windows RDP Hosting is not a new Idea, but has anyone tried it with Ubuntu. I do have VNC Access to the server, but that only allows me to authenticate with a password, I need username and password.

What would be the best remote application for this?

View 10 Replies View Related

How Can Setup Remote Desktop In Linux

Jul 2, 2008

How can setup remote desktop in linux (fedora or centos) for get remote desktop access to linux server with windows clinet?

View 4 Replies View Related

Remote Desktop Connection For Linux

Apr 25, 2008

My hoster told me to use PuTTY, a terminal, to install something called a vnc. I tried to install it ,but gets rejected everytime I connect.(I was using realvnc and connecting through a tunnel) Is there another way to get to the GUI or something like that?

I am using Vista and trying to connect to Linux (Debian)

View 6 Replies View Related

Plesk 12.x / Windows :: FTPS Windows Doesn't Work

Nov 11, 2014

FTPS is not working after upgrade from plesk 11. On plesk 11 windows and linux worked fine, after upgrade my windows server, it stopped working.

Code:
PS C:Windowssystem32> & "C:Program Files (x86)ParallelsPleskadmininpmm-ras.exe" --check-repository --dump-storage=ftps://****:****@***.***.***.***:21 --debug --verbose
[2014-11-11 21:16:12.981| 4688] INFO: pmm-ras started : "C:Program Files (x86)ParallelsPleskadmininpmm-ras.exe" --check-repository "--dump-storage=ftps://****:****@***.***.***.***:21" --debug --verbose
[2014-11-11 21:16:12.997| 4688] INFO: Repository 'ftps://***.***.***.***:21': Initializing...

[code]....

View 19 Replies View Related

Linux Shell Fatal Error...

Oct 14, 2007

I just installed X Window System, KDE 3, and Vncserver today... everything was done without an error. However, I noticed that I couldn't open up a new ssh session. This was after the installation was done and I needed a new shell window. Maybe something got in conflict with the installation of X or KDE?

I then logon to KDE via VNC, tried to open up Terminal, and got this error:

Code:
A Fatal Error Has Occurred - Konsole

Konsole is unable to open a PTY (pseudo teletype). It is likely that this is due to an incorrect configuration of the PTY devices. Konsole needs to have read/write access to the PTY devices

What is PTY devices, and exactly how do I fix this. Where is the config file for PTY?

I'm on CentOS 5 btw.

View 4 Replies View Related

FTP Creation Problems Under Linux Shell

Feb 1, 2007

I am trying to use this command to create an ftp account:

# useradd -d /home/ftp/ftpadmin/ -s /dev/null ftpadmin > /dev/null 2>&1

But it doesnt seem to work when I try to ftp in. Also right now i have to ftp directly to my server IP address. How do I set it up where I can ftp in via the domain name? I am trying to create a ftp user that goes to a specific directory under home/dev/user

View 5 Replies View Related

Regarding Using Desktop Hardware For Server

Sep 25, 2007

what motherboard do you use for Intel or AMD? looking for mobo that come with 4 RAM slot and at least allow 4 GB of RAM. What case do you use? I thinking of going with 2U case and what (Intel and AMD) CPU do you think is the most stable and more bang for the buck.

View 14 Replies View Related

Change Jail Shell To Normal Shell

Jul 8, 2008

Do any1 know how to change jail shell to normal shell?

View 14 Replies View Related

How To Check For Hardware Details In Linux Shell

Jul 4, 2009

i run a dedicated server with theplanet.i have LAMP.what commands can i use in ssh to view the hardware details of my server ? i have centOS 5

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved