PIXNET Logo登入

Horace papa's life

跳到主文

To memory my life, learning , family

部落格全站分類:心情日記

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 3月 29 週五 202405:14
  • [wireshark] qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

[wireshark] qt.qpa.plugin: Cou
When I run the "wireshark" in ubuntu 20.04. I got the error message and can't execute wireshark successfully. I ALWAYS GOT THIS ERROR
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
(繼續閱讀...)
文章標籤

horace papa 發表在 痞客邦 留言(0) 人氣(102)

  • 個人分類:ubuntu
▲top
  • 9月 20 週三 202321:07
  • Linux iptables and example.

tables:
==================
1)a table is something that allows you to process packets in specific ways
2)default table is the "filter" table,these "tables" have "chains" attached to them
    |
    |+filter table: default table, decide whether packet should allowed to its dest.
    |    
    |+mangle table: alter packet headers in various ways,such as changing TTL values.
    |    
    |+nat table: allows you to route packets to different hosts on NAT (Network Address         |         Translation) networks by changing the source and destination addresses of         |         packet
    |     
    |+ raw table:allows you to work with packets before the kernel starts tracking its state    
(繼續閱讀...)
文章標籤

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

  • 個人分類:iptables
▲top
  • 9月 20 週三 202321:04
  • Makefile variables


Automatic Variables
Suppose you are writing a pattern rule to compile a ‘.c’ file into a ‘.o’ file: how do you write the ‘cc’ command so that it operates on the right source file name? You cannot write the name in the recipe, because the name is different each time the implicit rule is applied.
What you do is use a special feature of make, the automatic variables. These variables have values computed afresh for each rule that is executed, based on the target and prerequisites of the rule. In this example, you would use ‘$@’ for the object file name and ‘$<’ for the source file name.
It’s very important that you recognize the limited scope in which automatic variable values are available: they only have values within the recipe. In particular, you cannot use them anywhere within the target list of a rule; they have no value there and will expand to the empty string. Also, they cannot be accessed directly within the prerequisite list of a rule. A common mistake is attempting to use $@ within the prerequisites list; this will not work. However, there is a special feature of GNU make, secondary expansion (see Secondary Expansion), which will allow automatic variable values to be used in prerequisite lists.
Here is a table of automatic variables:
 

$@


The file name of the target of the rule. If the target is an archive member, then ‘$@’ is the name of the archive file. In a pattern rule that has multiple targets (see Introduction to Pattern Rules), ‘$@’ is the name of whichever target caused the rule’s recipe to be run.



$%


The target member name, when the target is an archive member. See Using make to Update Archive Files. For example, if the target is foo.a(bar.o) then ‘$%’ is bar.o and ‘$@’ is foo.a. ‘$%’ is empty when the target is not an archive member.



$<


The name of the first prerequisite. If the target got its recipe from an implicit rule, this will be the first prerequisite added by the implicit rule (see Using Implicit Rules).



$?


The names of all the prerequisites that are newer than the target, with spaces between them. If the target does not exist, all prerequisites will be included. For prerequisites which are archive members, only the named member is used (see Using make to Update Archive Files).


‘$?’ is useful even in explicit rules when you wish to operate on only the prerequisites that have changed. For example, suppose that an archive named lib is supposed to contain copies of several object files. This rule copies just the changed object files into the archive:



lib: foo.o bar.o lose.o win.o
ar r lib $?



$^


The names of all the prerequisites, with spaces between them. For prerequisites which are archive members, only the named member is used (see Using make to Update Archive Files). A target has only one prerequisite on each other file it depends on, no matter how many times each file is listed as a prerequisite. So if you list a prerequisite more than once for a target, the value of $^ contains just one copy of the name. This list does not contain any of the order-only prerequisites; for those see the ‘$|’ variable, below.



$+


This is like ‘$^’, but prerequisites listed more than once are duplicated in the order they were listed in the makefile. This is primarily useful for use in linking commands where it is meaningful to repeat library file names in a particular order.



$|


The names of all the order-only prerequisites, with spaces between them.



$*


The stem with which an implicit rule matches (see How Patterns Match). If the target is dir/a.foo.b and the target pattern is a.%.b then the stem is dir/foo. The stem is useful for constructing names of related files.


