#StackBounty: #16.04 #dual-boot #permissions #mount #windows-10 how to access windows ntfs drive on plex server

Bounty: 50

i’m using windows 10 and ubuntu dual booting

i’ll install plex server but it cannot access windows volume(C,D)

i’ll run
sudo chmod -R 777
gedit /etc/fstab

and add volume on fstab file

and i’ll try
Plex Media Manager sees external NTFS drive but doesn’t see directories

Plex Media Server: Won’t find media External Hard Drive

but not work. i want to run plex without any effect run windows 10.

how i fix it?

Get this bounty!!!

#StackBounty: #16.04 #apache2 #php Correct way to modify php.ini for Apache and/or CLI

Bounty: 50

I want to change and add some PHP directives, some for apache, some for CLI and some for both. As an example, I want to set the default timezone for all server contexts. There are a couple of different ways I can go about this, but I don’t know which is the best approach.

I can directly edit the master php.ini files, which are here /etc/php/7.0/apache2/php.ini and here /etc/php/7.0/cli/php.ini, but I don’t know whether this file will be overwritten on upgrade. Also for shared settings, such as the timezone, I have to remember to edit two files and keep those changes synchronised.

I can use Apache’s php_admin_value, php_admin_flag, php_value and php_flag directives. The advantage here is that the php settings can be applied on a virtual host by virtual host basis and I can also apply them globally to Apache. However, this doesn’t help with the CLI settings.

The php directory has a similar structure to Apache, allowing files full of directives to be enabled or disabled with the phpenmod command. I can copy this structure, creating the directory /etc/php/7.0/mydirectives, placing php.ini files within this folder, then creating symbolic links from /etc/php/7.0/apache2/conf.d/ to my php.ini directive files. This allows me to have a single directive file which adds directives to both Apache and CLI version of PHP. The only thing I can’t do with this is virtual host by virtual directives.

Any advice on how to do this properly?

Get this bounty!!!

#StackBounty: #16.04 #kvm hcp: ERROR: FALLOCATE FAILED!

Bounty: 50

On two Proxmox KVM VMs, I get the error hcp: ERROR: FALLOCATE FAILED! in the console. I get this error on two separate Ubuntu 16.04 VMs.

I am not sure what the error means, or where it comes from. I should note that I saw the error in both consoles after ejecting the installation CD in Proxmox. I re-attached the CD to both VMs just to be sure, but saw the error pop up in the console of one of the VMs again just now.

The VM itself seems to function. I found a thread on the Proxmox forums: Corrupt Filesystem after snapshot, but I do not have any snapshots created for either VMs.

I am confused because I have no idea where the error comes from. Unfortunately, I’m not sure if it appeared in the console before I ejected the installation CDs as well.

I am using R1Soft which loads an hcpdriver. Perhaps that’s related (though I wouldn’t have any idea why it would show these errors).

Get this bounty!!!

#StackBounty: #16.04 #mount #hard-drive COMRESET failed (errno=-16)

Bounty: 50

Sometimes when I open my laptop secondary HDD doesn’t mount. The startup time is also very long. If I shut it down and restart it may work. I found the following error but I don’t know how to fix it. I use Ubuntu 16.04.3 LTS. The hdd is Seagate ST2000LM007 2TB SATA Hard Drive

 dmesg |grep ata2
[    1.301925] ata2: SATA max UDMA/133 abar m2048@0xb4434000 port 0xb4434180 irq 129
[    1.618501] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.629519] ata2.00: ATA-10: ST2000LM007-1R8174, RDM4, max UDMA/100
[    1.629520] ata2.00: 3907029168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    1.652483] ata2.00: configured for UDMA/100
[   22.834992] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[   22.834996] ata2.00: failed command: IDENTIFY DEVICE
[   22.834998] ata2.00: cmd ec/00:01:00:00:00/00:00:00:00:00/00 tag 9 pio 512 in
[   22.834999] ata2.00: status: { DRDY }
[   22.835013] ata2: hard resetting link
[   28.195015] ata2: link is slow to respond, please be patient (ready=0)
[   32.874978] ata2: COMRESET failed (errno=-16)
[   32.874983] ata2: hard resetting link
[   38.235030] ata2: link is slow to respond, please be patient (ready=0)
[   42.926952] ata2: COMRESET failed (errno=-16)
[   42.926956] ata2: hard resetting link
[   48.283032] ata2: link is slow to respond, please be patient (ready=0)

