顯示具有 Linux 標籤的文章。 顯示所有文章
顯示具有 Linux 標籤的文章。 顯示所有文章

2023年8月17日 星期四

Mount Disk發生Not authorized to perform operation問題

突然發生這個問題,怪怪的,問了Bing Chat,原來是因為安裝了Chrome遠端桌面 ...

gnome-disks Not authorized to perform operation

Bing
您好,這是 Bing。我可以幫您解決 gnome-disks 無法執行操作的問題。
根據我從網路上搜尋到的資訊 ,這個錯誤可能是由以下原因造成的:
您沒有足夠的權限來格式化或掛載磁碟。您可能需要使用 sudo 或 gksudo 命令來執行 gnomedisks,或者使用 udisksctl 命令來解鎖和掛載磁碟。
您的系統缺少一個稱為 polkit 的驗證代理,它可以在您執行操作時要求您提供系統管理員
(root)的密碼。您可能需要安裝並啟動 polkit-gnome 或其他相關的套件。
您安裝了 Chrome 遠端桌面,它會干擾您對磁碟的存取權限。您可能需要卸載它,或者嘗試使用
其他的遠端桌面軟體。
我希望這些資訊對您有幫助。如果您還有其他問題,請隨時告訴我。

2023年2月23日 星期四

使用Thunderbird同步Exchange行事曆

 在安裝完Thunderbird後,需要安裝Exchange EWS Provider 3.2.0-Beta46

從http://www.1st-setup.nl/wordpress/?page_id=551下載的最新版本

這是Thunderbird的Lightning Calendering Add-on的Add-on~~~

我在繞口令><


安裝完後就可以看到Calendar


在Calender按右鍵,選擇新增行事曆

選擇On the Network

選擇Microsoft Exchange 2007/2010/2013

輸入名稱

不要使用auto-discovery

輸入相關資訊

Server URL: https://twmail.xxx.com/EWS/Exchange.asmx

選擇Check server and mailbox即可完成

第一次同步需要花一些時間,同步完成就可以使用行事曆了~~~

Yocto建立code patch

  1. devtool modify package
  2. change to package folder
  3. do requested code modify
  4. git add .
  5. git commit -m "Modify package"
  6. git log //查找最近的commit
  7. git diff 最近的commit > code.patch
  8. copy code.patch to package/files
  9. modify bb file
    SRC_URI += " \
              file://code.patch \
    "

OpenWRT SDK

2020年11月4日 星期三

Docker

 docker build -t ubuntu.XXX .

docker image ls

docker rmi XXX

docker ps -a

docker rm XXX

docker pull ubuntu:14.04

docker run -v /xxx/xxx:/xxx -it ubuntu:14.04 bash

docker start XXX

docker stop XXX

docker restart XXX

docker exec -it XXX bash

docker export XXX > ubuntu_14.04.tar

docker import ubuntu_14.04.tar test/ubuntu:v1.0

Dockerfile

FROM ubuntu:18.04

MAINTAINER XXX XX <XXX@XXX>

LABEL description="Compile environment" version="1.0" owner="XXX"

ENV DEBIAN_FRONTEND noninteractive

COPY --chown=root:root .netrc ~/

RUN apt-get update && apt-get install -y apt-utils && apt-get upgrade -y \
&& apt-get install -y \
gawk wget git-core diffstat unzip texinfo xz-utils debianutils iputils-ping \
gcc-multilib build-essential g++ libstdc++6 lib32stdc++6 ninja-build \
python python3 python3-pip python3-pexpect python3-git python3-jinja2 \
libegl1-mesa libsdl1.2-dev pylint3 xterm libpulse-dev libevent-dev rpm2cpio \
chrpath socat cpio

2020年9月22日 星期二

Manjaro install Vivaldi

 sudo pacman -S base-devel git

sudo pacman -S kdialog

安裝

git clone https://aur.archlinux.org/vivaldi.git

cd vivaldi/

makepkg -si

更新

git pull

makepkg -si


2020年4月17日 星期五

Putty複製貼上

複製: Ctrl-Insert  or Shift-Ctrl-C
貼上: Shift-Insert or Shift-Ctrl-V

2019年9月24日 星期二

Build OpenWRT出現Please install the openssl library錯誤

Build dependency: Please install the openssl library (with development headers)

apt install libssl-dev

2019年8月30日 星期五

target extra/locale/wctables.h failed

uClibc-XXX/extra/locale/gen_wctype.c

while (--argc) {
++argv;
if (!strcmp(*argv, "-v")) {
++verbose;
continue;
}

#if 0
if (!setlocale(LC_CTYPE, *argv)) {
verbose_msg("setlocale(LC_CTYPE,%s) failed! Skipping this locale…\n", *argv);
continue;
}
#endif

2018年9月19日 星期三

2018年4月30日 星期一

新增Linux設備(mknod)

Usage: mknod [OPTION]... NAME TYPE [MAJOR MINOR]
Create the special file NAME of the given TYPE.

Mandatory arguments to long options are mandatory for short options too.
  -m, --mode=MODE    set file permission bits to MODE, not a=rw - umask
  -Z, --context=CTX  set the SELinux security context of NAME to CTX
      --help     display this help and exit
      --version  output version information and exit

Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they
must be omitted when TYPE is p.  If MAJOR or MINOR begins with 0x or 0X,
it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal;
otherwise, as decimal.  TYPE may be:

  b      create a block (buffered) special file
  c, u   create a character (unbuffered) special file
  p      create a FIFO

NOTE: your shell may have its own version of mknod, which usually supersedes
the version described here.  Please refer to your shell's documentation
for details about the options it supports.

2017年11月22日 星期三

Make openWRT出現util-linux-2.24.1.tar.xz錯誤

Make openWRT出現底下錯誤,無法下載util-linux-2.24.1.tar.xz

/home/victor/Workspace/openwrt-sdk/scripts/download.pl "/home/victor/Workspace/openwrt-sdk/dl" "util-linux-2.24.1.tar.xz" "88d46ae23ca599ac5af9cf96b531590f" "@KERNEL/linux/utils/util-linux/v2.24"
--2017-11-22 17:03:38--  ftp://ftp.all.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.1.tar.xz
           => '-'
Resolving ftp.all.kernel.org (ftp.all.kernel.org)... failed: Name or service not known.
wget: unable to resolve host address 'ftp.all.kernel.org'
Download failed.

因下載位置已改變,修改download.pl描述的下載路徑,

push @mirrors, "http://ftp.all.kernel.org/pub/$dir";
改為
push @mirrors, "http://www.kernel.org/pub/$dir";

2017年5月10日 星期三

縮小VDI檔案大小

於客體端
  1. sudo apt-get install zerofree
  2. 重開機進入Recovery Mode
  3. mount -n -o remount,ro -t ext3 /dev/sda1 /
  4. zerofree -v /dev/sda1
於主體端
  • VBoxManage modifymedium XXX.vdi --compact

2017年4月25日 星期二

chroot測試SDK出現cat /proc/cpuinfo錯誤

用chroot測試SDK,make時出現下面的錯誤
cat: /proc/cpuinfo: No such file or directory

解決,

sudo mount --bind /proc <chroot dir>/proc