Archive for the ‘linux’ Category

August 3, 2014 0

setting up wifi on raspberry pi

By in linux, raspberry pi

it seems that the /etc/network/interfaces file needs to contain: wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf and when this is the case you can specify wifi settings in the file /etc/wpa_supplicant/wpa_supplicant.conf using this example: network={        ssid=”TNETRezound”        psk=”PASSWORD”        proto=RSN        key_mgmt=WPA-PSK        pairwise=CCMP        auth_alg=OPEN    […]

Tags: , ,

August 2, 2014 0

install brother DCP-J725DW network scanner

By in linux

After downloading and installing the deb file from this link: http://support.brother.com/g/b/downloadlist.aspx?c=dk&lang=da&prod=dcpj725dw_eu_as&os=128&flang=English the scanner can be installed either using its ip address or its hostname using the program brsaneconfig4 (The program also have possibilities of listing currently installed devices and test their connectivity using the -q and -p option respectively) Using hostname: brsaneconfig4 -a name=BrotherScanner model=DCP-J725DW […]

Tags: , , , ,

May 12, 2014 0

using sed to process file and delete lines matching a pattern

By in linux

sed ‘/pattern to match/d’ ./infile >> outfile or cat file | sed ‘/pattern to match/d’ >> ourfile

Tags: , ,

May 11, 2014 0

using find and grep to locate search strings

By in linux

clear && find . -name “*.tex” -exec grep -Hn <search string> {} \;

Tags: , ,

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:

April 11, 2013 0

check if library is on ld search path

By in C++, gcc, linux

If you have linker problems you might want to ensure that you actually have the librariess that you are linking into your program on your ld search path. This can be investigated using ldconfig and grep ldconfig -v prints out the paths on the ld search path and what libraries is on the path. It […]

Tags: , , ,

April 10, 2013 0

Installing openCL on ubuntu 12.04

By in linux, Ubuntu 12.04

Following link seems to explain the process: http://develnoter.blogspot.dk/2012/05/installing-opencl-in-ubuntu-1204.html  

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

December 7, 2012 0

using screen to detach console

By in linux

to create a new terminal just type screen to go back to the original terminal type to start command input type: ctrl – a to detach: d to list active sessions from original terminal: screen -ls to retach session: screen -r [process number] to stop a session from the session type: ctrl-a and then altGr […]

Tags: ,