RSSAll Entries in the "Tutorials" Category

undefined symbol: xmlTextReaderSetup error in Plesk

A quick one, about an issue that appears after Plesk upgrade to 10.4 version on I686 CentOS or RedHat.

It seams libxml2.so is not ok for the new sw-engine, and after the upgrade, there is “Internal server error 500”
And typical error in the sw-wngine log:

/usr/bin/sw-engine-cgi: symbol lookup error: /usr/bin/sw-engine-cgi: undefined symbol: xmlTextReaderSetup

The soliton is to remove manually the ingine:

#rpm -qa | grep sw-en
sw-engine-2.3.1-201410061604.rhel5
#rpm -e sw-engine-2.3.1-201410061604.rhel5 –nodeps

Then download the appropriate one from http://autoinstall.plesk.com/

In my case it was:


#wget http://autoinstall.plesk.com/PSA_10.4.4/dist-rpm-RedHat-el5-i386/contrib/sw-engine-2.3-201111031617.rhel5.i386.rpm

Then you may need to fix some apache configuration issues:

#/usr/local/psa/admin/bin/websrvmng -av

That is all.

Tags

Ubuntu Remote Desktop – multiple users

When I got my new dedicated server setup with Ubuntu server 12.04 LTS, I wanted to use it both for website hosting and multiple users remote desktop work.
It took me some time to arrange all the steps to have the above completed, and as far as the hosting part was pretty easy, the multiple Ubuntu users desktop setup needed some jugs of coffee before start working as I wanted it.

So, I presume you have logged in to your server with some user already, so we will stat with updating the system:

Next, as I want all Gnome desktop features, will install it completely with:

Unity looks fancy, but I want the old Gnome panel, and I do not need “compiz”, so:

Next what we need is a VNC server.

The tricky part here is that you have to create several configuration files for the Ubuntu Remote Desktop user. This is really time consuming if you have to read all the settings and creating the files by yourself.

It is more easy to start the VNC server which will create the files automatically:

You will be asked for a password so enter it, and then kill the server as we have to make some configuration changes:

Edit the xstartup configuration file:

And make it looks like this:

Now you can start the vnc server with this:

Certainly you can change the settings if you want different Remote Desktop geometry.

Now use your preferred VNC client – http://remmina.sourceforge.net/ (Linux) and http://www.tightvnc.com/download.php (Windows) are my suggestions – and connect to the Ubuntu Remote Desktop server using x.x.x.x:2 as (:2) is the number of display used to run for the client. If you have more than one running you should use different number at the end.

As I saying different desktops, I am going to add another user to my Ubuntu Remote Desktop server.
For this I will need to repeat the above steps for creating (and starting) the VNC profile for each user. This one is not yet automatically implemented, but it is not a big deal.
First I will add another user:

Complete the several steps for creating the user which is including creating the password and user personal information.
(A little trick when you want to add user with administrative privileges is to type the command as : adduser admin
)
Then start the VNC server once to create the VNC password:

Open VNC startup file for the ‘newuser’

And paste the same configuration as for the first user:

Save the file and start the service

Now using VNC client you can connect to the new user Desktop as going to x.x.x.x:3 address.

The next step is to automate a little bit the start-up precess for these Ubuntu Remote Desktop users. Otherwise you have to start vnc4server for each user when the server is rebooted.

So, switch to root (it is just more easier) and then create vncserver folder and create file as vncservers.conf:

Inside put the following massive:

Where ‘user’ is the main user you are dealing with (the one we configured VNC for initially) and ‘newuser’ which is the second user are we have created. If you have more users created and the above steps for settings passwords and vnc4srver start-up completed, add more lines accordingly wit (:4),(:5) etc. screens.

Then create startup script for VNC server as:

And put the following lines inside:

Make the script executable, and add it to the startup scripts:

Now:

And all added users in /etc/vncserver/vncservers.conf will be able to connect via Remote Desktop.

Certainly make sure VNC ports are anebled on the firewall.

Also take in mind that VNC is alsways better to be combined with SSH tunnel as its encryption and vulnerability issues are well known.

Tags

ProFTP – Fatal: error processing configuration file ‘/etc/proftpd.conf’

This is quick one how to fix issue with ProFTPD returning this error:

Simply run :

And the issue sould be resolved.

Tags

Health check script Linux

