I would like to forward sound from an Amazon Linux 2 EC2 to my local MAC so I can listen to any audio played.
I have been looking into if I can do something potentially with ALSA and/or PulseAudio to create the sound and use SSH to send the audio output but am a bit out of my depth trying to understand the technology.
I don’t believe the EC2 supports ALSA from the get go as I ran a troubleshooting script from https://wiki.ubuntu.com/Audio/AlsaInfo and got the following info:
/proc/asound/modules: No such file or directory
/proc/asound/cards: No such file or directory
/tmp/alsa-info.pqBt6ov9wv/alsamodules.tmp: No such file or directory
/proc/asound/modules: No such file or directory
/dev/snd/*: No such file or directory
alsactl: save_state:1595: No soundcards found...
/tmp/alsa-info.pqBt6ov9wv/alsactl.tmp: No such file or directory
PulseAudio however is installed and gives the following information:
Does anyone know if this is possible to send the audio back to my MAC and how to implement?
Related
I am using libpcap to sniff packets and also to create raw packets in C++ in Ubuntu 18.04. These features require admin(sudo) permission. I am checking for a way to remove the dependency.
When I run my code without sudo, I get the following error:
pcap_open_live(): You don't have permission to capture on that device (socket: Operation not permitted)
I build my application using cmake and make and I have the executable test, which I run as ./test.
I have tried setcap cap_net_raw,cap_net_admin=eip ./test, but without sudo, I am unable to capture packets, with the same permission error as above.
Please help on this issue.
I found the answer here.
Issue turned out to be my hard disk not mounted with sudo. I built my tool in home folder and with setcap, I am able to sniff packets without sudo now.
I've read several guides/stackoverflows but not found a similar situation/solution.
I have my remote ssh working (can browse files).
I don't get why I need a local Windows application (although I have a compiled .exe it's not the version I want to debug which is only on the Linux server).
When I try and launch a remote debug session it immediately fails with
Exception occurred during launch
Reason:
Error during file upload.
and below in the details
Could not write file: <my windows exe path>
Permission denied
...
The aforementioned file is writable and in any event I also started eclipse as administrator just in case.
In any event the .exe is irrelevant. I just want to debug code remotely.
(I know all about gdbserver...happy to manually kick that off if need be....don't think I'm there yet though)
Below is the options page I'm presented with:
Had the same experience on TI Code Composer Studio Version: 9.3.0.00012.
This seems to happen while uploading the cross compiled binary from host to target. If you set the check box "Skip download to target path" the error should disappear.
I propose to workaround the upload.
Setup a web server on the host, the line python.exe -m http.server --directory \source\hello\Debug\ would be sufficient
Run wget on the target, see screenshot
I made a fairly standard deployment of the Single-Node File Server on Google Cloud. It works fine as I can mount the file server's disk from other instances.
However, now I want to add another disk to the same file server. The documentation says I should use the following command to add another file system:
zfs create storagepool_name/file_system_name
I tried to run this command on the VM that is acting as the file server, but I get the error that the command zfs is not found.
Now I can probably install zfs myself, but I wonder whether that will somehow collide with whatever the deployment has already set up on the machine.
Is installing and setting up zfs myself a problem? If so, how do I add another disk to the file server?
I figured out what went wrong with my setup of the Single-Node File Server.
First, the default deployment settings seems to choose xfs as the default file system instead of zfs. The file server I had was using xfs, as can be seen in the metadata of the instance itself.
Secondly, as user John Hanley commented in my question, even with zfs selected as the file system, only the root user has its PATH variable set-up properly to be able to directly use the zfs command.
Hi I have scenario that needs to upload a file in a webpage. Actually I know that selenium will not support file upload scenario. But this can be done in python with external libraries such as AUTOIT, PYWINAUTO. But the challenge is i have to run my code in a linux server that is going to call a windows remote machine.
When i tried installing pywinauto in linux server i got an error in importing winreg library. Hence i dont know how to proceed further. Please help me out to solve this scenario.
Both AutoIt and pywinauto are Windows-only libraries (at least for now). If you need to automate file upload on Linux, consider using AT-SPI accessibility (say pyatspi2 package).
If it's a server without X and DBus, I think the question is about remote code execution from Linux to Windows. Good option for the SSH remote execution is Fabric (very pythonic & nice), but using Cygwin or OpenSSH might be an additional challenge for you. There are many other tools like Ansible etc.
I would like to monitor and detect if a new file is created on a mounted folder in linux using c++.
I understand that inotify can be used only if the folder is local.
None of the common remote filesystems support notification.
The only general way to monitor a remote directory is via polling.