Archive

Archive for the ‘Tragedy’ Category

KDE and VNC server inside OpenVZ Container

March 26th, 2011 No comments

Well I think a GUI based system is very important as most of us hates CUI (although its extremely fast and consumes less resources), so I just figured out how to connect to my new server with GUI at http://dotkb.com. After a whole day of study over the internet I was finally able to make out, how to install GUI on a VZ server. FYI, its posted below:

Running KDE inside an OpenVZ container is a rather easy task. And this may help you in case you wanna have an online office available from any where in the world.

In order to accomplish this you will need a CentOS VPS, this can be done with other linux distributions also, but I’ll stick to CentOS.

First of all let’s make sure we have the latest packages installed:

yum update

Now let’s install KDE:

yum install kdebase kdelibs kdeaccessibility kdemultimedia kdeadmin kdeutils kdegraphics kdenetwork kdeaddons xorg-x11-server-Xorg

Here you have a list from which you can add more, or remove:
kdemultimedia.i386 : Multimedia applications for the K Desktop Environment
kdegames.i386 : K Desktop Environment – Games
kdeaccessibility.i386 : K Desktop Environment – Accessibility
kdepim.i386 : PIM (Personal Information Manager) for KDE
kdeutils.i386 : K Desktop Environment – Utilities
kdeadmin.i386 : Administrative tools for KDE.
kdegraphics.i386 : K Desktop Environment – Graphics Applications
kdenetwork.i386 : K Desktop Environment – Network Applications
kdeaddons.i386 : K Desktop Environment – Plugins
kdeartwork.i386 : Additional artwork (themes, sound themes, …) for KDE
kdeartwork-icons.i386 : icon themes (kdeclassic, slick ….) for KDE

Now that KDE is installed, it’s time to install the vnc server:

yum install vnc-server

Next we’ll need to add an user under KDE will run:

useradd kusr -d /home/kusr -G users -m
passwd kusr

The final step is to configure and start the vnc server:

vncpasswd
vncserver

With the above commands you configured the password and the vnc server started, but the problem now is that it’s not using KDE.
Let’s kill the vnc server and edit the configuration file that was automatically generated:

killall -9 Xvnc
nano /home/kusr/.vnc/xstartup

Make sure the configuration file looks like this:

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startkde &

The only thing I changed was the last line.
Start the vnc server once more:

vncserver

Now you are ready to use the new desktop, simply connect using your favorite VNC viewer, but remember to use the port 5901 (some VNC servers use port 5801).

You may start VNC on browsers by typing <your IP adress like 192.0.0.27>:5801

Please comment for in case you need any further clarifications.

Categories: Internet, Linux, Tragedy Tags:

Why EY rocks.

November 24th, 2010 No comments

Explained in brief  below.

Three accountants were in the bathroom standing at the urinals.
The first accountant finished and walked over to the sink to wash his hands. He then proceeded to dry his hands very carefully. He used paper towel and ensured that every single spot of water on his hands was dried.
Turning to the other two accountants, he said, “At Price Waterhouse Coopers, we are trained to be extremely thorough.”
The second accountant finished his task at the urinal and he proceeded to wash his hands. He used a single paper towel and made sure that he dried his hands using every available portion of the paper towel. He turned and said, “At KPMG, not only are we trained to be extremely thorough, but we are also trained to be extremely efficient.”
The third accountant finished and walked straight for the door, shouting over his shoulder, “At Ernst & Young, we don’t pee on our hands.”

…and I am back

November 21st, 2010 No comments

Well finally my exams are over today and I am back to my old life. Gonna start using all the stuff…again…

Finally my Dedicated Server is here…

May 5th, 2010 No comments

Another good news is here again, after a great success of www.mywebstay.com on the Egyptian Index(It got ranked among the top 15,000 sites of Egypt), to increase its area of operation and high growth, I brought a dedicated server so that visitors can easily surf on the site and I can provide them few additional services and features.

The new server will be named and connected to mws002.mywebstay.com (a sub-domain of MyWebStay.com), moreover the old server will also be continued as is, therefore MyWebStay.com will have two server.(That’s great!!!)

