#StackBounty: #ubuntu #xrandr #multi-monitor #screenshot Thumbnail preview of secondary display on primary display?

Bounty: 50

Is there a way to display a miniature version of the secondary display’s contents on the primary display? This is for doing a live demo during a presentation, while keeping a dual-display setup to also show notes on the primary display. I have a vague feeling that this should be possible somehow, but I don’t have enough experience with xrandr.

A coarse internet search hasn’t revealed anything useful. I’m aware of solutions like LibreOffice’s presenter mode, or pdf-presenter-console. This question is about displaying interactive contents on the secondary console. A solution doesn’t need to involve xrandr, a utility that captures a portion of the screen and clones it in another window would also work.

I’m on Ubuntu 17.04.


Get this bounty!!!

#StackBounty: #ubuntu #apache-2.4 #performance #logging #mod-wsgi Intermittent slow response & timeouts – Apache + mod_wsgi + Web2py

Bounty: 50

I’ve Ubuntu 14.04.5 LTS (i686) on a Digital Ocean droplet with 2×2.4GHzCPU & 4gb physical memory. I am running a web2py application on it with Apache and mod_wsgi. There are a few additional python modules installed on the box, like numpy and opencv2. The database is MySQL 5.5.

A WordPress website on another server calls this web2py application using php-curl. Usually the response time is 2-5 seconds. But occasionally it timeouts (response time goes to >1000 seconds). I’ve added logging points in the Web2py application and they tell that after reaching the application, everything completes in 2-3 seconds. But in Apache2 access log, response time logged as a number higher than 1000 seconds. In the access log, the request time is approximately the same when request is initiated from the WordPress website.

Can anyone point out how to find-out the reason of this intermittent slow response?

Thanks


Get this bounty!!!

#StackBounty: #ruby-on-rails #apache #ubuntu #capistrano #passenger Passenger doesn't seem to be running (Capistrano/Rails/Apache/U…

Bounty: 50

Deploying a Rails app using Capistrano to an Ubuntu VM running Apache with Passenger enabled.

I followed this tutorial: https://www.phusionpassenger.com/library/install/apache/install/oss/trusty/ with a few changes given that I’m on 17.04, not 14.04 LTS.

passenger-config validate-install says everything looks fine with both Passenger and Apache. passenger-memory-stats shows both Passenger and Apache processes.

I have sudo apache2ctl restarted several times, with no warnings. But passenger-status, and therefore the passenger-config restart-app that Capistrano runs, reports that Passenger “doesn’t seem to be running.” So my deploy stops.

There’s only one Ruby on the machine, ruby-2.4.1 installed using ruby-install. I have apt-get update and upgraded in case of version mismatches.

Apache logs don’t show any errors, certainly none related to Passenger.

Why would Passenger internally disagree, saying that it’s both configured properly and there are processes running, but then later saying that it’s not running?


Get this bounty!!!

#StackBounty: #ubuntu #google-cloud-platform #google-compute-engine News SSH Connection failed Google Cloud VM

Bounty: 50

I recently formatted my system, I thought better to create new SSH for login into the system from the Local system.

Steps I followed :

  1. Remove all previous keys to VM leaving one Key, which is user_name.
  2. Tried connecting to In Browser SSH it started failing, I tried rebooting VM Nothing works.
    3.Then copied previously all SSH keys from backups into my local system just to make connection and working side by not affecting my development.
    4.Added new SSH Keys in VM Instance Project Wide SSH keys, tried logging into VM Instance from the local system, Successfully.
  3. Tried with google-cloud SDK using previous key Successful.
  4. But Browser SSH is still failing.
  5. ~/ssh/authroized_keys there are keys which I added for automatic deployment.

Problems which I detected :
1. After the following troubleshooting from google, when I tried login using fresh user it’s failed.

