Archive for July, 2009

How to install a scanner driver into a Linux based system

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on July 20th, 2009

Welcome to the tutorial guide. The guide will advise the user on how to install a Brother scanner driver to a Linux based system by using SANE.

This guide will cover Red Hat, Mandrake, SuSE and FedoraCore Users:
- It is important to know that before you install the Brother scanner drivers, you should download and install the latest versions of sane and xsane.

$ rpm -ivh sane-xxxxxx.rpm
$ rpm -ivh xsane-xxxxxx.rpm
- Install the Brother scanner driver

$ rpm -ivh brscan-0.2.4-0.i386.rpm
or
$ rpm -ivh brscan2-0.2.4-0.i386.rpm

- If you are planning to use the machine as a network scanner, you need to set the friendly name, model name and IP address or node name in the driver using the commands below. You also need to ensure which scanner driver “brscan” or “brscan2″ you are using. Please note that if you are using “brscan” driver, then use “brsaneconfig”. If you are using “brscan2″ driver, then please use “brsaneconfig2″.

Using IP address:
brsaneconfig -a name=FRIENDLY-NAME model=MODEL-NAME ip=xx.xx.xx.xx
or
brsaneconfig2 -a name=FRIENDLY-NAME model=MODEL-NAME ip=xx.xx.xx.xx

Using node name:
brsaneconfig -a name=FRIENDLY-NAME model=MODEL-NAME nodename=BRN_xxxxx
or
brsaneconfig2 -a name=FRIENDLY-NAME model=MODEL-NAME nodename=BRN_xxxxx

i.e)
When your model name is “MFC-7820N”, nodename is “BRN_XXXXX” and friendly name is “SCANNER1″, set the command as below:
brsaneconfig -a name=SCANNER1 model=MFC-7820N nodename=BRN_XXXXX
or
brsaneconfig2 -a name=SCANNER1 model=MFC-7820N nodename=BRN_XXXXX
- If you are interested in checking the result, then please run the following command:
brsaneconfig -q
or
brsaneconfig2 -q

If all the setting is done correctly, then you will be able to view the following results:
0 SCANNER1 “MFC-7820N” N:BRN_XXXXX

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

How to extract pages from a PDF

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on July 20th, 2009

Welcome to the tutorial guide. The guide will provide the user with information on how to extract pages from a pdf. A number of ways are available to extract pages from a pdf such as:

- pdf related toolkits
- Ghostscript
An example will make it clear. If you are planning to extract pages 4 - 14 from a 48 page pdf file using pdftk:
pdftk
$ pdftk A=48p-inputfile.pdf cat A4-14 output outfile_p4-p14.pdf
or

Combination of xpdf-utils
A user can use a combination of xpdf-utils (or poppler-tools) with psutils and the ps2pdf command :

$ pdftops 48p-inputfile.pdf - | psselect -p4-14 | \
ps2pdf14 - outfile_p4-p14.pdf

Ghostscript
$ gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER \
-dFirstPage=4 -dLastPage=14 \
-sOutputFile=outfile_p4-p14.pdf 48p-inputfile.pdf

It is important to note that the conversion of the original PDF to PostScript and back to PDF (also known as “refrying” the PDF) is very unlikely to completely preserve advanced PDF features (such as font hinting, colour profiles, trapping instructions, etc.).