MyWebStay.com has now converted into a web host(fully-featured) and will provide servers to its clients along with internet space.

We had a collaboration with Goal Infocom Pvt. Ltd., an Indian company providing domains and web sites to its clients on MLM basis, will buy internet bandwidth and server space from us and will resell it to its clients. This reselling will form a major part of server resources.

On the other hand MyWebStay.com will also use the server for its business, MyWebStay.com will host mailing list scripts(chargeable for clients)  and rapidleech(free for all) on this server.

One more site developed by me i.e. www.bharatmatamandir.in will also be hosted on this server so that we can maximize the uptime for this website. Its a site on Bharat Mata and is made like a web mandir.

Despite of so many activities planned on the server, there is a still spare resources and capacity on the  server. As the server is a AMD Phenom X4 (Quad Core) and 3.0Ghz processor with 4 GB RAM and 10MBPS unmetered bandwidth working with a CentOS 64bit + cPanel & fantastico + Site Builder(with over 12 languages and about 725 template and 150 flash template). Current Hard drive is 320gb but we have plans to upgrade it in the near future.

As a matter of fact MyWebStay.com wants to resell the storage to other customers and has prepared a price-list for that which is very aggressive and competitive to the current market. I would recommend you to have a look on that on MyWebStay.com here

Hackers concern

March 31st, 2010 2 comments

As the cyber space is inviting tons of people everyday, its becoming a HotSpot for people with negative mind also. That’s the only reason why thousands of tragedies happens everyday.

However security professionals are tightening the web to make it more secure, still many people are able to bypass it(its a simple CAT-MOUSE game between the both).

Recently on my site www.mywebstay.com, my whole directory got hacked by some”HackeD BY HaMaDa SCoOoRPioN”. I was worried and thought that I lost my site. Luckily, I found that it was a minor file replacement that occurred by Mr. HaMaDa SCoOoRPioN, on my index.php file(of my wordpress installtion) and changed it with another index.php file(that I had on my backup)

========================================

[root@gator1171 /home/mydirectory/public_html]# stat index.php
File: `index.php’
Size: 3834 Blocks: 8 IO Block: 4096 regular file
Device: 811h/2065d Inode: 618856449 Links: 1
Access: (0644/-rw-r–r–) Uid: ( 766/ mws) Gid: ( 766/ mws)
Access: 2010-01-26 23:15:48.000000000 -0600
Modify: 2010-03-30 13:25:35.000000000 -0500
Change: 2010-03-30 13:25:35.000000000 -0500

========================================

However I had my hosting provider HostGator.com involved on this, so I wasn’t able to analyze much on this issue as they took even less than 5min to solve this problem(voila HostGator’s support rocks).

MyWebStay.com is a target to Hackers and Spammers and it get attacked by hackers 4 to 5 times a day, but still is up almost everytime due to its good permissions and settings.

This was the first and only time(in history of its existence) that it got hacked by someone, well I will try my best to not get it handed over to foolish people.

Well is you are one of those who were stucked up in this do the following immediately after everything works fine:

The permissions on your public_html directory were set incorrectly to “755”. This is insecure and allows certain files on your account to be compromised. This should be “750”. I have restored the effected files. To secure your account further, please take the following steps:

1. Change your WordPress administrator passwords.
2. Change your WordPress MySQL database passwords.
3. Set the permissions for the “wp-config.php” files to “400”.

This would reduce your chance of getting into trouble afterwards.

For safe keeping “The “public_html” directory should be set to 750. All other directories are safe at 755. All files should be set to 644.” Never set the permissions to xx7(this can be the biggest mistakes dome by you) or xx5(this would be the second biggest mistakes, as it gives full access to public to do anything on your site.

About security of MyWebStay.com and its uptime:

MyWebStay.com is backed up by 6 server(presented and different locations) just for the purpose of linking it to the major server and the site is then hosted on 2 different servers(of different location) to provide non-stop services to its users. Also this site has 6IP’s just for the purpose of safeguarding one installations from other(as this site has many software installed) and reduce the downtime caused due to “Bad Neighbors”.

Categories: Tragedy Tags: