Skip to content

Instantly share code, notes, and snippets.

http://forums.linuxmint.com/viewtopic.php?f=46&t=84964
Compiling C++ in Vim
:map <Leader>` :!mpic++ % -o test.o<cr> :!mpirun -np 1 test.o<cr>
1. Configure Putty
In Settings -> Windows -> Colours there is a check box for "Allow terminal to use xterm 256-colour mode".
2. Let the app know
You'll probably have to change Settings -> Connection > Data > Terminal-type string to "xterm-256color".
Specify which repo to use in YUM
"--disablerepo=\* --enablerepo=repo1"
$ cd ~
$ mkdir .fonts
$ cd .fonts
$ wget -q http://www.gringod.com/wp-upload/software/Fonts/Monaco_Linux.ttf
$ mkfontscale
$ mkfontdir
$ fc-cache -fv ~/.fonts
/home/foobar/.fonts: skipping, existing cache is valid: 1 fonts, 0 dirs
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/foobar/.fontconfig: cleaning cache directory
For CentOS-6 the EPEL repository is carrying later NTFS packages. EPEL is also usable for CentOS-5. To install, after enabling the repo per the Repositories page:
yum install ntfs-3g
or if you prefer to leave EPEL disabled by default
yum --enablerepo epel install ntfs-3g
You may also want to
How To Install And Run A Node.js App On Centos 6.4 64bit
inShare
1 Write an Article
Introduction
This article outlines the steps necessary to run a "Hello world" in node.js + express, running on a 64bit Centos 6.4 installation. We will be building the latest version of source (at this moment, v0.10.4) from the upstream provider.
As is written on their homepage, Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. This is a fast, event driven platform and server-side Javascript engine used for building web applications. DigitalOceans' droplets are a cost-effective way to install and start studying server-side Javascript and bulding or deploying web applications with Node.js.
Setup a VPS
Yum Tricks and Tips
Note: These tricks are only available on SLF5 and newer releases. They require yum 3.2.22 or newer.
yum provides (feature)
Is used to find out what package provides some feature.
Example: yum provides zip
yum provides "*/(file)"
Is used to find out what package provides a certain file. This is especially useful when you are compiling some code and get an error like "error: libbluetooth.so.2 not found, exiting."
Example: yum provides "*/libbluetooth.so.2"
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum provides Adobe*
Howto Setup yum repositories to update or install package from ISO CDROM Image
by nixCraft on April 30, 2007 · 48 comments· LAST UPDATED December 18, 2007
in Howto, Linux, Linux distribution
yum (Yellow dog Updater Modified) is a package manager for RPM compatible Linux systems such as CentOS, Fedora core and latest Redhat Enterprise Linux.
So how do you use yum to update / install packages from an ISO of CentOS / FC / RHEL CD?