Bellow I will present script checking Load Average on a Linux server which will send report if it becomes to high.
It is using Linux command ‘uptime’ which is pulling out server’s uptime as well as its Load Average:

In my script bellow I am using not the last minute load average, but the last five minutes (the second) one.
If you are not aware you can interpret a load average of “1.63, 0.70, 7.89” on a single-CPU system as:

– during the last minute, the system was overloaded by 63% on average (1.63 runnable processes, so that 0.73 processes had to wait for a turn for a single CPU system on average).

– during the last 5 minutes, the CPU was idling 30% of the time on average.

– during the last 15 minutes, the system was overloaded 698% on average (7.89 runnable processes, so that 6.98 processes had to wait for a turn for a single CPU system on average).

I have chosen the five minute interval as sending mails every minute is too aggressive in case of a server load. Also it could be something too short and handled by the server without notification.

* Note that some settings may need tuning because of changed/different command output

Once the script is ready you can set it as Cron. job Mine is set to check every 5th minute:

Tags

Creating Your Own Heavy Metal Styled Posters With Photoshop

Do you need a more grungy and heavy metal style for your posters? Besides just pasting in random metal textures, there are a lot of ways that you can add that grungy metallic style.

Here in this tutorial we will talk about not only putting metal textures into a poster. We will also discuss how you can turn your text styles into metal and integrate them creatively unto metal textures. So if you want to learn how to create your own heavy metal styled posters, here is the guide for you.

1. The first step is to set your poster dimensions. Here is where some people get things wrong as they only look at the dimensions. While you can easily set the dimensions (width and height), many people pass over the resolution value. The resolution is important as it will determine the real quality of the design in printing posters. A minimum of 300ppi is recommended in fact for the best results. So once you create a new document in Adobe Photoshop, make sure that you set at least this value for your resolution, along with the poster dimensions that you want.

2. With your new document open, the first step is to write your poster title. This will be the main feature of our heavy metal style poster. Just use Photoshop’s text tool to write your desired title. Use a black color for your text for now and of course, choose a font style that matches your theme.

3. Also, while this is not actually required, it is good to reduce the spacing or tracking within the characters. You can do this through the characters panel. If you do not see this, go to Windows->Character in the menu bar. Alternatively you can select a group of text and press CTRL+T to bring this up. Simply change the tracking value (AV icon) to something negative to bring the text closer together. Note that you can also change a lot of the text attributes in this panel. Play around!

Tags

Learn to Make Beautiful MP3 Player in Illustrator CS5

A great illustrator tutorial which will help you create a beautifully-made, realistic-looking MP3 Player with ear-pieces. If you were having problems as to how to make your products in illustrator as realistic it can be, then here’s the tutorial specially made for you. The use of gradient and how it defines various shapes of the MP3 layer will be shown.

So, here are the things we need before we make our own vectorized MP3 player: First and foremost is the Illustrator CS5. Next, time allotment is twenty to thirty minutes. Beginners and Advanced learners might have the same time needed since this is an easy-to-understand, step-by-step tutorial. Lastly, before producing your own creation, you might want to take a quick glance on the finished product as to have a clear idea on how you would want your creation to be done. Of course, you could always have your own choice of color.

There are around 20 steps in total which you might think is just too many. Actually, these 20 steps will guide you like a small kid on how to start doing a thing, as to avoid confusions and headaches. You can skip some of the steps, especially at the start if you have already the knowledge on how to begin it. Illustrations are shown on the link, with arrows and zoom capacity. Sentences are kept simple too so that it would be easy for everyone to understand each step. Basically, that’s it. Show your creative side and produce the best MP3 you can. Let it look as real as possible with the help of this tutorial.

How To Create A Vintage Car Grunge Poster

In this guide, we will discuss the steps in creating a vintage car poster with that distinct grunge style that many people like. We will be combining a lot of different elements here to get the right grunge + vintage look that we need. So we will have to pay attention to a lot of details and acquire some great fancy (but totally free) elements. Let us get started.

1. Before anything else, we will need to setup our base poster document. So open up Adobe Photoshop and then press CTRL+N to create a new document. Set your dimensions for a poster. A typical poster dimension is an 11×17 inch poster, so we punch in those details. Also make sure to choose at least 300ppi for resolution as this is the basic standard for quality printing. If you’re looking for a poster printer click here

