miércoles, 10 de abril de 2013

Typical problems with printers and scanners

  • "The system printing service doesn't seem to be available" message.

    If you see this message make sure that you have cups installed and that it is properly running..
  • "No scanners detected".
    Sometimes you can have some problems to detect scanners from software such as xsane. If so, try to execute xsane as sudo. If you can detect your scanner as super user, the it is probably that you have no permissions as a simple user. To fix it, use lsusb to determine the device of your scanner, navigate to /dev/bus/usb/$BUS/$DEVICE and check the permissions of that device, i.e. what group it belongs to. Try to give your user the necessary groups for it, or if that fails, chmod the device (as suggested in the thread). (from: http://superuser.com/questions/104184/xsane-is-unable-to-detect-scanner-device).
  •  Related commands: lsusb, sane-find-scanner, scanimage -L

martes, 9 de abril de 2013

Notes for network configuration

  • (Examples with eth0)
  • Examples of network configuration files.
    • In /etc/network/interfaces
      • With DHCP
                               #The primary network interface
                               allow-hotplug eth0
                               iface eth0 inet dhcp
      • With static IP
                               iface eth0 inet static
                               address <IP ADDRESS>
                               netmask <SUBNET MASK>
                               network <NETWORK ADDRESS>
                               broadcast <BROADCAST ADDRESS>
                               gateway <GATEWAY ADDRESS>
  • DNS servers. In /etc/resolv.conf
  • Adding default address to local route table. Enter: sudo route add default gw <GATEWAY ADDRESS>
  • Restart eth0
    • ifdown eth0
    • ifup eth0

Notes to configure SSH server...

  • Install openssh-server
  • To stop ssh server, enter: sudo /etc/init.d/ssh stop
  • To start ssh server, enter: sudo /etc/init.d/ssh start
  • To restart ssh server, enter: sudo /etc/init.d/ssh restart
  • To change the port, modify the /etc/ssh/sshd_config file
  • To check ssh status, type: /etc/init.d/ssh status