Download and install wget - api

I am new in using API to download data. I have to install wget on my Windows 10 64-bit machine but not sure how to proceed. Where to download and how to install it properly. Could you share with me the necessary steps?
Thanks
M

I installed wget on my command line for Windows 10 64-bit machine using the following steps:
Download the wget setup EXE here: https://sourceforge.net/projects/gnuwin32/files/wget/1.11.4-1/wget-1.11.4-1-setup.exe/download?use_mirror=excellmedia
Run the EXE, and accept all the defaults
Now you have the wget app that you access via your command line, as there is no GUI. You can access wget in two ways..1) cd to the directory, or 2) add it as an environment variable, so you can access it from any directory on the command prompt. I would recommend the second approach if you plan on using wget frequently:
Cd to Wget- copy the following and paste to your command line:
cd \Program Files (x86)\GnuWin32\bin
Once in this folder, your can now type wget and all of its functions
Add Environment Variable- instead of having to manually cd to the directory for wget, you can just add wget as an environment variable. First, open file explorer and paste the following into the directory:
Control Panel\System and Security\System
click Advanced System Settings -> click Environment Variables -> select ‘Path’ in the Environment Variables window -> click Edit -> click New -> click Browse -> then enter this location:
C:\Program Files (x86)\GnuWin32\bin
click Ok on each window to exit. Now close your terminal and open it again. You can now evoke wget from any directory on your command prompt, without having to manually cd into the directory that houses the wget app.

You can first make use of a bash console on your Windows 10.
Take a look at the instruction:
how-to-install-and-use-the-linux-bash-shell-on-windows-10
After enabling this feature you will be able to install wget from Ubuntu terminal using:
sudo apt-get install wget
Alternative solution found on superuser:
how-to-download-files-from-command-line-in-windows-like-wget-is-doing

Related

How do I install JetBrains Rider via snap on Linux Ubuntu 20?

I am attempting to install JetBrains Rider on an Ubuntu Linux system using snap.
I use the following commands:
sudo apt update
sudo apt install snapd
sudo snap install rider --classic
It looks like it installs correctly.
I can seem to to figure how to actually start Rider.
How do I run Rider after it's been installed via snap.
Is snap the best way to install?
Enter the command snap run rider in the terminal and hit enter.
A first time installer will run letting you specify Rider customisation and other defaults.
Subsequently you can enter the command /snap/bin/rider in the terminal and hit enter.
Alternatively, create a Rider menu item by running the following command cp /var/lib/snapd/desktop/applications/rider_rider.desktop ~/.local/share/applications/
You will then also have the option to right click and "Add to panel"
Update: Adding /snap/bin to your path (the fact it is missing I suspect is a snap bug) will also fix this issue.
I opened up ~/.bashrc and added the following line at the bottom PATH=/snap/bin:$PATH
Saved and reloaded the file by executing source .bashrc
Now I can load rider from any bash terminal by simply entering rider and hitting enter.
I'm using Debian buster btw.
References:
https://snapcraft.io/docs/getting-started#heading--running
https://forums.linuxmint.com/viewtopic.php?t=319827

windows RabbitMQ doesnt have rabbitmqadmin in sbin folder

I am working on RabbitMQ in windows environment.Do we have rabbitmqadmin for windows as well?
i am not able to find rabbitmqadmin in sbin folder of rabbitmq.
please let me know .
You will not find rabbitmqadmin in sbin. You need to do following to get it working on windows
You need python installed on your windows machine.
Follow this link to download and install python : https://www.python.org/downloads/
Once installed, update system env variable path by adding python installation path to existing value.
Check the installation and path setting has correctly by using this command python. It should open command line editor
Browse to http://{host}:15672/cli/ to download rabbitmqadmin, save it without extension
Now open the command prompt, change your directory to rabbitmqadmin downloaded directory and execute below command:
python.exe rabbitmqadmin --help
If you see the helps are shown in response of above command then you are all set to perform various rabbitmqadmin operations!

