Showing posts with label printer. Show all posts
Showing posts with label printer. Show all posts

Friday, December 23, 2022

Smartcard on UBUNTU, HOW TO SHARE FOLDER AND PRINER ON UBUNTU & ZorinOSLite

Super safe server for peanuts:

1)

 https://ubuntu.com/server/docs/security-smart-cards

https://www.ca.posta.rs/preuzimanje_softvera.htm

2)

HOW TO SHARE FOLDER AND PRINER ON UBUNTU & ZorinOSLite:

https://phoenixnap.com/kb/ubuntu-samba

https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server

https://www.makeuseof.com/set-up-network-shared-folder-ubuntu-with-samba/

https://fedoraforum.org/forum/printthread.php?t=113307&pp=80


Next, we have to make sure CUPS is OK with the sharing. Open up Firefox or your other favourite browser and browse to:

http://localhost:631/printers


Now, browse to:

http://localhost:631/admin


. Make sure that 'Share published printers connected to this system' is checked (enabled).


Note: You need to have administrative privileges to edit the configuration file.

sudo vim /etc/samba/smb.conf

Add the following lines to the bottom of the config file.

[sambashare]
comment= Network Shared Folder by Samba Server on Ubuntu
path = /home/your_username/sambashare
force user = smbuser
force group = smbgroup
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
public = yes
read only = no

Remember to update the path parameter with your username. You can get your username by running the following command:

echo $USER

To exit the Vim editor after making your changes, simply type :wq and press the Enter key.


https://chat.openai.com/auth/login

https://openai.com/blog/chatgpt/

IDS / IPS :

https://openwips-ng.org/

https://www.fail2ban.org/wiki/index.php/Main_Page

https://zeek.org/

https://www.itprc.com/intrusion-prevention-detection-tools/

Do you need encouragement while typing the best code ever?

Try this:


https://www.tp-link.com/us/support/faq/744/

https://www.tp-link.com/us/support/faq/1497/

https://www.tp-link.com/us/support/faq/1529/

Tuesday, October 9, 2018

Printeri vbs dijagnostika upotrebom EnumPrinterConnections @ Network * ПОЛАЗНЕ ОСНОВЕ * ОСНОВНА ИДЕЈА

WshNetwork.EnumPrinterConnections

Enumerate printer connections
Syntax 
      myObject.EnumPrinterConnections

Example:


Set WshNetwork = WScript.CreateObject("WScript.Network")
Set oPrinters = WshNetwork.EnumPrinterConnections


For i = 0 to oPrinters.Count - 1 Step 2
WScript.Echo "Port " & oPrinters.Item(i) & " = " & oPrinters.Item(i+1)
Next

https://ss64.com/vb/enumprinterconnections.html



WshNetwork.SetDefaultPrinter

Assign a remote printer the role Default Printer.
Syntax 
      WshNetwork.SetDefaultPrinter(strPrinterName)

Arguments

   strPrinterName : The remote printer's UNC name.

Examples:

'Set the Default Printer to \\research\library1

Dim WshNetwork
Set WshNetwork = CreateObject("WScript.Network")    
WshNetwork.SetDefaultPrinter "\\research\library1"


' Connect to \\research\library1  and set it as the default.

Set PrinterPath = "\\research\library1"
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set rc = WshNetwork.AddWindowsPrinterConnection(PrinterPath)
If Not rc then
      WScript.Echo("Printer Connection Failed!")
End If
WshNetwork.SetDefaultPrinter PrinterPath
This method fails when using a DOS-based printer connection.
You cannot use the SetDefaultPrinter method find out the name of the current default printer.




https://ss64.com/vb/setdefaultprinter.html