SmartGit Installation and Usage on Ubuntu

You can add a PPA that provides a relatively current version of SmartGit(as well as SmartGitHg, the predecessor of SmartGit). To add the PPA run: sudo add-apt-repository ppa:eugenesan/ppa sudo apt-get update To install smartgit (after adding the PPA) run: sudo apt-get install smartgit To install smartgithg (after adding the PPA) run: sudo apt-get install smartgithg … Read more

How to install Ruby 2 on Ubuntu without RVM

sudo apt-get -y update sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev cd /tmp wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p451.tar.gz tar -xvzf ruby-2.0.0-p451.tar.gz cd ruby-2.0.0-p451/ ./configure –prefix=/usr/local make sudo make install from here How do I install ruby 2.0.0 correctly on Ubuntu 12.04? UPDATE for ruby 2.1.5 sudo apt-get -y update sudo apt-get -y install build-essential zlib1g-dev libssl-dev … Read more

gcc cannot find bits/predefs.h on i686

Try doing a sudo apt-get install gcc-multilib I don’t think that installing a 32-bit system changes the architecture of your computer, because your computer will always be a 64-bit machine. Installing the 64-bit version of Ubuntu should only give better multi-core performance. Since your computer is still a 64-bit computer, you probably need a C … Read more

Share folders from the host Mac OS to a guest Linux system in VirtualBox [closed]

You’ll need the latest version of VirtualBox (4.3.10) with Guest Additions installed in Ubuntu. With the Virtual Machine powered off and selected in VirtualBox, go to: Machine > Settings … > Shared Folders For “Folder Path”, click the icon to browse for the folder you want to share. For “Folder Name”, enter a name to … Read more

libz.so.1: cannot open shared object file

After checking to which package does the libz.so.1 belongs (http://packages.ubuntu.com/lucid/i386/zlib1g/filelist) you should try to install zlib1g: sudo apt-get install zlib1g As pointed by @E-rich, it may be required to add a :i386 suffix to the package name for the package manager correctly identify it: sudo apt-get install zlib1g:i386 EDIT (for CentOS or other distro that … Read more

nginx not listening to port 80

I had this same problem, the solution was that I had not symlinked my siteconf file correctly. Try running vim /etc/nginx/sites-enabled/mysite.com—can you get to it? I was getting “Permission Denied.” If not run: rm /etc/nginx/sites-enabled/mysite.com ln -s /etc/nginx/sites-available/mysite.com /etc/nginx/sites-enabled/mysite.com

How to check which PHP extensions have been enabled/disabled in Ubuntu Linux 12.04 LTS?

Checking for installed php modules and packages In addition to running php -m to get the list of installed php modules, you will probably find it helpful to get the list of the currently installed php packages in Ubuntu: sudo dpkg –get-selections | grep -v deinstall | grep php This is helpful since Ubuntu makes … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)