Change CUPS printer name - printing

successfully installed my cups printer Ubuntu18.4. When i click the add printer icon in the device side it shows name as "CUPS-BRF-Printer".. I would like to change this name. How to change the default name.. How to change it?

1º Stop CUPS Service
2º Edit /etc/cups/printers.conf and replace the old-name text with the new one. (appears only once)
3º Save the file and start the service

systemctl stop cups.service
nano /etc/cups/printers.conf # change the name of a printer in question
mv /etc/cups/ppd/old_printer_name.ppd /etc/cups/ppd/new_printer_name.ppd # rename the ppd
systemctl start cups.service
source: the answer by FOP, commands were added

Related

Printer Port configuration using redmon and ghostscript, error invalid window handle

I want to print to pdf using Redmon and Ghostscript on windows 10, for which i added a new printer(set drivers to ghostpdf.inf) and added redirection port(RPT1). Now when i configure this port i get the error Invalid window handle, please check the picture. Thanks
Okay you need admin rights -
edit port configuration using cmd as admin with command -
printui.dll PrintUIEntry /p /n "printer name"
It is much better and more stable if you create a new port via "Print Management" of Windows, not via Printer Properties window

Wireshark guidance, I installed it but can't detect any interface. It seems my winPcap is not installed right, any suggestions?

Basically I've installed wireshark on widows 10, but so far no interface is detected on my computer. Do I need to reinstall my wincap?
my winPcap error says:
C:\WINDOWS\system32|drivers\npf.sys
click abort to stop the intsalltion,
retry again or ignore skip the file
I already done this step:
opening a command prompt as administrator (Win+R > cmd > Enter)
navigate to \windows\syswow64
delete Packet.dll
reboot
Install new version of Winpcap
Do I need to delete npf.sys?
The problem you're having is that Winpcap can't be installed because it doesn't have any permission to edit the file C:\WINDOWS\system32|drivers\npf.sys.
All you have to do is right-click on npf.sys < Properties < Security < Edit and check full control and all the other tasks.
You can solve that problem using the cmd window.
Check whether your npf status is "stopped" or not.
You can check your npf status by typing
'sc query npf'
If that status is "stopped", then you have to change it to "running".
You can change that status by typing
'sc start npf'

make an lp script into functioning printer

I'm trying to print to separate printers simultaneously in Ubuntu 14.04
From all of my reading the best option I've seen is to write a script
that sends an lp command to the separate printers.
This is the script I've written so far
!/bin/bash
lp -d printer "$#"
lp -d printer2 "$#"
where printer and printer 2 are the actual printers installed on the system
This script works from a terminal, however I would like to be able to send print jobs directly to a "printer" that is actually the script I've written.
How can I make this lp script into a "printer"
Ok I didn't find a way to do this the way I originally intended, however it is possible with tea4CUPS
great cups backend tool with an easy config file
http://www.pykota.com/software/tea4cups/download
The install instructions are on the download page.
As for printing to multiple printers, add this command in the config file for every printer you wish to print to.
prehook_firstprinter: /usr/bin/lp -d Name of Printer -o raw $TEADATAFILE
Here are the simplest instructions I could write
1. download the tea4cups.gz
Extract it to the home folder, rename it to tea4cups
Open a terminal and run these commands
sudo cp /home/manifester/tea4cups/tea4cups.conf /etc/cups
sudo cp /home/manifester/tea4cups/tea4cups /usr/lib/cups/backend/
sudo chmod 700 /usr/lib/cups/backend/tea4cups
Run this command
sudo gedit /etc/cups/tea4cups.conf
Paste this in the bottom of the document
prehook_firstprinter: /usr/bin/lp -d Name of Printer yes the literal name in the printer window -o raw $TEADATAFILE
you will need a new line for every printer you have, so if you want to print to 3 printers you will need three of the above line each having the name of the printer it will be talking to.
save and close everything
open a terminal and run
sudo service cups restart
open a web browser and go to the browser cups controller
http://localhost:631/admin
go to Add Printer
you should see a printer named "tea4CUPSnothing"
If you don't see it go back and press "Find Printers"
it should be there
Change the info of the printer to "Print all" for all type fields"
Press Continue
The generic printer driver works because the printer doesn't actually exist.
Press Continue
Set Defaults
you should be done, go to your printer window on ubuntu and do a test print.

where is my java file?

I'm using ubuntu and I call gedit by using this command:'sudo gedit filename.java'. I'm newbie in ubuntu so now I can not located that file. Ah I'm using windows XP and ubuntu and I have three disk C,D and E in windows XP the fourth disk for ubuntu is not display in windows XP. Can anyone show me where I can find my file? Thank you very much!
Try looking up the command "find". It will locate files.
The next time you need to find a file and you don't know where it is, just use the locate program included with Ubuntu. Sure, your file most likely won't show up immediately in the slocate database, but it's a really good searcher.
Also, the command line and the run prompt assume that the starting point, that is, the current working directory is always "~" unless you've set it differently. That means that all files and paths are relative to your home folder: /home/username for a user and /root for the root user.
Finally, you do not need to use the sudo command for writing code in your own home directory, and thus you can just stick with gedit filename.java. However, if you ever do need to use a graphical application with root/superuser privileges, use gksu for GTK apps and kdesu for KDE apps. sudo is for when you are running an program or need elevated privileges in a terminal.
Type "man find" into the terminal to get a description of how to use the command. But first place I'd look is the home folder. Open up the terminal and type "~" without quotes.
Open a terminal again ( from where you initially typed sudo ) and type ls -l you have to find it there.

gedit cannot open shoes2.run

I've just downloaded shoes but can't get them out the box.
double clicked on shoes2.run in ubuntu intrepid and gedit opened with the following message:
Could not open the file /home/mark/Marks files/2…ng/Programming/shoes2.run using the Unicode (UTF-8) character coding.
Please check that you are not trying to open a binary file.
Select a different character coding from the menu and try again.
It offered a dropdown with 2 options and a retry button:
Current locale (UTF-8)
Western (ISO-8859-15)
Neither of them are recognized.
How do i get it running?
m-
I had this same problem. try sudo chmoding the file :
sudo chmod 777 shoes2.run
then try running it as a script
./shoes2.run
that should work.
I am still trying to get shoes2 in my path so I can run it easily like the previous version (which I got through apt-get) right now I have to run it as a script each time I use it.
Good Luck!

Resources