PIXNET Logo登入

Hello World

跳到主文

:D

部落格全站分類:生活綜合

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 11月 20 週一 202314:48
  • 在linux 列出檔案的 ctime , mtime , atime

使用stat 指定列出檔案的 ctime , mtime , atime

root@lab-101:/workdir# stat this-is-a-file
  File: this-is-a-file
  Size: 505987          Blocks: 992        IO Block: 4096   regular file
Device: 801h/2049d      Inode: 1048579     Links: 1
Access: (0646/-rw-r--rw-)  Uid: (  106/    tftp)   Gid: (  113/    tftp)
Access: 2023-11-20 14:39:11.722228112 +0800
Modify: 2023-11-20 14:38:52.570334312 +0800
Change: 2023-11-20 14:38:52.570334312 +0800
 Birth: 2023-11-20 14:30:57.628959474 +0800

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(17)

  • 個人分類:系統管理
▲top
  • 11月 20 週一 202314:15
  • Debian 11 安裝 tftp server

安裝 tftp server
apt install tftpd-hpa

安裝 tftp client
apt install tftp

編輯設定檔
vi /etc/default/tftpd-hpa

# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure"

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(53)

  • 個人分類:系統管理
▲top
  • 11月 13 週一 202315:32
  • 調整 redmine 最上方列表文字大小

redmine top-menu 預設字型很小很小,如果要調整上方字型的大小
cd ./redmine/public/stylesheets
vi application.css

#top-menu {background: #3E5B76; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 10px 0px 12px;}
將紅字部分改成 1.2 我覺得就很合適了

調整 redmine 最上方列表文字大小

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(17)

  • 個人分類:系統管理
▲top
  • 11月 07 週二 202311:42
  • 取消 nextcloud 二階段驗證

測試環境: docker + apache base

root@hellowordl:/home/nextcloud# docker exec --user www-data <CONTAINER ID> php occ config:system:set twofactor_enforced false
System config value twofactor_enforced => false set to empty string
 

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(12)

  • 個人分類:系統管理
▲top
  • 11月 06 週一 202316:36
  • 升級 aruba 1960 10g switch 韌體

下載位址:
https://community.arubainstanton.com/blogs/jamie-easly1/2021/11/01/instanton1960switchsoftwareportal?CommunityKey=26af222f-d9da-43cb-a665-cba6c273756c

若出現以下訊息
Operation Type
Update
File Type
Backup Image
Status
Operation Failed
Error
Copy: Version too old, downgrade prevented.

請將下載下來的zip 解壓縮,僅上傳 *.wsi 即可

升級 aruba 1960 10g switch 韌體

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(67)

  • 個人分類:系統管理
▲top
  • 11月 06 週一 202309:03
  • NextClould 忘記密碼,重設管理員密碼

測試環境
docker: Base version - apache + mariadb

root@helloworld:~# docker ps
CONTAINER ID   IMAGE          COMMAND                  CREATED      STATUS      PORTS                  NAMES
846abceb2e61   nextcloud      "/entrypoint.sh apac…"   2 days ago   Up 2 days   0.0.0.0:8080->80/tcp   nextcloud-app-1
ab2fb11739b8   mariadb:10.6   "docker-entrypoint.s…"   2 days ago   Up 2 days   3306/tcp               nextcloud-db-1

root@helloworld:~# docker exec -it nextcloud-app-1 bash

root@846abceb2e61:/var/www/html# runuser -u www-data php /var/www/html/occ user:resetpassword admin
Enter a new password:
Confirm the new password:
Successfully reset password for admin
root@846abceb2e61:/var/www/html#
 

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(35)

  • 個人分類:系統管理
▲top
  • 9月 20 週三 202310:00
  • 此工作站和主要網域間的信任關係失敗

用AD帳號 登入windows 時,如果出現以下錯誤訊息
此工作站和主要網域間的信任關係失敗

解決方式:
使用本機帳號登入
確認系統時間與AD DC 之間是否有時間差
時間調整一致,登出再用AD 帳號登入測試是否成功
 

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(26)

  • 個人分類:系統管理
▲top
  • 9月 19 週二 202312:56
  • Linux 手動設定時間錯誤訊息 Failed to set time: Automatic time synchronization is enabled

手動更新時間,出現以下錯誤訊息
root@lab:~# timedatectl set-time 11:55:12
Failed to set time: Automatic time synchronization is enabled

關閉 ntp 自動校時
root@lab:~# timedatectl set-ntp no

重新手動更新
root@lab:~# timedatectl set-time '2023-09-19 11:58:30'

root@lab:~# date
Tue 19 Sep 2023 11:58:31 AM CST
 

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(27)

  • 個人分類:系統管理
▲top
  • 9月 15 週五 202311:08
  • 修正 SSL/TLS: Deprecated TLSv1.0 and TLSv1.1 Protocol Detection 漏洞

找到 httpd-ssl.conf 
每個版本路徑可能不大一樣,要自行找一下

找到以下關鍵字
SSLProtocol all -SSLv3
調整成
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1

存檔,重啟 apache 

可用 nmap 工具測試
nmap --script ssl-enum-ciphers -p 443 example-server
 

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(20)

  • 個人分類:系統管理
▲top
  • 9月 07 週四 202309:41
  • 修正 openvas Weak Host Key Algorithm(s) (SSH) 弱點

報告內容

Summary
The remote SSH server is configured to allow / support weak host
key algorithm(s).
Detection Result
The remote SSH server supports the following weak host key algorithm(s):

host key algorithm | Description
-----------------------------------------------------------------------------------------
ssh-dss            | Digital Signature Algorithm (DSA) / Digital Signature Standard (DSS)
Detection Method
Checks the supported host key algorithms of the remote SSH
server.

Currently weak host key algorithms are defined as the following:

- ssh-dss: Digital Signature Algorithm (DSA) / Digital Signature Standard (DSS)
Details:
Weak Host Key Algorithm(s) (SSH) OID: 1.3.6.1.4.1.25623.1.0.117687
Version used:
2021-11-24T06:31:19Z
Solution
Solution Type:
Mitigation
Disable the reported weak host key algorithm(s).

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(40)

  • 個人分類:系統管理
▲top
«1...34570»

momo shop

近期文章

    誰來我家

    我的地盤

    helloworld
    暱稱:
    helloworld
    分類:
    生活綜合
    好友:
    累積中
    地區:

    文章分類

    • 資料庫 (392)
    • 工商服務 (864)
    • 吃吃吃 (248)
    • 系統管理 (3,768)
    • 遊記 (224)
    • 未分類文章 (1)

    參觀人氣

    • 本日人氣:
    • 累積人氣:

    pixGoogleAdsense1

    pixGoogleAdsense2

    留言板