I assume that you may already know the reason before reaching my post. Run the following command as root. That's all.
echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor >& /dev/null
Have fun!!!
echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor >& /dev/null
$ wget https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-2.00.0.tar.gz $ tar -zxvf liberation-fonts-ttf-2.00.0.tar.gz $ sudo cp -f liberation-fonts-ttf-2.00.1/*.ttf /usr/share/fonts/liberation/ $ sudo fc-cache
$ rpm -ivh ftp://mirror.switch.ch/pool/3/mirror/rpmfusion/free/fedora/releases/19/Everything/x86_64/os/freetype-freeworld-2.4.11-2.fc19.x86_64.rpm
$ sudo yum install gnome-tweak-tool $ gnome-tweak-tool &
$ echo "Xft.lcdfilter: lcddefault" >> ~/.Xresources
$ ssh -D 1080 username@hostname
$ ssh -NCf -o "ServerAliveInterval 300" -D 1080 username@hostname
![]() |
| The main window of PuTTY where you can declare host name, port, etc. |
# umount /home # mount /home
# sync && echo 3 > /proc/sys/vm/drop_caches
open(filename, O_DIRECT);
/* clearcache.c - mrcuongnv */
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
int
clear_file_cache(filename)
char *filename;
{
int fd, rs;
printf("%s", filename);
if ((fd = open(filename, O_RDONLY)) != -1) {
if ((rs = posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED)) == 0) {
printf(" --> Cleared\n");
return 0;
}
}
printf(" --> %s (%d)\n", strerror(errno), errno);
return 1;
}
int
main(argc, argv)
int argc;
char *argv[];
{
if (argc < 2) {
fprintf(stderr, "Syntax: %s FILES\n", argv[0]);
return 1;
}
int i, rs = 0;
for (i = 1; i < argc; i++) {
rs += clear_file_cache(argv[i]);
}
return rs;
}
* !.gitignore