大家好,我烏客。前段時間我簡單地裝修了下家里。開辟了獨立的辦公區域和拍攝間。
不過在放置打印機的時候,我發現了一個嚴重的問題。新的布局沒有考慮打印機的走線問題。而且我家這款打印機又沒有無線打印功能,必須要連接USB線才能打印。這用起來就太麻煩了!
好歹咱也算是個數碼愛好者,真是叔可忍嬸都不能忍。于是我就想著做一個打印服務器。
其實做一個打印服務器非常簡單,用一臺X86的主機或者筆記本連接打印機。在局域網里共享一下打印設備就可以了。如果不想浪費主機性能,也可以用虛擬機虛擬一個window系統作打印服務器。
不過如果用一臺電腦只做一個打印服務器的話,無論從功耗還是從花費方面都不劃算。畢竟我換一臺帶無線功能的打印機也花不了多少錢。
相對而言ARM芯片的小主機做打印服務器似乎更合適。比如像玩客云,這貨如今在網上四五十塊錢就能買到一部。待機功耗也只有幾瓦。
我手頭正好有兩部折騰剩下的,反正也是放著吃灰,順便拿來做打印服務器發揮預熱也挺好。
折騰到最后的結果也挺讓我滿意的。用玩客云做出來打印服務器,不僅可以做到全平臺兼容,包括:window,Mac,iOS和安卓系統都可以直接啟動打印機。
還可以做到在手機上輕松實現無線打印。打印設置也非常方便,使用體驗上比很多無線打印機都要好。
接下來我會一步步教大家用玩客云配置一臺打印服務器。安裝過程其實一點都不難,我本人也是一個只會復制粘貼命令的Linux小白。所有的教程都來自網絡,現學現賣。
Linux下打印服務系統來自最著名的cups,直譯過來就是杯子。這個項目原先屬于蘋果公司,目前應該一個免費的開源項目。
在這里要溫馨提示一下,要使用cups打印服務需要打印機具有linux下的(arm)驅動。一般國內主流的品牌像愛普生、惠普和兄弟的大多數型號都有現成的(arm)驅動包。直接一條命令就可以安裝完成。不過個別品牌打印機如果沒有提供Linux驅動,那就沒有辦法用cups服務了。
大家在安裝之前最好確認一下你的打印機是否具有Linux下的驅動。
以下是我做的一個思維腦圖,大致說明了下玩客云安裝打印服務安裝步驟:
一、搭建一個armbian系統
首先我們需要給玩客云刷一個armbian linux系統。這里我選擇的是恩山論壇上的玩客云.08直刷包。
直刷包可以直接刷到主機自帶的rom里,不需要額外的外置存儲卡。
玩客云從原廠系統刷第三方系統是需要拆機用短接觸點的方式的方式刷入的。如果你的玩客云已經刷過第三方系統,那么只需要在刷機時按住reset鍵就可以刷寫新的系統。
關于刷機步驟玩客云的老玩家應該非常熟悉了,如果你是第一次接觸玩客云。那么可以翻看我之前的玩客云刷機視頻。詳細過程在就不在這里演示了。
燒錄完畢后記得先點擊停止,再關閉軟件。
然后我們就可以給玩客云接入網線,再接通電源。接下來的操作都會用遠程ssh登陸完成。
首先我們登陸一下路由器的后臺,找到玩客云被分配的IP地址。
接著我們打開,選擇左上方session按鈕。然后選擇ssh連接的方式。填入玩客云的ip地址,端口號默認保持22 點擊ok。
初始化賬號為root 密碼是1234
首次登錄后系統會讓我們修改登陸密碼,這里我們只需自定義一個密碼就可以了。
接著系統還會讓我們新建一個賬戶,這里我們就不需要新賬戶了直接ctrl+c跳過就可以了。
好這樣我們就成功登陸到armbian系統。登陸到armbian系統后,第一步我們要做添加國內的鏡像源,方便之后的一系列升級和更新。
先輸入編輯源文件命令:
nano /etc/apt/sources.list
然后復制這些源進去
deb https://mirrors.ustc.edu.cn/debian stretch main contrib non-free
#deb-src http://httpredir.debian.org/debian stretch main contrib non-free
deb https://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free
#deb-src http://httpredir.debian.org/debian stretch-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free
#deb-src http://httpredir.debian.org/debian stretch-backports main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
#deb-src http://security.debian.org/ stretch/updates main contrib non-free
#163鏡像站
deb http://mirrors.163.com/debian/ buster main non-free contrib
deb http://mirrors.163.com/debian/ buster-updates main non-free contrib
deb http://mirrors.163.com/debian/ buster-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
deb-src http://mirrors.163.com/debian/ buster main non-free contrib
deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
#華為云鏡像站
deb https://mirrors.huaweicloud.com/debian/ buster main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ buster-updates main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ buster-backports main contrib non-free
deb https://mirrors.huaweicloud.com/debian-security/ buster/updates main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ buster main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ buster-updates main contrib non-free

