Linux, Open Source, Web, Engineering, Technology
Archive for the ‘Ubuntu’ Category
March 26, 2011
Zero out a drive in Linux
To zero out a drive:
dd if=/dev/zero of=/dev/sda
To make sure that the drive is really zeroed out:
dd if=/dev/sda | hexdump -C | head
January 13, 2011
Install GnuCash 2.4.0 with database support in Ubuntu 10.10
Be sure to enable the “Source Code” repositories first.
wget http://downloads.sourceforge.net/sourceforge/gnucash/gnucash-2.4.0.tar.gz
tar xvfz gnucash-2.4.0.tar.gz
sudo aptitude build-dep gnucash
sudo aptitude install texinfo subversion intltool libdbi0-dev libdbd-{sqlite3,pgsql,mysql} guile-1.8 guile-1.8-dev doxygen libdbi0-dev libdbd-{sqlite3,pgsql,mysql}
cd /usr/share/guile/1.8
sudo ln -s ../../slib slib
sudo guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)"
cd ~/gnucash-2.4.0/
./configure --prefix=$HOME/stable/gnucash --enable-debug --enable-doxygen --enable-error-on-warning --enable-compile-warnings --enable-dbi
make all install
and finally, run it
~/stable/gnucash/bin/gnucash
Done!
Posted by Alejandro. Filed under Business, Linux, terminal, Ubuntu.
November 16, 2009
Restoring Nautilus as the default “Open Containing Folder” in Firefox
Using the terminal:
gksudo gedit /usr/share/applications/mimeinfo.cache
Search for: x-directory/gnome-default-handler=
and make sure the whole line reads
x-directory/gnome-default-handler=nautilus-folder-handler.desktop
instead of:
x-directory/gnome-default-handler=Thunar-folder-handler.desktop x-directory/gnome-default-handler=pcmanfm-folder-handler.desktop; x-directory/gnome-default-handler=kde4-dolphin.desktop
Posted via email
Posted by acuervo. Filed under Firefox, Linux, terminal, Ubuntu.
November 4, 2009
Terminal commands to keep handy on an unresponsive Ubuntu.
This is an ever growing list of terminal commands to keep handy
sudo apt-get install --fix-brokensudo dpkg --configure -ahtopdpkg --get-selections > installed-software (Back up list of installed Software)dpkg --set-selections < installed-software (Restore previously installed software)apt-get -u dselect-upgrade (Execute #5)lshw > lshw.txt (See your system's hardware info)
October 30, 2009
Ubuntu 9.10 brings web sync, faster bootup, GNOME 2.28
The Ubuntu Linux distribution has received a major update today. The new version, Ubuntu 9.10, will introduce several significant new features and will deliver the latest version of the GNOME desktop environment and other applications.
This is the eleventh release of Ubuntu since the project’s inception five years ago. The distribution has achieved an unprecedented level of popularity in the Linux desktop ecosystem and has attracted a considerable audience. Canonical, the company behind Ubuntu, touts the new release as its best yet and says that the latest improvements will take the Ubuntu user experience to the next level.
July 31, 2009
Setting Firefox 3.5 as default browser system wide in ubuntu
Some applications like TweetDeck don’t respect gnome preferred applications settings and continue to use the older Firefox 3.1 instead of the new one 3.5 when opening links.
This is because
/usr/bin/firefox is currently pointing (like a shortcut) to
/usr/bin/firefox-3.0
To change this to 3.5 enter the following on the command line
sudo ln -sf /usr/bin/firefox-3.5 /usr/bin/firefox
If you want to change it back:
sudo ln -sf /usr/bin/firefox-3.0 /usr/bin/firefox
This will work for Firefox 3.5 as well as Shiretoko 3.5
This will also fix same issues with other Adobe Air applications
Posted via email from queleimporta
Posted by acuervo. Filed under Firefox, Linux, terminal, Ubuntu.
April 24, 2009
Installing Canon’s ImageCLASS MF4270 SCANNER on Ubuntu 64 bit
To install the scanner of the multifunctional printer MF4270, do the following.
cvs -d :pserver:anonymous@cvs.alioth.debian.org:/cvsroot/sane login
cvs -d :pserver:anonymous@cvs.alioth.debian.org:/cvsroot/sane checkout sane-backends
sudo apt-get install libusb-dev
cd sane-backends/
./configure –prefix=/usr –sysconfdir=/etc –localstatedir=/var
make
sudo make install
cp /etc/udev/rules.d/70-libsane.rules ~/
sudo cp tools/udev/libsane.rules /etc/udev/rules.d/70-libsane.rules
sudo /etc/init.d/udev restart
Test sane version, should be 1.x.xcvs
scanimage -V
add your self to the scanner group
logout and then login.
Done!
For the Printer part follow this guide:
http://queleimporta.com/installing-canon-imageclass-mf4270-on-ubuntu-64-bit/
April 24, 2009
REISUB
To recover from a frozen linux system
Press and hold down ALT + SysRq (PrintScn) button and type phrase R E I S U B with 1 second interval between each letter.
Your system will magically recover from the crash and reboot itself.
