Initial step is to type following command on terminal:
SSH: It is a Secure Socket Shell, is a network protocol that provides administrators with a secure way to access a remote computer.
Then type your password in the terminal for accessing exp. server
You have successfully entered in experimental server now 🙂
You can simply type ‘ll‘ command to list the detail information of files and folder of a current directory.
And can make a directory if needed using ‘mkdir’ command.
Lets talk about a new term “mosh”
MOSH: It is a software tool used to connect from a client computer to a server over the Internet, to run a remote terminal. Mosh is similar to SSH with some additional feature.
You need to install it first on localhost(i.e your system)
sudo apt-get install mosh
Then type: mosh Your_Username@lab.gdy.club
“mosh helps in reconnecting to the Internet if in case your connection is slow”
And after entering password you will be directed to experimental server.
Then give command : tmux
tmux is basically a terminal multiplexer. It is used so that within
one terminal window we can open multiple windows and split-views. Each
view/pane will contain its own, independently running terminal
It is also used to set a shared terminal environment.
You can work over there.
Working with Weboctave in experimental server
How to Move data from your localhost to experimental server?
Give this command on your localhost terminal:
scp -r /home/deepti/Downloads/weboctave-0.1.0.tar.bz2 firstname.lastname@example.org:~/public_html
In Unix, you can use SCP (the scp command) to securely copy files and directories between remote hosts without starting an FTP session or logging into the remote systems explicitly. The scp command uses SSH to transfer data, so it requires a password.
Now got to experimental,
Then you need to untar this file on exp. server using command:
tar xvfj weboctave-0.1.0.tar.bz2
Now repeat the same procedure of my ‘Introduction to Weboctave’ Blog.
You need to give permissions to all files.
: 1. I was not able to see anything on my url i.e url
for that I need to check apache error log file for which I need permissions to access that.
You need to go to /var/log/apache2
and then give command:
tail -f error.log
2. There I found few of my errors though some of them are silly
like, I had unknowingly written extra ‘i’ in config.php file.
3. I was getting parse php error ,it means there is a mistake related to php.
For that, I checked in weboctave/code/dbaccess.php file and there was a mistake that I had changed the name,user,password,host. But there is no need to change anything in this file.
4. My main problem is related to Mysql.
delete this line:
USE your_database_name; or you can add your database name here.
5.Now you need to import your database into mysql
For that, go to db.sql location i.e till setup
and give the command:
mysql -u username -p databasename < filename
Now go to mysql command line and give command:
use deepti_w; (Which is the name of the Database)
Then to see the tables give the command,
Then go to url and see beautifull plotted graphs over there.
“Extra things which I got to learn about while doing this project are: Vim editor, use of ctrl+D in mysql, use of ctrl+r and a little bit about php.”
Stay tuned 😉