在手機看電視教學(頻道多免費)
Ubuntu開啟ssh
安裝和啟用ssh
先依序輸入1
sudo apt install openssh-client
1
sudo apt install openssh-server
廣告,請繼續閱讀
安裝後輸入以下指令,確保ssh已開啟1
sudo systemctl status ssh
如果成功則輸出(不一定一樣只要看有沒有綠色圓圈)1
2
3
4
5
6
7
8
9
10
11
12● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; preset: enabled)
Active: active (running) since Mon 2024-08-05 08:40:00 CST; 4 days ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 708 (sshd)
Tasks: 1 (limit: 9316)
Memory: 7.4M
CPU: 505ms
CGroup: /system.slice/ssh.service
└─708 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
底下略
按下Q離開
如果沒有成功輸入以下指令開啟ssh
搭建屬於你的伺服器-nextcloud(指令)
docker pull
1 | docker pull mysql:latest |
1 | docker pull nextcloud |
依序輸入指令
安裝mysql
注意指令中的password請改成你想要的密碼1
docker run -p 3306:3306 --name mysql --restart="always" -v /usr/local/mysql/conf:/etc/mysql/conf.d -v /usr/local/mysql/logs:/logs -v /usr/local/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -d mysql
1
2docker exec -it mysql mysql -u root -p
#Enter password: 輸入上面你所設定密碼
理論上輸入以下指令會輸出Query OK, 0 rows affected (X.XX sec)
如果報錯,可以試試跳過(不保證成功)
紀錄:自己組裝一台「鞋盒」nas
目前選用的硬體
CPU:撿到的i7 4770
GPU:gt-1030
電供:不知名品牌400w
主機板:技嘉-1150-GA-H81M-DS2-H81
ram:三星ram ddr3 8G
7/31目前問題:
剛開機(還沒有畫面)就斷電然後就重開機
有時開機的狀態會比較久,但還是無法順利開機
結果誰知道試一試風扇開始全速運轉,嚇死我了
用無線adb投影到電腦上——scrcpy(Linux+windows)
adb unknown command pair解決
教你如何下載YT的影片,甚至是FB,IG, twitter
本來一開始影片放在YT,可是突然被通知影片被下架了(違反條款?),所以只好把影片放在我的blog。
(放blog總不會出事吧?)
onedrive
https://1drv.ms/v/c/8bab85f3a629b96d/IQNMy8KABvjsRJJjhHI7ExQgAY5VuR4rTmUtJ7FrH6jIYw8
dropbox
連結
Firefox:https://addons.mozilla.org/zh-TW/firefox/addon/video-downloadhelper/
CoApp Installation:https://github.com/aclap-dev/video-downloadhelper/wiki/CoApp-Installation
教你把Powered by NotionNext去除
我雖然好不容易有了自己的blog,但是這個blog是基於NotionNext打造,blog底部會有powered by NotionNext的字體,我覺得很礙眼(我的blog居然可以通往別的網站
?),所以我教你如何移除。
github設定
打開你的github倉庫
打開1
/themes/hexo/components/**Footer.js**
其中的hexo換成你設定的主題
原本程式是1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30import { siteConfig } from '@/lib/config'
const Footer = ({ title }) => {
const d = new Date()
const currentYear = d.getFullYear()
const since = siteConfig('SINCE')
const copyrightDate = parseInt(since) < currentYear ? since + '-' + currentYear : currentYear
return (
<footer
className='relative z-10 dark:bg-black flex-shrink-0 bg-hexo-light-gray justify-center text-center m-auto w-full leading-6 text-gray-600 dark:text-gray-100 text-sm p-6'
>
{/* <DarkModeButton/> */}
<i className='fas fa-copyright' /> {`${copyrightDate}`} <span><i className='mx-1 animate-pulse fas fa-heart'/> <a href={siteConfig('LINK')} className='underline font-bold dark:text-gray-300 '>{siteConfig('AUTHOR')}</a>.<br/>
{siteConfig('BEI_AN') && <><i className='fas fa-shield-alt' /> <a href='https://beian.miit.gov.cn/' className='mr-2'>{siteConfig('BEI_AN')}</a><br/></>}
<span className='hidden busuanzi_container_site_pv'>
<i className='fas fa-eye'/><span className='px-1 busuanzi_value_site_pv'> </span> </span>
<span className='pl-2 hidden busuanzi_container_site_uv'>
<i className='fas fa-users'/> <span className='px-1 busuanzi_value_site_uv'> </span> </span>
<h1 className='text-xs pt-4 text-light-400 dark:text-gray-400'>{title} {siteConfig('BIO') && <>|</>} {siteConfig('BIO')}</h1>
<p className='text-xs pt-2 text-light-500 dark:text-gray-500'>Powered by <a href='https://github.com/tangly1024/NotionNext' className='dark:text-gray-300'>NotionNext {siteConfig('VERSION')}</a>.</p></span><br/>
</footer>
)
}
export default Footer
找到這行