Thursday, August 25, 2016

Install and configure sftp server on Ubuntu Server

Install VSFTPD 

sudo apt-get install vsftpd

Configuring VSFTPD.

open /etc/vftpd.conf file

Uncomment the following lines ;

write_enable=YES
local_umask=022 

chroot_local_user=YES  

Add the following line at the end of the file.

allow_writeable_chroot=YES

Friday, August 12, 2016

Install OS through network using microsoft WDS server

PXE boot is the new trend, actually not new it has a very old history. Any way PXE (Pre-Execution Environment) is the way to boot PCs over network. Using this we can install OSs via network which make easier to network administrators, specially IT lab setup guys. Because when we going to install OS/OSs in several hundreds of PCs that's going to be a hard situation if we are using DVDs or USB booting. When we use PXE boot to install OSs we just have to go to the PC and boot it from PXE network boot and the rest of the thing going to be the same as a normal OS installation.

Windows Server had make it easier. Using WDS (Windows Deployment Service) we can select our installation image using installation media and just using few clicks we can install OS in to a PC using PXE. There is a more featured application for windows Server which is System Center gives you some elevation doing system administration, but here we are going to talk about a tool which bundled with System Center.

So here is the steps.

Thursday, July 7, 2016

Active Directory ds Commands for user add,delete and for hack.

Here I'm not going to talk about how to install Domain Service in your server or How to interact with Active Directory Users and Computers application. I'm going to make some simple note how to add users in a domain and how to add that users in to different groups.

add a user in Domain Controller.

command:

dsadd user "cn=firday, cn=users, dc=week, dc=local" -pwd Friday@123 -disabled no

This will add the user "friday" in "users" container on "week" domain. The password is going to be "Friday@123". "-disabled no" option will enable the user account.

Change password of the user.

 dsmod user "cn=firday, cn=users, dc=week, dc=local" -pwd abc@123

In this case we are changing the previous user's password to "abc@123"

Add a user to an Admin group.

There may be several admin groups in your domain like itadmin, domain admin, built-in administrators ...

Wednesday, March 9, 2016

Activate Network Applet in Ubuntu Mate

Ubuntu mate is very eye catching and customizable linux flavour which I've used.

But in ubuntu mate most of times the nm-applet which is showing our network connections and settings (by the way most important applet) is not showing at startup. So we are unable to connect between different network connections same time (LAN , Wi-Fi , Mobile broadband connections.)

To make appear the nm-applet (Network Manager) on the notification area follow the steps.

Friday, March 4, 2016

How to create multi-boot pen drive (Windows, Linux, utilities)


IT Support, Help Desk guise, IT Administrators will like this post very much. Because they are the people mostly facing to re-install the OSes for their users. For some IT Administrators and Help desk guise format and installing the new OS is the only option they have for every issue. So here i'm going to giving you a superb tool to make multi-boot pen drive.

What is a multi-boot pen drive. It contains number of OSes which can be boot and you can install through a menu. That's mean you don't need to maintain number of CDs or pen drives to installing OS. Using single thumb drive now you can do you job very flexibly.

Easy2Boot

Thursday, February 25, 2016

Using cheat for getting help with unix commands.


There are lots of tools and commands in unix systems for various purposes. Some tools we need in our day to day activities but some tools are using very rarely. For both of these instances most of time we are facing forgetting the commands that relevant to a tool or a command. Even a tool that we are using daily sometimes we are getting trouble when we execute some commands we have not been used previously. And also sometimes even if we know the command we may forgot what actual does that command. So to identify those things there is a great tool called Cheat.

Using cheat in terminal you can get the usage of most of the unix tools and commands. And it's not like man. It gives us "what you want to do? and here is the command for it". 

How to install cheat?
If you have installed python simply run the following command

Tuesday, February 23, 2016

Config CentOS as Gateway / Firewall mode

We can use Cent OS as a gateway in a network to implement other function as a firewall also. So here are steps.

Firstly if you have not installed iptables install it as follows.

Debian

apt-get install iptables-services

Redhat

yum install iptables-services

It is important to install iptables-services packages.


1) Load the modules.

This is not need to done in newer linux versions.

modprobe ip_conntrack
modprobe ip_conntrack_ftp
modprobe ip_conntrack_irc
modprobe ip_nat_ftp

2) Disable ECN if enabled.

Linux shell with effective way (ways to use it)

Here we are going to focus on linux / unix shell with specific symbols which we can use the shell in effective manner.

The symbols are,
|, \ , &, &&, [], [[]], (), {} 

These symbols are very usefull in bash.

Using pipe symbol in shell

| the pipe sign can use to pipe the output of a command. simply it's forwarding what have in stdout in to stdin.

ex:
ls /etc | grep gtk

here we get the output of the ls /etc and put it into the grep gtk  command as an input to that command.


Logical Operators.


Friday, January 22, 2016

How to install Ubuntu Core and work with it

Ubuntu is the most popular Linux distro which handled by canonicals. It offers several installations which is customized such as gnome-ubuntu, ubuntu-core. Ubuntu core is a light version of ubuntu which is not a installation iso but its a file system to work with linux in minimal resources.

After you setup the Ubuntu core you get only the file system with Ubuntu repos, shell, grub and other initial items for linux. It is very good to try this out because this gives you a good knowledge of the linux file system how format the disk, how to install grub, how make the disk bootable, how will kernel interact with grub and so on.

Firstly you have to download the Ubuntu-core rootfs (root file system). You can download the ubuntu 14.04.3-core root file system in this link http://cdimage.ubuntu.com/ubuntu-core/releases/14.04/release/