gcloud compute ssh test@vh-server
Updating project ssh metadata.../Updated [https://www.googleapis.com/compute/v1/projects/project-name].
Updating project ssh metadata...done.                                                    
Waiting for SSH key to propagate.
Permission denied (public key).
ERROR: (gcloud.compute.ssh) Could not SSH into the instance.  It is possible that your SSH key has not propagated to the instance yet. Try running this command again.  If you still cannot connect, verify that the firewall and instance are set to accept ssh traffic.
  1. New SSH login using new public and a private key is also failing. I created new keys, updated SSH keys in VM instance.

    ssh -i ~/.ssh/my-ssh-key test@ip_address
    ssh: connect to host ip_address port 22: Operation timed out

  2. No In Browser SSH Login.

I followed this question no help Not able to browser login

Any Help would be appreciated

Problem : –

I am not able to do in browser SSH Connection


Get this bounty!!!

#StackBounty: #linux #ubuntu #audio Ubuntu 16.10 no sound whatsoever

Bounty: 50

Audio used to work on my Ubuntu system (not as it should have, but it worked). Something happened recently, I have no idea what, but now I’ve completely lost sound.

I’ve basically tried everything that you can find looking at Google results for this problem. Here are some commands and their outputs:

Trying to open alsamixer:

bertalanp99@watermelon:~$ alsamixer
cannot open mixer: No such file or directory

Running lspci:

bertalanp99@watermelon:~$ lspci
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 8 Series/C220 Series Chipset Family KT Controller (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d4)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d4)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d4)
00:1f.0 ISA bridge: Intel Corporation H87 Express LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 770] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
04:00.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 41)

inxi output:

bertalanp99@watermelon:~$ inxi -Fxz
System:    Host: watermelon Kernel: 4.10.0-33-generic x86_64 (64 bit gcc: 6.3.0)
           Desktop: Gnome 3.24.2 (Gtk 3.22.11-0ubuntu3) Distro: Ubuntu 17.04
