Posts marked with "Linux" in categories

How to take a screenshot in Ubuntu/Linux

You can take screenshots of your desktop in Linux. For taking screenshots you can use Take Screenshot application.

  • Use shortcut keys

To take a screenshot, use the following shortcut keys:

  <td width="50%">
    <b>Function</b>
  </td>
</tr>

<tr valign="TOP">
  <td width="50%">
    Print Screen
  </td>
  
  <td width="50%">
    Takes a screenshot of the entire screen.
  </td>
</tr>

<tr valign="TOP">
  <td width="50%">
    Alt+Print Screen
  </td>
  
  <td width="50%">
    Takes a screenshot of the window which is active.
  </td>
</tr>
Default Shortcut Keys

... [READ MORE]

Know/Check Ram Type in Linux

If you want to know what type is your RAM. This command will help you in Linux.

sudo dmidecode –type 17

Type your password and press Enter. The details of your ram will be shown.

You can now see the DDR of your Ram as shown in the picture above.
... [READ MORE]

Can’t boot into Ubuntu after upgrading.

When you upgrade to any new version of Ubuntu you will not be able to open Ubuntu. There might be a number of reasons. This post will help you to solve the problem of not completing the 
installation of new packages.


To solve this, boot in to Ubuntu. You will be stuck in the Ubuntu Logo.

In there press ALT + CTRL + F1.
You will get a terminal.
Login to your account there in the terminal by typing your username first and password second.
Then Enter the following commands in the terminal.

... [READ MORE]

Block a site on all browsers in Linux

This tutorial will help you to block a site in all browsers on Linux

Open Terminal (ALT+F2).

Type sudo -i in the input field as shown in the picture above.
Check the Run in terminal option.
Finally click Run button.
Type your password if necessary and press enter.
Then enter the following commands.

gedit /etc/hosts

... [READ MORE]

How to remove an item from GRUB boot menu

When you upgrade from old Ubuntu to new Ubuntu. Your GRUB menu will contain more than one Ubuntu. To remove unwanted Ubuntu from GRUB you need to edit the GRUB configuration file.
Follow these steps.
Backup your GRUB configuration file which is in /boot/grub/grub.cfg which we will need if something goes wrong.
Open Terminal (Applications -> Accessories -> Terminal). You need to be the root. For that :

... [READ MORE]

How to Repair/Restore/Reinstall GRUB Using Ubuntu Live CD

GRUB is the default bootloader of Linux. It is installed on your Hard Disk, but it’s not accessible as a drive. GRUB is installed on your Hard Disk when you install a Linux Operating System.

Without GRUB, you can’t boot in to OSs. Windows, Mac and other OS have their own bootloader. Linux too have different bootloaders. GRUB, BURG are examples.

When you install Windows after you install Ubuntu, Windows replaces the GRUB in the Hard Disk to Windows’ boot loader which won’t identify Linux systems (Damn you Windows !). But, our GRUB detects every OS. So, it’s better to have GRUB over Windows Boot Loader.

... [READ MORE]

How to make a transparent background/selection on an image using GIMP

Open your image in GIMP.

Select the area you want to make transparent.Select the appropriate selection tool from the Tool window or the Tools – Selection Tools menu on the Layer window
I usually use the magic wand/fuzzy select (Select contiguous region) tool or the Select regions by color tool.

Click in the region you want selected.  Use shift-click to add more regions/colors.
Tip: It’s easier if you zoom in (View – Zoom menu) to see finer details of exactly what you’re selecting.

In the Layer window (the one showing your image), select Layer – Transparency – Add Alpha Channel.  If this is blanked out then it’s already done.  This makes sure your image can store transparency data.
Select Edit – Clear.  This makes the selection transparent.
Save the file.  

Note: If you save it as a PNG file, be sure to select the ‘Save colour values from transparent pixels’ option in the Save as PNG dialog box.
... [READ MORE]

Upload more than 1 MB file in PHP.

Some may have problem with uploading file more than 1 MB or 2 MB. You can fix this by editing the configuration file of PHP. To fix this follow the steps.

Open Root Terminal (Applications -> System Tools -> Root Terminal).
Type 

sudo gedit /etc/php5/apache2/php.ini 

and press enter key.
You will get gedit application with the php.in file.

Search for the words post_max_size upload_max_filesize.
If you found the words you will see a = after the word post_max_size upload_max_filesize.

Change the number as you want (Default will be 1M or 2M).
After editing save the file and restart Apache Web Server by opening Root Terminal and pasting this code

... [READ MORE]

How To Create A Localhost Web Site In Linux Using Apache Web Server

Localhost is a hosting place in your own computer. There are a vast number of Localhost servers you can use. The most used and popular of them is Apache. Localhost enables you to test your work on your computer itself, instead of testing on a live server on the web. If you are creating a project, Localhost is the best place to test that project. In this tutorial I will show you how to create a localhost site running on Apache Server in any Linux Distribution.

... [READ MORE]

Follow/Subscribe

Telegram 

Mastodon  Twitter

GitHub GitLab

Subdomains

Demos  Lab

Past

This blog was once on WordPress. Now a static site. See source code on

GitLab