Unzip executable files for all plataforms - cross-platform

I need to download the executable unzip files for all platforms possible.
echo "1 = windows_intelx86 (Microsoft Windows (98 or later) running on an Intel x86-compatible CPU)"
echo "2 = windows_x86_64 (Microsoft Windows running on an AMD x86_64 or Intel EM64T CPU)"
echo "3 = i686-pc-linux-gnu (Linux running on an Intel x86-compatible CPU)"
echo "4 = x86_64-pc-linux-gnu (Linux running on an AMD x86_64 or Intel EM64T CPU)"
echo "5 = powerpc-linux-gnu (Linux running on a 32-bit PowerPC processor)"
echo "6 = ppc64-linux-gnu (Linux running on a 64-bit PowerPC processor)"
echo "7 = alpha-hp-linux-gnu (Linux running on Alpha)"
echo "8 = ia64-linux-gnu (Linux running on IA64 (Itanium))"
echo "9 = sparc-sun-linux-gnu (Linux running on SPARC)"
echo "10= sparc64-sun-linux-gnu (Linux running on SPARC 64-bit)"
echo "11= powerpc-apple-darwin (Mac OS X 10.3 or later running on Motorola PowerPC)"
echo "12= i686-apple-darwin (Mac OS 10.4+ running on an Intel CPU)"
echo "13= x86_64-apple-darwin (Mac OS 10.5+ running on an Intel 64-bit CPU)"
echo "14= sparc-sun-solaris2.7 (Solaris 2.7 running on a SPARC-compatible CPU)"
echo "15= sparc-sun-solaris (Solaris 2.8+ running on a SPARC-compatible CPU)"
echo "16= sparc64-sun-solaris (Solaris 2.8+ running on a SPARC 64-bit CPU)"
echo "17= hppa-hp-hpux (HPUX running on 32-bit HPPA)"
echo "18= hppa64-hp-hpux (HPUX running on 64-bit HPPA)"
echo "19= alpha-hp-tru64 (Tru64 Unix running on Alpha)"
echo "20= ia64-hp-hpux (HPUX running on IA64)"
echo "21= powerpc-ibm-aix (AIX running on PowerPC)"
echo "22= i686-pc-freebsd (FreeBSD on x86)"
echo "23= x86_64-pc-freebsd (FreeBSD on Intel-compatible 64-bit)"
echo "24= i686-pc-openbsd (OpenBSD on x86)"
echo "25= x86_64-pc-openbsd (OpenBSD on Intel-compatible 64-bit)"
echo "26= i686-pc-solaris (Solaris 2.8+ on an Intel x86-compatible CPU)"
echo "27= x86_64-pc-solaris (Solaris 2.8+ on an AMD x86_64 or Intel EM64T CPU)"
echo "28= i586-pc-haiku (Haiku on an Intel x86-compatible CPU)"
echo "29= powerpc64-ps3-linux-gnu (Sony Playstation 3 (Cell processor) running Linux)"
echo "30= arm-android-linux-gnu (Android running on ARM)"
I found this web site, but there is not the executable files that I need.
http://www.info-zip.org/pub/infozip/UnZip.html#Downloads
Does anyone know where I can find these files to download?
Thanks
Felipe

Related

Arch Linux arm Xorg doesn't display anything on Raspberry Pi 3 when running startx

On my raspberry pi 3 i have Arch Linux Arm Installed. I installed xorg, i3, and all of the drivers for it. i have my xinitrc file set up like default to run i3:
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec i3
when I run sudo startx i get this output
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
Current Operating System: Linux archpi 5.15.68-2-rpi-ARCH #1 SMP Mon Sep 19 17:23:23 MDT 2022 armv7l
Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1920x1080M#60 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 root=/dev/mmcblk0p2 rw rootwait console=ttyS0,115200 console=tty1 fsck.repair=yes
Current version of pixman: 0.40.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 22 04:48:27 2022
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Failed to connect to bus: No medium found
dbus-update-activation-environment: error: unable to connect to D-Bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
[libi3] ../i3bar/src/main.c i3bar version 4.20.1 (2021-11-03)
[libi3] ../libi3/font.c Using Pango font monospace, size 8
[libi3] ../libi3/font.c Using Pango font monospace, size 8
i3status: trying to auto-detect output_format setting
i3status: auto-detected "i3bar"
[libi3] ../libi3/font.c Using Pango font monospace, size 8
the error is in Failed to connect to bus: No medium found dbus-update-activation-environment: error: unable to connect to D-Bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
I have looked for hours and can not find a way to fix this. After running sudo startx My screen just goes dark and I have to reboot. I appreciate any help give, thanks.

Windows commands inside WSL hang a very long time

wsl --version
WSL version: 0.60.0.0
kernel version: 5.10.102.1
WSLg version: 1.0.34
MSRDC version: 1.2.2924
Direct3D version: 1.601.0
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.160
Distro Version
Ubuntu 20.04.4 LTS
This issue is found when I upgrade my windows to 10.0.22621.160
Reproduce steps:
execute "wsl.exe --version" (a windows command)
--> the console output the result and frozen for dozens of seconds that I can't input next command.
execute "wsl.exe --version | cat" (windows command with pipe)
--> the console output the result and ready for next command normally.
execute "uname -a" (a native linux command)
--> the console output the result and ready for next command normally.
execute "wsl.exe --version > /proc/self/fd/1 (pipe to standard output)
--> same as "wsl.exe --version", the console will frozen dozens of seconds
So I think there must be something wrong with the standard output for windows command running in WSL session.
PS: I've raised a case to microsoft feedback hub and the github.
https://github.com/microsoft/WSL/issues/8544
https://aka.ms/AAhd1ld

