Showing posts with label tweak. Show all posts
Showing posts with label tweak. Show all posts

How to auto-close the terminal after a certain period of inactivity

I will show you a little trick to close the terminal automatically after a certain period of inactivity. The trick is very simple, just use any text editor ( as root) to open the file /etc/profile, in Ubuntu or Linux Mint Cinnamon, the command will be:

sudo gedit /etc/profile 

Once the file is open, just append the following lines to the end of the file:

 export TMOUT

Change the "seconds" in the variable part of TMOUT to any number you prefer, this is the maximum idling time the terminal can last before getting closed. I will use 200 as the example here, just add the lines into the end of the file /etc/profile like this:

Then save the file and close the text editor.  After that, run the following command to apply the new change and your terminal will be automatically closed after 200 seconds of inactivity:

 source /etc/profile

Install apt-fast Download Accelerator in Ubuntu 12.04/11.10/10.04

apt-get command is a normal way to download and install packages and update system. apt-fast is a shellscript wrapper for apt-get that can drastically improve apt download times by downloading packages in parallel, with multiple connections per package. It uses axel or aria2c as a download manager.

Once you’ve setup apt-fast, you can use it like apt-get. To install a single package, make sure your database is up to date (apt-fast update), and run apt-fast install packagenamehere. Watch it download with incredible speed, and install your requested packages. To upgrade or dist-upgrade, do the same thing. Just use apt-fast dist-upgrade or apt-fast upgrade.

Install and set up apt-fast in Ubuntu:
apt-fast got an official PPA provides packages for Ubuntu 12.04, 11.10, 11.04, and 10.04. You can use a graphical way installing apt-fast from ppa:apt-fast/stable

Or, open up a terminal (Ctrl+Alt+T) window and just execute following commands:

sudo add-apt-repository ppa:apt-fast/stable
sudo apt-get update
sudo apt-get install apt-fast axel
After installation, configure apt-fast to use axel as download manager:
  • edit the configuration file:
    sudo gedit /etc/apt-fast.conf
  • remove # before following “_DOWNLOADER” line and save the file
    # axel:
    _DOWNLOADER=’cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a’ # axel
Now, run this command and then you can use apt-fast as apt-get

sudo apt-fast update

How to Make Firefox Faster on Linux Mint

Before making any changes, please make a backup of .mozilla/firefox/--------.default/prefs.js for your own safety. prefs.js is a file that stores all of your history and bookmarks from Firefox. 
  •  First open Firefox. 
  • Type "about:config" (without quotes) in the Firefox address bar and then click "Enter". This command opens a configuration page that allows the user to change advanced system settings in Firefox.
  • Speed up page loading/rendering time in Firefox. Right-click anywhere in the "about:config" window, click on "New" and then select "String". Name the string "nglayout.initialpaint.delay" (without quotes). Enter a value of "0" and then click "OK". This tweak decreases the amount of time Firefox waits to render a page from 250 milliseconds to zero. Make the same process and name the string "content.notify.interval" and enter a value of "0".
  • Force Firefox to release reserved system RAM when the browser is minimized. Right-click anywhere in the "about:config" window, click on "New" and then select "Boolean". Name the entry "config.trim_on_minimize" (without quotes). Change the value to "True" and then click "OK". This setting forces Firefox to only reserve about 10 MB of system memory while minimized.
  • Normally Firefox only sends one or two tunnels to the website. However, the more tunnels you use the faster you go. To change this, type in filter bar "network.http.pipelining.maxrequests" and change the value to "150".
  • Attention: The more tunnels you use, the more bandwidth you use, meaning you could use as tunnels as you want but that would probably kill the sites bandwidth if everyone did that. 150 is a very good value.
  • Type "network.http.pipelining" in filter bar, and set it to "True" by double clicking it.
  • Type "network.http.proxy.pipelining" in filter bar, and set it to "True" by double clicking it.

Monitor System Resources in Ubuntu 12.04 LTS

This tutorial shows how to monitor your Ubuntu system resources such as usage of processor, memory, network, hard disk and also cpu/motherboard temperature, cpu fan speed.
There’s a good system load indicator for Ubuntu monitoring cpu usage, cache, memory, network, etc. And psensor is a gtk+ application monitoring temperatures and fan speeds.

1. Install system load indicator

Open up a terminal (Ctrl+Alt+T) and install it from ppa:indicator-multiload/stable-daily. You can use graphical way adding ppa

sudo add-apt-repository ppa:indicator-multiload/stable-daily
sudo apt-get update
sudo apt-get install indicator-multiload

2. Install psensor to monitor temperatures and fan speeds

First install lm-sensor, and start detect hardware sensors:

sudo apt-get install lm-sensors sudo sensors-detect

Install Psensor from this ppa:jfi/ppa

