Downloading Oracle Glassfish on Ubuntu Server - redirect

I have an Ubuntu natty server running on Amazon EC2. My problem is that I'm trying to download Oracle Glassfish 3.1.1 however I can't get the file because it redirects to another url. It ends up downloading a 2 kb html file and saving it as the glassfish.sh file.
When I check the content of the html file it seems the login part is failing.
I've tried wget --http-user="USER" --http-password="PASSWORD" url
Same problem.

Downloading from Oracle with wget is not trivial, because Oracle requires that you accept to the license agreement which in turn is statefully stored.
If you have no way of getting the file from somewhere else I'd recommend using one of the text based browsers, elinks or w3m.

Are you interested in the commercial distribution or the open source distribution? Putting Oracle GlassFish Server into production requires a commercial license. You can download the open source distribution from here: http://glassfish.java.net/downloads/3.1.1-final.html

Related

Restore Moodle Backup issues: error reading from database

I am trying to restore a backup of Moodle version 2.7 with PHP 5.5 and MySQL 5.5 from one server to another server with Moodle 3.9 and PHP 7.4 and MySQL 8.0. But I am getting the following error:
I even tried the to change ##default_storage_engine to ##storage_engine in /lib/dml/mysqli_native_moodle_database.php but still not working. I also verified the disk space. There is enough space on the disk.
You need to follow an upgrade path from Moodle 2.7
https://docs.moodle.org/311/en/Upgrading_FAQ#How_do_I_upgrade_from_1.9.x_to_3.11.3F
First install Moodle 2.7.20 on the new server and restore the database.
Then upgrade to Moodle 3.2.9
Then you can upgrade to Moodle 3.9.x
Note that you will need to upgrade any additional plugins that were installed too. I'd recommend doing this at each upgrade stage for each version.
If you haven't already, you will also need to back up the site data folder at the same time as the database backup. The site data folder contains uploaded files, these are not stored in the database. As well as custom languages.
https://docs.moodle.org/39/en/Upgrading

SQL Developer on Mac

I have downloaded SQL Developer, but I can't login.
The error is:
The Network Adapter could not establish the connection.
Some pages recommend downloading Oracle Instant Client for MacOS, but I don't know how to configure it.
In order for SQL Developer to run, you should install JDK 1.8 or higher - did you do that? If not, here it is. As you've already downloaded SQL Developer, just double-click the icon and - hopefully, it'll work.

Downloading Oracle database 12c Release 1 (12.1.0.2.0) on Linux via wget

How can I download oracle database with wget or curl on CentOS release 6.9 (Final)?
See Downloading Oracle database 12c Release 1 (12.1.0.2.0) on Linux via wget
Using your browser on your PC, go to http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index-092322.html
read, understand and accept license agreement
Login with your Oracle SSO Account
Start & stop download, copy download link in browser's download manager, for example in Firefox:
start curl download with copied URL
curl "http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_database_2of2.zip?AuthParam=XXX" -o linuxamd64_12102_database_2of2.zip (obviously AuthParam=XXX has to be your's)
You can download it using wget. But you need AuthParam along with the zip URL. You can simply do the same using Internet Explorer. Read the full article here: https://support.dbagenesis.com/knowledge-base/downloading-oracle-12c-using-linux-wget/?unapproved=353&moderation-hash=41dde518defdb8e225ffed9c81fb83da#comment-353
Oracle supports basic authentication when downloading files.
Try
wget --http-user=you#domain.com --ask-password "http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_database_1of2.zip" -O file1of2
and
wget --http-user=you#domain.com --ask-password "http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_database_2of2.zip" -O file2of2
You'll be prompted for password.
Make sure to verify your downloads.

Odoo: Internal Server Error

I've installed Odoo 9.0 on Ubuntu 14.04, and I've activated the developer mode to install module from App Store. Every app I try to install that doesn't belong to the 31 apps offered by default without accessing developer mode, I get this error:
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
It looks like this happens only on the local installation. i tried to install the Barcode app in online trial, and I encoutered no problems.
If anyone may help me, I'll be eternaly grateful.
Anyway, I'm pretty sure that the app on the "App store" provided in Odoo (not the ones that is possible to download in zip and add to addons), are only for the enterprise version.
I tried in a lot of computers and different installation with no luck.
Still happenning as of today. I've been able to manually install the module I wanted:
Go to the app store web site: https://apps.openerp.com/apps/modules
Search for and download your module
unzip the archive in the addons directory of your odoo installation
Go in odoo, settings, update modules list
you can then look for it in Local Modules. You may need to remove all filters. I've done this in v8.

Upload and Deploy Golang application to VPS

I've made a Go app and when I run the exe locally it works fine. Where would I upload this to on my VPS? public_html/domain.com/somefolder ? or /usr/somefolder with SSH?
I have my app, my .exe and src-files, but what do I do with it when I deploy online on my VPS? I haven't been able to find a tutorial about this, so I hope you can help me.
do I upload all files in my src folder including the binaries from when I've written "go build"?
upload to where on my VPS? using ssh or cpanel / ftp program or what?
What are the steps from "go build" on your own local windows 8 computer to uploading and running it online on a linux server?
Ps.
Additionally will CentOS 5.1.1 although not supported https://golang.org/doc/install - allow for me to run an already linux compiled go program on my VPS, and does it only mean that I cannot install Go and do compilation on the CentOS 5.x server? Would CentOS 5.1.1 explain the "segmentation fault" error shh gives me when running the command "./[filename]"?
Well, usually, you would:
Copy the binary you created + all resource files (html, css, images, ...)
(optionally the source code as well)
Have a way to ensure the program keeps running
crontab can be used to check if your program is alive, but a simple monitoring program would suffice as well (which you can write yourself)
Run the binary as a non-privileged user
(you can also combine it with something like Docker if you want)
It does not make sense to put it inside public_html/domain.com/somefolder, as it is not public html code. You'd want your files somewhere they cannot be accessed unless using the application/binary you created.
My apologies for not having neat source links to my story. However, this does seem like the best thing to do.
Another important note:
Even though your VPS may run Windows, you can also deploy linux binaries to a Linux VPS (which are drastically cheaper) - looking at this SO question.
A short note I wrote on writing golang app on osx and deploying on Linux server: http://kumargaurav.co/2016/08/10/deploy-go-lang-app-linux-server/