In a static pattern rule, the stem is part of the file name that matched the ‘%’ in the target pattern.


In an explicit rule, there is no stem; so ‘$*’ cannot be determined in that way. Instead, if the target name ends with a recognized suffix (see Old-Fashioned Suffix Rules), ‘$*’ is set to the target name minus the suffix. For example, if the target name is ‘foo.c’, then ‘$*’ is set to ‘foo’, since ‘.c’ is a suffix. GNU make does this bizarre thing only for compatibility with other implementations of make. You should generally avoid using ‘$*’ except in implicit rules or static pattern rules.


If the target name in an explicit rule does not end with a recognized suffix, ‘$*’ is set to the empty string for that rule.



Of the variables listed above, four have values that are single file names, and three have values that are lists of file names. These seven have variants that get just the file’s directory name or just the file name within the directory. The variant variables’ names are formed by appending ‘D’ or ‘F’, respectively. The functions dir and notdir can be used to obtain a similar effect (see Functions for File Names). Note, however, that the ‘D’ variants all omit the trailing slash which always appears in the output of the dir function. Here is a table of the variants:
 

‘$(@D)’


The directory part of the file name of the target, with the trailing slash removed. If the value of ‘$@’ is dir/foo.o then ‘$(@D)’ is dir. This value is . if ‘$@’ does not contain a slash.



‘$(@F)’


The file-within-directory part of the file name of the target. If the value of ‘$@’ is dir/foo.o then ‘$(@F)’ is foo.o. ‘$(@F)’ is equivalent to ‘$(notdir $@)’.



‘$(*D)’

 

‘$(*F)’


The directory part and the file-within-directory part of the stem; dir and foo in this example.



‘$(%D)’

 

‘$(%F)’


The directory part and the file-within-directory part of the target archive member name. This makes sense only for archive member targets of the form archive(member) and is useful only when member may contain a directory name. (See Archive Members as Targets.)



‘$(<D)’

 

‘$(<F)’


The directory part and the file-within-directory part of the first prerequisite.



‘$(^D)’

 

‘$(^F)’


Lists of the directory parts and the file-within-directory parts of all prerequisites.



‘$(+D)’

 

‘$(+F)’


Lists of the directory parts and the file-within-directory parts of all prerequisites, including multiple instances of duplicated prerequisites.



‘$(?D)’

 

‘$(?F)’


Lists of the directory parts and the file-within-directory parts of all prerequisites that are newer than the target.



Note that we use a special stylistic convention when we talk about these automatic variables; we write “the value of ‘$<’”, rather than “the variable <” as we would write for ordinary variables such as objects and CFLAGS. We think this convention looks more natural in this special case. Please do not assume it has a deep significance; ‘$<’ refers to the variable named < just as ‘$(CFLAGS)’ refers to the variable named CFLAGS. You could just as well use ‘$(<)’ in place of ‘$<’.
(繼續閱讀...)
文章標籤

horace papa 發表在 痞客邦 留言(0) 人氣(5)

  • 個人分類:Makefile
▲top
  • 12月 23 週五 202201:52
  • Microsoft teams install in ubuntu 16.04 failed " Depends: libgtk-3-0 (>= 3.19.12) but 3.18.9-1ubuntu3.3"

if you are suffer the problem
sudo apt-get install teams
(繼續閱讀...)
文章標籤

horace papa 發表在 痞客邦 留言(0) 人氣(23)

  • 個人分類:ubuntu
▲top
  • 5月 14 週六 202200:46
  • [OpenWrt] error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' if (BN_num_bits(key->e) > 64) ^~ scripts/Makefile.host:134:

error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' if (BN_num_bits(key->e) > 64) ^~ scripts/Makefile.host:134: recipe for target 'tools/lib/rsa/rsa-sign.o' failed
Solution: http://git.lede-project.org/70b104f  please fix by this patch.
(繼續閱讀...)
文章標籤

horace papa 發表在 痞客邦 留言(0) 人氣(77)

  • 個人分類:openwrt
▲top
  • 5月 07 週六 202207:08
  • ubuntu system boot up missing share liberary "/sbin/init: error while loading shared librariues librt.so.1"

