How to run FTP server in Mininet - sdn

I use SimpleHTTPServer Python class to set up HTTP server in Mininet. Now, I want to run FTP server but I don't know how!! Does Mininet support running FTP server? If so, how can I install that? If not, is there a workaround for that? I feel Mininet surely is able to support FTP but I couldn't find a clear solution when I google this.
Thank you very much,

Install a FTP server on Mininet VM using "sudo apt-get install ftpd"
then connect to mininet using filezilla

install lftp : sudo apt-get install lftp
install inetd : sudo apt install openbsd-inetd
run in the destination host this command : inetd &
run in the source host this command : lftp -u user,password -e "get yourfile;quit" #ip_des

Related

How to install MSSQL-Server on Ubuntu 22.04

I am trying to install MSSQL-Server on my Ubuntu 22.04. I know that it does not currently support Ubuntu 22.04. I need to find a workaround to install the software as I don't want to downgrade.
I tried installing but it keeps giving me dependency errors. How do I solve it? Any help would be appreciated.
Unfortunately, at this time, SQL Server 2019 only works on Ubuntu 20/21. 22.04 is not supported at this time.
So either you will have to use Ubuntu 20 or, as others have stated, use Docker Containers.
You can install Docker into Ubuntu 22.04. It's a multi-step process, but it isn't that difficult.
Install Docker Engine on Ubuntu (follow the Install using the repository section)
https://docs.docker.com/engine/install/ubuntu/#set-up-the-repository
Install SQL Server Container
https://learn.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker?view=sql-server-ver15&pivots=cs1-bash
That should do it.
Also, in link #2, read further below on how to connect to your docker image to run SQLCMD from within the container.
Like SQL Server 2019, you cannot install the SQLCMD tools directly into your Ubuntu 22.04 installation. But the Docker container image contains the sqlcmd tool for you to be able to connect to the database.
Or, you can use Visual Studio Code with the SQL Server (mssql) extension and it can connect to your SQL Server instance in your running Docker container.
The connection string would be:
"Server=localhost;Database=your database name;User Id=user id;Password=password"
You can leave out the Database setting if you just want to connect to the default database.
If you create any databases, you can then connect to them directly by specifying the name.
I also have same problem like this. I also tried downgrading Openssl to 1.1.1k and 1.1.1s but still not works. And finally I found this explanation
https://github.com/microsoft/msphpsql/issues/1419#issuecomment-1303626500
So, keep use OpenSSL 3.0.2 and you just need to change the SECLEVEL to 0 instead of 1 in /etc/ssl/openssl.conf
[system_default_sect]
CipherString = DEFAULT:#SECLEVEL=0
And it works, now I can connect to SQL Server using Ubuntu 22.04.
Looked at this
and it has worked for me!
So worth giving it a shot
cd /opt/mssql/lib
ls -la
sudo rm libcrypto.so libssl.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 libcrypto.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.1 libssl.1.1
If libssl is not installed, try:
sudo apt install libssl1.1
Update: I had issues connecting using libssl1.1, so I switched to 1.0 after performing the previous steps, so I also did the following:
sudo systemctl stop mssql-server
sudo systemctl edit mssql-server
Added:
[Service]
Environment="LD_LIBRARY_PATH=/opt/mssql/lib"
Then:
sudo ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /opt/mssql/lib/libssl.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /opt/mssql/lib/libcrypto.so
Then started mysql-server and things just worked fine!

Install SQL Server 2012 on ubuntu

How can I install SQL Server 2012 on ubuntu?
You can't install MSSQL Server 2012 on Ubuntu. It's not on supported OS list.
But you can install MSSQL Server 2017. This doc page has instructions:
Import the public repository GPG keys:
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
Register the Microsoft SQL Server Ubuntu
repository:
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"
Note
This is the Cumulative Update (CU) repository. For more information
about your repository options and their differences, see Change source
repositories.
Run the following commands to install SQL Server:
sudo apt-get update
sudo apt-get install -y mssql-server
After
the package installation finishes, run mssql-conf setup and follow the
prompts to set the SA password and choose your edition.
sudo /opt/mssql/bin/mssql-conf setup
Tip
If you are trying SQL Server 2017 in this tutorial, the following
editions are freely licensed: Evaluation, Developer, and Express.
Note
Make sure to specify a strong password for the SA account (Minimum
length 8 characters, including uppercase and lowercase letters, base
10 digits and/or non-alphanumeric symbols).
Once the configuration is done, verify that the service is running:
systemctl status mssql-server
If you plan to connect remotely,
you might also need to open the SQL Server TCP port (default 1433) on
your firewall.
To install the mssql-server Package on Ubuntu, follow these steps:
Enter superuser mode. ...
Exit superuser mode. ...
Run the following commands to install SQL Server: sudo apt-get update sudo apt-get install -y mssql-server.
After the package installation finishes, run the configuration script and follow the prompts.
for more details look Installing SQL on Ubuntu

Apache doesn't start in AMPPS on Ubuntu

I'm trying to run the Ampps local server 3.8 on Ubuntu. Mysql works good but apache doen't run.
When I type
/usr/local/ampps/apache/bin/httpd
I get
/usr/local/ampps/apache/bin/httpd: symbol lookup error: /usr/local/ampps/apache/lib/libapr-1.so.0: undefined symbol: dlopen
How to solve?
I experienced a similar problem. Firstly you must check is there anything that uses 80 port.
If any you kill that.
Then you backup libapr and then install libs again.
Run following commands:
cd /usr/local/ampps/apache/lib
sudo mkdir backup
sudo mv ./libapr* ./backup/
sudo apt-get -y install libaprutil1 libaprutil1-dev libapr1 libapr1-dev
and try run ampps.

Weblogic server installation in Ubuntu 16.04

my setup,
am using virtual box vm for installation of weblogic server fmw_12.2.1.1.0_wls.jar on top of Ubuntu 16.04 server
installed oracle java using
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
now java is installed in /usr/lib/jvm/java-8-oracle/jre/bin/java and i have set java_home = /usr/lib/jvm/java-8-oracle
have placed the file fmw_12.2.1.1.0_wls.jar in /usr/lib/jvm/java-8-oracle
when trying to install weblogic server from /usr/lib/jvm/java-8-oracle using java -jar fmw_12.2.1.1.0_wls.jar it fails with the error message as
preparing to launch the oracle universal installer from /tmp/OralInstall2016
Exception in thread "main" java.long.UnsatisifiedLinkError: /usr/lib/jvm/java-8-oracle/jrelib/amad64/libawt_xawt.so:libXender.so cannot open shared object file: no such file or directory
Please advise
You're missing pre-requisites. Perhaps there are more, but the one you're referred is because of missing X-Windows subsystem. Easiest just to invoke:
$ sudo apt install -y xterm
I hope it will help,
Jarek

Installing Apache server

How to install Apache server on your computer? I have downloaded the file from here: http://httpd.apache.org/download.cgi but there is no installation file in this archive. What file should I be looking for or is there some other way to go about it completely and I am being totally wrong?
You could read the documentation : http://httpd.apache.org/docs/2.4/install.html
If you're Windows user, I would like to suggest you to install XAMPP from
(apache, mysql and php5)
https://www.apachefriends.org/download.html
If you're Linux user, type following command (Ubuntu or Debian)
$ sudo apt-get install apache2