Tuesday, June 21, 2011

Hide Vertical Scrollbar In Iceweasel

First find userChrome.css : Open Troubleshooting Information page :Menu > Help > Troubleshooting Information. At Profile Directory : Open Containing Folder.
In the folder named chrome add the following to the file userChrome.css ( or create it, if it's not there ) :

notificationbox {
overflow-x: hidden;
}
browser[type="content-primary"], browser[type="content-targetable"] {
overflow-y: scroll;
margin-right: -15px; /* 12px == width of my scrollbar */
}


The negative margin-right will shift the page 15 pixels to the right, thereby hiding the scrollbar. It is still there, you can change it from 15 to 12 and see that some of it will show.

Restart iceweasel to see the result....

Monday, June 13, 2011

A Minimal Gnome Installation

To achieve this I opted for a network install from a minimal CD : http://www.debian.org/CD/netinst/. The network install assumes that you have a connection to the Internet. You can choose between a netinst CD image or a smaller businesscard CD image. The netinst image contains the installer and the base system. The smaller business card image does not contain the base system, but only the installer: even the base packages need to be downloaded from the net.
I grabbed the debian-6.0.1a-amd64-businesscard.iso which is only 49.0MB in size. Just to mention here one of the cool features of the businesscard installer - not found on the netinst.iso and other media - is the option to select for installation any one of Debian's 3 different release versions. See picture below....( Advanced options > Expert install )


Debian CD and DVD images can now be written directly to a USB stick, which is a very easy way to make a bootable USB stick. ( see : http://blog.einval.com/2011/01/07#isohybrid_CDs ).
Plug the USB stick into your host machine and leave the stick unmounted. Run the dmesg command and note the USB device ID (In my case the last line was : [ 6101.712220] sd 8:0:0:0: [sde] Attached SCSI removable disk )
Make sure to record the correct USB device ID. The following procedure wipes out all data on the USB stick :
# cat debian-6.0.1a-amd64-businesscard.iso > /dev/sdX
# sync

( in my case X = e ).
Make sure your computer starts from usb ( check BIOS ).
First screen will be :
Just press Enter....

A number of screens later you'll reach the next one :

Only install Standard System Utilities.

When it's all done, reboot and you'll be greeted by the next screen :
After boot process login as user and enter your user's password....

Become root with the command su and enter root's password....

To prevent apt from suggesting/installing recommended packages we'll add two lines to /etc/apt/apt.conf :
nano /etc/apt/apt.conf
Add these lines :
APT::Install-Recommends "false";
APT::Install-Suggests "false";


To install a minimal Gnome :
apt-get install gnome-session gnome-themes gnome-terminal xserver-xorg-core gdm3 gnome-control-center alsa-utils

Start your first session :
/etc/init.d/gdm3 start


After your login start a terminal and run alsamixer :
The current version of alsa installs with all channels muted by default. You will need to unmute the channels manually. The label MM below a channel indicates that the channel is muted, and 00 indicates that it is open.
Unmute the Master and PCM channels by scrolling to them with cursor left/right and pressing M . Use the ↑ key to increase the volume and obtain a value of zero dB gain. The gain may be found in the upper left next to the Item: field.
Test sound with the next command :
aplay /usr/share/sounds/alsa/Front_Center.wav

You're done so far....time to add packages you want and need....

Monday, June 6, 2011

Nautilus-dropbox Dropbox Integration For Nautilus

Package was removed from Debian, because of multiple license violations .
A proper package has been built this weekend by Raphaƫl Hertzog, see : http://raphaelhertzog.com/2011/06/06/official-debian-ubuntu-packages-for-nautilus-dropbox/.
The package nautilus-dropbox has been uploaded to Debian unstable ( http://ftp-master.debian.org/new/nautilus-dropbox_0.6.7-1.html ) and will shortly reach the mirrors.

As an alternative you can download the package from Linux Mint ( the version that has lmde as part of the name ).

More ways to go :
http://www.khattam.info/solved-error-dependency-is-not-satisfiable-libnautilus-extension1-12-22-2-while-installing-dropbox-2010-11-27.html.

Thursday, June 2, 2011

Add Email Button In Chrome To Send Link Using Gmail

Rightclick the Bookmarks Bar and Add page... If the Bookmarks Bar is not visible press Ctrl + Shift + B
For Name choose e.g. Send Link.
For URL fill in the following :
javascript:window.open('http://mail.google.com/mail/?ui=1&view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(document.location),'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes')

This will open a Compose window in Gmail using the page title as the subject and link address as the message.