In this article, I will share with you about my second time installing CUPS on Ubuntu. Requriement Ubuntu 18.04 LTS Install on an Old Computer Canon E410 Series Printer Internet CUPS Installation and Configuration Step by Step Install CUPS on your system #install cups sudo apt-get install cups cups-pdf cups-bsd Back up the configuration file #copy configuration file sudo cp /etc/cups/cupsd.conf cupsd.conf.bak Editing the CUPS configuration file #add user simith to lpadmin group sudo usermod -aG lpadmin simith #edit cupsd.conf sudo vim cupsd.conf Edited cupsd.conf contents.(Configuration options not mentioned should be left as default.) #allow access port Port 63100 LogLevel warn PageLogFormat MaxLogSize 200 1. Show shared printers on the local network. Browsing on BrowseLocalProtocols dnssd 1. Web interface setting... WebInterface Yes 1. Restrict access to the server... <Location /> Order Allow,deny Allow @LOCAL Allow From 127.0.0.1 Allow From 192.168.0.0/16 </Location> 1. Restrict access to the admin pages... <Location /admin> #access user simith can visit admin page Require user simith Order Allow,deny Allow @LOCAL Allow 127.0.0.1 Allow From 192.168.0.0/16 </Location> 1. Restrict access to configuration files... <Location /admin/conf> AuthType Default Require user simith Order allow,deny Allow @LOCAL Allow 127.0.0.1 Allow From 192.168.0.0/16 </Location> 1. Restrict access to log files... <Location /admin/log> AuthType Default Require user simith Order allow,deny Allow @LOCAL Allow 192.168.0.0/16 </Location> Restart CUPS service and add to starup sudo systemctl restart cups sudp systemctl enable cups End Finally, you can visit the Ubuntu IP address and configuration Example: " http:// ubuntu ip address:63100 " Another article 打印服务器cups安装笔记https://www.itiohub.com/log/413.html

June 16, 2024 0comments 23hotness 0likes Read all

因为Frp client 之前是使用批处理启动的,所以每次电脑重启之后,需要等到登录之后才能启动。目的是要操作系统启动之后就直接启动Frp client。为了解决这个问题,所以使用nssm来将Frp client安装到windows的服务,使它作为服务启动。这样就可以实现当电脑启动之后就可以直接启动。 目录 先决条件 安装过程 验证和引用 先决条件 Frp 服务端 与客户端https://github.com/fatedier/frp nssm 程序https://nssm.cc/download 根据Frp服务端的信息配置好相对应的Frp客户端信息 安装过程 Step 1 在Windows操作系统下配置好Frp 的客户端信息之后,使用命令行进入nssm目录,如下图:注:请根据你的实际情况,进入相对应的目录; Step 2 通过命令行 安装服务 nssm install MyFirstService #### Step 3当你在命令行中输入step2的命令,系统会跳出nssm 的gui让你填写程序的相关信息。这个时候,你只要在Nssm gui中填入服务的相关信息即可。如下图所示: 程序路径 程序工作目录 额外参数然后顶部的"Details"就是服务的相关详细描述和设置了。这个大家可以自己去尝试。在填完1-3步骤中的信息之后, 服务就算安装完成了。 (记得使用管理模式运行nssm) 验证和应用 在windows 的命令行输入“services.msc” 打开windows 的服务管理窗口 通过上图就可以判断 服务已经添加成功。 另外你还可以在frp 根目录下查看frp运行的日志。 引用 Frp 服务端 与客户端https://github.com/fatedier/frp nssm 程序https://nssm.cc/download 这就是使用nssm 在windows下,快速的创建服务的简单使用笔记。

June 2, 2024 0comments 37hotness 0likes Read all