Atom editor on Ubuntu

To Install the atom editor for Linux (taken from here): $ sudo add-apt-repository ppa:webupd8team/atom $ sudo apt-get update $ sudo apt-get install atom I needed syntax highlighting for Lua. My suggestion is: Start atom, press <Ctrl><Shift>P Type: install packages Select ‘Settings View: Install Packages’ Search for language-lua package install the language-lua package You should get …

Continue reading ‘Atom editor on Ubuntu’ »

Ubuntu 14.04 LTS very slow on VirtualBox

Got the solution from here: Shut down the guest machine Select the Ubuntu 14.04 virtual machine and click the Settings button Select the ‘Display’ item from the list on the left In the Video tab on the right, check the ‘Enable 3D Video Acceleration’ option Select the ‘Storage’ item from the list on the left …

Continue reading ‘Ubuntu 14.04 LTS very slow on VirtualBox’ »

VirtualBox, Ubuntu Guest, Shared folders

Assuming your Ubuntu guest username is USERNAME: Make sure you have already installed the VirtualBox Guest Additions in the Ubuntu guest machine From the Ubuntu guest: sudo adduser USERNAME vboxsf Using the VirtualBox UI (Devices->Shared Folder Settings…) add the folder in the hosting machine that you wish to share. Restart the Ubuntu guest! (wasted too …

Continue reading ‘VirtualBox, Ubuntu Guest, Shared folders’ »

Various Linux tips

Just some notes that have accumulated: when trying to mount a remote windows NTFS system via: sudo mount -t cifs //192.168.0.112/E -o username=Administrator,password=mypass /home/me/mybackup/ and receiving: wrong fs type bad option bad superblock on … this is because the cifs flag requires: $ sudo apt-get install smbfs more info here Adding a program to unity …

Continue reading ‘Various Linux tips’ »

Linux and HP printers/scanners

While attempting to scan a document with my newly purchased HP Deskjet 3070 All-in-One Printer B611b from my Ubuntu 12.04 desktop I learned three things: There’s an excellent scanning software for Linux called XSane Ubuntu 12.04 comes with the drivers for most HP printers already built in, so there was nothing else needed other then …

Continue reading ‘Linux and HP printers/scanners’ »

Recursively remove specific filename in Linux

The trick is to use the find command with the -exec or -execdir parameter. I needed to remove all the files named serials_dev.db3 from multiple backup directories. The following did the job: find . -type f -name "serials_dev.db3" -exec rm -f {} ; Here are the relevant parts from the find man page: -exec command …

Continue reading ‘Recursively remove specific filename in Linux’ »

ssh – automatic remote login

Since I don’t do this often enough to remember – here’s the procedure summarized (for Linux and OS/X, on Windows use putty): me@here is username me at ip/hostname here user@there is username user at ip/hostname there me@here$ cd me@here$ ssh-keygen -t rsa press return a few times, don’t enter passphrase. This will create a public/private …

Continue reading ‘ssh – automatic remote login’ »

Ubuntu – Accessing sqlite3 from Lua

I thought this would be trivial but ended up fighting with various solutions until I found one that worked without requiring additional configurations. So first you might need to install the sqlite3 development libraries (which are needed to compile the Lua sqlite3 connector): sudo apt-get install libsqlite3-dev install luarocks if you don’t have it sudo …

Continue reading ‘Ubuntu – Accessing sqlite3 from Lua’ »