Ubuntu :: Make 2 X Sessions Output Simultaneously?
Sep 12, 2010
I started a new x session on tty8. This is display 1. The first session is tty7 display 0.
I can switch between them easily enough. CTRL ALT F7 goes to tty7. CTRL ALT F8 goes to tty8.
But if I try to run, say, the "import" command for screenshots on tty8, while switched to tty7, all it gives is a black screen.
The reason being, I think, because only one session is actually outputting at any given time. How do I make both of them output, so I can take a screenshot on 1 session, but use the other session to do other stuff?
I would like to be able to have two sessions, each with their own monitor and each having their own, assigned input devices, all off of one computer. In other words, two people would be able to use two different keyboards/mice and two different monitors simultaneously using two different sessions. Is this possible, or should I look into a terminal server machine?
Here's the setup: One x86 server (Red Hat 4) with two serial connections to an embedded linux device. One serial connection is to a power control so the device can the restarted, and the other is used for a console to this device. Both serial connections use minicom. People on my team VNC to the x86 server, where they find the two minicom sessions waiting for them as they are left open. I would like to automate connecting to the server and communicating over the serial lines.
Supposing I use ssh to the x86 server, could minicom be used over the serial lines without terminating the minicom processes seen through VNC? If not, is there a way to re-open those windows from within the ssh session, so a user who VNCs to the server won't have to reopen them? Could a single ssh connection control two minicom terminals simultaneously, or would there need to be two ssh connections? It is assumed a user and the automated process will *not* try to access the device at the same time; the automation would trigger during off hours.
I just installed 10.10 and I'm having an issue where sound outputs from the headphones and my speakers simultaneously, and the volume control controls both outputs rather than one of them individually.This has been asked about before at this thread, but none of the solutions I've tried from there have worked. I tried installing linuxant, but it just killed my sound altogether despite uninstalling it afterward. I tried updating the Linux audio modules as per this page but to no avail.I'm running Ubuntu 10.10 (64-bit) on my own custom built desktop, which for what it's worth, contains this motherboard.
I'm still learning about bash scripting. Not too long ago, with a lot of help from folks on this forum, I developed the following script to keep Slackware -stable up-to-date:
Is it possible to output one playback stream to multiple devices simultaneously with the current PulseAudio / Phonon setup? The PulseAudio mixer only has radio buttons to choose one device per playback stream. I believe the hardware is capable of this, since I remember doing that before we had PulseAudio. How can I duplicate an audio stream?
Here's one application scenario: I am travelling with my family, all crammed in small hotel room. My wife and me want to watch a movie on my laptop without waking up our kids. I just happen to have one analogue headphone available and one wireless USB headset with me. (Of course, the low tech solution is to bring an 3,5mm Y-cable to attach two analogue headsets, but I would really love to use the USB headset together with the analogue one.)
Another similar thing that bugs me is that my laptop's built-in speakers now always seem dead when an analogue headphone is plugged in. This is mostly what one wants, and before PulseAudio, one had to manually switch them off which was generally annoying. However, the downside is for example with notifications.
For example, before PulseAudio, I could configure Skype to always ring over the laptop's built-in speakers, regardless of whether the analogue headphones were plugged in. This is no longer possible, since PulseAudio does not distinguish between built-in speakers and built-in analogue port any more, while old Alsa did. So in my office, where some analogue headphones are plugged into the docking station, I never hear Skype ringing if I don't wear the headphones.
I have been working on a project for a while now that involves a rather complex daemon that has to be simultaneously running different tasks. For example one of these tasks is to receive IP packets from the Netfilter queue and place those packets into one of several internal queues. While other tasks involve taking IP packets from those internal queues and processing/manipulating them and finally returning them back to the Linux network stack.
As I as I have no previous C experience before starting this project I just spawned a new thread each time I needed the daemon to be doing something else while those other tasks continued to run. Is there any other way of doing this or is this pretty much the only way of doing this? Because C is procedural I could not figure out any other way of doing accomplishing what I wanted. Should I have done it some other way or is this the correct and only way I could have gotten my C app to be running multiple tasks at the same time?
I installed 4 encrypted partitions (/, /var, /tmp, and swap) that are mounted at boot using the Alternate Installation Disc, and they all have the same password, but I have to type that password in 4 times when booting up. How do I make it so I only need to type in my password once?
I've made a LED gadget, which can light up LED patterns. It connects to serial port with RS232 protocol and receives messages which contain desired patterns. My friend wrote a python program which generates patterns and writes them to terminal. Everything is fine this far. I've made a bash script to run this program:
What I don't understand is - how do I redirect it's output to ttyS0 so that my device could catch generated data?
I've heard that in Linux every data stream can be redirected anywhere with '>>' in bash script. How do I do that? Can I, dunno, write something like this: python gen.py >> ttyS0 in shell script?
I'm running Ubuntu 10.04 in a Dell XPS M1330 laptop with Intel gma X3100 integrated graphics. I occasionally use it for watching movies in an LCD TV, however when I connect it I can get it to output video fine, but audio is a no go, when I select hdmi audio in the sound options I get no sound.
Several days ago, I replace my PC's motherboard and now sound is too low - I can't hear practically anything, I used alsamixer to configure output volume level to normal, but this won't survive reboot. I tried to use 'alsactl' and saveed rules, and edited rc.local to restore - but it didn't help. Can anyone tell me how to fix it?
I have a headset microphone plugged into the built-in audio input. The output is plugged into an amplifier > speakers.
Pulseaudio is "helpfully" routing the microphone input signal to the speaker output. I do not want this. I go to pavucontrol and disable the "monitor of the internal audio analog stereo" -- and what I say into the microphone is still coming out of the speakers.
Google gives a lot of information about how to live-stream mic input over the Internet. And, I found this here (that's for karmic, I'm running lucid):
[URL]
... but that's about how to ENABLE loopback. It says loopback should not be enabled by default, but I very clearly hear that something is doing the same thing as loopback.
(Of course, I need to hear sound from applications that are playing, and when I'm dictating text into NaturallySpeaking running under virtual box, I need sound input to go there -- so turning the mic all the way down to zero is not the solution.)
I'm fairly sure I remember hearing this behavior ever since installing Ubuntu, and I didn't do anything to turn it on. I can't imagine most users would prefer this behavior -- if it's the default behavior, why? It makes absolutely no sense to me. (Sorry. It's one of those piddly little configuration things that costs a couple of hours of web searching time, and after a while I just have to give up, but not before becoming much more frustrated than I should have to.)
So, to be clear, here's what I want:
- Applications playing audio should send sound to the main output.
- Applications receiving audio input should hear the microphone.
- Microphone sound should not EVER go to the main output unless I have explicitly launched an application making the connection. (The signal goes input -> output even when NO application is open - hence my consternation.)
Using a default terminal and bash, there is no functionality to search the standard output of commands.
One can gain such functionality using other tools, like emacs shell or screen, but I am wondering why such a useful feature is missing, I do remember a simple C-F used to work in terminals.
Is there a way to make the Gnome terminal app support output search? or is there a better terminal app that support searching output natively?
Ubuntu 10.04 XFCE desktop.The Audio Output Device is "/dev/dsp1".When I specify this in VLC, the audio works perfectly.But when I am looking at a web page with flash, I can only see the video.There is no audio.How do you make Flash use the "/dev/dsp1" Audio Output Device?How do you make "/dev/dsp1" the default Audio Output Device for this system?
I have a set of bash scripts that I'm running that automatically build a set of packages for me and redirect their output into logs. Basically, I have a bunch of lines that are something like this: ${CONFIGURE_DIR}/configure &> ${LOG_DIR}/log or cd ${CONFIGURE_DIR} && make &> ${LOG_DIR}/log, etc.
This is supposed to make the entire process silent. However, sometimes with some packages some output leaks to my console (either stdout or stderr). I'm thinking that maybe the configure scripts/make are executing commands within new shell instances that don't inherit my redirect, or something to that effect.
Another reason for thinking this is that in another part of my script I detect errors when running make by testing with "if [ $? -ne 0 ]", and if the redirect leaks to my console and also the leaked output indicates that the build failed ("make: Error" and so on), then my $? test fails (i.e., it thinks that $? == 0, whereas a failed make should return a non-zero value). It's as if my original script can't "see" the results from child commands executed from later scripts.
I'm tring to download an iso image that's over 3GB. The file is hosted at several ftp mirrors. Is there a way to download the file from several of these mirrors simultaneously so that I can reduce the D/L time? Presently, it's will take close to 24hrs to D/L from just one mirror. I have a 25Mbps connection so my bandwidth is not an issue.
Running 10.10 and win 7 on my HP dv6-2150us laptop and I'm having a few issues.
First how do I get HDMI audio output to my TV? I think I have just a integrated Intel graphics card. It works fine in windows but I can't seem to get it to work in Ubuntu. I tried searching but couldn't find anything pertaining to this issue.
GDM has no session options listed when I click on my username. I should have openbox and lxde. I read that GDM finds it's sessions from /usr/share/xsessions so I checked there and I have desktop files for both. currently I'm using WDM and it's working fine.
I am sure that this is very simple but I have installed sound juicer and the gstreamer plug ins. The problem is i still cannot select MP3 as an output output option
I don't know anything about ubuntu. Could you guys help me out. I'm pretty knowledgeable with windows if you guys need a printout of something let me know. My friends getting really frustrated about this. Help!!i
So here's the situation. He plugs his audio jack into his computer and then into the speakers but it still plays from the computer speakers.
I made a script for batch processing brain scans (with FreeSurfer). I have a batch file stored on an NFS server that looks something like this:
Code:
subject1 subject2 subject3 subject4
now my script is performed on several computers at a time, first it marks an item to be in use (with sed -i 's/.../...'), then processes it (it gets the actual subject files from elsewhere on the server, then puts them back), then marks it to be finished in the list. so during action the batch file should look something like this:
Code:
subject1 finished subject2 inprogress on host1 subject3 inprogress on host2 subject4
so i tried a run and watched the batch file, now i observed something like this:
Code:
subject1 finished subject2 inprogress on host1 subject3 inprogress on host2
[code]....
there was only one script running on host1. the subjects never got marked as finished, although i know for a fact that they were finished. also, the script sometimes seemed to hang for moments.