General :: Manually Forcing TCP Connection To Retry ?
Jun 9, 2010
I have a TCP connection (SSH session to some computer for example) Network suddenly goes down and drops all packets (disconnected cable, out of range). TCP resends packets again and again, retrying with increasing delays. I see the problem and plug the cable back (or restore network somehow). TCP connection finally successfully resends some packet and continues.
The problem is that I need to wait for a some timeout on point 5. I want to use my opened SSH session now and not wait for 5-10 seconds until it finds out that connection is working again.
How to force all TCP connections to resend data without delays in GNU/Linux?
View 2 Replies
ADVERTISEMENT
Jan 28, 2011
I have 1 Ubuntu server acting as a gateway / proxy and a bunch of iptables rules to log packets from each of these systems. This is done to monitor internet acces. The resulting log file grows to about 80 - 100Mb on a daily basis. I tried setting up log logrotate ( through webmin as well as manually ) to rotate this log file every night at 11:00 pm. However, the file does not get rotated. when i run logrotate -d /etc/logrotate.conf everything goes through fine. i get a message saying that the file qualifies for rotation and no errors.
If i manually force the rotation ( through webmin ) it happens. However, on its own, the log file does not get rotated. I am completely stumped. I tried replicating the exact same settings that are set for syslog rotation, and still no luck. All the other log files do get rotated at the appropriate time ( i have checked in the /var/log/ directory ), but this one does not. I thought it might have been because i had some prerotate and postrotate scripts. Manually forcing rotation did not generate any errors and the scripts ran without any problems. But even then, i removed those scripts, and still no luck. this is the config file for logrotate ( in /etc/logrotate.d/bcrl )
[code]...
I updated the system just one day before this problem ( the second one ) surfaced, but i do not remember what got updated. is there any way to check?
View 3 Replies
View Related
May 30, 2011
How the dhclient retry working(Background Process).
View 3 Replies
View Related
Feb 10, 2010
I get the following error if i try and send to my mailserver. I'm running SuSe 11 with sendmail and dovecot. I can send emails no problem. I have looked around and looks like it's not my diskspace on the machine i don't have any quota's on mailboxes.
View 1 Replies
View Related
Aug 9, 2015
My network configuration is in a weird situation, that I always need to run dhclient manually each time after a network connection is established. When my computer connects to a router, sometimes it won't get a valid IP, and it uses an automatically generated fake Internet IP. In this situation, it won't connect to the Internet at all. Sometimes it get a valid local network IP, but still cannot connect to WAN, and could only connect to my router's address (both through ping and through router's management webpage). In both situation, it can be solved by a simple dhclient run.
This is my /etc/network/interfaces file:
Code: Select all# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
iface wlan0 inet dhcp
and this is my /etc/NetworkManager/NetworkManager.conf:
Code: Select all[main]
plugins=ifupdown,keyfile
dhcp=dhclient
#no-auto-default=FE:50:52:BE:46:4C,
View 3 Replies
View Related
Dec 11, 2010
I am attempting to connect to my wireless router. When I click on NetworkManager It says Wireless: Disconnected. I then tried to add the connection manually as if it were hidded (even though it should broadcast SSID).
I have tried with WPA2 and with no security what so-ever. It hangs, tries to connect for a minute or so, then fails. I have the Alfa AWUS036nh USB card. Here are my iwconfig and ifconfig ouputs:
[Code]...
View 9 Replies
View Related
Feb 1, 2011
I am trying to connect to the net wirelessly using Slax off my USB stick. I did the best I could using the wireless configure tool but Firefox will not surf - no connection. The configure tool shows that I am 'partly' connected in that it shows signal strength in green but I noticed that there is no entry for IP address. Am I suppose to know this and enter it? In LMDE, I see the IP as 192.168.2.10 and other addresses. Do I need to enter this stuff?
View 5 Replies
View Related
Apr 21, 2010
I'm trying to use tar to tar files before transfer, so I can keep the entire file path rather than losing it along the way. However, when I try to tar an empty folder, it tells me that it is cowardly refusing to create an empty archive. I want to keep the empty folder on the other end, but don't want to put anything else into the archive to make it non-empty. Is there any way to do this?
View 1 Replies
View Related
Aug 24, 2011
Is there any way to force 24-hour time in my locale (for example, 14:00) instead of 12-hour time (2:00 PM)?
I use the en_US locale with a UTF-8 character set on Arch Linux, but this shouldn't matter, I think.
View 1 Replies
View Related
Nov 3, 2010
I have set up a linux box running slackware 12.0, along with Apache 2.2.4, on my LAN I have a couple of computers. I want to force them to a webpage under document root, the webpage will be a agreement webpage. Is this possible to do with Apache? This will not be real domain, so my guess it that I would have to tell my DNS server to resolve the ip address to the hostname of my slackware box.
View 14 Replies
View Related
Feb 21, 2011
when i type the command ssh node2@ip the terminal hangs up a bit then an error message stating that connection timeout but here is a thing: i cant ping to node2 but i can terminate the ping manually using ctrl+c when i terminate the ping usual message appears stating 10 packets transmitted, 100% loss ps: when i go to node3 and ssh to node2 it works fine and also i can ping from node3 to node2 very fine. and the firewalls are down at all nodes
View 10 Replies
View Related
Jan 28, 2011
OS: Maverick Ethernet driver: tested with sky2 an sk98lin This has been driving me crazy for the last few months: if I unplug ethernet cable while my laptop is on reconnecting it sometimes does not bring the connection back.
And once ethernet is gone nothing that I try seems to consistently bring it back. Rebooting, disabling/enabling the driver, disabling/enabling NIC in BIOS, changing driver from sky2 to sk98lin, deleting connection from Network Manager, resetting the router - nothing helps. It seems to come back randomly a few weeks later. Once I used live Ubuntu on a USB stick and ethernet came back not only on a live distro but then when I rebooted also on my main OS. But when I tried that trick next time ethernet was missing in the live distro as well.
Also once I was able to revive ethernet but compiling sk98lin driver, blacklisting sky2 and rebooting. Of course next time doing the same routine did not help. The thing is - ethernet works fine with either sky2 or sk98lin and I can unplug the cable and plug it back in most of the time without any issues. But then every so often - bang and I'm stuck with only wireless until ethernet suddenly starts working again.
View 1 Replies
View Related
May 11, 2010
I have a rather puzzling error. I recently purchased an usb external hard drive with the intent of installing Ubuntu on it. I have had great success with installing various linux flavors on usb thumb drives but I need a little larger space for engineering applications that I use. Anyway, I removed my laptop's internal hard drive and installed ubuntu 9.10 on a recently formated external hard drive. Everything worked fine at first. Upon restarting I get an error that says "no boot sector" and it asks to hit either f1 to retry. When I hit retry, Grub loads most of the time. Occasionally it does not work. Is Grub just not installing correctly? I searched for this error but I found nothing that directly applied.
View 2 Replies
View Related
Feb 8, 2010
I'm using fwrite to write into a file stored in a normal USB flash drive. My question is: if for example a sector is damaged, does fwrite try with another one before getting me a result? If not, If I recall fwrite, will it try with a different one or with the same?
View 3 Replies
View Related
Aug 3, 2010
I had some trouble with the netinst CD and I had to install lenny with the 6DVDs instead. My internet connection only works after I edit the interfaces and resolv.conf files manually. So my question is: can I do that from the netinst CD before it actually needs the connection to install everything? (otherwise I'll just need to use the DVDs.
View 4 Replies
View Related
Apr 23, 2010
We have 20+ Redhat servers on our network and every so often our DHCP server goes down. When it comes back up we have to go around to all of our RedHat servers and restart networking manually. Other OS's (Ubuntu, Windows, etc..) will continually try to get a DHCP lease so that when our DHCP does come back up it requires no work from us for them to get back on the network. But it seems that Redhat only tries once and if it fails it never tries again. Have to go around to 20 different servers (some of them are at remote locations) is less then ideal when this happens. how we can get Redhat to continually try to get a DHCP lease like other OS's?
View 1 Replies
View Related
Aug 17, 2010
How do you configure proftpd so that once a user has failed to login and reached the MaxLoginAttempts. That they can not retry logging in for another 4 hours ?
View 6 Replies
View Related
Jan 6, 2011
I have two servers running Linux 2.6.9 kernel.When i telnet to server1 , the telnet will be disconnected only after 3 login failures. While, when i telnet to server2, telnet will be disconnected after the first login failure.expect server2 to behave the same way as server1 when telnet is executed.Kindly tell me where i should tweak my servers so that i could achieve what i expect.
View 1 Replies
View Related
Feb 21, 2011
I have a program that takes a relative path as input appends it to a some path string to get the actual path.
Now all I can input is the relative path. So if I want to go one level above my input will be ../mypath.
If I know the depth of the path used internally, I can use .. as many times to go to the root directory and then give the absolute path. But suppose I do not know the depth of the directory, can I construct a relative path string such that it considers it as a relative path. One way could be to have enough .. in the path string so that I can force an absolute path for some maximum depth of path.
Is there some path string syntax that I am not aware of but can achieve this?
View 2 Replies
View Related
Sep 6, 2009
I routinely build systems, and joy of joys, my ISP hosts one of the Centos Mirrors, and ergo downloads from there don't count against my ISP Quota
how do I force yum to use that particular repository for updates.
Alternately, I believe I can copy from there into my "local cache"? How does one do that?
View 3 Replies
View Related
Jan 29, 2011
I was just copying files over to Ubuntu from my USB/Memory Stick Pro Duo, and apparently, I don't have enough space left to copy over files to the desktop/where ever. I had about 1 GB of hard drive left at that time,(on Windows) so I switched over back to Windows and deleted about 9GB worth of stuff. Back on Ubuntu, guessing that didn't work cause I still get the error. But I deleted some space from the Home Folder by viewing hidden files.(only about 35MB) I have a 110 GB C: Drive.
And here is the outcome of "df -h"
Code:
Filesystem Size Used Avail Use% Mounted on
/host/ubuntu/disks/root.disk
3.6G 3.5G 600K 100% /
tmpfs 990M 0 990M 0% /lib/init/rw
varrun 990M 220K 989M 1% /var/run
varlock 990M 0 990M 0% /var/lock
udev 990M 176K 989M 1% /dev
[Code]...
View 1 Replies
View Related
Apr 1, 2009
I am running 5.2; have not configured or installed anything special; and need to perform an update and get the dependencies installed, too. What is the best way to do that?
View 10 Replies
View Related
Dec 11, 2009
Back when I used openSUSE 10.3 with KDE 3.5.x I used the KDE-specific version of blueproximity found here: K-Blueproximity KDE-Apps.org. The thing that made it great was that it integrated kscreensaver.
It hasn't been updated in a couple years and isn't compatible with 4.3.x so I'm using the non-KDE-ified standard blueproximity package. For the most part it works. Based on comments I found somewhere I'm running the following command to lock the screen:
Code:
qdbus org.kde.screensaver /ScreenSaver Lock ; xset dpms force off
and to unlock:
Code:
xset dpms force on ; killall -9 krunner_lock kblankscrn.kss
.
The problem is that the unlock command doesn't work. My monitors will reactivate and the screensaver will display but in order to actually unlock I have to hit a key/move the mouse and enter my password.
what the command should be to actually unlock the screen since the above doesn't work.
View 2 Replies
View Related
Mar 5, 2010
Is there a way to force a domain to resolve to a specific IP using .htaccess?
View 1 Replies
View Related
Jul 24, 2010
My audio setup is based on a single guitar amplifier, and from this I suffer from only being able to listen to one of the two stereo channels. Since I honestly don't care for stereo, I'd rather force Ubuntu to output all audio as mono instead of "upgrading" to a stereo compatible setup.Is there a way to do this?
View 8 Replies
View Related
Aug 29, 2010
Just got a spare computer running ubuntu. The monitor it has atm has a problem where the screen goes crazy,the colours flicker and there are lines all over. I'm pretty sure its the refresh rate as the monitor can only support 55hz and 60hz. However, Xserver wont allow me to go below 75hz.Specs (very low I know ;D)nVidia 7600GS
AMD 32002 gig ramAMW M199D
View 4 Replies
View Related
Apr 28, 2011
trying to run stuff from CD or DVD ROMS >without< copying to my cluttered hard drive, and came to a thought that I'd like evaluated: Would it work to perhaps use sed during the cd-rom auto-mount or some other point to enable the executable bit for *.exe and other 'executables' to somehow override the read only factor? I'm not too familiar with sed except that i know it can insert/replace new patterns of data for defined patterns of existing data.. so would something like this work? Could it be implemented as permanent function of Ubuntu to 'checkbox' cd/dvd mounts to insert the exec' bit on all, known, or choice files as a sort of 'virtual' permissions that can be placed on RO mounts?
View 2 Replies
View Related
Jun 29, 2010
It there a way in linux to force atomicity of user code sections on a multi-core x86 chip?
I know in classes I have taken we disable/enable interrupts, but I don't think that works on a CMP.
Basically, I want to stop the kernel from being able to switch off my process for some period of time.
View 5 Replies
View Related
Apr 27, 2009
running a large program on a remote SSH server the other day when I was disconnected. This is a large program, ~48 hours to complete, and I was disconnected around hour 40. I have restarted the program using the following (Note: I am already ssh'd into the server) ./20090427_9crossing > 20090427_9crossing.out & Now, I believe this will run the program in the background and output to the file. So, if I get disconnected again will it continue to run? If not, is there a way that I can get it to keep running?
View 7 Replies
View Related
Feb 2, 2010
The Network Manager on KDE gets DNS configuration from DHCP and sets it automatically, but I would like to use the Google Public DNS. If I overwrite /etc/resolv.conf with nameserver 8.8.8.8 it still resolves names with the old DNS (probably cached in memory) and, of course, even if it worked, it would be annoying having to do that every time I connect to a network.
I've noticed the Network Manager lets you specify a fixed DNS with the rest being taken from DHCP, but that's on a per network basis, and I would like to set it once for whichever network I connect to (if you're on the go with a laptop that becomes an issue).
View 1 Replies
View Related