Re: httpd rewrite and REQUEST_URI value
Hi Scott. If you or your framework uses REQUEST_URI you don't need request rewrite feature. Using REQUEST_URI and request rewrite feature are two oposite solutions for the same problem. To mimic nginx's try_files do something like this: location match "/hello/.*" { root "/index.php" } It is not obvious from man page but file can act as document root :) Then in that file, index.php in this case, you can route requests by parsing $_SERVER['REQUEST_URI'] what your framework probably does. Ve.
Re: Programming for OpenBSD
Hello, Kevin. please, join us on Telegram, openbsdjumpstart channel. There are people who can help you to start. http://openbsdjumpstart.org/#/47 Ve.
Re: USB power management
This would be cool :) I could turn my LED USB mini-lamp on or off. Ve
Re: utf-8 support in OpenBSD's httpd
Hi, Justina. You can not set HTTP headers in httpd.conf, there is no such feature. You need to run relayd in front of it to set some headers by example for text files like "contacto.txt", where it is not possible to set headers on application level, like calling header() function in case of PHP. Ve.
Re: Best Practices python virtualenv
Hi, Ken. Did you noticed that you are spending much more time with setting up your env every time you want to run your python apps than with programming itself? No offense but I think this is not normal. Ve.
Re: Wondering if any of my hardware is working on -current
Chris, install -current on USB key and boot from it. Ve.
Re: font path ignorance
Hello Ed, I'm using Files section in /etc/X11/xorg.conf Section "Files" FontPath "/path/to/fonts1" FontPath "/path/to/fonts2" ... EndSection but xset +fp suggested by previous posters would work the same. Ve. 24.01.2018, 14:04, "Ed Ahlsen-Girard": > Built a new system, and it didn't have all the fonts that were on the > old one. I looked for msttcorefonts as a package, and didn't find it. So > I went through ports and found it, and some other font sets that I > remembered from before, make, make build, make install. > > At the end of each make install I was advised to add the new fonts to my > fontpath, but I don't know where that is lives, and apropos returns > only XSetFontPath, XFreeFontPath, XGetFontPath(3), seemingly indicating > that this is done programmatically. > > There are new directories in /usr/local/share/fonts. > > The new fonts do not show up in LibreOffice. I do, however, have many > noto fonts for languages that I don't need to work with very often. So > to speak. > > What have I missed? > > -- > > Edward Ahlsen-Girard > Ft Walton Beach, FL
Re: Enabling Emulate3Buttons via xorg.conf
Hello, Emulate3Buttons option is "on" by default. Also there are many protocols to test. Did you tried another mouse? Also read man mouse(4). I don't think xorg.conf is not popular in community but many people simply don't use graphical interface :) Ve 19.01.2018, 00:37, "pa...@airmail.cc": > Hello, > > I am attempting to enable ws' Emulate3Buttons as my mouse's middle > button > is broken. As I've been told OpenBSD has no way to generate a xorg.conf > file, so I wrote it by hand following ws' manpage (see xorg.conf). > > Despite X launching cleanly (see Xorg.log), the middle button emulation > does not work. I also tried setting the driver to 'mouse,' by following > its' manpage which also launches cleanly but does not work. I have also > tried setting the timeout, and even at 1 second the middle button > emulation still does not work. > > I discussed this issue on the IRC channel and received some useful info, > but ultimately no solution. > > Any information on how to emulate the middle button is appreciated, it > seems xorg.conf is not popular with many OpenBSD users and I would be > more than glad to ditch it in search of a more elegant solution. > > Xorg.log (relevant info near the bottom): > https://pastebin.com/raw/TNWeN0D5 > > Current xorg.conf: > https://pastebin.com/raw/0r8GCnMG > > Trimmed dmesg info (only includes mouse being plugged in) > https://pastebin.com/raw/MPqp0DBN > > Full dmesg: > https://pastebin.com/raw/FLkyUfy2 > > System: OpenBSD 6.2 GENERIC.MP#134 amd64 > Packages up to date as of 18/1/2017.
Re: inteldrm(4) regression from 6.1 to 6.2: wrong console resolution
Hello, running -current my wsconsctl reports: display.type=inteldrm display.width=2560 display.height=1080 display.depth=32 inteldrm in dmesg reports: inteldrm0: msi inteldrm0: 2560x1080, 32bpp my console looks like this (I think it is 1920x1080 full-hd res.) https://i.imgur.com/KCI292P.jpg Ve. 17.01.2018, 16:08, "Philippe Meunier": > Hello, > > I just upgraded a Thinkpad T43 from OpenBSD 6.1 release to 6.2 release and > now the console resolution is not computed correctly anymore so only the > upper left part of the screen is actually used (very similar to what is > described here: https://marc.info/?l=openbsd-misc=150825563609653). X11 > works fine.
Re: [cwm] Can't move snaped window
I experienced satori :) Thank you master. 11.01.2018, 20:06, "Julien Steinhauser" <j...@ldd.fr>: > Ve Telko <vete...@yandex.com> wrote: > >> Hello all, > > Hello > >> window in cwm -current snapped to screen edge can not be moved using >> keyboard shortcuts. Is this a feature or bug? :) > > What about a moveamount bigger than the snapdist ? > > -- > Julien
[cwm] Can't move snaped window
Hello all, window in cwm -current snapped to screen edge can not be moved using keyboard shortcuts. Is this a feature or bug? :) Thanks, Ve.
Re: OpenBSD and virtual machines
Edgar, Consus ... are you jealous? ;) 08.01.2018, 21:28, "ed...@pettijohn-web.com": > On Jan 8, 2018 2:07 PM, Consus wrote: >> On 16:37 Mon 08 Jan, Galaxy Júpiter wrote: >> > Why OpenBSD now have their own native virtualisation layer? >> > Why Theo de Raadt changed your opinion about virtual machines? >> > What is the current opinion of Theo de Raadt about virtual machines? >> >> What does Theo de Raadt eat for breakfast? > > I'm betting Wheaties.
Re: suckless st on OpenBSD62
I use only .profile file, I have ENV set to $HOME/.kshrc but it is empty. I run st -e ksh -l without any problems. 07.01.2018, 17:15, "Frederic Fichter": > Hello all, > > I recently switched one of my machines from Debian to OpenBSD, Still a few > things left to fix (otherwise it would be no fun) and it looks promising. > > I'm running suckless software, I've installed these packages: > dwm-6.1p0 dynamic window manager > st-0.7p1 simple X terminal > > My $HOME/.profile has only one line in it: > export ENV=$HOME/.kshrc > > And I set some variables in my $HOME/.kshrc > > Now, everything's cool in xterm (i.e. variables are set) - but that's not the > case in st, when I launch st from dmenu. > If I launch st from xterm, variables are set as well. > > Where should I look for an explanation? > > Thanks much for your help with this. > > Best, > > Fred
Re: Community-driven OpenBSD tutorials wiki?
Hi Andreas, I installed OpenBSD on Oct. 16. 2017 after 18 years in Linux motivated by reading an article from Derek Sivers on OpenBSD 6.1/6.2 I started with reading FAQ and mailing lists (mostly tech and misc) history. I also searched for some other articles on OpenBSD but I very soon understood, that there are very few and that this is absolutely another world, than Linux. Now after several weeks I use Google only occasionally, I stopped using stackoverflow et. al. I'm just reading FAQ, man pages, dotfiles and gists on Github and if I need to ask for help I ask people in OpenBSD Jumpstart group in Telegram or people on Twitter. They are very friendly and willing to help with anything. Don't spend your time or energy on something like Arch Linux wiki. Ve.
Re: Can't exit cwm #312 #313
� � 02.01.2018, 15:05, "Okan Demirmen" <o...@demirmen.com>:> On Tue 2018.01.02 at 08:47 -0500, Okan Demirmen wrote:>> � On Tue, Jan 2, 2018 at 7:03 AM, Ve Telko <vete...@yandex.com> wrote:>> � > Hello.>> � >>> � > Yesterday (and today after upgrade) I tried to exit cwm, using shortcut>> � > for "quit" command specified in my .cwmrc but with no luck. I'm getting>> � > error message on console:>> � >>> � > cwm: 'cwm' failed to start, restarting fallback>> � >>> � > I also tried exiting using the defaults without .cwmrc file CMS-q>> � > but this also doesn't work. The difference is there is no error message>> � > on the console this time.>> � >>> � > Please could someone help me with this?>>>> � Hi - Thanks for the report; looks like I forgot about the quit code>> � path; will look at this shortly...>> Should be now fixed; thanks for the report!� Thank you for great wm :)�
Re: [cwm] can't quit #312, #313
This is just a duplicate of the previous message. I'm new in OpenBSD and I didn't know it takes longer while a message appears in listing. I apologize for my impatience. Please don't tell me I smoked something, or I'm confused, or complete idiot, this doesn't happen anymore, I promise :) Ve
[cwm] can't quit #312, #313
� Hello.� Yesterday (and today after upgrade) I tried to exit cwm, using shortcutfor "quit" command specified in my .cwmrc but with no luck. I'm gettingerror message on console:� cwm: 'cwm' failed to start, restarting fallback� I also tried exiting using the defaults without .cwmrc file CMS-qbut this also doesn't work. The difference is there is no error messageon the console this time.� Please could someone help me with this?� Thanks, Ve� � �
Can't exit cwm #312 #313
Hello. Yesterday (and today after upgrade) I tried to exit cwm, using shortcut for "quit" command specified in my .cwmrc but with no luck. I'm getting error message on console: cwm: 'cwm' failed to start, restarting fallback I also tried exiting using the defaults without .cwmrc file CMS-q but this also doesn't work. The difference is there is no error message on the console this time. Please could someone help me with this? Thanks, Ve