unable to run package setup for sublime text
I've encountered the following error after installing Sublimetext2 from source on my ubuntu machine. The error says
unable to run package setup with list of packages
in a dialog box when sublime text is opened.
The issue is because of missing permissions and to resolve the issue, run the below command.
sudo chown -R user-name /home/user-name/.config/sublime-text-2/
Related cards:
add sublime text option to the contextual menu
After installing sublime text, we must be able to open text files with it. Right click on a text file and you must see the option "open with sublime text". In case you don't , click Open with other applications and you should see Sublime text opti...
Check if package is installed in linux
To check if a given package is installed in Debian / Ubuntu, type
dpkg -s <package-name>
To get a neater output use dpkg-query which accepts wildcards as well.
dpkg-query -l <package-name>
In Redhat / Fedora / CentOS use the foll...
escape japaneese text in url
when the file names were actually in japaneese, IE by default will not converting the links from Japanese text to unicode URL format i.e %20. Here is the fix that required
<a href="<%= product.product_image.url) %> ">SOME FILE NAME</a>
CHANGE...
Find text in linux files
grep -rnw 'directory' -e "text-to-search"
-r is recursive, -n is line number and -w stands match the whole word.
grep --include={*.c,*.h} -rnw 'directory' -e "pattern"
This will only search through the files which have .c or .h...
Copy remote folder to local
To copy a folder in the remote server to your local machine,
scp -r username@IPaddres:/remote/directory/path /local/folder/
In case you wish to copy in your current local directory
scp -r username@IPaddres:/remote/directory/path/ .
/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf
Use following command and answer YES to enable dynamic updates:
sudo dpkg-reconfigure resolvconf
Do a system restart after that.
using ack in place of grep
To use Ack, make sure you have Perl installed and run the following commands in Ubuntu
sudo apt-get install ack
sudo apt-get install ack-grep
Now you can use ack-grep command to search for matches in the files
ack-grep -i some-text
#...
Adobe flash player installation in ubuntu chromium browser
For Chromium browser versions greater than 34, to use flash one must install Pepper flash.
For Ubuntu 14.04 or newer, run
sudo apt-get install pepperflashplugin-nonfree
sudo update-pepperflashplugin-nonfree --status
# to see what version of...
change string encoding in ruby
# Ruby 1.9
string_in_utf8_encoding = string_in_latin1_encoding.encode('UTF-8')
#Ruby 1.8
gem install iconv
require 'iconv'
string_in_utf8_encoding = Iconv.conv("UTF8", "LATIN1", string_in_latin1_encoding)
However, if you want to let Rub...
install cisco vpn client on ubuntu
Ubuntu ships by default with the plugin for the Point-to-Point Tunneling Protocol (PPTP), but we need the plugin for the Cisco Compatible VPN (vpnc), that provides easy access to Cisco Connector based VPNs. To install the vpnc plugin, open your te...