virsh console to KVM

When logged in through virsh console on to KVM. hostname is not shown properly in bash prompt. We are using 63 character hostname.
KVM Guest OS: Red Hat Enterprise Linux Server release 7.9 (Maipo)
Host OS: Red Hat Enterprise Linux Server release 7.6 (Maipo)
I don't see above issue when logged in using ssh or virt-manager
hostname i'm using is Nikiabcdefdhijklmnopqrst898hd-uvwxyz-jkkdjkjdsdadjkjkkjdkjsdj90
adding below line in /etc/bashrc resolved the issue.
resize > /dev/null 2>&1
'xterm' rpm provides resize binary.

libclouderahiveodbc64.so file not found

I have problem using latest Cloudera Hive ODBC Driver 2.6.9 for 64-bit AIX 7.1. On Linux host such configuration works flawlessly
$ oslevel -s
7100-03-05-1524
$ getconf KERNEL_BITMODE
64
It seems that isql works itself but cannot load driver with following message "file not found"
$ ../bin/isql_64 -v "Cloudera Hive 64-bit" user pass
[01000][unixODBC][Driver Manager]Can't open lib '/build/lib/libclouderahiveodbc64.so' : file not
found
[ISQL]ERROR: Could not SQLConnect
UnixODBC as well as driver are 64-bit. Isql is working itself
$ file /build/lib/libclouderahiveodbc64.so
/build/lib/libclouderahiveodbc64.so: 64-bit XCOFF executable or object module not stripped
$ file ../bin/isql_64
../bin/isql_64: 64-bit XCOFF executable or object module
$ ../bin/isql_64 --version
unixODBC 2.3.9
Library paths are set properly:
echo $LIBPATH
/build/lib
$ echo $LD_LIBRARY_PATH
/build/lib
Environment variables are pointing to my configs which also seem fine:
$ env | grep INI
CLOUDERAHIVEINI=/build/lib/cloudera.hiveodbc.ini
ODBCSYSINI=/build/etc
ODBCINI=/build/etc/odbc.ini
Driver is pointed correctly in *.ini files
$ cat /build/etc/odbc.ini | grep Driver
Cloudera Hive 64-bit=Cloudera ODBC Driver for Apache Hive 64-bit
Description=Cloudera ODBC Driver for Apache Hive (64-bit) DSN
# Driver: The location where the ODBC driver is installed to.
Driver=/build/lib/libclouderahiveodbc64.so
$ cat /build/etc/odbcinst.ini | grep Driver
[ODBC Drivers]
Cloudera ODBC Driver for Apache Hive 64-bit=Installed
[Cloudera ODBC Driver for Apache Hive 64-bit]
Description=Cloudera ODBC Driver for Apache Hive (64-bit)
Driver=/build/lib/libclouderahiveodbc64.so
Neither do ldd or isql show missing dependencies
$ ldd libclouderahiveodbc64.so
libclouderahiveodbc64.so needs:
/usr/lib/libpthread.a(shr_xpg5_64.o)
/usr/lib/libc.a(shr_64.o)
/usr/lib/libC.a(shr_64.o)
/usr/lib/libC.a(shr2_64.o)
/usr/lib/libC.a(shr3_64.o)
/usr/lib/libC.a(ansi_64.o)
/unix
/usr/lib/libcrypt.a(shr_64.o)
/usr/lib/libC.a(shrcore_64.o)
/usr/lib/libC.a(ansicore_64.o)
$ ldd ../bin/isql_64
../bin/isql_64 needs:
/usr/lib/libc.a(shr_64.o)
/usr/lib/libpthread.a(shr_xpg5_64.o)
/build/lib/libreadline.a(libreadline.so.7)
/build/lib/libodbc.a(libodbc.so.2)
/build/lib/libiconv.a(libiconv.so.2)
/unix
/usr/lib/libcrypt.a(shr_64.o)
/usr/lib/libc.a(shr.o)
/usr/lib/libcurses.a(shr42.o)
/build/lib/libgcc_s.a(shr.o)
/usr/lib/libpthread.a(shr_xpg5.o)
/usr/lib/libcrypt.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)
Any tips kindly appreciated. Thanks !

Recommended way of testing if I'm currently running under WSL [duplicate]

This question already has answers here:
How to check if a program is run in Bash on Ubuntu on Windows and not just plain Ubuntu?
(15 answers)
Closed 5 years ago.
Can a bash script detect if it's running in "Ubuntu on Windows" vs native Ubuntu? If so, how?
I ran env on both machines and didn't see any obvious environmental variable differences. I could test for the existence of the /mnt/c directory, but that is not foolproof because that directory could potentially also be present on native Ubuntu.
It looks like /proc/version in Ubuntu on Windows contains:
Linux version 3.4.0-Microsoft (Microsoft#Microsoft.com) (gcc version 4.7 (GCC) ) #1 SMP PREEMPT Wed Dec 31 14:42:53 PST 2014
and my version of Ubuntu has:
Linux version 4.4.0-31-generic (buildd#lgw01-16) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1) ) #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016
This code is working for me to detect which version of Ubuntu the script is running on:
if grep -qi microsoft /proc/version; then
echo "Ubuntu on Windows"
else
echo "native Linux"
fi