Category Archives: Linux

Set static IP address in Ubuntu

You will need to edit your /etc/network/interfaces file sudo nano /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.10 netmask 255.255.255.0 gateway 192.168.1.1 network 192.168.1.0 broadcast 192.168.1.255 Restart networking via sudo /etc/init.d/networking restart Bookmark … Continue reading

Posted in Internet, Linux, Operating Systems | Tagged , , | Leave a comment

Installing Node.js and Socket.io on Ubuntu

Issue the following on the command line: cd ~ sudo apt-get install libv8-2.0.3 libv8-dev libv8-dbg libssl-dev curl wget http://nodejs.org/dist/node-v0.4.3.tar.gz tar zxvf node-v0.4.3.tar.gz cd node-v0.4.3 ./configure && make && make install sudo curl http://npmjs.org/install.sh | sudo sh sudo npm install socket.io … Continue reading

Posted in Commands, Google, Internet, JavaScript, Linux, Node.js / Socket.io, Operating Systems | Tagged , , , | 2 Comments

Linux find string in files

find . | xargs grep ‘string_to_find’ -l Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet about it Subscribe to the comments on this post

Posted in Linux | Leave a comment

Linux : display file name for found string in files

grep ‘something to find’ -srl /path/to/files -s : suppress error messages -l : suppress normal output and show the file name -r : search recursively into directories Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share … Continue reading

Posted in Commands, Linux | Leave a comment

phpize not found

This error is typically generated when you don’t have the PHP development libraries installed. Installing the libraries via repository is the easiest and quickest fix. For Fedora/Red Hat: yum install php5-dev For Ubuntu/Debian: apt-get install php5-dev Bookmark on Delicious Digg … Continue reading

Posted in Linux, PHP | Tagged , , , | Leave a comment

Linux: Cleaning up your login tracks

So you’ve logged into a Linux machine but you don’t want anyone to know you were there. Why? Who cares. Here are a couple of things to clean up your tracks. Once you log in, you’ll notice that message that … Continue reading

Posted in Linux, Security | Leave a comment