tag:blogger.com,1999:blog-16196478155073019572024-02-21T11:01:10.014+08:00Learn something new every dayMihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.comBlogger450125tag:blogger.com,1999:blog-1619647815507301957.post-35364256899704323232024-02-21T10:59:00.004+08:002024-02-21T11:00:03.540+08:00Fix: VMWare workstation 17 shared folder between host windows and Linux VM<p></p><p>vmware-hgfs client shows up shared folder but nothing shown under /mnt/hgfs<br /><br />run the following to fix this issue.<br /> </p><blockquote> <span color="var(--black-600)" face="var(--ff-mono)" style="font-size: var(--_pr-code-fs); font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;">sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other -o uid=1000</span></blockquote><span color="var(--black-600)" face="var(--ff-mono)" style="font-size: var(--_pr-code-fs); font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;"></span><p></p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-69474088576537215302023-08-16T22:56:00.006+08:002023-08-16T22:58:59.044+08:00Fixed: failed to execute script pyinstaller-entry-point (ADE start)<div class="separator" style="clear: both;"><a href="https://gitlab.com/ApexAI/autowareclass2020/uploads/b822be9a994dd6eac59afbc13ca4aaa1/issue1.JPG" style="display: block; padding: 1em 0px; text-align: center;"><img alt="" border="0" data-original-height="508" data-original-width="777" src="https://gitlab.com/ApexAI/autowareclass2020/uploads/b822be9a994dd6eac59afbc13ca4aaa1/issue1.JPG" width="320" /></a></div>
Docker may not be installed on the machine,this can be an issue as ade is just a wrapper on the docker.
you can use the following page <a href="https://docs.docker.com/engine/install/ubuntu/">https://docs.docker.com/engine/install/ubuntu/</a> for installation of docker or short instructions are as below.
<br/>
<script src="https://gist.github.com/mihir3445/2ab4ed2a65d77320ab810739b57de0bd.js"></script><div><br /></div><div><br /></div>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-34951132548160800782023-05-18T14:03:00.002+08:002023-05-18T14:03:33.352+08:00Replay udp data using tcpreplytcpreplay is primarily designed for replaying packets at the network level and may not be suitable for replaying UDP packets. Thus bit of work is needed to replay this data.
update the input.pcap to us your desired MAC id's
<pre><code>
tcprewrite --enet-dmac=destinationMAC --enet-smac=sourceMAC -i input.pcap -o output.pcap
</code></pre>
Replace destinationMAC with the MAC address of the destination machine or network interface you wish to send the UDP packets to. Replace sourceMAC with the MAC address of the network interface you plan to send the packets from.
Now you would be able to replay this packets
<pre><code>
sudo tcpreplay -i input.pcap -o output.pcap
</code></pre>
test script to read this packets ( Python3 script is provided to read data on port 9999 )
<pre><code>
import socket
UDP_IP = "0.0.0.0"
UDP_PORT = 9999
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.bind((UDP_IP, UDP_PORT))
while True:
data, addr = sock.recvfrom(1024) # buffer size is 1024 bytes
print("received message: %s" % data)
</code></pre>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-79000779971238885812023-03-30T10:19:00.003+08:002023-03-30T10:24:15.916+08:00Failed init_port fastrtps_port7412: open_and_lock_file failed<p><span face="Helvetica, Arial, sans-serif" style="background-color: white; font-size: 13px; white-space: pre-wrap;"></span></p><p>Use following to fix the RTPS_TRANSPORT_SHM Error </p><p><span face="Helvetica, Arial, sans-serif" style="background-color: white; font-size: 13px; white-space: pre-wrap;"></span></p>
<script src="https://gist.github.com/mihir3445/20498564c90016b676a4d46d422311c4.js"></script>Dhartihttp://www.blogger.com/profile/08050051490078789287noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-83324288377023856002022-05-20T16:02:00.001+08:002022-05-20T16:02:59.957+08:00Fix for HDMI to an external monitor:<p><span style="background-color: white; color: #242424; font-family: "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: inherit; font-style: inherit; font-weight: inherit;">Run the commands below with the HDMI connected to my monitor:</span></p><ul style="-webkit-font-smoothing: antialiased; background-color: white; box-sizing: border-box; clear: left; color: #242424; font-family: "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 14px; font-style: inherit; font-weight: inherit;"><li style="-webkit-font-smoothing: antialiased; box-sizing: border-box;"><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-size: inherit; font-style: inherit; font-weight: inherit;">xrandr --listproviders (to make sure you have NVIDIA-G0 as a provider)</span></li><li style="-webkit-font-smoothing: antialiased; box-sizing: border-box;"><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-size: inherit; font-style: inherit; font-weight: inherit;"><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-style: inherit; font-weight: inherit; margin: 0px;"><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-style: inherit; font-weight: inherit; margin: 0px;">xrandr</span><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-style: inherit; font-weight: inherit; margin: 0px;"> --</span><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-style: inherit; font-weight: inherit; margin: 0px;">setprovideroutputsource</span><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-style: inherit; font-weight: inherit; margin: 0px;"> NVIDIA-G0 </span><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-style: inherit; font-weight: inherit; margin: 0px;">modesetting</span></span><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-style: inherit; font-weight: inherit; margin: 0px;"> </span></span></li><li style="-webkit-font-smoothing: antialiased; box-sizing: border-box;"><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-size: inherit; font-style: inherit; font-weight: inherit; margin: 0px;"><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-style: inherit; font-weight: inherit; margin: 0px;">xrandr</span><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-style: inherit; font-weight: inherit; margin: 0px;"> --auto</span></span></li></ul><p style="-webkit-font-smoothing: antialiased; background-color: white; box-sizing: border-box; color: #242424; font-family: "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px;"><br style="-webkit-font-smoothing: antialiased; box-sizing: border-box;" /></p><p style="-webkit-font-smoothing: antialiased; background-color: white; box-sizing: border-box; color: #242424; font-family: "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px;"><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-size: inherit; font-style: inherit; font-weight: inherit;"><span style="-webkit-font-smoothing: antialiased; box-sizing: border-box; font-style: inherit; font-weight: inherit; margin: 0px;">Ref: Found the info in the last post in this thread:<span style="-webkit-font-smoothing: antialiased; box-sizing: border-box;"> </span></span><a aria-label="Link https://www.linuxquestions.org/questions/debian-26/debian-11-bullseye-on-optimus-laptop-not-detecting-external-screen-4175690446/" href="https://www.linuxquestions.org/questions/debian-26/debian-11-bullseye-on-optimus-laptop-not-detecting-external-screen-4175690446/" rel="noopener noreferrer" style="-webkit-font-smoothing: antialiased; background-color: transparent; box-sizing: border-box; color: #5b5fc7; outline-style: none; text-decoration-line: none;" tabindex="-1" target="_blank" title="https://www.linuxquestions.org/questions/debian-26/debian-11-bullseye-on-optimus-laptop-not-detecting-external-screen-4175690446/">https://www.linuxquestions.org/questions/debian-26/debian-11-bullseye-on-optimus-laptop-not-detecting-external-screen-4175690446/</a></span></p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-4443001399814568662022-05-20T15:58:00.006+08:002022-05-20T15:58:55.609+08:00Solution : how to check if the drive is ssd or hdd ?<p style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #232629; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: var(--s-prose-spacing); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; vertical-align: baseline;"><span color="var(--black-800)" face="var(--ff-mono)" style="background-color: transparent; font-size: var(--fs-body1); font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;"></span></p>Command : lsblk -o NAME,ROTA <br /><br />Result: <div><br /><pre style="border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: 0px; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;">NAME ROTA
sda 0
└─sda1 0
sdb 1
├─sdb1 1
├─sdb2 1
├─sdb3 1
├─sdb4 1</code></pre><pre style="border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: 0px; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;">nvmep1 1</code></pre><pre style="border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: 0px; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><br /></code></pre><pre style="border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: 0px; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><br /></code></pre><pre style="border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: 0px; margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"> 1 for hard drive and <span face="-apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif" style="background-color: white; color: #232629; font-size: 15px; white-space: normal;">0 for ssd.</span></code></pre></div>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-42452931983907215392022-01-05T14:40:00.003+08:002022-01-05T14:40:28.012+08:00Add the pem certificate to linux <p data-renderer-start-pos="82" style="background-color: #ebecf0; color: #172b4d; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 14px; letter-spacing: -0.005em; line-height: 1.714; margin: 0.75rem 0px 0px; padding: 0px; white-space: pre-wrap;"> Add the ca-certificate to access the site.</p><div class="code-block gkbfow-0 cdKoEL" style="background-color: #ebecf0; border-radius: 3px; clear: both; color: #172b4d; display: grid; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 14px; grid-template-columns: minmax(0px, 1fr); margin: 0.75rem 0px 0px; max-width: 100%; overflow-wrap: normal; padding: 0px; position: relative; tab-size: 4; white-space: pre-wrap;"><span class="prismjs css-10fl9lg" data-code-lang="" data-ds--code--code-block="" style="background-attachment: local, scroll, scroll; background-color: var(--ds--code--bg-color,#F4F5F7); background-image: linear-gradient(to left, rgb(244, 245, 247) 8px, transparent 8px), linear-gradient(to left, rgba(9, 30, 66, 0.13) 0px, rgba(99, 114, 130, 0) 8px), linear-gradient(to right, rgba(9, 30, 66, 0.13) 0px, rgba(99, 114, 130, 0) 8px); background-position: 100% 0px, 100% 0px, 0px 0px; border-radius: 3px; border-style: none; display: flex; font-family: SFMono-Medium, "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Consolas, Courier, monospace; font-size: 0.875rem; grid-column: 1 / auto; line-height: 1.5rem; overflow-x: auto; white-space: pre;"><code style="-webkit-border-image: unset; -webkit-box-align: unset; -webkit-box-decoration-break: unset; -webkit-box-direction: unset; -webkit-box-flex: unset; -webkit-box-ordinal-group: unset; -webkit-box-orient: unset; -webkit-box-pack: unset; -webkit-box-reflect: unset; -webkit-font-smoothing: unset; -webkit-highlight: unset; -webkit-hyphenate-character: unset; -webkit-line-break: unset; -webkit-line-clamp: unset; -webkit-locale: unset; -webkit-mask-box-image: unset; -webkit-mask-composite: unset; -webkit-mask: unset; -webkit-perspective-origin-x: unset; -webkit-perspective-origin-y: unset; -webkit-print-color-adjust: unset; -webkit-rtl-ordering: unset; -webkit-ruby-position: unset; -webkit-tap-highlight-color: unset; -webkit-text-combine: unset; -webkit-text-decorations-in-effect: unset; -webkit-text-emphasis-position: unset; -webkit-text-emphasis: unset; -webkit-text-fill-color: unset; -webkit-text-orientation: unset; -webkit-text-security: unset; -webkit-text-stroke: unset; -webkit-transform-origin-x: unset; -webkit-transform-origin-y: unset; -webkit-transform-origin-z: unset; -webkit-user-drag: unset; -webkit-user-modify: unset; -webkit-writing-mode: unset; accent-color: unset; alignment-baseline: unset; animation: unset; app-region: unset; appearance: unset; aspect-ratio: unset; backdrop-filter: unset; backface-visibility: unset; background-attachment: unset; background-blend-mode: unset; background-clip: unset; background-color: unset; background-image: linear-gradient(to right,var(--ds--code--line-number-bg-color,#EBECF0),var(--ds--code--line-number-bg-color,#EBECF0) calc(2ch + 16px),transparent calc(2ch + 16px),transparent); background-origin: unset; background-position: unset; background-repeat: unset; background-size: unset; baseline-shift: unset; block-size: unset; border-block: unset; border-collapse: unset; border-end-end-radius: unset; border-end-start-radius: unset; border-inline: unset; border-radius: unset; border-spacing: unset; border-start-end-radius: unset; border-start-start-radius: unset; border: unset; box-shadow: unset; box-sizing: unset; break-after: unset; break-before: unset; break-inside: unset; buffered-rendering: unset; caption-side: unset; caret-color: unset; clear: unset; clip-path: unset; clip-rule: unset; clip: unset; color-interpolation-filters: unset; color-interpolation: unset; color-rendering: unset; color-scheme: unset; color: unset; column-fill: unset; column-rule: unset; column-span: unset; columns: unset; contain-intrinsic-block-size: unset; contain-intrinsic-inline-size: unset; contain-intrinsic-size: unset; contain: unset; content-visibility: unset; content: unset; counter-increment: unset; counter-reset: unset; counter-set: unset; cursor: unset; cx: unset; cy: unset; d: unset; display: unset; dominant-baseline: unset; empty-cells: unset; fill-opacity: unset; fill-rule: unset; fill: unset; filter: unset; flex-flow: unset; flex: 1 0 auto; float: unset; flood-color: unset; flood-opacity: unset; font-feature-settings: unset; font-kerning: unset; font-optical-sizing: unset; font-variation-settings: unset; font: unset; forced-color-adjust: unset; gap: unset; grid-area: unset; grid: unset; height: unset; hyphens: unset; image-orientation: unset; image-rendering: unset; inline-size: unset; inset-block: unset; inset-inline: unset; inset: unset; isolation: unset; letter-spacing: unset; lighting-color: unset; line-break: unset; list-style: unset; margin-block: unset; margin-inline: unset; margin: unset; marker: unset; mask-type: unset; mask: unset; max-block-size: unset; max-height: unset; max-inline-size: unset; max-width: unset; min-block-size: unset; min-height: unset; min-inline-size: unset; min-width: unset; mix-blend-mode: unset; object-fit: unset; object-position: unset; offset: unset; opacity: unset; order: unset; orphans: unset; outline-offset: unset; outline: unset; overflow-anchor: unset; overflow-clip-margin: unset; overflow-wrap: unset; overflow: unset; overscroll-behavior-block: unset; overscroll-behavior-inline: unset; overscroll-behavior: unset; padding-block: unset; padding-bottom: 8px; padding-inline: unset; padding-left: 0px; padding-right: 8px !important; padding-top: 8px; page-orientation: unset; page: unset; paint-order: unset; perspective-origin: unset; perspective: unset; place-content: unset; place-items: unset; place-self: unset; pointer-events: unset; position: unset; quotes: unset; r: unset; resize: unset; ruby-position: unset; rx: unset; ry: unset; scroll-behavior: unset; scroll-margin-block: unset; scroll-margin-inline: unset; scroll-margin: unset; scroll-padding-block: unset; scroll-padding-inline: unset; scroll-padding: unset; scroll-snap-align: unset; scroll-snap-stop: unset; scroll-snap-type: unset; scrollbar-gutter: unset; shape-image-threshold: unset; shape-margin: unset; shape-outside: unset; shape-rendering: unset; size: unset; speak: unset; stop-color: unset; stop-opacity: unset; stroke-dasharray: unset; stroke-dashoffset: unset; stroke-linecap: unset; stroke-linejoin: unset; stroke-miterlimit: unset; stroke-opacity: unset; stroke-width: unset; stroke: unset; tab-size: unset; table-layout: unset; text-align-last: unset; text-align: unset; text-anchor: unset; text-combine-upright: unset; text-decoration-skip-ink: unset; text-decoration: unset; text-indent: unset; text-orientation: unset; text-overflow: unset; text-rendering: unset; text-shadow: unset; text-size-adjust: unset; text-transform: unset; text-underline-offset: unset; text-underline-position: unset; touch-action: unset; transform-box: unset; transform-origin: unset; transform-style: unset; transform: unset; transition: unset; user-select: unset; vector-effect: unset; vertical-align: unset; visibility: unset; widows: unset; width: unset; will-change: unset; word-break: unset; word-spacing: unset; writing-mode: unset; x: unset; y: unset; z-index: unset; zoom: unset;"><span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">1</span><span class=""># Extract pem files
</span><span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">2</span>unzip cert-cas.zip
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">3</span>cd cert-cas
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">4</span>
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">5</span># convert all pem files to crt
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">6</span>for f in *; do mv -- "$f" "${f%.pem}.crt"; done
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">7</span>
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">8</span>sudo mkdir /usr/local/share/ca-certificates/extra
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">9</span>sudo cp *.crt /usr/local/share/ca-certificates/extra/root.cert.crt
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">10</span>sudo update-ca-certificates
</code></span></div><p data-renderer-start-pos="558" style="background-color: #ebecf0; color: #172b4d; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 14px; letter-spacing: -0.005em; line-height: 1.714; margin: 0.75rem 0px 0px; padding: 0px; white-space: pre-wrap;">certificates will be available ( below shows confirmation )</p><div class="code-block gkbfow-0 cdKoEL" style="background-color: #ebecf0; border-radius: 3px; clear: both; color: #172b4d; display: grid; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 14px; grid-template-columns: minmax(0px, 1fr); margin: 0.75rem 0px 0px; max-width: 100%; overflow-wrap: normal; padding: 0px; position: relative; tab-size: 4; white-space: pre-wrap;"><span class="prismjs css-10fl9lg" data-code-lang="" data-ds--code--code-block="" style="background-attachment: local, scroll, scroll; background-color: var(--ds--code--bg-color,#F4F5F7); background-image: linear-gradient(to left, rgb(244, 245, 247) 8px, transparent 8px), linear-gradient(to left, rgba(9, 30, 66, 0.13) 0px, rgba(99, 114, 130, 0) 8px), linear-gradient(to right, rgba(9, 30, 66, 0.13) 0px, rgba(99, 114, 130, 0) 8px); background-position: 100% 0px, 100% 0px, 0px 0px; border-radius: 3px; border-style: none; display: flex; font-family: SFMono-Medium, "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Consolas, Courier, monospace; font-size: 0.875rem; grid-column: 1 / auto; line-height: 1.5rem; overflow-x: auto; white-space: pre;"><code style="-webkit-border-image: unset; -webkit-box-align: unset; -webkit-box-decoration-break: unset; -webkit-box-direction: unset; -webkit-box-flex: unset; -webkit-box-ordinal-group: unset; -webkit-box-orient: unset; -webkit-box-pack: unset; -webkit-box-reflect: unset; -webkit-font-smoothing: unset; -webkit-highlight: unset; -webkit-hyphenate-character: unset; -webkit-line-break: unset; -webkit-line-clamp: unset; -webkit-locale: unset; -webkit-mask-box-image: unset; -webkit-mask-composite: unset; -webkit-mask: unset; -webkit-perspective-origin-x: unset; -webkit-perspective-origin-y: unset; -webkit-print-color-adjust: unset; -webkit-rtl-ordering: unset; -webkit-ruby-position: unset; -webkit-tap-highlight-color: unset; -webkit-text-combine: unset; -webkit-text-decorations-in-effect: unset; -webkit-text-emphasis-position: unset; -webkit-text-emphasis: unset; -webkit-text-fill-color: unset; -webkit-text-orientation: unset; -webkit-text-security: unset; -webkit-text-stroke: unset; -webkit-transform-origin-x: unset; -webkit-transform-origin-y: unset; -webkit-transform-origin-z: unset; -webkit-user-drag: unset; -webkit-user-modify: unset; -webkit-writing-mode: unset; accent-color: unset; alignment-baseline: unset; animation: unset; app-region: unset; appearance: unset; aspect-ratio: unset; backdrop-filter: unset; backface-visibility: unset; background-attachment: unset; background-blend-mode: unset; background-clip: unset; background-color: unset; background-image: linear-gradient(to right,var(--ds--code--line-number-bg-color,#EBECF0),var(--ds--code--line-number-bg-color,#EBECF0) calc(2ch + 16px),transparent calc(2ch + 16px),transparent); background-origin: unset; background-position: unset; background-repeat: unset; background-size: unset; baseline-shift: unset; block-size: unset; border-block: unset; border-collapse: unset; border-end-end-radius: unset; border-end-start-radius: unset; border-inline: unset; border-radius: unset; border-spacing: unset; border-start-end-radius: unset; border-start-start-radius: unset; border: unset; box-shadow: unset; box-sizing: unset; break-after: unset; break-before: unset; break-inside: unset; buffered-rendering: unset; caption-side: unset; caret-color: unset; clear: unset; clip-path: unset; clip-rule: unset; clip: unset; color-interpolation-filters: unset; color-interpolation: unset; color-rendering: unset; color-scheme: unset; color: unset; column-fill: unset; column-rule: unset; column-span: unset; columns: unset; contain-intrinsic-block-size: unset; contain-intrinsic-inline-size: unset; contain-intrinsic-size: unset; contain: unset; content-visibility: unset; content: unset; counter-increment: unset; counter-reset: unset; counter-set: unset; cursor: unset; cx: unset; cy: unset; d: unset; display: unset; dominant-baseline: unset; empty-cells: unset; fill-opacity: unset; fill-rule: unset; fill: unset; filter: unset; flex-flow: unset; flex: 1 0 auto; float: unset; flood-color: unset; flood-opacity: unset; font-feature-settings: unset; font-kerning: unset; font-optical-sizing: unset; font-variation-settings: unset; font: unset; forced-color-adjust: unset; gap: unset; grid-area: unset; grid: unset; height: unset; hyphens: unset; image-orientation: unset; image-rendering: unset; inline-size: unset; inset-block: unset; inset-inline: unset; inset: unset; isolation: unset; letter-spacing: unset; lighting-color: unset; line-break: unset; list-style: unset; margin-block: unset; margin-inline: unset; margin: unset; marker: unset; mask-type: unset; mask: unset; max-block-size: unset; max-height: unset; max-inline-size: unset; max-width: unset; min-block-size: unset; min-height: unset; min-inline-size: unset; min-width: unset; mix-blend-mode: unset; object-fit: unset; object-position: unset; offset: unset; opacity: unset; order: unset; orphans: unset; outline-offset: unset; outline: unset; overflow-anchor: unset; overflow-clip-margin: unset; overflow-wrap: unset; overflow: unset; overscroll-behavior-block: unset; overscroll-behavior-inline: unset; overscroll-behavior: unset; padding-block: unset; padding-bottom: 8px; padding-inline: unset; padding-left: 0px; padding-right: 8px !important; padding-top: 8px; page-orientation: unset; page: unset; paint-order: unset; perspective-origin: unset; perspective: unset; place-content: unset; place-items: unset; place-self: unset; pointer-events: unset; position: unset; quotes: unset; r: unset; resize: unset; ruby-position: unset; rx: unset; ry: unset; scroll-behavior: unset; scroll-margin-block: unset; scroll-margin-inline: unset; scroll-margin: unset; scroll-padding-block: unset; scroll-padding-inline: unset; scroll-padding: unset; scroll-snap-align: unset; scroll-snap-stop: unset; scroll-snap-type: unset; scrollbar-gutter: unset; shape-image-threshold: unset; shape-margin: unset; shape-outside: unset; shape-rendering: unset; size: unset; speak: unset; stop-color: unset; stop-opacity: unset; stroke-dasharray: unset; stroke-dashoffset: unset; stroke-linecap: unset; stroke-linejoin: unset; stroke-miterlimit: unset; stroke-opacity: unset; stroke-width: unset; stroke: unset; tab-size: unset; table-layout: unset; text-align-last: unset; text-align: unset; text-anchor: unset; text-combine-upright: unset; text-decoration-skip-ink: unset; text-decoration: unset; text-indent: unset; text-orientation: unset; text-overflow: unset; text-rendering: unset; text-shadow: unset; text-size-adjust: unset; text-transform: unset; text-underline-offset: unset; text-underline-position: unset; touch-action: unset; transform-box: unset; transform-origin: unset; transform-style: unset; transform: unset; transition: unset; user-select: unset; vector-effect: unset; vertical-align: unset; visibility: unset; widows: unset; width: unset; will-change: unset; word-break: unset; word-spacing: unset; writing-mode: unset; x: unset; y: unset; z-index: unset; zoom: unset;"><span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">1</span><span class="">test@testM1:/usr/local/share/ca-certificates/extra$ sudo update-ca-certificates
</span><span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">2</span>Updating certificates in /etc/ssl/certs...
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">3</span>rehash: warning: skipping duplicate certificate in cert-cas.pem
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">4</span>3 added, 0 removed; done.
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">5</span>Running hooks in /etc/ca-certificates/update.d...
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">6</span>
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">7</span>Adding debian:test.com-cachain.pem
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">8</span>Adding debian:test.com-rootca.pem
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">9</span>Adding debian:test.com-subca.pem
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">10</span>done.
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">11</span>done.
<span class="comment linenumber react-syntax-highlighter-line-number" style="box-sizing: border-box; color: rgb(80, 95, 121) !important; display: inline-block; flex-shrink: 0; margin-right: 8px; min-width: 1.25em; padding-left: 8px; padding-right: 1em; text-align: right; user-select: none;">12</span>
</code></span></div><ul class="ak-ul" data-indent-level="1" style="background-color: #ebecf0; box-sizing: border-box; color: #172b4d; display: flow-root; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 14px; margin: 12px 0px 0px; padding: 0px 0px 0px 24px; white-space: pre-wrap;"><li><p data-renderer-start-pos="1131" style="font-size: 1em; letter-spacing: -0.005em; line-height: 1.714; margin: 0px; padding: 0px;"><br /></p></li></ul>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-129808330278278602022-01-05T14:28:00.004+08:002022-01-05T14:28:33.731+08:00Find files in dir not contain a string <p><br /></p><p><br /></p><p> find . -iname "*.md" -exec grep -Li "All rights reserved" {} \+</p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-8788280281205224872021-11-11T11:07:00.002+08:002021-11-11T11:08:22.671+08:00 Error: GitHub.DistributedTask.ObjectTemplating.TemplateValidationException Unrecognized named-value: 'secrets'<p> <span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: maroon; font-size: 16px; font-style: inherit; font-weight: inherit;">Error</span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; font-size: 16px; font-style: inherit; font-weight: inherit;">: </span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: maroon; font-size: 16px; font-style: inherit; font-weight: inherit;">GitHub.DistributedTask.ObjectTemplating.TemplateValidationException</span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; font-size: 16px; font-style: inherit; font-weight: inherit;">: </span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: maroon; font-size: 16px; font-style: inherit; font-weight: inherit;">The template is not valid. /home/runner/work/test/test/./.github/actions/test/action.yml (Line</span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; font-size: 16px; font-style: inherit; font-weight: inherit;">: </span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: maroon; font-size: 16px; font-style: inherit; font-weight: inherit;">22, Col</span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; font-size: 16px; font-style: inherit; font-weight: inherit;">: </span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: maroon; font-size: 16px; font-style: inherit; font-weight: inherit;">14)</span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; font-size: 16px; font-style: inherit; font-weight: inherit;">: </span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: maroon; font-size: 16px; font-style: inherit; font-weight: inherit;">Unrecognized named-value</span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; font-size: 16px; font-style: inherit; font-weight: inherit;">: </span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: blue; font-size: 16px; font-style: inherit; font-weight: inherit;">'secrets'</span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: maroon; font-size: 16px; font-style: inherit; font-weight: inherit;">. Located at position 1 within expression</span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; font-size: 16px; font-style: inherit; font-weight: inherit;">: </span><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: blue; font-size: 16px; font-style: inherit; font-weight: inherit;">secrets.PASS</span></p><p><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: blue; font-size: 16px; font-style: inherit; font-weight: inherit;"><br /></span></p><p><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: blue; font-size: 16px; font-style: inherit; font-weight: inherit;">Fix: actions does not have access to secrets, only the workflow is allowed to access secrets.</span></p><p><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: blue; font-size: 16px; font-style: inherit; font-weight: inherit;"><br /></span></p><p style="background-color: #222222; color: #dddddd; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 15.008px; margin-top: 0px;">workflow to pass the secret as:</p><pre class="copy-codeblocks" style="background-color: #222222; color: #dddddd; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 15.008px; overflow: visible; position: relative;"><button class="btn nohighlight copy-cmd" style="align-items: center; appearance: none; background-color: #eff3f6; background-image: linear-gradient(-180deg, rgb(250, 251, 252) 0%, rgb(239, 243, 246) 90%); background-position: -1px -1px; background-repeat: repeat-x; background-size: 110% 110%; border-color: rgba(27, 31, 35, 0.2); border-radius: 0.25em; border-style: solid; border-width: 1px; color: #24292e; cursor: pointer; font-family: inherit; font-size: var(--font-down-2); font-weight: 600; justify-content: center; margin: 0.5em; min-height: 0px; opacity: 0; overflow: visible; padding: 6px 12px; position: absolute; right: 0px; top: 0px; transition: all 0.2s ease 0s; user-select: none; vertical-align: middle; visibility: hidden; white-space: nowrap;"><svg class="fa d-icon d-icon-copy svg-icon svg-string" xmlns="http://www.w3.org/2000/svg"><use xlink:href="#copy"></use></svg></button><code class="hljs handlebars" style="background: rgb(248, 248, 248); color: #333333; display: block; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 1em; max-height: 500px; overflow-wrap: normal; overflow: auto; padding: 0.5em; tab-size: 4;"><span class="xml">with:
secret_input: $</span><span class="hljs-template-variable" style="color: teal;">{{ <span class="hljs-name" style="color: navy;">secrets.SUPER_SECRET</span> }}</span><span class="xml">
</span></code></pre><p style="background-color: #222222; color: #dddddd; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 15.008px;">And then, in action.yml,</p><p><span face=""Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif" style="-webkit-font-smoothing: antialiased; background-color: #e9eaf6; box-sizing: border-box; color: blue; font-size: 16px; font-style: inherit; font-weight: inherit;"></span></p><pre class="copy-codeblocks" style="background-color: #222222; color: #dddddd; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 15.008px; overflow: visible; position: relative;"><button class="btn nohighlight copy-cmd" style="align-items: center; appearance: none; background-color: #eff3f6; background-image: linear-gradient(-180deg, rgb(250, 251, 252) 0%, rgb(239, 243, 246) 90%); background-position: -1px -1px; background-repeat: repeat-x; background-size: 110% 110%; border-color: rgba(27, 31, 35, 0.2); border-radius: 0.25em; border-style: solid; border-width: 1px; color: #24292e; cursor: pointer; font-family: inherit; font-size: var(--font-down-2); font-weight: 600; justify-content: center; margin: 0.5em; min-height: 0px; opacity: 0; overflow: visible; padding: 6px 12px; position: absolute; right: 0px; top: 0px; transition: all 0.2s ease 0s; user-select: none; vertical-align: middle; visibility: hidden; white-space: nowrap;"><svg class="fa d-icon d-icon-copy svg-icon svg-string" xmlns="http://www.w3.org/2000/svg"><use xlink:href="#copy"></use></svg></button><code class="hljs yaml" style="background: rgb(248, 248, 248); color: #333333; display: block; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 1em; max-height: 500px; overflow-wrap: normal; overflow: auto; padding: 0.5em; tab-size: 4;"><span class="hljs-attr">inputs:</span>
<span class="hljs-attr">secret_input:</span>
<span class="hljs-attr">description:</span> <span class="hljs-string" style="color: #dd1144;">"..."</span>
<span class="hljs-attr">required:</span> <span class="hljs-literal" style="color: teal;">true</span>
<span class="hljs-string" style="color: #dd1144;">...</span>
<span class="hljs-attr">runs:</span>
<span class="hljs-string" style="color: #dd1144;">.....</span>
<span class="hljs-bullet" style="color: #990073;">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string" style="color: #dd1144;">.....</span>
<span class="hljs-attr">env:</span>
<span class="hljs-attr">MY_SECRET:</span> <span class="hljs-string" style="color: #dd1144;">${{</span> <span class="hljs-string" style="color: #dd1144;">inputs.secret_input</span> <span class="hljs-string" style="color: #dd1144;">}}</span></code></pre>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-30489212346184814832021-11-05T12:47:00.005+08:002021-11-05T12:47:56.382+08:00fix: docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].<p> add <b>export ADE_DISABLE_NVIDIA_DOCKER=1</b> to .aderc at the start</p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-49513219005567551212021-10-08T10:41:00.003+08:002021-10-08T10:41:33.143+08:00Use github action to checkout gitlab (or external submodules)<br /><script src="https://gist.github.com/fmg-mihir/958aa0610e0c58951e36e9c987fc9d86.js"></script><div><br /></div><div>add the CI_USER and CI_PAT to your github repo under secrets.</div><div>replace gitlab with your external repo.</div>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-38456655463911007532021-09-16T16:32:00.004+08:002021-09-16T16:32:52.083+08:00"apt full-upgrade" returns "1 not fully installed or removed."<span style="background-color: white; color: #232629; font-family: inherit; font-size: 15px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;">1. find the issue.</span><br /><span style="background-color: white; color: #232629; font-family: inherit; font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;"> sudo dpkg -C</span><br /><p style="display: inline; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; text-align: left;"><span style="font-size: 13px;"><br /></span></p><div><p style="display: inline; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; text-align: left;"><span style="font-size: 13px;">test@test:/var/lib/dpkg$ sudo dpkg -C</span></p><p style="font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;"><span style="font-size: 13px;">The following packages are in a mess due to serious problems during</span></p><p style="font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;"><span style="font-size: 13px;">installation. They must be reinstalled for them (and any packages</span></p><p style="font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;"><span style="font-size: 13px;">that depend on them) to function properly:</span></p><p style="font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;"></p><p style="font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;"><span style="font-size: 13px;"> <b>libreoffice-common</b> office productivity suite -- arch-independent files</span></p><p style="font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;"><span style="background-color: white; font-family: inherit; font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;">3. </span><span style="background-color: white; color: #232629; font-family: inherit; font-size: 15px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;">Remove the broken package via the following command:</span></p><p style="font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;"><span style="background-color: white; color: #232629; font-family: inherit; font-size: 15px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;"> </span><span style="color: #232629; font-family: inherit; font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;">sudo dpkg --remove --force-remove-reinstreq </span><span style="font-size: 13px;"> </span><b style="font-size: 13px;">libreoffice-common</b><span style="font-size: 13px;"> </span></p><p style="font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;"><span style="background-color: white; color: #232629; font-family: inherit; font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;">4. </span><span style="background-color: white; color: #232629; font-family: inherit; font-size: 15px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;">Install the package again:</span></p><p style="font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;"><span style="background-color: white; color: #232629; font-family: inherit; font-size: 15px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;"> </span><span style="color: #232629; font-family: inherit; font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;">sudo apt-get install </span><span style="font-size: 13px;"> </span><b style="font-size: 13px;">libreoffice-common</b><span style="font-size: 13px;"> </span></p><p style="font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit;"><br /></p></div>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-38985573024332440842021-09-02T10:57:00.000+08:002021-09-02T10:57:51.683+08:00Wifi setup from command line on linux<p> 1. find the wireless interface (starting with w)</p><p><br /></p><p>ip a</p><p><br /></p><p>2. To check the configuration of the wireless interface</p><p><br /></p><p>sudo iwconfig</p><p><br /></p><p>2. make sure the wireless interface is up</p><p><br /></p><p>sudo ip link set w___ up</p><p><br /></p><p>3. find the ESSID of available for connection</p><p><br /></p><p>sudo iwlist w___ scan | grep ESSID</p><p><br /></p><p>4.1 Connect to the ESSID of your choice ( yyy )</p><p><br /></p><p>sudo iwconfig w___ essid yyy</p><p><br /></p><p>4.2 If it's password-protected then use</p><p><br /></p><p>sudo iwconfig w___ essid yyy key s:zzz</p><p><br /></p><p>(Here "s:" is used for string, while "zzz" is your key)</p><p><br /></p><p>5. Setting up dhcp</p><p><br /></p><p>sudo dhclient w___</p><p><br /></p><p>6. check the connection to the internet</p><p><br /></p><p>ping 8.8.8.8</p><p><br /></p><p><br /></p><p><br /></p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-74662935854021017842021-08-02T10:22:00.005+08:002021-08-02T10:22:50.628+08:00recursively delete empty directories<pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><span style="font-family: Times New Roman;"><span style="white-space: normal;">delete all empty folders in current dir</span></span></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><span style="font-family: Times New Roman;"><span style="white-space: normal;"><b>find . -type d -empty -delete</b> </span></span></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><span style="font-family: Times New Roman;"><span style="white-space: normal;">delete all empty files in current dir </span></span></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><span style="font-family: Times New Roman;"><span style="white-space: normal;"><b>find . -type f -empty -delete</b> </span></span></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><span style="font-family: Times New Roman;"><span style="white-space: normal;">print all empty folders in current dir </span></span></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><span style="font-family: Times New Roman;"><span style="white-space: normal;"><b>find . -type d -empty -print</b></span></span><span style="color: var(--highlight-color); font-family: var(--ff-mono); font-size: 13px;">
</span></pre><div><br /></div>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-56527167268190859552021-07-23T14:11:00.006+08:002021-07-23T14:11:53.235+08:00ade environment share directory from local machine or external drive<p><span style="font-family: "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 14px;">Add following to the .aderc ( lsblk can be used to find the mounted dir if it's a external usb drive or SSD )</span></p><p><span style="font-family: "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 14px;"><br /></span></p><p><span style="font-family: "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 14px;"> --mount type=bind,source=/media/sda1-usb-Generic_Flash_Di,destination=/media/sda1-usb-Generic_Flash_Di,bind-propagation=shared</span></p><div style="box-sizing: border-box; font-family: "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 14px;"><div><br /></div>
<div><br /></div><div>Ref:</div><div><a href="https://serverfault.com/questions/903534/use-auto-mounted-usb-drives-in-docker-container" rel="noreferrer noopener" tabindex="-1" target="_blank" title="https://serverfault.com/questions/903534/use-auto-mounted-usb-drives-in-docker-container">https://serverfault.com/questions/903534/use-auto-mounted-usb-drives-in-docker-container</a></div><div><br /></div></div>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-45913824182327439922021-05-20T10:15:00.003+08:002021-05-20T10:15:38.537+08:00fix Font characters displayed as squares in Ubuntu<p> </p><p><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ62p06fEgfRXHw4AIAOkpRzDP55s6KU9H59ebVBHphm2OwUIpMlPvDsk-OF5Uz1v_uRIMq4LCbcP34ULEC9yE-kCQ-0_BdAidTQxhxZ1FqFXSNFwWUgTva8KqnOaHjaorAZZjD2A91q99/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="942" data-original-width="1213" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ62p06fEgfRXHw4AIAOkpRzDP55s6KU9H59ebVBHphm2OwUIpMlPvDsk-OF5Uz1v_uRIMq4LCbcP34ULEC9yE-kCQ-0_BdAidTQxhxZ1FqFXSNFwWUgTva8KqnOaHjaorAZZjD2A91q99/" width="309" /></a></div><br /><p></p><p><br /></p><p>execute</p><p><br /></p><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;">rm -rf ~/.cache/fontconfig
sudo fc-cache -r -v</code></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><br /></code></pre><pre style="border-radius: 5px; border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.30769; margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; vertical-align: baseline; width: auto;"><code style="border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;">enter your sudo password after executing this lines and </code> reboot</pre>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-28232091976486654692021-05-19T14:25:00.003+08:002021-05-19T14:25:19.286+08:00Setup ragner highlighting file<p>sudo apt install ranger highlight</p><p><br /></p><p>to setup highlighting of file execute following </p><p><br /></p><p> <span style="background-color: rgba(27, 31, 35, 0.05); color: #24292e; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 11.9px;">ranger --copy-config=scope</span></p><p><span style="background-color: rgba(27, 31, 35, 0.05); color: #24292e; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 11.9px;"><br /></span></p><p><span style="background-color: rgba(27, 31, 35, 0.05); color: #24292e; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 11.9px;"><br /></span></p><p><span style="background-color: rgba(27, 31, 35, 0.05); color: #24292e; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 11.9px;"><br /></span></p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-11614262372741010002021-05-06T13:16:00.003+08:002021-05-06T13:16:28.721+08:00OSError: liblas_c.so.3: cannot open shared object file: No such file or directory<p> <span style="background-color: rgba(27, 31, 35, 0.05); color: #24292e; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 11.9px;">sudo apt install -y liblas-c-dev</span></p><p><span style="background-color: rgba(27, 31, 35, 0.05); color: #24292e; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 11.9px;"><br /></span></p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-42229295875139499982021-04-27T21:44:00.000+08:002021-04-27T21:44:02.529+08:00Fix Microsoft OneDrive export large ZIP files that are corrupt<p>File downloaded where size is more then 4GB, when you try unzipping shows corrupt.</p><p>Looks like there is a bug in the zip library itself that is not fixed. Following is a workaround.</p><p><br /></p><p>problem:</p><pre class="highlight" style="background-color: #f8f8f8; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.15); color: #333333; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 16px; line-height: 20px; margin-bottom: 30px; margin-top: 30px; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;"><code style="background-color: transparent; border-radius: 3px; border: 0px; color: inherit; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; margin-bottom: 30px; margin-top: 30px; padding: 0px;"> zipfile corrupt.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)</code></pre><p>Solution: (from Paul Marquess)</p><p><br /></p><p style="background-color: white; color: #333333; font-family: Lato; font-size: 22px; margin: 0px 0px 30px;"><a href="https://github.com/pmqs/Fix-OneDrive-Zip" style="color: #0088cc; text-decoration-line: none;">https://github.com/pmqs/Fix-OneDrive-Zip</a></p><div class="language-bash highlighter-rouge" style="background-color: white; color: #333333; font-family: Lato; font-size: 22px;"><div class="highlight" style="background-color: #f8f8f8;"><pre class="highlight" style="border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.15); font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 16px; line-height: 20px; margin-bottom: 30px; margin-top: 30px; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;"><code style="background-color: transparent; border-radius: 3px; border: 0px; color: inherit; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; margin-bottom: 30px; margin-top: 30px; padding: 0px;">fix-onedrive-zip onedrive-zip-test-zeros.zip
</code></pre></div></div><p style="background-color: white; color: #333333; font-family: Lato; font-size: 22px; margin: 0px 0px 30px;">After running the script, You shall be able to unzip the file as normal without error.</p><p style="background-color: white; color: #333333; font-family: Lato; font-size: 22px; margin: 0px 0px 30px;"><br /></p><p>Note:-</p><p>If you want to see detailed explanation then see following</p><p><br /></p><p>https://www.bitsgalore.org/2020/03/11/does-microsoft-onedrive-export-large-ZIP-files-that-are-corrupt</p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-22192601679868949832021-04-27T21:38:00.000+08:002021-04-27T21:38:37.168+08:00fix : nvml error: driver/library version mismatch: unknown.<p> reboot the main machine and then retry.</p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-252313328723179092021-04-14T15:53:00.002+08:002021-04-14T15:53:33.751+08:00Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: Running hook #0:: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: mount error: stat failed: /dev/nvidia-modeset: no such file or directory: unknown.<p>Solution:</p><p>(Platform Ubuntu)</p><p></p><ol style="text-align: left;"><li>Open software & updates</li><li>go to additional drivers</li><li>Select to using X.Org X Server - Nouveau</li><li>Apply</li><li>Select Using NVIDIA Driver metapakage nvidia-driver</li><li>Apply</li></ol><div>now you can see the file is not missing.</div><div><br /></div><div>ls -al <span style="font-family: "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 14px;">/dev/nvidia-modeset</span></div><p></p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-14511916978320817522021-01-29T10:48:00.001+08:002021-01-29T10:50:50.967+08:00fix : Unable to update nvidia driver on ubuntu<p> sudo software-properties-gtk</p><p><br /></p><p>1. go to the main tab and remove all selection and select close. ( Let the list update)</p><p>2. run the same command, select all options and apply close letting the list update.</p><p>3. now you can run the same command go to Additional Driver and install the Nvidia driver.</p><p><br /></p><p><br /></p><p>Problem: ( Ubuintu-16.04, issue with software properties not saved properly)<br /></p><p>The following packages have unmet dependencies:<br /> nvidia-460 : Depends: lib32gcc1 but it is not going to be installed<br /> Depends: libc6-i386 but it is not going to be installed<br /><br /></p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-6278243712544094192020-11-19T11:17:00.004+08:002020-11-19T11:17:58.229+08:00fix : WslRegisterDistribution error 0x80370102<p>under powershell (run as admin) execute following.</p><p><br /></p><p> <span style="background-color: #f2f2f2; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;">wsl --set-default-version 1</span></p><p><span style="background-color: #f2f2f2; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;"><br /></span></p><p><span style="background-color: #f2f2f2; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;">then run your vm again.</span></p><p><span style="background-color: #f2f2f2; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;"><br /></span></p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-36890363627627442872020-09-16T15:00:00.005+08:002020-09-16T15:03:29.499+08:00fixed sed: preserving permissions for : Permission denied (Windows, MingW)<p>issue : <span style="background-color: white; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px;">Windows security settings.</span></p><p style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1.4667em; padding: 0px; vertical-align: baseline;">Open the folder's Properties settings from the context menu. In the Security tab, click <em style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Edit</em>, press <em style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Add...</em> in the pop-up window and add your user to the list, check <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Full Control</strong> in the <em style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Allow</em> column. Press <em style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">OK</em> twice to apply the changes.</p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0tag:blogger.com,1999:blog-1619647815507301957.post-49446593748174060972020-09-03T21:02:00.008+08:002020-09-03T21:06:26.076+08:00fix / solution : error: No pakage opencv found<p><span style="background-color: #f9f9f9; color: #030303; font-family: Roboto, Arial, sans-serif; font-size: 14px; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2;">sudo apt-get update</span></p><p><span style="background-color: #f9f9f9; color: #030303; font-size: 14px; white-space: pre-wrap;">sudo apt-get install libopencv-dev</span></p><p><span style="background-color: #f9f9f9; color: #030303; font-size: 14px; white-space: pre-wrap;"><br /></span></p><p><span style="background-color: #f9f9f9; color: #030303; font-size: 14px; white-space: pre-wrap;">ref: </span>https://www.youtube.com/watch?v=6pABIQl1ZP0</p>Mihirhttp://www.blogger.com/profile/17917772461380151084noreply@blogger.com0