Apache-jena-fuseki running on Ubuntu 19.10 password? - jena

I am following this tutorial:
https://gist.github.com/nichtich/113ecc2831d01eb4ae91508b88c0217c
in order to install Apche-jena-fuseki on Ubuntu 19.10 Desktop. The version I am using is: apache-jena-fuseki-3.14.0
When I execute this command:
sudo vim /etc/default/fuseki
I give password: pw
as I found from google search but it does not accept it....
Which is the deafault password for this version? Am I doing something wrong?

Related

Installing Informix CSDK in an Ubuntu Docker container

I'm trying to install ibm.csdk.4.50.FC3.LNX in a Docker container based on Ubuntu 18.
I run in the container the installation file as follows:
root#mycontainer:/usr/src/ibm.csdk.4.50.FC3.LNX# ./installclientsdk -i console
But I get this error:
One or more prerequisite system libraries are not installed on your
computer. Install libdl.so.2, libcrypt.so.1, libpam.so.0,
libstdc++.so.6, libm.so.6, libgcc_s.so.1, libc.so.6, libncurses.so.5
and then restart the IBM Informix installation program.
The installation cannot succeed until the minimum requirements are
met. For more information about the prerequisites, see your
Installation Guide or check with your System Administrator.
However those files are already in the container in the following paths:
/lib/x86_64-linux-gnu/libdl.so.2
/lib/x86_64-linux-gnu/libcrypt.so.1
/lib/x86_64-linux-gnu/libpam.so.0
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/lib/x86_64-linux-gnu/libm.so.6
/lib/x86_64-linux-gnu/libgcc_s.so.1
/lib/x86_64-linux-gnu/libc.so.6
/lib/x86_64-linux-gnu/libncurses.so.5
How can I install it?
Running apt install unixodbc-dev seems fixing.
You might want to install also unixodbc
We have similar issue where we are running shell script which runs dbaccess inside the docker container. but as we run the docker as root user it is trying to use root user to connect to the informix db server. is there a way we can configure user name and password for dbaccess to use the configured userId instead of root.

"bash: aws: command not found" on Windows 7 in Git Bash

I'm trying to use AWS CLI to access CodeCommit. And it's sort of working. I am able to use the aws command in the Windows command prompt. However, when I try to access it using the Git Bash shell, it says
"bash: aws: command not found."
Additionally, when I try to do do a git clone in the Windows command promt, trying to access CodeCommit, it tries to use aws using the credentials helper, which also results in "aws: command not found."
I followed the instructions in the AWS documentation, which suggests some directories to add to the PATH:
https://docs.aws.amazon.com/cli/latest/userguide/awscli-install-windows.html#awscli-install-windows-path
Here's what my PATH variable looks like:
C:\Users\ddrayton\AppData\Local\Programs\Python\Python36\Scripts\;C:\Users\ddrayton\AppData\Local\Programs\Python\Python36\;C:\Windows\System32;;C:\Program
Files\Docker
Toolbox;C:\Users\ddrayton\MyCurl;%USERPROFILE%\AppData\Local\Programs\Python\Python36\Scripts;C:\Program
Files\Amazon\AWSCLI;C:\Program Files
(x86)\Amazon\AWSCLI;C:\Users\ddrayton\AppData\Local\Programs\Python\Python36;C:\Users\ddrayton\AppData\Local\Programs\Python\Python36\Scripts
But I'm not sure if it's a PATH problem, since the Windows command prompt has no problem accessing the "aws" command.
Any ideas?
Fixed this by simply installing the AWS CLI again but this time using Git Bash instead of the Windows command prompt.
pip install awscli
If anyone could provide some insight as to why this was necessary, it would be appreciated.
In my case, I think a recent-to-me update to the AWS CLI changed what's run to being aws.cmd (full path C:\Program Files\Amazon\AWSCLI\bin\aws.cmd)
Git Bash needs the extension aws.cmd to make it work.
In Bash, you could try typing aws.cmd vs aws. If the former works, but not the latter, you can do alias aws='aws.cmd' in your bash startup script. I don't know if it's the best solution, but it worked for me.
FWIW, I think it's related to this:
https://unix.stackexchange.com/questions/280528/is-there-a-unix-equivalent-of-the-windows-environment-variable-pathext
On Windows 10 I was installing just once from GitBash via pip install awscli --upgrade --user as described in AWS manual for CLI installation for Linux
It installed aws executables into %USERPROFILE%\AppData\Roaming\Python\Python37\Scripts
After that just add this folder to your PATH. Re-open GitBash or cmd - it should work from both places