How to install apxs on xampp

I have a site I'm running off an Apache server, and I want to run a python script using the server and the web browser. I'm using xampp, and I have researched that I have to use modwsgi, and I have downloaded the zip and unpacked it onto my desktop. Now using command prompt I run
setup.py install
The first time I did this, I didn't have setup tools installed for python (I have python 2.7.8 and I'm on Windows 7 64 bit), so I went ahead and downloaded that, but now when I run the command again I get the following message
RuntimeError: The 'apxs' command appears to not to be installed or is not exectuable.
Please check the list of prerequistes in the documentation for the package and install
any missing Apache httpd server packages.
How exactly do I install apxs because I don't have Apache but xampp?
I was installing apxs on XAMPP in Windows. I wrote a blog post with the complete solution (in Spanish). I basically compiled my own version of apxs. The steps were:
Install ActiveState Perl for Windows
Add C:\xampp\apache\bin to the environment variable Path
Download apxs from here
Unzip tar.gz file in C:\xampp\apache\bin.
Execute:
ppm install dmake
cd c:\xampp\apache\bin\apxs
perl Configure.pl --with-apache2=C:\xampp\apache
--with-apache-prog=httpd.exe

How to install OCLint in mac os x

I'm trying to install OCLint in my mac with MAC OS X mavericks
Its documentation here says that
*Following code snippet is an example for the .bashrc or .bash_profile file that is sourced when terminal launches.*
OCLINT_HOME=/path/to/oclint-release
export PATH=$OCLINT_HOME/bin:$PATH
How can I accomplish this? whether I need to create .bashrc or .bash_profile file, or add to existing file. Where can I locate .bashrc or .bash_profile file
Install Oclint with Homebrew is quickly and helpful solution.
Open terminal and install homebrew first:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Oclint 0.11.1 with this command
brew install https://gist.github.com/TonyAnhTran/e1522b93853c5a456b74/raw/2f440240fe99634771a3f2353c0c53a43c2d0fb2/oclint.rb
To create .bash_profile in terminal:
Type "cd ~/" to go to your home folder
Type "touch .bash_profile" to create your new file.
Edit .bash_profile with your favorite editor (or you can just type "open -e .bash_profile" to open it in TextEdit.
Type ". .bash_profile" to reload .bash_profile and update any functions you add.
Update on 31-Jul-2017:
before_install:
brew cask uninstall oclint
brew tap oclint/formulae
brew install oclint
brew tap oclint/formulae
brew install oclint
More details are here: https://github.com/oclint/homebrew-formulae
If you have a .bashrc in your home directory (i.e. /Users/yourname/.bashrc) already then just append these lines, otherwise create a new .bashrc containing these two lines. Then do this:
$ source ~/.bashrc
Those files should be in your home directory, but they will be hidden by default due to the leading dot. You can enable the "Show all files" feature to see them in Finder. Or, if you're comfortable using the Terminal app, edit the files from the terminal and append the lines for OCLint.

Manual Installation of Glassfish on Ubuntu

I just installed Glassfish on my Ubuntu server (No GUI) using THIS tutorial. Everything went well. But now when I'm trying to play with ASADMIN tool it's telling me this:
The program 'asadmin' is currently not
installed. You can install it by
typing: apt-get install glassfishv2
-bash: asadmin: command not found
So, in order to run asadmin tool always need to type:
/opt/glassfish/bin/asadmin start-domain domain1
or go to that folder and run it from there.
So, the question is, what file do i need to edit in order to set this path in to the environment.
You can add the following to your ~/.bashrc file to add all the binaries in /opt/glassfish/bin to your $PATH
export PATH=$PATH:/opt/glassfish/bin
~ expands to /home/your-user - just to be clear.
Just type to CLI:
export PATH=/opt/glassfish/bin/:$PATH