sudo apt-add-repository ppa:jfi/ppa
sudo apt-get update
sudo apt-get install psensor

3. Launch startup applications from the dash, add the two indicator as auto-start at login.
in command area:
  • system load monitor use indicator-multiload
  • psensor use psensor

Speed up your Ubuntu 12.04 with preload

Preload is nice little application that could make your linux system a lot faster. Preload is an adaptive readahead daemon. It monitors applications that users run, and by analyzing this data, predicts what applications users might run, and fetches those binaries and their dependencies into memory for faster startup times.

Preload packages are available for almost all linux distributions. And it is available by default in the Synaptic Package Manager and Ubuntu Software Center in Ubuntu. Alternatively, you can install it via Terminal. Type this command

 sudo apt-get install preload

Thats it. Preload will run silently in the background. If you want to further tweak Preload, conf file is available at /etc/preload.conf.

Note that installing preload will not make your system boot faster and that preload is a daemon that runs with root priviledges.

And see the difference.

How to: Enable screen lock in Linux Mint 13

In Linux Mint 13, the screen lock feature is disabled by default. After being idle for a while, the screen will be dimmed and you can re-activate it by moving the mouse or hit a key. For security reasons, you may want to enable the screen lock feature. Here is how to do it:

Hit Alt + F2 and run "mateconf-editor" to open the Mate configuration window. Go to apps > mate-screensaver then check the line "lock_enabled". You can also edit the line idle_delay to change the minutes of inactivity time before the screen lock is activated.

Remove White Dots from Login Screen of Ubuntu 12.04 Precise Pangolin

ome People don't like white dots in Ubuntu 12.04 Login screen, So here is a tweak you can easily remove these dots from login screen.

To Remove White Dots from Ubuntu 12.04 login Screen open Terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:
  • sudo xhost +SI:localuser:lightdm 
  • sudo su lightdm -s /bin/bash 
  • gsettings set com.canonical.unity-greeter draw-grid false 
 Here are more tweaks for Ubuntu 12.04 Precise Pangolin. Important Tweaks and Some more Tweaks. That's it, Enjoy

Visit on Site

Resolve slow connexion when using wifi in ubuntu 11.04, 11.10 and LinuxMint 11

After installing or upgrading to Ubuntu 11.04 or 11.10 Oneiric Ocelot  you noticed that the connexion is too slow when using the wifi, this is a simple solution. This solution works also for LinuxMint.

1- First method : You need to disactivate IPv6, to do that, open terminal and enter the following commands:

echo "#disable ipv6" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf

Then restart your system.

If you still have the issue, follow also instructions on step 2.

2- Second method :  A second solution for this issue can be by using the following :

Open terminal and enter the following command:

sudo -s
gksu gedit /etc/modprobe.d/ath9k.conf

at the end of the file add this:

options ath9k nohwcrypt=1

Save an restart your OS. 

How To Enable Numpad Automatically At Ubuntu Login Screen (LightDM) - Ubuntu 11.10

LightDM is the new display manager used by Ubuntu 11.10 Oneiric Ocelot that allows users to submit their account credentials to login to a session. The problem with this display manager is that at logon screen, the numpad is locked and you are obliged to enable it manually to be able to submit your password.

To solve this, open the terminal (Ctrl+Alt+T) and run this sequence of commands:

sudo apt-get install numlockx

echo "greeter-setup-script=/usr/bin/numlockx on" | sudo tee -a /etc/lightdm/lightdm.conf

Reboot now your system to check if it worked.

Good luck!

How to Reset Ubuntu Password Using LiveCD

This trick should not be used for doing something bad with someone else. The main purpose of this trick is to recover your lost Ubuntu password.

 Now, prepare your Ubuntu Live CD and boot your computer from it until the desktop appears. Once, the desktop is ready, open Terminal and type the following command:

    . gksudo nautilus

Now, at the left sidebar, navigate to the root partition of your installed Ubuntu system, NOT the root partition of the Live CD.

 For the example, I'll reset password of the user "hok00age". Open file "/etc/shadow" with your favorite text editor and then search for line containing the username:

  . hok00age:$1$2TUdk8Z0$tb2Fn6Idgo8dq9EgYv4xZ0:13721:0:99999:7:::

Look at that code! All you need to do is replace the weird phrase "$1$2TUdk8Z0$tb2Fn6Idgo8dq9EgYv4xZ0" with another weird phrase "U6aMy0wojraho". If you did it well, you'll see the line is changed like the below one:

  . hok00age:U6aMy0wojraho:13721:0:99999:7:::

It will, replace your old password with newly BLANK password. So, if you want to log in your computer just leave the password field empty.

 Now, reboot your computer and login with the BLANK password.


source : 

Find Us On Facebook

Related Posts Plugin for WordPress, Blogger... Linux Directory