The 3rd method not only uses Ghostscript but it also preserves all the important PDF objects on the pages as they are, without any “roundtrip” conversions. It is important to note that this method has a longer and more complicated command line to type. Though, this weakness can be dealt with if a user can save it as a bash function. This can be done by putting these lines in the ~/.bashrc file:
function pdfpextr()
{
# this function uses 3 arguments:
# $1 is the first page of the range to extract
# $2 is the last page of the range to extract
# $3 is the input file
# output file will be named “inputfile_pXX-pYY.pdf”
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER \
-dFirstPage=${1} \
-dLastPage=${2} \
-sOutputFile=${3%.pdf}_p${1}-p${2}.pdf \
${3}
}
After this, you only need to type (after starting a new copy bash or sourcing .bashrc) the following:
$ pdfpextr 4 14 inputfile.pdf
which will result in the file inputfile_p4-p14.pdf in the same directory as the input file.
__________________________
hr {border: solid 1px #ccc} .small {font-size: .8em}

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

openSUSE - Managing Groups

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on July 19th, 2009

Welcome to the tutorial guide. The guide will show you how you can easily manage groups by adding, modifying or deleting groups with YaST.
Creating and Modifying Groups
If you want to mange groups then please follow the steps as below:

- first of all, open the YaST User and Group Management dialog and - click the Groups tab
- with Set Filter define the set of groups you want to manage. Please note that the dialog shows a list of groups in the system.
- In order to create a new group, please click Add.
- If you want to modify an existing group, then please select the group and click Edit.
- In the dialog, please enter or change the data.

Adding groups
If you are planning to add existing users to a new group then please select them from the list of possible Group Members by checking the corresponding box.

Removing users from the group
If you want to remove users from the group just uncheck the box.
- Click OK to apply your changes.
- Click Expert Options > Write Changes Now to save all changes without exiting the User and Group Administration dialog.

Deleting groups
In order to delete a group, it must not contain any group members.
To delete a group, select it from the list and click Delete. Click Expert Options > Write Changes Now to save all changes without exiting the User and Group Administration dialog. Or click Finish to close the administration dialog and to save the changes.

If you follow the guidance and advise as provided in the tutorial, then you will be able to manage the groups in a successful manner

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

openSUSE - Assigning Users to Groups

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on July 19th, 2009

Welcome to the tutorial guide. The guide will provide you with information on how to asign users to groups. Local users are assigned to several groups according to the default settings which you can access from the User and Group Administration dialog on the Defaults for New Users tab.

Changing a User’s Group Assignment
If you want to change a User’s group assignment then please follow the steps as below:

- First of all, please open the YaST User and Group Administration dialog
- After the dialog box is opened, please click the Users tab. This shows a list of users and of the groups the users belong to.
- Click Edit and switch to the Details tab.
- If you are planning to change the primary group the user belongs to, please click Default Group and select the group from the list.
- If you want to assign the user to additional secondary groups, activate the corresponding check boxes in the Additional Groups list. - Click OK to apply your changes.
- Click Expert Options and Write Changes Now to save all changes without exiting the User and Group Administration dialog.
- Or click Finish to close the administration dialog and to save the changes.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

openSUSE - Changing Default Settings for Local Users

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on July 14th, 2009

Welcome to the tutorial guide. The guide will provide you with information on how to change the default settings for local users. It is important to note that when creating new local users, several defaults settings are used by YaST.

These settings include:
- the primary group and the secondary groups the user belong to,
- or the access permissions of the user’s home directory.

These default settings can be changed or adjusted to meet your needs and requirements:

- Please open the YaST User and Group Administration dialog and
- select the Defaults for New Users tab.
- If you want to change the primary group the new users should automatically belong to, select another group from Default Group.
- In order to modify the secondary groups for new users, add or change groups in Secondary Groups. Please note that the group names must be separated by commas.
- If you do not want to use /home/username as default path for new users’ home directories, modify the Path Prefix for Home Directory.
- If you want to change the default permission modes for newly created home directories, please adjust the umask value in Umask for Home Directory.
- Apply your changes with Finish.

In this way you can adjust or change the default settings for the users.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

openSUSE - Managing Quotas

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on July 12th, 2009

Welcome to the tutorial guide. The guide will provide the user with nformation on how to manage quotas. In order to prevent system capacities from being exhausted without notification, system administrators can set up quotas for users or groups. Quotas can be defined for one or more file systems and restrict the amount of disk space that can be used and the number of inodes (index notes) that can be created there.

Inodes are data structures on a file system that store basic information about a regular file, directory, or other file system object. They store all attributes of a file system object (like user and group ownership, read, write, or execute permissions), except file name and contents.

It is important to note that openSUSE allows usage of soft and hard quotas.
Soft quotas
Soft quotas usually define a warning level at which users are informed they are nearing their limit.
Hard quotas
Hard quotas define the limit at which write requests are denied. Additionally, grace intervals can be defined that allow users or groups to temporarily violate their quotas by certain amounts.

Enabling Quota Support for a Partition
If you want to configure quotas for certain users and groups, then you have to enable quota support for the respective partition in the YaST Expert Partitioner first.
The quota support can be enabled by going through following steps:

- In YaST, select System > Partitioner and
- click Yes to proceed.
- In the Expert Partitioner, select the partition for which to enable quotas and
- click Edit.
- click Fstab Options and
- activate Enable Quota Support. If the quota package is not already installed, it will be installed if you confirm the respective message with Yes.
- Confirm your changes and leave the Expert Partitioner.

Setting Up Quotas for Users or Groups
It is an easy process to set up the quotas for Users or Groups. This can be achieved by going through following steps:

- In the YaST User and Group Administration,
- select the user or the group you want to set the quotas for and
- click Edit.
- on the Plug-Ins tab, select the quota entry and click Launch to open the Quota Configuration dialog.
- from File System,
- select the partition to which the quota should apply.

It is important to note that the size limits, restrict the amount of disk space. You can eter the number of 1 KB blocks the user or group may have on this partition. You have to specify a Soft Limit and a Hard Limit value.

Additionally, you can restrict the number of inodes the user or group may have on the partition. Below Inodes Limits, enter a Soft Limit and Hard Limit.

You can only define grace intervals if the user or group has already exceeded the soft limit specified for size or inodes. Otherwise, the time-related input fields are not activated. You can specify the time period for which the user or group is allowed to exceed the limits set above.

- confirm your settings with OK.
- click Expert Options > Write Changes Now to save all changes without exiting the User and Group Administration dialog.
- or click Finish to close the administration dialog and to save the changes.
- openSUSE also ships command line tools like repquota or warnquota with which system administrators can control the disk usage or send e-mail notifications to users exceeding their quota.

With quota_nld, administrators can also forward kernel messages about exceeded quotas to D-BUS. I hope that the tutorial guide has proved helpful for you.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

openSUSE - Managing Encrypted Home Directories

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on July 12th, 2009

Welcome to the tutorial guide. The guide will show you how to manage encrypted home directories. It is important to note that in order to protect data in home directories against theft and hard disk removal, a user can create encrypted home directories for users.

These are encrypted with LUKS (Linux Unified Key Setup), which results in an image and an image key generated for the user. The image key is protected with the user’s login password. When the user logs in to the system, the encrypted home directory is mounted and the contents are made available to the user.

It is good to note that with YaST, you can create encrypted home directories for new or existing users. To encrypt or modify encrypted home directories of already existing users, you need to know the user’s current login password. By default, all existing user data is copied to the new encrypted home directory, but it is not deleted from the unencrypted directory.

Creating Encrypted Home Directories
Now, let’s see the process of creating encrypted home directories .

- Open the YaST User and Group Management dialog and
- click the Users tab.
- If you want to encrypt the home directory of an existing user,
- select the user and
- click Edit.

If you don’t want to encrypt the home directory of an existing user then:

- click Add to create a new user account and
- enter the appropriate user data on the first tab.
- In the Details tab, activate Use Encrypted Home Directory. As the Directory size is in MB, specify the size of the encrypted image file to be created for this user.
- Apply your settings with OK.
- Enter the user’s current login password to proceed if YaST prompts for it.
- Click Expert Options > Write Changes Now to save all changes without exiting the administration dialog. Or you can click Finish to close the administration dialog and to save the changes.

Modifying or Disabling Encrypted Home Directories
If you want to disable the encryption of a home directory or change the size of the image file at any time, then this is possible. Please follow the steps as below:

- Open the YaST User and Group Administration dialog in the Users view.
- Select a user from the list and
- click Edit.

In order to disable the encryption,

- switch to the Details tab and
- disable Use Encrypted Home Directory.

In order to enlarge or reduce the size of the encrypted image file for this users,
- change the Directory Size in MB.
- apply your settings with OK.
- enter the user’s current login password to proceed if YaST prompts for it.
- Click Expert Options > Write Changes Now to save all changes without exiting the User and Group Administration dialog.
- Or click Finish to close the administration dialog and to save the changes.

Using Fingerprint Authentication
If the system includes a fingerprint reader, then you can use biometric authentication in addition to standard authentication via login and password. After registering their fingerprint, users can log in to the system either by swiping a finger on the fingerprint reader or by typing in a password.

It is good to know that fingerprints can be registered with YaST

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

openSUSE - Options for User Accounts

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on July 12th, 2009

Welcome to the tutorial guide. The guide will provide you with information on additional options for user accounts. openSUSE offers options, such as options to enforce password policies, to use encrypted home directories or to define disk quotas for users and groups.

- Automatic Login and Passwordless Login
If you use KDE or GNOME desktop environment you have an opportunity to configure Auto Login for a certain user as well as Passwordless Login for all users. Auto login causes a user to become automatically logged in to the desktop environment on boot. This functionality can only be activated for one user at a time. Login without password allows all users to log in to the system after they have entered their username in the login manager.

If you want to activate auto login or login without password, access these functions in the YaST User and Group Administration with Expert Options > Login Settings.
- Enforcing Password Policies
On any system with multiple users, it is a good idea to enforce at least basic password security policies. Users should change their passwords regularly and use strong passwords that cannot easily be exploited. For local users, proceed as follows:

- Configuring Password Settings
If you want to configure the password settings then
- Open the YaST User and Group Administration dialog and
- select the Users tab.
- Now select the user for which to change the password options and
- click Edit.
- Switch to the Password Settings tab.

It is important to note that if you want to make the user change his password at next login, activate Force Password Change.

- How to enforce a password rotation.
In order to enforce password rotation, set a Maximum Number of Days for the Same Password and a Minimum Number of Days for the Same Password.

- How to remind a user
If you want to remind the user to change his password before it expires, set a number of Days before Password Expiration to Issue Warning.

- How to restrict a period of time
In order to restrict the period of time the user can log in after his password has expired, change the value in Days after Password Expires with Usable Login.
You can also specify a certain expiration date for a password. Enter the Expiration Date in YYYY-MM-DD format.

If you are happy with the changes that you are applying then just Apply your changes with OK.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

USB xPUD Persistent Install (Windows)

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on July 11th, 2009

Welcome to the tutorial guide. The guide will guide you on how to create a live USB xPUD

Prerequisites for creating a xPUD Live USB (Persistent)
It is important to note the prerequisites for creating a xPUD live USB. These are below:

- Windows PC to perform conversion
- xPUD ISO
- 128MB or larger USB flash drive (Fat32 formatted)
- XPUSB.exe (contains the files to do the conversion)

Create a Live USB XPUD Flash Drive
Now, letr’s go through the process of creating a live USB XPUD flash drive.
Download and launch USBXP.exe, extracting to your computer. An USBXP folder is automatically created.
- Download and move the xPUD ISO to the USBXP folder on your PC
- Now from the USBXP folder, click USBXP.bat and follow the onscreen instructions
- When the script has finished, restart your PC and set your BIOS or Boot Menu to boot from the USB device, you can now save your changes and reboot
- After the XPUD setup, you can:
*Click Settings > Backup from the xPUD Desktop.
*Make sure Backup to: location is your USB device.
*Click Backup.

If you have followed the guide, you will have now personal Live USB xPUD.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

openSUSE - Managing Users with YaST

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on July 7th, 2009

The tutorial guide will guide the user about managing users with YaST. During installation, you can choose a method for user authentication . The method is either local (via /etc/passwd) or, if a network connection is established, via NIS, LDAP, Kerberos or Samba. You can create or modify user accounts and can change the authentication method with YaST at any time.

Every user is assigned a user ID (UID) which identifies him in the system. Apart from the users which can log in to your machine, there are also a number of system users for internal use only. Each user is assigned to one or more groups. Similar to system users, there are also system groups for internal use.

User and Group Administration Dialog
If you want to administrate users or groups, then please
- start YaST and
- click Security and Users
- User and Group Management.

Alternatively, start the User and Group Administration dialog directly by running yast2 users & from a command line.

Depending on the set of users you choose to view and modify with the dialog (local users, network users, system users), the main window shows several tabs. The tabs allow a user to execute the different tasks such as managing user accounts, changing default settings, assigning users to groups, etc.

Managing User Accounts
From the Users tab, you can create, modify, delete or temporarily disable user accounts

Changing Default Settings
Local users accounts are created according to the settings defined on the Defaults for New Users tab.

Assigning Users to Groups
Users can easily be assigned to the groups.
Managing Groups
From the Groups tab, you can add, modify or delete existing groups.
Changing the User Authentication Method
When your machine is connected to a network providing user authentication methods like NIS or LDAP, you can choose between several authentication methods on the Authentication Settings tab.

Filter option
It allow you to define the set of users or groups you want to modify: On the Users or Group tab, click Set Filter to view and edit users or groups according to certain categories, such as Local Users or LDAP Users, for instance (if you are part of a network which uses LDAP). With Set Filter > Customize Filter you can also set up and use a custom filter.
Depending on the filter you choose, not all of the following options and functions may be available from the dialog.

Managing User Accounts
YaST offers to create, modify, delete or temporarily disable user accounts. Do not modify user accounts unless you are an experienced user or administrator and know about the implications.

File ownership uses user ID, not to the user name. After a user ID change, the files in the user’s home directory are automatically adjusted to reflect this change. However, after an ID change, the user does no longer own the files he created elsewhere in the file system unless you manually change the file ownership for those files.

Adding or Modifying User Accounts
Please open the YaST User and Group Administration dialog and click the Users tab. With Set Filter define the set of users you want to manage. The dialog shows a list of users in the system and the groups the users belong to. If you want to modify options for an existing user, then please select an entry and click Edit.
To create a new user account, click Add.
Enter the appropriate user data on the first tab, such as Username (which is used for login) and Password. This data is sufficient to create a new user. By clicking on OK, the system will automatically assign a user ID and set all other values according to the default.

Activate Receive System Mail if you want any kind of system mails to be delivered to this user’s mailbox. This creates a mail alias for root and the user can read the system mail without having to log in as root first.
If you want to adjust further details such as the user ID or the path to the user’s home directory, do so on the Details tab.
If you need to relocate the home directory of an existing user, enter the path to the new home directory there and move the contents of the current home directory with Move to New Location. Otherwise, a new home directory is created without any of the existing data.
To force users to regularly change their password or set other password options, switch to Password Settings and adjust the options.
If all options are set according to your wishes, click OK.
Click Expert Options > Write Changes Now to save all changes without exiting the User and Group Administration dialog. Or click Finish to close the administration dialog and to save the changes. A newly added user can now log in to the system using the login name and password you created.

Disabling or Deleting User Accounts
If you are planning to disable or delete a user account the simply
- open the YaST User and Group Administration dialog and
- click the Users tab.

If you want to temporarily disable a user account without deleting it, then please
- select the user from the list and
- click Edit.
- Activate Disable User Login.

The user cannot log in to your machine until you enable the account again.
If you are planning to delete a user account, then please
- select the user from the list and
- click Delete.

Choose if you also want to delete the user’s home directory or if you want to retain the data.

In this way you can easily disable or delete User Accounts.

I hope that this guide proved helpful for you.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

« Previous entries · Next entries »