Also a few time while working:

[    1.337312] ata2: SATA max UDMA/133 abar m2048@0xb4434000 port 0xb4434180 irq 128
[    1.650864] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.661902] ata2.00: ATA-10: ST2000LM007-1R8174, RDM4, max UDMA/100
[    1.661903] ata2.00: 3907029168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    1.684796] ata2.00: configured for UDMA/100
[  158.780788] ata2.00: exception Emask 0x0 SAct 0x1e SErr 0x0 action 0x6 frozen
[  158.780798] ata2.00: failed command: WRITE FPDMA QUEUED
[  158.780808] ata2.00: cmd 61/40:08:00:69:c0/05:00:68:00:00/40 tag 1 ncq dma 688128 out
[  158.780813] ata2.00: status: { DRDY }
[  158.780816] ata2.00: failed command: WRITE FPDMA QUEUED
[  158.780823] ata2.00: cmd 61/c0:10:40:6e:c0/02:00:68:00:00/40 tag 2 ncq dma 360448 out
[  158.780827] ata2.00: status: { DRDY }
[  158.780830] ata2.00: failed command: WRITE FPDMA QUEUED
[  158.780837] ata2.00: cmd 61/40:18:00:71:c0/05:00:68:00:00/40 tag 3 ncq dma 688128 out
[  158.780840] ata2.00: status: { DRDY }
[  158.780843] ata2.00: failed command: WRITE FPDMA QUEUED
[  158.780849] ata2.00: cmd 61/c0:20:40:76:c0/02:00:68:00:00/40 tag 4 ncq dma 360448 out
[  158.780853] ata2.00: status: { DRDY }
[  158.780859] ata2: hard resetting link
[  164.138013] ata2: link is slow to respond, please be patient (ready=0)
[  168.819468] ata2: COMRESET failed (errno=-16)
[  168.819476] ata2: hard resetting link
[  174.176956] ata2: link is slow to respond, please be patient (ready=0)
[  178.857942] ata2: COMRESET failed (errno=-16)
[  178.857948] ata2: hard resetting link
[  184.227221] ata2: link is slow to respond, please be patient (ready=0)
[  213.866965] ata2: COMRESET failed (errno=-16)
[  213.866975] ata2: limiting SATA link speed to 3.0 Gbps
[  213.866977] ata2: hard resetting link
[  218.927156] ata2: COMRESET failed (errno=-16)
[  218.927163] ata2: reset failed, giving up
[  218.927165] ata2.00: disabled
[  218.927183] ata2: EH complete

I also formatted these partitions but it still fails. If I use a fresh ubuntu install it works for a few days without any issue.

Get this bounty!!!

#StackBounty: #16.04 #keyboard External Keyboard Space Key Somehow Changed to Another Key

Bounty: 50

I am using ubuntu 16.04 on a thinkpad W540 laptop. I have a multi monitor setup that I haven’t used in a few months and now when I try to plug my external keyboard into my laptop to operate my multi monitor setup the external keyboard space key is not working as a space anymore. I think it is acting as a right click because it opens up the menu when I am in gnome terminal.

Note that my laptop keyboard doesn’t have this issue, it is only my external usb keyboard that I plug into my laptop that has this issue.

Here is the output of xev when I press space on my laptop keyboard and my external keyboard.

Laptop keyboard when pressing space:
Key code = 65
enter image description here

External keyboard when pressing space:
Not sure what all this means
enter image description here

I have a dual boot with Arch linux and Ubuntu and I have the same problem on both distros. Both were fine several months ago or so. So not sure if there has been some update or something that changed things, but will great to get my external keyboard working properly again if anyone has an idea what might be happening?

Get this bounty!!!

#StackBounty: #16.04 #networking #android #openvpn #intel-wireless OpenVPN is connected and changes IP, but can't reach ISP blocked…

Bounty: 50

I managed to download an OpenVPN file from VPN Gate, imported it and connected it. The VPN was connected and my IP was changed, but I couldn’t access certain page (which I believe it’s blocked by my ISP) as it would like when using my local wireless network. So far as I know, reaching ISP-blocked is possible when using VPN.

