Howto cups printserver: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
Line 99: Line 99:
  systemctl enable saned
  systemctl enable saned
  systemctl start saned
  systemctl start saned
install airsane:
yay -S airsane
start and enable airsane:
'''CONFIGURE LINUX CLIENT'''
'''CONFIGURE LINUX CLIENT'''



Revision as of 21:41, 28 March 2023

initial setup

set timezone:

timedatectl set-timezone America/Puerto_Rico

set clock month day hour year:

date 032810452023

initialize the pacman keyring and populate signing keys:

pacman-key --init
pacman-key --populate archlinuxarm

configure network

configure wifi:

wpa_passphrase ssid-ame password > /etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf &
dhcpcd wlan0

configure lan:

ip addr add 192.168.75.55/24 dev eth0
ip link set up eth0
ip route add defualt via 192.168.75.1
echo 'nameserver 4.2.2.1' > /etc/resolv.conf
echo 'nameserver 4.2.2.2' >> /etc/resolv.conf

expand sd card

expand sd card:

pacman -S parted
curl -ko /usr/local/bin/expand-sd https://img.vidalinux.com/files/expand-sd
chmod +x /usr/local/bin/expand-sd
expand-sd

update system

update system:

pacman -Syuuu --noconfirm

install base-devel package:

pacman -S --noconfirm base-devel libnewt git sudo usbutils

add alarm user to sudoers:

echo 'alarm ALL=(ALL) ALL' >> /etc/sudoers

installing yay:

su - alarm
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

network

install networkmanager:

pacman -S --noconfirm networkmanager

start and enable networkmanager:

systemctl start NetworkManager
systemctl enable NetworkManager

configure wireless using nmcli:

nmcli device wifi rescan
nmcli device wifi list
nmcli device wifi connect ssid-name --ask

configure lan using nmcli:

systemctl start NetworkManager && \
systemctl enable NetworkManager && \
nmcli con del "Wired connection 1" && \
nmcli con del eth0 && \
nmcli con add con-name eth0 ifname eth0 ipv4.method manual ipv4.address 192.168.75.114/24 ipv4.gateway 192.168.75.1 ipv4.dns 4.2.2.1,4.2.2.2 type ethernet autoconnect yes

install cups

install cups packages:

pacman -S --noconfirm a2ps cups cups-filters cups-pdf cups-pk-helper bluez-cups hplip foomatic-db \
foomatic-db-engine foomatic-db-ppds foomatic-db-engine foomatic-db-nonfree \
foomatic-db-nonfree-ppds ghostscript gutenprint gsfonts sane sane-airscan splix ipp-usb

edit cups configuration to allow remote administration:

#Listen localhost:631
Port 631
<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow all
</Location>

<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>

<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow all
</Location>

start and enable cups:

systemctl enable cups
systemctl start cups

access cups admin interface:

https://192.168.77.115:631

scanner configuration

CONFIGURE SERVER

edit sane config /etc/sane.d/saned.conf and add your subnet:

192.168.77.0/24

download saned service systemd file:

curl -ko /etc/systemd/system/saned.service https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/sane/trunk/saned.service

start and enable saned service:

systemctl daemon-reload
systemctl enable saned
systemctl start saned

install airsane:

yay -S airsane

start and enable airsane:

CONFIGURE LINUX CLIENT

edit sane net config /etc/sane.d/net.conf add server ip address:

192.168.77.115

windows client download:

https://master.dl.sourceforge.net/project/sanewinds/SANEWinDS_0.9.5511.msi?viasf=1