To import a OpenVPN configuration file (.ovpn) using Network Manager in Linux, follow these steps:
sudo apt-get install network-manager-openvpn-gnome
sudo service network-manager restart
Click on the Network Manager icon in the top panel, then click on the "Edit Connections" option.
In the Network Connections window, click on the "Add" button in the bottom left corner.
In the "Add a new connection" window, select the "Import a saved VPN configuration" option and click on the "Create" button.
In the "Import a saved VPN configuration" window, select the .ovpn file that you want to import and click on the "Open" button.
Enter your OpenVPN username and password, if required.
Click on the "Save" button to save the connection.
To import the OpenVPN configuration file using the command line, follow these steps:
sudo apt-get install openvpn
Navigate to the directory where the .ovpn file is located.
Run the following command to import the OpenVPN configuration file:
sudo openvpn --config filename.ovpn
Replace "filename.ovpn" with the name of your .ovpn file.
Note: The steps and commands mentioned above are specific to Debian-based Linux distributions such as Ubuntu. The exact steps and commands may vary slightly depending on your Linux distribution.