I don't know how to properly describe my situation in the title. I am connected to an ubuntu server via PuTTy. I then ran a python script that is using my GPU. I can verify this by typing nvidia-smi which shows up  +-----------------------------------------------------------------------------+ | Processes:                                                       GPU Memory | |  GPU       PID   Type   Process name                             Usage      | |=============================================================================| |    0      3979      G   /usr/lib/xorg/Xorg                           161MiB | |    0      4589      G   compiz                                       173MiB | |    0     17024      C   python                                     10461MiB | |    1     17024      C   python                                      3955MiB | |    2     17024      C   python                                      3925MiB | |    3     17024      C   python                                     10619MiB | +-----------------------------------------------------------------------------+   I also had another command prompt printing the output of the python script that it was running. The problem is, I got disconnected from the internet and thus the server and the console windows all closed. I don't know if my python script is still being run because when I typed nvidia-smi I get the same output as shown above i.e. it is implying that I the script is still running.  My question is, how do I bring up the console window printing the output of this script ?
121213
So I was running apt-get upgrade on a server when the router decided it had been too long since it last made me angry: It dropped all connection. Moral of the story is to use screen a lot when you're on a bum router.  Anyway, I logged back in and found in htop that the process was still hanging there, still waiting for my Y/n to upgrade (hadn't hit it yet, luckily). Is there any way I can reattach to a session that had been broken off? I ended up just killing it since it wasn't in the middle of package management but it would be great to know for future reference.
82697
Recently installed a clean version of Ubuntu 14.10 on my system. Previous to that, I'd been running Windows 7 with no problems.   My system has two screens, one of which is a LG Electronics 24EN43 which is hooked up to a GeForce GTX 650 via HDMI. This is the default screen. The second screen is a DELL 2009W connected to a GeForce 210 via VGA. My problem is that screen 2 does not seem to be behaving properly.   I can move my cursor right to the second screen, and my cursor becomes a black X with a white border. I can then move my cursor back left onto the first screen. I cannot move any windows to the second screen, and I cannot open any programs or terminals on the second screen. The second screen has a black background.   I am currently using the NVIDA X Server Settings utility, and under the 'Additional Drivers' section of Software &amp; Updates, I am using the NVIDIA binary driver - version 331.38 from nvidia331  Here is a haste-bin of my configuration file for the XServers.   Here's some other things I have noticed:   If under the Additional Drivers, I use 'X.Org X server - Nouveau display driver from xserver-xorg-video-noveau (open source). Then the second screen does work, it has Unity, background, and works like it should. However, the cursor on screen 1 has an annoying flicker, the computer will randomly freeze and crash, and it is really bad at watching videos (you see bars going down the video as it slowly refreshes at 0.5 frames per second)   If any additional information is required, I am happy to provide it. Many thanks
7780
I have a script which calls two commands:  long_running_command | print_progress   The long_running_command prints progress but I'm unhappy with it. I'm using print_progress to make it nicer (namely, I print the progress in a single line).  The problem: Connection a pipe to stdout also activates a 4K buffer, so the nice print program gets nothing ... nothing ... nothing ... a whole lot ... :)  How can I disable the 4K buffer for the long_running_command (no, I do not have the source)?
56045
I have a Ubuntu machine that I use as a Plex and data server. There is no monitor connected to it. This wasn't a problem with Ubuntu 16.04, but now, with 18.04, it is and it shows a black screen whenever I connect using VNC. I've already created the virtual display using the answer to this question:   Create a 20-intel.conf file: sudo vi /usr/share/X11/xorg.conf.d/20-intel.conf  Add the following configuration information into the file: Section &quot;Device&quot;     Identifier &quot;intelgpu0&quot;     Driver &quot;intel&quot;     Option &quot;VirtualHeads&quot; &quot;2&quot; EndSection  This tells the Intel GPU to create 2 virtual displays. You can change the number of VirtualHeads to your needs.  Then I made a shell script (don't forget to set executable) and put that in Startup Applications: #! /bin/bash /usr/bin/xrandr -d :0 --output VIRTUAL1 --primary --auto /usr/bin/xrandr --newmode &quot;1600x900_60.00&quot; 118.25 1600 1696 1856 2112 900$ /usr/bin/xrandr --addmode VIRTUAL1 &quot;1600x900_60.00&quot;  After this, it still shows a black screen when I connect using VNC. BUT, when I run this with SSH: export DISPLAY=:0 xrandr  After that, I can see my desktop in VNC... Any ideas on how to fix this? Also, when I see my desktop after all this, the dock is missing and all the icons are in the same spot.
9285
When trying to write the stdout from a Python script to a text file (python script.py &gt; log), the text file is created when the command is started, but the actual content isn't written until the Python script finishes. For example:  script.py:  import time for i in range(10):     print('bla')     time.sleep(5)   prints to stdout every 5 seconds when called with python script.py, but when I call python script.py &gt; log, the size of the log file stays zero until the script finishes. Is it possible to directly write to the log file, such that you can follow the progress of the script (e.g. using tail)?   EDIT It turns out that python -u script.py does the trick, I didn't know about the buffering of stdout.
109190
Alrighty, I have perused the threads already in existence and am finding none of them seem to have the exact combination of variables I've got going.  I'm working on a computer using Ubuntu 12.04. Currently, it boots straight into tty1  Ubuntu 12.04.4 LTS [computer name] tty1  [computer name] login: Password:   Login leads to:  Last login: Wed Mar 19 13:47:11MDT 2014 on tty1  Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-32generic-pae i686   The owner of the computer stated that this issue happened after a recent update, if that gives anyone a hint as to the specific location of the graphics failure.   I'm capable of booting into the GUI utilizing startx, but am frankly at a loss of where to go from here. Years of Windows has molded me into a GUI heavy kinda person, so, if possible, work off the assumption that I've no idea what you're talking about and break it down to the simplest of steps.  Thanks!
9042
I am very new to Linux and I've only been using it to SSH to my web server using Putty. The issue I am having is this:  Basically I've got 2 php scripts. One get_tweets.php constantly listens for tweets on twitters Streaming API whilst the other - parse_tweets.php logs these into a db. In order for these to work they've to be kept running continuously.   I've been using the following commands to run them in the background and from what I've seen they run for most of the day, however whenever I log on to my computer in the morning the scripts have stopped and I've to run commands again.  nohup php my_script.php &gt; /dev/null &amp;   I'm just wondering if that is normal based on the commands I am using, should they run indefinitely when using nohup and if not what is the alternative? A CRON job?  Thanks for the help
54788
I'm doing some test-runs of long-running data migration scripts, over SSH. Let's say I start running a script around 4 PM; now, 6 PM rolls around, and I'm cursing myself for not doing this all in screen.  Is there any way to "retroactively" nohup a process, or do I need to leave my computer online all night? If it's not possible to attach screen to/nohup a process I've already started, then why? Something to do with how parent/child proceses interact? (I won't accept a "no" answer that doesn't at least address the question of 'why' -- sorry ;) )
67499
I run MemTest86 a lot at work on customer's machines, and it's great for troubleshooting memory issues. My question is, how can I test that a GPU is starting to go?  I know of programs like 3DMark to push the graphics card to its limits, but what about with Video Memory? Is it worth testing? Is there a stress tool actually able to catch issues in the video card (memory), perhaps using CUDA/OpenCL?
9772
I am using Blender 2.77 and an R7 250 GPU on Windows.  Compute Device >> OpenCL (Oland).  OpenSubdiv >> (Tested with all).  Device >> GPU Compute.
123051
I am new to Ubuntu. I first downloaded the Ubuntu ISO file and put it in Rufus. Then booted from it in BIOS (MSI Gaming 970) and everything was fine. I've downloaded Ubuntu before, and this time it looked different. there was no Ubuntu logo nor a maroon colored background. I hit "Install Ubuntu" anyways, and came across this:    I let it sit there while I went to school, and came back and it was still there. I realized I should have installed the Nvidia Linux drivers. And so I downloaded them, and don't know actually how to run it (it's a .run file on Windows)  So how am I supposed to install Nvidia graphic drivers for Ubuntu when Ubuntu won't even install?
96729
I just jumped into a command line virtual console using Ctrl-Alt-F1, and i would now like to return to the gui. startx gives me something along the lines of 'this server is already active for display 0' if ...etc. it gives me a command to remove /tmp/.X0lock if that isn't the case...I could just restart the machine, but i'm worried i might mess something up.
28464
Since I upgraded to Windows 10, my system has been consuming RAM excessively    I've been reading a bit and determined it's likely a driver leaking memory. So I got myself the Windows Driver Kit and tracked memory usage with poolmon:    However, I don't really know how to proceed from here. Is the item tagged "smNp" the culprit in this issue? How do I go from there to actually identifying the driver?  I tried some stuff like "C:\Windows\System32\drivers>findstr /s smnp ." but it returned no results. I also took a look at the pooltag.txt file and this is the description I found for it:      So yeah, any help would be appreciated. Thanks in advance.
23903
I know that nobody likes duplicate questions, but I haven't found my answer on any of the other questions with this topic.  I built a computer with a  (made by Gigabyte).  It supposedly has 512 CUDA cores.  I followed  tutorial, (which enabled the Nvidia proprietary drivers) and was able to enable dual monitors and all the desktop graphics that are needed.  Unfortunetly, the GPU processing option still doesn't show up in Blender.  I've tried installing nvidia-cuda-toolkit, and that didn't make a difference.  I also tried to update my drivers from nvidia-346 to nvidia-349, and this had no apparent effect either.  What can I do to enable GPU rendering?  (I've tried both blender installed and just downloaded from the site).
51483
The reason I'm asking is that none of the games I've installed through software center that require 3D accelartion like TORCS for instance will run. When I try to run then, nothing happens. I have a Dell Inspiron N5110 with a nVidia GeForce GT 525M.  I tried the following which I were some suggestions for people with similar problems:  lspci -v   Which gave me:  01:00.0 VGA compatible controller: nVidia Corporation Device 0df5 (rev a1) (prog-if 00 [VGA controller])     Subsystem: Dell Device 04ca     Flags: bus master, fast devsel, latency 0, IRQ 16     Memory at f5000000 (32-bit, non-prefetchable) [size=16M]     Memory at e0000000 (64-bit, prefetchable) [size=256M]     Memory at f0000000 (64-bit, prefetchable) [size=32M]     I/O ports at e000 [size=128]     Expansion ROM at f6000000 [disabled] [size=512K]     Capabilities: &lt;access denied&gt;     Kernel driver in use: nvidia     Kernel modules: nvidia_current, nvidia_current_updates, nvidia, nouveau, nvidiafb   I also tried:  egrep -i " connected|card detect|primary dev" /var/log/Xorg.0.log   Which gave me:  [    20.873] (II) intel(0): Output LVDS1 connected   And:  nvidia-smi -a   Which gave:  NVIDIA: could not open the device file /dev/nvidiactl (No such file or directory). Nvidia-smi has failed because it couldn't communicate with NVIDIA driver. Make sure that latest NVIDIA driver is installed and running.   I don't really understand what all this means.
121688
I recently installed the NVIDIA 319 driver from the Jockey window, and now X won't load! I'm stuck with a blinking cursor. I used to have the 304 drivers installed.  How do I fix this?
54339
Basic System specs:   Samsung SSD 500GB CPU: Intel i5-7500  RAM: 16GB GPU: NVIDIA GeForce GTX1080 Currently configured to Dual Boot with Windows 10 64bit, but Windows boots without any havoc.   Issue:  Ubuntu 16.04 hangs in boot splash screen indefinitely, but after trying to fix it, now it successfully boots into shell mode. In addition, even pressing on ESC when it hangs doesn't display any logs.  So I couldn't see the boot log other than SSHing into my desktop, and open /var/log/boot.log  Here's what I got, while it was hanging:  [  OK  ] Started Network Manager Wait Online. [  OK  ] Reached target Network is Online. [  OK  ] Started Daily apt download activities. [  OK  ] Started Daily apt upgrade and clean activities. [  OK  ] Reached target Timers. [  OK  ] Started crash report submission daemon.          Starting /etc/rc.local Compatibility... [  OK  ] Started /etc/rc.local Compatibility.          Starting Terminate Plymouth Boot Screen...          Starting Hold until boot process finishes up...   I also tried dmesg | less after numerous googling to view the boot logs, and encountered into this at the end of it:  [    2.604476] random: crng init done [    2.631750] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready [    2.651404] r8169 0000:02:00.0 enp2s0: link down [    2.651432] r8169 0000:02:00.0 enp2s0: link down [    2.651488] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready [    2.691320] NVRM: Your system is not currently configured to drive a VGA console                on the primary VGA device. The NVIDIA Linux graphics driver                requires the use of a text-mode VGA console. Use of other console                drivers including, but not limited to, vesafb, may result in                corruption and stability problems, and is not supported. [    2.861207] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input14 [    2.861248] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input15 [    2.861281] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input16 [    2.861312] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input17 [    5.426350] r8169 0000:02:00.0 enp2s0: link up [    5.426356] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready   It seems like there is an issue with the NVIDIA card as I initially thought.  What I have done to fix this problem:   Update GRUB   Went to recovery mode and open terminal Changed the boot mode from quiet splash to acpi=force to force the boot into shell, now I rolled that back. cat /etc/X11/default-display-manager reveals lightdm as the default.  Update Intel video card driver I tried using boot-repair to fix grub issues, and the results are as such on pastebin:    What I might have done to cause this problem:   sudo service lightdm stop   In an effort to attempt controlling the GPU fan headlessly. But I ran sudo service lightdm restart Now I believe lightdm doesn't start up at boot. Here is the  I followed to control GPU fan remotely  sudo service lightdm restart   I tried restarting lightdm, and it does give me some positive output which is the login screen, but I can't do anything here as it is still frozen.  I try typing stuff on the keyboard but nothing shows up.    Can someone please help me figure this out??? I am really clueless and about to cry....