deb-src https://mirrors.huaweicloud.com/debian/ buster-backports main contrib non-free
#騰訊云鏡像站
deb http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib
deb http://mirrors.cloud.tencent.com/debian-security buster/updates main
deb http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib
deb http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.cloud.tencent.com/debian-security buster/updates main
deb-src http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib
deb-src http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib
#中科大鏡像站
deb https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ buster-backports main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free
#阿里云鏡像站
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
#清華大學鏡像站
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free
#蘭州大學鏡像站
deb http://mirror.lzu.edu.cn/debian stable main contrib non-free
deb http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
deb http://mirror.lzu.edu.cn/debian/ buster-backports main contrib non-free
deb http://mirror.lzu.edu.cn/debian-security/ buster/updates main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian stable main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian/ buster-backports main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian-security/ buster/updates main contrib non-free
#上海交大鏡像站
deb https://mirror.sjtu.edu.cn/debian/ buster main contrib non-free
deb https://mirror.sjtu.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirror.sjtu.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirror.sjtu.edu.cn/debian-security/ buster/updates main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian/ buster-updates main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian/ buster-backports main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian/ buster main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian-security/ buster/updates main contrib non-free
CTRL+O 回車保存,CTRL+X 回到界面。
編輯好了鏡像源以后,我們先分別輸入以下兩個命令更新armbian系統,粘貼命令后回車運行即可。
sudo apt update
sudo apt upgrade
接下來兩條命令是安裝一個armbian-config 的半圖形化界面。它可以方便我們做一些選項的設置。
apt install ntp
apt install armbian-config
接著輸入
armbian-config
打開圖形控制臺
在這個界面里我們要做兩件事情。
更換時區:> 選擇亞洲,中國的時區。
修改ip獲取方式改為static防止ip地址改變對ssh造成影響。(network->ip->static),這樣可以把ip地址固定下來。否則打印服務器地址每次重啟都會變化的話,下面的客戶端都需要重新設置IP。
最后選擇exit 退出圖形化界面。
二、安裝cups服務
好了準備工作做完,我們輸入命令安裝cups打印服務。輸入:
apt-get install cups
安裝完畢后,還需要修改一些cups的參數。輸入以下命令進入cups的參數配置:
nano /etc/cups/cupsd.conf
修改“”改成“0.0.0.0”, off改成 on,并在三個地方分別添加Allow all,具體如下
Listen 0.0.0.0:631
Listen /var/run/cups/cups.sock
# Show shared on the local network.
On
dnssd
# Default type, when is ...
Basic
# Web setting...
Yes
# access to the server...
Order allow,deny
Allow all
# access to the admin pages...
Order allow,deny
Allow all
# access to files...
Default
Require user @SYSTEM
Order allow,deny
Allow all
ctrl+X退出,Y保存,回車返回命令行。
然后運行命令 重啟一下cups的服務。
service cups restart
稍等兩分鐘以后,我們可以試著在網頁里用玩客云ip地址+631的端口號登陸cups的服務頁面。
我們看到已經成功登陸進去了。說明打印服務器已經搭建好了。
接下來我們先退出web頁面,在ssh中添加一下打印機驅動。這里需要打印機有支持的linux驅動。我找到了愛普生、惠普和兄弟驅動包。直接一條命令安裝就可以了。
愛普生:
apt install printer-driver-gutenprint
惠普:
sudo apt-get install hplip
或者
apt install hplip
兄弟
apt-get install printer-driver-brlaser
安裝好打印機驅動后我們可以在web頁面里添加打印機。
三、添加網絡打印機
打印機添加完畢我們就可以用
:631(服務器IP+端口號)//(打印機共享名稱
來在windows里添加網絡打印機。添加之前最好預先安裝好打印機驅動。
其實只要再添加一條命令就可以讓局域網里的其他設備自動發現打印機。我們再回到ssh命令行去運行一下。
apt install avahi-daemon
有的機器安裝這一個插件就可以了。不過我的機器需要安裝完整的三個插件才可以。
運行:
apt -y install avahi-daemon avahi-discover libnss-mdns
最后設置下開機默認啟動
systemctl enable cups
systemctl enable avahi-daemon
運行完畢之后,再回到添加打印機的選項就可以直接發現網絡打印機了。
同樣在安卓和iOS手機上也可以直接添加這個網絡打印機,用來打印文稿和圖片都非常方便。
其實玩客云只是打印服務器的備選設備之一。理論上只要是可以安裝linux系統的設備都可以用作打印服務器。
比如N1盒子,香橙派,淘汰的電視盒子或者樹莓派。按照本教程的思路都能改造稱打印服務器。而且像N1盒子和香橙派之類支持無線網絡的設備,安裝好服務后就能變成無線打印服務器。使用起來會比玩客云更方便一些。
事實上我最后就選用了支持無線網絡的香橙派作為打印服務器。因為它支持無線網絡的同時體積也更加小巧。相對而言玩客云的優勢是存貨量更多,而且價格也更便宜一些。
好了以上就是本期的內容了。都看到這里了,麻煩小伙伴們幫我點個贊吧。謝謝大家了,我是烏客。我們下期見。
U盤裝 MacOS 10.15系統安裝教程
軟件
介紹
Mac OS是一套運行于蘋果系列電腦上的操作系統。Mac OS是首個在商用領域成功的圖形用戶界面操作系統?,F行的最新的系統版本是macOS 10.15 beta 4 ,且網上也有在PC上運行的Mac系統()。
Mac系統是基于Unix內核的圖形化操作系統;一般情況下在普通PC上無法安裝的操作系統。由蘋果自行開發。蘋果機的操作系統已經到了OS 10,代號為Mac OS X(X為10的羅馬數字寫法),這是MAC電腦誕生15年來最大的變化。新系統非??煽?;它的許多特點和服務都體現了蘋果的理念。
安裝
步驟
破解補丁會被認為是病毒安裝之前必須關閉殺毒軟件,
安裝方法一樣此處以MACOS10.5為例
一、準備工作
一個8G以上的U盤(有的U盤標的是8G,實際只有X,實際容量小于7.5G的會失?。?/p>
MacOS鏡像、(刻錄工具)、(分區工具)、(引導工區)、EFI驅動文件。
二、制作啟動U盤
1、將您的U盤插入電腦,為保證成功,首先將U盤以默認值格式化一次;
2.安裝刻錄軟件并激活。激活教程非常簡單(替換);
3.以管理員身份運行;
4.在軟件窗口的左欄找你的U盤。用鼠標右鍵單擊U盤,然后單擊“Format Disk for Mac”(這將刪除U盤上的所有文件,并為MacOS做好準備);一路默認下一步;
5.接下來繼續用鼠標右鍵單擊U盤,然后單擊“Restore with Disk Image,”然后選擇下載的黑蘋果dmg鏡像,確認并寫入。(刻錄鏡像速度與USB傳輸速度有關,耐心等待)。
三、配置四葉草引導驅動
注意:寫入完成后,重新拔插一下U盤,電腦會提示格式化當前設備,不用管,這是因為windows無法讀取Mac分區。
1.打開分區工具,找到U盤上的ESP分區,刪除自帶的EFI文件。
2.把適合自己電腦EFI文件夾復制進去。這里只能用快捷鍵粘貼,Ctri+C復制,Ctrl+V粘貼。
至此 U盤引導盤就制作完成了!黑蘋果以完成80%了。
四、制作Mac系統盤
制作Mac系統盤分為分區安裝與整個磁盤安裝兩種情況,其實大同小異,但問的人很多,這里就都講一下。分區安裝的意思就是我一塊磁盤,分幾個分區,其中一個用來裝Mac系統,跟Windows系統的C盤D盤一樣,數據互不影響。整個磁盤安裝就是我一整塊磁盤用來裝Mac系統,我個人建議,有條件的還是選整個磁盤安裝。
1.分區安裝
a.計算機右鍵>管理>磁盤管理
b.首先檢查磁盤是否符合要求,磁盤格式必須為GPT格式(GUID),即右鍵這個磁盤,“轉換為MRB磁盤”為灰色就是GPT格式。
c.另外磁盤不能有小于200M的分區且必須用EFI分區(EFI分區也必須大于200M),滿足這兩個基本條件后,右鍵壓縮卷。
d.輸入壓縮大小,根據自己情況及要求輸入,最小25G。
e.接下來選中被壓縮的分區,右鍵新建簡單卷。
f.然后就一路默認下一步,但注意有一項要選擇“ 不要格式化這個卷 ”
注意這里不要格式化這個卷
最終結果是這樣的
2.整個硬盤安裝
整個磁盤只裝mac系統,那就刪除磁盤所有分區,變成一個全新的磁盤即可。如下圖:
在磁盤管理中會顯示未分配
至此安裝盤搞定,黑蘋果完成了85%。
五、安裝Mac系統
1.設置BIOS,重啟按F2用U盤進BIOS(電腦不一樣,按鍵也不一樣,就看自己電腦型號);
2.首先設置硬盤模式為AHCI,否則會出現磁盤工具讀不到內置硬盤的情況;
3.然后關閉安全啟動Secure Boot或者選擇其他操作系統(這是微軟為了防止安裝Windows操作系統的電腦改裝linux而設置的,不關閉無法啟動到四葉草);
4.打開UEFI引導模式;
5.第一啟動項選擇自己刻錄好的U盤,EUFI+U盤名稱;
6.保存重啟;
7.重啟之后會進入clover,選擇Boot MacOS install from install macOS ,
8.過一會兒會進入如下界面;
9.跑完代碼或進度條之后進入安裝界面,先選擇磁盤工具;
10.選中自己做的Mac系統盤,抹掉磁盤,名字隨便輸,格式按固態硬盤選APFS格式,機械硬盤選擴展日志式;
11.抹掉磁盤之后,關閉“磁盤工具”,選擇“安裝OS X”,然后找到自己剛剛摸掉的那個盤,選中后安裝!
12.選中剛才抹掉Mac安裝盤,開始第一次安裝;
13.第一次安裝完后會重啟,重啟還是選U盤啟動,進入四葉草選擇Boot MacOS from X,(X你剛剛抹掉的那個安裝盤的名字)過一會兒會進入正式安裝界。
14.二次安裝
15.二次安裝完,黑蘋果就安裝到你的硬盤了,重啟后還是選U盤啟動,進入四葉草選擇X(你抹掉磁盤的名字),進入蘋果系統;
16.設置好賬戶密碼等,就可以進入桌面了;
鍵盤布局我比較偏好英文ABC
設置鍵盤
網絡方面為了方便起見,我選擇了不連接互聯網,網絡方面我設置了橋接模式,選擇以太網就可以DHCP自動分配到IP上網,在局域網中就仿佛一臺獨立的電腦。如果NAT就是和主機同一個IP,通過NAT轉換端口上網。
設置網絡
nothing
傳輸信息
許可協議
接下來創建電腦賬戶,各位自己設置就行。
創建賬號
這兩項設置個人建議全部關閉,沒有為什么,個人喜好??梢栽谧远ㄔO置中設置。
關閉數據共享
主題必然是要深色了!多好看。
設置外觀
最后等待設置完畢。
等待階段
17.Mac系統桌面以及啟動臺;
六、更改硬盤啟動
1.打開分區工具,把剛剛的EFI文件夾里的clover文件夾拷貝到硬盤的ESP分區(跟之前一樣,用快捷鍵拷貝);
2.安裝引導工具;
3.裝完之后,打開主界面,管理EFI啟動項;
5.類型選擇Linux或其他操作系統;
6.描述即新建引導項的名字,自己隨便輸,我這里輸入的“CLOVER”(注意只能輸入英文);
7.選擇目標分區,選中自己硬盤的ESP分區,即剛才拷貝EFI文件的分區,然后點瀏覽,進行下一步;
8.找到EFI/CLOVER/文件夾下的.efi啟動文件;
9.選中后確定,完成新建引導項;
10.然后調節新建的引導項為第一啟動項;
11.最終,硬盤引導修改完成,以后可以拔掉U盤啟動mac系統了;
至此黑蘋果安裝教程寫完,祝各位盡早吃上黑蘋果!
*請認真填寫需求信息,我們會在24小時內與您取得聯系。