[Arduino Library] Does WifiDriverInit() is missing in some package ?
Hello all, I would like to share my issue with the compilation of the sketch provided by arduino.cc concerning the Wifi Whield. After few try and some unrefferenced reference (IPAddress, WiFiDrv)... as expected i edited the MAkefile: LIBRARIES=SPI WiFi IPAddress WiFiDrv Question: as i still have an error message: /usr/local/bin/avr-g++ -c -mmcu=atmega328p -I. -gstabs -DF_CPU=1600 -DARDUINO=100 -I/usr/local/share/arduino//cores/arduino -I/usr/local/share/arduino//libraries/SPI -I/usr/local/share/arduino//libraries/WiFi -I/usr/local/share/arduino//libraries/IPAddress -I/usr/local/share/arduino//libraries/WiFiDrv -I/usr/local/share/arduino//libraries/SD -I/usr/local/share/arduino//libraries/File -I/usr/local/share/arduino//libraries/utility/SdFile -I/usr/local/share/arduino//libraries/utility/SdVolume -I/usr/local/share/arduino//libraries/utility/Sd2Card -I/usr/local/share/arduino//libraries/SPI/utility/ -I/usr/local/share/arduino//libraries/WiFi/utility/ -I/usr/local/share/arduino//libraries/IPAddress/utility/ -I/usr/local/share/arduino//libraries/WiFiDrv/utility/ -I/usr/local/share/arduino//libraries/SD/utility/ -I/usr/local/share/arduino//libraries/File/utility/ -I/usr/local/share/arduino//libraries/utility/SdFile/utility/ -I/usr/local/share/arduino//libraries/utility/SdVolume/utility/ -I/usr/local/share/arduino//libraries/utility/Sd2Card/utility/ -I/usr/local/share/arduino//variants/standard -Os -ffunction-sections -fdata-sections /usr/local/share/arduino//cores/arduino/IPAddress.cpp -o IPAddress.o make: don't know how to make WiFiDrv.o (prerequisite of: applet/core.a) Stop in /home/olivier/Code/Arduino/Project/wifi Did i miss something, something to do ? Here, i am not sure to understand well, what happens, with avrdude or avr-libc. Thanks in advance.
Re: [Arduino] CLI serial monitor
Hello Janne, CRC, great, thanks for explanations. A big thank you to both of you. have a nice day. Olivier. On Wed, 4 Apr 2018 10:39:30 +0200 Janne Johansson <icepic...@gmail.com> wrote: > 2018-04-04 4:58 GMT+02:00 Olivier Burelli <oliv...@burelli.fr>: > > > Hello, > > > > i am playing with ARDUINO UNO on my 6.2 stable laptop. > > I am trying to read the serial monitor message from the board. > > > > from dmesg: > > (...) > > umodem0 at uhub3 port 1 configuration 1 interface 0 "Arduino > > SrlArduino Uno" rev 1.10/0.01 addr 3 > > umodem0: data interface 1, has no CM over data, has break > > umodem0: status change notification available > > ucom0 at umodem0 > > --> which device is corresponding ? > > > > > > > ucom0 from dmesg means it is /dev/cuaU0 (and /dev/ttyU0), ucom1 -> > cuaU1 and so on. > Then use "cu" or something if you want to interact with it manually. > "cu -s 9600 -l /dev/cuaU0" for 9k6 connections. (though 115200 is > probably nicer, > otherwise the Serial.print()s will spend too much time talking slow > to the computer > which also can handle lots faster speeds. >
[Arduino] CLI serial monitor
Hello, i am playing with ARDUINO UNO on my 6.2 stable laptop. I am trying to read the serial monitor message from the board. from dmesg: (...) umodem0 at uhub3 port 1 configuration 1 interface 0 "Arduino SrlArduino Uno" rev 1.10/0.01 addr 3 umodem0: data interface 1, has no CM over data, has break umodem0: status change notification available ucom0 at umodem0 should i use cat /dev/DEVICE >> file.txt ? or (stty raw; cat > /home/me/received.txt) < /dev/device ? --> which device is corresponding ? does the information: "data interface 1, has no CM over data, has break" means that OpenBSD can not receive data from the board ? For example, i would like to catcg the strinf from the code below: (...) void setup(void) { Serial.begin(9600); // send the value of a string to the serial port (USB) Serial.print("Hello world"); return; } (...) Thanks in advance. O.
Re: Can I use OpenBSD as a desktop system?
On Tue, 13 Jun 2017 05:56:52 -0500 (CDT) Eric Johnson <eri...@colossus.gruver.net> wrote: > > On Sun, 11 Jun 2017, Rupert Gallagher wrote: > > > I spent yesterday and today installing 6.1 from scratch on a Dell > > Optiplex gx620. The machine has a pentium 4 @3.0GHz with 4GB non ECC > > RAM, returning a passmark of 354*. The aim is to replace the > > accountant's windows 10 pro tomorrow morning, moving the disk into his > > more recent Dell. In summary, I have everything he needs, including a > > gui that looks like windows 7, except for the following, so far: > > I don't know about the Optiplex gx620, but I have a refurbished Optiplex > 790 that I bought earlier this year. It gave me all kinds of problems > with network issues and ssh. For example, when I ran syspatch after the > first three patches were released, sshd would no longer run if I was using > IPv6. Also, connections to other machines would fail suddenly, sometimes > within seconds. > > I stuck in another disk and installed Fedora Workstation on it and had the > same issues so it wasn't because of OpenBSD. > > I ended up upgrading the firmware and that seems to have fixed the issues. > That proved to be a bit of a problem because you have to be running > Windows to upgrade the firmware. I have some old versions of Windows > around, but they all require IDE drives. I finally got Windows running > (it sure ran slow compared to OpenBSD) and installed the firmware. > > I bought this computer to become my primary workstation replacing a Lenovo > desktop running SuSE Linux. I have a couple of packages that need Linux > so I'll keep the older workstation, but on another table, and use ssh from > this computer as necessary. > > For what it's worth, my top preference for a window manager is > WindowMaker. That's all I've used for years on both OpenBSD and Linux. > > Eric No one talked about this personnal project ? http://daemonforums.org/showthread.php?t=10229 It's running fine on all minimalist configuration... -- Olivier Burelli <oliv...@burelli.fr>
Re: Dovecot errors on startup
On Sat, 30 Jul 2016 10:39:30 + (UTC) Mik J <mikyde...@yahoo.fr> wrote: Hello Mik J. in first, sorry for my bad english. Did you mix sysuser and user required to read the dedicated mount point for virtual users (virtual mailboxes storage) ? OpenBSD team provided the sysuser _dovecot to run the daemon. I use on my side specific user also to read the Maildir folder in a specific mount point : /var/vmail with user vmail (vmail created manually : vmail:*:::Virtual Mail:/var/vmail:/sbin/nologin) Only the user vmail writes on the dedicated mount point for all virtual mailboxes. Dovecot is running with _dovecot sys account. May i suggest you to read in parallel : http://wiki.dovecot.org/HowTo Mainly the section userdb configuration, where you declare the user required to read & write the virtuals mailboxes stored. In my case i mixed sql authentication with static userdb part. my dovecot -n : # 2.2.21 (5345f22): /etc/dovecot/dovecot.conf # OS: OpenBSD 5.9 amd64 ffs first_valid_uid = 1000 listen = * mail_gid = vmail mail_location = maildir:/var/vmail/%d/%n/Maildir mail_privileged_group = vmail mail_uid = vmail (...) passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } (...) userdb { args = uid=vmail gid=vmail home=/var/vmail/%d/%n driver = static } > Thank you for your answer Olivier > > As I was writting you I started to understand what could be wrong > My dovecot.conf# dovecot -n > # 2.2.21 (5345f22): /etc/dovecot/dovecot.conf > # OS: OpenBSD 5.9 amd64 ffs > mail_gid = _vmail > ... > mail_uid = _vmail > > I run dovecot with another user and that's why I was feeling the login.conf parameters were not taken into account. > Do you know how my login.conf should look like if I run dovecot with the _vmail user ? > Regards > > > > > > > Le Samedi 30 juillet 2016 12h10, Olivier Burelli <oliv...@burelli.fr> a écrit : > > > > On Sat, 30 Jul 2016 08:56:18 + (UTC) > Mik J <mikyde...@yahoo.fr> wrote: > > > Hello, > > I'm able to start dovecot manually as a root# dovecot > > But I can't using the startup script# /etc/rc.d/dovecot start > > the best way is to use : rcctl start || stop dovecot > > previously you have to enable it on rc : rcctl enable dovecot > > > I notice errorsJul 30 10:50:52 x dovecot: master: Dovecot v2.2.21 (5345f22) > > starting up for imap > > Jul 30 10:50:52 x dovecot: master: Error: service(imap-login): pipe() failed: > > Too many open files > > Jul 30 10:50:52 x dovecot: master: Error: service(imap-hibernate): pipe() > > failed: Too many open files > > Jul 30 10:50:52 x dovecot: master: Error: service(doveadm): pipe() failed: Too > > many open files > > > > Even if my login.conf is modifieddovecot:\ > > __ :openfiles-cur=512:\ > > __ :openfiles-max=2048:\ > > __ :tc=daemon: > > And I ran# cap_mkdb /etc/login.conf > > I increased both values up to 8192 and it's still the same. > > It's almost a fresh install, there are just 5 or 6 mails in the mailbox > > > > Does any of you have an idea about what could be the problem and how to debug > > further ? > > > > Seems that you followed intructions from /usr/local/share/doc/pkg-readmes/dovecot-2.2.21p0 > > For my configuration, informations below are ok. > > +--- > | Running dovecot-2.2.21p0 on OpenBSD > +--- > > By default, the _dovecot user, and so the Dovecot processes run in > the login(1) class of "daemon". The default limits on file descriptors > are insufficient to run Dovecot; instead you should put the _dovecot > user and processes in their own login(1) class with tuned resources. > > For example, add this to the login.conf(5) file: > > dovecot:\ > :openfiles-cur=512:\ > :openfiles-max=2048:\ > :tc=daemon: > > Rebuild the login.conf.db file if necessary: > > # [ -f /etc/login.conf.db ] && cap_mkdb /etc/login.conf > For larger servers these numbers and memory limits (e.g. datasize > and stacksize) may also need to be increased. In particular, indexing > emails for full-text search is likely to need an increased datasize. > Please report any changes and experiences to the package maintainers > so that we can update this file for future versions. > > +-- > > > dovecot -n provides wich informations ? > > > -- > regards, > Olivier > > > > > -- regards, Olivier
Re: Dovecot errors on startup
On Sat, 30 Jul 2016 08:56:18 + (UTC) Mik Jwrote: > Hello, > I'm able to start dovecot manually as a root# dovecot > But I can't using the startup script# /etc/rc.d/dovecot start the best way is to use : rcctl start || stop dovecot previously you have to enable it on rc : rcctl enable dovecot > I notice errorsJul 30 10:50:52 x dovecot: master: Dovecot v2.2.21 (5345f22) > starting up for imap > Jul 30 10:50:52 x dovecot: master: Error: service(imap-login): pipe() failed: > Too many open files > Jul 30 10:50:52 x dovecot: master: Error: service(imap-hibernate): pipe() > failed: Too many open files > Jul 30 10:50:52 x dovecot: master: Error: service(doveadm): pipe() failed: Too > many open files > > Even if my login.conf is modifieddovecot:\ > __ :openfiles-cur=512:\ > __ :openfiles-max=2048:\ > __ :tc=daemon: > And I ran# cap_mkdb /etc/login.conf > I increased both values up to 8192 and it's still the same. > It's almost a fresh install, there are just 5 or 6 mails in the mailbox > > Does any of you have an idea about what could be the problem and how to debug > further ? > Seems that you followed intructions from /usr/local/share/doc/pkg-readmes/dovecot-2.2.21p0 For my configuration, informations below are ok. +--- | Running dovecot-2.2.21p0 on OpenBSD +--- By default, the _dovecot user, and so the Dovecot processes run in the login(1) class of "daemon". The default limits on file descriptors are insufficient to run Dovecot; instead you should put the _dovecot user and processes in their own login(1) class with tuned resources. For example, add this to the login.conf(5) file: dovecot:\ :openfiles-cur=512:\ :openfiles-max=2048:\ :tc=daemon: Rebuild the login.conf.db file if necessary: # [ -f /etc/login.conf.db ] && cap_mkdb /etc/login.conf For larger servers these numbers and memory limits (e.g. datasize and stacksize) may also need to be increased. In particular, indexing emails for full-text search is likely to need an increased datasize. Please report any changes and experiences to the package maintainers so that we can update this file for future versions. +-- dovecot -n provides wich informations ? -- regards, Olivier
[httpd] rewrite url for PHP Framework (silex / symphony...)
Hello all, I am an end user that wants learn php, currently i try to follow a course. For it i try to use httpd daemon on openbsd 5.9-stable Sorry if this subject is posted yet in the past. In fact i do not really understood what about it is talked here : https://github.com/reyk/httpd/issues/27 So i understood from my followed course that i need the "rewrite-url" function. Example for Apache : LoadModule rewrite_module modules/mod_rewrite.so --> Goal (from the php course) : rewrite application url. http://www.example.com/Tool/Calendar instead of http://www.downloadsite.com?app=34 Question : This functionality does exist with the httpd daemon ? Thanks in advance. -- Regards, Olivier