How to add Ubuntu Server to a Windows Active Directory

Setup:

Server: Ubuntu 14.04.3 LTS 64-bit

pbis-open version: 8.3

First of all, install these packages:

  1. libpam-winbind (available in repository)
  2. nfs-common (available in repository)
  3. pbis-open (download latest version from http://download1.beyondtrust.com/Technical-Support/Downloads/PowerBroker-Identity-Services-Open-Edition/?Pass=True)

Now that you have all the necessary packages, you have to start the setup:

  1. “sudo pam-auth-update” (use –force option in case you have done some local modifications before, but take care that it will reset all your old settings and place them in a .old file)
  2. “sudo domainjoin-cli join DOMAIN_NAME DOMAIN_USERNAME
  3. Enter the password, then you should receive a SUCCESS message
  4. Reboot the server

Now you have joined the Active Directory!All what’s remaining now is allowing a group to have sudo access if needed:

  1. Edit the “/etc/sudoers” file
  2. In the line below “%admin ALL=(ALL) ALL”, add the following: “%DOMAIN_NAME\\DOMAIN_GROUP ALL=(ALL) ALL” (without the quotes)

That’s it! Now your user is a sudoer and you can login to the machine using “ssh DOMAIN_NAME\\DOMAIN_USERNAME@SERVER_NAME

Optional: If you wish Bash becomes the default shell for the user, just execute the following command “sudo  /opt/pbis/bin/config LoginShellTemplate /bin/bash”

Posted in Ubuntu, Windows | Tagged , , , | Leave a comment

How to install vmware-tools and use shared folders on an Ubuntu VM inside VMWare Workstation 12 Pro

Although when you I tried to enable the guest additions using the suggested open-vm-tools, it doesn’t run correctly and I’ve been unable to use shared folders between the host and guest in order to copy some files.

I accordingly used the legacy vmware-tools, and voila! everything worked fine!

My Setup:

  • Host: Ubuntu 15.10 (Wily)
  • Guest: Ubuntu 14.04.3 LTS Server
  • Hypervisor: VMWare Workstation 12 Pro

Prerequisites:

  1. Install the following packages: build-essential, linux-image-virtual, linux-headers-virtual
  2. create a directory /mnt/hgfs
  3. Right-click the settings on the VM -> Options -> Shared Folders and enable Folder Sharing and add a folder to be shared between the host & guest

Install the VMWare Tools:

  1. start the VM, then from the top menu click VM -> Install VMWare Tools. This should attach the VMWare Tools CD to the VM
  2. Mount the VMWare Tools CD: “sudo mount /dev/cdrom /media/username/cdrom”
  3. copy the “VMware-Tools-xxxx” to any folder and extract it
  4. Navigate to the created folder: “cd vmware-tools-distrib” and install: “sudo ./vmware-install.pl”
  5. Accept all the defaults
  6. Reboot!

Mount the shared folder:

  1. “sudo mount -t vmhgfs .host:/ /mnt/hgfs”

That’s it! Enjoy!

Posted in Virtualization | Tagged , , , | Leave a comment

Getting VMWare Workstation 12 Pro to work on Ubuntu Wily (15.10)

Just add this line to the  “/usr/bin/vmware” file:

export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH

immediately after the “export PRODUCT_NAME bla bla bla” line.

That’s it! Enjoy!

Source: http://askubuntu.com/questions/689123/vmware-wont-work-after-ubuntu-upgrade

Posted in Ubuntu | Tagged , , , , , , | Leave a comment

Setting the CPU Governor to Performance on Ubuntu Wily (15.10)

Hi,

I prefer to always set the CPU to the performance governor as it always boosts my computer’s performance:

Update: The kernel module loaded by default that controls the cpu frequency in Ubuntu Wily’s kernel is “linux_pstate”. You have to disable it before applying the steps in the next section. You can do this by modifying “/etc/default/grub” and adding “intel_pstate=false” parameter to the “GRUB_CMDLINE_LINUX_DEFAULT” line, it should look like this:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash intel_pstate=disable”

save the file, then run “sudo update-grub”

Reboot, then do the steps below:

  1. Install the cpufrequtils package: “sudo apt-get install cpufrequtils”
  2. Edit the “/etc/init.d/cpufrequtils” file and set the following line to the governor you need (performance in my case): “GOVERNOR=”performance””
  3. Save the file and exit
  4. Reboot

That’s it! Enjoy!

Reference

Posted in Uncategorized | 1 Comment

How to change the hostname in RHEL7

At last, Red Hat has decided to act like other distros to change the hostname of the server in Red Hat Enterprise Linux 7.

In older Red Hat releases, changing the hostname required modifying the  “/etc/sysconfig/network” configuration file and edit the “HOSTNAME” parameter.

Now, all you have to do is – like other distros such as Ubuntu and LinuxMint – edit the “/etc/hostname” file and change the name there, that’s it!

Posted in Linux | Tagged , , , | Leave a comment