How to configure glassfish or Tomcat server with netbeans Ide in ubuntu 14.04 in 32-bit System - glassfish

In ubuntu 14.04,i tried to configure glassfidh sever in netbeans. I am also following below steps.
But it could not configured.
Step 1: wget http://download.java.net/glassfish/4.1/release/glassfish-4.1.zip
Step 2: unzip glassfish-4.1.zip -d /opt/
Step 3: nano ~/.profile
Step 4: source ~/.profile
Step 5: asadmin start-domain
step 1 to step 4, there is no problem but at step 5 there is problem like:
No command 'asadmin' found, did you mean: Command 'acsadmin'
from package 'ion' (universe) Command 'amadmin' from package
'amanda-server' (universe) asadmin: command not found
i am following above steps, if i am wrong please correct me.
Thank you.

The asadmin tool is located in the glassfish4 directory that you unzipped. The error message is Ubuntu telling you that it doesn't know of any command named asadmin.
You will need to specify where the asadmin tool is for Ubuntu to interact with it. If you are in the same directory, this means using:
./asadmin start-domain
If you want to be able to start GlassFish like this regardless of the directory, it would be best to install GlassFish as a service as follows:
./asadmin create-service
You should then be able to run something like the following from any terminal window:
service GlassFish_domain1 start
service GlassFish_domain1 stop
service GlassFish_domain1 restart
Find out more details about the options for the command by using the following:
./asadmin help create-service

Related

Unable to install nextflow correctly

I've attempted to install Nextflow with command "curl get.nextflow.io | bash" in my Windows system command prompt-bash, but I consistently see this error: Unable to initialize nextflow environment
In parallel, on a remote server, the Nextflow is installed with the same command and I can verify that with ls command. However, when I prepare a sample script (hello.nf), executing it by "nextflow run hello.nf" shows that Nextflow is not characterised.
In any of cases, typing "nextflow info" doesn't recognise nextflow. Is there anyway that I can install Nextflow or have I missed any step? I have also tried with wget, but no success yet.
Thanks in advance!
If you have Windows 10 Version 1903 with Build 18362 or higher, you can use the Windows Subsystem for Linux 2 (WSL 2) rather than having to configure a Linux VM. There's a few hoops to jump through, but this guide (Oct 2021) should be sufficient: Setting up a Nextflow environment on Windows 10
On your remote machine, all you should need to do is to move your nextflow to somewhere in your $PATH. Alternatively, you can just call it with ./nextflow (assuming it is in your current directory).

I configured sonar in my local host Ubuntu 16.04 but http://localhost:9000/sonar not working

I am configuring sonar(https://www.sonarqube.org) to my local machine which has Ubuntu 16.04 OS with LAMP(Linux,Apache,mysql,PHP) installed in it.
I have considered these reference link to setup SonarPHP
https://www.howtoforge.com/tutorial/how-to-install-sonarqube-on-ubuntu-1604/
https://www.talentica.com/blogs/sonarqube-php-project-ubuntu/
Now I can see that sonar is running in my PC but link http://localhost:9000/sonar is not working.
Please help me.
After lot of research I found the solution. I am explaining step by step process of how to setup Sonar in Ubuntu16.04 so other's developer who is new to sonar can understand this process.
Step 1
Download sonar "Community Edition 7.7" from this link https://www.sonarqube.org/downloads/
Step 2
Unzip file and move folder to /opt/sonarqube
Step 3
Update Sonar configuration file
sudo vi sonarqube-7.0/conf/sonar.properties
Update following values [database user = sonarqube,database = sonarqube]
sonar.jdbc.username=sonarqube
sonar.jdbc.password=some_secure_password
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonarqube?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
sonar.web.host=127.0.0.1
sonar.web.javaAdditionalOpts=-server
...
Step 4
Create new service in ubuntu 16.04
sudo vi /etc/systemd/system/sonarqube.service
add following text to file and make sure that you have double checked mentioned path.
[Unit]
Description=SonarQube service
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh start
ExecStop=/opt/sonarqube/bin/linux-x86-64/sonar.sh stop
User=sonarqube
Group=sonarqube
Restart=always
[Install]
WantedBy=multi-user.target
Start sonar by following command
sudo service sonarqube start
Check sonar status using following command
service sonarqube status
Enable sonar by following command
sudo systemctl enable sonarqube
Step 5
Create Mysql database user and database with following details
Database Username : sonarqube
Database Name : sonarqube
Done.
For project scan you have to download and setup sonar-scanner.
I have taken following links for reference.
https://www.digitalocean.com/community/tutorials/how-to-ensure-code-quality-with-sonarqube-on-ubuntu-16-04
https://www.talentica.com/blogs/sonarqube-php-project-ubuntu/

Where is passenger_config on Debian?

I'm running Debian 8, I want to install Passenger for Apache and followed the instructions here -- https://www.phusionpassenger.com/library/install/apache/install/oss/jessie/. However, when I get to the step about validating the config ...
myuser#myserver:/var/www/html/myuser.net/cindex $ sudo /usr/bin/passenger-config validate-install
sudo: /usr/bin/passenger-config: command not found
I don't find this file anywhere on my system. Where do I find the passenger-config or is the validation step outdated?

How to start GlassFish Server on Windows 7?

I installed GlassFish Server in C:\glassfish3 directory.
When I type "dir" in c:\glassfish3\bin directory the files are listed just fine.
But when I type asadmin I get "The system cannot find the path specified."
What might be wrong?
How am I going to start GlassFish server?
-- Edit --
Also, after Installation I get:
Creating domain
Executing command :C:\glassfish3\glassfish\bin\asadmin.bat --user admin --passwordfile - create-domain --savelogin --checkports=false --adminport 4848 --instanceport 8080 --domainproperties=jms.port=7676:domain.jmxPort=8686:orb.listener.port=3700:http.ssl.port=8181:orb.ssl.port=3820:orb.mutualauth.port=3920 domain1
C:\glassfish3\glassfish\bin\asadmin.bat --user admin --passwordfile - create-domain --savelogin --checkports=false --adminport 4848 --instanceport 8080 --domainproperties=jms.port=7676:domain.jmxPort=8686:orb.listener.port=3700:http.ssl.port=8181:orb.ssl.port=3820:orb.mutualauth.port=3920 domain1 The system cannot find the path specified.
glassfish requires jdk6 or 7 already installed. type java -version on command line. if it's not working then you need to install it.
alternatively you can tell glassfish to look for a particular jdk, by modifying C:\glassfish3\glassfish\config\asenv.bat -- but I wouldn't recommend it.

cygwin sshd service not starting on windows 2003

Hi! I get following error when tried to start the Cygwin sshd Windows service:
$ cygrunsrv.exe -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
I used ssh-host-config to install the service with privilege separation. The script created two users: sshd and sshd_server.
The following solved this issue for me:
Add the "Full Control" permission for the SYSTEM user to the following directories:
C:\Cygwin
C:\Cygwin\var
C:\Cygwin\var\log
If it still doesn't help then, try running ssh-host-config -y and retry cygrunsrv -S sshd.
Also, I actually uninstalled the sshd service by issuing cygrunsrv -R sshd prior to retrying and only after that running ssh-host-config -y.
(I found the solution at http://www.noah.org/wiki/Sshd_on_Windows)