Folder locations Once you start working in Ubuntu, you'll want to know where to save your files. Ubuntu gives you a personal home directory, with subdirectories already set up for Documents, Music, Pictures, Videos and Downloads. There's also a Public folder: files stored here will be available to anyone who logs on to your PC.
Drivesand devices. Ubuntu can read and write disks and partitions that use the familiar FAT32 and NTFS formats, but by default it uses a more advanced format called Ext4. This format is less likely to lose data in the event of a crash, and it can support large disks or files. The downside is that Windows can't read it – something to be aware of if you want to share files across a dual-boot PC. Another difference is the way the file system is organized. In Windows, each drive in your system has its directory hierarchy – so, for example, a folder on a USB flash drive might be addressed as "E: Files \Test file.doc". In Ubuntu there's a single root directory for the entire system, referred to simply as "I" (a "regular" slash, not a backslash as used by Windows), and all disks and devices appear within this hierarchy. You can see how this works by opening the Ubuntu File Manager and clicking on File System to view the root directory. You'll see a folder called /media, and if you've installed Ubuntu alongside a Windows installation, there will be a link within this folder to your Windows partition (your files are in /host if you've installed Ubuntu on the same partition as Windows, using the Wubi installer). Plug in a USB flash drive and that will appear here too. There are many other top-level directories besides /media, but unless you get into advanced system administration, only a few are worth knowing about. (Even so, most first-time users of Ubuntu probably won't be venturing anywhere near them.) The /etc directory contains hardware-specific settings, where you'll find configuration files for things such as graphics cards and printers. /usr is where most apps and libraries go when you install them, and /home contains the home folders for all the users on the system.
Virtual folders. As the contents of the /media directory demonstrate, a directory in Ubuntu may not be a "real" directory: it could be a link to a different device or to a different location on the same disk. This approach takes some getting used to, but it adds a level of flexibility. In schools and businesses that run Unix-type systems, for example, it's common for /home to be not a regular directory but a link to a different disk, or even a remote network location. This makes it easy to back up users' data or move it to a different PC, independently to the rest of the OS. (This type of virtual folder is called a "mount point".) If you want to reorganize your own directories, you'll find full instructions in the online Ubuntu documentation at http://help.ubuntu.com. Be warned, though, you'll need to use the Terminal, and there are some technical issues involved. One other thing to note is that in Ubuntu, filenames and paths are case sensitive – so a folder called "data" isn't the same as one called "Data". Remember that, or it will trip you up!
File permissions. A final important difference between the Windows and Ubuntu file systems relates to file permissions. In Windows, you can access almost any file or folder on your system — although there are a few circumstances when you might need to take ownership of a system file. Ubuntu is stricter. System and configuration files are owned by an administrator account called "root", and when you're logged in under your own name, you have only limited access to things outside of your home directory. That's normal, and it's for your own safety — it makes it almost impossible for you to accidentally mess up your system. These restrictions also apply to programs you run under that account, which makes Ubuntu resistant to Trojans and other sorts of malware. If you do need to edit system files, you can do so using a Terminal command called "sudo", which temporarily promotes you to a " superuser". You'll find everything you need to know about File Permissions and the sudo command in the online documentation.
Source of Information : PC Pro -April 2011
Showing posts with label Ubuntu Linux. Show all posts
Showing posts with label Ubuntu Linux. Show all posts
RUNNING WINDOWS APPS IN UBUNTU
No matter how many useful applications come bundled with Ubuntu, it's difficult to live without some Windows programs, particularly if you work in an industry where, say, Word, Excel or Photoshop compatibility is a must. Luckily, it's entirely possible to run many Windows applications within Ubuntu using an optional package, Wine.
Wine is frequently described as an emulator, but in fact it works as a " compatibility layer" offering Linux-based alternatives to the libraries that Windows applications call on during use, and a process — the winerserver — that translates the functions of the Windows kernel and UI into their Linux equivalents. Using these and some clever jiggery-pokery with file systems, Wine convinces Windows apps that they're running on a Microsoft OS and enables them to run happily on Ubuntu with a minimal performance hit. The good news is that it's usually easy to use. First, you need to install Wine: search for it in the Ubuntu Software Centre, or download the latest version from www.winehq.org.
Now, it's time to install your Windows app. Just download the file or insert the CD or DVD, and you can often doubeclick on the standard Windows installer (or let the CD autorun) and install an application just as you would in Windows. Wine handles the whole thing for you, practically transparently. Nor is there any hassle in running installed software: you can either run the application from a desktop shortcut or from Applications I Wine 1 Programs.
Sadly, Wine doesn't always flow smoothly, and not all applications work perfectly first time. Some just won't work whatever you do, while others rely on security systems that scupper Wine. Others will work, but with limited functionality, woeful stability or significant bugs. On the plus side, winehq.org maintains a database of Windows applications, with volunteers testing new software as it appears, and grading them from Platinum (runs flawlessly out of the box) to Garbage ( won't work at all). Office 2007 and Word 2007, for example, are rated as Silver and will work for most English-language users straight away. InDesign CS3 and CS4, however, are listed as Garbage, although they may install and run as part of an Adobe Creative Suite.
It's important to note that these findings are dependent on who and how many people have tested, and that your mileage will vary. For example, the Office 2010 32-bit installer is currently listed as Bronze, while Word 2010 is listed as Garbage. However, we've had people within the PC Pro office comfortably using Word 2010 within Ubuntu.
Meanwhile, you'll find some games listed as Platinum, then struggle for hours to get them working in Ubuntu. It's also entirely possible to find applications that will fail on your first attempt to install, but succeed on the second for no real reason. Overall, however, the WineHQ database is a fairly reliable guide, and worth consulting if you need to use a specific application.
TroubleshootingWine
What can you do if Wine doesn't work? Well, there are some useful tricks you might want to deploy. First, it's possible to configure Wine to behave like a specific version &Windows, by going to Applications I Wine I Configure Wine, clicking the Add Application button to add a Windows application to the list, and then setting the Windows Version using the dropdown menu at the bottom of the screen.
In some cases, you can also use the Graphics settings tab of the Wine Configuration menu to either start the application within a virtual desktop or switch off Direct3D hardware support. Of course, doing so might make some applications, notably games, virtually unusable. There are also Wine plugins, such as the incredibly useful Winetricks script, which install additional Windows libraries and ensure maximum compatibility.
Some of these are integrated into the default Ubuntu Wine installation or the latest version downloadable from WineHQ – but don't take anything for granted. You can see more detailed instructions at http://wiki. winehq.org/winetricics. If you're planning to run games then give the PlayOnLinux application a try. This acts as a front-end for Wine and incorporates a range of Wine scripts and additional Windows libraries, all in aid of getting as many games as possible to run. It also supports Valve's Steam client, allowing you to persuade a number of games that you may have already purchased on a Windows PC to run within Ubuntu using Wine. Making heavier use of graphics and audio hardware, games can occasionally be challenging to get working, but the WineHQ apps database offers excellent support.
Most of all, remember that the WineHQ database contains a mass of information, and that Google is your friend. With so many Ubuntu users trying to get Windows applications to work, it's likely that someone will have encountered the same difficulties as you and – hopefully found a way to solve them.
Wine is frequently described as an emulator, but in fact it works as a " compatibility layer" offering Linux-based alternatives to the libraries that Windows applications call on during use, and a process — the winerserver — that translates the functions of the Windows kernel and UI into their Linux equivalents. Using these and some clever jiggery-pokery with file systems, Wine convinces Windows apps that they're running on a Microsoft OS and enables them to run happily on Ubuntu with a minimal performance hit. The good news is that it's usually easy to use. First, you need to install Wine: search for it in the Ubuntu Software Centre, or download the latest version from www.winehq.org.
Now, it's time to install your Windows app. Just download the file or insert the CD or DVD, and you can often doubeclick on the standard Windows installer (or let the CD autorun) and install an application just as you would in Windows. Wine handles the whole thing for you, practically transparently. Nor is there any hassle in running installed software: you can either run the application from a desktop shortcut or from Applications I Wine 1 Programs.
Sadly, Wine doesn't always flow smoothly, and not all applications work perfectly first time. Some just won't work whatever you do, while others rely on security systems that scupper Wine. Others will work, but with limited functionality, woeful stability or significant bugs. On the plus side, winehq.org maintains a database of Windows applications, with volunteers testing new software as it appears, and grading them from Platinum (runs flawlessly out of the box) to Garbage ( won't work at all). Office 2007 and Word 2007, for example, are rated as Silver and will work for most English-language users straight away. InDesign CS3 and CS4, however, are listed as Garbage, although they may install and run as part of an Adobe Creative Suite.
It's important to note that these findings are dependent on who and how many people have tested, and that your mileage will vary. For example, the Office 2010 32-bit installer is currently listed as Bronze, while Word 2010 is listed as Garbage. However, we've had people within the PC Pro office comfortably using Word 2010 within Ubuntu.
Meanwhile, you'll find some games listed as Platinum, then struggle for hours to get them working in Ubuntu. It's also entirely possible to find applications that will fail on your first attempt to install, but succeed on the second for no real reason. Overall, however, the WineHQ database is a fairly reliable guide, and worth consulting if you need to use a specific application.
TroubleshootingWine
What can you do if Wine doesn't work? Well, there are some useful tricks you might want to deploy. First, it's possible to configure Wine to behave like a specific version &Windows, by going to Applications I Wine I Configure Wine, clicking the Add Application button to add a Windows application to the list, and then setting the Windows Version using the dropdown menu at the bottom of the screen.
In some cases, you can also use the Graphics settings tab of the Wine Configuration menu to either start the application within a virtual desktop or switch off Direct3D hardware support. Of course, doing so might make some applications, notably games, virtually unusable. There are also Wine plugins, such as the incredibly useful Winetricks script, which install additional Windows libraries and ensure maximum compatibility.
Some of these are integrated into the default Ubuntu Wine installation or the latest version downloadable from WineHQ – but don't take anything for granted. You can see more detailed instructions at http://wiki. winehq.org/winetricics. If you're planning to run games then give the PlayOnLinux application a try. This acts as a front-end for Wine and incorporates a range of Wine scripts and additional Windows libraries, all in aid of getting as many games as possible to run. It also supports Valve's Steam client, allowing you to persuade a number of games that you may have already purchased on a Windows PC to run within Ubuntu using Wine. Making heavier use of graphics and audio hardware, games can occasionally be challenging to get working, but the WineHQ apps database offers excellent support.
Most of all, remember that the WineHQ database contains a mass of information, and that Google is your friend. With so many Ubuntu users trying to get Windows applications to work, it's likely that someone will have encountered the same difficulties as you and – hopefully found a way to solve them.
Kexi
Kexi, part of the KOffice suite, allows anyone to create, populate, and maintain a database.
The open source world offers a number of solutions for managing data. SQLite is a tiny yet powerful database; MySQL is extremely popular with web developers; and PostgreSQL boasts transactional features on par with Oracle. All three solutions have command line and programmatic interfaces, and both MySQL and PostgreSQL have support for browser-based management. SQLite, MySQL, and PostgreSQL all have strengths and weaknesses, and each is capable, but sadly, none of the three is suitable for the new Linux netbook owner or casual desktop user. Indeed, Linux users have had few options for a friendly, graphical, and lightweight database solution akin to Microsoft Access.
A Windows user can build tables, enter data, formulate queries, and craft reports in Access with little more than a mouse. The OpenOffice.org Base tool attempts a similar mission within Linux environments, but some popular distros don't include Base with the default desktop, and many Linux users are still searching for other options.
The Kexi database development tool is another alternative for many Linux users. Kexi, billed as “Access for Linux,” has been available since 2006, and the latest stable release, Kexi 1.1.3, is part of the KOffice 1.6 suite. Kexi 1.1.3, which I used for this article, dates to April 2008, but Kexi 2.0 is marching through a series of pre-releases, with the intention to ship by the end of the year.
Introducing Kexi
Kexi, like Microsoft Access, offers a friendly user interface to create, populate, and maintain a database. Many tasks in Kexi are like filling out a spreadsheet. For example, to create a table, you fill out a row for each field in the table. Then you name each field, assign a type (such as date, integer, or text), and perhaps link the new field to an existing field in another table, thereby relating the two tables (hence the name “relational database”). Once you define a table, you can populate it with data as you would a spreadsheet.
Crafting queries in Kexi is a little more involved but does not require any knowledge of SQL. Instead, a query is largely drag and drop: Choose one or more tables, relate one field to another by point and click, and select the fields you want to display. Kexi also offers drag-and-drop form building to create interfaces to enter data, and like Access, Kexi either can use its own database format or can connect to another engine for more oomph. In Kexi’s case, you can use MySQL. If you dislike the phpMyAdmin interface, try Kexi to browse an existing MySQL database.
Kexi is modal. The Design View creates and edits tables, queries, and forms, whereas the Data View shows the end result. Building an application in Kexi is typified by switching from one mode to the other. First I’ll use Kexi to build an application, exploring its features along the way.
Installing Kexi
The easiest and fastest way to install Kexi is via your package manager. On Debian and Ubuntu variants, use apt-get or one of the equivalent graphical front ends:
$ sudo apt-get update
$ sudo apt-get install kexi
Kexi depends on KDE [5]. If you do not use KDE or any of its components, the addition of Kexi, KDE, and the latter package’s attendant dependencies could add some 100 packages to your system, including the KOffice suite. Otherwise, the process is very quick. After the installation finishes, run Kexi:
$ kexi
When the Choose Project window pops up, choose Blank Database and click OK. The next prompt asks where you would like to create the database. The two choices are in a file or in a MySQL database server. To keep things simple, choose New Project Stored in File. When Kexi asks for a database name, enter Example One, click OK, and use the browse dialog to choose a location for the file on your disk.
The pane on the left collects your tables, queries, forms, and scripts (the latter is an experimental feature and is ignored here). Kexi calls each of those entities an object. To create a new table, for example, rightclick on Tables and choose Create Object: Table. (From the menubar: Choose Insert| Table.) The tool palette is immediately below the menubar; the list of available tools changes depending on the task at hand. The central area of the Kexi window is the heart of the application, in that most of your work is performed here. The rightmost panel, which is empty in but shown in subsequent figures, is used to edit the attributes of fields.
Source of Information : Linux Pro Magazine August 2009
The open source world offers a number of solutions for managing data. SQLite is a tiny yet powerful database; MySQL is extremely popular with web developers; and PostgreSQL boasts transactional features on par with Oracle. All three solutions have command line and programmatic interfaces, and both MySQL and PostgreSQL have support for browser-based management. SQLite, MySQL, and PostgreSQL all have strengths and weaknesses, and each is capable, but sadly, none of the three is suitable for the new Linux netbook owner or casual desktop user. Indeed, Linux users have had few options for a friendly, graphical, and lightweight database solution akin to Microsoft Access.
A Windows user can build tables, enter data, formulate queries, and craft reports in Access with little more than a mouse. The OpenOffice.org Base tool attempts a similar mission within Linux environments, but some popular distros don't include Base with the default desktop, and many Linux users are still searching for other options.
The Kexi database development tool is another alternative for many Linux users. Kexi, billed as “Access for Linux,” has been available since 2006, and the latest stable release, Kexi 1.1.3, is part of the KOffice 1.6 suite. Kexi 1.1.3, which I used for this article, dates to April 2008, but Kexi 2.0 is marching through a series of pre-releases, with the intention to ship by the end of the year.
Introducing Kexi
Kexi, like Microsoft Access, offers a friendly user interface to create, populate, and maintain a database. Many tasks in Kexi are like filling out a spreadsheet. For example, to create a table, you fill out a row for each field in the table. Then you name each field, assign a type (such as date, integer, or text), and perhaps link the new field to an existing field in another table, thereby relating the two tables (hence the name “relational database”). Once you define a table, you can populate it with data as you would a spreadsheet.
Crafting queries in Kexi is a little more involved but does not require any knowledge of SQL. Instead, a query is largely drag and drop: Choose one or more tables, relate one field to another by point and click, and select the fields you want to display. Kexi also offers drag-and-drop form building to create interfaces to enter data, and like Access, Kexi either can use its own database format or can connect to another engine for more oomph. In Kexi’s case, you can use MySQL. If you dislike the phpMyAdmin interface, try Kexi to browse an existing MySQL database.
Kexi is modal. The Design View creates and edits tables, queries, and forms, whereas the Data View shows the end result. Building an application in Kexi is typified by switching from one mode to the other. First I’ll use Kexi to build an application, exploring its features along the way.
Installing Kexi
The easiest and fastest way to install Kexi is via your package manager. On Debian and Ubuntu variants, use apt-get or one of the equivalent graphical front ends:
$ sudo apt-get update
$ sudo apt-get install kexi
Kexi depends on KDE [5]. If you do not use KDE or any of its components, the addition of Kexi, KDE, and the latter package’s attendant dependencies could add some 100 packages to your system, including the KOffice suite. Otherwise, the process is very quick. After the installation finishes, run Kexi:
$ kexi
When the Choose Project window pops up, choose Blank Database and click OK. The next prompt asks where you would like to create the database. The two choices are in a file or in a MySQL database server. To keep things simple, choose New Project Stored in File. When Kexi asks for a database name, enter Example One, click OK, and use the browse dialog to choose a location for the file on your disk.
The pane on the left collects your tables, queries, forms, and scripts (the latter is an experimental feature and is ignored here). Kexi calls each of those entities an object. To create a new table, for example, rightclick on Tables and choose Create Object: Table. (From the menubar: Choose Insert| Table.) The tool palette is immediately below the menubar; the list of available tools changes depending on the task at hand. The central area of the Kexi window is the heart of the application, in that most of your work is performed here. The rightmost panel, which is empty in but shown in subsequent figures, is used to edit the attributes of fields.
Source of Information : Linux Pro Magazine August 2009
Talking with VoIP in Ubuntu
Ubuntu users are not restricted to the world of text and graphics. There are three different VoIP packages available for Dapper. The default Dapper desktop includes Ekiga-formerly called GnomeMeeting. This is an open source VoIP system that supports SIP and H.323 protocols. This means you can use Ekiga to talk to other Ekiga users, as well as Microsoft NetMeeting, Skype, and WengoPhone users. Skype and WengoPhone are also available for Ubuntu. Unlike Ekiga, Skype and WengoPhone provide VoIP to landline services. For a small fee, you can use your computer to dial a real telephone number.
Each of these VoIP choices offers similar functionality. Each supports audio, video, and text messaging, each can call directly or use a centralize registration and directory system, and each can handle multiple calls at once. The main differences are in licensing and landline access: Ekiga and WengoPhone are open source, whereas Skype is not, and only Skype and WengoPhone allow you to call a real telephone number (for a nominal fee). Although each of these systems can chat with a Microsoft NetMeeting user, none of them can view a shared NetMeeting desktop.
Ubuntu does not support all video devices. But if Ubuntu supports the device, then Ekiga and WengoPhone can probably use it for video conferencing. Unfortunately, Skype (for Linux) does not support video conferencing.
>>> Read more about Instant Messaging with Gaim in Ubuntu <<<
Source of Information : Hacking Ubuntu
Each of these VoIP choices offers similar functionality. Each supports audio, video, and text messaging, each can call directly or use a centralize registration and directory system, and each can handle multiple calls at once. The main differences are in licensing and landline access: Ekiga and WengoPhone are open source, whereas Skype is not, and only Skype and WengoPhone allow you to call a real telephone number (for a nominal fee). Although each of these systems can chat with a Microsoft NetMeeting user, none of them can view a shared NetMeeting desktop.
Ubuntu does not support all video devices. But if Ubuntu supports the device, then Ekiga and WengoPhone can probably use it for video conferencing. Unfortunately, Skype (for Linux) does not support video conferencing.
>>> Read more about Instant Messaging with Gaim in Ubuntu <<<
Source of Information : Hacking Ubuntu
Sharing Printers in Ubuntu
After you have added your printer, you can share it with other people on the network. Sharing the printer requires knowing who will use it: other system using CUPS, other devices using LPD, or other computers running Windows.
Sharing With CUPS
To share the printer with CUPS, you will need to configure both the printer server and the client.
On the print server:
1. Edit /etc/cups/cups.d/ports.conf and change the line that reads Listen localhost:631 to Port 631. This tells CUPS to allow printing from any remote system.
2. (Optional) Edit /etc/cups/cups.d/browse.conf and change Browsing off to Browsing on. This allows the server to announce the printer's availability to other hosts on the network. The default is an announcement every 30 seconds.
3. Restart the CUPS subsystem on the print server.
sudo /etc/init.d/cupsys restart
On the print client:
1. Go to System -> Administration -> Printing to open the printer applet.
2. Double-click New Printer to configure the device.
3. Select a Network Printer and the CUPS Printer (IPP) protocol.
4. Enter the printer host name and printer name as a URL. For example, if the server is named printer.example.com and the printer is called Okidata127, then you would use ipp://printer.example.com/printers/Okidata127.
5. Click the Forward button and select the printer model.
6. Create a description for the printer
7. Click on the Apply button to create the printer.
CUPS provides many configuration options, but it has a long history of being a security risk. The CUPS installation includes a web-based administration interface. By default, it is not accessible remotely. (But if you followed the steps under Sharing With CUPS, then it is remotely accessible.) The URL for this interface is http://localhost:631/.
Although you can use the CUPS web interface to view and manage the print queue, the default administration interface does not permit adding new printers or changing configurations. This functionality is disabled in Ubuntu primarily due to security risks. Enabling this interface is not recommended. Instead, if you need to modify printer configurations, use the System -> Preferences -> Printing applet.
Sharing With LPD
Enabling LPD support is a little more complex since Ubuntu does not normally include servers.
On the print server:
1. Install xinetd on the print server. This is the extended Internet daemon for running processes.
sudo apt-get install xinetd
2. Create a configuration file for the printer service. This requires creating a file called /etc/xinetd.d/printer. The contents should look like this:
service printer
{
socket_type = stream
protocol = tcp
wait = no
user = lp
group = sys
server = /usr/lib/cups/daemon/cups-lpd
server_args = -o document-format=application/octet/stream
}
3. Restart the xinetd server.
sudo /etc/init.d/xinetd restart
On the printer client:
1. Go to System -> Administration -> Printing to open the printer applet.
2. Double-click New Printer to configure the device.
3. Select a Network Printer and the Unix Printer (lpd) protocol.
4. Enter the print server host name (or IP address) in the Host field and the CUPS printer name under the Queue field.
5. Continue through the remaining screens to select the printer type and configuration. On the final screen, click the Apply button to create the printer.
Sharing with Windows
It is usually best to use a native printing protocol. For Ubuntu, LPD and CUPS are native. Most versions of Windows support network printing to LPD servers, so sharing with LPD should be enough, but it requires user to configure their printers.
Native Windows environments can share printers using the Server Message Block (SMB) protocol. This allows Windows users to browse the Network Neighborhood and add any shared printers-very little manual configuration is required. For Ubuntu to share a printer with Windows users requires installing SAMBA, an open source SMB server.
On the print server:
1. Install SAMBA on the print server. This provides Windows SMB support.
sudo apt-get install samba
2. Create a directory for the print spool.
sudo mkdir /var/spool/smbprint
3. Edit the SAMBA configuration file: /etc/samba/smb.conf.
4. Change workgroup = to match your Windows Workgroup.
5. Under the [global] section is an area for printer configuration. Uncomment (remove the leading ;) the load printers = yes and CUPS printing lines.
6. Set the [printers] section to look like this:
[printers]
comment = All Printers
browseable = no
security = share
use client driver = yes
guest ok = yes
path = /var/spool/smbprint
printable = yes
public = yes
writable = yes
create mode = 0700
This setting allows any Windows client to access the printers without a password.
7. (Optional) Under the [printers] section, set browseable = yes. This allows Windows systems to see the printers through the Network Neighborhood.
8. Restart the SAMBA server.
sudo /etc/init.d/samba restart
On the Windows client, you can add the printer as if it were a Windows printer. For example, if the server's name is printer.example.com and the printer is Okidata127, then the shared printer resource would be \\printer.example.com\Okidata127. Windows clients will need to install their own print drivers.
>>> Read more about Adding Printers in Ubuntu <<<
Source of Information : Hacking Ubuntu Serious Hacks Mods and Customizations
Sharing With CUPS
To share the printer with CUPS, you will need to configure both the printer server and the client.
On the print server:
1. Edit /etc/cups/cups.d/ports.conf and change the line that reads Listen localhost:631 to Port 631. This tells CUPS to allow printing from any remote system.
2. (Optional) Edit /etc/cups/cups.d/browse.conf and change Browsing off to Browsing on. This allows the server to announce the printer's availability to other hosts on the network. The default is an announcement every 30 seconds.
3. Restart the CUPS subsystem on the print server.
sudo /etc/init.d/cupsys restart
On the print client:
1. Go to System -> Administration -> Printing to open the printer applet.
2. Double-click New Printer to configure the device.
3. Select a Network Printer and the CUPS Printer (IPP) protocol.
4. Enter the printer host name and printer name as a URL. For example, if the server is named printer.example.com and the printer is called Okidata127, then you would use ipp://printer.example.com/printers/Okidata127.
5. Click the Forward button and select the printer model.
6. Create a description for the printer
7. Click on the Apply button to create the printer.
CUPS provides many configuration options, but it has a long history of being a security risk. The CUPS installation includes a web-based administration interface. By default, it is not accessible remotely. (But if you followed the steps under Sharing With CUPS, then it is remotely accessible.) The URL for this interface is http://localhost:631/.
Although you can use the CUPS web interface to view and manage the print queue, the default administration interface does not permit adding new printers or changing configurations. This functionality is disabled in Ubuntu primarily due to security risks. Enabling this interface is not recommended. Instead, if you need to modify printer configurations, use the System -> Preferences -> Printing applet.
Sharing With LPD
Enabling LPD support is a little more complex since Ubuntu does not normally include servers.
On the print server:
1. Install xinetd on the print server. This is the extended Internet daemon for running processes.
sudo apt-get install xinetd
2. Create a configuration file for the printer service. This requires creating a file called /etc/xinetd.d/printer. The contents should look like this:
service printer
{
socket_type = stream
protocol = tcp
wait = no
user = lp
group = sys
server = /usr/lib/cups/daemon/cups-lpd
server_args = -o document-format=application/octet/stream
}
3. Restart the xinetd server.
sudo /etc/init.d/xinetd restart
On the printer client:
1. Go to System -> Administration -> Printing to open the printer applet.
2. Double-click New Printer to configure the device.
3. Select a Network Printer and the Unix Printer (lpd) protocol.
4. Enter the print server host name (or IP address) in the Host field and the CUPS printer name under the Queue field.
5. Continue through the remaining screens to select the printer type and configuration. On the final screen, click the Apply button to create the printer.
Sharing with Windows
It is usually best to use a native printing protocol. For Ubuntu, LPD and CUPS are native. Most versions of Windows support network printing to LPD servers, so sharing with LPD should be enough, but it requires user to configure their printers.
Native Windows environments can share printers using the Server Message Block (SMB) protocol. This allows Windows users to browse the Network Neighborhood and add any shared printers-very little manual configuration is required. For Ubuntu to share a printer with Windows users requires installing SAMBA, an open source SMB server.
On the print server:
1. Install SAMBA on the print server. This provides Windows SMB support.
sudo apt-get install samba
2. Create a directory for the print spool.
sudo mkdir /var/spool/smbprint
3. Edit the SAMBA configuration file: /etc/samba/smb.conf.
4. Change workgroup = to match your Windows Workgroup.
5. Under the [global] section is an area for printer configuration. Uncomment (remove the leading ;) the load printers = yes and CUPS printing lines.
6. Set the [printers] section to look like this:
[printers]
comment = All Printers
browseable = no
security = share
use client driver = yes
guest ok = yes
path = /var/spool/smbprint
printable = yes
public = yes
writable = yes
create mode = 0700
This setting allows any Windows client to access the printers without a password.
7. (Optional) Under the [printers] section, set browseable = yes. This allows Windows systems to see the printers through the Network Neighborhood.
8. Restart the SAMBA server.
sudo /etc/init.d/samba restart
On the Windows client, you can add the printer as if it were a Windows printer. For example, if the server's name is printer.example.com and the printer is Okidata127, then the shared printer resource would be \\printer.example.com\Okidata127. Windows clients will need to install their own print drivers.
>>> Read more about Adding Printers in Ubuntu <<<
Source of Information : Hacking Ubuntu Serious Hacks Mods and Customizations
Examining Ubuntu Boot Process with Boot Chart
Boot chart (www.bootchart.org), by Ziga Mahkovec, is an impressive and useful utility that monitors the boot process, creating data files that it uses to generate a graphical representation of your system’s boot process.
Boot chart isn’t installed by default on Ubuntu systems, but you can install it manually using either the Synaptic Package Manager or the apt-get utility. When installed on Ubuntu systems, Boot chart adds itself to the initial RAM filesystem used by your kernel to capture data about the boot process, and then adds a script to your runtime root filesystem’s startup process (/etc/init.d/stop-bootchart, symlinked to /etc/rc2.d/S99stop-bootchart) that processes the collected data and generates the graphical record of the boot/startup process.
Boot chart uses a Java application to generate a Portable Network Graphics (PNG) graphics file in /var/log/bootchart. This file is named based on the day that it was created and a version number; so that multiple files created on the same day don’t overwrite each other. You can configure Boot chart to produce graphics in SVG or EPS formats (or to preserve the data files that it creates) by modifying the /etc/init.d/stop-bootchart script.
Not only is it really cool to have a graphical record of the boot process, but that graphical record can becvery valuable in terms of helping you identify startup scripts that are running that you don’t want or need to run, extra invocations of system or X Window system processes, and so on. Boot chart adds very little overhead to your system’s startup process, but the view of the system startup process that it provides can be invaluable.
On Linux distributions that do not yet use an initial RAM filesystem (but still use an initial RAM disk), you can still use Boot chart by installing it on your system and modifying the GRUB boot entry for your kernel to include an init=/sbin/bootchartd entry so that the system runs the Bootchart data collection script before starting the /sbin/init program and executing the normal sequence of startup scripts.
>>> Read more about Optimizing the Ubuntu Boot Process <<<
Source of Information : Ubuntu Linux - Bible
Boot chart isn’t installed by default on Ubuntu systems, but you can install it manually using either the Synaptic Package Manager or the apt-get utility. When installed on Ubuntu systems, Boot chart adds itself to the initial RAM filesystem used by your kernel to capture data about the boot process, and then adds a script to your runtime root filesystem’s startup process (/etc/init.d/stop-bootchart, symlinked to /etc/rc2.d/S99stop-bootchart) that processes the collected data and generates the graphical record of the boot/startup process.
Boot chart uses a Java application to generate a Portable Network Graphics (PNG) graphics file in /var/log/bootchart. This file is named based on the day that it was created and a version number; so that multiple files created on the same day don’t overwrite each other. You can configure Boot chart to produce graphics in SVG or EPS formats (or to preserve the data files that it creates) by modifying the /etc/init.d/stop-bootchart script.
Not only is it really cool to have a graphical record of the boot process, but that graphical record can becvery valuable in terms of helping you identify startup scripts that are running that you don’t want or need to run, extra invocations of system or X Window system processes, and so on. Boot chart adds very little overhead to your system’s startup process, but the view of the system startup process that it provides can be invaluable.
On Linux distributions that do not yet use an initial RAM filesystem (but still use an initial RAM disk), you can still use Boot chart by installing it on your system and modifying the GRUB boot entry for your kernel to include an init=/sbin/bootchartd entry so that the system runs the Bootchart data collection script before starting the /sbin/init program and executing the normal sequence of startup scripts.
>>> Read more about Optimizing the Ubuntu Boot Process <<<
Source of Information : Ubuntu Linux - Bible
What Is Ubuntu BASH Shell?
The best way of explaining the BASH shell to a Windows user is to compare it to the DOS command prompt. It lets you issue commands directly to the operating system via the keyboard without needing to mess around with the mouse and windows (although it is sometimes possible to use the mouse within a BASH shell to copy and paste text, and sometimes to control simple textbased menus). The big difference is that the BASH shell has commands for just about everything you might do on your system, whereas the DOS command prompt is restricted to tools capable of manipulating and viewing files and directories, and on Windows 2000/XP machines, configuring certain system settings.
In the old days, the DOS command prompt was also the visible layer of an entire operating system in which DOS programs were designed to be run. However, the shell is merely one of the many ways of accessing the Linux kernel and subsystems. It’s true that many programs are designed to run via the BASH shell, but technically speaking, most actually run on the Linux operating system, and simply take input and show their input via the BASH shell.
Linux finds itself with the BASH shell largely because Linux is a clone of Unix. In the early days of Unix, the text-based shell was all that was offered as a way of letting users control the computer. Typing commands in directly is one of the most fundamental ways of controlling any type of computer and, in the evolutionary scale, comes straight after needing to set switches and watch blinking lights in order to run programs.
That the BASH shell can trace its history back to the early days of Unix might sound like a tacit indication that the BASH is somehow primitive—far from it. It’s one of the most efficient and immediate ways of working with your computer. Many people consider the commandline shell to be a way of using a computer that has yet to be superseded by a better method.
Most Linux distributions come with a choice of different kinds of shell programs. However, the default shell is BASH, as is the case in Ubuntu. BASH stands for Bourne Again SHell. This is based on the Bourne shell, a tried-and-tested program that originated in the early days of Unix.
The other shells available include PDKSH (Public Domain Korn SHell, based on Korn
Shell, another early Unix shell), and ZSH (Z SHell), a more recent addition. These are usually used by people who want to program Linux in various ways, or by those who simply aren’t happy with BASH.
The BASH shell is considered by many to be the best of all worlds in that it’s easy enough for beginners to learn yet is able to grow with them and offer additional capabilities as necessary. BASH is capable of scripting, for example, which means you can even create your own simple programs.
When you run a shell on a Linux system, the system refers to it as a tty device. This stands for teletypewriter, a direct reference to the old system of inputting data on what were effectively electronic typewriters connected to mainframe computers. These, in turn, took their names from the devices used to automate the sending and receiving of telegrams in the early part of the twentieth century.
Technically speaking, a shell refers to any type of user interface. The windowing system offered by Windows and Macintosh operating systems are a type of shell. However, many people in the Linux and Unix worlds use the word shell as shorthand for a shell that offers a command line.
>>> Read more about Why use Shell in Ubuntu <<<
Source of Information : Beginning Ubuntu Linux - From Novice To Professional
In the old days, the DOS command prompt was also the visible layer of an entire operating system in which DOS programs were designed to be run. However, the shell is merely one of the many ways of accessing the Linux kernel and subsystems. It’s true that many programs are designed to run via the BASH shell, but technically speaking, most actually run on the Linux operating system, and simply take input and show their input via the BASH shell.
Linux finds itself with the BASH shell largely because Linux is a clone of Unix. In the early days of Unix, the text-based shell was all that was offered as a way of letting users control the computer. Typing commands in directly is one of the most fundamental ways of controlling any type of computer and, in the evolutionary scale, comes straight after needing to set switches and watch blinking lights in order to run programs.
That the BASH shell can trace its history back to the early days of Unix might sound like a tacit indication that the BASH is somehow primitive—far from it. It’s one of the most efficient and immediate ways of working with your computer. Many people consider the commandline shell to be a way of using a computer that has yet to be superseded by a better method.
Most Linux distributions come with a choice of different kinds of shell programs. However, the default shell is BASH, as is the case in Ubuntu. BASH stands for Bourne Again SHell. This is based on the Bourne shell, a tried-and-tested program that originated in the early days of Unix.
The other shells available include PDKSH (Public Domain Korn SHell, based on Korn
Shell, another early Unix shell), and ZSH (Z SHell), a more recent addition. These are usually used by people who want to program Linux in various ways, or by those who simply aren’t happy with BASH.
The BASH shell is considered by many to be the best of all worlds in that it’s easy enough for beginners to learn yet is able to grow with them and offer additional capabilities as necessary. BASH is capable of scripting, for example, which means you can even create your own simple programs.
When you run a shell on a Linux system, the system refers to it as a tty device. This stands for teletypewriter, a direct reference to the old system of inputting data on what were effectively electronic typewriters connected to mainframe computers. These, in turn, took their names from the devices used to automate the sending and receiving of telegrams in the early part of the twentieth century.
Technically speaking, a shell refers to any type of user interface. The windowing system offered by Windows and Macintosh operating systems are a type of shell. However, many people in the Linux and Unix worlds use the word shell as shorthand for a shell that offers a command line.
>>> Read more about Why use Shell in Ubuntu <<<
Source of Information : Beginning Ubuntu Linux - From Novice To Professional
Ubuntu Linux related posts
Examining Ubuntu Boot Process with Boot Chart
Boot chart (www.bootchart.org), by Ziga Mahkovec, is an impressive and useful utility that monitors the boot process, creating data files that it uses to generate a graphical representation of your system’s boot process.
What Is Ubuntu BASH Shell?
The best way of explaining the BASH shell to a Windows user is to compare it to the DOS command prompt. It lets you issue commands directly to the operating system via the keyboard without needing to mess around with the mouse and windows (although it is sometimes possible to use the mouse within a BASH shell to copy and paste text, and sometimes to control simple textbased menus). The big difference is that the BASH shell has commands for just about everything you might do on your system, whereas the DOS command prompt is restricted to tools capable of manipulating and viewing files and directories, and on Windows 2000/XP machines, configuring certain system settings.
Sharing Printers in Ubuntu
After you have added your printer, you can share it with other people on the network. Sharing the printer requires knowing who will use it: other system using CUPS, other devices using LPD, or other computers running Windows.
Talking with VoIP in Ubuntu
Ubuntu users are not restricted to the world of text and graphics. There are three different VoIP packages available for Dapper. The default Dapper desktop includes Ekiga-formerly called GnomeMeeting.
Boot chart (www.bootchart.org), by Ziga Mahkovec, is an impressive and useful utility that monitors the boot process, creating data files that it uses to generate a graphical representation of your system’s boot process.
What Is Ubuntu BASH Shell?
The best way of explaining the BASH shell to a Windows user is to compare it to the DOS command prompt. It lets you issue commands directly to the operating system via the keyboard without needing to mess around with the mouse and windows (although it is sometimes possible to use the mouse within a BASH shell to copy and paste text, and sometimes to control simple textbased menus). The big difference is that the BASH shell has commands for just about everything you might do on your system, whereas the DOS command prompt is restricted to tools capable of manipulating and viewing files and directories, and on Windows 2000/XP machines, configuring certain system settings.
Sharing Printers in Ubuntu
After you have added your printer, you can share it with other people on the network. Sharing the printer requires knowing who will use it: other system using CUPS, other devices using LPD, or other computers running Windows.
Talking with VoIP in Ubuntu
Ubuntu users are not restricted to the world of text and graphics. There are three different VoIP packages available for Dapper. The default Dapper desktop includes Ekiga-formerly called GnomeMeeting.
Subscribe to:
Posts (Atom)
Cloud storage is for blocks too, not just files
One of the misconceptions about cloud storage is that it is only useful for storing files. This assumption comes from the popularity of file...
-
Smss is like any other user-mode process except for two differences: First, Windows considers Smss a trusted part of the operating system. S...
-
When Winload calls Ntoskrnl, it passes a data structure called the loader parameter block that contains the system and boot partition paths,...
-
Many of the virus, adware, security, and crash problems with Windows occu when someone installs a driver of dubious origin. The driver suppo...