mapserver httpd configuration
Hello all, Does anybody had tried to mapserver using httpd. I had latest mapserver 7.3 installed but cannot configure as it gives 500 internal server error https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/geo/mapserver/pkg/README-main?rev=1.4=text/x-cvsweb-markup The above readme show information on ngix and supervisor. I tried to copy the ngix config into my httpd.conf and got that 500 internel server error. See my httpd.conf below: server "mydomain.com" { listen on * port 80 root "/htdocs/ mydomain.com" location "*.php*" { fastcgi socket "/run/php-fpm.sock" } location "/cgi-bin/mapserv" { fastcgi socket "/run/mapserv.sock" fastcgi param SCRIPT_FILENAME "/cgi-bin/mapserv" } } I had php script working correctly and /var/www/cgi-bin/mapserv -v is working correctly MapServer version 7.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE In the Readme on cvs give details on chroot, but I don't know it usage for using OpenBSD httpd thanks for your help. -- Regards, Rashad
Re: Probelm when building QGIS
On Thu, Jul 26, 2018 at 12:36 AM tao wrote: > Hello, > > I am in OpenBSD6.3. QGIS 2.18.17 in packages can not render style just like > things in > > http://openbsd-archive.7691.n7.nabble.com/qgis-bug-since-last-security-update-under-stable-td339707.html > > So, I am trying to build QGIS 2.18.17 from source. > Succeeded to ccmake the source. But get error when make. > Here is the message: > > tao$ make > [ 0%] Built target version > make: don't know how to make > /home/tao/Software/qgis/qgis-2.18.22/resources/function_help/json/rea > (prerequisite of: src/core/qgsexpression_texts.cpp) > Stop in . > *** Error 2 in . (CMakeFiles/Makefile2:1165 > 'src/core/CMakeFiles/qgis_core.dir/all') > *** Error 1 in /home/tao/Software/qgis/build-2.18.22 (Makefile:163 'all') > > > Tried to find the file mentioned above > "/home/tao/Software/qgis/qgis-2.18.22/resources/function_help/json/rea ", > but could not find anything. > > Anyone has an idea? > could you try gmake instead of make? make != gmake (unless you simlink or alias it) > > > > > -- > Sent from: > http://openbsd-archive.7691.n7.nabble.com/openbsd-user-misc-f3.html > > -- Regards, Rashad
Re: dante socksify authenticate a different user
On Tue, Oct 25, 2016 at 6:47 PM, Jeremie Courreges-Anglas <j...@wxcvbn.org> wrote: > Rashad Kanavath <mohammedrasha...@gmail.com> writes: > > > Hello, > > > > I am running an application within a proxy network with authentication. > To > > connect via ssh to a server outside corporate network, I need a tool such > > as proxychains. Current proxychains is not working on openbsd. It need > some > > fixes in makefile to have it working properly. So I searched for > > alternatives and openbsd had dante which provide a tool called socksify > > > > Now socksify must be configured to use my socks5_proxy at company. I > don't > > know how to configure it and configuration docs[1] is confusing. > > > > So If anybody had experience with socksify could help me how to setup > this > > or maybe recommend another tool. > > I've never used socksify and a socks5 gateway, but the socksify(1) > manpage states what you need: see the description of SOCKS_SERVER and > SOCKS5_SERVER. > > env SOCKS5_SERVER=127.0.0.1:1080 socksify your command > > should be a good starting point. Looks like it's a bit broken when > using a hostname instead of a raw IP address though. > > > [1] https://www.inet.no/dante/doc/1.2.x/config/auth_username.html > > This describes how to set up the server side part of dante. > Thanks. yes I read about those env variables in man page and it works. I want to know if it is possible to put those settings in a config file rather than env variables -- > jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE > -- Regards, Rashad
Re: dante socksify authenticate a different user
Hello, I am running an application within a proxy network with authentication. To connect via ssh to a server outside corporate network, I need a tool such as proxychains. Current proxychains is not working on openbsd. It need some fixes in makefile to have it working properly. So I searched for alternatives and openbsd had dante which provide a tool called socksify Now socksify must be configured to use my socks5_proxy at company. I don't know how to configure it and configuration docs[1] is confusing. So If anybody had experience with socksify could help me how to setup this or maybe recommend another tool. [1] https://www.inet.no/dante/doc/1.2.x/config/auth_username.html On Mon, Oct 24, 2016 at 6:33 PM, Flipchan <flipc...@riseup.net> wrote: > Do you want a socks5 that listens on port x and has auth? Cant u just > download some thirdparty software? > > Rashad Kanavath <mohammedrasha...@gmail.com> skrev: (24 oktober 2016 > 18:28:08 CEST) >> >> Hello, >> >> Can someone provide a sample configuration for socks.conf to use socsk5 >> protocol with authentication. >> >> after basic configuration it uses a system user but I have a different >> username for proxy server >> >> here is /etc/socks.conf >> >> route { >> from: 0.0.0.0/0 to: 0.0.0.0/0 via: x.x.x.x port = 1080 >> proxyprotocol: socks_v5 # server supports socks v5. >> } >> >> this is only modified afer pkg_add dante >> >> OpenBSD rkm.my.domain 6.0 GENERIC.MP#2319 amd64 >> >> > -- > Sincerly flipchan > -- Regards, Rashad
dante socksify authenticate a different user
Hello, Can someone provide a sample configuration for socks.conf to use socsk5 protocol with authentication. after basic configuration it uses a system user but I have a different username for proxy server here is /etc/socks.conf route { from: 0.0.0.0/0 to: 0.0.0.0/0 via: x.x.x.x port = 1080 proxyprotocol: socks_v5 # server supports socks v5. } this is only modified afer pkg_add dante OpenBSD rkm.my.domain 6.0 GENERIC.MP#2319 amd64 -- Regards, Rashad
Re: mount cifs share on OpenBSD 5.9
On Wed, Jun 29, 2016 at 9:08 PM, Marcus MERIGHI <mcmer-open...@tor.at> wrote: > mohammedrasha...@gmail.com (Rashad Kanavath), 2016.06.29 (Wed) 19:18 > (CEST): > > I tried to mount a network drive using shlight. But it is not working. > Here > > is the command with verbose output. > > > > using smbclient -L ... , I can list the drive. so this must be something > > else. > > I haven't tested this lately, this is just what I could find quickly. > > Last time I tried I couldn't make it work, too. I turned to: > > sysutils/usmb > > mount SMB shares from userland via FUSE > > Description: > usmb lets you mount SMB shares as unprivileged users via FUSE, in the > vein of Windows' Map Network Drive facility. It differs from the other > FUSE SMB filesystems (fusesmb, SMB for FUSE) in that it doesn't have > Network Neighbourhood functionality: this means that you can mount > shares that you can't see via NetBIOS browsing. > > (Note: unprivileged mounting requires both kern.usermount=1 and access > to /dev/fuse0). > > > The last sentence apparently did not work for me. I did not try too > hard, though, iirc. > > My ~/.usmb.conf (with file permissions for root, since I was running > this via doas): > > > 10.10.10.254 > WiFiDisk1_Volume1 > /mnt > > > > And in ~/.kshrc: > alias wlandisk="doas usmb wd" > Thanks Markus. It worked for me. However I miss the option allow_other to have read and write without root privilages. I see there are some options in the doc. But I didn't looked it properly. will test this later and report back if any issues. > Bye, Marcus > > > !DSPAM:577402f7267669153224385! > -- Regards, Rashad
mount cifs share on OpenBSD 5.9
Hello all, I tried to mount a network drive using shlight. But it is not working. Here is the command with verbose output. using smbclient -L ... , I can list the drive. so this must be something else. FYI, on linux i used to mount using mount.cifs shlight //networkdrive/share /media/share -U user -C -D0xff -W WORKGROUP psitable_insert(): inserting inode 449722290: -><- Kernel: smb_proc_connect: Passed SESSION REQUEST. Kernel: len: 99, wct: 17, bcc: 30 Kernel: smb_proc_connect: Request SMBnegprot..Kernel: Verified! Kernel: smb_proc_connect: Server wants NT LANMAN 1.0 protocol. Kernel: smb_proc_connect: password = *** Kernel: smb_proc_connect: usernam = user Kernel: smb_proc_connect: blkmode = 0 Kernel: smb_proc_connect: workgroup = WORKGROUP Kernel: len: 35, wct: 0, bcc: 0 Kernel: smb_errno: Kernel: ERRDOS - ERRnoaccess (Access denied.)Kernel: Kernel: smb_proc_connect: SMBsessetupX failed error connecting to server: [13] Permission denied Any help will be much appreciated. -- Regards, Rashad