sasha2002 Blog's

Just another blog from admin's

Archive for the ‘Linux’ Category

Hyper-V can’t start, “‘General access denied error’ (0x80070005)” error message —

‘VMName’: IDE/ATAPI Account does not have sufficient privilege to open attachment‘E:\VMs\VMName\Disk0.vhd. Error: ‘General access denied error’ (0x80070005). (VirtualMachine ID 5FC5C385-BD98-451F-B3F3-1E50E06EE663) Administrator@cmd #icacls “C:\hyper-v\Virtual Hard Disks\SomeName.vhdx” /grant “NT VIRTUAL MACHINE\6F8DF426-6AA6-42E6-96F1-7591CF9BBD3F”:(F) https://support.microsoft.com/en-us/help/2249906/hyper-v-virtual-machine-may-not-start-and-you-receive-a-general-access

Install NodeJS and PostgreSQL —

NodeJS : V8 curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash – sudo apt-get install -y nodejs V10 curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash – sudo apt-get install -y nodejs PostgreSQL : Create the file /etc/apt/sources.list.d/pgdg.list, and add a line for the repository deb http://apt.postgresql.org/pub/repos/apt/ YOUR_UBUNTU_VERSION_HERE-pgdg main Import the repository signing key, and update the […]

system wide proxy ubuntu linux —

In the end of file /etc/bash.bashrc : # nano /etc/bash.bashrc export http_proxy=http://192.168.241.4:63128/ export https_proxy=http://192.168.241.4:63128/ export ftp_proxy=http://192.168.241.4:63128/ In the end of file : # nano /etc/environment JAVA_HOME=”/usr/lib/jvm/java-8-oracle” JRE_HOME=”/usr/lib/jvm/java-8-oracle/jre” export http_proxy=http://192.168.241.4:63128/ export https_proxy=http://192.168.241.4:63128/ export ftp_proxy=http://192.168.241.4:63128/ In the end of file(if file not exist create one) /etc/apt/apt.conf: # nano /etc/apt/apt.conf Acquire::http::Proxy “http://192.168.241.4:63128”; Acquire::https::Proxy “http://192.168.241.4:63128”; Acquire::ftp::Proxy “http://192.168.241.4:63128”;