Installing Ubuntu Linux 16.04 alongside Windows 10 on secondary hard disk
I would like to install Ubuntu 16.04 on a Dell Inspiron 7570. It has a 256G SSD and 1TB HDD with Windows 10 installed on the SSD. I partitioned the 1TB HDD to create ~500GB space for a potential Linux installation (using Windows Disk Management, which now shows this space as unallocated), the rest is being used by Windows 10 for my Windows data.
Now I want to install Ubuntu 16.04 on this 500GB space, but am not sure how I should be going about the partitioning and bootloader business - esp. reading a few articles on the web is leaving me a bit confused including would it be Windows Boot Manager or GRUB that would start the system? When I started the Ubuntu installation I got a message asking if I wanted to install 3rd party hardware drivers to which I said Yes (it has a NVIDIA GEForce 940MX Card), so it asked me for a password to disable secure boot which I gave.
Please see the screenshots below which indicate the way system is partitioned. Also the device for bootloader installation drop-down in the screens below has the following options:
/dev/sdb ATA Micron 1100 SATA (256GB) ---->SSD /dev/sda ATA ST1000LM035-1RK1 (1.0TB) -----> HDD /dev/sdb1 - Windows Boot Manager /dev/sdb4 /dev/sdb5 /dev/sdb6
Can someone please guide me on the exact steps I need to take? I have data on my Windows system so I can't afford to mess around. Would appreciate right guidance on this.
Thanking in anticipation :)
See also questions close to this topic
Execute Bash Script via Cron Job
I've been searching for a while now, and I can't quite understand why I'm having this problem, nor find a usable solution. I'm trying to execute a bash script via a cron job.
I have the following two under the
crontab -llisted for
* * * * * /tmp/test.sh * * * * * /bin/echo "cron works" >> /tmp/file
test.shcontains the following:
echo "test" >> debug.txt
With the following permissions:
-rwxrwxr-x 1 root root 25 Jul 23 11:40 test.sh
I'm just trying to execute the test script once every minute. The second cron job where I'm outputting "cron works" to
/tmp/fileworks fine but the first one doesn't.
I can see that they're both executing via
grep CRON /var/log/syslog:
Jul 23 11:56:01 privacy CRON: (root) CMD (/tmp/test.sh) Jul 23 11:56:01 privacy CRON: (root) CMD (/bin/echo "cron works" >> /tmp/file)
Any suggestions are appreciated, and if there's anymore information I can add, let me know.
Systemctl stop not execute when status is failed
I have a service, it will start a java application, when everything is fine, it work fine too.
But when something goes wrong, the java process still running, but 'systemctl status myservice' is failed. In this situation, when I try to stop this service by execute 'systemctl stop myservice', nothing happened, the process still existed, I still can found it by 'ps -ef |grep java'.
I know I can kill this process by execute 'systemctl kill myservice', but I stil l want to know why this happen, and how to solve this problem?
SSH key management in big and mixed environments (Linux)
In every company I worked at it was always pain in the ass to manage ssh keys. We had different ways of managing them. But mostly it were some CM systems like puppet/chef/ansible or just manual copy of keys or even some ugly bash scripts :D
Also heard that some people use LDAP or any DB as ssh key store. But still you need some additional automation over here like some CM tool to put/delete key on server.
So the question is, is there some nice and modern way of doing it that I don't know? How big IT companies (like google or facebook etc) are handling keys?
ubuntu "reserve" dedicated gpu for a vm
Is there any way to "reserve" a dedicated Nvidia GPU for a VM containing Windows, and use just the integrated Intel GPU on the main system (Ubuntu Bionic)?
(Desktop PC, Nvidia GTX 1060, Ubuntu Bionic)
If so, is there any way to comfortably switch this GPU "allocation" for tasks without rebooting the whole system?
My main objective is to set the system the way that when the VM is off, Ubuntu would use Nvidia GPU, and when the VM starts, Ubuntu would "release" Nvidia GPU towards the VM, and use Intel GPU instead.
Do you guys have any suggestions on which software could help me achieve this result, or if its even possible??
I found myself that Qemu/KVM is the most suitable VM for gaming? Am I right?
GDAL 2.3.1 is installed but the llinux terminal is using GDAL 2.2.2
I've installed GDAL 2.3.1 using pip on a ubuntu 16.04. The package is in the correct site-packages directory and yet when I run a python script, I receive this error:
Error 1: NUMPY driver was compiled against GDAL 2.3, but the current library version is 2.2
When using 'gdal-config --version', the output shows '2.2.2'.
I want to know how to change the version of gdal that linux appears to be using from 2.2.2 to 2.3.1 but I have no idea how to do this.
Any help would be greatly appreciated!
How to delete a file that is stored in Ceph via Block device mounted on Ubuntu?
i have followed the docs here enter link description here and created a basic Ceph block device
i can also read/write to the block device using basic C# file operation. Howerver when i delete a file using
rmcommand in linux terminal, the file is removed from mounted device but the disk still remains occupied (at least that is what is shown in dashboard plugin).
GOPATH in Hyperledger Fabric
I'm going through the Hyperledger Fabric documentation at
and I've noticed that in the section "Getting Started" you start of with the prerequisites. So basically, installing all the dependencies for using fabric.
However, Fabric is not installed in the prerequisites section, but yet, in the Go Programming Language-part of that same section, it is mentioned that
First, you must set the environment variable GOPATH to point at the Go workspace containing the downloaded Fabric code base, with something like:
But there is no downloaded Fabric code base at that point.
What am I supposed to do? What is the value of GOPATH supposed to be?
vsto automatic web update
I have developed a VSTO add-in for Outlook and can install it from a ClickOnce setup.exe on an end-user's PC, but I do not understand how to implement an installer that will subsequently automatically update the add-in from a web location (URL). The add-in is for 'external' customers, so I cannot push the add-in to the end-users' PCs.
I suspect that I am missing or misunderstanding something fundamental, but can't find the solution (I believe that I have read all the MS documentation on VSTO ClickOnce configurations).
I know that in the Visual Studio publish settings, I need to specify an "Installation Folder URL" for the updated VSTO files, but it seems as though I am in a Catch-22 situation because the VSTO will only update if it was originally installed from the specified URL. If I upload the initial installation files to the URL, so the end-user can download the setup.exe file (for their first install), then they cannot run it, because the setup.exe is being run from the end-users PC, not the URL (i.e. "location is not trusted"). On the other hand, if I create a setup.exe to run on the end-user's PC, it installs just fine, but then it doesn't know to update from the URL.
What I have achieved on my development machine is:
Run the VSTO in Debug mode (with the update URL specified in the publish settings), so Outlook loads the add-in. Then, stop debugging, publish an update and upload it to the URL, reload Outlook (from the desktop); the add-in updates automatically from the URL. This demonstrates that the auto-update is working from the URL.
I am wondering if the automatic updating from a URL is only intended for situations when the VSTO has been deployed internally within an organisation via a push mechanism, and then the add-in subsequently updates automatically from the URL.
The bottom-line question is, how can an 'external' end-user first install an add-in, so that it subsequently updates from the specified URL?
installing chaco [anaconda] UnsatisfiableError conflict chaco mkl_fft
I want to install chaco by anaconda, I got the following results :
conda install -c anaconda chaco UnsatisfiableError: The following specifications were found to be in conflict: - chaco - mkl_fft
enable is a dependency of chaco,
conda install -c anaconda enable UnsatisfiableError: The following specifications were found to be in conflict: - enable - mkl_fft
I have already installed
mkl_fft. I am new to using anaconda. Do you have any solution? regards
Phantomjs PDF output shows chinese characters as blank
I'm using Phantomjs 2.1.1 on ubuntu 16.04 to generate PDF files out of HTML (an NPM package called
node-html-pdf). My problem is that Chinese charecters do not show up at all in the output PDF, whereas everything else is fine. Locally, on my Mac, the same HTML is generate fine (Chinese is shown fine). I've tried installing language packages like this:
sudo apt-get install language-pack-zh-hans sudo apt-get install ttf-arphic-uming sudo apt-get install ttf-dejavu ttf-wqy-microhei sudo fc-cache -f -v
Also tried including
Content-Type: text/html; charset=utf-8in the HTML. Is there anything else I can try ?
Changing the username of the main account in a linux vm on Azure
I had set up my Ubuntu vm on Azure using a username
testuser. But then I wanted to change the username. Since changing the username is trivial I logged in as root and changed the username to
myuser, specifically as mentioned here after opening up root as mentioned here. But, I am an unsure if Azure itself keeps a note of the username I used while creating the VM and if this is going to cause issues down the line. I have not found a place to manage linux users in Azure but I have seen that when I click connect in the VM Dashboard, it gives the ssh string using the old username. How do I fix this?
How run my code in spyder as i used to run it in linux terminal
Apologies if my question is stupid. I am a newbie is all aspects.
I used to run my python code straight from the terminal in Linux Ubuntu, e.g. I just open the terminal go to my folder and run my command in my Linux terminal
CUDA_VISIBLE_DEVICES=0 python trainval_net.py --dataset pascal_voc --net resnet101 --epochs 7 --bs 1 --nw 4 --lr 1e-3 --lr_decay_step 5 --cuda
now im trying to use Spyder.
So for the same project i have a folder with bunch of functions/folders/stuff inside it.
So i just open that main folder as a new project, then i have noo idea how i can run my code...
There is a console in the right side of spyder which looks like Ipython and i can do stuff in there, but i cannot run the code that i run in terminal there.
In iphython or jupyther i used to usee
!at the begining of the command but here when i do it (e.g.
!CUDA_VISIBLE_DEVICES=0 python trainval_net.py --dataset pascal_voc --net resnet101 --epochs 7 --bs 1 --nw 4 --lr 1e-3 --lr_decay_step 5 --cuda) it does not even know the modules and throw errors (e.g. ImportError: No module named numpy`)
Can anyone tell me how should i run my code here in Spyder
Thank you in advance! :)
How to use cloned windows partition as the new start partition?
I have cloned my windows partition (C:) to a new SSD, which has letter E:. I would like now to switch the letters, so that the new SSD gets the letter C. Is there a way to switch letters without removing the old harddrive? I would like to use it (after moving) for backup and data ...
The partition manager allows me not to switch drive letters, I have tried that already. How can it be done.
I am using windows 10, by the way.
How does my external HDD encryption work?
so I just purchased an external hdd and it comes with encryption. So this is how connecting the hd works.
When I connect the hdd, it is detected as a CD-ROM by windows, it is not even displayed as Hard drive in the Windows 10 Disk Managment Utility. Once i enter the password of the hdd, Windows Disk Managment Utility picks up the hard drive and so does Windows File Explorer.
What I can't understand is why is not picked up by the Disk Managment Utility in the beginning. Also, what if I wipe the hdd through the disk managment utility, will the Windows 10 be able detect it as a CD-ROM and ask for passwords when I connect the drive, if yes, where is the password stored? I mean I would've wiped the complete drive.
Oh, and there's a file called FwSDK.dll in the folder when Windows picks it up as CD-ROM. I couldn't find online what FwSDK.dll is or how it works.
How do I identify the name of disk in first slot of my server?
I have 16 disks inserted into a server. The disk names /dev/sda , /dev/sdb ... are not in order with its position in the slots. I want to identify what is the name of the disk in first slot ( in linux ).