Linux.com

Community Blogs



How to fix “System program problem detected” error on Ubuntu

The error "System program problem detected" comes up when a certain application crashes. Ubuntu has a program called Apport that is responsible for detecting such crashes and upon user consent, report these crashes to developers. This process intends to get the problem fixed by the developers. However it can be very annoying to common users, and there is no point in showing errors to users when they cannot do anything about it themselves. So you might want to disable them. Remove crash report...
Read more... Comment (0)
 

Boosting VPS Performance : Tips For Enhancing Server Speed

The virtual private server (VPS) technology provides with significant affordability for both – the web hosting company and the end customers. A VPS hosting platform provides with privacy and security similar to a dedicated server environment without the expenses of renting an entire server. As a result of this, the end users can enjoy the best of both worlds! The VPS hosting services reduce many issues that are associated with the shared servers including the system slowdowns caused as a result of the users on the servers. In case of a VPS, the resources allocated to a particular user are always reserved for the sole purpose of that user. This helps in reducing the downtime, prevents the occurrence of unnecessary lags and improvises on the overall performance of the system. In order to improve the VPS hosting performance even further, you need to know some important tips that will help you to optimize the speed and performance for both Linux and Windows VPS platforms.

Monitor The Performance

It is important to track the speed and performance of the applications hosted on the virtual private server for ensuring optimum performance. At times, the software conflicts might result in slowdowns. Other reasons for poor performance include insufficient space and processing resources, hardware errors or bandwidth issues either at the source or in case of the end user. Detecting these problems early can help in improving the productivity and avoid unnecessary website slowdown or downtime that might occur if these issues remain unaddressed. In some cases, increasing the storage space through the VPS host might be the perfect solution. The cost of increasing the resources is usually less than lost revenues incurred as a result of delay in taking the right decision at the right time.

Improving Apache Performance On VPS Servers

In case of Linux implementations, it is better to opt for dynamic module management instead of static. The resident web server module loading settings can help in improving the overall performance in the VPS environment. This is possible because the dynamic module loading enables the components to run only when they are actively required. These setting utilize less server resources and provides with better speed and performance for the applications hosted on the server. This is an important attribute in case of servers that operate MySQL or other programs that need large volume of server resources. Moreover, if you install and maintain only the main Apache functions and components and eliminate the less useful elements, you will be able to successfully improve the overall VPS performance. Disabling some parts of Apache’s in-built functionalities can also result in improving the loading times and improve on the overall performance of the VPS platform.

Managing MySQL’s Memory Usage

For the companies that utilize MySQL, optimizing the database implementation is important for ensuring faster page load times and improved performance. MySQL is often paired with the Apache software. This combination might create significant slowdowns in the limited resource VPS platforms. It is crucial to ensure that the dynamic durability settings for MySQL are enabled. In this way it is possible to enhance the speed and processing power of MySQL database. Moreover, by reducing the key buffer size to the smallest possible percentage might free the valuable system resources in the MySQL environment. This will boost the page speed and performance for the page loads and other applications. In some cases, you can even consider moving the database server on a separate server altogether.

Streamlining The Performance

Many Linux VPS hosting providers offer a wide range of re-installed applications for the initial implementation service. For the companies that don’t need to use these applications, removing them from the server can free the space thereby providing a faster and streamlined VPS environment for important applications and data storage requirements. Streamlining the Apache web server applications, MySQL database and other components present under the VPS server environment will help in boosting the VPS performance. It will also be possible to manage the expenses and space availability in an efficient way, enabling the companies to achieve higher productivity and increased revenues without spending a huge amount in server storage space for doing so.

 

Schedule Your Jobs in Linux With CRON

    Most of the Linux users are aware of how commands are run, processes are manipulated and scripts are executed in terminal. But, if you are a Linux system administrator, you might want them to start and execute automatically in the background. As an example, you might consider running a backup job every day, at a specific time, automatically. Or you might consider an example of collecting inventory data of the systems deployed across your network, by running a script automatically on monthly basis. But, how to schedule these jobs and execute them automatically in Linux?

    There is an utility in Linux known as CRON with which you can start your jobs automatically at a desired time and schedule them to get executed periodically.

    Cron utility consists of two parts: The cron daemon and the cron configuration files. Cron daemon is just like any service that is started automatically whenever your system boots. Cron configuration files hold the information of what to do and when to do. The main job of cron daemon is to inspect the configuration regularly (every minute to be more precise) and check if there is any job to be completed.

    In the /etc directory, you will find some sub-directories namely cron.hourlycron.dailycron.weekly and cron.monthly. You can put your scripts in these directories, and as their names suggest, they will be automatically executed after certain period of time. For example, if you wish to run a job or service regularly after every week, simple put the script in /etc/cron.weekly directory.

In case you need to execute a script after every fortnight, keeping the script in any of the above mentioned directories will not help. But, every problem has a solution. You can launch crontab (CRON TABle) editor which provides an interface that is very much similar to vi editor using the command crontab –e. This will start the crontab editor to create cron job for the root user. If you are root and you wish to create cron job for other user, you can use command like crontab -u [USER] -e.

 