ps auxwww | grep psql - postgres not running with homebrew

I have installed Postgres 9.2.3 just now via Homebrew, initiated a db, and inputed the start command. It says "server starting", but whenever I try to do anything, it tells me:
psql: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Here are the things I have already done to try and fix this:
1) Fixed the path in my bash profile by adding this text: export PATH=/usr/local/bin:$PATH
2) uninstalled & reinstalled the pg gem
3) used the gem pristine function
4) tried uninstalling and reinstalling home-brew
5) removed the old version of postgres that came with the Mac
6) sudo chmod -R 777 /var/pgsql_socket/
Still, nothing I do works. I have even tried using the Postgres official installer and the Postgres App from Heroku. Nothing works.
It seems like I can't get postgres to run properly because when I run: ps auxw | grep postgres
I just get:
[MyName] 66744 0.0 0.0 2432768 596 s000 R+ 8:47PM 0:00.00 grep postgres
nothing else shows up, which suggests that nothing else is running.
I noticed that my username for my Mac is Zephyr, but the username postgres is using is my actual name. Could that be the issue?
Which I do which psql, I get the correct path of: /usr/local/bin/psql
I have been trying to get this to work for hours and nothing seems to resolve this connection issue. Any help would be appreciated!
I believe you need to setup postgresql manually which in some case is well hidden from user.
You can try these specific steps and see if it works(At least, worked in my Lion). Bear in mind, It is my local setup. I installed Postgresql from binary.
create a new folder named data in postgres folder(mine is at /opt/local/lib/postgresql90/data). Make sure your chmod that folder. data is just simple to remember.
run initdb to initialize postgres data. Mine is
/opt/local/lib/postgresql90/bin/initdb -D
/opt/local/lib/postgresql90/data.
Start server:
/opt/local/lib/postgresql90/bin/pg_ctl -D
/opt/local/lib/postgresql90/data start
Tips: Put these paths into env variables.
Hope it helps :)

Trying to set up .SSH keys to connect to Github via Cygwin

I've just installed Cygwin on Windows 7 to develop RoR apps with, trouble is I am trying to connect Git with my Github account through Cygwin but for some reason when I run the command ssh-keygen -t rsa -C "myemail#etc.com" it gives me back the message "bash: ssh-keygen: command not found"
I am following the Ruby on Rails Tutorial by Michael Hartle by the way but can't seem to find a solution.
Can anyone offer any advice?
Chances are you probably forgot to install the openssh package when you installed Cygwin.
I've used this guide before, and everything was flawless(for ssh):
http://allthingsmarked.com/2006/08/17/how-to-set-up-a-windows-ssh-server-for-vnc-tunneling/

Generating SSH keys (Win/msysgit) - Ruby on Rails Tutorial

I'm following along with Michael Hartl's Ruby on Rails tutorial and I've run into a roadblock trying to generate an SSH key for git.
When I type:
ssh-keygen -t rsa -C "ben#rockhopperdigital.com"
I get this:
bash: ssh-keygen: command not found
I'm sure it's something stupid, but I'm new to git and Rails in general. Any assistance would be much appreciated (and may garner you a link on my blog). A search for that error in quotations followed by git gave me 0 results on a Google search.
Thanks,
Ben
Which OS are you on? It depends on that. Normally you install openssh package to get the ssh utils which includes ssh-keygen. If you are on debian or ubuntu try to see if you have installed ssh-keygen.
If on windows get openssh for Windows or Putty to generate the key for you.
--Sai

Resources