Archive for the ‘ubuntu’ Category

March 26, 2014 0

finding text in files using find in linux

By in linux, ubuntu

Based on this stack-overflow response: http://stackoverflow.com/questions/16956810/finding-all-files-containing-a-text-string-in-linux one way of searching for files containing a certain text patterns is: grep -rnw ‘directory’ -e “pattern” if you want to search relative to your current position replace “directory” with a . so: grep -rnw . -e “pattern”

Tags:

March 20, 2013 0

changing dim timeout using gsettings

By in ubuntu, Ubuntu 12.04

Changing the dim timeout and other power options can be done through gsettings to change dim timeout do: gsettings set org.gnome.settings-daemon.plugins.power idle-dim-time 600 see also this link  

Tags: , ,

February 11, 2013 0

access system clipboard from command line

By in linux, ubuntu, Ubuntu 12.04

wanting to copy something from command line or maybe a file you can use xclip eg. copy your public ssh key from id_rsa.pub to clipboard directly from command line: cat .ssh/id_rsa.pub | xclip -selection clipboard or cat .ssh/id_rsa.pub | xclip -selection c source: http://askubuntu.com/questions/110347/command-line-clipboard-access

Tags: ,

January 20, 2013 0

monitor key presses

By in linux, ubuntu

the program xev seems to enable one to monitor if key presses are captured and how they are translated

June 8, 2012 0

Getting pgfplots from ppa on ubuntu newer than lucid

By in latex, ubuntu, Ubuntu 12.04

To get pgfplots you can use the ppa by johannes Reinhardt ppa:johannes-reinhardt/ppa but the newers build of pgfplots is for lucid so if you are on a newer ubuntu you need to change the release name from e.g. precise to lucid in the software manager. Another way is to manually add deb http://ppa.launchpad.net/johannes-reinhardt/ppa/ubuntu lucid main […]

Tags:

June 7, 2012 0

ubuntu 12.04 64 bit install java

By in java, ubuntu, Ubuntu 12.04

To install java requires 5 steps Download java http://java.com/en/download/index.jsp choose the linux x64 unpack tar -xvf <downloaded file> move to desired directory(assume /usr/local/java) maybe chown -R root:root /usr/local/java add /usr/local/java/bin to path and set environment variable CLASSPATH to /usr/local/java/lib by adding to .profile: # add java bin to path PATH=”/usr/local/java/bin:$PATH” # set java classpath CLASSPATH=”/usr/local/java/lib” […]

June 7, 2012 0

ubuntu 12.04 enable hibernation

By in linux, ubuntu, Ubuntu 12.04

Following this worked: http://askubuntu.com/questions/94754/how-to-enable-hibernation-in-12-04 create/edit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla with: sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla and insert [Re-enable hibernate by default] Identity=unix-user:* Action=org.freedesktop.upower.hibernate ResultActive=yes  

June 6, 2012 0

Ubunt 12.04 login screen reappears after messing with xorg.conf

By in linux, ubuntu, Ubuntu 12.04, Xserver

After messing with Xorg.conf I could no longer login on my usual account. The guest account however still was able to login and I could login through terminals (Alt – Ctrl – F1). The problem got fixed when I deleted: ~/.Xauthority and rebooted

April 26, 2012 0

monitor system events on ubuntu

By in linux, ubuntu

to monitor system events such as connecting/disconnecting usb devices do tail -f /var/log/syslog