cd -
So useful I had to share!
Assorted notes on my development experiences, and other useful workflow and environment tips, for Windows and Linux.
cd -
sudo apt-get install source-highlight
export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
export LESS=' -R '
source-highlight --lang-list
for a full listing.
sudo aptitude install gstreamer0.10-plugins-bad gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly
After the popularity of my earlier post reviewing FreeNx, Pierre Ossman, a developer at Cendio, informed me of their product, which provides an alternative remote desktop/thin client option for Linux. This post details my comparison of FreeNx and Cendio ThinLinc, as options for remote desktop solutions that rival Windows remote desktop.![]() |
| ThinLinc administration page |

sudo apt-get install gnome-session-fallback
sudo dpkg-reconfigure resolvconf
Answer Yes to all the prompts and restart your machine once the tool finishes. lpr FILENAME
It's that easy! #!/bin/bash
for file in *.pdf; do
/usr/bin/lpr "$file"
done
chmod +x print-all-pdfs.sh
./print-all-pdfs.sh
sudo leafpad /usr/share/applications/spss.desktop
[Desktop Entry]
Name=SPSS
GenericName=SPSS
Comment=Statistics program
Exec=/opt/IBM/SPSS/Statistics/19/bin/stats
Icon=gnome-monitor
Terminal=false
Type=Application
Categories=Application;Education;
xfdesktop --reload
if using an XFCE desktop. gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -
sudo nano /etc/apt/sources.list
deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu precise/
sudo apt-get update
sudo apt-get install r-base
git clone https://github.com/kalmi/gedit-themes.git
cd gedit-themes
./install.sh
mount
mount -o remount,exec $DEVICE
$ su
$ /path/to/mounted/cdrom/./install
logout
wc -l <file>
will print out the number of lines in <file>. for f in *.csv; do wc -l $f; done
will print out a list of all the files ending in .csv, along with the number of lines in them.cut -d' ' -f1
for f in *.csv; do wc -l $f |cut -d' ' -f1; done
to print out just the number of lines in each file ending in .csv in the directory.
sudo apt-get install glade-gtk2=3.8.0-0ubuntu3
apt-cache showpkg glade-gtk2
glade-gtk2
nmcli con up uuid <your-uuid-here>
nmcli -p con list
nmcli con down uuid <your-uuid-here>
sudo echo disk > /sys/power/state
sudo visudo
<user> ALL=NOPASSWD: <absolute_path_to_script_file>
aspell --mode=tex check <filename>
or aspell --mode=tex -c <filename>
swapon -s
sudo apt-get install powermanagement-interface
ps ux | grep <process_name>
kill -9 <process_number>