I'm getting the following error message in ffmpeg:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (MIT-SHM)
Minor opcode of failed request: 4 (X_ShmGetImage)
Serial number of failed request: 11
Current serial number in output stream: 11
I turns up when I run the bash function mentioned in a forum post about streaming in Linux.
What does it mean and how can I fix it?
I want to change OpenJDK to SunJava in my ubuntu linux desktop , i have downloaded the "jdk-7.tar.gz" from sun's website, but there problem is how to make the system to use the newly downloaded java ? I tried adding the new jdk/bin/java to my PATH ( from .bashrc ) but that seem not to work (cause probably OpenJDK's path is inside my PATH variable as well , so the system checks that first)
Here's my JDK7 : /usr/lib/jdk7/bin/java
Here's what $(which java) outputs : /usr/bin/java
Thanks in advance
I'm experimenting with large changes to Linux system runtime parameters exposed through the sysfs virtual file system.
What is the most efficient way to maintain these parameters so that they persist across reboots on a RHEL/CentOS-style system? Is it simply dumping commands into /etc/rc.local? Is there an init script that's well-suited for this? I'm also thinking about standardization from a configuration management perspective. Is there a clean sysfs equivalent to sysctl?
debian4 linux
i have the following cmd line which works fine
rsync -avr -e ssh /home/dir [email protected]:/home/
but i need to setup it up now to rsync to a remote server that only has ftp on it
how do i go about that ?
i looked at the rsync help but quickly got lost (i don't do this stuff very often)
thanks
alex
Can anyone recommend a linux command line tool to monitor the number of bytes transferred between the local server and a specified IP address/port.
The equivalent tcpdump command would be:
tcpdump -s 0 -i any -w mycapture.trc port 80 host google.com
which outputs :
46 packets captured
131 packets received by filter
0 packets dropped by kernel
I'd like something similar that outputs:
54 bytes out, 176 bytes in
I'd like it to work on RHEL and be free/open-source. It would be good if there was an existing tool which I was just missing too!
How does one judge potential memory and processor needs for linux web servers? Specifically, given:
A Debian or Ubuntu OS
Running a web server (apache2), and
A database (MySQL), and
A DNS server (bind), and
Being used by up to 100 concurrent users, at some points each downloading high-resolution (0.5 to 1 MB) images via a web app.
How much should one budget in terms of RAM, type of processor(s), and number of cores?
Thanks!
Is there a way to get DVD region code from command line (linux/ubuntu 9.10)?
I want to script this action and store the region code (and other data about DVD) in a log.
I am pondering on what would be any implications in logging in via SSH as root?
Surely SSH is safe or am I kidding myself and falling for the unwary ethic of logging into a remote Linux box as root?
Thanks.
I have a website running off site. When we hire someone I would like to create a test site (a copy of live site) for the new employee to tinker with. I will need to take fresh copies of the Files and Database (basically a snapshot) and allow them to access these copied files and database so they could edit and upload them to see the changes they made as if it was the live site
Basically what is the best practice for creating a copy of a website for testing?
Server is running Linux, PHP, mySQL
I have 2 linux machines, they do not have internet connectivity or any other means of getting an external clock.
I need one of them to act as the "master"/server and the other machine to sync it's clock to that server. It's not important that the time is correct, it's only important that the time is the same on these 2 machines.
So, give I have a server (192.168.1.10) and a client (192.168.1.11), how do I set up /etc/ntp.conf on these 2 machines respectivly ?
I want to update the Python build on my Linux box, but the only way I know how to do it is uninstalling the current version and installing the new one. My system is already up to date (I updated yesterday). I wanted to know if there is a way to update a specific program from the command line, like sudo apt-get update <program-name>. I know this command doesn't exist, but I'm hoping something equivalent does.
I am using Centos5 running on a VMWare but whenever I choose to open the User Manager menu from System-Administration, an error message always displays
The user database cannot be read. This problem is most likely caused
by a mismatch between etc/passwd and /etc/shadow or /etc/group and
/etc/gshadow/. The program will now exit.
I am a Linux novice and have no idea how to fix this tiny issue. ANy help is thankful. Thank you.
I would like to boot directly from an external hard disk to improve performance over my internal notebook hard disk. My notebook has no native eSata jack but a pci express card.
As my BIOS doesn't support the card on boot time so no way directly booting it.
My question is, is it possible to work around this issue by using an USB stick or similar with a boot loader like grub and if so, will this only work for Linux or Windows as well?
I have an existing raid5 device which I created using mdadm on Linux.
When I created the device I set the chunk size to 64 but I would like to test the performance of various sizes but I don't want to have to rebuild my entire system to do so.
If it is not possible to do it live then is it possible to do this by booting with a rescue disk?
Any advice on the steps how to do this, either live or with a rescue disk, will be greatly appreciated.
I have a lot of subdomains in the main domain xxx.zzz
So, for this domain, I can have
aaa.xxx.zzz
bbb.xxx.zzz
ccc.xxx.zzz
ddd.xxx.zzz
eee.xxx.zzz
....ETC....
Istead of adding each subdomain in the host file, I would like to add only the main domain xxx.zzz and then to be able to access all the subdomains.
I have tryed with *.xxx.zzz but apparently, this will not work (Linux or Windows).
Any idea is welcome. Thank you very much.
With a typical USB hard drive enclosure, is the full range of drive power management functionality available?
In what may be an unrelated matter: is it possible to suspend a PC without unmounting an attached USB-powered drive, and then remounting it on resume? This is the behaviour I'm currently seeing (running Ubuntu linux 10.10).
Are there certain models or brands that provide more complete control over this aspect of drive operation? My Friendly Neighbourhood Computer Store carries (part of) the Vantec Nexstar product line.
Right now I'm forced to read all the tweets in a single client on a single device (TweetDeck on my Android phone).
If I would switch to another device and/or client, I would need to search for the last unread tweet, which is sometimes complicated (too many tweets).
So, the question:
Is there a client who can keep the status (read/unread) on tweets across multiple devices? My target systems would be now Android and MS Windows, but also Linux might be handy.
I'm running Ubuntu in a virtual machine (host machine is Windows 7). Is it possible to use Fiddler in the host machine to capture the traffic from the virtual machine? Seeing as the virtual machine's network must be passing through the host computers NIC, can Fiddler capture the packets? (I don't know of any free alternative to Fiddler for Linux, except Tamper Data, but I need a bit more control). Thanks.
Is it possible to setup a mail server on a Linux machine without root permissions? I want to be able to create two aliases for a given mail ID. But if I remember correctly, it is no possible to do this without root privileges because I need to edit the configuration file and then restart the mail server. Does anyone have a suggestion to get around this problem?
The main file shares on our network are currently hosted by old Apple XServes. I had planned to replace some of these with Windows shares as I have better hardware available but have been told this is likely to cause issues with some of our Mac users.
What sort of issues am I likely to run into and what are the recommended ways of hosting general file storage in a mixed OS (Windows, OSX, occasionally linux) environment?
I have a slow machine, mainly a Celeron with 250gb HD.
I'm planning to install a Linux distro and create a bunch of VMs for development.
Which distro should I choose? I plan to use this machine mainly as a small "hypervisor" to other vms.
Is it possible? What do you suggest?
Thanks!
What is the reason partitioning is usually a step in installing multiple (2) operating systems on the same computer?
Does an operating system have to have it's own partition to run or can it run in the same partition as another operating system? (i.e. -can two of the same flavor run in the same partition but if you have one Linux and one windows it needs to be partitioned?)
Is it necessary to make disk partitions to run multiple operating systems?
When I upgrade or reinstall linux I backup my home folder by running sudo cp -pr /home/users/yitzchak /media/externalHDD/backups. When I do this I get errors saying that permissions could not be preserved and when I copy the folder back onto my local disk I see that ownership has been changed to root and I have to chown all of them back, which has to be done manually piecemeal because not all files have the same group. Is there any way around that?