Monday, September 16, 2024

Toshiba e studio 2829a print using lan cable without router

 To set up a Toshiba e-STUDIO 2829A printer to print using a LAN cable without a router, you'll need to directly connect the printer to your computer with an Ethernet cable and configure both devices to communicate with each other. Here's how you can do it:

  1. Connect the Printer to the Computer:

    • Plug one end of the Ethernet cable into the LAN port of the Toshiba e-STUDIO 2829A.
    • Plug the other end of the Ethernet cable into the Ethernet port of your computer.
  2. Set Static IP Addresses:

    • Since there is no router to assign IP addresses dynamically, you need to set static IP addresses for both the printer and the computer.
  3. Configure the Printer’s IP Address:

    • Access the printer’s control panel.
    • Navigate to the network settings (this can usually be found under Admin or System settings).
    • Set a static IP address for the printer. For example, you might use 192.168.0.10.
    • Ensure the subnet mask is set to 255.255.255.0.
    • Save the settings.
  4. Configure the Computer’s IP Address:

    • On your computer, go to the network settings.
      • Windows:
        1. Open Control Panel.
        2. Go to Network and Sharing Center.
        3. Click on Change adapter settings.
        4. Right-click on the Ethernet adapter connected to the printer and select Properties.
        5. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
        6. Choose "Use the following IP address" and set the IP address to 192.168.0.20 (it should be different from the printer’s IP).
        7. Set the subnet mask to 255.255.255.0.
        8. Leave the Default Gateway and DNS fields blank.
        9. Click OK to save the settings.
      • Mac:
        1. Open System Preferences.
        2. Go to Network.
        3. Select Ethernet and click on Advanced.
        4. Go to the TCP/IP tab.
        5. Set Configure IPv4 to Manually.
        6. Enter 192.168.0.20 for the IP address and 255.255.255.0 for the subnet mask.
        7. Leave the Router field blank.
        8. Click OK and Apply to save the settings.
  5. Add the Printer on the Computer:

    • Now, you need to add the printer on your computer.
      • Windows:
        1. Go to Control Panel.
        2. Select Devices and Printers.
        3. Click on Add a printer.
        4. Choose "Add a local printer or network printer with manual settings".
        5. Select "Create a new port" and choose Standard TCP/IP Port.
        6. Enter the printer’s IP address (192.168.0.10).
        7. Follow the prompts to install the printer driver (you may need the printer driver software from Toshiba's website).
      • Mac:
        1. Open System Preferences.
        2. Go to Printers & Scanners.
        3. Click the plus (+) button to add a printer.
        4. Select the IP tab.
        5. Enter the printer’s IP address (192.168.0.10).
        6. Choose the appropriate protocol (typically HP Jetdirect - Socket).
        7. Enter a name for the printer and select the appropriate driver.
        8. Click Add.

After completing these steps, your Toshiba e-STUDIO 2829A printer should be set up to print using a LAN cable directly connected to your computer without a router

Thursday, August 1, 2024

PHP releases

 https://www.apachelounge.com/viewtopic.php?t=6359

https://windows.php.net/downloads/releases/

Tuesday, July 16, 2024

How to install SSL on CWP hostname?



1 - Check that you should have an A record for the hostname. For example if your server hostname is cp.hostinpk.com, then you should have an A record for "cp" pointing to server IP


2 - Login to CWP Admin Panel>> Server Settings>>Change Hostname and then hit "Change Hostname" button after putting your desired hostname (in my case cp.hostinpk.com). This will only generate a valid LE SSL for your hostname when an A record is present against hostname


3 - Perform following command from shell

service cwpsrv reload

Saturday, June 15, 2024

How to merge a branch to main branch in Github.


In Terminal or Command Prompt: 

git checkout main [switch to main branch]

git pull origin main
 [grab latest updates from main branch]

git merge master merge [master branch to your main branch]

git push origin main [push your changes to main]

Wednesday, May 1, 2024

Sunday, April 21, 2024

Exim configuration & Filter

 There are two things that need to be configured. The system filter and the specific transport. If you only want to forward emails and not save them to the filesystem, the transport section is not needed.

Edit your exim configuration and add these lines at the top:

# /etc/exim.conf top

system_filter = /etc/system_filter.exim

system_filter_directory_transport = local_copy_outgoing

Add these lines lower in the configuration, in your transports section:


# /etc/exim.conf transpors section

local_copy_outgoing:

  driver = appendfile

  delivery_date_add

  envelope_to_add

  return_path_add

  group = mail

  user = mail

  mode = 0660

  maildir_format = true

  create_directory = true

Change the mail user to the specific user account on your system exim runs at. It could be named exim. You can check that with the getent passwd command.


To configure the actual saving and filtering create or edit the /etc/system_filter.exim file. The below snippets should be placed in that file, according to what you're trying to acomplish.


To save all outgoing mail from a specific domain to a maildir folder in /var/mail/:


if $sender_address_domain is example.tld

then

unseen save /var/mail/example.tld/mailarchive/.${tr{$sender_address}{.}{_}}.outgoing/

endif

Forward all outgoing from specific domain to specific email address:


if $sender_address_domain is example.tld

then

unseen deliver othermailbox@otherdomain.com

endif

Forward ALL outgoing mail to email address:


unseen deliver othermailbox@otherdomain.com

Save ALL outgoing email to maildir folder:


unseen save /var/mail/${tr{$sender_address_domain}{.}{_}}/mailarchive/${tr{$sender_address}{.}{_}}.outgoing/

The files are saved in a maildir structure:


ls -la /var/mail/example.tld/mailarchive/example\@example.tld.outgoing/new/

total 16

-rw-rw---- 1 mail mail 1632 Dec 15 20:31 1450207897.H829447P10443.example.tld

drwx------ 5 mail mail 4096 Dec 15 20:31 ..

-rw-rw---- 1 mail mail 1747 Dec 15 20:33 1450207983.H51962P10484.example.tld

drwx------ 2 mail mail 4096 Dec 15 20:33 .


Ref: Exim Documentation

How to get Ranking of the Students in Excel using RANK Function

=RANK(number,ref,[order]) To rank in descending order, we will use the formula =RANK(B2,($C$5:$C$10),0) If we want unique ranks, we can use...