Posts

[Solved] Install scapy on Ubuntu 22.04

 If you try to install scapy from apt, you will see the following issues: sudo apt install python3-scapy sudo scapy <frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module() <frozen importlib._bootstrap>:671: ImportWarning: _SixMetaPathImporter.exec_module() not found; falling back to load_module() INFO: Can't import PyX. Won't be able to use psdump() or pdfdump(). To solve them, you need pyx module sudo apt install python3-pyx I could not find info about _SixMetaPathImporter.exec_module()  To avoid this warning, just install the git version: git clone https://github.com/secdev/scapy.git cd scapy sudo python3 setup.py install Enjoy it!

[Solved] Install SAP GUI 7.70 patch level 5 (18/02/2022) Java in Ubuntu 22.04

Image
 First, you need to install the dependencies: apt-get update sudo bash apt-get install -y --no-install-recommends wget ca-certificates gnupg2 export GNUPGHOME="$(mktemp -d)" wget -q -O - https://dist.sapmachine.io/debian/sapmachine.old.key | gpg --batch --import gpg --batch --export --armor 'DA4C 00C1 BDB1 3763 8608 4E20 C7EB 4578 740A EEA2' > /etc/apt/trusted.gpg.d/sapmachine.old.gpg.asc wget -q -O - https://dist.sapmachine.io/debian/sapmachine.key | gpg --batch --import gpg --batch --export --armor 'CACB 9FE0 9150 307D 1D22 D829 6275 4C3B 3ABC FE23' > /etc/apt/trusted.gpg.d/sapmachine.gpg.asc gpgconf --kill all && rm -rf "$GNUPGHOME" echo "deb http://dist.sapmachine.io/debian/amd64/ ./" > /etc/apt/sources.list.d/sapmachine.list apt-get update apt-get install sapmachine-18-jdk openjfx Next, download SAP GUI 7.70 from mediafire Execute the jar file with the following sentence: sudo java -jar PlatinGUI770_5-80004696.JAR Next...

[Solved] How to install VMPlayer on Ubuntu 22.04

Image
First, download it from the official url Now, change the permissions to execute it: chmod +x VMware-Player-Full-16.2.3-19376536.x86_64.bundle sudo ./VMware-Player-Full-16.2.3-19376536.x86_64.bundle Now, you need to run VMPlayer, but you probably see the following issue:       To install all modules in newer kernels, just install  this package: wget https://codeload.github.com/mkubecek/vmware-host-modules/tar.gz/refs/heads/workstation-16.2.1 -O workstation-16.2.1.tar.gz tar xvf workstation-16.2.1.tar.gz cd vmware-host-modules-workstation-16.2.1/ make sudo make install   If you try to run an image, you could see the following alert: This means you need to load the vmmon and vmnet modules to the kernel: sudo modprobe vmmon sudo modprobe vmnet   Now, you could run VMPlayer without issues!  

ImageMagick cache resources exhausted

If you are trying to merge multiple images in a pdf you can use "convert" command, and probably will see the following message: convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408. to enable this operation, you must edit the policy.xml file from ImageMagick. This file is located in /etc/ImageMagick-6/policy.xml (if the path doesn't exist, just write /etc/ImageMagick and press Tab). Add the following line before </policymap> <policy domain="coder" rights="read | write" pattern="PDF" /> Also, other common issue is the following: convert-im6.q16: DistributedPixelCache '127.0.0.1' @ error/distribute-cache.c/ConnectPixelCacheServer/244. convert-im6.q16: cache resources exhausted `source.jpg' @ error/cache.c/OpenPixelCache/3984. To solve this, just increase the cache resources in disk value. Replace: <policy domain="resource" na...

failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied

To fix this issue you only need to change the permissions to docker.sock sudo chmod 666 /var/run/docker.sock Enjoy it!

How to fix TeamViewer: Not ready. Please check your connection

Image
If you run TeamViewer you will see the following output Init... CheckCPU: SSE2 support: yes Checking setup... Launching TeamViewer ... Starting network process (no daemon) Network process already started (or error) Launching TeamViewer GUI ... If you have an eternal loading, you will see the following window: To solve it, and could to connect to a remote computer you must run teamviewer as daemon as follows: sudo teamviewer --daemon enable Action: Installing daemon (15.5.3) for 'systemd' ... installing /etc/systemd/system/teamviewerd.service (/opt/teamviewer/tv_bin/script/teamviewerd.service) Try: systemctl enable teamviewerd.service systemctl start teamviewerd.service Now, execute again teamviewer as follows: teamviewer                     Init... CheckCPU: SSE2 support: yes Checking setup... Launching TeamViewer ... Launching TeamViewer GUI ... Enjoy it!

Microsoft Teams meeting link on linux doesn't work

If you must use Teams in linux, probably you will have this issue. After click the meeting link, Teams opens, but not the meeting. To solve it, you need fix the sentence to execute Teams.  Edit the /usr/bin/teams file and replace: nohup "$TEAMS_PATH" --disable-namespace-sandbox --disable-setuid-sandbox "$@" > "$TEAMS_LOGS/teams-startup.log" 2>&1 & by nohup "$TEAMS_PATH" "$@" --disable-namespace-sandbox --disable-setuid-sandbox > "$TEAMS_LOGS/teams-startup.log" 2>&1 & As you can see, the difference is only the position of "$@" Enjoy it!