Tropenhitze

Kannst du das spüren?

Archive for the ‘openSuSE 11.2’ Category

Accessing IDBI Bank account using Google Chrome on openSuSE/Linux

with one comment

I’m writing this because some brilliant developer who designed the IDBI Bank internet banking site does not allow it to be accessed from Firefox or Chrome. I wish he someday grows up and realizes that Internet Explorer is not the only browser and Windows is not the only operating system around. Sigh! Ok let’s proceed now.

I’ve found a way of accessing it using Google Chrome after a number of trial and errors. The good thing is that the hack is really simple.

Just use the following command line to start chrome and you will be able to logon to your IDBI Bank account

 


/opt/google/chrome/google-chrome --enable-plugins %U --user-agent="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)"

Instead of having to type this each and every time, you can also permanently add this parameter to the Menu Editor, so that Chrome would every time start with this switch and you’ll be able to access your IDBI Bank account from it.

I have already posted a detailed how to on installing Google Chrome on openSuSE and making changes to the menu editor. It can be found in the below link

https://tropenhitze.wordpress.com/2010/01/19/installing-google-chrome-on-opensuse-11-2/

Please leave a comment if this tutorial was helpful to you.

 

 

Advertisements

Installing Canon LBP2900 on openSuSE 11.2

with 7 comments

This tutorial helps you with installing Canon LBP2900 (or any other LBP series) printer on openSuSE 11.2 (or any other version of openSuSE). Note that you need to install Ghostscript before you may proceed with this installation. Open YaST, search with the keyword ghostscript and install the package. After the installation of Ghostscript is over, proceed to the below steps. Before you begin the installation you need to disable auto-configuration of USB printers in YaST. To do this, open YaST > Printer > Autoconfig Settings and select No Automatic Configuration and select OK.

  • Download the driver file for Canon LBP printers from here (scroll down to the bottom and you can see a .gz file)
  • Let us assume that you have downloaded this file to your home folder. Extract the zip file.
  • Execute the following commands in the same order
# Enter the root password when prompted
sudo su -
# The names of the RPM files may vary depending
# upon the version. The Exact name of the rpm files
# given below may vary depending upon the version
# you have downloaded
rpm -ivh cndrvcups-common-1.90-1.i386.rpm
rpm -ivh cndrvcups-capt-1.90-1.i386.rpm
  • Restart CUPS
/etc/init.d/cups restart
  • The next step is to register the printer (PPD) with the spooler. But before going to this step some symbolic links needs to be created and this was not mentioned in the tutorials. Please follow the steps given below.