2. Now, with a new document open, we will start by building up our background. To make a grunge paper background, we are going to combine three elements. We will use an old paper texture and two additional grunge wall finishing textures. So first we paste in our old paper texture. This will be our base. You can find lots of free textures like this in Flickr, Deviantart or Morguefile.

3. Next, we paste in a grunge texture of an unfinished wall with rough concrete elements. We chose this because it had some nice scratchy lines that may add an old worn out feel to the paper. We scaled it to size, and then we changed its blend mode to ‘Multiply’. We also reduced its opacity so that we can see the texture integrated subtly unto the paper.

4. Next, we paste in our last grunge element. This time, it is a concrete texture with discolored spots. The spots can help simulate the discolored features of old paper. De-saturate the image by pressing CTRL+SHIFT+U.

[full article: http://tutorialsforgraphicdesign.blogspot.com/2012/05/how-to-create-vintage-car-grunge-poster.html]

Quick Tip #1: How to Create a Glossy Button Vector in Photoshop

This is a quick photoshop tutorial for everyone. This will show you the easiest and quickest way on how to create a glossy button vector in Adobe Photoshop in few simple steps. Here are the details that everyone should take note of. First, software or program to be used is Photoshop CS5. Second, it takes only fifteen to twenty minutes to finish this task. It might take a shorter time for experts, but it might do the same for beginners too, since this tutorial is very easy to understand and follow. Last thing to remember is to take a good look at the finished product before you start doing your own creation as to have the idea on how you would want your creation to appear. You don’t have to follow the specified color for this tutorial. You can have your own, of course.

Now, let’s tackle the steps. Illustrations are given on the provided link.
1. Create a new document in adobe Photoshop with Width 800px and Height 800px.
2. Select the ‘Ellipse tool’ to draw a circle, press ‘Shift’ key while drawing to get a perfect circle.
3. Now click on this ellipse layer and go to Layer> Layer style> Blending options.
4. Create another circle larger than the previous. Place this new circle layer just above the background layer.
5. Now click on this new circle layer to select it and go to Layer> Layer style> Blending options. Use the same settings for stroke as used in step 3.
6. Now I’ll create highlights for the glossy button. Select the ‘Hard round brush tool’ with # ffffff color. Adjust its size according to the button’s smaller circle and apply it on a new layer.
– Now select the ‘Hard round eraser tool’ of the same size and erase the circle to form a nice highlight as shown below.
– Reduce this layer opacity to 50%. Duplicate this layer by going to Layer> Duplicate layer and arrange this highlight on the bottom area using ‘Free transform tool (Ctrl+ T)’.
7. Create a new layer; select the ‘Soft round brush tool’ with # ffffff color. Size should be around 40-50px, apply it as shown below. Change the blending mode of this layer to ‘Overlay’.

There you go. Easy as ABC.

GPG error NO_PUBKEY

This quick tutorial is to show you how to fix bad GPG key or missing(deleted )GPG key on a Debian-like system.
Usually the next error appears when you try to install application or update OS with apt-get update:

GPG error: http://linux.dell.com Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY AS4433E25E3D7775

Simple resolution can be performed with the following two lines:

Take in mind to change the key with the one from your error.

Tags

Simple Abstract Text Titles With Photoshop

The Abstract Style in text is a mainstream way of displaying your print titles. From postcards, posters to brochures, magazines and catalogs, you will always see a couple of these designs sporting creative wild styled abstract titles to draw readers in and make the printed artwork look a lot more distinct.

If you want to try your hand on creating your own creative abstract text, then read the steps below. This should give you all the necessary instructions in creating your own abstract titles easily. Just try it out in your own Photoshop.

1. The first thing you will need to do is of course to create your new document. Size it as you need it. Set the resolution to 300ppi though, especially if you are going to use this graphic for your printed materials. To create a new document in Adobe Photoshop, simply press CTRL+N.

2. The next thing you will want to do is to setup your background. You can either create your own background or copy/paste a special graphic from the Internet. For our purposes we have pasted in a nice red grunge background for the design.

3. Now, type in your title text. Choose any font style you may like, however it is recommended that you do choose something that has thick character styles so that everyone can see the abstract design style created unto the text. Color your text white for now so that it is easier to see on our grunge background.

4. Now, select the area of your text by clicking on its picture Thumbnail.