Re: [gentoo-user] Tailing compressed build logs
On Thu, 9 Mar 2023 10:01:16 -0600 Dale wrote: > Peter Humphrey wrote: > > On Thursday, 9 March 2023 14:31:32 GMT Andreas Stiasny wrote: > > > >> You could try gztool > >> > >> https://github.com/circulosmeos/gztool/ > >> > >> "gztool -T" should work like "tail -f". > > That looks very handy. But: > > > > Compiling it from the github source fails because I haven't found > > all the prerequisites. > > > > Fetching a Debian compiled version and running deb2targz on it ends > > up with a .so file, which where to put? > > > > I haven't found it in any Gentoo overlays. > > > > How can I get hold of a version for Gentoo? > > I found it in a overlay. At least google and github page says it is > there. > > https://github.com/gentoo-mirror/slonko > > It appears to be called gztool. > > Hope that helps. Ah, this is great. "gztool -TW" does exactly what it should. Nice find, thanks a bunch! - Bryan
Re: [gentoo-user] Tailing compressed build logs
On Thursday, 9 March 2023 16:01:16 GMT Dale wrote: > Peter Humphrey wrote: > > On Thursday, 9 March 2023 14:31:32 GMT Andreas Stiasny wrote: > >> You could try gztool > >> > >> https://github.com/circulosmeos/gztool/ > >> > >> "gztool -T" should work like "tail -f". > > > > That looks very handy. But: > > > > Compiling it from the github source fails because I haven't found all the > > prerequisites. > > > > Fetching a Debian compiled version and running deb2targz on it ends up > > with a .so file, which where to put? > > > > I haven't found it in any Gentoo overlays. > > > > How can I get hold of a version for Gentoo? > > I found it in a overlay. At least google and github page says it is > there. > > https://github.com/gentoo-mirror/slonko > > It appears to be called gztool. > > Hope that helps. It does - thanks! -- Regards, Peter.
Re: [gentoo-user] Trying to get my ME936 LTE/HSDPA+ 4G modem running
On Thu, 9 Mar 2023 11:27:26 +0100 hitachi303 wrote: > Am 08.03.23 um 21:51 schrieb Security: > > On Wed, 8 Mar 2023 15:31:02 +0100 > > hitachi303 wrote: > > > >> Hello everyone, > >> > >> I am trying to get my Huawei ME936 LTE/HSDPA+ 4G modem running. It is > >> build in the laptop. > >> > >> #lsusb | grep -i huawei > >> Bus 003 Device 002: ID 12d1:15bb Huawei Technologies Co., Ltd. ME936 > >> LTE/HSDPA+ 4G modem > >> > >> #lspci | grep -i huawei > >>- nothing - > >> > >> #dmesg | grep -i huawei > >> [0.869910] usbcore: registered new interface driver huawei_cdc_ncm > >> [1.960760] usb 3-4: Product: HUAWEI Mobile Broadband Module > >> [1.962533] usb 3-4: Manufacturer: Huawei Technologies Co., Ltd. > >> > >> #ifconfig -a > >> lo: flags=73 mtu 65536 > >> inet 127.0.0.1 netmask 255.0.0.0 > >> inet6 ::1 prefixlen 128 scopeid 0x10 > >> loop txqueuelen 1000 (Lokale Schleife) > >> RX packets 2096 bytes 167808 (163.8 KiB) > >> RX errors 0 dropped 0 overruns 0 frame 0 > >> TX packets 2096 bytes 167808 (163.8 KiB) > >> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > >> > >> sit0: flags=128 mtu 1480 > >> sit txqueuelen 1000 (IPv6-nach-IPv4) > >> RX packets 0 bytes 0 (0.0 B) > >> RX errors 0 dropped 0 overruns 0 frame 0 > >> TX packets 0 bytes 0 (0.0 B) > >> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > >> > >> wlan0: flags=4163 mtu 1500 > >> [... some info about my wifi ...] > >> > >> wwp0s20f0u4c2: flags=4098 mtu 1500 > >> ether 02:2c:80:13:92:63 txqueuelen 1000 (Ethernet) > >> RX packets 0 bytes 0 (0.0 B) > >> RX errors 0 dropped 0 overruns 0 frame 0 > >> TX packets 0 bytes 0 (0.0 B) > >> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > >> > >> > >> ofono is set as a use flag > >> > >> I am using net-wireless/iw-5.9 for > >> https://techship.com/faq/how-to-activate-the-data-connection-for-huawei-cellular-modules-over-the-usb-network-interface-in-linux/ > > my wifi and as far as I understand > >> this should be working with a modem as well. > >> > >> net-dialup/ppp-2.4.9-r8 is installed. smstools are not. Would I need > >> them for data transfer? > >> > >> I didn't find a guid at the gentoo wiki. Where could I find something? > >> Am I missing something obvious? > >> > >> Thanks for the help. > >> > > > > Did you check out the generic guide[1] for USB WWAN modems? It looks pretty > > consistent from when I set up a Gobi 3G card years ago. I got lazy and use > > tethering. > > > > This FAQ[2] walks you through a manual configuration of a Huawei WWWAN to > > test the concept. > > > > You will need to know you SIM PIN if used and certainly your APN for your > > Cell Provider. > > > > That ww* interface is auto-created and can be used with different > > configuration/managnement tools[3]. > > > > Good Luck! > > > > [1] https://wiki.gentoo.org/wiki/USB_mobile_broadband_modem > > > > [2] > > https://techship.com/faq/how-to-activate-the-data-connection-for-huawei-cellular-modules-over-the-usb-network-interface-in-linux/ > > > > [3] > > https://unix.stackexchange.com/questions/159086/difference-between-ppp0-vs-wwan0 > > > > > Thanks for this. > > The wiki [1] showed I am missing > <*> USB driver for GSM and CDMA modems > > So now there are /dev/ttyUSB0 to /dev/ttyUSB3 > > Does this mean I don't need the mode_switching stuff, since the modem is > already there? > Yeah, I would say you don't need it. The gentoo guide was written with external USB plugin adapters in mind. These generally have an install image on them that loads first, thus the need to switch the mode. > Also usb_modeswitch is in portage. This is not mentioned in the wiki. > Might this part be outdated? Most likely, the guide is talking about 3G adapters and was last updated in 2019 :) > > /etc/wvdial.conf > [Dialer Defaults] > Init2 = ATQ0 V1 E1 S0=0 +FCLASS=0 > Modem Type = Analog Modem > ; Phone = > ISDN = 0 > ; Username = > Init1 = ATZ > ; Password = > Modem = /dev/ttyUSB0 > Baud = 9600 > > Does it matter it says "Analog Modem"? > No, that tells wvdial to expect a standard AT device. Despite it being digital there is still a legacy device interface to setup the connection. > Does using wvdial result in no need to use minicom like mentioned in [2]? > Yes, like most things in classic UNIX/Linux there is more than one way to do something. wvdial will run a chat script and set up the modem, make the call, and then hand off. Minicom is a terminal emulator and you would be connecting directly to the device and issuing commands. If the the wvdial script failed, you run the commands in minicom to test, for example.
Re: [gentoo-user] Tailing compressed build logs
Peter Humphrey wrote: > On Thursday, 9 March 2023 14:31:32 GMT Andreas Stiasny wrote: > >> You could try gztool >> >> https://github.com/circulosmeos/gztool/ >> >> "gztool -T" should work like "tail -f". > That looks very handy. But: > > Compiling it from the github source fails because I haven't found all the > prerequisites. > > Fetching a Debian compiled version and running deb2targz on it ends up with a > .so file, which where to put? > > I haven't found it in any Gentoo overlays. > > How can I get hold of a version for Gentoo? > I found it in a overlay. At least google and github page says it is there. https://github.com/gentoo-mirror/slonko It appears to be called gztool. Hope that helps. Dale :-) :-)
Re: [gentoo-user] Tailing compressed build logs
On Thu, 2023-03-09 at 15:49 +, Peter Humphrey wrote: > Fetching a Debian compiled version and running deb2targz on it ends up with a > .so file, which where to put? app-arch/deb2targz exists. Would probably satisfy the need.
Re: [gentoo-user] Tailing compressed build logs
On Thursday, 9 March 2023 14:31:32 GMT Andreas Stiasny wrote: >You could try gztool > > https://github.com/circulosmeos/gztool/ > > "gztool -T" should work like "tail -f". That looks very handy. But: Compiling it from the github source fails because I haven't found all the prerequisites. Fetching a Debian compiled version and running deb2targz on it ends up with a .so file, which where to put? I haven't found it in any Gentoo overlays. How can I get hold of a version for Gentoo? -- Regards, Peter.
Re: [gentoo-user] Tailing compressed build logs
On 09.03.23 08:46, Bryan Gardiner wrote: Hi, thanks! --force and --stdout don't seem to help in this case. Sorry, I was wrong. The problem is not the actual use of gunzip but the fact that you are trying to decompress a file without reading it from the beginning. Usually this is not possible. zcat build.log.gz | tail -n 30 would show you the last 30 lines but no new content because zcat or gunzip is not waiting for new input. You could try gztool https://github.com/circulosmeos/gztool/ "gztool -T" should work like "tail -f". Andreas
Re: [gentoo-user] Trying to get my ME936 LTE/HSDPA+ 4G modem running
Am 08.03.23 um 21:51 schrieb Security: On Wed, 8 Mar 2023 15:31:02 +0100 hitachi303 wrote: Hello everyone, I am trying to get my Huawei ME936 LTE/HSDPA+ 4G modem running. It is build in the laptop. #lsusb | grep -i huawei Bus 003 Device 002: ID 12d1:15bb Huawei Technologies Co., Ltd. ME936 LTE/HSDPA+ 4G modem #lspci | grep -i huawei - nothing - #dmesg | grep -i huawei [0.869910] usbcore: registered new interface driver huawei_cdc_ncm [1.960760] usb 3-4: Product: HUAWEI Mobile Broadband Module [1.962533] usb 3-4: Manufacturer: Huawei Technologies Co., Ltd. #ifconfig -a lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Lokale Schleife) RX packets 2096 bytes 167808 (163.8 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2096 bytes 167808 (163.8 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 sit0: flags=128 mtu 1480 sit txqueuelen 1000 (IPv6-nach-IPv4) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4163 mtu 1500 [... some info about my wifi ...] wwp0s20f0u4c2: flags=4098 mtu 1500 ether 02:2c:80:13:92:63 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 ofono is set as a use flag I am using net-wireless/iw-5.9 for https://techship.com/faq/how-to-activate-the-data-connection-for-huawei-cellular-modules-over-the-usb-network-interface-in-linux/ my wifi and as far as I understand this should be working with a modem as well. net-dialup/ppp-2.4.9-r8 is installed. smstools are not. Would I need them for data transfer? I didn't find a guid at the gentoo wiki. Where could I find something? Am I missing something obvious? Thanks for the help. Did you check out the generic guide[1] for USB WWAN modems? It looks pretty consistent from when I set up a Gobi 3G card years ago. I got lazy and use tethering. This FAQ[2] walks you through a manual configuration of a Huawei WWWAN to test the concept. You will need to know you SIM PIN if used and certainly your APN for your Cell Provider. That ww* interface is auto-created and can be used with different configuration/managnement tools[3]. Good Luck! [1] https://wiki.gentoo.org/wiki/USB_mobile_broadband_modem [2] https://techship.com/faq/how-to-activate-the-data-connection-for-huawei-cellular-modules-over-the-usb-network-interface-in-linux/ [3] https://unix.stackexchange.com/questions/159086/difference-between-ppp0-vs-wwan0 Thanks for this. The wiki [1] showed I am missing <*> USB driver for GSM and CDMA modems So now there are /dev/ttyUSB0 to /dev/ttyUSB3 Does this mean I don't need the mode_switching stuff, since the modem is already there? Also usb_modeswitch is in portage. This is not mentioned in the wiki. Might this part be outdated? /etc/wvdial.conf [Dialer Defaults] Init2 = ATQ0 V1 E1 S0=0 +FCLASS=0 Modem Type = Analog Modem ; Phone = ISDN = 0 ; Username = Init1 = ATZ ; Password = Modem = /dev/ttyUSB0 Baud = 9600 Does it matter it says "Analog Modem"? Does using wvdial result in no need to use minicom like mentioned in [2]?