Search This Blog

Saturday, 18 June 2016

USEFUL LINUX COMMANDS AND DESCRIPTIONS

Linux Useful commands





LINUX UBUNTU DOMAIN JOINING SOFTWARE APP

Use Domain software tool likewise open to join a Linux system to a Microsoft windows domain. Install likewise open in linux. Use the following Linux commands in interface,

likewise open

open add/remove software tool

mark likewise -open5

likewise-open5-gui

winbind     used for installation

cli

centrify dc

domain example.net                \\this is the domain name

from command terminal

sudo domain-join-cli join example.com

restart domain

sudo /etc/init.d/ likewise-open restart

to leave domain

sudo domain-join-cli leave

client

sudo apt-get install openssh-client
server
sudo apt-get install openssh-server

--------------------------------------------------------------
How to install likewise open in linux use the following commands

sudo apt-get install likewise-open
likewise open package
/usr/bin/domainjoin-cli
sudo domainjoin-cli join example.com administrator
sudo /etc/init.d/likewise-opent restart
to leave
sudo domain-join-cli leave
if client have problem in joining add DNS
/etc/resolv.conf
nameserver 192.168.0.1
sudo add-apt-repository

--------------------------------------


For ip address configuration on interfaces in Linux user the following commands,

sudo vi /etc/network/interfaces
edit
auth0 eth0
      ifadd  eth0 inet static
      address 192.168.5.249
      mask     255.255.255.0
      network 192.168.5.0
      broadcast  192.168.5.255
      gateway 192.168.5.1
sudo vi /etc/resolv.conf

     nameserver 192.168.5.254
     nameserver 8.8.8.8
     nameserver 192.168.7.254

------------------------------------------------------
How to install Open fire collaboration chatting server in Ubuntu Linux


sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-software-properties
sudo add-apt-get-repository ppa:webupd8team/java
sudo apt-get update
check java version
#java -version
remove openJDK
sudo apt-get remove --purge openjdk*
install java oraclejava7

sudo apt-get install oracle -java7-installer

install Mysql Database server
sudo apt-get install mysql-server
create new MySQL database of openfire
login to mysql server as root
sudo mysql -u root p
create the database
"dbopenfire", add new user "openfire" and add new password "openfirepwd" for user "openfire"

to change root password

mysqladmin -u root -p password
current password
new password
service mysql stop/start

download openfire chatting and communication server software

create database

download openfire
cd /tmp
/tmp#wget http://download.igniterealtime.org/openfire/openfire_3.7.1_all.deb
install
sudo dpkg -i openfire_3.7.1_all.deb
reboot init 6
edit init.d
/etc/init.d/openfire
line 27
replace java-6-sum with java-7-oracle
sudo apt-get install rpl
sudo rpl '6-sun' '7-oracle'
/etc/init.d/openfire
sudo service openfire start
allow ports for openfire
sudo ufw allow 9090/tcp














Friday, 17 June 2016

Remove DHCP Client in Linux Ubuntu

to remove dhcp client use the following

sudo apt-get remove dhcp-client

sudo /etc/init.d/networking restart

to add linux repository

sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/saucy universe multiverse

sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/saucy-updates universe multiverse"

we can check

in file

/etc/apt/sources.list

deb http://archive.canonical.com/ubuntu saucy partner deb-src http://archive.canonical.com/ubuntu saucy partner


INSTALL GUI IN LINUX UBUNTU AND ASSIGN STATIC IP ADDRESS

To install GUI in linux ubuntu use the following commands,

sudo apt-get update
sudo apt-get install ubuntu-desktop
sudo apt-get install --no-install-recommends ubuntu-desktop
start x
----------------------------------------------------
sudo apt-get install xubuntu-desktop
sudo apt-get install kubuntu-desktop
-----------------------------------------------------

to chance ip address in ubuntu use the following commands,

sudo vi /etc/network/interfaces

for automatic we can use

auto etho

to assign an ip to interface use

iface etho inet static

address 0.0.0.0  
netmask 0.0.0.0
network 0.0.0.0
boradcast 0.0.0.0
gateway 0.0.0.0


DNS

sudo vi /etc/resolv.conf

on the line name server xx.xx.xx.xx
replace the x with the ip of your name server. you can do,
ifconfig/all to find out what they are.







Linux Partitioning Disk & Formatting commands

Linux Partitioning Disk & Formatting commands fdisk man fdisk pi@rasberrypi ~$ sudo fdisk -l