Ubuntu :: Renewing IP In A Periodically?
Sep 22, 2010
I want to use a script to renew my IP every 5 minutes. I have a static IP and it seems that when another person enter the same IP address as mine, my IP is stolen and is assigned to him.
I know that Cron is responsible for running a script at some time interval. How can I use that to renew my IP?
View 2 Replies
ADVERTISEMENT
Jul 18, 2010
Whenever I disconnect the LAN cable from my Linux box or reset the router the IP doesn't seem to get renewed and so I'm unable to SSH into it or connected to the webservices it is running.When it boots up it gets an IP fine from DHCP on the router but once the system is up and something changes like the router reboots or cable is disconnected, then this is when the problem occurs.sometimes if you go back to the actual Linux box in my loft and open a terminal and runcd /etc/init.d/./networking restartthis will cause it to get a new IP from the DHCP server but this isn't very convinient and a bit haphazard.
View 6 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
Apr 20, 2010
I have to run this page: [URL].., because it fetches the content of some feeds(RSS) and then inserts into Database and then sends SMS texts to subscribed users. when i run it with php-cli in bash like this: php feeds.php?u=y&d=y
I only get:
[4] 11719
but nothing happens, running it like this: black@loopserver:/var/www/loop/cp$ php 'feeds.php?u=y&d=y' Could not open input file: feeds.php?u=y&d=y
Can any one please tell me what to do? I think the problem is coming by passing get parameters, if i just run feeds.php everything goes fine, but I need to pass in those.
View 5 Replies
View Related
May 21, 2010
Does anyone know if the ISO is updated periodically? Also is it just me or is Google Chrome faster than Firefox?
View 2 Replies
View Related
Jan 24, 2010
I have ubuntu 9.04 and once every 30 mins or so my mouse freezes up for 1-3 seconds. This generally does not bother me except when im playing games
View 2 Replies
View Related
Feb 25, 2010
use kubuntu 9.10 64-bit on AMD Turion M500 machine.The network keeps disconnecting periodically or on some heavy activity The connection is totally stable on windows 7 though.My doubts point to network manager and so my next step is to switch to command line wpa_supplicant
View 1 Replies
View Related
Jun 13, 2010
I have an Ubuntu 10.04 installation that I have been using for about a month. However, just recently, at random times for about 5 seconds I can't use my mouse or keyboard.When it does that, the computer isn't frozen, I just can't type.About 5 seconds later, all the text that I was trying to type suddenly appears. I have 4GB or RAM, and even when I barely have any programs running and at 0% of resource usage, the problem still persists. This has just been happening for the past day or so.
View 5 Replies
View Related
Jun 23, 2010
I just upgraded from Ubuntu 9.10 to 10.04 LTS, and my system seems to have developed a weird problem. Every few minutes, especially when I'm using chrome, VLC, or the screensaver is running, Xorg will start to spike in its CPU usage - spikes occur several times per second, and generally go up to 50-100%. Spikes seem to be composed of half "System" and half "User" according to my System Monitor applet thing.
Weirder than the problem is the thing which seems to stop this behavior - going to a terminal which is running top and hitting enter a few times seems to invariably return the CPU usage to usual (within seconds). There does seem to be a ~10 second period where the system monitor shows a few % "System" activity. Xorg starts up again with the same spikes within minutes, however.
EDIT: It looks like almost any keyboard input to any terminal also stops the Xorg CPU use - things which change the state of the other terminal, e.g. hitting the spacebar, typing a letter, will work, while hitting CTRL or SHIFT does not suffice to return the CPU use to normal.
I'm using an NVIDIA proprietary driver (which system->administration->hardware drivers says is (version current) and Recommended). My graphics card is a GeForce 9400 GT. I'm using Kernel 2.6.32-22-generic, and x86_64 Ubuntu. Here's my xorg.conf file:
Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@crested) Sun Feb 1 20:25:37 UTC 2009
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder62) Tue Mar 24 06:15:32 PST 2009
[Code]...
View 9 Replies
View Related
Nov 23, 2010
I am not sure exactly what is going on, but my ASUS UL30a (X32a) keeps locking up until I press a key, then it seems to resume for a while.
At first I thought it was just the mouse, but I noticed that the screen stops refreshing also. Hitting the space key (or any other key) brings the systme back to life (until it happens again).
It is a fresh install of Ubuntu 10.10, not much seems to be going on in the top list (compiz 1%, xorg 0.5%)
I am looking for ways to try and diagnose the problem (if not fix it )
View 9 Replies
View Related
Nov 28, 2010
Do you know of any software that moves the files on my desktop periodically to set locations according to types mime types? For example, move all pictures to pictures folder or move all documents to documents folder.
View 4 Replies
View Related
Jul 4, 2011
I have a webcam that periodically gets dumped and I have to unplug and plug back in to get it to work again. I think it has to do with somethign about how the webcam is USB 2.0 but my PC is USB 1.0, even though it says it is USB 2.0. In Windows it would also dump it but then it would automatically remount it.
View 1 Replies
View Related
Jul 1, 2010
I have Apache, MySql server, and phpMyAdmin installed on my desktop. With the default installation of phpMyAdmin, I should be able to log in as root without a password. (Or at least every other time I have installed it, I could.) However, that isn't the case. I can't log in to phpMyAdmin period. I have tried setting the password for root with MySql through the terminal. Still no results. No matter what I do, when I try to log in to phpMyAdmin, I am denied access.
this is a fairly common issue (though I have never encountered it before) as I found similar posts in numerous forums, etc. I finally found a solution and now have it working. In case others have a similar problem, I am posting the solution that I used here. First open a terminal. Then use the following command
Code:
mysqladmin -u root password NEWPASSWORD
Substitute NEWPASSWORD with the password that you want to use and then you should be able to log in to phpMyAdmin as root with the new password.
View 2 Replies
View Related
Jan 23, 2010
Generally, my sound works in all applications and browsers...but every day or two, it suddenly quits and won't work again until I reboot. I am running Ubuntu 64, 8.10 and my mobo has a built-in sound card.
View 1 Replies
View Related
May 8, 2010
Since Lucid install the cursor periodically disappears, both mouse and trackpad. Requires restart.
View 6 Replies
View Related
Oct 15, 2010
New Toshiba laptop dual booting with Windows 7. I really like MM 10.10 and most things are working great! Periodically I will be web browsing and I lose connection. At first I thought it was Firefox but if I try to disconnect wireless and reconnect it will no longer connect unless I reboot. My network is hidden but Ubuntu finds it no problem on a fresh boot and connects per my settings and it is not a network problem since I can connect to Windows all day long and the rest of the family never has problems.
My wirless device is: Realtek Semiconductor Co., Ltd. RTL8191SEvB Wireless LAN Controller (rev 10)n and all OS updates are applied that I can find. I am thinking about un-hidding my network since years ago that used to be a problem with Redhat and even early Ubuntu but beyond that I cannot think of what else to try.
View 9 Replies
View Related
Sep 15, 2010
It's a bit unnerving.The monitor suddenly goes black, the keyboard resets, the mouse resets. And after about 2 - 3 seconds all is back to normal.My USB setup is a bit complicated (mostly because I could). A 7 port hub is connected to a USB port on the computer. Among other things, the 7 port hub is connected to a four port hub on the monitor (Viewsonic). The mouse is connected to the 4 port hub. The PS1 keyboard is connected to the PS1-to-USB convertor which is connected to the 4 port hub.
View 4 Replies
View Related
Dec 29, 2010
Why does my monitor flashing periodically?
I tried to change the Resolution and Refresh rate. But it does flashing yet. When I installed the system that flashing too. Period of about ten seconds
In windows xp dont have this situation.
My monitor is "HP vs17" Ubuntu version is 10.10 Desktop
View 2 Replies
View Related
Aug 20, 2010
I've bought an used computer with DQ965GF motherboard which includes GMA3000 integrated video, Sigmatel 92XX (from what specs say) audio codec, and CoreDuo processor. Also 1 GB DDR2 RAM.It worked great when I tested it using live Ubuntu 10.04, Compiz worked out-of-the-box, etc.But when I installed and started playing movies, I found problems. Videos pauses from time to time, approx. once a minute (randomly), even when there's no other activity. They pause for a very short moment, half a second maybe, with audio, then resume, usually with 1-2 secs period of slowed down playback (like, trying to get up to speed and sync), then resume normally.
I tested with mplayer and totem, seems to be the same, though on mplayer the effect seems to be less frequent / shorter delays.Can this be video driver? Audio driver? Motherboard issues? BIOS settings? How do I test?The videos that I play are usual DivX AVIs, can't be speed problems. Also, when I replay the paused parts, they do not pause again, so these are probably not movie/hard drive errors.
View 1 Replies
View Related
Jan 17, 2010
how to untar a file name /opt/Backup/abc.tar.gz2 periodically with crontab in debian. My Script name is abc.sh and i write it as
crontab -e
*/2 * * * * /bin/sh/ /opt/Bachup/abc.sh
while my abc.sh file is as under
#!/bin/sh
tar -xvf /opt/Backup/abc.tar.gz2
But it did not give any result. When i run it as sh abc.sh. it works succefully. but not in the crontab.
View 4 Replies
View Related
Jan 3, 2016
I have a custom .Xmodmap file to change the keyboard layout. The problem is that sometimes the keyboard layout changes back to the default. I have seen the lights on the keyboard blink at times, so I tried unplugging and reconnecting the keyboard and yes - that reset the layout. I can see keyboard removed/detected entries in the logs as well, so I guess my keyboard reconnects sometimes, I don't know why. However the solution from the post earlier (to rename the xmodmap file to ~/.Xmodmap) did not work. So is there another default filename I should use? Or do I have to enable xmodmap to run when a keyboard is plugged in somehow?
The only thing I can think of right now is to monitor /var/log/Xorg.0.log for "Adding input device USB Keyboard" and running xmodmap when that happens... but I'm really hoping for a better solution.If I can't fix the xmodmap problem, maybe I can fix the usb disconnects.I read something about power saving settings for usb. After some digging, I found that those settings are in /sys/bus/usb/devices/.../power/. However, disabling autosuspend for the hub did not seem to work (it was already disabled for the keyboard).
But I found something else in kern.log. Perhaps the keyboard disconnects has something to do with static electricity?
Code: Select all[ 7078.175830] usb 1-10-port3: disabled by hub (EMI?), re-enabling...
[ 7078.175888] usb 1-10.3: USB disconnect, device number 4
[ 7078.624349] usb 1-10.3: new full-speed USB device number 6 using xhci_hcd
[ 7078.729012] usb 1-10.3: New USB device found, idVendor=04d9, idProduct=0125
[ 7078.729014] usb 1-10.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 7078.729016] usb 1-10.3: Product: USB Keyboard
View 0 Replies
View Related
Mar 14, 2010
I recently updated my girlfriends laptop (and my own) to KDE 4.4 (using the Factory repository). I am also using some additional repositories like PackMan.
I recently read on this forum, that the updater-applet is only updating from the main repositories (the ones set up after install). I would like to update from all updates periodically using "zypper dup".
I read somewhere else, that cronjobs are used to run scripts based on schedules. how I could run "zypper dup" with a cronjob and preferably under root, so I dont have to type the password every time?
View 9 Replies
View Related
May 24, 2010
I am running a nvidia gt220 video card and dual monitors. The acer monitor blanks out and in periodically. Quite often at times. I believe this is a driver problem. What I am wanting to do is roll back to an older driver. In the nvidia repository I only see the newest one listed and that is the one I am using.
I am thinking the 185 driver is what I have used before without any problems. Really not sure which one it was, but it was an older one. So the question is how can I get back to the older drivers so I can try and see which one it was.
View 2 Replies
View Related
Apr 5, 2010
I am running Linux Mint 8 on my Dell Precision 350 computer. Every so often (sometimes every few hours, sometimes every few days, it appears to be random) my desktop will crash and display the message:
"70822.286411 EXT4fs error (device sda1): ext4_ext_check_inode: bad header/extent in inode #139281: invalid magic - magic 800c, entries 121, max 3278020), depth 171(171)"
This is displayed several times on all of the terminals, but with different numbers each time. When this happens, typing any commands in the terminal result in the error message being displayed again. When I restart after this happens, linux generally displays "Give root password for maintenance (or type control-D to continue):" and I give the root password. Running "fsck /dev/sda1" seems to fix this problem for the next boot, but then it will come back in either a few hours or a few days. Reinstalling the distro does not work, as I have already tried this. I suspect a hard disk error, but before I run out and buy and install a new hard disk, I wanted to know if maybe there is some way to fix this through software.
View 3 Replies
View Related
Aug 1, 2011
I'm having a problem with Samba. In log.smbd Im getting this message periodically:
View 8 Replies
View Related
Jun 14, 2010
i have a client and server program in C. in that program server is requesting some parameters from client (like systems up time, total memory, no of process running etc).for this i used switch statements. but the problem i am having with this is that,
1. it is always going in default case on client side.2. and i also want my program to send requests/messages to client periodically. means after some interval (say after every 2,3 mins) server sends next request to client.
View 3 Replies
View Related
Jun 8, 2010
Have you noticed the space "background set" that is in Ubuntu from the 9.04?It is an xml file (as I discovered on this beautiful forum ).But creating it manually is very boring and long, it would be simpler to put wallpapers into a directory and use them all as background set. So I've created a simple script that generate the xml background file with the images in a directory. You can set the timetion of wallpapers and of transitions setting the proper parameters.
here's the link to the script:generateXMLBackground.shHow to use it?Create a directory and put into it all images you want to be in the background setOpen a terminal [Applications->Accessories->Terminal]Type "cd " and drag into the terminal the directory previously created and press enterDrag into the terminalhe script generateXMLBackground.sh and press enter [you can use parameters -t -d. For help use the parameter -h]The xml file has been created!!Now you only have to set it as background:in the "Change desktop background" window click "Add", navigate to the directory created at the beginning, set the type filtre to "All files" (at right bottom, normally it is 'Images') and choose the .xml file named #DIRNAME#Background.xml.Note:not run the script generateXMLBackground.sh you have not rights type into the terminal "chmod +x " drag the script and press enter (to make it executable).
View 9 Replies
View Related
Jan 25, 2011
after maybe half an hour, the wireless download rate drops to about 110ks (and runs happily at up to 20x this until then). At that point, it will never pick back up above that rate unless i disconnect and reconnect. Once the problem occurs once, its like to reoccur about every 5 to 10 minutes until the machine has rebooted.
[Code]...
View 2 Replies
View Related
Feb 12, 2011
I have a recent install of squeeze. Beside applications from the squeeze repos, I have installed a few applications from their own deb files / repositories, such as Skype, Google-Chrome (not the chromium in the squeeze repos), Opera and Teamviewer.
All those placed their menu entries in the gnome menu, however periodically, at a new login, the Google-Chrome and Teamviewer menu items are missing. The applications are still there, but they dont show anymore in the menus. Only way to get them back I found so far is to reinstall the application.
View 12 Replies
View Related
Feb 17, 2011
I am running testing (with fluxbox) and my keyboard periodically freezes, meaning whatever I type in it doesn't respond. This lasts a few seconds (can be 2-3 or sometimes even more like 10) and one's it comes back I get all the keystrokes I was typing during the freeze. The frequency of the freezes can be like 4-5 times every hour and are very annoying. I can't seem to relate them to anything, they can occur during heavy usage but also when the box is doing absolutely nothing but waiting lazily for me to type some google search terms.
Can anybody help me track this problem down? At the moment I am using a wireless keyboard but this must be unrelated since I tested a couple of other keyboards (both wireless and wired) and the problem persists.
View 1 Replies
View Related