To add User account in Ubuntu 14.04

 

Ubuntu 14.04

Add User. In directory home, Lock User, Unlock User, Kill User Session, Delete User, and Remove User Directory

To Add User

 sudo useradd -m -s /bin/bash  username

 sudo passwd username

It will prompt you to enter the password once then again to confirm

 cd  /home

ls  (lower case L)

To view the users in the home directory

Then you should see new user home directory

To disable (lock account) user:  sudo passwd – l username     (lower case L)

To unlock the accountsudo passwd -u username

Will be prompt admin password to complete the task.

To delete a user: sudo userdel username

If you get a message that the user is in a session;

Then you do:  sudo pkill -KILL -u username

Then perform the:  sudo userdel username

If you were to do ls to view the users in the home directory you will still see there is a directory for the user. To remove the user’s directory do the following:

sudo rm -r /home/username

Looking again with command ls you now see that user’s directory has been remove.

 

Install Dropbox, kdenlive video editor and recordMyDesktop in Ubuntu 14.04

  1. Installing Dropbox

sudo apt-get install nautilus-dropbox

Now we can look in Ubuntu Software Center and looked at installed, selected Internet to see that Dropbox has been installed on today’s date. After you have logged on Dropbox you will see the Dropbox folder icon appear in the upper right hand corner of your desktop.

  1. Installing kdenlive video editor (lower case K)

sudo apt-get install kdenlive

Now we can look in Ubuntu Software Center and looked at installed, selected Sound & Video to see that Kdenlive has been installed on today’s date. Selecting kdenlive More info button you will see that many of the optional add-ons have also been installed that work with kdenlive.

You can find out more about kdenlive at their web site. https://kdenlive.org/

Be sure to check out their ToolBox for training videos on using kdenlive. https://kdenlive.org/toolbox/

  1. Installing “recordMyDesktop”

One of the problems I have is recording my desktop. After some searching I found and installed “recordMyDesktop”

To install using terminal run the following command:

sudo apt-get install gtk-recordmydesktop

  1. Again run sudo apt-get update when you have completed all installs.

 

 

 

How to install Bluefish Web Editor Ubuntu 14.04

Using Terminal complete the following…

It’s always a good practice to do update first before installing a new packages.

sudo apt-get update

How to install Bluefish Editor run this command in terminal

sudo apt-get install bluefish

At this point I like to do another update.

sudo apt-get update

Now we can look in Ubuntu Software Center and look at installed, selected Developer Tools to see that Blue Fish has been installed on today’s date.

Now I want to take full advantage of all the utilities offer that works with Bluefish so let install the following:

XML utilities run

sudo apt-get install libxml2-utils

                HTML Syntax checker and formatter tidy

sudo apt-get install tidy

                Syntax minimal Style checker for HTML

sudo apt-get install weblint-perl

Command-line interpreter for the php5 script language

sudo apt-get install php5-cli

At this point run again

sudo apt-get update

Now you should once again get back into Ubuntu Software Center and look at installed, selected Developer Tools, now select Bluefish Development Editor, to see that all the above utilities have been installed on today’s date select the More Info button. You will see all the Optional Add-on that had been installed today these are the ones with red checkbox.  You will see that three of the four appears, the php5-cli appears on the under the Developer Tools.

Installing and Using VNC Ubuntu 14.04

Change settings in Desktop Sharing for local remote connection

In my Ubuntu 14.04 Trusty OS I needed to first make some changes to the Desktop Sharing.

To do this search your Linux computer for Desktop Sharing.

Open Desktop Sharing, and check or unchecked the following:

Know your system.

Command lsb_release -a gives you the system information

You will see Distributor ID: Ubuntu

Description: Ubuntu 14.04.5 LTS

Codename: trusty

Preform updates and upgrades before installing VNC

Anytime you are getting ready to do install you should run updates and upgrades

Run sudo apt-get update

Then sudo apt-get upgrade

Install VNC on your Linux system

Now is the time to install VNC on ubuntu 14.04

sudo apt-get install tightvncserver

After install is completed set screen resolution as follow;

 vncserver -geometry 1366×768

Run vncserver

You should now see your <computername>:: 1

To make sure vnc server is running on your Linux os type

vncserver

Note: to end vnc server you would enter.

vncserver -kill :1   (:1 is the session number running, it could be :2 )

You will see a message that reads Killing xtightvnc process ID ####

ALWAYS a good idea to end your VNC connection!

To start vnc server just type vncserver

You will see a message that reads, New X desktop is <computername>:1

To connect from your Windows computer to your Linux OS you need to know the current ip address of the Linux OS. Remember I’m using Ubuntu could be different in Fedora.

Install and run netstat -l to confirm port

See what port is listening, it should be 5900?

To do this do netstat -l | less     Note:(lower case L)

IF you need to install netstat fo the following;

sudo apt-get install netstat-net

                   Now try netstat -l |less

My computer shows 5901 is listen! Note the port that listen on your system.

Run ifconfig to get your current IP Address

Type the following: ifconfig

You should inet addr: <ipaddress> note the ip address is this line. Example in my case the ip address is 198.168.0.105

Install and run tightvnc on your Windows machine

Now in tightVNC Viewer  (client ) enter the ip address as 198.168..0.105:: 5901 Note two colons and 5901 is the port number!

What if you get a gray screen.

If you get a gray screen, this means you made a completed connection using VNC but we need to edit the xstartup using vi  or vim.

To do this do the following:

cd  .vnc/

Run command ls to confirm that you see xstartup

Run vi xstartup

Add this line to bottom of the file

/usr/bin/startixde

As shown.

Note that these instructions are for installing VNC on a Ubuntu 14.04 operating system and my be different on other Linux systems, such Fedora. You may have to do some research for your operating system and or version of OS.

What you will learn by installing and using vnc remote.

Working with Desktop Sharing

  1. lsb_release -a
  2. sudo apt-get update
  3. sudo apt-get upgrade
  4. sudo apt-get install tightvncserver
  5. run vncserver to start the service
  6. vncserver -kill :1 to end the session 1
  7. netstat -l | less to look at short list of ports
  8. if need sudo apt-get install netstat-net if netstat is not installed
  9. ifconfig to your IP address information and more
  10. Using tightvnc viewer which would be installed on your windows system.