Read More at YourOwnLinux.

 

How to get information about graphics card (GPU) on Linux

Graphics processing units - GPU You need to find out the correct model and vendor of the graphics card on your system, to be able to install the appropriate drivers and get the hardware to function properly. Most modern linux distros can detect variety of graphics card, but do not always have the best driver for it. So if you have an external graphics card like...
Read more... Comment (0)
 

Create Vector Graphics with Open Source Software

This article identifies the finest open source vector graphics editors. Vector editors are ideal for technical illustrations, diagramming, flowcharting, artistic illustrations, promotional posters, banners, signage, logos, typography, vehicle wraps and layout. Bitmap editors are more suitable for retouching, photo processing, photorealistic illustrations, collage, and illustrations drawn by hand with a pen tablet.


<A HREF="http://www.linuxlinks.com/article/20140418030614432/VectorGraphics.html">Article</A>

 

Benchmark graphics card (GPU) performance on Linux with glmark

Graphics performance - measure it Recently when I added a new nvidia graphics card to one of my desktops, I was curious to measure and compare the power of this graphics card with whatever it was before. One way to do this is with benchmark tools which would run a series of "drawing" tests to measure the graphics processing capacity of the hardware. In simple terms, GPUs that can process and render more images/graphics per...
Read more... Comment (0)
 

Ubuntu 14.04 LTS (Trusty Tahr) released and its time to upgrade

Ubuntu 14.04 LTS Ubuntu 14.04, codenamed Trusty Tahr has been just released a few hours ago and its time to upgrade to get the latest Ubuntu. Its the first release of this year and is an long term release that shall get support till April 2019. To learn about what's new in 14.04 check out the release notes. Ubuntu 13.10 and 12.04 LTS users should be able to safely upgrade to 14.04 LTS...
Read more... Comment (0)
 

How to install Nvidia drivers on Linux Mint 16 Petra

Dedicated Nvidia GPU Having a dedicated graphics processing unit ( GPU or graphics card ), boosts graphics performance significantly, especially when playing 3d games. Nvidia GPUs are very popular on desktop computers and they work very well on linux, as drivers are available from Nvidia. It is necessary to install the right drivers to ensure proper utilisation GPU. Otherwise the performance would be limited, or totally unused. Nouveau - the default driver...

Read more... Comment (0)
 

How To : Install/Upgrade to Linux Kernel 3.14.1 in Ubuntu/Linux Mint Systems

     "The Linux Kernel 3.14.1 is now available for the users and all the users of 3.14 kernel series must upgrade", announced Greg Kroah-Hartman.This Linux Kernel version comes with plenty of fixes and improvements. This article will guide you to install or upgrade to Linux Kernel 3.14.1 in your Ubuntu or Linux Mint system.

 

Fixes

  • crypto: ghash-clmulni-intel - use C implementation for setkey()
  • m68k: Skip futex_atomic_cmpxchg_inatomic() test 
  • futex: Allow architectures to skip futex_atomic_cmpxchg_inatomic() test 
  • ARC: [nsimosci] Change .dts to use generic 8250 UART 
  • iwlwifi: mvm: rs: fix search cycle rules 
  • net/at91_ether: avoid NULL pointer dereference 
  • rds: prevent dereference of a NULL device in rds_iw_laddr_check 
  • isdnloop: several buffer overflows 
  • isdnloop: Validate NUL-terminated strings from user. 
  • net: vxlan: fix crash when interface is created with no group 
  • xen-netback: disable rogue vif in kthread context 
  • netlink: don't compare the nul-termination in nla_strcmp 
  • ipv6: some ipv6 statistic counters failed to disable bh 
  • xen-netback: BUG_ON in xenvif_rx_action() not catching overflow 
  • xen-netback: worse-case estimate in xenvif_rx_action is underestimating

Read More at YourOwnLinux.

 

Make Your Linux Machine An Internet Access Point [Hotspot]

It can be tough staying at a place without so much as a router, right? It's incredibly annoying, especially considering it's 2014 -- a year where technology is supposed to be at its best. Today, I thought it would be useful if I introduced you to a concept I consider totally badass. All you'll need is your Linux machine and an ethernet cable. What's that? No, this process won't ask for your firstborn in return -- it's not Micrsoft. It's kind of like reverse tethering. [Thanks for asking, imaginary person that I just created to answer my own question.]

 

Step 1: Add PPA

sudo add-apt-repository ppa:nilarimogard/webupd8

Step 2: Update

sudo apt-get update


Step 3: Install

sudo apt-get install ap-hotspot


Step 4: Configure

sudo ap-hotspot configure


If you're connected to an Ethernet cable, it should detect your network as something like etch0 -- just continue. Once it asks to name your network, name it something like awesomenetwork. Your WPA password should be of the following length (this is what I use as my password: fivefifty. No longer, no shorter.

 

To Start

Sudo ap-hotspot start

To Stop

sudo ap-hotspot stop

To Restart

sudo ap-hotspot restart

 

5 Important cPanel Settings For Beginners