mount in Caja
the librt.so.1 share liberary missing after update or remove some ubuntu application, the below is a way to rescuse ubuntu boot up failure issue.
1.Boot from installation medium(live cd)
(繼續閱讀...)
文章標籤

horace papa 發表在 痞客邦 留言(0) 人氣(7)

  • 個人分類:Linux
▲top
  • 9月 10 週五 202107:05
  • 4-Way Handshake



4-Way Handshake
 
admin 24th January 2019 46 Comments
(繼續閱讀...)
文章標籤

horace papa 發表在 痞客邦 留言(0) 人氣(3)

  • 個人分類:
▲top
  • 4月 23 週五 202101:44
  • bash ShellCheck

https://www.shellcheck.net/
 
(繼續閱讀...)
文章標籤

horace papa 發表在 痞客邦 留言(0) 人氣(7)

  • 個人分類:
▲top
  • 11月 27 週三 201904:19
  • what #address-cells and #size-cells mean are in device-tree.

Example1
/ {
#address-cells = <0x1>; //在 root node下使用1个u32来代表address, root node use 1 u32 to present address.
#size-cells = <0x0>; // 在root node下使用0个u32来代表size, root node have 0 to present address length.
...
...
memory { // memory device
...
reg = <0x90000000>;
// 0x90000000是存取memory的address // 0x90000000 is a u32 address, no address length
...
};
...
...
}
(繼續閱讀...)
文章標籤

horace papa 發表在 痞客邦 留言(0) 人氣(23)

  • 個人分類:Linux
▲top
  • 11月 09 週六 201902:53
  • An In-Depth Guide to iptables, the Linux Firewall(轉載)


https://www.booleanworld.com/depth-guide-iptables-linux-firewall/
a very good doc for understanding iptables.
(繼續閱讀...)
文章標籤

horace papa 發表在 痞客邦 留言(0) 人氣(2)

  • 個人分類:
▲top
12...9»

個人資訊

horace papa
暱稱:
horace papa
分類:
心情日記
好友:
累積中
地區:

熱門文章

  • (486)[ARM] Buffer allocation for device DMA and DCache coherence
  • (3,059)invalidate/flush cache
  • (636)[音響論壇] 調整LP唱盤的八大基本功
  • (52)ntp with gps pps impliment
  • (5,056)修裡音響功率擴大機的維修方法及步驟詳細教學
  • (12,975)A類、B類、C類、D類、G類放大器、擴大機的特性比較(引用)
  • (176)安全的維修功率擴大機/利用燈泡代替保險私保護電路(引用)
  • (351)什麼是理想的擴大機
  • (1,723)各式真空管介紹
  • (2,541)真空管introduction,知識,維修

文章分類

  • iptables (1)
  • Makefile (1)
  • ubuntu (2)
  • openocd (0)
  • docker (0)
  • openwrt (1)
  • compiler/tool chain (0)
  • my home (1)
  • tube (7)
  • linux networking (9)
  • LTE (3)
  • networking (1)
  • 音響 (0)
  • Linux (2)
  • 面試考題 (0)
  • eclipse IDE (2)
  • virtualbox (2)
  • EPC airinterface5g (1)
  • 音響 (1)
  • openjtag (3)
  • networking (6)
  • linux application (4)
  • Wireless (2)
  • Linux server setting (1)
  • Linux kernel (16)
  • Linux (6)
  • computing (0)
  • 未分類文章 (1)

最新文章

  • [wireshark] qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
  • Linux iptables and example.
  • Makefile variables
  • Microsoft teams install in ubuntu 16.04 failed " Depends: libgtk-3-0 (>= 3.19.12) but 3.18.9-1ubuntu3.3"
  • [OpenWrt] error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' if (BN_num_bits(key->e) > 64) ^~ scripts/Makefile.host:134:
  • ubuntu system boot up missing share liberary "/sbin/init: error while loading shared librariues librt.so.1"
  • 4-Way Handshake
  • bash ShellCheck
  • what #address-cells and #size-cells mean are in device-tree.
  • An In-Depth Guide to iptables, the Linux Firewall(轉載)

文章精選

文章搜尋

誰來我家

參觀人氣

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