Machine:   Device: desktop Mobo: Gigabyte model: H87M-D3H v: x.x UEFI: American Megatrends v: F11 date: 08/18/2015
CPU:       Quad core Intel Core i5-4570 (-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 25540
           clock speeds: max: 3600 MHz 1: 3535 MHz 2: 3600 MHz 3: 3600 MHz 4: 3600 MHz
Graphics:  Card: NVIDIA GK104 [GeForce GTX 770] bus-ID: 01:00.0
           Display Server: X.Org 1.19.3 drivers: nvidia (unloaded: modesetting,fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: GeForce GTX 770/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 375.66 Direct Rendering: Yes
Audio:     Card-1 Intel 8 Series/C220 Series High Definition Audio Controller bus-ID: 00:1b.0
           Card-2 NVIDIA GK104 HDMI Audio Controller bus-ID: 01:00.1
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: d000 bus-ID: 03:00.0
           IF: enp3s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 4000.8GB (1.8% used)
           ID-1: /dev/sda model: WDC_WD10EZRX size: 1000.2GB
           ID-2: /dev/sdb model: WDC_WD10EZRX size: 1000.2GB
           ID-3: /dev/sdc model: WDC_WD20EZRX size: 2000.4GB
Partition: ID-1: / size: 98G used: 15G (16%) fs: ext4 dev: /dev/sda2
           ID-2: /home size: 98G used: 47G (50%) fs: ext4 dev: /dev/sda7
           ID-3: swap-1 size: 8.59GB used: 0.00GB (0%) fs: swap dev: /dev/dm-0
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 0.0:37C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 254 Uptime: 36 min Memory: 2805.4/7930.9MB Init: systemd runlevel: 5 Gcc sys: 6.3.0
           Client: Shell (bash 4.4.71) inxi: 2.3.8

I would be very grateful for any kind of help!


Get this bounty!!!

#StackBounty: #ubuntu #operating-systems #memory #pi-a Hardware and OS Options for Quick Dev/Test Cycles on the Model A

Bounty: 150

I have a Rasperry Pi 1 Model A. I want to use it on a hobby project that will require me to have lots of dev/test cycles where I:

  1. Write some code in a higher-level language (Scala; but could be anything like Python, etc.); then
  2. Deploy the executable (which runs as a daemon service at startup) and an OS like Ubuntu Server to some memory/drive device; then
  3. Power on the Raspberry Pi (which in turn starts the OS/startup service on the device); then
  4. Test functionality; then
  5. Rinse and repeat

I’m wondering what my options are regarding the memory/drive. Cheaper is better, but I would prefer 4GB at minimum (1GB for OS, 1 for JVM and 2+ GB for service/executable/app), but could live with just 2.

This is my first Raspberry Pi project so I’m feeling a little overwhelmed with options. I’m also unsure of whether I will need to re-deploy the Ubuntu OS to the memory/drive on each dev/test cycle or if there’s a way to install the OS one time and then just deploy new service/executable versions on each iteration.

Thanks in advance for any-and-all help!


Get this bounty!!!

#StackBounty: #ubuntu #emacs How can I fix package.el in Ubuntu 16.04?

Bounty: 100

Whichever package archive I try to download I consistently get the following error message:

Failed to download `whatever' archive

turning on debugging I end up with this:

Debugger entered--Lisp error: (wrong-type-argument processp nil)
  set-process-buffer(nil #<buffer  *url-http-temp*>)

The problem seems to be with network-stream.el. Is this a known bug? Where can I go from here?


Get this bounty!!!

#StackBounty: #ubuntu #audio #ffmpeg #alsa #pulse-audio Route ICECAST stream to alsa dummy device

Bounty: 50

I want to transmit an icecast stream to udp via FFmpeg, but if the icecast stream will be dropped then FFmpeg drops also. I suppose if I could route the icecast stream to alsa dummy device then I could get data from it via FFmpeg. For example:

ffmpeg -f alsa -i hw:Dummy,0 -f mpegts udp://ip:port

Then in case of icecast stream dropping, the output udp stream will be played silently and continue playing audio until this stream is available again. (This is my assumption).

Is there a way to route icecast stream to alsa dummy device? Or is there another variant for routing icecast stream to udp to play silently in case of icecast stream dropout, and then automatically return to normal playing when the icecast stream is available again?


Get this bounty!!!

#StackBounty: #ubuntu #wifi #openwrt Slow wireless speed between Ubuntu and OpenWRT

Bounty: 50

I have TpLink WA901 ND access point with OpenWRT installed, which supports up to 450 Mbps.

Unfortunately, from my Ubuntu notebook I see only Bit Rate=52 Mb/s according to iwconfig even within few meters from AP.

Notebook is Dell Inspiron with Intel Centrino Wireless N 2230, which supports up to 300 Mbps.

What to check to ensure all capabilities are activated?

On Ubuntu Notebook

$ iwconfig wlp2s0
wlp2s0    IEEE 802.11bgn  ESSID:"In The Moon Network"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 60:E3:27:8D:7A:A6   
          Bit Rate=52 Mb/s   Tx-Power=16 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=70/70  Signal level=-29 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:4  Invalid misc:336   Missed beacon:0



$ iw dev wlp2s0 info
Interface wlp2s0
    ifindex 3
    wdev 0x1
    addr 68:17:29:9a:e0:75
    type managed
    wiphy 0
    channel 6 (2437 MHz), width: 20 MHz, center1: 2437 MHz


$ iw dev wlp2s0 link
Connected to 60:e3:27:8d:7a:a6 (on wlp2s0)
    SSID: In The Moon Network
    freq: 2437
    RX: 39568332 bytes (83031 packets)
    TX: 4846489 bytes (30088 packets)
    signal: -29 dBm
    tx bitrate: 1.0 MBit/s

    bss flags:  CTS-protection short-preamble short-slot-time
    dtim period:    2
    beacon int: 100

On OpenWRT AP

# iw wlan0 info
Interface wlan0
        ifindex 6
        wdev 0x2
        addr 60:e3:27:8d:7a:a6
        ssid In The Moon Network
        type AP
        wiphy 0
        channel 6 (2437 MHz), width: 20 MHz, center1: 2437 MHz
        txpower 28.00 dBm

# iwinfo wlan0 info
wlan0     ESSID: "In The Moon Network"
          Access Point: 60:E3:27:8D:7A:A6
          Mode: Master  Channel: 6 (2.437 GHz)
          Tx-Power: 28 dBm  Link Quality: 66/70
          Signal: -44 dBm  Noise: -89 dBm
          Bit Rate: 144.4 MBit/s
          Encryption: WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0


# iwinfo wlan0 assoclist
68:17:29:9A:E0:75  -39 dBm / -89 dBm (SNR 50)  930 ms ago
        RX: 6.0 MBit/s                                 32886 Pkts.
        TX: 144.4 MBit/s, MCS 15, 20MHz                38245 Pkts.



root@tplink1:/etc/config# cat wireless
config wifi-device  radio0
        option type     mac80211
        option channel  auto
        option hwmode   11g
        option path     'platform/qca956x_wmac'
        option htmode   HT40+
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 0

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     'In The Moon Network'
        option encryption psk2


Get this bounty!!!

#StackBounty: #windows #ubuntu #socket #arp How to modify Socket Close time for Unreachable IP on Windows?

Bounty: 50

First of all, please look this question to understand what I mentioned.

When I try socket close in windows OS for unreachable IP with UDP, I got the three-second delay.

As you can see from the results there is the three-second delay in Windows OS. But there is no delay in Ubuntu namely problem is related Windows Operating System. How to decrease the three-second delay to the zero?

Windows Socket Close Time for Unreachable IP(with UDP): 3 seconds
Ubuntu Socket Close Time for Unreachable IP(with UDP): 0 Second

Thanks in advance…


Get this bounty!!!