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

11.07.2024

error: git-remote-https died of signal 4 (Solved)

 

"Method https has died unexpectedly! Sub-process https received signal 4" after adding any additional repositories - Ubuntu Desktop 22.04

 

sudo GNUTLS_CPUID_OVERRIDE=0x1 apt-get update 

this works for me

according to this https://groups.google.com/g/linux.debian.bugs.dist/c/ItKoVDieSow

and you need to add ~/.bashrc with this

export  GNUTLS_CPUID_OVERRIDE=0x1 

for long-term use

 

10.30.2024

Ubuntu安装aptitude,来解决软件包依赖关系的问题

 

Ubuntu安装aptitude,来解决软件包依赖关系的问题


sudo apt-get install aptitude

sudo aptitude update
sudo aptitude search
sudo aptitude install

10.29.2024

OAK-D USB

 OAK-D USB


* Luxonics github

  https://github.com/luxonis/depthai

  https://github.com/luxonis/depthai-ros

  https://github.com/luxonis/depthai-hardware


* Luxonics Docs

SW

 DepthAI Tutorials

   - {https://docs.luxonis.com/software/depthai/getting-started/}[Getting Started]


   sudo wget -qO- https://docs.luxonis.com/install_depthai.sh | bash


   - {https://docs.luxonis.com/software/depthai/manual-install/}[Manual DepthAI installation]

   - {https://docs.luxonis.com/software/depthai/hello-world/}[Hello World]


HW

  -- {https://docs.luxonis.com/hardware/platform/deploy/usb-deployment-guide/}[USB deployment guide]

   - {https://docs.luxonis.com/hardware/platform/deploy/to-rpi/}[Deploy with Raspberry Pi]


* turtlebot4 manual

sensor/OAK-D 

https://turtlebot.github.io/turtlebot4-user-manual/software/sensors.html#oak-d

install/run

   # install

   sudo apt install ros-humble-depthai-ros

   # run

   ros2 launch depthai_examples mobile_publisher.launch.py

   # AI examples are available on the DepthAI github.

   # To view the images from these examples you will need to ssh into the robot with a -X flag:

   ssh -X ubuntu@10.42.0.1

8.25.2018

.o, .a, .so, .la 如何產生

o, .a, .so, .la 如何產生

  • 建立 .o
    $ gcc -c test.c
  • 建立 .a
    $ ar -r libtest.a test1.o test2.o
  • 建立動態函式庫 .so
    $ gcc -Wall -fpic -shared test1.c test2.c -o libtest.so
  • 鍊結函式庫
    $ gcc -Wall -fpic -shared -Ltest test3.c -o libtest.so
  • 建立 .la, .la 一般會使用 Makefile 產生, 可以透過下述命令產生:
    $ libtool --mode=link gcc -o libmylib.la -rpath /usr/lib –L/usr/lib –la

Linux 的 .a / .so / .la 函式庫的差異

  • .o (obj file) 是目標物件函式庫, 等同於 Windows 的 .obj
  • .a 為靜態函式庫, 可以是 一個 或 多個 .o 合在一起, 用於靜態連結
  • .la 為 libtool 生成的共享函式庫, 其實是個設定的檔案. 可以用 file 代替
  • .la 可用 vi 來查看
  • .so 為動態函式庫, 類似 Windows 的 DLL(Dynamic-link library)檔.
  • 補充: 還有一種附檔名為 .ko 的檔案, 不過它是 Linux 核心使用的動態連結文件, 屬於模組程式, 用來在 Linux 系統啟動時, 加掛核心模組用.

9.25.2015

Can't log in to ubuntu 12.04 (轉貼)

I can't log in to my ubuntu 12.04. Once I login I got returned back to the original screen after a trial to enable X11 Forwarding.
Can you help me with this.
shareimprove this question
   
Are you trying to login remotely? What did you do to try to enable X11 forwarding? –  izx May 19 '12 at 21:40
   
Does this only happen when trying to log in remotely? Or are you having this problem logging in locally as well? –  Eliah Kagan Mar 27 '13 at 1:07
   
Check your .xsession-errors in your home directory, I found an error over there, fixed it, then I can login from desktop. I did try to change the permission and ownership of .Xauthority but it doesn't help in my case. – user288195 Jun 3 '14 at 23:25

9 Answers

I haven't tried to enable X11Forwarding, but I used to have the same problem. You can fix this in a few steps:
  • When you get to the graphical login screen, hit Ctrl+Alt+F2, thus you get to a textual login.
  • Put in your name and password (password is not displayed when you type, neither as stars or bullets).
  • Type sudo apt-get install gdm and hit enter, give your password and wait to get a line ending with a dollar sign again.
  • Type sudo dpkg-reconfigure gdm.
  • Hit Enter at the first screen.
  • Select gdm in the list you get in the second screen with the arrow keys.
  • Hit the Tab button (above the caps lock one). Now you see the word Ok highlighted. Hit Enter.
  • Type sudo reboot and hit enter. You'll get another graphical login screen, but you'll be able to log in!
P.S.:
  1. If you are used to running some programs like ifconfig or others which are administrative ones from a terminal emulator (e.g. gnome-terminal) you'd better add a line like PATH="$PATH:/sbin:/usr/sbin" at the end of the .bashrc file in your home directory. You can do it with echo 'PATH="$PATH:/sbin:/usr/sbin"' >> ~/.bashrc.
  2. If you want to change back to the other graphical login screen from time to time and see if it was bug-fixed and it works again you can run sudo dpkg-reconfigure gdm and select lightdm and reboot (doesn't look like it works if you just run sudo pkill X).
shareimprove this answer

9.25.2014

(轉貼)How do I tell what type my shell is

How can I tell what type my shell is? ie, whether it's traditional sh, bash, ksh, csh, zsh etc.
Note that checking $SHELL or $0 won't work because $SHELL isn't set by all shells, so if you start in one shell and then start a different one you may still have the old $SHELL.
$0 only tells you where the shell binary is, but doesn't tell you whether /bin/sh is a real Bourne shell or bash.
I presume that the answer will be "try some features and see what breaks", so if anyone can point me at a script that does that, that'd be great.

Try to locate the shell path using the current shell PID:
ps -p $$
It should work at least with sh, bash and ksh.
share|improve this answer