Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Wednesday, June 25, 2014

How to fix the /dev/fd/63: No such file or directory?

How to fix "diff: can't stat '/dev/fd/63': No such file or directory" error:

As root, simply run this command in your Terminal:

ln -s /proc/self/fd /dev/fd

Saturday, November 9, 2013

Friday, August 2, 2013

How to setup Raspberry PI

How to setup Raspberry PI
First, order your Raspberry PI here:
http://www.newark.com/raspberry-pi

Read the quick start guide:
http://www.raspberrypi.org/wp-content/uploads/2012/04/quick-start-guide-v2_1.pdf https://github.com/raspberrypi/noobs

Download your Linux image and unzip it:
http://www.raspberrypi.org/downloads

Install Linux:
http://elinux.org/RPi_Easy_SD_Card_Setup

Run this command in terminal(make sure you have the correct /dev/disk number /dev/disk[n]):
sudo dd bs=1m if=2013-07-26-wheezy-raspbian.img of=/dev/disk2

Saturday, May 11, 2013

How to install httrack to download websites

How to install httrack to download websites

To install:

sudo apt-get install httrack

Saturday, March 16, 2013

How to install system monitoring tools

How to install system monitoring tools

To install them:
sudo apt-get install sysstat

Only some of the helpful tools that come with 'sysstat' package:
iostat
mpstat

How to run ADB on 64 bit systems

How to run 32-bit binaries on a 64-bit architecture

Most of the times on a fresh install of Ubuntu, it will be missing packages to be able to run 32-bit binaries.

To install them:

sudo apt-get install ia32-libs

Saturday, December 15, 2012

How to install GNUTLS on Ubuntu

How to install GNUTLS

I an ran into this problem the other day while compiling GNU tools. Some require GNU TLS.

To install them:

sudo apt-get install gnutls-bin

How to install the D compiler on Ubuntu

How to install the D compiler

Install command:

sudo apt-get install gdc

Sunday, October 21, 2012

How to compile inline Assembly in C

How to compile Assembly inline with C

Make sure you have 32-bit libraries, install them:
apt-get install gcc-multilib

#include <stdio.h>

char Format[] = "Hello world, %d\n"; 

int main (void) { 
 asm ( "subl $8, %esp\n" 
 "movl $3, 4(%esp)\n" 
 "movl $Format, (%esp)\n" 
 "call printf\n" "addl $8, %esp\n" ); 
 return 0; 
}

gcc -m32 test.c -o test.o; ./test.o

http://stackoverflow.com/questions/11378181/use-printf-function-in-inline-asm-on-gcc

Friday, October 5, 2012

How to install Sublime Text 2 on Ubuntu

How to install Sublime Text 2 for Ubuntu

To install them:

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

Note: "sublime-text" is the latest Sublime Text 2


Saturday, September 22, 2012

How to install Gnome 3 on Ubuntu

How to install Gnome 3 on Ubuntu:

To install them:

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell
sudo apt-get install gnome-tweak-tool *optional*

This is less glitchy and much smoother than Unity!

How to completely remove Unity from Ubuntu

How to completely remove Unity from Ubuntu:

Make sure to have another Desktop installed!

Remove the packages for Unity:

sudo apt-get remove unity unity-2d-places unity-2d unity-2d-panel unity-2d-spread unity-asset-pool unity-services unity-lens-files unity-lens-music unity-lens-applications gir1.2-unity-4.0 unity-common indicator-sound indicator-power indicator-appmenu libindicator6 indicator-application evolution-indicator indicator-datetime indicator-messages libnux-1.0-0 nuxtools

Monday, September 17, 2012

How to install Subversion in Ubuntu

How to install subversion

To install the packages:

sudo apt-get install subversion

Then you can download copies of svns:

svn checkout SVN_LINK

Monday, September 10, 2012

How to install the WX Python package in Ubuntu

How to install Python WX for creating Python GUIs

WX is a cross-platform GUI kit for Python.

To install the packages:

sudo apt-get install python-wxgtk2.8

Thursday, August 30, 2012

How to install Objective C on Ubuntu

How to install Objective C packages:

To install them:
sudo apt-get install gobjc gnustep gnustep-make gnustep-common

To compile files:
gcc -o hello hello.m -Wall -lobjc

Saturday, August 25, 2012

How to play .mp4 files on Ubuntu

How to play .mp4 files

Simply install these packages:

sudo apt-get install gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly

Friday, August 3, 2012

How to disable IPV6 in Ubuntu

How to disabled IPV6

First, check to see if you are running IPV6(there is more than just one way to check):
ip a | grep inet
netstat -tupln

Try blacklisting: /etc/modprobe.d/blacklist.conf add this to the file(have to restart):
blacklist ipv6

/etc/sysctl.conf add this to the file and then run "sudo sysctl -p":
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

/etc/default/grub and then run "sudo update-grub2":
GRUB_CMDLINE_LINUX="ipv6.disable=1"

Always check your work:


Monday, July 23, 2012

How to burn ISOs to CD-RW/DVD-RW in Linux

How to burn ISO files to CD-RW/DVD-RW in Linux

List the devices to write with:
cdrecord -scanbus

After running this command, match the "dev=NUM,NUM,NUM" with the next command to make sure your are writing the ISO with the correct device.
cdrecord -v -pad speed=1 dev=0,0,0 FILE.iso

-v - verbose(shows my information)
-pad speed=1 - change the write speed
dev=0,0,0 - this is your device

How to erase CD-RW/DVD-RW in Linux

How to wipe a CD-RW/DVD-RW on linux

Run this command to make sure that the cd is unmounted:
umount /dev/cdrom

Use the "cdrecord" command to quickly erase the CD-RW/DVD-RW
cdrecord dev=/dev/cdrom blank=fast