Category: Linux

Create User With Full Name in Linux

If you want to add a user along with his/her full name. Here is how to do it. useradd -s /sbin/nologin -c “Younten Jamtsho” younten With the above command, I am creating a user younten, who’s full name is Younten Jamtsho. Addition to that, I am assigning nologin shell to the user younten so that he [...]

IPTABLE Linux Firewall

Linux have its own firewall package named iptables. iptables are installed by default. iptables file is located in /etc/sysconfig/iptables. Unfortunately, the /etc/sysconfig/iptables file doesn’t support the loading of modules, so you’ll have to add the statements to your /etc/rc.local file which is run at the end of every reboot. Now lets check what modules are [...]

Install Clamav Antivirus

Before you start installing Clamav Antivirus in your Linux box, please add the extra repository for yum. Install Dag repository, and how to install, go to my post Add Repository for yum. yum – -enablerepo=dag install clamav -y After installing there is few changed needed in configuration file. vim /etc/freshclam.conf #locate the line below and [...]

chown

chown stands for Change Ownership. To change the ownership and group of files and directories Change ownership of a single file chown : eg. chown root:root message.txt Change ownership of a directory and all sub files and directories chown -R : eg. chown -R root:root photo

Fail2ban – Block attacks

Your server is venerable to attacks, and you have to time and again monitor. After monitoring you have to block the attackers IP’s. Use Fail2ban package, which would ease you a bit. To install Fail2ban you need to add extra 3rd party repositories – Extra Package for Enterprise Linux (EPEL). After that you can use [...]

Add repositories for yum

Add Dag RPM Repository for yum because that has many useful packages. wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt rpm – -import RPM-GPG-KEY.dag.txt rm -f RPM-GPG-KEY.dag.txt vim /etc/yum.repos.d/dag.repo # create new file like below [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el5/en/$basearch/dag/ gpgcheck=1 enabled=0 When you use DAG repository, Input yum command like below. yum – -enablerepo=dag install [...]

DHCP Server

Set DHCP ( Dynamic Host Configuration Protocol ) Server in Linux Box. Lets first install DHCP package in 1. yum -y install dhcp Now that you have installed the dhcp package in your linux box, lets start configuring it. 2. cp /usr/share/doc/dhcp*/dhcpd.conf.sample /etc/dhcpd.conf 3. vim /etc/dhcpd.conf #line 4: specify your network and subnet subnet 192.168.0.0 [...]

Yum to access through Proxy Server

In some network where you have to enter the IP Address of the proxy server to access the internet and you are not able to use the yum command to update your system. You normally put the Proxy Server IP and Ports in your browser setting, but in Linux box that doesnot solve the problem. [...]

Broadband Connection setup in Fedora 14

I just installed Fedora 14 in my Laptop, after that I wanted to setup a Druknet broadband connection to access internet. After so much of trying i finally did it. My Current Situation of broadband connection was: Connecting to druknet Broadband through my home wireless network. 1. I connected to my wireless network 2. I [...]

Problem accessing through FTP Client

There are times when you come across an error message when you use FTP Client, the error message with be something like Failed to list directory or something like that. During such error make sure your Linux server has port 20 and 21 opened in IPTABLES. If those ports are allowed in your IPTABLES than [...]

Page 1 of 212

Follow Me

Weather

Thimphu: -6° C

Condition: Sunny

Sunrise: 8:47 am

Sunset: 7:49 pm

Time: 12:22:00 pm

Archives

Users: 5 Guests