Posts marked with "Terminal" in tags

Revert back to normal resolution after running a fullscreen app in Wine

While running a fullscreen app in Wine such as games, you might not get the screen resolution back after you close the app. It’s because Linux won’t automatically change it’s resolution like Windows.

But you could if you run a simple file in terminal. Here is how you could do it.
Create a file named normal.sh in your Desktop with the following contents:

#!/bin/bash
xrandr -s 0

Save it on a place where you can open it easily. Make the file Executable to run it in a terminal. See this post to see how you could make a file executable.

... [READ MORE]

How To Log Out Using Terminal in Ubuntu Linux

There is no specific command to logout in an Ubuntu system.

Why ?

Here’s how it works. The desktop you’re seeing is a separate software. They are called Desktop Environments (DE). The default DE of Ubuntu is Unity from Ubuntu’s 11.04 versions. Before it was GNOME. There are many DEs for Ubuntu. Some of them are :

  • Openbox
  • XFCE
  • LXDE

and many more.. There are also separate Login Managers to provide the login screen while Ubuntu is loaded. When you log in, the Login Manager starts the default DE set up on your system and when this DE program is closed or terminated, it will go back to the Login Screen or Login Manager.

... [READ MORE]

How to edit/clear Ubuntu Terminal commands history ?

This simple trick will help you to clear or edit terminal commands you entered in Terminal of Ubuntu.
Open the file /home/user/.bash_history (Replace red text with your username.

To make it simple Go to your home folder and Press CTRL + H. It will show hidden files.
search for the file .bash_history
Edit the file.
You can see all the commands you entered in Terminal.

Remove what you don’t want and save.

... [READ MORE]

How to increase your apt cache limit

Increase value APT::Cache-Limit

When the time I try to install backtrack unfortunately i got message error in the terminal :
Reading package lists… Error!
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)
E: Error occurred while processing riece (NewVersion1)
E: Problem with MergeList /var/lib/apt/lists/archive.offensive-security.com_dists_pwnsauce_universe_binary-i386_Packages
W: Unable to munmap
E: The package lists or status file could not be parsed or opened.

and solution to fix it is just increase the value APT::Cache-Limit at the /etc/apt/apt.conf.d/70debconf

sudo gedit /etc/apt/apt.conf.d/70debconf

... [READ MORE]

phpMyAdmin – A software to manage MySql Database

If you want to manage your MySql table you can use a software called phpMyAdmin. You can install phpMyAdmin in any Operating Systems. This tutorial will help you to install phpMyAdmin in Linux.

<h2 id="require" style="font-family: sans-serif; max-width: 70em;">
  Requirements
</h2>

<ul style="font-family: sans-serif; margin: 1em; max-width: 70em;">
  <li style="margin-top: 0.5em;">
    <b>PHP</b> <ul style="margin: 1em 1em 0px; max-width: 70em;">
      <li style="margin-top: 0.5em;">
        You need PHP 5.2.0 or newer, with&nbsp;<tt>session</tt>&nbsp;support&nbsp;and the Standard PHP Library (SPL) extension.
      </li>
      <li style="margin-top: 0.5em;">
        To support uploading of ZIP files, you need the PHP&nbsp;<tt>zip</tt>&nbsp;extension.
      </li>
      <li style="margin-top: 0.5em;">
        For proper support of multibyte strings (eg. UTF-8, which is currently default), you should install mbstring and ctype extensions.
      </li>
      <li style="margin-top: 0.5em;">
        You need GD2 support in PHP to display inline thumbnails of JPEGs ("image/jpeg: inline") with their original aspect ratio
      </li>
      <li style="margin-top: 0.5em;">
        When using the "cookie"&nbsp;authentication method, the&nbsp;<tt>mcrypt</tt>&nbsp;extension is strongly suggested for most users and is&nbsp;<b>required</b>&nbsp;for 64–bit machines. Not using mcrypt will cause phpMyAdmin to load pages significantly slower.
      </li>
      <li style="margin-top: 0.5em;">
        To support upload progress bars.
      </li>
    </ul>
  </li>
  
  <li style="margin-top: 0.5em;">
    <b>MySQL</b>&nbsp;5.0 or newer (details);
  </li>
  <li style="margin-top: 0.5em;">
    <b>Web browser</b>&nbsp;with cookies enabled.
  </li>
</ul>
Press ALT + CTRL + T.
You will get the Terminal window.
Type the command shown below.

sudo apt-get install phpmyadmin

... [READ MORE]

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]

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