Το τυπογραφικό που λέω είναι το σύμβολο % αντί για $.
Εμφάνιση 1.786-1.800 από 2222
Θέμα: Ερώτηση για bash
-
08-09-22, 12:08 Απάντηση: Ερώτηση για bash #1786
-
08-09-22, 12:13 Απάντηση: Ερώτηση για bash #1787
Οντως αυτο ηταν τωρα που το κοιταω :P
ديميتريس
-
03-10-22, 12:18 Απάντηση: Ερώτηση για bash #1788
Αν εχει κανεις καμια ιδεα για το echo που λεω εδω...
https://www.adslgr.com/forum/threads...=1#post7327249ديميتريس
-
16-11-22, 11:23 Απάντηση: Ερώτηση για bash #1789
Παλι ακουσα τον καθε βλακα του github και τις συμβουλες του για το rustdesk και κατελληξα με αυτο εδω το χαλι. Τι μπορω να κανω?
Δεν με ενδιαφερει που πηγε να εγκαταστησει κατι, με ενδιαφερει να φυγουν αυτα για την python.
Κώδικας:# dpkg --force-all -i rustdesk-1.1.9.deb Selecting previously unselected package rustdesk. (Reading database ... 129252 files and directories currently installed.) Preparing to unpack rustdesk-1.1.9.deb ... Failed to stop rustdesk.service: Unit rustdesk.service not loaded. Unpacking rustdesk (1.1.9) ... dpkg: rustdesk: dependency problems, but configuring anyway as you requested: rustdesk depends on libxdo3; however: Package libxdo3 is not installed. rustdesk depends on pulseaudio; however: Package pulseaudio is not installed. Setting up rustdesk (1.1.9) ... Collecting pynput Downloading pynput-1.7.6-py2.py3-none-any.whl (89 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.2/89.2 kB 869.8 kB/s eta 0:00:00 Collecting python-xlib>=0.17 Downloading python_xlib-0.32-py2.py3-none-any.whl (181 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 181.9/181.9 kB 1.2 MB/s eta 0:00:00 Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pynput) (1.16.0) Collecting evdev>=1.3 Downloading evdev-1.6.0.tar.gz (26 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: evdev Building wheel for evdev (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [37 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 creating build/lib.linux-x86_64-cpython-310/evdev copying evdev/util.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/uinput.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/genecodes.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/ff.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/evtest.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/events.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/eventio_async.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/eventio.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/ecodes.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/device.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/__init__.py -> build/lib.linux-x86_64-cpython-310/evdev running build_ext running build_ecodes The 'linux/input.h' and 'linux/input-event-codes.h' include files are missing. You will have to install the kernel header files in order to continue: yum install kernel-headers-$(uname -r) apt-get install linux-headers-$(uname -r) emerge sys-kernel/linux-headers pacman -S kernel-headers In case they are installed in a non-standard location, you may use the '--evdev-headers' option to specify one or more colon-separated paths. For example: python setup.py \ build \ build_ecodes --evdev-headers path/input.h:path/input-event-codes.h \ build_ext --include-dirs path/ \ install [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for evdev Running setup.py clean for evdev Failed to build evdev Installing collected packages: evdev, python-xlib, pynput Running setup.py install for evdev ... error error: subprocess-exited-with-error × Running setup.py install for evdev did not run successfully. │ exit code: 1 ╰─> [39 lines of output] running install /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 creating build/lib.linux-x86_64-cpython-310/evdev copying evdev/util.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/uinput.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/genecodes.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/ff.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/evtest.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/events.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/eventio_async.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/eventio.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/ecodes.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/device.py -> build/lib.linux-x86_64-cpython-310/evdev copying evdev/__init__.py -> build/lib.linux-x86_64-cpython-310/evdev running build_ext running build_ecodes The 'linux/input.h' and 'linux/input-event-codes.h' include files are missing. You will have to install the kernel header files in order to continue: yum install kernel-headers-$(uname -r) apt-get install linux-headers-$(uname -r) emerge sys-kernel/linux-headers pacman -S kernel-headers In case they are installed in a non-standard location, you may use the '--evdev-headers' option to specify one or more colon-separated paths. For example: python setup.py \ build \ build_ecodes --evdev-headers path/input.h:path/input-event-codes.h \ build_ext --include-dirs path/ \ install [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> evdev note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. dpkg: error processing package rustdesk (--install): installed rustdesk package post-installation script subprocess returned error exit status 1 Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for mailcap (3.70+nmu1) ... Processing triggers for desktop-file-utils (0.26-1) ... Errors were encountered while processing: rustdesk
ديميتريس
-
16-11-22, 12:03 Απάντηση: Ερώτηση για bash #1790
apt-get purge rustdesk και παίξε με deboprhan
- - - Updated - - -
Ξαναδιαβάζω τι έγραψα
Εαν σε ενδιαφέρουν να φύγουν τα πακέτα που εβαλε για την python μπορείς να τα βρείς απο το /var/log/dpkg.log
Εαν πιστεύεις οτι σου γέμισε βλακείες απο το pip
pip list -v και δές το location / Installer
/usr/lib/python3/dist-packages είναι τα μαμά (απο πακέτα)
Installer pip οτι έβαλε μόνο του
Επισης προσοχή στις πολλαπλές python version (που μπορεί να έχεις)
-
16-11-22, 12:46 Απάντηση: Ερώτηση για bash #1791
Ας πουμε οτι καταλαβα τα μισα :P και οτι εχω μια εκδοση της python εγκατεστημενη, την 3.10.
Το pip list -v εχει μονο αυτο εδω το περιεργο
Κώδικας:$ pip list -v Package Version Location Installer ------------------ ------------- ------------------------------ --------- ptyprocess 0.7.0 /usr/lib/python3/dist-packages flit
ديميتريس
-
16-11-22, 18:46 Απάντηση: Ερώτηση για bash #1792
LoL, τότε μια χαρά εσκασε το build process του dpkg.
Πρακτικά ήθελε να κάνει py compile το evdev (i/o) , το evdev θέλει wheel και το πήρε στην μασχάλη.
Το flit δεν είναι κακό, βοηθάει να μην μπλέκεις με τα deps στο pip.
Άλλο τρόπο δεν έχει ? πχ κανενα docker instance ?
Γιατι το κάνεις force και δεν βάζεις τα dependancies με το χέρι ? πχ libxdo3, pulseaudio, python3-evdev, python-xlib (μάλλον), pynput και μπορεί να ξεχναώ κανένα
- - - Updated - - -
Κώδικας:root@bofh:/tmp# cat /etc/debian_version 11.5 root@bofh:/tmp# dpkg -i rustdesk-1.1.9.deb (Reading database ... 50259 files and directories currently installed.) Preparing to unpack rustdesk-1.1.9.deb ... Failed to stop rustdesk.service: Unit rustdesk.service not loaded. Unpacking rustdesk (1.1.9) over (1.1.9) ... dpkg: dependency problems prevent configuration of rustdesk: rustdesk depends on libgtk-3-0; however: Package libgtk-3-0 is not installed. rustdesk depends on libxcb-randr0; however: Package libxcb-randr0 is not installed. rustdesk depends on libxdo3; however: Package libxdo3 is not installed. rustdesk depends on libxfixes3; however: Package libxfixes3 is not installed. rustdesk depends on libxcb-shape0; however: Package libxcb-shape0 is not installed. rustdesk depends on libxcb-xfixes0; however: Package libxcb-xfixes0 is not installed. rustdesk depends on libasound2; however: Package libasound2 is not installed. rustdesk depends on pulseaudio; however: Package pulseaudio is not installed. rustdesk depends on python3-pip; however: Package python3-pip is not installed. dpkg: error processing package rustdesk (--install): dependency problems - leaving unconfigured Processing triggers for mailcap (3.69) ... Errors were encountered while processing: rustdesk
-
16-11-22, 19:03 Απάντηση: Ερώτηση για bash #1793
Ολο αυτο το εγχειρημα ξεκινησε απο το να βαλω το rustdesk χωρις το pa, οπως περιεγραψε ο τυπος εδω
Κώδικας:sudo apt install python3-pip sudo dpkg --force-all -i ./rustdesk-1.1.9.deb sudo apt --fix-broken install
ديميتريس
-
16-11-22, 19:44 Απάντηση: Ερώτηση για bash #1794
Βάλε οτι λείπει με το χέρι (χωρίς --force-all) και μετά ξαναστείλε που παραπονιέται
-
18-11-22, 11:27 Απάντηση: Ερώτηση για bash #1795
Πως μπορω να κατεβασω με wget κατι που εχει στο url του ενα "$"? Οταν δινω ολο το url στο wget, σβηνει το κομματι με το $, πχ
Κώδικας:https://example.com/$mitsos/file > https://example.com//file
ديميتريس
-
18-11-22, 11:49 Απάντηση: Ερώτηση για bash #1796
Βάλε το URL μέσα σε μονά quotes, π.χ. : 'https://example.com/$mitsos/file'
NetBSD Rocks!
http://www.netbsd.org
-
18-11-22, 12:21 Απάντηση: Ερώτηση για bash #1797
Αυτο εκανα και πριν, αλλα δεν κατεβαζε και ξαναπροσπαθουσε συνεχεια. Τωρα το πηρε κανονικα.
ديميتريس
-
18-11-22, 16:28 Απάντηση: Ερώτηση για bash #1798
-
18-11-22, 16:41 Απάντηση: Ερώτηση για bash #1799
Οχι, σε μονα ηταν, το βλεπω και στο history.
ديميتريس
-
03-12-22, 18:21 Απάντηση: Ερώτηση για bash #1800
Θελω να κανω... κατι (λογικα ενα cron job) που θα κοιταει το dmesg καθε 1 λεπτο πχ (ισως να ειναι υπερβολικο) για ενα συγκεκριμενο σφαλμα και θα μου στελνει με το notify-send οτι το βρηκε. Πχ
Κώδικας:dmesg | grep mitsos notify-send vrethike
ديميتريس
Παρόμοια Θέματα
-
Βοήθεια για ένα απλό bash script
Από AddictedToChaos στο φόρουμ Unix - LinuxΜηνύματα: 34Τελευταίο Μήνυμα: 22-07-11, 01:57 -
bash - matlab
Από simeon.mattes στο φόρουμ Unix - LinuxΜηνύματα: 25Τελευταίο Μήνυμα: 25-06-08, 23:00 -
Bash Script help (Αρχάριος)
Από weakwire στο φόρουμ Unix - LinuxΜηνύματα: 12Τελευταίο Μήνυμα: 08-05-07, 00:41 -
bash rename (mv)
Από hayzel στο φόρουμ Unix - LinuxΜηνύματα: 6Τελευταίο Μήνυμα: 07-01-07, 16:33
Bookmarks