Re: Issue with relayd and redirections
I did but still negative. No sessions shown in relayctl so still thinking it's an issue in pf. On 2020-07-13 22:51, Brian Brombacher wrote: On Jul 13, 2020, at 8:30 PM, Gabri Tofano wrote: I have tried to implement the workaround as per man page but it still doesn't work, here the pf.conf config: eth0 = "xnf0" web1 = "172.16.101.31" anchor "relayd/*" set skip on lo block return log pass log pass out quick on $eth0 proto tcp to $web1 port 80 \ received-on $eth0 nat-to $eth0 Try putting this before the anchor. The quick entry in the anchor that relayd creates takes precedence. block return in on ! lo0 proto tcp to port 6000:6010 block return out log proto {tcp udp} user _pbuild I'm trying to gather some useful log on relayd and see if there's any error but even with "relayctl log verbose" nothing is showing beside the startup entries Thank you! There's a "workaround" also mentioned in pf.conf(5) which also works with relayd inserted rdr-rules, e.g. pass out quick on vlan99 proto tcp to 192.168.89.13 received-on vlan99 nat-to 192.168.89.1 vlan99 has 'inet 192.168.89.1/24' and 192.168.89.13 is the relayd rdr "target". HTH, -- pb On 2020-07-13 01:08, Gabri Tofano wrote: After some further troubleshooting, tonight I took some time to sit down and read again the man pages as everything on my config files was looking fine and no errors were showing up in any log. With Brian's help we were leading to the direction that something was wrong with the pf translation itself and so I tested a static rdr-to configuration with pf only in the same environment, and neither this test worked as expected. So I went back to read the pf.conf man page and here comes the rdr-to relevant section: "Redirections cannot reflect packets back through the interface they arrive on, they can only be redirected to hosts connected to different interfaces or to the firewall itself." Focusing on relayd, my oversight was to not going back and read again the pf.conf man page in order to make sure that my box's network configuration was ok, since apparently I got it to work with relays without problems. The next challenge now is to find if there is another way to make this setup working with just 1 network interface and implement relayd redirects for SSL passthrough, or give up. There seems to be few options here that I can think of: - Keep my current configuration with HAproxy - Add another network interface to the box and configure an additional network to it (it might be tricky when deploying a droplet with a direct public IP address) - Migrate to relayd relays and give up with SSL passthrough (with the benefit of SSL offloading if want to implement it) Thank you to the community and the devs for the great work on this OS! Especially on the man pages :) On 2020-07-11 12:58, Gabri Tofano wrote: It isn’t. rdr-to, and by extension redirects, are not natting the source address. Clients connecting through relayd and to the backend will have source addresses not that of the relayd machine but of the original client. Thank you for correcting me on this as it was a bad statement told before getting coffee in the morning :) I’m going to play around on my boxes and try and come up with some options for you. I’ll get back to you later. Thank you for dedicating time in looking to this issue! On 2020-07-11 12:08, Brian Brombacher wrote: On Jul 11, 2020, at 11:20 AM, Gabri Tofano wrote: On 2020-07-11 06:33, Brian Brombacher wrote: On Jul 10, 2020, at 11:42 PM, Gabri Tofano wrote: Does http work with redirects? It wasn’t clear if it did or not in your first post. It doesn't work with http and that is the redirect that I was testing. Indications from your pf anchor rules and the down status above, and the check http attribute on the https forward to directives tell me relayd isn’t liking your check http configuration for port 443. Start by switching to check icmp or check tcp or something else, see if it works, unless you can fix the check http based on logs or otherwise. I changed it to tcp and now the servers are showing as "up": LAB1-LB1# relayctl sh sum Id TypeName Avlblty Status 1 redirecthttp active 1 table web_servers:80 active (1 hosts) 1 host172.16.101.31 100.00% up 2 table nc_servers:80 active (1 hosts) 2 host172.16.101.32 100.00% up 2 redirecthttps active 3 table web_servers:443 active (1 hosts) 3 host172.16.101.31 100.00% up 4 table nc_servers:443 active (1 hosts) 4 host172.16.101.32 100.00% up However I was
fullscreen iridium stops me scrolling to another fvwm virt. desktop!
fullscreen iridium browser often stops letting me scroll to another fvwm virtual desktop, but I never have that problem with firefox! Whats the deal? On iridium, I either have to click on the browser window border or I have to unmaximize the browser window to leave space between the browser window and the virtual desktop border. -Luke
Re: fw_update issue with colon in URL
On 15/7/20 5:57 am, mabi wrote: > http://firmware.openbsd.org/firmware/6.7/: no such dir > Couldn't find updates for intel-firmware-20191115v0 > > It looks like I have a colon ":" at the end of the URL which of course makes > the URL invalid. Now how could this happen? and in which file do I fix that? That's just a separator in the output, not in the URL. : hth
fw_update issue with colon in URL
Hello, I just updated from 6.6 to 6.7 and the fw_update part failed so I tried to run it manually and get: $ sudo fw_update -n http://firmware.openbsd.org/firmware/6.7/: no such dir Couldn't find updates for intel-firmware-20191115v0 It looks like I have a colon ":" at the end of the URL which of course makes the URL invalid. Now how could this happen? and in which file do I fix that? Regards, Mabi
Re: Cleaning system's old ibraries/files after update to next -release or -current
On Tue, 14 Jul 2020 at 13:44, Ingo Schwarze wrote: > > Hi, > > Martin wrote on Tue, Jul 14, 2020 at 11:11:34AM +: > > > After system update I found lots of 'old' libraries versions > > and possibly binaries from previous releases. > > > > Does anybody know an automated method to remove it after update? > > For instance previous libs before update to -current. > > If you need to ask, just don't remove them. Those files eat no bread, > and in some situations, some of the libs may still be in use. > What about if one compiles ports? If OpenBSD is anything similar to NetBSD, on the latter having multiple libs might cause build breakages. -- Ottavio Caruso
Re: how to pledge(2) for Yubikey
Stuart Henderson wrote: > > I don't know if this matters, but for even ykinfo(1) (in the ykpers port) > > to work, I had to: > > # chmod g+w /dev/usb1 > > # chmod g+rw /dev/ugen0.00 > > Known problem, there's no nice way around it though. The standard model > used on most OS of controlling many simpler USB devices from a low > privileged userland process does not work too well with the approach > in https://cvsweb.openbsd.org/src/etc/MAKEDEV.common#rev1.105 > > afaik the options for this are chmod, run as root, or write a driver that > works similar to fido(4) and modify the existing software that interfaces > with the device to use that instead (I guess for yk it will need a way to > hook into the keyboard driver too for the usual button-press keyboard > emulation otp mode). The situation is stupidly unworkable. a+rw makes these systems single-user. Worse, it means any application can touch the usb devices. The people who added direct-usb control to Unix completely screwed up by deciding to ignore *all security considerations*. It is beyond laughable. So recently we locked up all the nodes. Seeing this in a conversation about adding pledge, makes it clear how few people understand the blend of high-level and low-level components, and it increases me doubt about the future of mankind.
Re: how to pledge(2) for Yubikey
On 2020-07-14, Lévai Dániel wrote: > I'm trying to implement pledge(2) support into kc(1) (in ports) while using > it with a Yubikey. > So far this is my pledge string: > char*pledges = "cpath exec fattr flock proc rpath stdio tty unix > wpath"; > > This covers everything it would do without the Yubikey. But I can't seem to > find the proper "promise" that would allow it to use the Yubikey (I've tried > adding everything at one point). > The application dies with (on -current): > Abort trap (core dumped) > kc[35302]: pledge "tty", syscall 54 Most ioctls are blocked by pledge. To do this, you'll either need to avoid pledge completely, or handle device communications with a separate process that remains unpledged. > 35302 kc RET open -1 errno 13 Permission denied > 35302 kc CALL kbind(0x7f7ede88,24,0x18365a7b5e816bae) > 35302 kc RET kbind 0 > 35302 kc CALL open(0x7f7ee1f0,0x2) > 35302 kc NAMI "/dev/usb1" > 35302 kc RET open 7 > 35302 kc CALL kbind(0x7f7ede88,24,0x18365a7b5e816bae) > 35302 kc RET kbind 0 > 35302 kc CALL ioctl(7,USB_DEVICEINFO,0x7f7edf50) > 35302 kc PLDG ioctl, "tty", errno 1 Operation not permitted > 35302 kc PSIG SIGABRT SIG_DFL > 35302 kc NAMI "kc.core" > > > I don't know if this matters, but for even ykinfo(1) (in the ykpers port) to > work, I had to: > # chmod g+w /dev/usb1 > # chmod g+rw /dev/ugen0.00 Known problem, there's no nice way around it though. The standard model used on most OS of controlling many simpler USB devices from a low privileged userland process does not work too well with the approach in https://cvsweb.openbsd.org/src/etc/MAKEDEV.common#rev1.105 afaik the options for this are chmod, run as root, or write a driver that works similar to fido(4) and modify the existing software that interfaces with the device to use that instead (I guess for yk it will need a way to hook into the keyboard driver too for the usual button-press keyboard emulation otp mode).
Re: how to mount phone?
simple-mtpfs works fine for me : https://www.romanzolotarev.com/openbsd/mtp.html Le 14 juillet 2020 17:11:04 GMT+02:00, Peter Nicolai Mathias Hansteen a écrit : > > >> 13. jul. 2020 kl. 23:39 skrev Justin Muir : >> >> Hi, >> >> Just wishing to mount my phone to access photos. >> >> Here's the output from dmesg: >> >> ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr >2 >> >> Any ideas on how this might be mounted?? > > >I believe I have at some point managed to mount a phone as storage, but >not recently. > >What usually works better is to install an sftp client (I use AndFTP in >sftp mode) on the phone and use that to transfer the pictures to your >machine. > >All the best, > >— >Peter N. M. Hansteen, member of the first RFC 1149 implementation team >http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/ >"Remember to set the evil bit on all malicious network traffic" >delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
Re: Cleaning system's old ibraries/files after update to next -release or -current
On 2020-07-14, Christian Weisgerber wrote: > Old versions of libraries are innocuous. They will simply be > ignored. Until you run out of disk space, which is fairly easy in /usr if you installed a couple of releases ago and took the auto disklabel defaults.
Re: munmap for just one child process
On Sat, Jul 11, 2020 at 09:12:55PM -0600, Theo de Raadt wrote: > Peter J. Philipp wrote: > > > Is this possible at all? I have mmap'ed (shared) a process and it has > > childs. > > I would like to unmap this mmap in one child only but I'm not sure if the > > other childs that should have this mapping still will lose it or not? Can > > someone enlighten me on this? > > Write a test program. > > The behaviour you see will soon, based upon the MAP_ options you use, > will soon be precisely what is documented, and you'll understand how > it works. Thanks for the hint. I wrote a test program and I'm happy that the mapping does indeed stay on the other forked processes. The test program is after my signature for anyone else. Thanks! -peter #include #include #include #include #include #include #include int main(void) { char *ptr; pid_t pid; int i; ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED |\ MAP_ANON, -1, 0); if (ptr == MAP_FAILED) { err(1, "mmap"); exit(1); } memset(ptr, 0x32, 4096); pid = fork(); switch (pid) { case -1: err(1, "fork"); break; case 0: if (munmap(ptr, 4096) == -1) err(1, "munmap"); for (;;) sleep(10); break; default: printf("continuing from forking to pid %d\n", pid); break; } pid = fork(); switch (pid) { case -1: err(1, "fork"); break; case 0: sleep(2); memset(ptr, 0x42, 4096); for (;;) sleep(10); break; default: printf("continuing from forking to pid %d\n", pid); break; } sleep(5); printf("printing the first 16 bytes from shared memory\n"); for (i = 0; i < 16; i++) { printf("%02x, ", ptr[i] & 0xff); } printf("\n"); sleep(30); exit(0); }
Cleaning system's old ibraries/files after update to next -release or -current
After system update I found lots of 'old' libraries versions and possibly binaries from previous releases. Does anybody know an automated method to remove it after update? For instance previous libs before update to -current. Martin
Re: how to mount phone?
> 13. jul. 2020 kl. 23:39 skrev Justin Muir : > > Hi, > > Just wishing to mount my phone to access photos. > > Here's the output from dmesg: > > ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2 > > Any ideas on how this might be mounted?? I believe I have at some point managed to mount a phone as storage, but not recently. What usually works better is to install an sftp client (I use AndFTP in sftp mode) on the phone and use that to transfer the pictures to your machine. All the best, — Peter N. M. Hansteen, member of the first RFC 1149 implementation team http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/ "Remember to set the evil bit on all malicious network traffic" delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds. signature.asc Description: Message signed with OpenPGP
Re: how to pledge(2) for Yubikey
That is never going to work. We will never permit raw access to usb devices like that, in fact we are headed completely the other direction with /dev/fido support hiding the complexity. =?utf-8?Q?L=C3=A9vai=2C_D=C3=A1niel?= wrote: > Hi all! > > I'm trying to implement pledge(2) support into kc(1) (in ports) while using > it with a Yubikey. > So far this is my pledge string: > char*pledges = "cpath exec fattr flock proc rpath stdio tty unix > wpath"; > > This covers everything it would do without the Yubikey. But I can't seem to > find the proper "promise" that would allow it to use the Yubikey (I've tried > adding everything at one point). > The application dies with (on -current): > Abort trap (core dumped) > kc[35302]: pledge "tty", syscall 54 > > And the trace looks like this: > #0 ioctl () at -:3 > No locals. > #1 0x0fb51385e600 in libusb_interrupt_transfer () from > /usr/local/lib/libusb-1.0.so.1.2 > No symbol table info available. > #2 0x0fb513856864 in libusb_get_device_list () from > /usr/local/lib/libusb-1.0.so.1.2 > No symbol table info available. > #3 0x0fb53bf41e82 in _ykusb_open_device () from > /usr/local/lib/libykpers-1.so.0.8 > No symbol table info available. > #4 0x0fb53bf408ab in yk_open_key_vid_pid () from > /usr/local/lib/libykpers-1.so.0.8 > No symbol table info available. > #5 0x0fb25fdac4d9 in kc_ykchalresp () from /home/daniell/kc/kc > No symbol table info available. > #6 0x0fb25fd9f293 in main () from /home/daniell/kc/kc > No symbol table info available. > > These are the last couple of line from ktrace: > 35302 kc CALL open(0x7f7ee1f0,0x2) > 35302 kc NAMI "/dev/usb0" > 35302 kc RET open -1 errno 13 Permission denied > 35302 kc CALL kbind(0x7f7ede88,24,0x18365a7b5e816bae) > 35302 kc RET kbind 0 > 35302 kc CALL open(0x7f7ee1f0,0x2) > 35302 kc NAMI "/dev/usb1" > 35302 kc RET open 7 > 35302 kc CALL kbind(0x7f7ede88,24,0x18365a7b5e816bae) > 35302 kc RET kbind 0 > 35302 kc CALL ioctl(7,USB_DEVICEINFO,0x7f7edf50) > 35302 kc PLDG ioctl, "tty", errno 1 Operation not permitted > 35302 kc PSIG SIGABRT SIG_DFL > 35302 kc NAMI "kc.core" > > > I don't know if this matters, but for even ykinfo(1) (in the ykpers port) to > work, I had to: > # chmod g+w /dev/usb1 > # chmod g+rw /dev/ugen0.00 > > Could someone hit me with a clue-bat how to pledge for using a Yubikey (or > rather, I guess, any USB device?). > > > Thanks in advance, > Dani >
how to pledge(2) for Yubikey
Hi all! I'm trying to implement pledge(2) support into kc(1) (in ports) while using it with a Yubikey. So far this is my pledge string: char*pledges = "cpath exec fattr flock proc rpath stdio tty unix wpath"; This covers everything it would do without the Yubikey. But I can't seem to find the proper "promise" that would allow it to use the Yubikey (I've tried adding everything at one point). The application dies with (on -current): Abort trap (core dumped) kc[35302]: pledge "tty", syscall 54 And the trace looks like this: #0 ioctl () at -:3 No locals. #1 0x0fb51385e600 in libusb_interrupt_transfer () from /usr/local/lib/libusb-1.0.so.1.2 No symbol table info available. #2 0x0fb513856864 in libusb_get_device_list () from /usr/local/lib/libusb-1.0.so.1.2 No symbol table info available. #3 0x0fb53bf41e82 in _ykusb_open_device () from /usr/local/lib/libykpers-1.so.0.8 No symbol table info available. #4 0x0fb53bf408ab in yk_open_key_vid_pid () from /usr/local/lib/libykpers-1.so.0.8 No symbol table info available. #5 0x0fb25fdac4d9 in kc_ykchalresp () from /home/daniell/kc/kc No symbol table info available. #6 0x0fb25fd9f293 in main () from /home/daniell/kc/kc No symbol table info available. These are the last couple of line from ktrace: 35302 kc CALL open(0x7f7ee1f0,0x2) 35302 kc NAMI "/dev/usb0" 35302 kc RET open -1 errno 13 Permission denied 35302 kc CALL kbind(0x7f7ede88,24,0x18365a7b5e816bae) 35302 kc RET kbind 0 35302 kc CALL open(0x7f7ee1f0,0x2) 35302 kc NAMI "/dev/usb1" 35302 kc RET open 7 35302 kc CALL kbind(0x7f7ede88,24,0x18365a7b5e816bae) 35302 kc RET kbind 0 35302 kc CALL ioctl(7,USB_DEVICEINFO,0x7f7edf50) 35302 kc PLDG ioctl, "tty", errno 1 Operation not permitted 35302 kc PSIG SIGABRT SIG_DFL 35302 kc NAMI "kc.core" I don't know if this matters, but for even ykinfo(1) (in the ykpers port) to work, I had to: # chmod g+w /dev/usb1 # chmod g+rw /dev/ugen0.00 Could someone hit me with a clue-bat how to pledge for using a Yubikey (or rather, I guess, any USB device?). Thanks in advance, Dani
Re: Cleaning system's old ibraries/files after update to next -release or -current
On 2020-07-14, Ottavio Caruso wrote: >> > After system update I found lots of 'old' libraries versions >> > and possibly binaries from previous releases. >> >> If you need to ask, just don't remove them. Those files eat no bread, >> and in some situations, some of the libs may still be in use. > > What about if one compiles ports? If OpenBSD is anything similar to > NetBSD, on the latter having multiple libs might cause build > breakages. Old versions of libraries are innocuous. They will simply be ignored. Potential sources of trouble are old copies of libraries that no longer exist and header files that no longer exist. OpenBSD hasn't retired a base library in a long time, so that isn't an issue. I recommend cleaning up /usr/include, though. -- Christian "naddy" Weisgerber na...@mips.inka.de
Re: how to mount phone?
On 7/14/20 2:46 AM, Antal Ispanovity wrote: On Mon, Jul 13, 2020 at 2:57 PM Justin Muir wrote: Hi, Just wishing to mount my phone to access photos. Here's the output from dmesg: ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2 Any ideas on how this might be mounted?? I use the simple-mtpfs package. tia! As Antel suggested, simple-mtpfs, in packages, is a very easy way to actually mount your phone so it can be browsed like any other type of storage device. I haven't used android 7 for a long time and never this phone, so I don't know the procedure, but you will need to set the usb mode to file transfer instead of charging only or whatever options may be there. doas simple-mtpfs -o allow_other --device 1 /mnt/phone/
Re: how to mount phone?
The easiest way I know is to install in the phone: https://play.google.com/store/apps/details?id=org.galexander.sshd and use the WLAN hotspot to transfer files with scp / sftp / rsync. Rod. On Mon, 13 Jul 2020, Justin Muir wrote: Hi, Just wishing to mount my phone to access photos. Here's the output from dmesg: ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2 Any ideas on how this might be mounted?? tia!
Re: Cleaning system's old ibraries/files after update to next -release or -current
Hi Ottavio, Ottavio Caruso wrote on Tue, Jul 14, 2020 at 02:28:25PM +0100: > On Tue, 14 Jul 2020 at 13:44, Ingo Schwarze wrote: >> Martin wrote on Tue, Jul 14, 2020 at 11:11:34AM +: >>> After system update I found lots of 'old' libraries versions >>> and possibly binaries from previous releases. >>> >>> Does anybody know an automated method to remove it after update? >>> For instance previous libs before update to -current. >> If you need to ask, just don't remove them. Those files eat no bread, >> and in some situations, some of the libs may still be in use. > What about if one compiles ports? If OpenBSD is anything similar to > NetBSD, on the latter having multiple libs might cause build > breakages. I don't remember ever hearing about anything like that on OpenBSD, even though i do occasionally compile ports and i always have various versions of various libraries lying around, both from base and from ports. (Given that i am not a very frequent porter, there might be problems of the more unusual kind that i never heard about, but it's certainly not something you need to worry about in general.) If widespread problems caused by old files existed, the readily available tool to delete old files would probably be advertised more broadly and maybe even recommended for use. But as things are, you can merely use it if you know what you are doing and if you want to, but at your own risk. Less experienced users are more likely to cause themselves trouble trying to use it than to get any benefit from it. And no, do not assume that OpenBSD is "like NetBSD" or "like FreeBSD". They are different operating systems. Yes, they do have common ancestors, but the genetic lines diverged about 25 million years ago. Err, something like that, IIRC. Yours, Ingo
Re: how to mount phone?
also: you can use the app termux if you want some nice terminal programs ... I rsync all my files from my phone to my computer. On 14.07.20 13:11, Abel Abraham Camarillo Ojeda wrote: > On Tue, Jul 14, 2020 at 5:07 AM Jan Stary wrote: > >> On Jul 13 14:39:35, justinkm...@gmail.com wrote: >>> Just wishing to mount my phone to access photos. >>> Here's the output from dmesg: >>> ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2 >>> Any ideas on how this might be mounted?? >> I believe phone OSes go out of their way to _not_ expose >> the storage as an umass. You need a dedicated app to do >> things as fundamental as copying a file. >> >> > I think you can use adb (in packages) to copy more "easily" > (without installing third-party apps on phone): > > https://developer.android.com/studio/command-line/adb#copyfiles
Re: Cleaning system's old ibraries/files after update to next -release or -current
Hi, Martin wrote on Tue, Jul 14, 2020 at 11:11:34AM +: > After system update I found lots of 'old' libraries versions > and possibly binaries from previous releases. > > Does anybody know an automated method to remove it after update? > For instance previous libs before update to -current. If you need to ask, just don't remove them. Those files eat no bread, and in some situations, some of the libs may still be in use. Too many people come back after doing that, whining "i broke my system, what can i do now". That's annoying both for them and for the list. Yours, Ingo
Re: how to mount phone?
Well, damn, I'm sorry, I guess I got myself confused. I could have sworn I used my phone to transfer a file when I couldn't find a thumbdrive but I only get cd0 with some drivers and an adb script. umass0 at uhub3 port 2 configuration 1 interface 1 "OnePlus OnePlus" rev 2.10/4.09 addr 6 umass0: using SCSI over Bulk-Only scsibus4 at umass0: 2 targets, initiator 0 cd0 at scsibus4 targ 1 lun 0: removable ugen2 at uhub3 port 2 configuration 1 "OnePlus OnePlus" rev 2.10/4.09 addr 6 On Tue, Jul 14, 2020 at 4:15 AM Abel Abraham Camarillo Ojeda < acam...@verlet.org> wrote: > On Tue, Jul 14, 2020 at 5:07 AM Jan Stary wrote: > > > On Jul 13 14:39:35, justinkm...@gmail.com wrote: > > > Just wishing to mount my phone to access photos. > > > Here's the output from dmesg: > > > ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2 > > > Any ideas on how this might be mounted?? > > > > I believe phone OSes go out of their way to _not_ expose > > the storage as an umass. You need a dedicated app to do > > things as fundamental as copying a file. > > > > > I think you can use adb (in packages) to copy more "easily" > (without installing third-party apps on phone): > > https://developer.android.com/studio/command-line/adb#copyfiles >
Re: Cleaning system's old ibraries/files after update to next -release or -current
On Tue, Jul 14, 2020 at 11:11:34AM +, Martin wrote: > After system update I found lots of 'old' libraries versions and > possibly binaries from previous releases. > > Does anybody know an automated method to remove it after update? For > instance previous libs before update to -current. > > Martin $ pkg_info sysclean Information for inst:sysclean-2.8 Comment: list obsolete files between OpenBSD upgrades Description: sysclean is a script designed to help remove obsolete files between OpenBSD upgrades. sysclean compares a reference root directory against the currently installed files, taking files from both the base system and packages into account. sysclean does not remove any files on the system. It only reports obsolete filenames or packages using out-of-date libraries. Maintainer: Sebastien Marie WWW: https://github.com/semarie/sysclean/ --
Re: how to mount phone?
On Tue, Jul 14, 2020 at 5:07 AM Jan Stary wrote: > On Jul 13 14:39:35, justinkm...@gmail.com wrote: > > Just wishing to mount my phone to access photos. > > Here's the output from dmesg: > > ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2 > > Any ideas on how this might be mounted?? > > I believe phone OSes go out of their way to _not_ expose > the storage as an umass. You need a dedicated app to do > things as fundamental as copying a file. > > I think you can use adb (in packages) to copy more "easily" (without installing third-party apps on phone): https://developer.android.com/studio/command-line/adb#copyfiles
Re: how to mount phone?
On Jul 13 14:39:35, justinkm...@gmail.com wrote: > Just wishing to mount my phone to access photos. > Here's the output from dmesg: > ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2 > Any ideas on how this might be mounted?? I believe phone OSes go out of their way to _not_ expose the storage as an umass. You need a dedicated app to do things as fundamental as copying a file.
Re: how to mount phone?
>> On Mon, Jul 13, 2020 at 2:57 PM Justin Muir >> wrote: >> >> > Hi, >> > >> > Just wishing to mount my phone to access photos. >> > >> > Here's the output from dmesg: >> > >> > ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2 >> > >> > Any ideas on how this might be mounted?? I use the simple-mtpfs package. >> > >> > >> > tia! >> > > >
Re: how to mount phone?
get.misc.open...@gmail.com (Greg Thomas), 2020.07.14 (Tue) 00:33 (CEST): > Have you set your USB preferences on your phone? To File transfer? My > Android defaults to charging only. Mine too; but "File transfer" does not work for me, either. I get a ugen(4) instead of umass(4), on -current. Therefore I currently use gphoto2(1) from the gphoto-2.5.23 package: $ gphoto2 --get-all-files --skip-existing Watch out for the permissions on the USB device files: $ more /usr/local/share/doc/pkg-readmes/libgphoto Marcus > On Mon, Jul 13, 2020 at 2:57 PM Justin Muir wrote: > > > Hi, > > > > Just wishing to mount my phone to access photos. > > > > Here's the output from dmesg: > > > > ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2 > > > > Any ideas on how this might be mounted?? > > > > > > tia! > >