installing IntelliJ on Ubuntu

Reading Time: < 1 minute

decompress the downloaded archive

tar xvf ideaIU-2020.3.tar.gz

Move the extracted files to opt directory

sudo mv idea-IU-203.5981.155/ /opt/idea

Create a shortcut

cd /usr/share/applications
sudo gedit idea.desktop

Paste the below content and save the newly created file

[Desktop Entry]
Name=IntelliJ IDEA
Type=Application
Exec=/opt/idea/bin/idea.sh
Terminal=false
Icon=/opt/idea/bin/idea.png
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=IntelliJ IDEA

Install the shortcut file

sudo desktop-file-install idea.desktop
source ~/.bashrc

Now search Intellij, you will see it will appear in the apps menu

installing and configuring active directory server on microsoft server 2008

Reading Time: 5 minutesIn this tutorial I will show you how to install ldap on the other hand well known way Active directory. What active directory does is briefly you may read it on wikipedia 

Before we start, we need to assign a static ip address to our server, the below what i assigned for my server

19

I assume that you have successfully installed and updated your Server and let us get started with the installation first. On your keyboards press on Windows+R and type dcpromo which will launch the AD application

1

This will prepare our AD server and when the loader completed you will see this screen click on next

2

Dismiss the warning and click Next

3

Since this is our newly established server we are choosing the new forest option

4

Wee came to the important screen this is where we identify our domain name like on the internet google.com whatever, it is advised to use local names within local servers because when a client connected to the network or domain may get confused and cannot resolve the real server, I am identifying my server as aslan.corp.local

5

Checking the FQDN whether it may exist on the network

6

Forest function level, I am choosing Server 2008 R2 option, I am not familiar with these functions, to get informed better just google it

7

We need to install dns server for our server to be resolved on the network, automatically let it install

8

This screen is not a big deal click on yes

9

Choosing the destination for necessary stuff

10

Set the admin password for domain controller

11

Summary screen

12

And we are good to go

13

Dont forget to click on rebook on completion, so that the required restart will be achieved by the operation system automatically. This role installation may take up some time depending on your computer hardware.

So far there is one installation left the LDAP. On initial configuratin tasks windows click on add roles and on the list choose Active Directory Lightweight Directory Services and click on next

14

Next

15

Next

16

Now installation begins

17

And we are good to go with LDAP

18

So now lets add a user with full rights and we can give it a shot to see and add users computers on AD. Type in dsa.msc

Go to users and right click on the right pane and create a new user

20

give it a short name for now we can make this a temp admin out of the user

21

So this is a bit tricky part when we try to set windows server has a strong password sequence so that you need one upper letter in your password type something like Tugrul3445admin

22

So now time to grand the newly created user the domain and admin rights. Right click on the user and click on properties and navigate to the Members of tab

23

Click on add and give these rights

24

Click on Okay and Apply in the and we now have our user with full domain and admin rights. so lets try to list our domain users and groups. To see that we need to gather cn and dc names launch command line and type in this command

dsquery user -name <username>

You will see something like this:

25

I used JXplorer to browse through my AD server

The below example connection config

26

Dont forget to turn your firewall off or if you want to use the firewall then add the incoming ports the exceptions port of 398 SSL 698

All attributes of a user Microsoft AD

Active Directory Attribute list

Installing Maven on Linux, Windows and Mac

Reading Time: 3 minutes

Description

This post will show you to install and configure maven on Windows, Linux and Mac. Before performing the installation, make sure the Java Development Kit is properly installed and configured. For Linux you can refer to my post

Linux

For this installation I have performed the task on Debian 10 64 bit, but also referred the same for other distros, it all turned out to be working perfectly. You can use the manual way to perform installation on other distros. For this make sure the java

Installing using the Package Manager

sudo apt install maven

Installing Manually

Navigate to Apache Maven’s official web site and and download the latest version (3.6.3 as of writing this article) the binary tar.gz package.

1. Unpack the Tar file

tar zxvf apache-maven-3.6.3-bin.tar.gz 

2. Move the folder to the opt folder

sudo mv apache-maven-3.6.3 /opt/

3.Create a Maven profile file

sudo nano /etc/profile.d/maven.sh

3.1. Add these lines in the “.sh” file

export M2_HOME=/opt/apache-maven-3.6.3
export PATH=${M2_HOME}/bin:${PATH}

4. Make the file executable and Reload the “sh” file in the system

sudo chmod +x /etc/profile.d/maven.sh
source /etc/profile.d/maven.sh

5. Check the Maven installation

mvn --version

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /opt/apache-maven-3.6.3
Java version: 1.8.0_221, vendor: Oracle Corporation, runtime: /usr/java/jdk1.8.0_221/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.19.0-8-amd64", arch: "amd64", family: "unix"

Windows

Download the binary file in .zip or tar.gz does not matter extract the folder under C drive if you want you may create the folder wherever you want, but to make it easier you shall consider practical way of it, after you extract the folder

Right Click Computer and click on Properties

windows1

On the left side of the properties, click on Advanced system settings

windows2

Below click on Environment Variables

windows3

Click on “New” on Users variables and enter the details as below

windows4

and on system variables find PATH and add the line

windows5

and now lets launch command line and see if its configured

windows6

Mac OS

Normally maven comes out of package on mac os operating systems since 10.6.8 Snow Leopard, test if the maven is installed on your mac launch terminal and enter the command:

mvn -version
Apache Maven 3.0.3 (r1075438; 2011-02-28 19:31:09+0200)
Maven home: /usr/share/maven
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"
Tugruls-Mac:~ tugrulaslan$

to install it manually as the above linux package file download and exract the file the same way

tar -zxvf apache-maven-3.1.1-bin.tar.gz
sudo mv apache-maven-3.1.1 /usr/lib/maven
vim ~/.bash_profile

and these lines

export M2_HOME=/usr/lib/maven
export PATH=$PATH:$M2_HOME/bin

before you proceed the maven installation, please make sure that you have successfully carried out jre and jdk installation and configuration

Installing LAMP stack on Ubuntu

Reading Time: < 1 minute

When we work on Ubuntu in case of need of LAMP stack we programmers always take the hard way to individually install, setup and configure components like Apache PHP MySQL. One of the greatest things with Ubuntu is that we are able to install LAMP stack with one command line!!! So let us get started towards the procedure/

First of all update your system

sudo apt-get update && sudo apt-get upgrade

Here is the command line comes, the below execute the command and lie back wait till all of necessary packages are downloaded installed and well configured

sudo apt-get install lamp-server^

During the installation you will be asked to set up the root password for MySQL, enter your credentials and let Ubuntu configure the rest for you. After all you will have Apache, MySQL and PHP installed and configured on your Ubuntu