Jalankan perintah sebagai root
touch /forcefsck
Pada komputer dengan VGA card AMD kadang muncul pesan berikut yang selalu muncul saat booting:
Masalah terjadi karena program bawaan AMD. Solusinya adalah dengan men-disable service AMD external Events Utility melalui service di Administrative tools
You need to change a file as shown below, but before type
sudo service cups stop
/etc/cups/printers.conf
is the one you need. Underneath the printer
# Printer configuration file for ...
# Written by cupsd on ...
<DefaultPrinter canon>
AuthInfoRequired username,password
Info Canon ...
...
The AuthInfoRequired
is the one you need. Add it to the printer you need it for if it is not there.
Type
sudo nano /etc/cups/printers.conf
Make the changes : replace "AuthInfoRequired none" with "AuthInfoRequired username,password" type [ctrl] [X] then [Y] then [enter] to exit, save and finaly confirm location.
Then type
sudo service cups start
and print as usual, just type your user credential and hit save when asked if you want ubuntu to store them.
I was able to fix the problem, though I don't quote know why it arose. In the file /etc/cups/printers.conf the authorization for the printer was set to:
AuthInfoRequired none
I changed this to:
AuthInfoRequired username,password
And it now prompts me to enter my credentials when I print something, and it prints without issue.
I got rid of the "Authentication Required to Print" dialog by directly editing the file, "/etc/cups/printers.conf", as follows:
Step 1. Open a terminal window:
[Applications|Accessories|Terminal]
(In the lines below, '$' is the prompt character. Type what comes after it.)
Step 2. Stop the cups server:
$ sudo service cups stop
Step 3. Edit the printers.conf file. I use 'vim' for text editing; you can use whatever editor you like. 'gedit' comes standard with Ubuntu:
$ sudo vim /etc/cups/printers.conf
Near the top of file "/etc/cups/printers.conf" is a line:
AuthInfoRequired username,password
Insert a "#" char in the first column (or, just delete the line):
#AuthInfoRequired username,password
Step 4. Save edited file
Step 5. Restart cups server:
$ sudo service cups start
This should fix the problem. I ran thru the printer config dialog after this change, and it did not change the line back. It seems there is no way to change it except by directly editing the printers.conf file.
I only have one printer, but you may have to repeat for other printers listed in "/etc/cups/printers.conf".
Last edited by manthony121; August 15th, 2010 at 05:15 PM. Reason: Make directions more explicit
I have to print through a Samba server sharing an HP printer. After upgrading to 12.04 I'm no longer able to get it to work.
The printer is shared through a samba server and I need to provide logon info (domain, username and password).
The machine that I'm having trouble with is a fresh install of Ubuntu 12.04 64 bit. As a measure to troubleshoot, I created a fresh install of ubuntu 10.04 32 bit as a virtual box image on the Ubuntu 12.04 64 bit machine and had no trouble getting it to print.
I suspect authentication to be the problem. Any idea as to what is wrong? Any suggestions how to make further troubleshooting? Any information I should provide to enable you to help me?
EDIT: To be more specific, when I want to add a network printer I do this through the GUI and when I need to input credentials it will not verify me (although this works fine on the virtual box).
Print dialog. As username I input domain/username.
If I choose "Prompt user if authentication is required" and then press verify it prompts me for credentials(username, domain and password). If I input username as: domain/username, let domain be empty and supply a password it is able to verify everything. This is the only way that I have made it to verify credentials on Ubuntu 12.04. This however doesn't make me able to print.
I just tried setting up a printer in Ubuntu 12.04 in a similar situation. I want to access printers on a Windows server in a domain. Wasn't working - they were being held for authentication too. My local username on the Ubuntu box is not the same as my Active Directory domain username. (I may be Samba not perfectly set up.) Best solution so far for me:
Choose Add new printer in Printing, click open 'Network Printers', select 'Windows Printer via SAMBA'
Click 'Browse' to browse for printer (it prompts for authentication to access Windows server with printer)
Select the correct printer or enter URI.
URI for new printer in New Printer dialog is now 'smb://servername/printername'
Select 'Set authentication details now'
Enter details as 'domain\username' and password (if I click 'verify' now it says printer is not accessible, but I clicked Forward anyway.)
Select driver
Print test page
Success!
If I chose 'Prompt user if authentication is required' instead of 'Set authentication details now', then the "verify" button reports that the printer is accessible. (This is one of the first things I tried.) But the jobs get held for authentication. I deleted that printer and tried the steps above, ignoring the verify button, and things now seem to work. Perhaps the Verify button doesn't handle usernames of 'domain\username' format, or perhaps I need to have the correct domain name set in my Samba settings in smb.conf.
Try adding the printer without credentials, and then open the list of print jobs after initiating them. Now each job should have the status "Awaiting approval" or similar (My system is Danish), right click, and chose to approve the job. When entering your credentials, put a forward slash in front of your username. That worked for me.
Printing via Samba in 12.04 is broken. See: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/967410
In /etc/samba/smb.conf
, specify the workgroup:
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP # Name of the group in AD
Then run /etc/init.d/smb restart
.
This is an old question, but it happened to me with 16.04 LTS, so I think this problem persists and is worth answering.
sudo vi /etc/cups/printers.conf
Navigate to DeviceURI
line and edit it so that the URI contained username and password, like this:
DeviceURI smb://user:my%20password@workgroup/server/usbprinter1
Keep in mind to UrlEncode the password if it contains unsafe characters; mine contained whitespaces, and the GUI for some reason failed to encode it; this was the entire reason for my problem;
:wq
;sudo service cups restart
to restart the service.Now you will be able to print the test page and use the printer normally.