I was just surfing the net, and found this interesting video clip from a blog. I think I should share this to others too!
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
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):
Creating A Linux Firewall using webmin
Here is what I need to do-
- I want to block ping on eth0- my external link
- I want to open everything else on eth1- internal link
- Let’s assume eth0- has public IP and eth1 has private IP
- 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-
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
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!
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)-
Poppassd server on NT version
Finally got the Poppasswd on NT. It’s essential for 2 mailing systems:
- Surgemail mail server (http://www.netwinsite.com)
- Horde for windows version on webmail password change!
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 | |||
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. |
Election TidBits!
জামায়াতের ভরাডুবি
নির্বাচনে চারদলীয় জোটের অন্যতম শরিক ধর্মভিত্তিক রাজনৈতিক দল জামায়াতে ইসলামীর ভরাডুবি হয়েছে।
সোমবার অনুষ্ঠিত নির্বাচনে দলটি মাত্র দুটি আসন পেয়েছে। গত নির্বাচনে তারা পেয়েছিল ১৭টি আসন ।
শুধু চট্রগ্রাম-১৪ (সাতকানিয়া) আসনটি জামায়াত পেয়েছে। এ আসনে জিতেছেন জামায়াতের শাহজাহান চৌধুরী। তার নিকটতম প্রতিদ্বন্দ্বী ছিলেন বিএনপি’র সাবেক নেতা বর্তমানে এলডিপি নেতা আলি আহমদ।