cPanel control panel is most widely used in the web hosting industry. The main reason behind the popularity of WHM / cPanel is the flexibility and the user friendliness offered. cPanel is easy to manage, easy to customize and it is backed by great quality support. Most of us dealing in the web hosting industry know about the potential of the cPanel control panel. However, if you are new to cPanel, there are a few things that are recommended for you for the initial phase.

Here is an insight on the 5 important cPanel settings for you:

Strong Password

Every user gets a username and password for logging into cPanel. The username and password provided for cPanel is also applicable to the MySQL database user, FTP account, email address and at times the system user login as well. The system user login can be used for accessing the server remotely through SSH (if this feature is enabled by the server administrator). Modifying the cPanel login password is an important action to be done initially. If your password can be easily retrieved or guessed by anyone, that person will also get unwarranted privileges to the server and this is dangerous.

It is important to follow good password practice. Some important tips for password management are mentioned below:

  • Keep changing your password
  • Avoid using dictionary words
  • Avoid using easy things like vehicle registration number, date of birth or phone number as password
  • Use a complex password that is hard to guess
  • Set the length of the password to 8 characters or more
  • Do not use the option of ‘remember password’ in any browser

Server Environment

Make sure that you have complete understanding of the server environment before using it. Some important aspects that you need to know include server operating system, server architecture, kernel version, the versions of the installed applications (Apache, PHP, MySQL, cPanel, Pearl). It is also important to know about the IP address and hosting package limitations. This information is available on the main page; it usually appears on the sidebar of the cPanel interface. A good hosting server should be operated on the updated version of the kernel and applications should be operated under the 64 bit architecture.

It is also crucial to check the cPanel service status. This can be done by logging into cPanel > Stats > Service Status. Here you can see the number of CPUs that are running on the server, memory usage and the disk space status. This feature will provide you with the real time information for the server. All the services should be up and running properly. Ideally, a stable server should run at below 80% of disk usage and below 10% of swap; the server load average should be 2 times below the total number of CPUs.

File & Directory Permissions

By default, with a cPanel hosting account, users get a home directory under /home/{username}. All the files and directories present under the user’s home directory should be operated on the respective permissions and ownership. The most important directory that should run with correct permissions and ownership is public_html. Before we proceed further, it is important for you to know how PHP is managed.

Create a phpinfo page under the public_html directory. Access this page through the browser and check the ‘Server API’. If the value is CGI / FastCGI, then the PHP handler is suPHP, FastCGI or CGI. Most of the web hosting companies use suPHP because of security verification and also because it is the default handler for the cPanel servers. Under suPHP, PHP is executed as a different process along with Apache. All the file permissions should be run under 644 and the directory permissions under 755. Permissions that are higher than this will result in ‘Internal Server Error’ when the PHP script is executed.

If the Server API value is Apache 2.0 handler, then PHP is run under DSO. This handler does not need any strict file permissions or ownership because the PHP file is completely handled by Apache.

You can utilize the cPanel file manager, FTP client or SSH access for fixing the permissions and ownership issues. Make sure to delete the phpinfo page once you have got the necessary information.

Add Protection

Even though the server administrator has the responsibility of managing protection and security, cPanel users can make use of the flexible cPanel interface for adding some protection to the domain, website and cPanel account. Enable the spam assassin (cPanel > Mail > Spam Assassin). This feature is not provided by some web hosting providers as a default because a domain that is newly registered does not receive any spam emails. Discard all the unrouted emails in the default address (cPanel > Mail > Default Address) that contain error to sender at SMTP time. Avoid using the options like ‘blackhole’ or ‘forward to email address’ unless they are actually required. Hackers might take the advantage of these two features for creating a DOS attack on the SMTP service.

If the FrontPage is not used, disable it (cPanel > Advanced > FrontPage Extensions). Check the ‘PHP disabled_function’ through phpinfo page. All the critical functions should be disabled inside the server.

Enable the hotlink protection through (cPanel > Security > Hotlink Protection) for preventing anyone from stealing your bandwidth. People might link your image to their website thus making a part of their content. Enable your website URL to only access static content like .png, .jpeg, .jpg and .bmp.

Notification & Monitoring

It is important to add a secondary email in order to receive notifications through cPanel. By default, the registered email of the user will be the primary contact. Go to the option – Update Contact Info (cPanel > Preferences > Update Contact Info) and add a secondary email that will serve as a backup in case the primary email cannot be reached.

Subscribe to the monitoring tools that are available online for monitoring your website and domain availability. Although this service is offered for free by some of the web hosting companies, it is always good to have another external monitoring source for accurate results. Configure the monitoring system in order to trigger and send notification emails / alerts to your email id.

The information contained in this article is useful for both, new cPanel users and for the users who have been using cPanel. By implementing the essential settings mentioned above, you will get better control over your website and domain name.

 
Page 7 of 132

Upcoming Linux Foundation Courses

  1. LFS230 Linux Network Management
    06 Oct » 09 Oct - Virtual
    Details
  2. LFD331 Developing Linux Device Drivers
    13 Oct » 17 Oct - Virtual
    Details
  3. LFS430 Linux Enterprise Automation
    13 Oct » 16 Oct - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board