How can yum download packages from a non-existent base URL? - google-chrome

In order to get the Chrome browser running on RHEL 7.5 I found this yum repo file that helped me install the required package:
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
Now the installation via yum install google-chrome worked perfectly fine, but I wonder how that's possible, because the baseurl (and any shorter path segment of it) returns an error "404 Not Found". How is it possible that yum downloads packages given this repo file?

It looks like google just return a 404 rather than a directory listing.
If you browse directly to: https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/repomd.xml the correct xml file is downloaded and behaves normally. I'd guess if you put the full & correct path to a given .rpm you would be able to download that manually as well.

Related

ng is not recognized as an internal or external command(Angular 6)

After installing Node(latest version). I ran command npm install #angular/cli -g, it installed angular cli successfully. Then to verify it's installation, I tried to run ng v, but got the error message saying:
"ng is not recognized as an internal or external command".
After some research, I came to know that I need to set the system variable path "C:\Users\jaiprakash.mewada\AppData\Roaming\npm\node_modules#angular\cli\bin", but it still not worked for me.
In place of "C:\Users\jaiprakash.mewada\AppData\Roaming\npm\node_modules#angular\cli\bin", I tried with path "C:\Users\jaiprakash.mewada\AppData\Roaming\npm" only and it worked.
We need to make sure, we are setting up the path of folder, where it can locate the "ng" files as shown below. I guess, in earlier version, ng files used to locate in bin folder.
enter image description here

How to install chrome in custom location using chocolatey

I want to install chrome in a custom location by using chocolatey, but I can't figure out how to do it.
I know I have to use
choco install googlechrome --installargs "<someargs>"
but I can not find the args to pass. Is this even possible?
I don't want to install chrome in the default directory
C:\Program Files (x86)\Google\Chrome\Application

How to obtain Chrome stable version .deb or zip or tarball for Ubuntu?

I am in a network where Google is blocked. I needed to install Google Chrome. Hence I cannot go to Chrome download page, it is restricted. Neither can I use
apt-get install google-chrome-stable.
It returns error.
Since I don't have access to Google urls, I tried the below command and tried to install
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
Doesn't work. Hence I need a URL or third party repository which has chrome.deb files. Or any other alternative to download chrome. No I do not have USB port to download and copy. It's on a virtual machine.
Since our network does not allow to access Google redirected the request through a proxy network. i.e. by adding proxy paths in /etc/environment and for apt installs add a file called 95proxies in the apt directory.
Then use apt-get install google-chrome-stable.

Building a C project on Ubuntu linux has error 'mysql/mysql.h no such file'

I know it's a stupid question but I'm new to Ubuntu. The C files in the project build ok but then I get the error
mysql/mysql.h no such file or directory.
I've tried installing mysql server using apt-get but I still get the same error.
is there something else I should install to see the mysql files ?
You need to install the libmysqlclient-dev package.
On Windows eclipse mingw32, the include path mysql/mysql.h is not working either. I have to use mysql.h without path but with Properties > C/C++ General > Path and Symbols > Includes adding the exact directory where mysql.h resides.
Its probably a problem of path delimiters on windows though I have tested both \ and /.

How to get mod_mono.so in Mac OS X 10.9

I have installed MONO from http://monodevelop.com/Download and installed the Mono framework MRE and MDK. I am trying to get this to work in Apache on OS X 10.9. I see I need the mod_mono.so for Apache but I can not see it in the downloads section. How do I get or compile mod_mono.so for Apache?
I am a novice with mono but followed some instructions. I downloaded and installed everything from here:
http://www.go-mono.com/mono-downloads/download.html
To get Apache to work with mod_mono.so I downloaded source from this page:
http://download.mono-project.com/sources/mod_mono/
You have to compile it. I went into the unpacked directory and wrote this in termminal:
./configure --prefix=/usr
make
sudo make install
This puts the mod_mono.so in correct Apache dir and the mod_mono.conf file. To include it you must add this to your httpd.conf (I put it at the end of the file):
# mod_mono_configuration
Include /etc/apache2/mod_mono.conf
MonoServerPath /Library/Frameworks/Mono.framework/Versions/Current/bin/mod-mono-server2