Archive for the ‘Linux Related’ Category

Set Ubuntu Linux Root password for the first time

Posted on Thursday, October 15, 2009 at 6:22 am


This is just a simple tip that I use when I did some Ubuntu Linux installations, and almost forgot how to set the root password. Because Ubuntu Linux doesn’t ask you for a root password when you install, and assigns a random password for root, you can’t switch to root # in your environment.

All you can do is to login into the Desktop UI/shell with your newly created password. This tip will help you set your root password so you can use it subsequently.

This is how you set the Ubuntu Desktop Linux password:

1) Type in sudo -i
This switches your shell to Root # priviledges

2) passwd
This sets new UNIX Password for root

Now your Root password is set! And for one reason, if the owner did not set this sudo -i. it means you might be able to escalate root privileges for free.

Apache Web Hosting and Dedicated Servers Systems Tutorial

Posted on Sunday, September 13, 2009 at 9:17 am


Overview:
Summarized, Apache web hosting services and dedicated servers are one of the popular services that serve most of the OS or operating systems. The dedicated server applies applications to run on computers using “client’ server’s model. In addition, the dedicated servers work with the web hypertexts transfer protocols. The ultimate concern of the dedicated servers and web hosting is to service web content to fit web browsers, which work on the client computers.

Computers with Internet connection contain web pages that require the use of dedicated or shared servers. Apache hosting services and system servers often apply huge packages for intranet and Internet applications to run on. The users have access to several e-mail address, File Transfer Protocol (FTP), building tools and web page publishing.

Most of the web hosting and dedicated server packages are reasonably priced. With the web hosting packages, you have access to Site Ground, which are dedicated servers, as well as the technology of PHP. You can request that your site to be hosted by Apache servers, of which the server is updated on a regular basis. The web hosting and dedicated servers give you the most advanced versions that are set up on a stable platform. You will also have access to the Site Ground Host Accounts.

Apache hosting services and systems provide you with:
1. Sturdy web servers over powerful secured platforms
2. Red hat
3. Linux OS
4. Technical Support 24/7
5. Account instant activation
6. Free domains
7. Twelve to 500BGB disk space
8. 900GB traffic
9. MySQL
10. PHP
11. FTP

Apache web hosting and dedicated servers, as well as the systems, give you the best of the Internet world. The services are great for Internet marketers, webmasters and companies.

Tutorial for PHP and MySQL Support:
PHP is taking the lead to alternatives with ASP (Microsoft Active Server Page) and has opened sources to “server-side language.” Users have tools to create dynamic pages and can embed Html.

MySQL freely prepares users to use open sources in “Relational Database Management Systems,” otherwise known as RDBMS. The database has an engine that sorts through files by employing SQL or Structured Query Language. The PHP has script platforms, which sit adjacent to the MYSQL database on the UNIX or the Linux server. PHP is the “Personal Home Page” of a web site and is the hypertext pre-processor, which operates with an “Open source server-side language, known as C+.

Commonly, the hypertext joins with MySQL databases on the UNIX and Linux servers. This is the most often used dedicated server script language used by developers. You can embed html and save them as PHP file extensions. Using the extensions, the user can change the content on multiple pages. To make a long story short, it will simplify content designing. Users can modify a single file. Server-side engines allow users to transform PHP regions to html. MySQL is nice to have, yet if you intend to use the servers, you want to take measures to protect your server.

You want to remove MySQL databases at times:
Database is limited. The database should be removed by the user so that he or she can design complex databases on the dedicated servers. Look below to remove your database.
Access the “MySQL account Maintenance Menu.” Next, click on the tab or icon you see above MySQL databases. You will see this on the main window screen in the C-Panel interfaces. Then, click “Delete” after you select the database to remove.

Rather than deleting important databases due to conflicting issues, you can repair the database.

To remove MySQL users:
MySQL users you want to delete can be removed for preventing the user(s) from accessing your databases.

Access your Account Maintenance Menu. Next, click the icon on top of the MySQL Databases that you will see at the Main Window Screen at the C-Panel. Scroll until you see the username you want to delete and then select the user.

To learn more about web hosting and dedicated servers, you can visit the Internet. While we mention Apache, there are various other web hosting and dedicated servers available on the Internet. The best thing to do is search the web to find what you need. It makes your life simpler, and you can find more information to help you understand web hosting and dedicated servers.

Vtund problem with /etc/init.d/vtun start

Posted on Sunday, August 23, 2009 at 8:54 pm


I was mingling around with Linux Ubuntu where I had to do a VPN / VTUN connections to a certain host. So there was this problem where after I did all the settings in vtund.conf (the vtund config file) which was given to my by one of the support tech guys (I trust them..)

So now if I start the vtun connection manually, by typing this in the shell eg.

/home/user# vtund MYVPN1 192.168.100.1

This would create a task called vtund running after I ran ps -ef for the process list. A check with the ipconfig stats my connection up and connection were great.

Now the problem is…

I did a crontab job with /etc/init.d/vtun restart, or even /etc/init.d/vtun start, which I thought the vtun daemon would be able to start with init.d call, instead of running manually.

In the case of the manual vtund crashing or stopping for whatever reason, the /etc/init.d/vtun restart will help to “reset” the connection and help to re-connection, and keep the tunnel alive. But it didn’t work at all! For some reasons all efforts in starting the daemon with /etc/init.d/vtun couldn’t work, but only when I am at my shell connecting it manually.

The solution…

After poking around (for 2 hours) and verifying alot of stuff, I’ll just list down my findings… By the way, I’m using vtun 3.0x, so do upgrade yours if its still 2.x. To check, run “man vtund”

The vtund uses these files:
/etc/vtund.conf - client vtund configurations
/etc/vtund-start.conf - Server vtund configurations (I wasn’t dealing with this)
/etc/default/vtun - The file to modify if you have this /etc/init.d/vtun problem

So after you tried your vtun connection manually, add those fields into the /etc/default/vtun, where your /etc/init.d/vtun will work! In this /etc/default/vtun file, theres only a few fields to fill in, where it simulates you running the manual task. Just fill in your tunnel name and host IP and it should work fine.

Recent Entries

Popular Posts

Recent Comments

  • DennisQuek: Of cos definitely it feels much lighter. It doesn’t really bulge out, and it is much easier to put...
  • siurui: hey there, u have very good reviews and i noticed u were a user of the e61 too (using it now). this might...
  • DennisQuek: Nope… As most company’s HR policies applies, the highest academic qualifications is based on...
  • a blog reader: Great job on completing your degree. Any chance to change career scheme on your side?
  • a blog reader: Good job on completing your degree