General :: Ubuntu 11.04 - Limiting CPU Processing For Flash App
Jul 26, 2011
I'm using Ubuntu 11.04. I'm running processes that repeatedly spawn Firefox browsers with Flash embedded in the pages. Occasionally the Flash processes (npviewer.bin) spin off and use almost all the CPU power. How can I limit the total CPU usage of all the Flash pieces to no more than 30% of CPU?
View 3 Replies
ADVERTISEMENT
Feb 20, 2010
Code:
dpkg: error processing adobe-flashplugin (--remove):
Package is in a very bad inconsistent state - you should reinstall it before attempting a removal.
Errors were encountered while processing: adobe-flashplugin
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Press return to continue.
Now I can't install anything, I am using Kubuntu 9.10, and have tried fixing this with aptitude and nothing works.
These are some of the things I tried.
Code:
sudo dpkg --clear-avail
sudo dpkg configure -a
sudo dpkg --remove adobe-flashplugin
sudo dpkg --install adobe-flashplugin
View 2 Replies
View Related
Mar 1, 2010
New to Fedora (from Windows), I am up and running ok with packages from the repository but only half ok with Processing, the Java graphics programming front end from processing.org.Their download gave me a .tgz file which Package Manager extracted for me into a location of my choice and where there is now a "processing" shell script.This works ok and I have managed to create a launcher on the desktop. That starts ok but always with processing's default action of giving you a new and automatically named work file.In Windows an existing Processing file (.pde file) could be "opened-with" Processing. Trying to do similar in Fedora I find that I am expected to nominate an Application to open with but Processing has not installed as an application.I guess the question is how do I promote Processing to be an Application?Or is there a different approach?
View 4 Replies
View Related
Feb 1, 2011
FTP servers I use frequently have imposed a simultaneous connections limit, usually 5-10 at the time. It was no problem under Windows, since Windows artificially limits allowed FTP connections to ~10 as far as I know. But it is a problem under Linux very much since I cannot find how to limit them :/ So far I used these clients: Native FTP client (Places -> Connect to FTP server). No apparent way to limit connections.
FileZilla. Under particular server settings you can limit number of simultaneous connections. Also you can do that globally in Edit -> Preferences -> Transfers. Problem is, it doesn't work, I still keep getting the 530 Sorry the maximum number of clients (10) for this user are already connected. And netstat shows quite a few simultaneous FileZilla connections no matter that I limited them to 1 both in global and local settings.
NCFTPPUT. 10 successful uploads and hi 530. Total Commander under Wine. Same. NetBeans IDE integrated ftp. Same. Some other crapy FTP clients which names I already forgot. Same. OS is Ubuntu 10.04 So, is there any way to force any of these FTP clients to use less than 10 concurrent connections?
View 1 Replies
View Related
Feb 20, 2011
I just created new user account, but the new user is able to access all the directories structure (including other's home directories).I'd like to limit the user to access ONLY his home directory (and nothing "above"). How do I do this?
View 1 Replies
View Related
Jun 22, 2010
Is there any good tool in GNU/Linux that copy files like cp, but also shows progress and limits speed (and changes limit without interruption) like pv?
Prototype: find source_directory | cpio -H newc -o | pv -s `du -bs source_directory/ | awk '{print $1}'` | (cd /destination/directory && cpio -di)
Also rsync -aP source_directory /destionation/directory/, but this shows progress bars individually and can't change rate after started. Or may be I should just write a wrapper for pv/cpio? Done.
View 2 Replies
View Related
Mar 3, 2011
while start following some tutorials, i face lot of problems only with nvidia-driver.for example, if i try to apt-get install chkconfig, the result will be as below:
Reading package lists... Done
Building dependency tree
Reading state information... Done
[code]....
View 12 Replies
View Related
Jul 28, 2011
While converting some images using ImageMagick, I noticed a somewhat strange effect. Using xargs was significantly slower than a standard for loop. Since xargs limited to a single process should act like a for loop, I tested that, and found it to be about the same.
Thus, we have this demonstration.
Quad core (AMD Athalon X4, 2.6GHz)
Working entirely on a tempfs (16g ram total; no swap)
No other major loads
[Code]....
View 1 Replies
View Related
Apr 8, 2010
I am working on the script parsing specific message "TEST" from multiple file. The log file name looks like:
N3.2009-11-26-03-05-02.console.log.tar.gz
N4.2009-11-29-00-25-03.console.log.tar.gz
N6.2009-12-01-10-05-02.console.log.tar.gz
I am using the following command:
zgrep -a --text "TEST" * | awk -F"[ .,]" '{sub(".*:","",$6); sub(",.*","",$7); print $1,$6,$7,$10}
and getting
N3 2009-11-25 20:12:57 TEST
N4 2009-11-28 10:42:18 TEST
N6 2009-12-01 10:00:24 TEST
If I only want to search the log file after 2009-11-29, what shall I change the command?
View 1 Replies
View Related
Mar 5, 2011
I want to write a script. I have the basic form working... but I would like to add some advanced features. I have a list of .zip files that have a version number in the filename (i.e. sudoku-134.zip, sudoku-176.zip, sudoku-203.zip, etc). I would like to have a script that will find the latest version of each game, and unzip it. I want the next to latest version left untouched. But anything older, I would like the unzipped folder deleted (But leave the .zip file)
Here's what I have so far:
Code:
#!/bin/bash
cd /var/www/vhosts/server.com/httpsdocs/games/$1
for file in `ls *.zip`; do
if [ -d ${file%.*} ]; then
echo
else
mkdir ${file%.*}
cd ${file%.*}
unzip ../$file > /dev/null
cd ..
echo 'date' $file >> /var/www/vhosts/games4roku.com/private/$1.log
fi
done
I can call the script with "game-unzip public" to unzip all the public games.
Here's my files:
Code:
sudoku-134.zip
sudoku-134/
sudoku-176.zip
sudoku-176/
When I add the latest version, sudoku-203.zip, I want it to unzip it to ./sudoku-203/ and rm -rf sudoku-134
View 2 Replies
View Related
Aug 5, 2010
I am new to this network and to linux and have a question involving instructions I have received from a faculty member. I am trying to run a program to compile some GUI output files for PFDTD processing to create electromagnetic survey models. I created a symbolic link to a file subdiv.f90 which is a software tool for partitioning a Maxwell block into multiple blocks for parallel processing on multiple processors. I was told to use the command:
ifort -O2 subdiv.90
to compile it, and that I may have to use the module command:
module include intel-compilers-10.0.023
to compile the code. Neither have worked and I am wondering if anyone knows of an alternative compiler command that I might try.
View 1 Replies
View Related
Mar 21, 2011
I am using cent os 5. When we turn on the PC I can see things which are going to be loaded and the status is [ok] in green colour. Which file linux uses for this process.
View 1 Replies
View Related
Apr 12, 2010
You may have seen some other posts by me about my final year college project. Im implementing a web based network management website. Iv got a lot of the functionality working at this stage but one part is allocating bandwidth.
Iv got an eircom 3mb broadband connection and I want to be able to split this between users. At the moment I only have my desktop and laptop on the network. Im looking for advice on how i can allocate bandwidth with iptables and/or the tc tool in ubuntu.
My website is on an ubuntu virtual machine and written in php. Whatever about running the iptables and tc commands from php I still need to figure out the actual commands i need to use in the first place.
View 14 Replies
View Related
Nov 30, 2010
I have a teenage daughter that understands Ubuntu, but not so much the terminal, and she does not know the superuser password. Unfortunately, she regularly goes on the Internet during the nighttime and in the early morning. What I am attempting to do is prevent anyone from going onto the Internet during the night (11 PM - 5:30 AM) unless they know the superuser password or a fair bit about the terminal.
I have already tried some commands, however all of them can be bypassed by restarting the computer. ex. sudo ifconfig eth0 down
For additional information on my Internet:
My Internet connection is relatively slow, so I would prefer if the solution does not hinder it any further. It is slow because there is no high-speed in my area, and I am forced to use Xplorenet -> "Fixed Wireless". I do not have a router.
View 9 Replies
View Related
Mar 6, 2011
I have a script that basically takes a list of IP addresses, and pings them to tell me if each device (Access Point) is online or not. The problem with that is, the list contains about a hundred addresses. Making the problem worse is the fact that using a single ICMP packet per device is not an option since, at certain times of the day, the network is too congested to guarantee that a single ICMP packet won't be dropped, despite the device being up and running. That means I need to send multiple pings per device for about a hundred devices. As you can imagine, doing this sequentially takes a while.
What I want to do is make my script open other threads in the background to ping multiple devices in parallel. The problem with that is - if I simply make each ping command run in parallel, soon there are a hundred background tasks, one for each address, and that consumes a lot of CPU (CPU hits 100% and stays there till the script is done). Is there a way I can make about 10 threads run at a time, and any other threads will queue until a spot opens up for them? Kind of like the token bucket, except when there aren't enough tokens, the main script waits until it can launch more background threads that ping the next addresses on the list.
View 3 Replies
View Related
Apr 3, 2011
How can i limit disk space usage for one user? Like.. User john123, you can only use 100mb of my harddisk. User jake155, you can only use 250mb of my harddisk.
View 1 Replies
View Related
Feb 21, 2011
I have 2 ISP where give me IP Public with ISP A (/29) and ISP B (/28). So, I connect this two ISP to unmanaged switch. And from that switch, I take one cable connected to eth0 on the server. (Note : My server have 2 dev ethernet, eth0 and eth1). eth1 will go to the Switch which will go to the LAN.
My Question is : 1. Is this possible to make bandwith control on the gateway server with mode separating International bandwith and local bandwith (my country bandwith)? ie, for my Mail Server I will give the "intl bandwith" only 512 kpbs and for local bandwith with 1Mbps. What a software can I use for this model ?
2. Which model I should to used, with NAT or with Bridging router? That's all for now..
View 5 Replies
View Related
May 20, 2011
I'd like to discourage the SSH bots that try to log into my system (CentOSv5), and among other things, I've changed my SSH port to someting other than 22. As well, I've been playing around with the idea of some iptables rules (note port 22 is used here as example):
Code:
# Allow SSH with a rate limit
iptables -A INPUT -i ppp0 -p tcp --syn --dport 22 -m hashlimit --hashlimit 15/hour --hashlimit-burst 3 --hashlimit-htable-expire 600000 --hashlimit-mode srcip --hashlimit-name ssh -j ACCEPT
iptables -A INPUT -i ppp0 -p tcp --syn --dport 22 -j LOG --log-prefix "[DROPPED SSH]: "
iptables -A INPUT -i ppp0 -p tcp --syn --dport 22 -j DROP
I am *NOT* an iptables expert. What do you all think about the above code snip?
View 4 Replies
View Related
Aug 27, 2010
So: On the VPS / Dedicated Server Linux wich 3 users created. How can I limit bandwidth each in a separate? For example first user speed 1 MB. 5 MB second and third 10 MB. Expect some clear answers. Regards, Silviu!
View 5 Replies
View Related
Jan 27, 2011
I run Debian 64-bit. I host GameServers on my machine. Yesterday, some corrupt files or error in configurations of one of the game-servers caused my whole system to destabilize. On checking, I saw one of the Gameserver's console giving Net_sendpacket spam errors. I disabled that server and things were fine then. It used up more than 100GB of my bandwidth in just 12 hours.
I deleted the server and copied all the files over again to fix that error. Now I want a prevention to this, if just in case it happens again. I want to limit a sub-user's bandwidth in Linux. Like if I want a user only to use 10GB bandwidth per month + not more than 5MB/second. Is there any way to do it?
View 2 Replies
View Related
Sep 10, 2015
Got a few more questions from the Debian Security Howto.
Section "4.11.2 Limiting resource usage: the limits.conf file" page 44
Code: Select allnano /etc/security/limits.conf
At the bottom I get...
Code: Select all#<domain> <type> <item> <value>
#
#* soft core 0
#root hard core 100000
#* hard rss 10000
[code]...
Do I have to uncomment these lines for them to take effect?
View 2 Replies
View Related
Apr 6, 2010
This is are magic file who kill 20 linux nodes today and.. of course i want to ask - What i can do for limiting size of nscd.log file? i try to find help in man files: nscd and nscd.conf - but nothing about log size. (just paranoia mode with auto restarting.. but this sounds ugly. i need just limit log file size)
View 2 Replies
View Related
Mar 6, 2011
I have about 5 machines that are under Ddos daily and I use rate-limit for Iptables to protect that and it works good.My UDP ports 20100 to 20400 are actually under Ddos so these are the commands I use:
Code:
A INPUT -p udp -m udp --dport 20100:20500 -m state --state NEW -m recent --set --name DEFAULT --rsource
[code]....
View 5 Replies
View Related
Oct 12, 2010
I have a multi-threaded process running and I have to limit the cpu time used by each of the threads. If 1 of the threads uses the whole of configured CPU time, the other thread should sleep and not consume CPU time in that cycle. 1 thread has higher preference over the other. How can i implement it my CPP code?
View 1 Replies
View Related
Apr 7, 2009
Is it possible with vixie cron to limit cron's activities by the current load average? Basically I'm looking for the same functionality that's in fcron, but I'm restricted to use the vixie cron with CentOS 5.3.If not, does anyone have any recommendations on limiting the impact that cron has when it runs 20-30 user-specified crontabs at once?
View 4 Replies
View Related
Dec 13, 2010
On our web server I want to have a WebDAV folder and I would like customers to be able to log in with MySQL authentication from our customers database (this I have set up with no problems and it works fine). HOWEVER, I want each customer to have their own subfolder and, having logged in with access to the main WebDAV folder, I want each customer ONLY to be able to access their own subfolder(s). I don't mind them seeing other subfolders exist but obviously I don't want them to have access to other customers subfolders.
OK, of course I could achieve this by adding new WebDAV locations to the httpd.conf for every customer but with a large number of customers httpd.conf will become very large and messy. I have tried applying further restrictions by putting an .httaccess file in each subfolder but that doesn't work - indeed the presence of a .htaccess file oddly prevents users from seeing any other files in the subfolder but has no effect on the access.
View 1 Replies
View Related
Jan 22, 2009
I have a fedora 9 server. It is used purely as a dedicated server. Until recently I never came close to my allowed bandwidth of 1 TB but I expect that may change in the near future because I will be adding many files for downloading. I have Apache 2.2.9, PHP 5.2.6, mySQL 5.0.51 and Webmin 1.441.
The most critical thing is monitoring total bandwidth and then doing a job, probably using Cron to change a folder's name, to stop downloads before a critical point is reached and my sites shut down. I would also probably eventually like to limit member downloads so all members of the sites get a chance to download and one person doesn't use all the bandwidth. I expect that would be possible using php. to log the bandwidth used by members. I know php but I don't know how to get the bandwidth using php.
View 1 Replies
View Related
Feb 4, 2011
I see on my webserver some logs as follows Quote:
203.252.157.98 - :25:02 "GET //phpmyadmin/ HTTP/1.1" 404 393 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
203.252.157.98 - :25:03 "GET //phpMyAdmin/ HTTP/1.1" 404 394 "-" "Made by ZmEu @
[code]....
View 2 Replies
View Related
Sep 24, 2010
My server listens to POP3/IMAP requests. Some users have configured their mailers with high checking frequencies, say once every minute, such that the system logs are full of entries with no significance at all.I'd like to ask if there is a way to limit the per IP frequency of POP3/IMAP access ?I'm using "xinetd" to wrap the "ipop3d" and "imapd" which come with the Alpine package.
View 4 Replies
View Related
Jul 6, 2010
Im using postfix on my server and i need change a ip adresses for mail boxes.Example : xxx@xxx.com using x.x.x.1 ip adres.and i need yyy@xxx.com how it can use x.x.x.2 adress.How can i do that ?And i need count which mail how much mail sended .How can i count and limit ?
View 2 Replies
View Related