I tried, using DNS and direct IP address (also using both TCP and UDP method), but none of them works. I also tried connecting with both wireless and USB wired from my Android phone but none works, too. (wireless is tethered from Android phone)

Though, with same VPN configuration, I can reach the page with my phone.

I’m connected from a phone with LTE connection, and it’s my only source of internet until this post edited.

Here’s the output of lsusb and lspci :

$ lsusb && lspci
Bus 001 Device 004: ID 8087:0a2a Intel Corp. 
Bus 001 Device 003: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 007: ID 0b05:7782 ASUSTek Computer, Inc. 
Bus 002 Device 002: ID 04f2:b56c Chicony Electronics Co., Ltd 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1576
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1577
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc.
[AMD/ATI] Carrizo (rev c9)
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini 
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157b
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 157c
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 157c
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157b
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 157c
00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] 
Device 1578
00:09.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 157d
00:09.2 Audio device: Advanced Micro Devices, Inc. [AMD] Device 157a
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB 
XHCI Controller (rev 20)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA 
Controller [AHCI mode] (rev 49)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB 
EHCI Controller (rev 49)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller 
(rev 4a)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge 
(rev 11)
00:14.7 SD Host controller: Advanced Micro Devices, Inc. [AMD] FCH SD 
Flash Controller (rev 01)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1570
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1571
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1572
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1573
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1574
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1575
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 07)
02:00.0 Network controller: Intel Corporation Wireless 3165 (rev 81)

How do I reach the blocked page, then?

Get this bounty!!!

#StackBounty: #14.04 #apt #16.04 #backup #ftp Mondo Rescue repository unsigned for apt-get

Bounty: 250

I have been trying to install Mondo Rescue, however, after following the typical instructions:

wget ftp://ftp.mondorescue.org/ubuntu/`lsb_release -r|awk '{print $2}'`/mondorescue.sources.list
sudo sh -c "cat mondorescue.sources.list >> /etc/apt/sources.list"
sudo sh -c "cat >> /etc/apt/preferences << EOF
Package: mindi
Pin: version 2.1.*
Pin-Priority: 1001

Package: mondo
Pin: version 3.0.*
Pin-Priority: 1001

as well as:

wget ftp://ftp.mondorescue.org/ubuntu/16.04/mondorescue.pubkey
sudo apt-key add mondorescue.pubkey
sudo apt-get update
sudo apt-get upgrade

However, when I run sudo apt-get update I get the following

W: The repository 'ftp://ftp.mondorescue.org//ubuntu 16.04 Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Is there some way to fix this or get it working properly?

Get this bounty!!!

#StackBounty: #16.04 #nvidia #python #cuda #gpu Nvidia CUDA + Theano: Could not find symbol "cuDevicePrimaryCtxGetState"

Bounty: 50

I’m working on an Ubuntu 16.04 and I have a little bit old Nvidia 9600 GT graphics card. It’s CUDA enabled (1.1 computation capability) though legacy. I’m trying to take advantage of it while using Keras and to do so I followed this guide to install CUDA and this one to install cuDNN. The driver for my graphics card is the 304.104 version and the last CUDA version that supports my graphics card is 6.5. After installation I verified it by typing in the console:

$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2014 NVIDIA Corporation
Built on Thu_Jul_17_21:41:27_CDT_2014
Cuda compilation tools, release 6.5, V6.5.12

$ nvidia-smi
Fri Dec 22 23:02:08 2017       
| NVIDIA-SMI 340.104    Driver Version: 340.104        |                       
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|   0  GeForce 9600 GT     Off  | 0000:01:00.0     N/A |                  N/A |
| 40%   46C    P0    N/A /  N/A |     77MiB /  1023MiB |     N/A      Default |

| Compute processes:                                               GPU Memory |
|  GPU       PID  Process name                                     Usage      |
|    0            Not Supported                                               |

Also the compilation of the deviceQuery sample succedeed:

CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce 9600 GT"
  CUDA Driver Version / Runtime Version          6.5 / 6.5
  CUDA Capability Major/Minor version number:    1.1
  Total amount of global memory:                 1024 MBytes (1073414144 bytes)
  ( 8) Multiprocessors, (  8) CUDA Cores/MP:     64 CUDA Cores
  GPU Clock rate:                                1625 MHz (1.62 GHz)
  Memory Clock rate:                             400 Mhz
  Memory Bus Width:                              256-bit
  Maximum Texture Dimension Size (x,y,z)         1D=(8192), 2D=(65536, 32768), 3D=(2048, 2048, 2048)
  Maximum Layered 1D Texture Size, (num) layers  1D=(8192), 512 layers
  Maximum Layered 2D Texture Size, (num) layers  2D=(8192, 8192), 512 layers
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       16384 bytes
  Total number of registers available per block: 8192
  Warp size:                                     32
  Maximum number of threads per multiprocessor:  768
  Maximum number of threads per block:           512
  Max dimension size of a thread block (x,y,z): (512, 512, 64)
  Max dimension size of a grid size    (x,y,z): (65535, 65535, 1)
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             256 bytes
  Concurrent copy and kernel execution:          Yes with 1 copy engine(s)
  Run time limit on kernels:                     Yes
  Integrated GPU sharing Host Memory:            No
  Support host page-locked memory mapping:       Yes
  Alignment requirement for Surfaces:            Yes
  Device has ECC support:                        Disabled
  Device supports Unified Addressing (UVA):      No                                                                                                    
  Device PCI Bus ID / PCI location ID:           1 / 0                                                                                                 
  Compute Mode:                                                                                                                                        
     < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >                                                          

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 6.5, CUDA Runtime Version = 6.5, NumDevs = 1, Device0 = GeForce 9600 GT                       
Result = PASS

Then I followed this recommended installation method and this documentation to install Theano as it’s capable of operating on my graphics card in comparison to TensorFlow. I created .theanorc file

device = cuda0
floatX = float32


include_path = /usr/local/cuda-6.5/include/
library_path = /usr/local/cuda-6.5/lib64/

I also exported proper variables to .profile:

export PATH=/usr/local/cuda-6.5/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

However when I try to run this simple test script:

from theano import function, config, shared, tensor
import numpy
import time

vlen = 10 * 30 * 768  # 10 x #cores x # threads per core
iters = 1000

rng = numpy.random.RandomState(22)
x = shared(numpy.asarray(rng.rand(vlen), config.floatX))
f = function([], tensor.exp(x))
t0 = time.time()
for i in range(iters):
    r = f()
t1 = time.time()
print("Looping %d times took %f seconds" % (iters, t1 - t0))
print("Result is %s" % (r,))
if numpy.any([isinstance(x.op, tensor.Elemwise) and
              ('Gpu' not in type(x.op).__name__)
              for x in f.maker.fgraph.toposort()]):
    print('Used the cpu')
    print('Used the gpu')

I receive the following error:

ERROR (theano.gpuarray): Could not initialize pygpu, support disabled
Traceback (most recent call last):
  File "/home/kuba/anaconda3/lib/python3.6/site-packages/theano/gpuarray/__init__.py", line 227, in <module>
  File "/home/kuba/anaconda3/lib/python3.6/site-packages/theano/gpuarray/__init__.py", line 214, in use
    init_dev(device, preallocate=preallocate)
  File "/home/kuba/anaconda3/lib/python3.6/site-packages/theano/gpuarray/__init__.py", line 99, in init_dev
  File "pygpu/gpuarray.pyx", line 651, in pygpu.gpuarray.init
  File "pygpu/gpuarray.pyx", line 587, in pygpu.gpuarray.pygpu_init
pygpu.gpuarray.GpuArrayException: b'Could not find symbol "cuDevicePrimaryCtxGetState": /usr/lib/libcuda.so.1: undefined symbol: cuDevicePrimaryCtxGetState'

I don’t understand this error because in the Nvidia’s documentation this function crearly exists. Does anyone have any clue? Can the problem be that I’m using python 3.6 while in the aforementioned documentation there’s < sign before 3.6? Is any o the paths wrong?

Get this bounty!!!

#StackBounty: #16.04 #software-installation #google-chrome Fail to open Google Chrome Ubuntu

Bounty: 50

I have been following these instructions to install Chrome on my Ubuntu 16.04.3 LTS machine

How to install Google Chrome

Everything worked fine as far as I see but when I try to use chrome I receive the following error message

~$ google-chrome
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
Trace/breakpoint trap (core dumped)

Any help on that?

edit —

~$ sudo google-chrome
[19256:19256:1103/123548.485046:ERROR:zygote_host_impl_linux.cc(88)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

Get this bounty!!!