With grml-rescueboot there is an easy way to boot an ISO image from your harddisk to test other linux distributions.
Out of curiosity I downloaded the iso from elementary OS ( elementaryos-stable-amd64.20130810.iso ).
First install grml-rescueboot as root :
apt-get install grml-rescueboot
Then move the ISO image to /boot/grml/ as root :
mv elementaryos-stable-amd64.20130810.iso /boot/grml
Update Grub 2 with the following command as root :
update-grub
Reboot and you will see a new entry in your booting list.
Links :
http://ubuntuportal.com/2013/08/heres-an-easier-way-to-boot-iso-image-from-your-hard-drive-in-ubuntu-13-04.html
http://michael-prokop.at/blog/2011/01/07/booting-iso-images-from-within-grub2/
Friday, August 30, 2013
Saturday, August 17, 2013
Friday, August 16, 2013
Copy.com : Cloud Storage Service With 20 GB Free Storage
Just recently found out about this cloud service : copy.com .
You can get 15GB free storage by going directly to the website and register or you can get 20GB free storage by using my referral link .
To celebrate Copy's launch, earn 5 GB of extra free storage for yourself and whoever you refer each time you introduce someone new to Copy. This is a limited time opportunity to rack up huge amounts of extra free storage while we build the initial buzz around Copy!
Sunday, August 11, 2013
Error Dependency Is Not Satisfiable : Libc6 Google-Music-Manager
I downloaded Google-music-manager from here : https://play.google.com/music/listen#/manager.
Installing with gdebi showed the following :
Error : Dependency is not satisfiable : libc6 ( >=2.15 ).......
After some Googling I found an older version from this link ( google music )
Installed without trouble...
To have it work properly ( the "Upload" menu item missing and the "Options" item not doing anything ) I had to delete the ~/.config/google-musicmanager directory and start the manager again ( link ).
Additional link for download ( version 1.0.60.7918-r0 ) : here. ( google-musicmanager-beta_current_amd64.deb ).
Installing with gdebi showed the following :
Error : Dependency is not satisfiable : libc6 ( >=2.15 ).......
After some Googling I found an older version from this link ( google music )
Installed without trouble...
To have it work properly ( the "Upload" menu item missing and the "Options" item not doing anything ) I had to delete the ~/.config/google-musicmanager directory and start the manager again ( link ).
Additional link for download ( version 1.0.60.7918-r0 ) : here. ( google-musicmanager-beta_current_amd64.deb ).
Monday, July 29, 2013
Liberate Your Hardware
LibreStickers
We honor the project trademarks and guidelines to the letter. We only manufacture and sell stickers if we have received an approval from the project / trademark owner.
Sunday, July 28, 2013
Disable The Universal Access Accessibility Menu In Gnome 3
Edit as root the file /usr/share/gnome-shell/js/ui/panel.js
Look for the following line, (line 37 in my case):
'a11y': imports.ui.status.accessibility.ATIndicator,
Comment it out, so it will look like this :
// 'a11y': imports.ui.status.accessibility.ATIndicator,
Restart gnome-shell :
Press ALT + F2 and type in r and hit Enter to restart the gnome-shell.
Done....
Enable Autologin Gdm3
As root edit the file /etc/gdm3/daemon.conf :
nano /etc/gdm3/daemon.conf
nano /etc/gdm3/daemon.conf
Look for the lines :
# AutomaticLoginEnable = true
# AutomaticLogin = user1
Remove the # signs before each line and replace user1 with your own username.
So in my case ( username = eric ) these lines will look like :
So in my case ( username = eric ) these lines will look like :
AutomaticLoginEnable = true
AutomaticLogin = eric
To see it working switch to tty1 :
CTRL + ALT + F1
Login as root and then :
/etc/init.d/gdm3 restart
To see it working switch to tty1 :
CTRL + ALT + F1
Login as root and then :
/etc/init.d/gdm3 restart
Saturday, July 27, 2013
Install Pepperflash In Chromium
Go to the Google Chrome Webpage and download the web browser for your processor architecture.
Unpack the deb package ( I used file-roller ) and go to the directory /opt/google/chrome/ .
Select Pepperflash and Extract.
Inside the directory Pepperflash there is a file libpepflashplayer.so .
As root :
mv libpepflashplayer.so /usr/lib/chromium/plugins
As root edit the file default in /etc/chromium and add this line :
CHROMIUM_FLAGS=" --ppapi-flash-path=/usr/lib/chromium/plugins/libpepflashplayer.so"
The whole file will look like this :
# Default settings for chromium. This file is sourced by /bin/sh from
# /usr/bin/chromium
# Options to pass to chromium
CHROMIUM_FLAGS="--password-store=detect"
CHROMIUM_FLAGS=" --ppapi-flash-path=/usr/lib/chromium/plugins/libpepflashplayer.so"
Unpack the deb package ( I used file-roller ) and go to the directory /opt/google/chrome/ .
Select Pepperflash and Extract.
Inside the directory Pepperflash there is a file libpepflashplayer.so .
As root :
mv libpepflashplayer.so /usr/lib/chromium/plugins
As root edit the file default in /etc/chromium and add this line :
CHROMIUM_FLAGS=" --ppapi-flash-path=/usr/lib/chromium/plugins/libpepflashplayer.so"
The whole file will look like this :
# Default settings for chromium. This file is sourced by /bin/sh from
# /usr/bin/chromium
# Options to pass to chromium
CHROMIUM_FLAGS="--password-store=detect"
CHROMIUM_FLAGS=" --ppapi-flash-path=/usr/lib/chromium/plugins/libpepflashplayer.so"
Restart chromium.
Check the setting at chrome:plugins in the address bar ( check +Details ) :
A Minimal Gnome 3 Installation
Download from Debian.org a Small CD ( here ). No businesscard CD image any longer...
I chose to put the image ( debian-7.1.0-amd64-netinst.iso ) on an USB stick ( see a former post and here ).
This time I decided to go the Graphical install way....
Just follow the instructions....it's easy enough.
In the next screen I deselected everything....
Install the Grub boot loader to the master boot record.....
After finishing the installation reboot and....just press Enter....
Next screen login as root....
A few adjustments to the sources.list....
nano /etc/apt/sources.list
Add contrib and non-free at the end of all lines....Ctrl+o ( WriteOut ), File Name to Write : sources.list, hit Enter, Ctrl+x ( Exit ).
Then :
nano /etc/apt/apt.conf
Write this line :
APT::Install-Recommends "false";
Save and exit. First update....
apt-get update
Install a minimal xserver. My videocard is a Nvidia GeForce GT 330
apt-get install xserver-xorg-input-evdev xserver-xorg-video-nvidia
I kept an eye on the recommended packages.....
apt-get install nvidia-glx linux-headers-$(uname -r)
Package nvidia-glx will pull in package nvidia-kernel-dkms. Next :
apt-get install gdm3 gnome-session xorg nautilus gnome-terminal gnome-shell-extensions gnome-control-center gnome-tweak-tool alsa-utils pulseaudio gnome-themes
Next is optional :
apt-get install chromium gthumb gdebi gksu leafpad glipper file-roller nautilus-open-terminal synaptic
Create a configuration file for the Nvidia card :
nano /etc/X11/xorg.conf and add these lines :
Section "Device"
Identifier "My GPU"
Driver "nvidia"
EndSection
Now reboot and login !
Some more tweaks :
Add this .fonts.conf file in your home directory.
Create a directory .icons in your home directory and add these icons.
Find more icons here and here....
Create a directory .fonts in your home directory and add these fonts.
Make adjustments in Advanced Settings.
Just follow the instructions....it's easy enough.
In the next screen I deselected everything....
Install the Grub boot loader to the master boot record.....
After finishing the installation reboot and....just press Enter....
Next screen login as root....
A few adjustments to the sources.list....
nano /etc/apt/sources.list
Add contrib and non-free at the end of all lines....Ctrl+o ( WriteOut ), File Name to Write : sources.list, hit Enter, Ctrl+x ( Exit ).
Then :
nano /etc/apt/apt.conf
Write this line :
APT::Install-Recommends "false";
Save and exit. First update....
apt-get update
Install a minimal xserver. My videocard is a Nvidia GeForce GT 330
apt-get install xserver-xorg-input-evdev xserver-xorg-video-nvidia
I kept an eye on the recommended packages.....
apt-get install nvidia-glx linux-headers-$(uname -r)
Package nvidia-glx will pull in package nvidia-kernel-dkms. Next :
apt-get install gdm3 gnome-session xorg nautilus gnome-terminal gnome-shell-extensions gnome-control-center gnome-tweak-tool alsa-utils pulseaudio gnome-themes
Next is optional :
apt-get install chromium gthumb gdebi gksu leafpad glipper file-roller nautilus-open-terminal synaptic
Create a configuration file for the Nvidia card :
nano /etc/X11/xorg.conf and add these lines :
Section "Device"
Identifier "My GPU"
Driver "nvidia"
EndSection
Now reboot and login !
Some more tweaks :
Add this .fonts.conf file in your home directory.
Create a directory .icons in your home directory and add these icons.
Find more icons here and here....
Create a directory .fonts in your home directory and add these fonts.
Make adjustments in Advanced Settings.
Chromium Show In Folder Not Working
I ran Chromium in a terminal to find out what was happening.
There was a line saying :
/usr/bin/xdg-open 491 /usr/bin/xdg-open gnome-open not found
The problem was a missing package in my minimal Gnome installation : gvfs-bin ,indeed fixed by installing the package gvfs-bin.
sudo apt-get install gvfs-bin
Thursday, July 25, 2013
Enable Video Thumbnails With Ffmpegthumbnailer
To enable video thumbnails in Nautilus we need package ffmpegthumbnailer.
As root :
apt-get install ffmpegthumbnailer
Create a file ffmpeg.thumbnailer in /usr/share/thumbnailers with the following content :
[Thumbnailer Entry]
TryExec=ffmpegthumbnailer
Exec=ffmpegthumbnailer -s %s -i %i -o %o -c png -f -t 10
MimeType=application/mxf;application/ogg;application/ram;application/sdp;application/vnd.ms-wpl;application/vnd.rn-realmedia;application/x-extension-m4a;application/x-extension-mp4;application/x-flash-video;application/x-matroska;application/x-netshow-channel;application/x-ogg;application/x-quicktimeplayer;application/x-shorten;image/vnd.rn-realpix;image/x-pict;misc/ultravox;text/x-google-video-pointer;video/3gpp;video/dv;video/fli;video/flv;video/mp2t;video/mp4;video/mp4v-es;video/mpeg;video/msvideo;video/ogg;video/quicktime;video/vivo;video/vnd.divx;video/vnd.rn-realvideo;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-flv;video/x-m4v;video/x-matroska;video/x-mpeg;video/x-ms-asf;video/x-ms-asx;video/x-msvideo;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvx;video/x-nsv;video/x-ogm+ogg;video/x-theora+ogg;video/x-totem-stream;audio/x-pn-realaudio;audio/3gpp;audio/ac3;audio/AMR;audio/AMR-WB;audio/basic;audio/midi;audio/mp2;audio/mp4;audio/mpeg;audio/ogg;audio/prs.sid;audio/vnd.rn-realaudio;audio/x-aiff;audio/x-ape;audio/x-flac;audio/x-gsm;audio/x-it;audio/x-m4a;audio/x-matroska;audio/x-mod;audio/x-mp3;audio/x-mpeg;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;audio/x-musepack;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;audio/x-realaudio;audio/x-real-audio;audio/x-sbc;audio/x-speex;audio/x-tta;audio/x-wav;audio/x-wavpack;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-xm;application/x-flac;
After these steps force Nautilus to generate new thumbnails :
rm -rf ~/.thumbnails
And restart Nautilus :
nautilus -q
As root :
apt-get install ffmpegthumbnailer
Create a file ffmpeg.thumbnailer in /usr/share/thumbnailers with the following content :
[Thumbnailer Entry]
TryExec=ffmpegthumbnailer
Exec=ffmpegthumbnailer -s %s -i %i -o %o -c png -f -t 10
MimeType=application/mxf;application/ogg;application/ram;application/sdp;application/vnd.ms-wpl;application/vnd.rn-realmedia;application/x-extension-m4a;application/x-extension-mp4;application/x-flash-video;application/x-matroska;application/x-netshow-channel;application/x-ogg;application/x-quicktimeplayer;application/x-shorten;image/vnd.rn-realpix;image/x-pict;misc/ultravox;text/x-google-video-pointer;video/3gpp;video/dv;video/fli;video/flv;video/mp2t;video/mp4;video/mp4v-es;video/mpeg;video/msvideo;video/ogg;video/quicktime;video/vivo;video/vnd.divx;video/vnd.rn-realvideo;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-flv;video/x-m4v;video/x-matroska;video/x-mpeg;video/x-ms-asf;video/x-ms-asx;video/x-msvideo;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvx;video/x-nsv;video/x-ogm+ogg;video/x-theora+ogg;video/x-totem-stream;audio/x-pn-realaudio;audio/3gpp;audio/ac3;audio/AMR;audio/AMR-WB;audio/basic;audio/midi;audio/mp2;audio/mp4;audio/mpeg;audio/ogg;audio/prs.sid;audio/vnd.rn-realaudio;audio/x-aiff;audio/x-ape;audio/x-flac;audio/x-gsm;audio/x-it;audio/x-m4a;audio/x-matroska;audio/x-mod;audio/x-mp3;audio/x-mpeg;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;audio/x-musepack;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;audio/x-realaudio;audio/x-real-audio;audio/x-sbc;audio/x-speex;audio/x-tta;audio/x-wav;audio/x-wavpack;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-xm;application/x-flac;
After these steps force Nautilus to generate new thumbnails :
rm -rf ~/.thumbnails
And restart Nautilus :
nautilus -q
Saturday, June 22, 2013
VPNBook : No Valid VPN Secrets.....
VPNBook is a 100% Free VPN service without any need for registration or sign-up.
In order to set up a VPN connection with pptp or openvpn using a GUI I did the following ( as root ) :
apt-get install network-manager-gnome network-manager-openvpn-gnome network-manager-pptp-gnome
The nm-applet showed an unmanaged Wired connection. Unmanaged devices means NetworkManager doesn't handle those network devices.
You need to edit as root the following files :
(1) /etc/NetworkManager/NetworkManager.conf
Change line managed=false in managed=true
(2) /etc/network/interfaces
Comment out the last two lines
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
So it will look like this :
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
Restart NetworkManager :
/etc/init.d/network-manager restart
Now nm-applet shows a managed connection :
Choose Network Settings in nm-applet and click on the + sign and create a VPN Interface
Choose PPTP and the following window opens up :
Go to VPNBook and look for the PPTP settings. I choose Server #3 : uk1.vpnbook.com (UK VPN - optimized for fast web surfing; no p2p downloading).
Connection name : uk1.vpnbook.com
Gateway : uk1.vpnbook.com
User name : vpnbook
Password : phefra7U ( password changes every one to two weeks ! )
Check Available for all users
Go to Advanced and check Use Point-to-Point encryption ( MPPE )
Now you can go to the nm-applet and choose the VPN connection......but nothing happened....
tail -f /var/log/syslog ( as root ) showed a message about Failed to request VPN secrets #2: (6) No agents were available for this request.....
After some Googling I found a solution ( link ) :
As root edit /etc/NetworkManager/system-connections/uk1.vpnbook.com and under [vpn], change the password flags line to:
password-flags=0
And add the following:
[vpn-secrets]
password=phefra7U
Then again : /etc/init.d/network-manager restart
Now it works...
In order to get OpenVPN working I found a solution at this post http://howto.praqma.net/ubuntu/vpn/openvpn-access-server-client-on-ubuntu
Go to VPNBook and download one of the OpenVPN Certificate Bundles ( e.g Server #3 ).
Unzip the file and choose one of the ovpn files. Follow the instructions in the above link from the line
Open client.opvn in an editor....till....Remove both < key > tags from client.ovpn.
Insert the following lines in the ovpn file :
ca ca.crt
cert client.crt
key client.key
Activities > Applications >Network Connections > VPN > Import.
Choose your ovpn file and fill in username and password...
As root edit /etc/NetworkManager/system-connections/vpnbook-uk1-tcp80 and under [vpn], change the password flags line to:
password-flags=0
And add the following:
[vpn-secrets]
password=phefra7U
Again : /etc/init.d/network-manager restart
Update : I noticed that these OpenVPN Certificate Bundles may change as well, so you have to repeat the procedure above from time to time....
In order to set up a VPN connection with pptp or openvpn using a GUI I did the following ( as root ) :
apt-get install network-manager-gnome network-manager-openvpn-gnome network-manager-pptp-gnome
The nm-applet showed an unmanaged Wired connection. Unmanaged devices means NetworkManager doesn't handle those network devices.
You need to edit as root the following files :
(1) /etc/NetworkManager/NetworkManager.conf
Change line managed=false in managed=true
(2) /etc/network/interfaces
Comment out the last two lines
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
So it will look like this :
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
Restart NetworkManager :
/etc/init.d/network-manager restart
Now nm-applet shows a managed connection :
Choose Network Settings in nm-applet and click on the + sign and create a VPN Interface
Choose PPTP and the following window opens up :
Go to VPNBook and look for the PPTP settings. I choose Server #3 : uk1.vpnbook.com (UK VPN - optimized for fast web surfing; no p2p downloading).
Connection name : uk1.vpnbook.com
Gateway : uk1.vpnbook.com
User name : vpnbook
Password : phefra7U ( password changes every one to two weeks ! )
Check Available for all users
Go to Advanced and check Use Point-to-Point encryption ( MPPE )
Now you can go to the nm-applet and choose the VPN connection......but nothing happened....
tail -f /var/log/syslog ( as root ) showed a message about Failed to request VPN secrets #2: (6) No agents were available for this request.....
After some Googling I found a solution ( link ) :
As root edit /etc/NetworkManager/system-connections/uk1.vpnbook.com and under [vpn], change the password flags line to:
password-flags=0
And add the following:
[vpn-secrets]
password=phefra7U
Then again : /etc/init.d/network-manager restart
Now it works...
In order to get OpenVPN working I found a solution at this post http://howto.praqma.net/ubuntu/vpn/openvpn-access-server-client-on-ubuntu
Go to VPNBook and download one of the OpenVPN Certificate Bundles ( e.g Server #3 ).
Unzip the file and choose one of the ovpn files. Follow the instructions in the above link from the line
Open client.opvn in an editor....till....Remove both < key >
Insert the following lines in the ovpn file :
ca ca.crt
cert client.crt
key client.key
Activities > Applications >Network Connections > VPN > Import.
Choose your ovpn file and fill in username and password...
As root edit /etc/NetworkManager/system-connections/vpnbook-uk1-tcp80 and under [vpn], change the password flags line to:
password-flags=0
And add the following:
[vpn-secrets]
password=phefra7U
Again : /etc/init.d/network-manager restart
Update : I noticed that these OpenVPN Certificate Bundles may change as well, so you have to repeat the procedure above from time to time....
Friday, June 21, 2013
Unofficial debian-multimedia.org Repository Is No Longer Safe To Use
Debian warns on its blog : The unofficial third party repository Debian
Multimedia stopped using the domain debian-multimedia.org some months
ago. The domain expired and it is now registered again by someone unknown to Debian.....This means that the repository is no longer safe to use, and you should remove the related entries from your sources.list file.
Not sure if you're using the debian-multimedia repository? You can easily check it by running:
grep -i debian-multimedia.org /etc/apt/sources.list /etc/apt/sources.list.d/*
If you can see debian-multimedia.org line in output, you should remove all the lines including it.
The need of an external repository for multimedia related packages has been greatly reduced with the release of Wheezy, which features many new and updated codecs and multimedia players.
If you're wondering where it went, it moved to deb-multimedia.org......
Not sure if you're using the debian-multimedia repository? You can easily check it by running:
grep -i debian-multimedia.org /etc/apt/sources.list /etc/apt/sources.list.d/*
If you can see debian-multimedia.org line in output, you should remove all the lines including it.
The need of an external repository for multimedia related packages has been greatly reduced with the release of Wheezy, which features many new and updated codecs and multimedia players.
If you're wondering where it went, it moved to deb-multimedia.org......
Friday, June 15, 2012
The Debian Administrator’s Handbook
Just in case you have missed the big news : The French reference handbook covering Debian system administration, written by Raphaël Hertzog and Roland Mas, has been translated into English and released as the Debian Administrator’s Handbook.
The book teaches the essentials of Debian system administration while trying to be as accessible as possible.
The translation of the book was accomplished by the authors themselves, with the help of a successful crowdfunding campaign.
Read it online.
Get the book (as paperback or as ebook).
Download the sources and contribute.
Install in Sid ( debian unstable ) :
apt-get install debian-handbook
The book teaches the essentials of Debian system administration while trying to be as accessible as possible.
The translation of the book was accomplished by the authors themselves, with the help of a successful crowdfunding campaign.
Read it online.
Get the book (as paperback or as ebook).
Download the sources and contribute.
Install in Sid ( debian unstable ) :
apt-get install debian-handbook
Friday, December 9, 2011
Openvpn With Hide My Ass
A VPN encrypts your internet traffic and lets you establish a secure connection over the non-secure Internet.
This is especially useful when connected to insecure networks such as public WiFi hotspots.
Once connected to a VPN server your online identity will be masked behind one of the anonymous IP addresses provided by the VPN service provider, which is a handy tool to virtually reside in another country . Also censorship and internet restrictions imposed by your internet service provider or government are bypassed.
After examining some VPN providers, I went with Hide My Ass .
HMA provides multiple protocols to use including OpenVPN ,PPTP and L2TP .
See this list of protocols : http://www.ivpn.net/pptp-vs-l2tp-vs-openvpn.php .
Choose openvpn rather than pptp. Openvpn with TCP connects over port 443 and traffic is indistinguishable from normal HTTPS traffic, making it very difficult to block.
In order to get your connection working do the following : ( as root ) :
apt-get install openvpn curl
After going to http://hidemyass.com/vpn I choose an one month subscription, created an account and paid.
All VPN plans include a 30 day money back guarantee making your purchase risk free.
After login on their website, you can download their software : linux.zip .
Move linux.zip into a folder HMA inside your home directory :
mkdir ~/HMA
mv linux.zip ~/HMA
cd ~/HMA
unzip linux.zip
Archive: linux.zip
inflating: keys/ca.crt
inflating: keys/hmauser.crt
inflating: keys/hmauser.key
inflating: client.cfg
inflating: hma-start
inflating: README.txt
Make hma-start executable :
chmod +x hma-start
If you don't use sudo change line 10 in hma-start which reads sudo openvpn client.cfg into su -c "openvpn client.cfg" .
Inside the folder HMA :
./hma-start -l will give you a list of the available servers.
./hma-start "Country, Name" This command will connect you to the selected server.
e.g. UK, London (LOC1 S1) :
./hma-start "UK, London (LOC1 S1)" :
Password : ( enter root's password. )
Thu Dec 8 22:57:22 2011 OpenVPN 2.1.3 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Oct 22 2010
Enter Auth Username: ( enter HMA username )
Enter Auth Password: ( enter HMA password )
......
.....
.....
Thu Dec 8 23:00:51 2011 Initialization Sequence Completed
Now you're connected ! Check your ip before and after connecting by just entering the searchterm ip in google.com .
Stop the connection not by closing the terminal, but with Ctrl+C.
More options see : http://forum.hidemyass.com/index.php?/topic/2503-yet-another-hma-script/ .
If you like to use a GUI :
apt-get install network-manager-gnome network-manager-openvpn-gnome network-manager-pptp-gnome
.......
.......
.......
Setting up network-manager (0.8.1-6+squeeze1) ...
Reloading system message bus config...done.
Disabling interfaces configured with plain DHCP in /etc/network/interfaces so that NetworkManager can take them over
Auto interfaces found: lo eth0
iface to disable = eth0
Disabling interface: eth0 ... done.
Starting network connection manager: NetworkManager.
Setting up network-manager-gnome (0.8.1-2) ...
Reloading system message bus config...done.
Setting up network-manager-openvpn (0.8.1-1) ...
Reloading system message bus config...done.
Setting up network-manager-openvpn-gnome (0.8.1-1) ...
Setting up network-manager-pptp (0.8.1-1) ...
Reloading system message bus config...done.
Setting up network-manager-pptp-gnome (0.8.1-1) ...
Now reboot !
After login you will have the network-manager applet in your gnome-panel .
We will need the HMA server's .ovpn files :
Go to : http://hidemyass.com/vpn-config/ and download vpn-config.zip ( at the bottom ) .
Move vpn-config.zip to your folder HMA inside your home directory and unzip it.
Now click the applet and choose VPN Connections > Configure VPN...
Choose the VPN tab and then Import. Navigate to the HMA folder and choose one of the .ovpn files. ( e.g. Germany.Dusseldorf.ovpn )
Enter your User name and Password and click Apply.
Click the network-manager applet and choose VPN Connections > Germany. Dusseldorf.
A window will pop up :
Enter your HMA password and choose Save password in keyring....
Now you're connected !
Switching servers is very easy and fast and the connection is very stable. Speed was a bit slower than with my own ISP ( UPC, Amsterdam ), depending on the distance of the server.
My own ISP :
Germany.Dusseldorf
Netherlands. Rotterdam
USA.NewYork.NewYork_LOC2S6
See this list of protocols : http://www.ivpn.net/pptp-vs-l2tp-vs-openvpn.php .
Choose openvpn rather than pptp. Openvpn with TCP connects over port 443 and traffic is indistinguishable from normal HTTPS traffic, making it very difficult to block.
In order to get your connection working do the following : ( as root ) :
apt-get install openvpn curl
After going to http://hidemyass.com/vpn I choose an one month subscription, created an account and paid.
All VPN plans include a 30 day money back guarantee making your purchase risk free.
After login on their website, you can download their software : linux.zip .
Move linux.zip into a folder HMA inside your home directory :
mkdir ~/HMA
mv linux.zip ~/HMA
cd ~/HMA
unzip linux.zip
Archive: linux.zip
inflating: keys/ca.crt
inflating: keys/hmauser.crt
inflating: keys/hmauser.key
inflating: client.cfg
inflating: hma-start
inflating: README.txt
Make hma-start executable :
chmod +x hma-start
If you don't use sudo change line 10 in hma-start which reads sudo openvpn client.cfg into su -c "openvpn client.cfg" .
Inside the folder HMA :
./hma-start -l will give you a list of the available servers.
./hma-start "Country, Name" This command will connect you to the selected server.
e.g. UK, London (LOC1 S1) :
./hma-start "UK, London (LOC1 S1)" :
Password : ( enter root's password. )
Thu Dec 8 22:57:22 2011 OpenVPN 2.1.3 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Oct 22 2010
Enter Auth Username: ( enter HMA username )
Enter Auth Password: ( enter HMA password )
......
.....
.....
Thu Dec 8 23:00:51 2011 Initialization Sequence Completed
Now you're connected ! Check your ip before and after connecting by just entering the searchterm ip in google.com .
Stop the connection not by closing the terminal, but with Ctrl+C.
More options see : http://forum.hidemyass.com/index.php?/topic/2503-yet-another-hma-script/ .
If you like to use a GUI :
apt-get install network-manager-gnome network-manager-openvpn-gnome network-manager-pptp-gnome
.......
.......
.......
Setting up network-manager (0.8.1-6+squeeze1) ...
Reloading system message bus config...done.
Disabling interfaces configured with plain DHCP in /etc/network/interfaces so that NetworkManager can take them over
Auto interfaces found: lo eth0
iface to disable = eth0
Disabling interface: eth0 ... done.
Starting network connection manager: NetworkManager.
Setting up network-manager-gnome (0.8.1-2) ...
Reloading system message bus config...done.
Setting up network-manager-openvpn (0.8.1-1) ...
Reloading system message bus config...done.
Setting up network-manager-openvpn-gnome (0.8.1-1) ...
Setting up network-manager-pptp (0.8.1-1) ...
Reloading system message bus config...done.
Setting up network-manager-pptp-gnome (0.8.1-1) ...
Now reboot !
After login you will have the network-manager applet in your gnome-panel .
We will need the HMA server's .ovpn files :
Go to : http://hidemyass.com/vpn-config/ and download vpn-config.zip ( at the bottom ) .
Move vpn-config.zip to your folder HMA inside your home directory and unzip it.
Now click the applet and choose VPN Connections > Configure VPN...
Choose the VPN tab and then Import. Navigate to the HMA folder and choose one of the .ovpn files. ( e.g. Germany.Dusseldorf.ovpn )
Enter your User name and Password and click Apply.
Click the network-manager applet and choose VPN Connections > Germany. Dusseldorf.
A window will pop up :
Enter your HMA password and choose Save password in keyring....
Now you're connected !
Switching servers is very easy and fast and the connection is very stable. Speed was a bit slower than with my own ISP ( UPC, Amsterdam ), depending on the distance of the server.
My own ISP :
Germany.Dusseldorf
Netherlands. Rotterdam
USA.NewYork.NewYork_LOC2S6
Wednesday, November 16, 2011
Free Sample Of The Debian Administrator's Handbook
Thanks to all the donations the first goal of the fundraising campaign has been reached :
the English translation of the French best-seller known as Cahier de l'admin Debian, written by two Debian developers—Raphaël Hertzog and Roland Mas will happen.
A sample chapter was just released, it deals with the APT family of tools: apt-get, aptitude, synaptic, update-manager, etc.
Go get it here... http://raphaelhertzog.com/files/2011/11/chapter-apt-rh.pdf
Update Dec 2 : see : http://debian-handbook.info/
Go get it here... http://raphaelhertzog.com/files/2011/11/chapter-apt-rh.pdf
Update Dec 2 : see : http://debian-handbook.info/
Sunday, October 30, 2011
Google: What Do You Love?
http://www.wdyl.com/#
WDYL, short for What Do You Love, is a service from Google which lets you search the web for images, blogs, maps, news, videos and it also shows the popularity of the term you're searching for, and more.
WDYL, short for What Do You Love, is a service from Google which lets you search the web for images, blogs, maps, news, videos and it also shows the popularity of the term you're searching for, and more.
Protecting Data Communication : Encryptyourmessages.co.uk/
Just came across this website I'd like to share with you :
http://www.encryptyourmessages.co.uk/
You probably sit behind your PC, connect your machine to the Internet, open your e-mail program, start your instant messenger application, read your messages, reply to them and browse the web... But, have you ever you wondered how much data could be collected on you? This website has the purpose to inform you on the technical and practical aspect of this subject. You will also find tutorials explaining how to protect your personal data transiting on the Internet.
Some additional links worthwhile reading :
(1) http://www.rossde.com/PGP/pgp_encrypt.html
(2) http://www.youdzone.com/signature.html
(3) http://users.telenet.be/d.rijmenants/index.htm
(4) http://www.garykessler.net/library/crypto.html
You probably sit behind your PC, connect your machine to the Internet, open your e-mail program, start your instant messenger application, read your messages, reply to them and browse the web... But, have you ever you wondered how much data could be collected on you? This website has the purpose to inform you on the technical and practical aspect of this subject. You will also find tutorials explaining how to protect your personal data transiting on the Internet.
Some additional links worthwhile reading :
(1) http://www.rossde.com/PGP/pgp_encrypt.html
(2) http://www.youdzone.com/signature.html
(3) http://users.telenet.be/d.rijmenants/index.htm
(4) http://www.garykessler.net/library/crypto.html
Saturday, October 29, 2011
Dropbox For Linux Now Provides Debian Packages
I've been using nautilus-dropbox ( version 0.6.7-3~bpo60+1) from Backports for awhile, but it seems that the website of Dropbox provides Debian packages as well !
Just go to : https://www.dropbox.com/downloading?os=lnx and download nautilus-dropbox version 0.7.0.
See also :http://forums.dropbox.com/topic.php?id=46448
Tuesday, October 25, 2011
N: Ignoring File *.save In Directory '/etc/apt/sources.list.d/' As It Has An Invalid Filename Extension
Just recently apt-get update started throwing errors which read:
N: Ignoring file 'google-chrome.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
....
....
....
N: Ignoring file 'google-musicmanager.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Looking inside directory /etc/apt/sources.list.d/ I saw a number of files which ended with .save, which were not there before since my last apt-get update.
Apparently they are some sort of backup files, because the content of file foo.list.save is the same as file foo.list.
Following fix will work and next time you apt-get update these former notices won't be shown :
su -c "echo 'Dir::Ignore-Files-Silently:: \"(.save)$\";' > /etc/apt/apt.conf.d/99ignoresave"
I recently installed software-properties-gtk and update-notifier, and I suspect one of these packages to generate these files with the .save extension.....
N: Ignoring file 'google-chrome.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
....
....
....
N: Ignoring file 'google-musicmanager.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Looking inside directory /etc/apt/sources.list.d/ I saw a number of files which ended with .save, which were not there before since my last apt-get update.
Apparently they are some sort of backup files, because the content of file foo.list.save is the same as file foo.list.
Following fix will work and next time you apt-get update these former notices won't be shown :
su -c "echo 'Dir::Ignore-Files-Silently:: \"(.save)$\";' > /etc/apt/apt.conf.d/99ignoresave"
I recently installed software-properties-gtk and update-notifier, and I suspect one of these packages to generate these files with the .save extension.....
Friday, October 21, 2011
Manage Trash From Command Line
Deleting files with the rm command is rather dangerous because of the difficulty of recovering a mistakingly deleted file.
That's where the Trash Can comes in handy, a temporary location that allows a permanent removal at a latter time.
I'm using Gnome and the location of the Trash is :
/home/$USER/.local/share/Trash
It contains two directories : files and info. The files folder contains the files deleted and the info directory consists of meta data for each deleted file.
Showing the Trash Can icon on the Desktop is done by going to :
Menu > Applications > System Tools > Configuration Editor.
Just check the Key name /apps/nautilus/desktop/trash_icon_visible.
Trash-cli manages the Trash in command line which is equivalent to Trash functionalities in Nautilus file browser.
There is no package in Squeeze, but you can install package trash-cli (0.1.10.28-2) from Sid without any problem.
I've tested it by issuing the command :
list-trash to list the files in the Trash Can :
It spits out errors :
Traceback (most recent call last): File "/usr/bin/list-trash", line 5, in
for trashedfile in TrashDirectory.allTrashedFiles() :
File "/usr/lib/pymodules/python2.6/libtrash.py", line 218, in allTrashedFiles
for trashedfile in TrashDirectory.getHomeTrashDirectory().trashedFiles() :
File "/usr/lib/pymodules/python2.6/libtrash.py", line 127, in trashedFiles
ti.parse(open(infoFilename).read())
File "/usr/lib/pymodules/python2.6/libtrash.py", line 300, in parse
raise ValueError()
ValueError
Seems to be a bug : http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg882686.html
So you better go to the next page : http://code.google.com/p/trash-cli/ and download trash-cli-0.11.3-r315.tar.gz.
Extract it :
tar xf trash-cli-0.11.3-r315.tar.gz
A directory trash-cli-0.11.3-r315 is created with a INSTALL.txt with the instruction to install it :
Open up a terminal inside the directory and then as root :
python setup.py install
running install
install_dir /usr/local/lib/python2.6/dist-packages/
Checking .pth file support in /usr/local/lib/python2.6/dist-packages/
....
Installing trash-list script to /usr/local/bin
Installing restore-trash script to /usr/local/bin
Installing trash-put script to /usr/local/bin
Installing volume-of script to /usr/local/bin
Installing trash-empty script to /usr/local/bin
....
Finished processing dependencies for trash-cli==0.11.3-r315
To remove file foo in the Trash Can, use :
trash-put foo
To list all the contents of the Trash Can :
trash-list
To restore a trashed file :
restore-trash
0 2011-10-20 23:47:05 /home/eric/Downloads/ruba 3tif.jpg
1 2011-10-20 23:47:25 /home/eric/Downloads/README.txt
2 2011-10-20 23:46:54 /home/eric/Downloads/NCw6L.jpg
What file to restore [0..2]:
To remove all trashed files :
trash-empty
To remove files that have been in the trash more than a given number of days :
trash-empty <days>
That's where the Trash Can comes in handy, a temporary location that allows a permanent removal at a latter time.
I'm using Gnome and the location of the Trash is :
/home/$USER/.local/share/Trash
It contains two directories : files and info. The files folder contains the files deleted and the info directory consists of meta data for each deleted file.
Showing the Trash Can icon on the Desktop is done by going to :
Menu > Applications > System Tools > Configuration Editor.
Just check the Key name /apps/nautilus/desktop/trash_icon_visible.
Trash-cli manages the Trash in command line which is equivalent to Trash functionalities in Nautilus file browser.
There is no package in Squeeze, but you can install package trash-cli (0.1.10.28-2) from Sid without any problem.
I've tested it by issuing the command :
list-trash to list the files in the Trash Can :
It spits out errors :
Traceback (most recent call last): File "/usr/bin/list-trash", line 5, in
Seems to be a bug : http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg882686.html
So you better go to the next page : http://code.google.com/p/trash-cli/ and download trash-cli-0.11.3-r315.tar.gz.
Extract it :
tar xf trash-cli-0.11.3-r315.tar.gz
A directory trash-cli-0.11.3-r315 is created with a INSTALL.txt with the instruction to install it :
Open up a terminal inside the directory and then as root :
python setup.py install
running install
install_dir /usr/local/lib/python2.6/dist-packages/
Checking .pth file support in /usr/local/lib/python2.6/dist-packages/
....
Installing trash-list script to /usr/local/bin
Installing restore-trash script to /usr/local/bin
Installing trash-put script to /usr/local/bin
Installing volume-of script to /usr/local/bin
Installing trash-empty script to /usr/local/bin
....
Finished processing dependencies for trash-cli==0.11.3-r315
To remove file foo in the Trash Can, use :
trash-put foo
To list all the contents of the Trash Can :
trash-list
To restore a trashed file :
restore-trash
0 2011-10-20 23:47:05 /home/eric/Downloads/ruba 3tif.jpg
1 2011-10-20 23:47:25 /home/eric/Downloads/README.txt
2 2011-10-20 23:46:54 /home/eric/Downloads/NCw6L.jpg
What file to restore [0..2]:
To remove all trashed files :
trash-empty
To remove files that have been in the trash more than a given number of days :
trash-empty <days>
Thursday, October 20, 2011
Google Shows Your IP Address
One way to find your IP address is to search for my ip using Google and click the top search result. Now it's no longer necessary to go to the first result because Google answers your questions and shows your IP.
You can use: my ip, my ip address, show my ip, what is my ip and other similar queries. Or just the shortest one : ip.
Works in http://www.google.com/ , https://www.google.com/ and http://www.google.co.uk/ .
Wednesday, October 19, 2011
AES Text Encryptor Made Easy
If you are concerned about the privacy of a message you like to send, here is an easy way to encrypt it : https://encipher.it/.
Just drag the bookmarklet to the Bookmarks bar of your browser.
I take Gmail as an example : just type your message and hit the Encipher It button. A small window will popup :
Just type in a password and hit enter. The bookmarklet uses AES symmetric encryption and PBKDF2 key generation to keep your email safe. All encoding/decoding is done locally in your browser.
After receiving the email the reader uses the same bookmarklet to decrypt the message : just hit the Encipher It button and type in the same password :
If you don't or can't use the bookmarklet just go to the website : https://encipher.it/ and use the text box to encrypt and decrypt messages.
Make sure the password is sent safely to the recipient !
Just drag the bookmarklet to the Bookmarks bar of your browser.
I take Gmail as an example : just type your message and hit the Encipher It button. A small window will popup :
After receiving the email the reader uses the same bookmarklet to decrypt the message : just hit the Encipher It button and type in the same password :
Make sure the password is sent safely to the recipient !
The Debian Administrator's Handbook
The Debian Administrator's Handbook is the title of the translation of the French best-seller known as Cahier de l'admin Debian. Written by two Debian developers—Raphaël Hertzog and Roland Mas —it's a fantastic resource for all users of a Debian-based distribution. It's first edition in 2004 was completely sold out in barely four months. A second edition followed soon after with the addition of a few sections as suggested by the first readers of the book. Right from the third edition, Roland Mas – who had proofread the book since the beginning – joined Raphaël Hertzog.
Given that traditional editors did not want to take the risk to make this translation, the two Debian developers decided to do the translation themselves and to self-publish the result.
They have two targets :
(1) a first target (15000 EUR) that is really the strict minimum that they need to make the project happen. If they reach this target but not the second one, the book will only be available on a commercial and proprietary basis.
(2)a second target: 25000 EUR in the liberation fund : If this target is reached, the book will be published under 2 free licenses (CC-BY-SA 3.0 and GPL2+).
Read all about it : http://debian-handbook.info/
Speak it out : http://www.ulule.com/debian-handbook/promote/
Thursday, October 6, 2011
Access Your Delicious Bookmarks Old Style
Delicious is a social bookmarking service for saving, sharing, and discovering web bookmarks. Started in 2003 and acquired by Yahoo! in 2005, Delicious has built a worldwide community of millions of users. In 2011, Delicious was acquired by the founders of YouTube, Chad Hurley and Steve Chen. Delicious is part of AVOS, a new Internet company based in San Mateo, California. And on September 27, 2011 their new website was launched : http://www.avos.com/new-delicious/.
After acquiring the service from Yahoo! in April, we realized that in order to keep innovating over the long term, the eight-year-old site needed to be rebuilt from the ground up. The result is a new homepage, interface and back-end architecture designed to make Delicious easier to use.
Nice said but I think the new interface sucks....and I'm not the only one : http://gigaom.com/2011/09/28/oh-delicious-where-did-it-all-go-so-wrong/.
One of my two accounts was completely lost, despite opting in to the new terms.
But luckily there is a way to have access to the old Delicious even if your account seems to be deleted !
What you need to do is to add these lines to your hosts file ( /etc/hosts ) :
98.139.50.166 www.delicious.com
76.13.6.190 secure.delicious.com
76.13.6.209 static.delicious.com
and restart your browser....
If you go to http://www.delicious.com/ you will see the old style Delicious page :
Her I could login with my lost account and export my bookmarks with all the tags and notes ( Settings > Export / Backup Bookmarks ) :
Try it while you still can....
Note : http://delicious.com/ will bring you to the new Delicious webpage....
Some nice alternatives :
Diigo : http://www.diigo.com/
Pinboard : http://pinboard.in/
After acquiring the service from Yahoo! in April, we realized that in order to keep innovating over the long term, the eight-year-old site needed to be rebuilt from the ground up. The result is a new homepage, interface and back-end architecture designed to make Delicious easier to use.
Nice said but I think the new interface sucks....and I'm not the only one : http://gigaom.com/2011/09/28/oh-delicious-where-did-it-all-go-so-wrong/.
One of my two accounts was completely lost, despite opting in to the new terms.
But luckily there is a way to have access to the old Delicious even if your account seems to be deleted !
What you need to do is to add these lines to your hosts file ( /etc/hosts ) :
98.139.50.166 www.delicious.com
76.13.6.190 secure.delicious.com
76.13.6.209 static.delicious.com
and restart your browser....
If you go to http://www.delicious.com/ you will see the old style Delicious page :
Her I could login with my lost account and export my bookmarks with all the tags and notes ( Settings > Export / Backup Bookmarks ) :
Try it while you still can....
Note : http://delicious.com/ will bring you to the new Delicious webpage....
Some nice alternatives :
Diigo : http://www.diigo.com/
Pinboard : http://pinboard.in/
Wednesday, September 14, 2011
Create Separate Profiles in Google Chrome, Chromium Browser and Iron.
Iceweasel and firefox come with a profilemanager which can be started with the -P switch :
e.g. for iceweasel :
iceweasel -P
You can always start a new window of Google Chrome, Chromium Browser and Iron in private or incognito mode ( which is a special, different profile : http://www.google.com/support/chrome/bin/answer.py?answer=95464&hl=en-US) with the keyboard shortcuts Ctrl+Shift+N.
As explained here, the default directory of the profile is located at:
Google Chrome : ~/.config/google-chrome/Default
Chromium and Iron : ~/.config/chromium/Default
To make more permanent profiles we can do it manually. Let's take Google Chrome as an example :
Open up a terminal and type in the following :
/usr/bin/google-chrome --user-data-dir=".config/google-chrome/NewProfile", where NewProfile is just the name of the new profile.
This will start Google Chrome with a new, freshly created profile :
If you want to create a different profile but you want all the settings and extensions from the default one just do the following :
( taking Google Chrome as an example again )
create a folder NewProfile inside ~/.config/google-chrome :
cd ~/.config/google-chrome
mkdir NewProfile
and copy the folder Default and the file First Run into the folder NewProfile :
cp -R Default First\ Run NewProfile
Start Google Chrome with the profile NewProfile ( in a new terminal !! ) :
/usr/bin/google-chrome --user-data-dir=".config/google-chrome/NewProfile"
If you don't start a new terminal you will see errors like :
[5728:5728:9257857614:ERROR:CONSOLE(1)] "Uncaught ReferenceError: setShownSections is not defined", source: (1)
[5728:5728:9263544498:ERROR:CONSOLE(1)] "Uncaught ReferenceError: returnExtensionsData is not defined", source: (1)
[5728:5728:9263632214:ERROR:CONSOLE(1)] "Uncaught ReferenceError: returnExtensionsData is not defined", source: (1)
[5728:5728:9263632536:ERROR:CONSOLE(1)] "Uncaught ReferenceError: returnExtensionsData is not defined", source: (1)
and Google Chrome just starts without the settings and extensions of your default profile : I found out that it just start from a folder Default inside ~/.config/google-chrome/.config/google-chrome ( ! )
Now make appropriate entries in the menu : right click Gnome icon in menu > Edit Menus > choose Internet left pane > + New Item in right pane. You will need package alacarte installed.
Note : In newer versions of Google Chrome, you'll be able to enable profiles by navigating to chrome://flags ( Careful, these experiments may bite ! ) and enabling Multiple Profiles. Restart the browser and click the wrench icon > Preferences > Personal Stuff > Users > Add New User. It will start a new window with a new blank profile.
Links :
(1) Iron browser : http://debian-bits-and-snips.blogspot.com/2011/01/srware-iron-browser-of-future.html
http://debian-bits-and-snips.blogspot.com/2011/01/chromium-browser-and-iron-running-side.html
(2) Google Chrome : http://www.google.com/chrome/index.html?hl=en
(3) List of Chromium Command Line Switches : http://peter.sh/experiments/chromium-command-line-switches/
e.g. for iceweasel :
iceweasel -P
You can always start a new window of Google Chrome, Chromium Browser and Iron in private or incognito mode ( which is a special, different profile : http://www.google.com/support/chrome/bin/answer.py?answer=95464&hl=en-US) with the keyboard shortcuts Ctrl+Shift+N.
As explained here, the default directory of the profile is located at:
Google Chrome : ~/.config/google-chrome/Default
Chromium and Iron : ~/.config/chromium/Default
To make more permanent profiles we can do it manually. Let's take Google Chrome as an example :
Open up a terminal and type in the following :
/usr/bin/google-chrome --user-data-dir=".config/google-chrome/NewProfile", where NewProfile is just the name of the new profile.
This will start Google Chrome with a new, freshly created profile :
If you want to create a different profile but you want all the settings and extensions from the default one just do the following :
( taking Google Chrome as an example again )
create a folder NewProfile inside ~/.config/google-chrome :
cd ~/.config/google-chrome
mkdir NewProfile
and copy the folder Default and the file First Run into the folder NewProfile :
cp -R Default First\ Run NewProfile
Start Google Chrome with the profile NewProfile ( in a new terminal !! ) :
/usr/bin/google-chrome --user-data-dir=".config/google-chrome/NewProfile"
If you don't start a new terminal you will see errors like :
[5728:5728:9257857614:ERROR:CONSOLE(1)] "Uncaught ReferenceError: setShownSections is not defined", source: (1)
[5728:5728:9263544498:ERROR:CONSOLE(1)] "Uncaught ReferenceError: returnExtensionsData is not defined", source: (1)
[5728:5728:9263632214:ERROR:CONSOLE(1)] "Uncaught ReferenceError: returnExtensionsData is not defined", source: (1)
[5728:5728:9263632536:ERROR:CONSOLE(1)] "Uncaught ReferenceError: returnExtensionsData is not defined", source: (1)
and Google Chrome just starts without the settings and extensions of your default profile : I found out that it just start from a folder Default inside ~/.config/google-chrome/.config/google-chrome ( ! )
Now make appropriate entries in the menu : right click Gnome icon in menu > Edit Menus > choose Internet left pane > + New Item in right pane. You will need package alacarte installed.
Note : In newer versions of Google Chrome, you'll be able to enable profiles by navigating to chrome://flags ( Careful, these experiments may bite ! ) and enabling Multiple Profiles. Restart the browser and click the wrench icon > Preferences > Personal Stuff > Users > Add New User. It will start a new window with a new blank profile.
Links :
(1) Iron browser : http://debian-bits-and-snips.blogspot.com/2011/01/srware-iron-browser-of-future.html
http://debian-bits-and-snips.blogspot.com/2011/01/chromium-browser-and-iron-running-side.html
(2) Google Chrome : http://www.google.com/chrome/index.html?hl=en
(3) List of Chromium Command Line Switches : http://peter.sh/experiments/chromium-command-line-switches/
Tuesday, September 6, 2011
Installing Nvidia Driver From Nvidia.com
There are several ways to install the driver for your Nvidia card in Debian.
To find out which videocard you have :
lspci | grep VGA
In my case : 01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce GT 330] (rev a2)
So my card is a GeForce GT 330.
To get the latest driver just go to this page ( choose Option 1 ) : http://www.nvidia.com/Download/index.aspx?lang=en-us. The latest driver at this moment is Version 280.13 Certified Release Date: 2011.08.01.
Just press the Download and Agree & Download button and the file NVIDIA-Linux-x86_64-280.13.run will be saved ( I use 64 bit ). The NVIDIA graphics driver uses a Unified Driver Architecture: the single graphics driver supports all modern NVIDIA GPUs.
A complete list for all the Unix Drivers is on this page : http://www.nvidia.com/object/unix.html
The NVIDIA graphics driver is bundled in a self-extracting package. You can extract it with :
sh NVIDIA-Linux-x86_64-280.13.run --extract-only
Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 280.13..............................................................................................................................................
A folder NVIDIA-Linux-x86_64-280.13 is created containing the uncompressed contents of the .run file. On Linux-x86_64, that file contains both the 64-bit driver binaries as well as 32-bit compatibility driver binaries.
Documentation can be found in :
NVIDIA-Linux-x86_64-280.13/html/index.html and
NVIDIA-Linux-x86_64-280.13/README.txt
To be able to install the driver we need first :
apt-get install build-essential linux-headers-$(uname -r )
Before attempting to install the NVIDIA driver you should first disable Nouveau. Nouveau ( http://nouveau.freedesktop.org/wiki/ ) is a display driver for Nvidia GPUs, developed as an open-source project through reverse-engineering of the Nvidia driver. Nouveau performs modesets in the kernel. This can make disabling Nouveau difficult, as the kernel modeset is used to display a framebuffer console, which means that Nouveau will be in use even if X is not running. As long as Nouveau is in use, its kernel module ( nouveau.ko ) cannot be unloaded, which will prevent the Nvidia kernel module from loading. It is therefore important to make sure that Nouveau's kernel modesetting is disabled before installing the Nvidia driver. ( see the README.txt ).
To avoid problems later I start with :
apt-get purge xserver-xorg-video-nouveau
and reboot.
After rebooting do not login and switch to the first virtual (not graphic) terminal by :
Ctrl+Alt+F1
login as root, just enter : root and enter root's password.
Stop the X server by : /etc/init.d/gdm3 stop
Navigate to where you downloaded the driver :
cd /home/$USER/Downloads
sh NV*.run
The .run file is a self-extracting archive. When executed, it extracts the
contents of the archive and runs the contained nvidia-installer utility,
which provides an interactive interface to walk you through the installation.
nvidia-installer will also install itself to /usr/bin/nvidia-installer,
which may be used at some later time to uninstall drivers, auto-download
updated drivers, etc.
Just hit Tab and Enter to accept the license....
Say Yes to :
Install NVIDIA's 32 - bit compatibility OpenGL libraries ? if you run amd64.
Say Yes to :
Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the NVIDIA X driver will be used when you restart X ? Any pre-existing X configuration file will be backed up.
A logfile can be found here : /var/log/nvidia-installer.log
The nvidia-installer will also write a file nvidia-installer-disable-nouveau.conf ( /etc/modprobe.d/nvidia-installer-disable-nouveau.conf ) containing these lines :
# generated by nvidia-installer
blacklist nouveau
options nouveau modeset=0
Start the X server again :
/etc/init.d/gdm3 start
Login and check that the nvidia driver is running :
glxinfo | grep rendering
direct rendering: Yes
You can access nvidia-settings in the menu : System > Preferences > NVIDIA X Server Settings that allows adjustment of several additional settings.
For the settings to be loaded on login add :
nvidia-settings --load-config-only
to Startup Applications : System > Preferences > Startup Applications
If this doesn't work make sure you have unchecked Include X Display Names in the Config File in NVIDIA X Server Settings at nvidia-settings Configuration.
Notes :
(1) At the installation you can get a warning like :
No precompiled kernel interface was found to match your kernel; would you like the installer to attempt to download a kernel interface for your kernel from the NVIDIA ftp site (ftp://download.nvidia.com)?
Just answer No and continue.....
or
the installer complains that the gcc version is different from what was used to compile the kernel...
If you know what you are doing and want to ignore the gcc version check, select "No" to continue installation. Otherwise, select "Yes" to abort installation, set the CC environment variable to the name of the compiler used to compile your kernel, and restart installation.
Answer No, but if it fails you can temporarily set the gcc version (to 4.3 for example) by:
export CC=gcc-4.3
before running the Nvidia installer file.
(2) Any kernel update or xserver-xorg-core update will force you to reinstall the driver.
Just use one of the advanced options of the nvidia-installer ( /usr/bin/nvidia-installer ) :
Ctrl+Alt+F1
login as root, just enter : root and enter root's password.
/etc/init.d/gdm3 stop
nvidia-installer --update
If there is a more recent driver available, it will be automatically downloaded and installed.
See also : http://forums.debian.net/viewtopic.php?f=16&t=56833
To see the advanced options of the nvidia-installer just run in a terminal :
nvidia-installer -A
You can always check the current install status to see if it needs to be re-installed:
as root run :
nvidia-installer --sanity
Press OK :
To install the driver for another kernel without uninstalling the driver for the current kernel just boot into the other kernel and install the driver with :
nvidia-installer -K ( K = --kernel-module-only ) :
Install a kernel module only, and do not uninstall the existing driver. This is intended to be used to install kernel modules for additional kernels (in cases where you might boot between several different kernels). To use this option, you must already have a driver installed, and the version of the installed driver must match the version of this kernel module.
To find out which videocard you have :
lspci | grep VGA
In my case : 01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce GT 330] (rev a2)
So my card is a GeForce GT 330.
To get the latest driver just go to this page ( choose Option 1 ) : http://www.nvidia.com/Download/index.aspx?lang=en-us. The latest driver at this moment is Version 280.13 Certified Release Date: 2011.08.01.
Just press the Download and Agree & Download button and the file NVIDIA-Linux-x86_64-280.13.run will be saved ( I use 64 bit ). The NVIDIA graphics driver uses a Unified Driver Architecture: the single graphics driver supports all modern NVIDIA GPUs.
A complete list for all the Unix Drivers is on this page : http://www.nvidia.com/object/unix.html
The NVIDIA graphics driver is bundled in a self-extracting package. You can extract it with :
sh NVIDIA-Linux-x86_64-280.13.run --extract-only
Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 280.13..............................................................................................................................................
A folder NVIDIA-Linux-x86_64-280.13 is created containing the uncompressed contents of the .run file. On Linux-x86_64, that file contains both the 64-bit driver binaries as well as 32-bit compatibility driver binaries.
Documentation can be found in :
NVIDIA-Linux-x86_64-280.13/html/index.html and
NVIDIA-Linux-x86_64-280.13/README.txt
To be able to install the driver we need first :
apt-get install build-essential linux-headers-$(uname -r )
Before attempting to install the NVIDIA driver you should first disable Nouveau. Nouveau ( http://nouveau.freedesktop.org/wiki/ ) is a display driver for Nvidia GPUs, developed as an open-source project through reverse-engineering of the Nvidia driver. Nouveau performs modesets in the kernel. This can make disabling Nouveau difficult, as the kernel modeset is used to display a framebuffer console, which means that Nouveau will be in use even if X is not running. As long as Nouveau is in use, its kernel module ( nouveau.ko ) cannot be unloaded, which will prevent the Nvidia kernel module from loading. It is therefore important to make sure that Nouveau's kernel modesetting is disabled before installing the Nvidia driver. ( see the README.txt ).
To avoid problems later I start with :
apt-get purge xserver-xorg-video-nouveau
and reboot.
After rebooting do not login and switch to the first virtual (not graphic) terminal by :
Ctrl+Alt+F1
login as root, just enter : root and enter root's password.
Stop the X server by : /etc/init.d/gdm3 stop
Navigate to where you downloaded the driver :
cd /home/$USER/Downloads
sh NV*.run
The .run file is a self-extracting archive. When executed, it extracts the
contents of the archive and runs the contained nvidia-installer utility,
which provides an interactive interface to walk you through the installation.
nvidia-installer will also install itself to /usr/bin/nvidia-installer,
which may be used at some later time to uninstall drivers, auto-download
updated drivers, etc.
Just hit Tab and Enter to accept the license....
Say Yes to :
Install NVIDIA's 32 - bit compatibility OpenGL libraries ? if you run amd64.
Say Yes to :
Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the NVIDIA X driver will be used when you restart X ? Any pre-existing X configuration file will be backed up.
A logfile can be found here : /var/log/nvidia-installer.log
The nvidia-installer will also write a file nvidia-installer-disable-nouveau.conf ( /etc/modprobe.d/nvidia-installer-disable-nouveau.conf ) containing these lines :
# generated by nvidia-installer
blacklist nouveau
options nouveau modeset=0
Start the X server again :
/etc/init.d/gdm3 start
Login and check that the nvidia driver is running :
glxinfo | grep rendering
direct rendering: Yes
You can access nvidia-settings in the menu : System > Preferences > NVIDIA X Server Settings that allows adjustment of several additional settings.
For the settings to be loaded on login add :
nvidia-settings --load-config-only
to Startup Applications : System > Preferences > Startup Applications
If this doesn't work make sure you have unchecked Include X Display Names in the Config File in NVIDIA X Server Settings at nvidia-settings Configuration.
Notes :
(1) At the installation you can get a warning like :
No precompiled kernel interface was found to match your kernel; would you like the installer to attempt to download a kernel interface for your kernel from the NVIDIA ftp site (ftp://download.nvidia.com)?
Just answer No and continue.....
or
the installer complains that the gcc version is different from what was used to compile the kernel...
If you know what you are doing and want to ignore the gcc version check, select "No" to continue installation. Otherwise, select "Yes" to abort installation, set the CC environment variable to the name of the compiler used to compile your kernel, and restart installation.
Answer No, but if it fails you can temporarily set the gcc version (to 4.3 for example) by:
export CC=gcc-4.3
before running the Nvidia installer file.
(2) Any kernel update or xserver-xorg-core update will force you to reinstall the driver.
Just use one of the advanced options of the nvidia-installer ( /usr/bin/nvidia-installer ) :
Ctrl+Alt+F1
login as root, just enter : root and enter root's password.
/etc/init.d/gdm3 stop
nvidia-installer --update
If there is a more recent driver available, it will be automatically downloaded and installed.
See also : http://forums.debian.net/viewtopic.php?f=16&t=56833
To see the advanced options of the nvidia-installer just run in a terminal :
nvidia-installer -A
You can always check the current install status to see if it needs to be re-installed:
as root run :
nvidia-installer --sanity
Press OK :
To install the driver for another kernel without uninstalling the driver for the current kernel just boot into the other kernel and install the driver with :
nvidia-installer -K ( K = --kernel-module-only ) :
Install a kernel module only, and do not uninstall the existing driver. This is intended to be used to install kernel modules for additional kernels (in cases where you might boot between several different kernels). To use this option, you must already have a driver installed, and the version of the installed driver must match the version of this kernel module.
Sunday, August 28, 2011
Lost Blinking Cursor In Google Search Page
Just noticed this annoyance this morning. After hitting the Home button in any browser to go to google.com I had to click in the search field to activate it and have a blinking cursor back.....
At first I thought it was related to flash : http://www.mydigitallife.info/mouse-pointer-flickers-blinks-or-disappears-in-web-browser-ie-firefox-google-chrome/, but this was not the case.
It seems recently the basic Google search page has been changed. A workaround to the cursor problem was very simple :
Select Options in the upper right corner and then Search settings :
Scroll down to Google Instant and change setting to Do not use Google Instant :
Another workaround can be : bookmark http://www.google.com/webhp?complete=0 for searching, or set it as your browser home page.
At first I thought it was related to flash : http://www.mydigitallife.info/mouse-pointer-flickers-blinks-or-disappears-in-web-browser-ie-firefox-google-chrome/, but this was not the case.
It seems recently the basic Google search page has been changed. A workaround to the cursor problem was very simple :
Select Options in the upper right corner and then Search settings :
Scroll down to Google Instant and change setting to Do not use Google Instant :
Another workaround can be : bookmark http://www.google.com/webhp?complete=0 for searching, or set it as your browser home page.
Subscribe to:
Posts (Atom)
















