# shut down CUPS
/etc/init.d/cups stop
# Makes fifo0 accessible to all
chmod 777 /var/ccpf/fifo0
# Make root the owner of fifo0
chown root /var/ccpd/fifo0
# start CUPS
/etc/init.d/cups start
# If you attempt to register the PPD files without creating symbolic
# links as mentioned below, you might get this error.
# "bad device-uri "ccp:/var/ccpd/fifo0"!"
# create symbolic links in lib64 to the folders backend and filter
# in /user/lib/cups
ln -s /usr/lib/cups/backend/ccp /usr/lib64/cups/backend/
ln -s /usr/lib/cups/filter/* /usr/lib64/cups/filter/
# !!! Important !!! Note that you enter the appropriate PPD file name
# in the below mentioned command. If your model is Canon LBP3200,
# enter CNCUPSLBP2900CAPTK.ppd in the below command and
# register the PPD
/usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E
# If you get the error "bad device-uri "ccp:/var/ccpd/fifo0"!" while registering,
# make sure that you created symbolic links as mentioned above
  • Connect the printer on the USB port and turn it on. Do this before you proceed to the next step
  • Find out the Printer Device path by typing
ls /dev/usb/
  • Please note that only if you had connected your printer to the USB port and turned it on will you be able to find the device path
  • Now register the printer in the CCPD daemon setup file by typing
# Enter the name of your printer and the right device path.
/usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0
# and start the CCPD daemon
/etc/init.d/ccpd start
  • Congratulations. Your printer has been configured successfully now . You need to do the following to start the CCPD daemon at the time of boot. Open /etc/init.d/ccpd and add the following comments to the third line of the file and save it.
### BEGIN INIT INFO
# Provides:          ccpd
# Required-Start:    $local_fs $remote_fs $syslog $network $named
# Should-Start:      $ALL
# Required-Stop:     $syslog $remote_fs
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Description:       Start Canon Printer Daemon for CUPS
### END INIT INFO
  • Register the printer in the CCPD daemon
insserv ccpd

Creating CRYPTO_LUKS partitions on openSuSE that can be accessed both from Windows and Linux

leave a comment »

This tutorial helps you create create an encrypted partition on your fixed or portable hard drive that can only be accessed by unlocking it with the password that you entered at the time of creation. You might not need a tutorial for this but if you want to access the encrypted CRYPTO_LUKS partition both from Windows and from Linux this tutorial can help you.

For the purposes of this tutorial, I assume the following

  1. You have a new 500GB (just for example) external hard drive, in which you’d like to have two partitions of 250 GB each, one normal and the other one encrypted with CRYPTO_LUKS. This is not an absolute requirement. You can apply this same tutorial on fixed drives, portable drives, thumb drives and so  on.
  2. You have some version of openSuSE installed on your machine. (You don’t need it to be openSuSE actually. You can use the KDE Partition Manager on any Linux platform or you can even do it from a bootable version of KDE Partition Manager available on sourceforge.net)

Steps:

  1. Open the YaST Control Center and open Partitioner
  2. In the Partitioner, you will see the list of hard drives found on your machine. If you have an external hard drive, connect it before opening partitioner
  3. Point to your external hard drive and if there are already partitions on it delete it. (Before deleting it backup any data that might be present on it as the data will permanently get erased)
  4. Now right click on the hard disk and select “add partition”. Let’s say you want this partition to be a normal NTFS partiton that can be accessed both from windows and from Linux
  5. Select primary partition and click on next
  6. Select custom size and enter 250 GB
  7. On the next screen, select “Do not format partition”  and under the check box “File System ID” select “0x07 NTFS” and click on finish. You may later need to log on to windows and format this partition  with windows without enabling compression (or you’ll not be able to access it from Linux).
  8. Now in the partition manager, right click on the external hard disk once again  and select “add partition” and select “primary partition” in the next screen and click “next”
  9. Now select “Maximum size” in the “new partition size” and click “next”.
  10. Choose the option “Format partition” and under the “File System” select “Ext4” and click on the check box Encrypt device and click “Next” and enter a password. (Do not forget this password)
  11. After you have entered a password you’ll be back in the partition manager and now click on  “Next” and you’ll get a summary of the changes. Confirm the changes if you agree by clicking Finish (Warning: This action cannot be undone)
  12. Wait for some time while the Partition Manager performs the requested tasks.
  13. Now if you are using openSuSE, you’ll be able to access both the partitions from Dolphin. But wait, in order to make it accessible both from Windows and Linux you need to follow the below steps
  14. To make it accessible from windows log on to Windows and connect the external hard drive
  15. Now on windows you’ll be shown only the non-encrypted partition. Format it once using NTFS but don’t enable compression (or you won’t be able to access it from Linux)
  16. Now in order to access the encrypted CRYPTO_LUKS partition on Windows you need an open source tool called FreeOTFE, which can be downloaded from here
  17. After you have installed FreeOTFE on Windows, open it and select Mount. There you’ll see all the disks on your system. Find out which is your external hard drive and there you’ll be able to see the encrypted partition.
  18. Click on it, enter the same password that you entered in Step 10 and mount it.
  19. You’ll get the notification that “your partition has been mounted as drive <some drive letter here>”. Acknowledge this message box and only then will you be shown the partition on windows explorer.
  20. Now open the windows explorer and double click on the encrypted partition you just mounted using FreeOTFE.
  21. You will be asked to format it. Format it using NTFS now for once without enabling compression.
  22. Hereafter you can mount the partition using FreeOTFE and access it from windows. Don’t forget to unmount it on FreeOTFE before you shut down or before you remove your disk. This  is very essential.
  23. Now log on to Linux and click on the encrypted partiton, enter the password and you’ll be able to access it from there. If you had copied some files to the encrypted partition while you were on windows, you’ll be able to access it from Linux.

I hope this long tutorial helps.

You can also use the steps mentioned here to create a single encrypted partition on thumb drives that can be accessed both from Linux and from Windows using FreeOTFE. Please drop your comments if my tutorial was very confusing or if you find it useful.

Thank you!

Installing Eclipse IDE on linux openSuSE 11.2

with 19 comments

Download the desired version of Eclipse from here

http://www.eclipse.org/downloads/

If you are a Java developer, I recommend that you download the version that supports Java EE from the below link.  It provides different download options. I’d prefer downloading from a torrent, but it’s up to you.

Click here to download eclipse IDE for Java EE

For the purposes of this tutorial, I assume that you’ve downloaded and saved the file at /home/username/Download

open Terminal and type

cd ~/Download
tar -xvf eclipse-jee-galileo-SR1-linux-gtk-x86_64.tar.gz

The tarball will be extracted to a new folder named eclipse created automatically under ~/Download/

Follow the steps below to create a shortcut in the Application Launcher

  1. Right click on the Application Launcher (bottom left corner of the screen in KDE) and click on Menu Editor
  2. On the Menu Editor, as shown below, expand Development, click on Integrated environment and click on New Item and enter Eclipse under Item name and click on ok.
  3. Now click on Eclipse on the left pane, enter a suitable name and description as shown in the screen shot below. Against the field Command, enter ~/Download/eclipse/eclipse (assuming that eclipse folder is now in ~/Download/).
  4. Now click on the question mark next to name and a window like the one shown below appears.  Click on Browse and choose the Eclipse icon from ~/Download/eclipse/icon.xpm and click on ok.

  5. Type CTRL + S to save the changes made and exit the Menu Editor
  6. Eclipse can now be accessed from Application Launcher -> Applications -> Development -> Integrated Environment -> Eclipse

Please leave a comment if this tutorial was helpful to you.

Installing msttfonts MS True Type fonts ( Georgia, Trebuchet, …) on openSuSE 11.2

with 8 comments

This tutorial will help you with installing MS true type fonts like Georgia, Arial, Trebuchet etc…, which are not installed in openSuSE by default. To do this, first you have to install a package through YaST Control Center and then run a shell script manually. Read the instructions below

  1. Open YaST Control Center and click on Software Management
  2. Search with the keyword fetchmsttfonts
  3. On the results pane, if package already appears installed, go to step 4. Otherwise install it and go to step 4.
  4. Click on the package name and on the pane directly below, click on the tab File List
  5. Scroll down to the bottom of the File List and you’ll find something like /var/adm/update-scripts/fetchmsttfonts-11.2-6.6.12-fetchmsttfonts.sh.txt. Make a note of it.
  6. Open Terminal and type
    sudo su -
    
  7. Enter the root password when prompted and type the following commands in succession
    cd /var/adm/update-scripts/
    chmod 744 fetchmsttfonts-11.2-6.6.12-fetchmsttfonts.sh.txt # refer to step 5 for this filename
    sh fetchmsttfonts-11.2-6.6.12-fetchmsttfonts.sh.txt
    
  8. Sit back and relax while the fonts are being downloaded and installed.

Please leave a comment if this tutorial was helpful to you.

Installing opera 10.10 on openSuSE 11.2

leave a comment »

Installing Opera on openSuSE 11.2 is so simple that it doesn’t even need a tutorial to explain it. However, I’ve decided to write one for those who need it.

  1. Go to http://www.opera.com/browser/download/
  2. Select SuSE under the field Select distribution and vendor
  3. Select the option openSuSE 11.2 if that’s what your openSuSE version  is.
  4. Select RPM package under choose package format.
  5. Click on Download opera and save the .rpm file.

After the download is completed, open Terminal and go to the download location. For the purpose of this tutorial, I assume that you’ve downloaded the file to /home/username/Download/

type in Terminal,

cd ~/Download/
sudo rpm -i opera-10.10.gcc4.qt4.x86_64.rpm

Enter the root password when prompted and wait until the prompt reappears.

Installation of Opera 10.10 is now complete and you can access it from

Application Launcher -> Applications -> Internet -> Web Browser -> Opera

Please leave a comment if this tutorial was helpful to you.

Installing Firefox 3.6 on linux openSuSE 11.2

with 9 comments

The best way  is to install it through YaST control center.

  1. Open YaST control center and click on Software Management
  2. If you already have firefox open, close it before proceeding.
  3. From the menu select Configuration and then select Repositories (or type CTRL + R to get there)
  4. Click on the Add button on the bottom of the window and select Specify URL in the window that opens and  click on  Next
  5. Under the Repository Name, type Mozilla and enter the URL http://download.opensuse.org/repositories/mozilla/openSUSE_11.2/ under the URL field and click on Next
  6. If you get a warning like the repository has already been added, click No and click on the Abort button on the corner of the window.
  7. Otherwise click OK on the bottom of the Add Repository window and wait while the repository is being downloaded and added.
  8. Now on the Software Management window enter the phrase firefox and click on search
  9. Click on the result that has the summary as “Mozilla Firefox Web Browser” and click on Versions which appears directly below the search results pane.
  10. if you are running x86_64 (open Terminal and type uname -i to find out what version you are running) select the following option displayed under the Versions tab

3.6.0-1.2-x86_64 from openSuSE Buildservice — Mozilla with blah blah blah..

or

if you are running i586

3.6.0-1.2-i586 from openSuSE Buildservice — Mozilla with blah blah blah..

if you can’t find this,  it means that you’ve added the repository manually as I’ve said before. If so, then choose the version corresponding to your OS against the phrase Mozilla (if that’s what you mentioned in place of repository name while adding.. Read step 5)

You may get some warning regarding dependency issues while changing the version. Just go ahead and click on ok. Trust me, it wouldn’t cause you any problems later on.

Now open firefox, click on the Help menu and click on About, and confirm the version.

Please leave a comment if this tutorial was helpful to you or if you faced any problem during installation.