How To Disable Linux GUI from boot?

edit the following line in /etc/inittab

id:5:initdefault: and

change it to

id:3:initdefault:

so if  you reboot the default running level is 3 which is not GUI

For Debian 8-9/Jessie-Stretch use the following command:

In order to make text boot the default under systemd (regardless of which distro, really):

systemctl set-default multi-user.target

To change back to booting to the GUI,

systemctl set-default graphical.target

 

Share

Configure Additional IP Addresses

Let’s assume our network interface is eth0. Then there is a file /etc/sysconfig/network-scripts/ifcfg-eth0 which contains the settings for eth0. We can use this as a sample for our new virtual network interface eth0:0:

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0

Now we want to use the IP address 192.168.0.101 on the virtual interface eth0:0. Therefore we open the file /etc/sysconfig/network-scripts/ifcfg-eth0:0 and modify it as follows (we can leave out the HWADDR line as it is the same physical network card):

Read more

Share

Creating A Linux Firewall using webmin

Here is what I need to do- 

  1. I want to block ping on eth0- my external link
  2. I want to open everything else on eth1- internal link
  3. Let’s assume eth0- has public IP and eth1 has private IP
  4. I want to allow SSH, auth, httpd and certain protocols to eth0. Other than these- all communications are blocked by internet traffic. The screenshot below gives a perfect look-

    Read more

Share

DNAT using Iptables

Before I start I DNAT, I’d better say what it does-

 

The DNAT target is used to do Destination Network Address Translation, which means that it is used to rewrite the Destination IP address of a packet. If a packet is matched, and this is the target of the rule, the packet, and all subsequent packets in the same stream will be translated, and then routed on to the correct device, host or network. This target can be

Read more

Share

Very Timely, In This Day And Age!!!

 1. The US has made a new weapon that destroys people but keeps the building standing,. Its called the stock market – Jay Leno

 2. Do you have any idea how cheap stocks are ?? Wall Street is now being called Wal Mart Street – Jay Leno

 3. The difference between a pigeon and a London investment banker. The pigeon can still make a deposit on a BMW

 4. What’s the difference between a guy who lost everything in Las Vegas and an investment banker?      A tie!

Read more

Share

Add .exe to Windows Service

It had way been long days since looked for some tool to make exe’s run as windows service. Well, guess everybody knows the advantage of service tool rather than put the appz on start up menu! Simple- the application loads prior windows users log in to the system!

Anyway, I just discovered a beautiful application bundled with windows poppasswd server- it’s called addsvc. Let’s see how it works (this is an example on how poppasswd service was installed)-

Read more

Share

Election 2008- What world’s saying!

 

 

 

UPDATED ON:
Tuesday, December 30, 2008
08:30 Mecca time, 05:30 GMT

 

News CENTRAL/S. ASIA
 
Hasina triumphs in Bangladesh vote
 

Supporters of Hasina’s Awami League party celebrate as early results suggested a landslide win [AFP]

An alliance led by Sheikh Hasina Wajed, the former Bangladeshi prime minister, has won a landslide election victory in the country’s first poll in seven years.

Election officials on Tuesday said that according to preliminary results Hasina’s Awami League party and allied groups took around 250 of the 300 parliamentary seats.

Read more

Share

Election TidBits!

জামায়াতের ভরাডুবি

নির্বাচনে চারদলীয় জোটের অন্যতম শরিক ধর্মভিত্তিক রাজনৈতিক দল জামায়াতে ইসলামীর ভরাডুবি হয়েছে।
সোমবার অনুষ্ঠিত নির্বাচনে দলটি মাত্র দুটি আসন পেয়েছে। গত নির্বাচনে তারা পেয়েছিল ১৭টি আসন ।
শুধু চট্রগ্রাম-১৪ (সাতকানিয়া) আসনটি জামায়াত পেয়েছে। এ আসনে জিতেছেন জামায়াতের শাহজাহান চৌধুরী। তার নিকটতম প্রতিদ্বন্দ্বী ছিলেন বিএনপি’র সাবেক নেতা বর্তমানে এলডিপি নেতা আলি আহমদ।

Read more

Share

A historic landslide for Hasina

In a landslide reminiscent of the historic 1970 victory that led to the war and birth of Bangladesh, the Awami League on Monday sealed a remarkable majority that would give the party the power to rewrite the constitution and bring about promised reforms.

Read more

Share