8G RAM on 32 bits
Hi, I have this thinkpad laptop and I want to use OpenBSD on it. Now, the laptop has 8G RAM and it is a 32 bits. I would like to know whether open can see them. On linux (sorry!) I know there's a "patched" kernel called PAE that allows the OS to see the RAM (at least it shows up on a "top"). Is there something like this for OpenBSD? Thanks... newbiely yours, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: 8G RAM on 32 bits
Thanks, Peter... I thought the same and downloaded the amd64 CD and tried to install it but it would not boot. In my ignorance I supposed that it would be impossible for a 32 bits CPU to do that, so I threw away the CD. Or are you suggesting that I install i386 and then download the amd64 kernel and boot from it later? Will that be compatible with all the installed software (I install the precompiled binaries instead of using ports). Thanks for the feedback. I really appreciate it. Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: 8G RAM on 32 bits
Hi, thanks for the answer. This is a Sandybridge Mobile "Intel® Core™ i7-2640M CPU @ 2.80GHz × 4 " How can I find out whether this is 64 bit-capable? I have googled but not very successfully... I am afraid I am also newbie in the tech jargon... Pau On Mon, Jul 30, 2012 at 10:09 PM, Mike Erdely wrote: > On Mon, Jul 30, 2012 at 3:35 PM, Pau wrote: >> I thought the same and downloaded the amd64 CD and tried to install it >> but it would not boot. In my ignorance I supposed that it would be >> impossible for a 32 bits CPU to do that, so I threw away the CD. > > More than likely, that means your CPU is 32-bit. But, you could post > a dmesg(8) if you didn't think you could figure that out and someone > else could tell you if you have a 64-bit capable CPU. > > -ME ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: 8G RAM on 32 bits
Thanks... I am downloading a recent snapshot and will try to do a clean install with the amd64. I will keep you posted. Cheers, Pau On Tue, Jul 31, 2012 at 12:17 PM, Peter Hessler wrote: > All i7's are 64bit compatible. > > If you can try a new kernel (bsd.rd should be enough), then you can try > it out and see if it boots. > > If it does boot, it is highly recommended to do a clean install. While > it is possible to upgrade from i386 to amd64 this is not recommended as > it is easy to miss some bits and add some problems to your system. > > > On 2012 Jul 31 (Tue) at 12:04:26 +0200 (+0200), Pau wrote: > :Hi, > : > :thanks for the answer. > : > :This is a Sandybridge Mobile "Intel® Core™ i7-2640M CPU @ 2.80GHz × 4 " > : > :How can I find out whether this is 64 bit-capable? > : > :I have googled but not very successfully... I am afraid I am also > :newbie in the tech jargon... > : > :Pau > : > :On Mon, Jul 30, 2012 at 10:09 PM, Mike Erdely wrote: > :> On Mon, Jul 30, 2012 at 3:35 PM, Pau wrote: > :>> I thought the same and downloaded the amd64 CD and tried to install it > :>> but it would not boot. In my ignorance I supposed that it would be > :>> impossible for a 32 bits CPU to do that, so I threw away the CD. > :> > :> More than likely, that means your CPU is 32-bit. But, you could post > :> a dmesg(8) if you didn't think you could figure that out and someone > :> else could tell you if you have a 64-bit capable CPU. > :> > :> -ME > :___ > :Openbsd-newbies mailing list > :Openbsd-newbies@sfobug.theapt.org > :http://mailman.theapt.org/listinfo/openbsd-newbies > : > > -- > Q: Do you know what the death rate around here is? > A: One per person. ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: 8G RAM on 32 bits
:) Thanks for the help... I installed it and the 8G RAM are there (see head of dmesg ahead). I have another question... I have this big monitor (30"!) and I would like to use the displayport but X does not seem to understand it, because when I use the displayport cable the monitor is black. With VGA I get it to work but at a much smaller resolution. The monitor has also HDMI (although the laptop does not). Would the quality any better if I used an adapter to plug a HDMI cable to the VGA port of the laptop? In any case, thanks! $ dmesg | head OpenBSD 5.2 (RAMDISK_CD) #118: Mon Jul 30 16:31:14 MDT 2012 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD real mem = 8466853888 (8074MB) avail mem = 8221462528 (7840MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (68 entries) bios0: vendor LENOVO version "8DET56WW (1.26 )" date 12/01/2011 bios0: LENOVO 42914BG acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 On Tue, Jul 31, 2012 at 2:21 PM, Pau wrote: > Thanks... > > I am downloading a recent snapshot and will try to do a clean install > with the amd64. > > I will keep you posted. > > Cheers, > > Pau > > On Tue, Jul 31, 2012 at 12:17 PM, Peter Hessler wrote: >> All i7's are 64bit compatible. >> >> If you can try a new kernel (bsd.rd should be enough), then you can try >> it out and see if it boots. ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
secure suspend on laptop, webcam and youtube (ahem) on thinkpad
Hi, I have installed 5.1 amd64 (see previous e-mails) on a thinkpad and I have these main concerns: 1) How can I use suspend in a secure way? I am using X, of course, and I carry the laptop with me all the time to work in my rucksack. I usually suspend it to resume work later with all windows open etc. But I would like to know whether there is a way to tell suspend it should lock the screen after resuming. Is there such a thing? 2) Unfortunately I have to do a lot of video conferencing with some people and I was wondering whether there is a way to do it on OpenBSD. I know that skype is totally out of question but how about google talk? I have also tried to install ekiga but it is shown as "broken" when I try to install it from the ports. 3) I have realised that firefox and chrome are almost there in playing youtube videos via html5 but not quite. I used to play them in the past with videoreplacer and gecko-mediaplayer but videoreplacer is not available anymore for firefox. Do you have any suggestion for alternatives? Thanks! ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: encrypting home and letting it survive releases
Dear all, I am usually following the stable release of Obsd and I like to have my home encrypted. I followed a guide that my friend Dave detailed for me, and I usually do it like this: dd if=/dev/arandom of=/home/wd0h.fs bs=1m count=1024_times_your_GB_here vnconfig -k svnd0 /home/wd0h.fs newfs /dev/rsvnd0c cd / mount /dev/svnd0c /home/ I.e. I create a huge file with arandom that occupies all of my home and then I use vnconfig to mount it every time I reboot the laptop. However, the process takes a lng time. I have two questions: 1- How could I make the home partition "survive" the reinstallation process every release (i.e. every six months)? When I am prompted with the partition tool during install I find myself kind of lost to edit the partition in which home lives as "/home/pau" and I end up erasing it and redoing the process, which is a huge waste of time (encryption plus transfer of data, we're talking about GBs here, a lot) 2- Is there a "more modern" way of encrypting home than what I wrote above? I have read some things in the documentation, but a step by step example after a clean install of how to encrypt the whole /home would be very much appreciated (remember, this mailing list is for newbies!!!) Thanks a lot! Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Fwd: encrypting home and letting it survive releases
I really reformat everything every six months... I went for the fresh install every time... the installation is a matter of 5 minutes, and I have a script to install the software I need... so in total a clean install takes ~1-2 hours tops... BUT for the /home thing... On Fri, May 3, 2013 at 9:22 PM, Bryan Irvine wrote: > re-installation process? do you mean upgrade? or do you really re-format > every 6 months? > > > On Fri, May 3, 2013 at 12:18 PM, Pau wrote: > >> Dear all, >> >> I am usually following the stable release of Obsd and I like to have my >> home encrypted. I followed a guide that my friend Dave detailed for me, and >> I usually do it like this: >> >> dd if=/dev/arandom of=/home/wd0h.fs bs=1m count=1024_times_your_GB_here >> vnconfig -k svnd0 /home/wd0h.fs >> newfs /dev/rsvnd0c >> cd / >> mount /dev/svnd0c /home/ >> >> I.e. I create a huge file with arandom that occupies all of my home and >> then I use vnconfig to mount it every time I reboot the laptop. >> >> However, the process takes a lng time. >> >> I have two questions: >> >> 1- How could I make the home partition "survive" the reinstallation >> process every release (i.e. every six months)? When I am prompted with the >> partition tool during install I find myself kind of lost to edit the >> partition in which home lives as "/home/pau" and I end up erasing it and >> redoing the process, which is a huge waste of time (encryption plus >> transfer of data, we're talking about GBs here, a lot) >> >> 2- Is there a "more modern" way of encrypting home than what I wrote >> above? I have read some things in the documentation, but a step by step >> example after a clean install of how to encrypt the whole /home would be >> very much appreciated (remember, this mailing list is for newbies!!!) >> >> Thanks a lot! >> >> >> Pau >> >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies >> >> > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: encrypting home and letting it survive releases
I really reformat everything every six months... I went for the fresh install every time... the installation is a matter of 5 minutes, and I have a script to install the software I need... so in total a clean install takes ~1-2 hours tops... BUT for the /home thing... On Fri, May 3, 2013 at 9:22 PM, Bryan Irvine wrote: > re-installation process? do you mean upgrade? or do you really re-format > every 6 months? > > > On Fri, May 3, 2013 at 12:18 PM, Pau wrote: > >> Dear all, >> >> I am usually following the stable release of Obsd and I like to have my >> home encrypted. I followed a guide that my friend Dave detailed for me, and >> I usually do it like this: >> >> dd if=/dev/arandom of=/home/wd0h.fs bs=1m count=1024_times_your_GB_here >> vnconfig -k svnd0 /home/wd0h.fs >> newfs /dev/rsvnd0c >> cd / >> mount /dev/svnd0c /home/ >> >> I.e. I create a huge file with arandom that occupies all of my home and >> then I use vnconfig to mount it every time I reboot the laptop. >> >> However, the process takes a lng time. >> >> I have two questions: >> >> 1- How could I make the home partition "survive" the reinstallation >> process every release (i.e. every six months)? When I am prompted with the >> partition tool during install I find myself kind of lost to edit the >> partition in which home lives as "/home/pau" and I end up erasing it and >> redoing the process, which is a huge waste of time (encryption plus >> transfer of data, we're talking about GBs here, a lot) >> >> 2- Is there a "more modern" way of encrypting home than what I wrote >> above? I have read some things in the documentation, but a step by step >> example after a clean install of how to encrypt the whole /home would be >> very much appreciated (remember, this mailing list is for newbies!!!) >> >> Thanks a lot! >> >> >> Pau >> >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies >> >> > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: encrypting home and letting it survive releases
Hi, thanks for the link! I have a question... how would this apply to a disk that has a partition on it? I mean to keep a small linux partition... There are some desktop applications that unfortunately still do not exist on OpenBSD, such as kdenlive. If I overwrite the MBR, how can I boot later in linux? Or could I specify a partition of the disk in fdisk? I do not think so... Thanks again Pau On Fri, May 3, 2013 at 9:56 PM, Peter Hessler wrote: > I upgrade my softraid crypto laptop about every month, and the only > thing I have to do is remember to type "sd1" instead of "sd0". I don't > need to re-jiggle anything special. > > http://www.tedunangst.com/flak/post/OpenBSD-softraid-crypto-boot gives > some hints for how to do it, with full on descriptions in the link he > gives. > > > > On 2013 May 03 (Fri) at 21:18:27 +0200 (+0200), Pau wrote: > :Dear all, > : > :I am usually following the stable release of Obsd and I like to have my > :home encrypted. I followed a guide that my friend Dave detailed for me, > and > :I usually do it like this: > : > :dd if=/dev/arandom of=/home/wd0h.fs bs=1m count=1024_times_your_GB_here > :vnconfig -k svnd0 /home/wd0h.fs > :newfs /dev/rsvnd0c > :cd / > :mount /dev/svnd0c /home/ > : > :I.e. I create a huge file with arandom that occupies all of my home and > :then I use vnconfig to mount it every time I reboot the laptop. > : > :However, the process takes a lng time. > : > :I have two questions: > : > :1- How could I make the home partition "survive" the reinstallation > process > :every release (i.e. every six months)? When I am prompted with the > :partition tool during install I find myself kind of lost to edit the > :partition in which home lives as "/home/pau" and I end up erasing it and > :redoing the process, which is a huge waste of time (encryption plus > :transfer of data, we're talking about GBs here, a lot) > : > :2- Is there a "more modern" way of encrypting home than what I wrote > above? > :I have read some things in the documentation, but a step by step example > :after a clean install of how to encrypt the whole /home would be very much > :appreciated (remember, this mailing list is for newbies!!!) > : > :Thanks a lot! > : > : > :Pau > > :___ > :Openbsd-newbies mailing list > :Openbsd-newbies@sfobug.theapt.org > :http://mailman.theapt.org/listinfo/openbsd-newbies > > > -- > Give me the Luxuries, and the Hell with the Necessities! > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
cwmrc configuration file question
Hi, I am trying to define groups in cwm but I am a bit lost with the documentation. How could I define in cwmrc 2 groups, named "group alfa" and "group beta" so that ProgramA, ProgramB and ProgramC pop up and are immediately added to group 1 immediately after being executed ProgramD, ProgramE and ProgramF pop up and are immediately added to group 2 immediately after being executed ? I am used to work with virtual desktops and I feel suffocating with only one and plenty of windows minimized, hidden etc without any order. Any suggestion, in particular an example, will be appreciated. I have read the documentation, but I could not understand it, that's why I am writing to newbies... thanks, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: cwmrc configuration file question
Ok... I think I got it... autogroup 1 "xterm,XTerm" autogroup 4 "Navigator,Firefox" will open all xterms on CTRL+ALT+1 and firefox on CTRL+ALT+4 But.. is it possible to group, say, mutt running on an xterm to group 2? thanks! On Wed, May 8, 2013 at 6:23 PM, Pau wrote: > Hi, > > I am trying to define groups in cwm but I am a bit lost with the > documentation. > > How could I define in cwmrc 2 groups, named "group alfa" and "group beta" > so that > > ProgramA, ProgramB and ProgramC pop up and are immediately added to group > 1 immediately after being executed > > ProgramD, ProgramE and ProgramF pop up and are immediately added to group > 2 immediately after being executed > > ? > > I am used to work with virtual desktops and I feel suffocating with only > one and plenty of windows minimized, hidden etc without any order. > > Any suggestion, in particular an example, will be appreciated. > > I have read the documentation, but I could not understand it, that's why I > am writing to newbies... > > thanks, > > Pau > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: File system speed issues
Hi Stuart, thanks for your reply. It is a pleasure to use this list. This is indeed an i7. I have always looked forward to following -current, but I am afraid of the process and that I mess things up. I have read the site http://www.openbsd.org/faq/current.html and it looks to me as it involves a lot of work. I have too many questions. -Should I always start with a snapshot of current? -When should I update the system? -How often? -Where is the list of changes that I have to do (I believe the upgrade program does not do that for you)? Is there a "newbie" guide to following -current with a step by step example? I am now somehow stuck, because I cannot use the laptop to do real work, so I am hesitating between going back soon to linux (fedora) or stick to OpenBSD, but I have to move on now! Do you have suggestions? Thanks again. Pau On Tue, May 14, 2013 at 12:18 PM, Stuart Henderson wrote: > On 2013-05-13, Pau wrote: > > For comparison, I asked a colleague who is using the same laptop model > > (thinkpad x220) > > Which CPU? If it's i5/i7 then moving to -current should improve things as > it uses the AESNI instructions on the CPU to speed up softraid crypto.. > > > and same hw to run the test on his, which is running ubuntu > > (argh!) and a non-encrypted filesystem. He got 0.5 seconds. I.e. ~ 10 > times > > faster than OpenBSD without encryption. > > > linux is by far the fastest (0.5 sec), followed by OpenBSD (4.2 sec) and, > > the last one, iOS (~13 sec !!! I wonder what are the advantages of an > > airbook... I thought they performed well) > > I suspect that this test on Linux may return from dd before committing > the data to disk, whereas I suspect the others finish writing before they > return. > > > Note that I am not asking this in misc, because I want to keep my skin > > attached to my body... :) > > It's usually possible to tell from reading a few words of a mail > on misc@ whether the sender is an idiot. (Actually, half the time you > can tell just by looking at the email address). If so, delete and > move on, then they will have just wasted their own time and a bit > of bandwidth. > > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: File system speed issues
Dear all, many thanks for the help! I followed the advice and tried to upgrade from a recent bsd.rd When I booted (boot bsd.rd), I gave the url of the site from where I got it, and the upgrade program complained that it could not find the required packages on that site (etc53.tgz ...) I am sure that I followed the instructions correctly.. now please let me know what part of that sureness was wrong :) In the meanwhile I am installing fedora on the machine... for the second time... the first one broke in the middle of the process... $§"&$$%&%$!! Also, how do you keep track of what's been improved in current? Do you follow the mailing list? I am in particular interested to find out whether displayport will soon be supported or not... Again, thanks for the information and dedication! Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: File system speed issues
> Absolutely. Depending upon your interests, reading misc@, ports@, > source-changes@, ports-changes@, & tech@ can all have information useful > to -current users, but at a bare minimum, I would suggest regularly reading > misc@. > > I was fearing that... Taking into account my two kids and my odyssey in finding a permanent position, this is something I cannot do (although I would like to, sometimes I spend a while reading in misc, I like it). I have now installed (after a few crashes, I'm lovin' it) fedora and doing the backup on the LUKS partition. I am timing it, too, to compare. I have set up a 10G partition to keep up with OpenBSD... I will "play" with that one there... and hopefully move back to it soon... Thanks to all of you... and expect more questions soon! Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: File system speed issues
Thanks again for the feedback!!! Just for the record. The backing up of the whole files took on Fedora 18 using LUKS (encryption): [pau@localhost 500GB]$ time \cp -pr bin fitx_confg andromina correu ejcaip grafia lib smbin baconaes Documents escriptori include temporal kdenlive musica treball /home/pau/ real106m48.828s user0m8.427s sys8m28.319s I.e. some 1.7 hours instead of the14 hours it took with OpenBSD... :( :( I will keep a partition with obsd on it and "train" with it to follow -current Then I will come back! Thanks again to all of you. Pau On Tue, May 14, 2013 at 5:17 PM, Josh Grosse wrote: > Pau gmail.com> writes: > > > I followed the advice and tried to upgrade from a recent bsd.rd > > When I booted (boot bsd.rd), I gave the url of the site from where I got > it, and the upgrade program complained that it could not find the required > packages on that site (etc53.tgz ...) > > I am sure that I followed the instructions correctly.. now please let me > know what part of that sureness was wrong :) > > You need to be sure you are pointing the upgrade or install script to the > right directory at your mirror. > > Typically, this is /pub/OpenBSD/snapshots// > > > In the meanwhile I am installing fedora on the machine... > > Does this mean you have abandoned OpenBSD? > > > Also, how do you keep track of what's been improved in current? Do you > follow the mailing list? I am in particular interested to find out whether > displayport will soon be supported or not... > > The misc@ mailing list will keep you abreast of major developments, and > the > ports@ list will let you know about ports being developed and tested. The > latter is where the user community can really give back, by testing new > ports. I understand from a later post that you don't have time to read a > lot of mail. Consider subscribing to daily or weekly digests of these > lists, or, just browsing posts when you have time via one of the archive > websites. > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: File system speed issues
Hi, I do not know what I am doing wrong. 1- I installed 5.3 2- I downloaded bsd.rd from the snapshot directory of amd64 3- I booted bsd.rd 4- I chose "update" and I got the same problem. I took a picture. Please check by yourself. What is wrong? http://s12.postimg.org/xwlxj1nr1/20130515_201722.jpg Thanks! Pau On Tue, May 14, 2013 at 5:17 PM, Josh Grosse wrote: > Pau gmail.com> writes: > > > I followed the advice and tried to upgrade from a recent bsd.rd > > When I booted (boot bsd.rd), I gave the url of the site from where I got > it, and the upgrade program complained that it could not find the required > packages on that site (etc53.tgz ...) > > I am sure that I followed the instructions correctly.. now please let me > know what part of that sureness was wrong :) > > You need to be sure you are pointing the upgrade or install script to the > right directory at your mirror. > > Typically, this is /pub/OpenBSD/snapshots// > > > In the meanwhile I am installing fedora on the machine... > > Does this mean you have abandoned OpenBSD? > > > Also, how do you keep track of what's been improved in current? Do you > follow the mailing list? I am in particular interested to find out whether > displayport will soon be supported or not... > > The misc@ mailing list will keep you abreast of major developments, and > the > ports@ list will let you know about ports being developed and tested. The > latter is where the user community can really give back, by testing new > ports. I understand from a later post that you don't have time to read a > lot of mail. Consider subscribing to daily or weekly digests of these > lists, or, just browsing posts when you have time via one of the archive > websites. > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: File system speed issues
They call it newbies for a reason... I am used to linux automatically starting the network without asking, and I supposed that if the program expanded the path to the correct directory, it did it via the internet but, since the structure is always the same, I see now that's not the case. So, what should I do? Run first shell, dhclient em0 and then ./upgrade? Thanks... On Wed, May 15, 2013 at 8:34 PM, Peter Hessler wrote: > No Address Associated. > > A networking problem of some type. Are you getting an address via DHCP? > Are you overriding the dns server to a program running on that computer? > Is the dns server responding? > > > On 2013 May 15 (Wed) at 20:25:38 +0200 (+0200), Pau wrote: > :Hi, > : > :I do not know what I am doing wrong. > : > :1- I installed 5.3 > :2- I downloaded bsd.rd from the snapshot directory of amd64 > :3- I booted bsd.rd > :4- I chose "update" > : > :and I got the same problem. > : > :I took a picture. Please check by yourself. What is wrong? > : > :http://s12.postimg.org/xwlxj1nr1/20130515_201722.jpg > : > :Thanks! > : > :Pau > : > : > :On Tue, May 14, 2013 at 5:17 PM, Josh Grosse > wrote: > : > :> Pau gmail.com> writes: > :> > :> > I followed the advice and tried to upgrade from a recent bsd.rd > :> > When I booted (boot bsd.rd), I gave the url of the site from where I > got > :> it, and the upgrade program complained that it could not find the > required > :> packages on that site (etc53.tgz ...) > :> > I am sure that I followed the instructions correctly.. now please let > me > :> know what part of that sureness was wrong :) > :> > :> You need to be sure you are pointing the upgrade or install script to > the > :> right directory at your mirror. > :> > :> Typically, this is /pub/OpenBSD/snapshots// > :> > :> > In the meanwhile I am installing fedora on the machine... > :> > :> Does this mean you have abandoned OpenBSD? > :> > :> > Also, how do you keep track of what's been improved in current? Do you > :> follow the mailing list? I am in particular interested to find out > whether > :> displayport will soon be supported or not... > :> > :> The misc@ mailing list will keep you abreast of major developments, and > :> the > :> ports@ list will let you know about ports being developed and tested. > The > :> latter is where the user community can really give back, by testing new > :> ports. I understand from a later post that you don't have time to read > a > :> lot of mail. Consider subscribing to daily or weekly digests of these > :> lists, or, just browsing posts when you have time via one of the archive > :> websites. > :> > :> ___ > :> Openbsd-newbies mailing list > :> Openbsd-newbies@sfobug.theapt.org > :> http://mailman.theapt.org/listinfo/openbsd-newbies > :> > > :___ > :Openbsd-newbies mailing list > :Openbsd-newbies@sfobug.theapt.org > :http://mailman.theapt.org/listinfo/openbsd-newbies > > > -- > Q: How do you tell if an elephant has been making love in your > backyard? > A: If all your trashcan liners are missing ... > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: File system speed issues
I understand what happened. In the install process I never configure the network, because this is a laptop and, if I configure it, at every boot it tries to initiate what it did during the install, and it is not necessarily the same interface. So I started shell, dhclient em0 and everything went smooth, Now I am on current and I have good news: Displayport, once of the reasons I went back to linux, is working now on current!!! I will do some tests on encryption speed later. Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: File system speed issues
Hi, yet questions about current. 1- I have fetched bsd.rd and upgraded the system. I made sure that I pointed to the same URL where I got the bsd.rd from. Still, the upgrade program was complaining about SHA not being what bsd.rd was expecting. Is this normal? 2- Also, the fact that I cannot install some programs such as, e.g. ekiga, using pkg_add does because some libraries etc were missing... does it mean that I cannot use pkg_add to install binaries under current and I have to use the ports, instead? Or is this related to the SHA signature? 3- If I only modify files such as /etc/pkg.conf and /etc/rc.conf.local ... do I need to run sysmerge after an upgrade? Because I do not know where to start! Thanks! Pau On Thu, May 16, 2013 at 7:17 AM, Pau wrote: > I understand what happened. > > In the install process I never configure the network, because this is a > laptop and, if I configure it, at every boot it tries to initiate what it > did during the install, and it is not necessarily the same interface. > > So I started shell, dhclient em0 and everything went smooth, > > Now I am on current and I have good news: > > Displayport, once of the reasons I went back to linux, is working now on > current!!! > > I will do some tests on encryption speed later. > > Pau > > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
usb3?
Hi, will usb3 be supported at some point? I have googled a bit but could not find any relevant information. I got this: http://www.tedunangst.com/flak/post/USB-3-back-compat In any case, when I attach a usb drive to the usb3 port, tail -f /var/log/messages does not display any information. This is 5.3 GENERIC.MP#117 amd64 thanks Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Fwd: File system speed issues
Sorry, I sent this only to Stuart. -- Forwarded message -- From: Pau Date: Sat, May 25, 2013 at 4:49 PM Subject: Re: File system speed issues To: Stuart Henderson Hi, un update on 5.3 GENERIC.MP#118 amd64. It used to be this for the encrypted partition: pyrrha(p1)| time dd if=/dev/zero of=encrypted bs=1m count=1024 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 45.626 secs (23533481 bytes/sec) dd if=/dev/zero of=encrypted bs=1m count=1024 0.00s user 40.56s system 88% cpu 45.637 total Now it's $ time dd if=/dev/zero of=encrypted bs=1m count=1024 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 30.895 secs (34753430 bytes/sec) 0m30.90s real 0m0.00s user 0m29.76s system So 31 secs instead of ~46 It's an improvement! On the unencrypted partition, the speed remains the same: $ time dd if=/dev/zero of=nonencrypted bs=1m count=1024 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 4.832 secs (13080 bytes/sec) 0m4.84s real 0m0.00s user 0m0.93s system Cheers, Pau On Tue, May 14, 2013 at 12:18 PM, Stuart Henderson wrote: > On 2013-05-13, Pau wrote: > > For comparison, I asked a colleague who is using the same laptop model > > (thinkpad x220) > > Which CPU? If it's i5/i7 then moving to -current should improve things as > it uses the AESNI instructions on the CPU to speed up softraid crypto.. > > > and same hw to run the test on his, which is running ubuntu > > (argh!) and a non-encrypted filesystem. He got 0.5 seconds. I.e. ~ 10 > times > > faster than OpenBSD without encryption. > > > linux is by far the fastest (0.5 sec), followed by OpenBSD (4.2 sec) and, > > the last one, iOS (~13 sec !!! I wonder what are the advantages of an > > airbook... I thought they performed well) > > I suspect that this test on Linux may return from dd before committing > the data to disk, whereas I suspect the others finish writing before they > return. > > > Note that I am not asking this in misc, because I want to keep my skin > > attached to my body... :) > > It's usually possible to tell from reading a few words of a mail > on misc@ whether the sender is an idiot. (Actually, half the time you > can tell just by looking at the email address). If so, delete and > move on, then they will have just wasted their own time and a bit > of bandwidth. > > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: File system speed issues
Dear all, thanks Stuart a lot for your explanations. I am slowly converging to make the move back to OpenBSD. I (of course) still have some questions. But in general I would say I have got to understand it. I have also found this site: http://bsdly.blogspot.de/2012/07/keeping-your-openbsd-system-in-trim.html and I am doing this. Do you see any error or would you improve something? Thanks to all of you for your input! Pau 1- I check a mirror to see whether bsd.rd has changed (i.e. the timestamp is more recent than last time) 2- If it is, then I download the files to a directory such as ~/upgrade : ftp -ia ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/`uname -m`/{index.txt,*tgz,bsd*,INS*} 3- I get into that directory and sysmerge etcXX.tgz : # sysmerge -s etc53.tgz -x xetc53.tgz (this usually shows nothing, as I am *only* modifying /etc/pkg.config and /etc/rc.conf.local) 4- Then I copy bsd.rd to / # cp bsd.rd / 5- I reboot 6- At prompt, I choose bsd.rd 7- I run upgrade 8- When getting to Location of sets? (cd disk ftp http or 'done') [cd] I choose disk and give /mnt/home/pau/upgrade as path 9- I reboot 10- $ cd ~/upgrade # sysmerge -s etc53.tgz -x xetc53.tgz Is this step necessary ? If so, why, if I already did 3- ? 11- I update the packages: # pkg_add -vu On Fri, May 24, 2013 at 12:55 AM, Stuart Henderson wrote: > On 2013-05-16, Pau wrote: >> 1- I have fetched bsd.rd and upgraded the system. I made sure that I >> pointed to the same URL where I got the bsd.rd from. Still, the upgrade >> program was complaining about SHA not being what bsd.rd was expecting. Is >> this normal? > > It happens sometimes, though I expect this is probably clean now. > >> 2- Also, the fact that I cannot install some programs such as, e.g. ekiga, >> using pkg_add does because some libraries etc were missing... does it mean >> that I cannot use pkg_add to install binaries under current and I have to >> use the ports, instead? Or is this related to the SHA signature? > > If libraries used by your packages have been updated (either in base > or in ports), to avoid conflicts, you should "pkg_add -u" to make sure > everything is up-to-date before you install a new package. > > If libraries in base/X have only recently been updated, you may need to > wait a little while for new packages to be built (usually within a couple > of days for i386/amd64, other arch take longer). > >> 3- If I only modify files such as /etc/pkg.conf and /etc/rc.conf.local ... >> do I need to run sysmerge after an upgrade? Because I do not know where to >> start! > > Yes. sysmerge updates files from etc*.tgz to the latest versions. Some of > these are files which you might edit; many are not. > > If a file has changed which you haven't modified yourself, there will > be nothing to do in sysmerge, it will just update it automatically. > > If a file has been changed which you have modified, there will be an > interactive process to merge the changes. It's quite straightforward, > for each block of changes it shows old and new portions of files and > you either select (l)eft, (r)ight, or there are options to allow manual > editing. This uses sdiff(1) so "man sdiff" will give more help. A good > useful hint for sysmerge is to make sure your terminal window is as wide > as possible (I normally just make it the width of my monitor) - do this > *before* starting sysmerge. > > You can point it directly at a mirror e.g. > > # sysmerge -s http://$SOME_MIRROR/pub/OpenBSD/snapshots/$ARCH/etc53.tgz \ > -x http://$SOME_MIRROR/pub/OpenBSD/snapshots/$ARCH/xetc53.tgz > > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
vpnc
Hi, I am trying to set up vpnc, and am running into a problem My configuration file reads like: IPSec gateway XXX.XX.XXX.XXX IPSec ID Name_Of_The_ID IPSec secret A_PAssword Xauth username pau Then, as root, I run sysctl net.inet.esp.enable=0 because the install said: In order for vpnc to actually get any received IPsec packet, you have to disable ESP in your kernel and net.inet.esp.udpencap: 1 -> 0 In the man page I came across this: OBLIGATORY WARNING: the most used configuration (XAUTH authentication with pre-shared keys and password authentication) is insecure by design, be aware of this fact when you use vpnc to exchange sensitive data like passwords! What does this mean? I am using vpnc to e.g. access my mail, login to machines etc. Should I not be doing this? If this is the case, how could I improve this situation? Thanks, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: File system speed issues
While I wait for an answer to the last post on this thread (subject), I would like to share one little experiment I have been doing. It turns out that copying a file of some 700M from an ext2 drive to an OpenBSD laptop takes about ~3 minutes or so, unencrypted. The same on fedora takes 40 seconds from the external drive to an encrypted drive. But if I format the drive with OpenBSD to a BSD FS, then copying the same file from the external drive to an encrypted partition takes 27 seconds! YES!! Now, this is it... I will now be moving to OpenBSD! I still would appreciate some comments on the questions of my last post, which I also reproduced here for my own convenience: http://members.aei.mpg.de/amaro-seoane/openbsd-current/ Why do I need the point 7, if I do point 2? THANKS! Pau On Sat, May 25, 2013 at 6:34 PM, Pau wrote: > Dear all, > > thanks Stuart a lot for your explanations. I am slowly converging to > make the move back to OpenBSD. > > I (of course) still have some questions. But in general I would say I > have got to understand it. > > I have also found this site: > > http://bsdly.blogspot.de/2012/07/keeping-your-openbsd-system-in-trim.html > > and I am doing this. Do you see any error or would you improve something? > > Thanks to all of you for your input! > > Pau > > 1- I check a mirror to see whether bsd.rd has changed (i.e. the > timestamp is more recent than last time) > 2- If it is, then I download the files to a directory such as ~/upgrade : > ftp -ia ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/`uname > -m`/{index.txt,*tgz,bsd*,INS*} > 3- I get into that directory and sysmerge etcXX.tgz : > # sysmerge -s etc53.tgz -x xetc53.tgz > (this usually shows nothing, as I am *only* modifying /etc/pkg.config > and /etc/rc.conf.local) > 4- Then I copy bsd.rd to / > # cp bsd.rd / > 5- I reboot > 6- At prompt, I choose bsd.rd > 7- I run upgrade > 8- When getting to > Location of sets? (cd disk ftp http or 'done') [cd] > I choose disk and give /mnt/home/pau/upgrade as path > 9- I reboot > 10- $ cd ~/upgrade > # sysmerge -s etc53.tgz -x xetc53.tgz >Is this step necessary ? If so, why, if I already did 3- ? > 11- I update the packages: > # pkg_add -vu > > > > > > > > On Fri, May 24, 2013 at 12:55 AM, Stuart Henderson > wrote: >> On 2013-05-16, Pau wrote: >>> 1- I have fetched bsd.rd and upgraded the system. I made sure that I >>> pointed to the same URL where I got the bsd.rd from. Still, the upgrade >>> program was complaining about SHA not being what bsd.rd was expecting. Is >>> this normal? >> >> It happens sometimes, though I expect this is probably clean now. >> >>> 2- Also, the fact that I cannot install some programs such as, e.g. ekiga, >>> using pkg_add does because some libraries etc were missing... does it mean >>> that I cannot use pkg_add to install binaries under current and I have to >>> use the ports, instead? Or is this related to the SHA signature? >> >> If libraries used by your packages have been updated (either in base >> or in ports), to avoid conflicts, you should "pkg_add -u" to make sure >> everything is up-to-date before you install a new package. >> >> If libraries in base/X have only recently been updated, you may need to >> wait a little while for new packages to be built (usually within a couple >> of days for i386/amd64, other arch take longer). >> >>> 3- If I only modify files such as /etc/pkg.conf and /etc/rc.conf.local ... >>> do I need to run sysmerge after an upgrade? Because I do not know where to >>> start! >> >> Yes. sysmerge updates files from etc*.tgz to the latest versions. Some of >> these are files which you might edit; many are not. >> >> If a file has changed which you haven't modified yourself, there will >> be nothing to do in sysmerge, it will just update it automatically. >> >> If a file has been changed which you have modified, there will be an >> interactive process to merge the changes. It's quite straightforward, >> for each block of changes it shows old and new portions of files and >> you either select (l)eft, (r)ight, or there are options to allow manual >> editing. This uses sdiff(1) so "man sdiff" will give more help. A good >> useful hint for sysmerge is to make sure your terminal window is as wide >> as possible (I normally just make it the width of my monitor) - do this >> *before* starting sysmerge. >> >> You can point it directly at a mirror e.g. >> >> # sysmerge -s http://$SOME_MIRROR/pub/OpenBSD/snapshots/$ARCH/etc53.tgz \ >> -x http://$SOME_MIRROR/pub/OpenBSD/snapshots/$ARCH/xetc53.tgz >> >> >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: secure suspend on laptop, webcam and youtube (ahem) on thinkpad
Hi again, I am trying to understand what the script does (see below) to lock X immediately after suspending. Add an /etc/apm/suspend script (make sure it is executable) with the following: #!/bin/sh pkill -USR1 xidle This script will run as root, when the system suspends. Moreover, in the man page of pkill -USR1 is not listed. thanks! Pau On Wed, Aug 1, 2012 at 11:07 PM, Stuart Henderson wrote: >> 1) How can I use suspend in a secure way? I am using X, of course, and >> I carry the laptop with me all the time to work in my rucksack. I >> usually suspend it to resume work later with all windows open etc. But >> I would like to know whether there is a way to tell suspend it should >> lock the screen after resuming. Is there such a thing? > > I'm using the same method phessler suggested. > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: secure suspend on laptop, webcam and youtube (ahem) on thinkpad
Hi Peter, indeed, this helps to understand the syntax! Thanks... But still, I get no xlock on suspending. This is GENERIC.MP#121 amd64 And pyrrha(p1)| ls -l /etc/apm/suspend -rwxr--r-- 1 root wheel 28 Jun 2 21:03 /etc/apm/suspend pyrrha(p1)| cat /etc/apm/suspend #!/bin/sh pkill -USR1 xidle What am I doing wrong? Pau > pkill does take -USR1 as an option, but it is slightly stealthily mentioned. > > > -signal > A non-negative decimal number or symbolic signal name specifying > the signal to be sent instead of the default TERM. This option > is valid only when given as the first argument to pkill. > > USR1 is a signal. If you read the man page sigaction(2), it has a list > of possible signals. In this case, SIGUSR1 is described as > "user defined signal 1", which some programs use for specific events. > > xidle does have support for SIGUSR1: > > xidle uses the XScreenSaver(3) extension to receive inactivity events > when a timeout is specified, running a specific program after the elapsed > time. xidle will also run the program if it is sent a SIGUSR1 signal, or > if the pointer sits in a corner of the screen for an amount of time. > Signal and corner locking are always enabled, whether -timeout is > specified or not. > > > And so when xidle receives the USR1 signal, it immediately triggers the > screensaver program. > > So, when apmd receives the "suspend event" it will run the > /etc/apm/suspend script. This script sends the SIGUSR1 signal to the > xidle program. xidle receives the signal, and since it has a special > behaviour for SIGUSR1, it then runs the specified screensaver program > xlock. ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: secure suspend on laptop, webcam and youtube (ahem) on thinkpad
Thanks! Was kind of obvious (but for the cuddle bits ;) ) but now it's working perfectly fine! I am *very* thankful to all of you for helping me out. I am putting this information together, so that any lost user can find it, google allowing. Thanks, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
softraid0 on external drive -- invalid medata format
Hi, I am trying to do this on a USB drive: http://ryanak.ca/planet-ubuntu/2013/03/26/Setting-up-full-disk-encryption-in-OpenBSD-5.3.html which I do to backup my data. However, I get the error message "invalid medata format": > p g OpenBSD area: 64-117258435; size: 55.9G; free: 55.9G #size offset fstype [fsize bsize cpg] c:55.9G0 unused > a partition: [a] offset: [64] size: [117258371] FS type: [4.2BSD] Rounding size to bsize (32 sectors): 117258368 > w > q No label changes. pyrrha# bioctl -c C -l /dev/sd2a softraid0 softraid0: invalid metadata format What am I doing wrong? Also, I had this general question... how does this encryption compare with doing something like this: dd if=/dev/urandom of=/mnt/ExternalDrive.fs bs=1m count=1024_times_your_GB_here vnconfig -k vnd0 /mnt/ExternalDrive.fs newfs /dev/rvnd0a I mean... what is "more secure" and why? Thanks! ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
where is / equivalent of formail?
Hi, yet another problem in my transition to OpenBSD... I have been using mutt with fetchmail for decades now (at least for more than one), and my fetchmailrc configuration on linux has always read: poll my.mailserv.server.com protocol imap username "MySelf" password "MyPasswd" ssl mda "/usr/bin/env formail -s /usr/bin/env procmail -m ~/fitx_confg/procmail/procmailrc" set logfile "/home/pau/fitx_confg/fetchmail/fetchmail.log" Now, when running fetchmail to ... fetch the mails :) I get the complaint that env: formail: No such file or directory fetchmail: Error writing to MDA: Broken pipe What is going on? It looks as if formail did not exist... I looked in the ports, and formail does not appear as a single piece of software. I mean, could it be that it is included in a "macro" package or so? Thanks ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: where is / equivalent of formail?
Thanks, Mike... embarrassing... In the future, how can I find out this kind of things? I mean, where a specific program can be found? I tried looking into index.txt and also openports.se but that did not help in this case... thanks again On Thu, Jun 13, 2013 at 10:05 PM, Mike Erdely wrote: > formail is part of the procmail package. > > > On Thu, Jun 13, 2013 at 4:01 PM, Pau wrote: >> >> Hi, >> >> yet another problem in my transition to OpenBSD... I have been using >> mutt with fetchmail for decades now (at least for more than one), and >> my fetchmailrc configuration on linux has always read: >> >> poll my.mailserv.server.com >> protocol imap >> username "MySelf" >> password "MyPasswd" >> ssl >> mda "/usr/bin/env formail -s /usr/bin/env procmail -m >> ~/fitx_confg/procmail/procmailrc" >> set logfile "/home/pau/fitx_confg/fetchmail/fetchmail.log" >> >> Now, when running fetchmail to ... fetch the mails :) I get the complaint >> that >> >> env: formail: No such file or directory >> fetchmail: Error writing to MDA: Broken pipe >> >> What is going on? It looks as if formail did not exist... I looked in >> the ports, and formail does not appear as a single piece of software. >> I mean, could it be that it is included in a "macro" package or so? >> >> Thanks >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies > > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
firefox crashes upon relatively light load
Hi, this is 5.3 GENERIC.MP#12 amd64 with 8G RAM, on a thinpad x220. I have continuous firefox crashes. As soon as I have more than 2-3 tabs open, it looks as if firefox consumed a lot of memory, which leads to a freeze in firefox and then a crash. I have blocking pop up enabled and only an addon, adblock. In spite of the lack of ads and popping up windows, the cpu goes up to ~77% and that makes firefox crash. I have observed a similar behaviour with seamoneky and midori, which might be normal, since they are based on gecko. The question is whether this is normal or not, and what to do. I remember reading something related to crashes on firefox and how to avoid that by creating another profile after I installed firefox, but I do not know where to find that information anymore. firefox3.6 seems to behave better, but I am wondering about security. It's a rather old version (current one is 21). Why is 3.6 kept and are any security holes been taken care of? Thanks ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: firefox crashes upon relatively light load
Hi, thanks for the help. I however changed my class to staff and still am running into the same snag. I did not compile firefox, I installed the binary. But I am having a similar problem with midori, and seamoneky. Am I the only one seeing this? Pau pyrrha(p0)| user info pau login pau passwd * uid 1000 groups pau wheel change NEVER class staff<--- dir /home/pau shell /usr/local/bin/zsh expire NEVER ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: firefox crashes upon relatively light load
Thanks, Peter. Yes, I knew that and I rebooted... ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: firefox crashes upon relatively light load
Hi Josh, indeed, it is unclear. I had a couple of crashes even after rebooting, but today it seems to be working fine. I mean, at least I do not get crashes, although it feels *very* slow and heavy. For an i7 machine with 8G that's strange, isn't it? Pau On Wed, Jun 19, 2013 at 1:41 PM, Josh Grosse wrote: > Pau wrote: >> >> Thanks, Peter. Yes, I knew that and I rebooted... >> >> >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies > > > Does that mean your problem is now resolved, our does it mean that you still > have the problem? > > Your message is unclear. > -- > Sent from my phone. Please excuse any idiotic automated word choices. It > wasn't me. Honest. ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
wpakey between 8 and 63
Hi, I am trying to connect with iwn0 to a wpa2 psk net with a password of 4 digits. It works on my mobile, from which I am writing this. ifconfig complains that the passphrase should be between 8 and 63 characters. I tried to use 0x just in case of, but it led to the same problem. ifconfig iwn0 nwid lalala-lalala wpakey 01234 dhclient iwn0 Am I doing something wrong? thanks ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: wpakey between 8 and 63
Hi, thanks for the quick reply. It turns out it was neither nor, but a wrong information from the wife who asked for the password at the reception of this place ... ahem... sorry about that. Now everything is in place, but I got to know a little bit more about this. Thanks a lot! Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
samsung s3
Hi, I am going to risk this question here, since it's newbies... I have been googling around to find a way but found nothing... Is there a way to mount the s3 galaxy on -current? When I attach it I see in /var/log/messages that it's "seen"... but... how to mount it, if at all possible? Thanks! Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: samsung s3
oh, really? that's great! last time I checked I did not find it! go-mtpfs is the best tool... although developed by a google guy... I hope it does not contain CIA-ware ;) On Friday, June 28, 2013, Stuart Henderson wrote: > On 2013-06-28, Stuart Henderson wrote: >> On 2013-06-22, Bridger Dyson-Smith wrote: >>> --===5954238867414403350== >>> Content-Type: multipart/alternative; boundary=047d7b33ca7eb1b2c804dfc0272d >>> >>> --047d7b33ca7eb1b2c804dfc0272d >>> Content-Type: text/plain; charset=ISO-8859-1 >>> >>> Hi Pau, >>> >>> On Sat, Jun 22, 2013 at 8:07 AM, Pau wrote: >>> >>>> Hi, >>>> >>>> I am going to risk this question here, since it's newbies... >>>> >>>> I have been googling around to find a way but found nothing... Is >>>> there a way to mount the s3 galaxy on -current? When I attach it I see >>>> in /var/log/messages that it's "seen"... but... how to mount it, if at >>>> all possible? >>>> >>>> I don't have a virtual machine to test this, but you may have some luck >>> using MTPfs. AFAIK, the Android 4.* phones aren't using the USB mass >>> storage anymore. >>> >>> I could be way off base here re MTPfs, so please explore this further. I >>> would think that there's a library/package in OpenBSD for it, but I don't >>> know the details. I hope this is helpful. >> >> libmtp is available, which provides userland utilities that can talk >> to the S3 and exchange files, there were some big delays when I tried it >> but it did eventually work. >> >> MTPfs isn't available in packages yet, but this might be an option now >> that we have FUSE in OpenBSD (although it was only added recently and is >> not yet enabled by default). > > Oh, seems there is also go-mtpfs, which looks better... > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies > ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: samsung s3
where did you find it? I cannot find in ports find . -name "go-mtpfs" yields nothing pkglocate mtpfs neither >>> MTPfs isn't available in packages yet, but this might be an option now >>> that we have FUSE in OpenBSD (although it was only added recently and is >>> not yet enabled by default). >> >> Oh, seems there is also go-mtpfs, which looks better... ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: samsung s3
Hi Stuart, I tried to give go-mtpfs a shot and am having troubles... https://github.com/hanwen/go-mtpfs/ I did mkdir /tmp/go export GOPATH=/tmp/go go get github.com/hanwen/go-mtpfs and this yields # github.com/hanwen/go-fuse/raw /tmp/go/src/github.com/hanwen/go-fuse/raw/print.go:108: undefined: SetAttrIn /tmp/go/src/github.com/hanwen/go-fuse/raw/types.go:324: undefined: Attr /tmp/go/src/github.com/hanwen/go-fuse/raw/types.go:331: undefined: Attr # github.com/hanwen/go-mtpfs/usb usb.go:18:21: error: libusb.h: No such file or directory So I changed go-mtpfs/usb/usb.go to #cgo CFLAGS: -I/usr/local/include/libusb-1.0 But it is still complaining about # github.com/hanwen/go-mtpfs/usb /usr/bin/ld: cannot find -lusb-1.0 I know nothing about "go" ... has somebody tried to compile it? Thanks Pau >>> >>> Oh, seems there is also go-mtpfs, which looks better... ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
printing with CUPS
Hi, I installed cups, run as root cupsenable, typed in the server name in /etc/cups/client.conf and ... I do not see any printer. This is a research institute with many (network - ethernet) printers online all the time. Usually adding the server name to that file as root suffices on linux and one gets access immediately to all printers. Do I need to modify something else or what am I missing? thanks, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: printing with CUPS
I am not root on the printer server, and on linux machines following the instructions I wrote before immediately grant you access to the printers... if CUPS is Common Unix Printing System, why is it not working the way I am used to? And remember: this is newbies ;) Thanks >> >> Do I need to modify something else or what am I missing? > > cat /usr/local/share/doc/pkg-readmes/cups-* > > > -- > Antoine ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
eduroam: iwn0: Failed to initiate AP scan
Dear all, I am trying to configure my iwn0 to connect to the eduroam network. I have read in detail this http://undeadly.org/cgi?action=article&sid=20130128142215 and I am trying to connect by first running ifconfig iwn0 nwid eduroam bssid 02:20:a6:c3:51:61 wpa wpaakms 802.1x up wpa_supplicant -i iwn0 -c ./eduroam.conf The bssid belongs to the local eduroam network. The file eduroam.conf contains: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel network={ ssid="eduroam" scan_ssid=1 key_mgmt=WPA-EAP eap=PEAP identity="MYUSERNAME" anonymous_identity="anonym...@mydomain.bla" password="MYPASSWD" phase1="peaplabel=0" phase2="auth=MSCHAPV2" } I have followed the example that is given in the man page wpa_supplicant.conf where I found MSCHAPV2, but unlike in the example, I use TTLS for eap, as this is the information that I have on my android phone, which is connecting fine. I have tried to use the same configuration, of course. While running ifconfig iwn0 nwid eduroam bssid 02:20:a6:c3:51:61 wpa wpaakms 802.1x up seems to work fine (at least it does not complain and the wlan light stops to blink), when running wpa_supplicant -i iwn0 -c ./eduroam.conf I get the error message that ap could not scan: "iwn0: Failed to initiate AP scan" It seems as if the bssid of the local eduroam network was wrong, but I checked it a couple of times. On a linux laptop, the configuration that works out has this information in the fields: Security: WPA & WPA2 Enterprise Authentication: Protected EAP (PEAP) Anonymous identity: anonym...@mydomain.bla CA certificate: none PEAP version: Automatic Inner authentication: MSCHAPv2 Username: MYUSERNAME Password: MYPASSWD Where do you think that the "iwn0: Failed to initiate AP scan" thing is coming? thanks! Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: eduroam: iwn0: Failed to initiate AP scan
Hi Stuart, thanks, but that does not seem to be the problem. It was already configured like that: pyrrha(p5)| cat /etc/wpa_supplicant.conf # $OpenBSD: wpa_supplicant.conf,v 1.2 2013/01/28 11:03:16 sthen Exp $ # Sample wpa_supplicant configuration file for wired IEEE 802.1x # port authentication. See wpa_supplicant.conf(5). ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel ap_scan=0 # wired network: #network={ # key_mgmt=IEEE8021X # eap=MD5 # identity="user" # password="password" # eapol_flags=0 #} # wireless network: #network={ #ssid="humppa" #key_mgmt=WPA-EAP #eap=TTLS PEAP #identity="user" #password="password" #} > From the README, "Access-point scanning is not currently supported > by the OpenBSD code in wpa_supplicant, so ap_scan=0 should be set in > ${SYSCONFDIR}/wpa_supplicant.conf". ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
why is dmesg/uname/bsd.rd showing 6.2 if running -current?
Hi: That's my question. I've been running -current for the last 4 months or so and I have noticed that $ uname -a shows OpenBSD 6.2 GENERIC.MP#120 amd64 $ dmesg | grep OpenBSD shows OpenBSD 6.2 (GENERIC.MP) #117: Thu Sep 28 11:57:37 MDT 2017 OpenBSD 6.2 (RAMDISK_CD) #116: Thu Sep 28 12:02:00 MDT 2017 OpenBSD 6.2 (GENERIC.MP) #117: Thu Sep 28 11:57:37 MDT 2017 OpenBSD 6.2 (RAMDISK_CD) #117: Fri Sep 29 10:51:41 MDT 2017 OpenBSD 6.2 (GENERIC.MP) #118: Fri Sep 29 10:47:18 MDT 2017 OpenBSD 6.2 (RAMDISK_CD) #119: Sat Sep 30 03:06:49 MDT 2017 OpenBSD 6.2 (GENERIC.MP) #120: Sat Sep 30 03:02:26 MDT 2017 Also, when I update the packages, if I run $ pkg_add -Iuv pkg_add does not complain, and I would expect it to complain unless I added a -D snap flag to it When I boot from > boot bsd.rd the URL path suggested is pub/OpenBSD/6.2/amd64 instead of pub/OpenBSD/snapshots/amd64 It looks as if the system "thinks" I am running 6.2, while I am running -current. What is the reason for this? thanks, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: firefox crashes upon relatively light load
Hi Dave, ulimit seems to be a shell function and, when I run it I get the message "unlimited". The option -v is not regognized and apropos does not show anything... Any hint? Thanks | >>> Dave J. Vanecek (mar...@pennswoods.net): | On Tue, Jun 18, 2013 at 03:26:09PM +0200, Pau wrote: | > Hi, | > | > this is 5.3 GENERIC.MP#12 amd64 with 8G RAM, on a thinpad x220. | > | > I have continuous firefox crashes. | > | > As soon as I have more than 2-3 tabs open, it looks as if firefox | > consumed a lot of memory, which leads to a freeze in firefox and then | > a crash. I have blocking pop up enabled and only an addon, adblock. In | > spite of the lack of ads and popping up windows, the cpu goes up to | > ~77% and that makes firefox crash. | > | > I have observed a similar behaviour with seamoneky and midori, which | > might be normal, since they are based on gecko. | > | > The question is whether this is normal or not, and what to do. I | > remember reading something related to crashes on firefox and how to | > avoid that by creating another profile after I installed firefox, but | > I do not know where to find that information anymore. | > | > firefox3.6 seems to behave better, but I am wondering about security. | > It's a rather old version (current one is 21). Why is 3.6 kept and are | > any security holes been taken care of? | | It's memory usage... you're not exhausting your machine's memory, | just the user's allocation. Try jacking it up with ulimit. | I don't have an Open machine powered on right now (Shock! Awe!) | but I think you want to do something like | | ulimit -v 0 | | That assumes that 0 = "no limit". Then watch firefox with ps or top. | It's such a *pig*. | | There is probably somewhere in /etc that you need to go to set this | up, I fergit now. | | Dave | | ___ | Openbsd-newbies mailing list | Openbsd-newbies@sfobug.theapt.org | http://mailman.theapt.org/listinfo/openbsd-newbies -- MPI Grav. Physics (Albert Einstein Inst.) * +49-331-567-{tel:7306,fax:7298} Am Muehlenberg 1, D-14476 Potsdam * http://members.aei.mpg.de/amaro-seoane ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: firefox crashes upon relatively light load
Hi, how could I change my class? If it's not possible, is there a way to modify /etc/rc.conf.local instead of /etc/login.conf? I would like to touch /etc as less as possible... and what resources should I modify? thanks | >>> Josh Grosse (j...@jggimi.homeip.net): | Original Woodchuck pennswoods.net> writes: | | > There is probably somewhere in /etc that you need to go to set this | > up, I fergit now. | | /etc/login.conf to manage resource limits by class. | | In general, because of applications like Firefox, workstation users should | be assigned to the "staff" class, rather than the "default" class. | | | | | ___ | Openbsd-newbies mailing list | Openbsd-newbies@sfobug.theapt.org | http://mailman.theapt.org/listinfo/openbsd-newbies -- MPI Grav. Physics (Albert Einstein Inst.) * +49-331-567-{tel:7306,fax:7298} Am Muehlenberg 1, D-14476 Potsdam * http://members.aei.mpg.de/amaro-seoane ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
home encrypted and upgrading OS
Dear all: I prefer to use stable releases of OpenBSD and use a /home encrypted and I was wondering whether it is possible to keep that partition from release to release. I mean, I would like to avoid the work of encrypting a huge partition every time that I update the OS. I have seen this web page: http://eradman.com/posts/openbsd-workstation.html and I was wondering whether I could follow this to keep a separate partition. If this can be done, what would be the steps when I update to 6.0? I would appreciate a dummy, step-by-step guide assuming that I am 5 years old. Another question I have is how to bind a key to xlock + zzz, so that I can lock the screen before suspending, or how to force xlock to be run after resuming. The indications give in that page are not working for me. thanks, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: home encrypted and upgrading OS
Hello: thanks for the replies. I tried creating a script in /etc # cat /etc/apm/suspend #!/bin/sh pkill -USR1 xidle and then I added this to my .xsession $ cat .xsession xidle & Still, when resuming, my session is exposed. This is my .xinitrc: xmodmap -e "keycode 22 = BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace" xset -b exec startxfce4 #exec cwm What am I doing wrong? thanks, Pau 2016-04-09 18:37 GMT+02:00 Marcus MERIGHI : > Hello Pau, > > pau.amaro.seo...@gmail.com (Pau Amaro-Seoane), 2016.04.09 (Sat) 12:01 (CEST): >> Dear all: >> >> I prefer to use stable releases of OpenBSD and use a /home encrypted >> and I was wondering whether it is possible to keep that partition from >> release to release. I mean, I would like to avoid the work of >> encrypting a huge partition every time that I update the OS. > > If you use bsd.rd (install kernel downloaded and booted) and select > "Upgrade" then your /home won't be newfs(8)ed. > > I have (on my single user notebook) /home unencrypted, my users home dir > encrypted but just 1GB and a user/data mount with the big one. > > This way you get quick access to your home dir when fsck(8) has to be > run. > > How do you unlock your encrypted /home before log in? > How do you fsck your encrypted /home before log in? > How do you mount your encrypted /home before log in? > >> I have seen this web page: >> http://.com/posts/openbsd-workstation.html >> and I was wondering whether I could follow this to keep a separate partition. >> >> If this can be done, what would be the steps when I update to 6.0? I >> would appreciate a dummy, step-by-step guide assuming that I am 5 >> years old. > > See above. Use your OpenBSD installation to download bsd.rd of the > version you want. Move it to /bsd.rd. Reboot, enter "boot bsd.rd" at the > boot prompt. Follow the instructions. Select "Upgrade". > >> Another question I have is how to bind a key to xlock + zzz, so that I > > Which window manager? Stock fvwm? > >> can lock the screen before suspending, or how to force xlock to be run >> after resuming. The indications give in that page are not working for >> me. > > apmd(8) can run scripts on wakeup/resume/standby/... > But what you might really want is -startCmd of xlock(1). > > What about your encrypted partition when suspending? > > Bye, Marcus > >> !DSPAM:5709220f224631214552904! ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: home encrypted and upgrading OS
you are right... sorry I am starting X with xdm to avoid leaving a terminal open from which I run startx Then, in my .xsession, I have xmodmap -e "keycode 22 = BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace" xset -b pkill xidle xidle -delay 5 -sw -program "/usr/X11R6/bin/xlock -mode blank" -timeout 90 & exec startxfce4 # pgrep xidle 2834 Is running, but still no locking after resuming... Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org 2016-04-10 11:06 GMT+02:00 Marcus MERIGHI : > pau.amaro.seo...@gmail.com (Pau Amaro-Seoane), 2016.04.09 (Sat) 22:46 (CEST): >> Hello: >> >> thanks for the replies. >> >> I tried creating a script in /etc >> >> # cat /etc/apm/suspend >> #!/bin/sh > > I'd recommend "#!/bin/sh -e" for shebang; this way the shell (/bin/sh) > stops when an error occurs. > >> pkill -USR1 xidle > > This will only work if xidle(1) is running; does it run? > (run "pgrep xidle") > >> and then I added this to my .xsession >> >> $ cat .xsession >> xidle & >> >> Still, when resuming, my session is exposed. >> >> This is my .xinitrc: >> >> xmodmap -e "keycode 22 = BackSpace BackSpace BackSpace BackSpace >> BackSpace BackSpace" >> xset -b >> exec startxfce4 >> #exec cwm >> >> What am I doing wrong? > > No idea so far; are you starting X via startx(1) or via xdm(1)? You are > mixing .xsession (for xdm(1)) and .xinitrc (for startx(1)). > > Bye, Marcus > >> 2016-04-09 18:37 GMT+02:00 Marcus MERIGHI : >> > Hello Pau, >> > >> > pau.amaro.seo...@gmail.com (Pau Amaro-Seoane), 2016.04.09 (Sat) 12:01 >> > (CEST): >> >> Dear all: >> >> >> >> I prefer to use stable releases of OpenBSD and use a /home encrypted >> >> and I was wondering whether it is possible to keep that partition from >> >> release to release. I mean, I would like to avoid the work of >> >> encrypting a huge partition every time that I update the OS. >> > >> > If you use bsd.rd (install kernel downloaded and booted) and select >> > "Upgrade" then your /home won't be newfs(8)ed. >> > >> > I have (on my single user notebook) /home unencrypted, my users home dir >> > encrypted but just 1GB and a user/data mount with the big one. >> > >> > This way you get quick access to your home dir when fsck(8) has to be >> > run. >> > >> > How do you unlock your encrypted /home before log in? >> > How do you fsck your encrypted /home before log in? >> > How do you mount your encrypted /home before log in? >> > >> >> I have seen this web page: >> >> http://.com/posts/openbsd-workstation.html >> >> and I was wondering whether I could follow this to keep a separate >> >> partition. >> >> >> >> If this can be done, what would be the steps when I update to 6.0? I >> >> would appreciate a dummy, step-by-step guide assuming that I am 5 >> >> years old. >> > >> > See above. Use your OpenBSD installation to download bsd.rd of the >> > version you want. Move it to /bsd.rd. Reboot, enter "boot bsd.rd" at the >> > boot prompt. Follow the instructions. Select "Upgrade". >> > >> >> Another question I have is how to bind a key to xlock + zzz, so that I >> > >> > Which window manager? Stock fvwm? >> > >> >> can lock the screen before suspending, or how to force xlock to be run >> >> after resuming. The indications give in that page are not working for >> >> me. >> > >> > apmd(8) can run scripts on wakeup/resume/standby/... >> > But what you might really want is -startCmd of xlock(1). >> > >> > What about your encrypted partition when suspending? >> > >> > Bye, Marcus >> > >> >> >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies >> >> !DSPAM:57096bde169436131517175! >> > > -- > https://www.tor.at/~mcmer/.signature > > Ich untersage hiermit a) die Verwendung meiner personenbezogenen Daten > zu anderen Zwecken als den in diesem Vorgang gegenstaendlichen sowie b) > die Weitergabe meiner personenbezogenen Daten. Die Nichtbefolgung > dieser Anweisung ist in Oesterreich gesetzeswidrig. Siehe hiezu das > Datenschutzgesetz (DSG) 2000 idgF., zu finden u.a. unter: > http://ris.bka.gv.at/GeltendeFassung.wxe?Abfrage=Bundesnormen&Gesetzesnummer=10001597 ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: home encrypted and upgrading OS
$ ls -lrt /etc/apm/suspend -rwxr-xr-x 1 root wheel 49 Apr 10 00:47 /etc/apm/suspend Still not locking... Stuart, full disk encryption would not be a problem to update on a new release? looks tempting... 2016-04-11 9:15 GMT+02:00 Peter Hessler : > Is /etc/apm/suspend executable? apmd expects it to be an executable, so > you may need to chmod +x the file. > > On 2016 Apr 10 (Sun) at 17:02:03 +0200 (+0200), Pau Amaro-Seoane wrote: > :you are right... sorry > : > :I am starting X with xdm to avoid leaving a terminal open from which I > :run startx > : > :Then, in my .xsession, I have > : > :xmodmap -e "keycode 22 = BackSpace BackSpace BackSpace BackSpace > :BackSpace BackSpace" > :xset -b > :pkill xidle > :xidle -delay 5 -sw -program "/usr/X11R6/bin/xlock -mode blank" -timeout 90 & > :exec startxfce4 > : > :# pgrep xidle > :2834 > : > :Is running, but still no locking after resuming... > :Pau > :--- > :Group Leader of Theoretical Astrophysics > :Max Planck Institute Gravitational Physics > :Albert Einstein Institute http://astro-gr.org > : > : > :2016-04-10 11:06 GMT+02:00 Marcus MERIGHI : > :> pau.amaro.seo...@gmail.com (Pau Amaro-Seoane), 2016.04.09 (Sat) 22:46 > (CEST): > :>> Hello: > :>> > :>> thanks for the replies. > :>> > :>> I tried creating a script in /etc > :>> > :>> # cat /etc/apm/suspend > :>> #!/bin/sh > :> > :> I'd recommend "#!/bin/sh -e" for shebang; this way the shell (/bin/sh) > :> stops when an error occurs. > :> > :>> pkill -USR1 xidle > :> > :> This will only work if xidle(1) is running; does it run? > :> (run "pgrep xidle") > :> > :>> and then I added this to my .xsession > :>> > :>> $ cat .xsession > :>> xidle & > :>> > :>> Still, when resuming, my session is exposed. > :>> > :>> This is my .xinitrc: > :>> > :>> xmodmap -e "keycode 22 = BackSpace BackSpace BackSpace BackSpace > :>> BackSpace BackSpace" > :>> xset -b > :>> exec startxfce4 > :>> #exec cwm > :>> > :>> What am I doing wrong? > :> > :> No idea so far; are you starting X via startx(1) or via xdm(1)? You are > :> mixing .xsession (for xdm(1)) and .xinitrc (for startx(1)). > :> > :> Bye, Marcus > :> > :>> 2016-04-09 18:37 GMT+02:00 Marcus MERIGHI : > :>> > Hello Pau, > :>> > > :>> > pau.amaro.seo...@gmail.com (Pau Amaro-Seoane), 2016.04.09 (Sat) 12:01 > (CEST): > :>> >> Dear all: > :>> >> > :>> >> I prefer to use stable releases of OpenBSD and use a /home encrypted > :>> >> and I was wondering whether it is possible to keep that partition from > :>> >> release to release. I mean, I would like to avoid the work of > :>> >> encrypting a huge partition every time that I update the OS. > :>> > > :>> > If you use bsd.rd (install kernel downloaded and booted) and select > :>> > "Upgrade" then your /home won't be newfs(8)ed. > :>> > > :>> > I have (on my single user notebook) /home unencrypted, my users home dir > :>> > encrypted but just 1GB and a user/data mount with the big one. > :>> > > :>> > This way you get quick access to your home dir when fsck(8) has to be > :>> > run. > :>> > > :>> > How do you unlock your encrypted /home before log in? > :>> > How do you fsck your encrypted /home before log in? > :>> > How do you mount your encrypted /home before log in? > :>> > > :>> >> I have seen this web page: > :>> >> http://.com/posts/openbsd-workstation.html > :>> >> and I was wondering whether I could follow this to keep a separate > partition. > :>> >> > :>> >> If this can be done, what would be the steps when I update to 6.0? I > :>> >> would appreciate a dummy, step-by-step guide assuming that I am 5 > :>> >> years old. > :>> > > :>> > See above. Use your OpenBSD installation to download bsd.rd of the > :>> > version you want. Move it to /bsd.rd. Reboot, enter "boot bsd.rd" at the > :>> > boot prompt. Follow the instructions. Select "Upgrade". > :>> > > :>> >> Another question I have is how to bind a key to xlock + zzz, so that I > :>> > > :>> > Which window manager? Stock fvwm? > :>> > > :>> >> can lock the screen before suspending, or how to force xlock to be run > :>> >> after resuming. The indications give in that page are not working for > :>> >> me. > :>> > > :>> > apmd(8) can run scripts on wakeup/resume/standby/... > :>> > But what you might really want is -startCmd of xlock(1). > :>> > > :>> > What about your encrypted partition when suspending? > :>> > > :>> > Bye, Marcus > :>> > > :>> >> > > -- > The human animal differs from the lesser primates in his passion for > lists of "Ten Best". > -- H. Allen Smith -- Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: home encrypted and upgrading OS
yes, because I have it in rc.conf.local running with flags = -C El 12 abr 2016, a les 1:26, Raf Czlonka va escriure: > On Mon, Apr 11, 2016 at 07:59:50PM BST, Pau Amaro-Seoane wrote: >> $ ls -lrt /etc/apm/suspend >> -rwxr-xr-x 1 root wheel 49 Apr 10 00:47 /etc/apm/suspend >> >> Still not locking... > > Is apmd(8) running at all? > > Raf > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: home encrypted and upgrading OS
did you actually mean logger suspending? $ cat /etc/apm/suspend #!/bin/sh logger suspending pkill -USR1 xidle or simply logger? In any case, this is not producing output in /var/log/messages In the case in which I have $ cat /etc/apm/suspend #!/bin/sh logger pkill -USR1 xidle the /var/log/messages is what I have pasted here: http://pastebin.com/7faQqpfs I do not see any output from suspend... when I had the logger suspending line, it didn't produce anything either Thanks for your time 2016-04-12 8:52 GMT+02:00 Peter Hessler : > Ok. Let's start debugging. > > Can you add "logger suspending" to the top of /etc/apm/suspend, do a few > suspend/resume cycles and verify that is printed in /var/log/messages. > That will tell us if the suspend script is running or not. > > > > On 2016 Apr 12 (Tue) at 07:02:13 +0200 (+0200), Pau Amaro Seoane wrote: > :yes, because I have it in rc.conf.local running with flags = -C > : > :El 12 abr 2016, a les 1:26, Raf Czlonka va > escriure: > :> On Mon, Apr 11, 2016 at 07:59:50PM BST, Pau Amaro-Seoane wrote: > :>> $ ls -lrt /etc/apm/suspend > :>> -rwxr-xr-x 1 root wheel 49 Apr 10 00:47 /etc/apm/suspend > :>> > :>> Still not locking... > :> > :> Is apmd(8) running at all? > :> > :> Raf > > -- > "He's just a politician trying to save both his faces ..." -- Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: home encrypted and upgrading OS
Hello, I found out what was happening. just out of curiosity, I ran a grep and # grep -i suspending /var/log/messages Apr 12 13:33:09 pyrrha pau: suspending Apr 12 14:23:58 pyrrha pau: suspending But there were only these two entries. I suspended it again and again with Fn+F4 (thinkpad x220) or closing the lid and only those two showed up. Then I tried to run something like zzz && sleep 15 && grep -i suspending /var/log/messages And I got: zzz: cannot connect to apmd: No such file or directory Which means that apm was not running. I started it from the command line # apmd I closed the lid, opened it and... the screen was locked. But why is apmd not running, if my rc.conf.local, as I said in a previous email, has apm with flags? # cat /etc/rc.conf.local sshd_flags=NO pkg_scripts="dbus_daemon avahi_daemon" dbus_enable=YES apm_flags="-C" xdm_flags="" mixerctl inputs.spkr.mute=on Seemingly this is not enough to have apm ran after boot. Thanks, I appreciate your help! 2016-04-12 11:54 GMT+02:00 Peter Hessler : > That tells me that /etc/apm/suspend is not being called. > > logger is a command, which takes either a message or reads from stdin. > "logger suspend" on my laptop gives me: > > $ logger suspending > $ grep suspending /var/log/messages > Apr 12 08:50:42 dante phessler: suspending > $ > > So, for some reason this file is not being ran. > > Lets focus on that for now. > > Can you run /etc/apm/suspend by itself? NOT with "sh" in front, but like: > > $ /etc/apm/suspend > $ > > That should do two things. That should generate a syslog message, and > activate your screensaver. If it only does a syslog message, then that > is a good first step. > > > On 2016 Apr 12 (Tue) at 11:42:09 +0200 (+0200), Pau Amaro-Seoane wrote: > :did you actually mean logger suspending? > : > :$ cat /etc/apm/suspend > :#!/bin/sh > :logger suspending > :pkill -USR1 xidle > : > :or simply logger? > : > :In any case, this is not producing output in /var/log/messages > : > :In the case in which I have > :$ cat /etc/apm/suspend > :#!/bin/sh > :logger > :pkill -USR1 xidle > : > :the /var/log/messages is what I have pasted here: > : > :http://pastebin.com/7faQqpfs > : > :I do not see any output from suspend... when I had the logger > :suspending line, it didn't produce anything either > : > :Thanks for your time > : > :2016-04-12 8:52 GMT+02:00 Peter Hessler : > :> Ok. Let's start debugging. > :> > :> Can you add "logger suspending" to the top of /etc/apm/suspend, do a few > :> suspend/resume cycles and verify that is printed in /var/log/messages. > :> That will tell us if the suspend script is running or not. > :> > :> > :> > :> On 2016 Apr 12 (Tue) at 07:02:13 +0200 (+0200), Pau Amaro Seoane wrote: > :> :yes, because I have it in rc.conf.local running with flags = -C > :> : > :> :El 12 abr 2016, a les 1:26, Raf Czlonka va > escriure: > :> :> On Mon, Apr 11, 2016 at 07:59:50PM BST, Pau Amaro-Seoane wrote: > :> :>> $ ls -lrt /etc/apm/suspend > :> :>> -rwxr-xr-x 1 root wheel 49 Apr 10 00:47 /etc/apm/suspend > :> :>> > :> :>> Still not locking... > :> :> > :> :> Is apmd(8) running at all? > :> :> > :> :> Raf > > -- > "Go to Heaven for the climate, Hell for the company." > -- Mark Twain -- Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: home encrypted and upgrading OS
so... what is actually the difference between apm and apmd in /etc/rc.conf.local ? My mistake was to think that apmd would actually be running if I had apm_flags in there... 2016-04-12 13:05 GMT+02:00 Raf Czlonka : > On Tue, Apr 12, 2016 at 11:37:52AM BST, Pau Amaro-Seoane wrote: >> apm_flags="-C" > > apmd_flags=[...] >^ > So apmd(8) is *not* running ;^) > > Raf > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies -- Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
How to lock the screen after suspending in OpenBSD in 6 steps
Hello: Since I guess some one might run into this problem in the future, I thought it would be a good idea to have this information in the mailing list. If you see anything wrong, please let me know. Thanks again, Pau How to lock the screen after suspending in OpenBSD in 6 steps: == 1- Since you do not want to leave a terminal open, do not start X with startx. This would leave open that terminal and launch X on another one. Hence, use xdm 2- Since you are using xdm, you need a .xsession file instead of a .xinitrc 3- My .xsession file looks like xmodmap -e "keycode 22 = BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace" pkill xidle xidle -delay 5 -sw -program "/usr/X11R6/bin/xlock -mode blank" -timeout 90 & exec cwm The first line cancels the function Zap of X, which means that nobody can interrupt your X session by pressing CTRL+Alt+Backspace xidle is necessary to launch the screensaver via xlock 4- Create a suspend file in /etc/apm: $ cat /etc/apm/suspend #!/bin/sh pkill -USR1 xidle 5- Make sure it is executable 6- Make sure apm is running everytime after boot. If it is not, while your laptop will suspend, the script suspend will not be executed, and the screen will not be locked. To test if apmd is running, type zzz from the terminal. A message like zzz: cannot connect to apmd: No such file or directory Will tell you that your apmd is NOT running. To have apmd run after boot, add a flag to rc.conf.local: $ cat /etc/rc.conf.local sshd_flags=NO pkg_scripts="dbus_daemon avahi_daemon" dbus_enable=YES apmd_flags="-A" xdm_flags="" mixerctl inputs.spkr.mute=on ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
cp read error: Invalid argument
Hello: I am moving files from an EXT2 formatted drive to my openbsd and I get this error when copying from the ext2 drive to my laptop: read error: Invalid argument I mounted it with mount -t ext2fs /dev/sdbi /mnt The files are videos and some of them can be copied, and others not. I cannot see a pattern. Other programs such as "file" or "du" dump when run on the same files on the ext2 drive. When trying to open the dir with the xfce4 files browser tool, it crashes as well. This is openbsd 5.9 on amd64 withy 8G RAM. Any idea? thanks, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: cp read error: Invalid argument
PS: As an example, when I try to copy a directory with mp3 files in it, I get $cp -r ./a_tickle_in_the_heart_mp3/ /home/pau/ cp: a_tickle_in_the_heart_mp3/bei_mir_bistu_sheyn.mp3: Invalid argument cp: a_tickle_in_the_heart_mp3/chossn_kalah_mazel_tov.mp3: Invalid argument cp: a_tickle_in_the_heart_mp3/blessing_nigun.mp3: Invalid argument cp: a_tickle_in_the_heart_mp3/chassidic_dance.mp3: Invalid argument cp: a_tickle_in_the_heart_mp3/rosinkess_mit_mandlen.mp3: Invalid argument cp: a_tickle_in_the_heart_mp3/dance_of_the_souls.mp3: Invalid argument cp: a_tickle_in_the_heart_mp3/sweet_georgia_yiddelekh.mp3: Invalid argument cp: a_tickle_in_the_heart_mp3/sammys_freylekh.mp3: Invalid argument cp: a_tickle_in_the_heart_mp3/the_klezmers_freylekh.mp3: Invalid argument And then, in /home/pau I have this: $ file * 515ov4NbvCL.jpg: JPEG image data, JFIF standard 1.01 bei_mir_bistu_sheyn.mp3: empty blessing_nigun.mp3: empty caravan.mp3: Audio file with ID3 version 2.3, MP3 encoding chassidic_dance.mp3: empty chossn_kalah_mazel_tov.mp3: empty dance_of_the_souls.mp3: empty ershter_waltz.mp3: Audio file with ID3 version 2.3, MP3 encoding i_got_rythm.mp3: Audio file with ID3 version 2.3, MP3 encoding lebedik_un_freylekh.mp3: Audio file with ID3 version 2.3, MP3 encoding miserlou.mp3:Audio file with ID3 version 2.3, MP3 encoding original_charleston.mp3: Audio file with ID3 version 2.3, MP3 encoding rosinkess_mit_mandlen.mp3: empty sammys_freylekh.mp3: empty summertime.mp3: Audio file with ID3 version 2.3, MP3 encoding sweet_georgia_yiddelekh.mp3: empty the_klezmers_freylekh.mp3: empty wedding_waltz__bulgar.mp3: Audio file with ID3 version 2.3, MP3 encoding Meaning that some got copied, others not. The encoding is the same, the sizes about the same. I have this problem using obsd 5.9 (not sure about previous versions) and USB2 and USB3 Cheers, 2016-04-17 11:49 GMT+02:00 Pau Amaro-Seoane : > Hello: > > I am moving files from an EXT2 formatted drive to my openbsd and I get > this error when copying from the ext2 drive to my laptop: > > read error: Invalid argument > > I mounted it with mount -t ext2fs /dev/sdbi /mnt > > The files are videos and some of them can be copied, and others not. I > cannot see a pattern. > > Other programs such as "file" or "du" dump when run on the same files > on the ext2 drive. > > When trying to open the dir with the xfce4 files browser tool, it > crashes as well. > > This is openbsd 5.9 on amd64 withy 8G RAM. > > Any idea? > > thanks, > > Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: cp read error: Invalid argument
not working... # mount_ext2fs /dev/sd1i /home/pau/mnt/ # cd /home/pau/mnt/ # cp Troya.avi /home/pau/ cp: Troya.avi: Invalid argument 2016-04-17 17:10 GMT+02:00 Maurice McCarthy : > On 2016-04-17 11:39, Pau Amaro-Seoane wrote: >> >> PS: As an example, when I try to copy a directory with mp3 files in it, I >> get >> >> $cp -r ./a_tickle_in_the_heart_mp3/ /home/pau/ >> cp: a_tickle_in_the_heart_mp3/bei_mir_bistu_sheyn.mp3: Invalid argument > > > Firstly I assume the mount command in your original post is a typo > > "mount -t ext2fs /dev/sdbi /mnt" would be invalid so you likely meant > > # mount -t ext2fs /dev/sd2i /mnt > > > On mounting a foreign file system ownership of files is assumed (I think .. > no OpenBSD box here) to be the same as the owner of the directory used for > mounting. So /mnt files would be owned by root. > > Secondly, the option -r does not exist in OpenBSD. Unless you mean -R for > recursive. Try > > $ mkdir ~/mnt > $ doas mount_ext2fs /dev/sd2i /home/pau/mnt > $ cp -R /home/pau/mnt/a_tickle_in_the_heart_mp3 /home/pau > > Regards > and good luck! > > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies -- Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: cp read error: Invalid argument
PS: This is a 2T drive... formatted as ext2 2016-04-17 18:56 GMT+02:00 Pau Amaro-Seoane : > not working... > > # mount_ext2fs /dev/sd1i /home/pau/mnt/ > # cd /home/pau/mnt/ > # cp Troya.avi /home/pau/ > cp: Troya.avi: Invalid argument > > > > > 2016-04-17 17:10 GMT+02:00 Maurice McCarthy : >> On 2016-04-17 11:39, Pau Amaro-Seoane wrote: >>> >>> PS: As an example, when I try to copy a directory with mp3 files in it, I >>> get >>> >>> $cp -r ./a_tickle_in_the_heart_mp3/ /home/pau/ >>> cp: a_tickle_in_the_heart_mp3/bei_mir_bistu_sheyn.mp3: Invalid argument >> >> >> Firstly I assume the mount command in your original post is a typo >> >> "mount -t ext2fs /dev/sdbi /mnt" would be invalid so you likely meant >> >> # mount -t ext2fs /dev/sd2i /mnt >> >> >> On mounting a foreign file system ownership of files is assumed (I think .. >> no OpenBSD box here) to be the same as the owner of the directory used for >> mounting. So /mnt files would be owned by root. >> >> Secondly, the option -r does not exist in OpenBSD. Unless you mean -R for >> recursive. Try >> >> $ mkdir ~/mnt >> $ doas mount_ext2fs /dev/sd2i /home/pau/mnt >> $ cp -R /home/pau/mnt/a_tickle_in_the_heart_mp3 /home/pau >> >> Regards >> and good luck! >> >> >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies > > > > -- > Pau > --- > Group Leader of Theoretical Astrophysics > Max Planck Institute Gravitational Physics > Albert Einstein Institute http://astro-gr.org -- Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: cp read error: Invalid argument
I chose ext2 when formatting the drive in linux because I thought this would be the easiest to transfer the files to the new obsd laptop... should I choose a different file system? vfat?? 2016-04-17 19:29 GMT+02:00 Pau Amaro-Seoane : > Some /var/log/messages... > > Apr 17 21:09:42 pyrrha /bsd: umass0 detached > Apr 17 21:22:25 pyrrha /bsd: umass0 at uhub1 > Apr 17 21:22:25 pyrrha /bsd: port 1 configuration 1 interface 0 > "Western Digital My Passport 0820" rev 3.00/10.12 addr 2 > Apr 17 21:22:25 pyrrha /bsd: umass0: using SCSI over Bulk-Only > Apr 17 21:22:25 pyrrha /bsd: scsibus4 at umass0: 2 targets, initiator 0 > Apr 17 21:22:25 pyrrha /bsd: sd1 at scsibus4 targ 1 lun 0: Passport 0820, 1012> SCSI4 0/direct fixed > Apr 17 21:22:32 pyrrha /bsd: sd1: 1907697MB, 512 bytes/sector, > 3906963456 sectors > Apr 17 21:22:32 pyrrha /bsd: ses0 at scsibus4 targ 1 lun 1: Device, 1012> SCSI4 13/enclosure services fixed > Apr 17 21:22:32 pyrrha /bsd: ses0: unable to read enclosure configuration > > 2016-04-17 19:26 GMT+02:00 Pau Amaro-Seoane : >> # mount >> /dev/sd0a on / type ffs (local) >> /dev/sd1i on /mnt type ext2fs (local) >> >> # cd /mnt/ >> # cp Troya.avi /tmp/ >> cp: Troya.avi: Invalid argument >> >> >> I do not think that is the problem, because some files can be >> copied... the usb disk is brand new... three days old... >> >> -w does not make any difference... >> >> >> >> 2016-04-17 19:21 GMT+02:00 Maurice McCarthy : >>> On 2016-04-17 18:09, Pau Amaro-Seoane wrote: >>>> >>>> PS: This is a 2T drive... formatted as ext2 >>>> >>>> 2016-04-17 18:56 GMT+02:00 Pau Amaro-Seoane : >>>>> >>>>> not working... >>>>> >>>>> # mount_ext2fs /dev/sd1i /home/pau/mnt/ >>>>> # cd /home/pau/mnt/ >>>>> # cp Troya.avi /home/pau/ >>>>> cp: Troya.avi: Invalid argument >>>>> >>>>> >>> >>> >>> You may be mounted read-only >>> >>> # mount >>> >>> to see what is happening >>> >>> # mount -w /home/pau/mnt >>> >>> to mount read-write. >>> >>> >>> ___ >>> Openbsd-newbies mailing list >>> Openbsd-newbies@sfobug.theapt.org >>> http://mailman.theapt.org/listinfo/openbsd-newbies > > > > -- > Pau > --- > Group Leader of Theoretical Astrophysics > Max Planck Institute Gravitational Physics > Albert Einstein Institute http://astro-gr.org -- Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: cp read error: Invalid argument
Some /var/log/messages... Apr 17 21:09:42 pyrrha /bsd: umass0 detached Apr 17 21:22:25 pyrrha /bsd: umass0 at uhub1 Apr 17 21:22:25 pyrrha /bsd: port 1 configuration 1 interface 0 "Western Digital My Passport 0820" rev 3.00/10.12 addr 2 Apr 17 21:22:25 pyrrha /bsd: umass0: using SCSI over Bulk-Only Apr 17 21:22:25 pyrrha /bsd: scsibus4 at umass0: 2 targets, initiator 0 Apr 17 21:22:25 pyrrha /bsd: sd1 at scsibus4 targ 1 lun 0: SCSI4 0/direct fixed Apr 17 21:22:32 pyrrha /bsd: sd1: 1907697MB, 512 bytes/sector, 3906963456 sectors Apr 17 21:22:32 pyrrha /bsd: ses0 at scsibus4 targ 1 lun 1: SCSI4 13/enclosure services fixed Apr 17 21:22:32 pyrrha /bsd: ses0: unable to read enclosure configuration 2016-04-17 19:26 GMT+02:00 Pau Amaro-Seoane : > # mount > /dev/sd0a on / type ffs (local) > /dev/sd1i on /mnt type ext2fs (local) > > # cd /mnt/ > # cp Troya.avi /tmp/ > cp: Troya.avi: Invalid argument > > > I do not think that is the problem, because some files can be > copied... the usb disk is brand new... three days old... > > -w does not make any difference... > > > > 2016-04-17 19:21 GMT+02:00 Maurice McCarthy : >> On 2016-04-17 18:09, Pau Amaro-Seoane wrote: >>> >>> PS: This is a 2T drive... formatted as ext2 >>> >>> 2016-04-17 18:56 GMT+02:00 Pau Amaro-Seoane : >>>> >>>> not working... >>>> >>>> # mount_ext2fs /dev/sd1i /home/pau/mnt/ >>>> # cd /home/pau/mnt/ >>>> # cp Troya.avi /home/pau/ >>>> cp: Troya.avi: Invalid argument >>>> >>>> >> >> >> You may be mounted read-only >> >> # mount >> >> to see what is happening >> >> # mount -w /home/pau/mnt >> >> to mount read-write. >> >> >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies -- Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: cp read error: Invalid argument
# mount /dev/sd0a on / type ffs (local) /dev/sd1i on /mnt type ext2fs (local) # cd /mnt/ # cp Troya.avi /tmp/ cp: Troya.avi: Invalid argument I do not think that is the problem, because some files can be copied... the usb disk is brand new... three days old... -w does not make any difference... 2016-04-17 19:21 GMT+02:00 Maurice McCarthy : > On 2016-04-17 18:09, Pau Amaro-Seoane wrote: >> >> PS: This is a 2T drive... formatted as ext2 >> >> 2016-04-17 18:56 GMT+02:00 Pau Amaro-Seoane : >>> >>> not working... >>> >>> # mount_ext2fs /dev/sd1i /home/pau/mnt/ >>> # cd /home/pau/mnt/ >>> # cp Troya.avi /home/pau/ >>> cp: Troya.avi: Invalid argument >>> >>> > > > You may be mounted read-only > > # mount > > to see what is happening > > # mount -w /home/pau/mnt > > to mount read-write. > > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
questions relative to full disk encryption
Dear all: I am following the instructions given in the OpenBSD site [1] and I have one question. If my drive (sd0) has a linux installation on it, when I get to the encryption part of the installation process: dd if=/dev/random of=/dev/sd0c bs=1m (1) Will this overwrite the linux partition? This is /dev/sd0i in my case (I think, I'm writing from the top of my head) (2) After that, I would like to have separate partitions for X, /usr/local/bin etc but I am afraid that these become too small in the next release when I upgrade the system. How bad would it be to only have a / and a swap partition (a and b)? I am just afraid that I end up next time having to repeat the whole encryption process, which is very time consuming... Thanks, Pau [1] http://www.openbsd.org/faq/faq14.html ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
question about full disk encryption
Dear all: I did a full disk encryption install trying to follow closely the indications given here: http://www.openbsd.org/faq/faq14.html#softraidFDE But I ran into a problem when I tried to overwrite the first megabyte of the new pseudo-device. This is a link to two pics I took during the install. However, it seems to have run fine, because it is asking for the passphrase when I boot. http://s32.postimg.org/crwhbt91h/image.png -- the /dev/arandom writing process http://s32.postimg.org/l7m1tbbwl/image.png -- the complaint about no space left What went different, as compared to the faq14.html? I would like to understand. Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: question about full disk encryption
El 9 maig 2016, a les 18:14, Stuart Henderson va escriure: > On 2016-05-08, soko.tica wrote: >> While the diference between /dev/random and /dev/arandom might not be >> important (I'm not knowledgeable enought to say if it is or isn't), > > it's not; the 4 random devices do the same thing on OpenBSD. > >> ommiting 'r' from the name of device means that you operated on a device >> instead on a raw device. The output reported the end of device. Man dd >> isn't explicit, but leads me to believe it wasn't the desired result of the >> operation. > > it's just copying from a neverending source to a device of limited size, > this message is expected and you can ignore it. then what is the difference between writing to sd0c and to rsd0c? how bad is that error for the installed operational system? > > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
/etc/login.conf
Dear all: I had a look at http://eradman.com/posts/openbsd-workstation.html (I know it is not official) and tried to follow the example of "performance tuning". I have this now in /etc/login.conf : staff:\ :datasize-cur=infinity:\ :datasize-max=infinity:\ :openfiles-cur=2048:\ :stacksize-cur=32M:\ :maxproc-max=2048:\ :maxproc-cur=2048:\ :ignorenologin:\ :requirehome@:\ :tc=default: How bad / good an idea is this? The laptop is very responsive now, but I would like to hear what you think about this... thanks, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
mixerctl output master beyond 255?
Hi! Is there a way to "boost" output master for values larger than 255? I'm playing some movies and the sound is coming rather low. Is there a way to boost it? This is my output: $ mixerctl -av inputs.dac-0:1_mute=off [ off on ] inputs.dac-0:1=222,222 inputs.dac-2:3_mute=off [ off on ] inputs.dac-2:3=222,222 inputs.beep=108 record.adc-0:1_source=mic3 [ sel sel2 mic3 mix ] record.adc-0:1_mute=off [ off on ] record.adc-0:1=126,126 record.adc-2:3_source=sel2 [ sel sel2 mic3 mix ] record.adc-2:3_mute=off [ off on ] record.adc-2:3=126,126 record.adc-4:5_source=sel2 [ sel sel2 mic3 mix ] record.adc-4:5_mute=off [ off on ] record.adc-4:5=126,126 inputs.sel_source=mic2 [ mic mic2 ] outputs.sel=252,252 inputs.sel2_source=mic2 [ mic mic2 ] outputs.sel2=252,252 outputs.hp_source=dac-0:1 [ dac-0:1 dac-2:3 ] outputs.hp_boost=on [ off on ] outputs.mic_dir=input-vr80 [ none input input-vr50 input-vr80 ] outputs.mic2_source=dac-0:1 [ dac-0:1 dac-2:3 ] outputs.mic2_dir=input-vr80 [ none output input input-vr50 input-vr80 ] outputs.mic2_eapd=on [ off on ] outputs.hp2_source=dac-0:1 [ dac-0:1 dac-2:3 ] outputs.spkr_source=dac-2:3 [ dac-0:1 dac-2:3 ] inputs.mic3=126,126 inputs.mix_source=dac-0:1,dac-2:3 { dac-0:1 dac-2:3 } inputs.mix_dac-0:1=126,126 inputs.mix_dac-2:3=126,126 outputs.hp_sense=unplugged [ unplugged plugged ] outputs.mic_sense=unplugged [ unplugged plugged ] outputs.mic2_sense=unplugged [ unplugged plugged ] outputs.hp2_sense=unplugged [ unplugged plugged ] outputs.spkr_muters=hp,mic2,hp2 { hp mic2 hp2 } outputs.master=255,255 outputs.master.mute=off [ off on ] outputs.master.slaves=dac-0:1,dac-2:3 { dac-0:1 dac-2:3 beep sel sel2 } record.volume=126,126 record.volume.mute=off [ off on ] record.volume.slaves=adc-0:1,adc-2:3,adc-4:5 { adc-0:1 adc-2:3 adc-4:5 mic3 } thanks! Pau PS: Why is anyway 255 the maximum and not 256? $ mixerctl outputs.master=500 outputs.master: 255,255 -> 255,255 ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: mixerctl output master beyond 255?
thanks... this is bad, because the sound is really vry low even at its maximum set up with mixerctl... this is happening with different files... I know the laptop (thinkpad x220) can do better, because it was doing so with linux... Sorry... I want to stick to obsd! Any hint will be appreciated. thanks El 16 maig 2016, a les 8:47, Maurice McCarthy va escriure: > On Mon, May 16, 2016 at 07:36:06AM +0100 or thereabouts, Maurice McCarthy > wrote: >> On Sun, May 15, 2016 at 10:10:11PM +0200 or thereabouts, Pau Amaro-Seoane >> wrote: >>> Hi! >>> >>> Is there a way to "boost" output master for values larger than 255? > > The only other suggestion I have is that the sampling rate on the movie is > too low. It is some years since I used it, but this can be increased by > remixing the audio track using ffmpeg. Ffmpeg is supposed to be faster and > easier to use now. For example > > ffmpeg -i input-movie.avi -b:a 128k output-movie.avi > > will increase the sampling rate to 128k for all audio streams. But please > please check this out and play the move with ffmpeg to see what the rate is > now. > > Moss > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: mixerctl output master beyond 255?
thanks!! yes, this fixes it... I wonder whether something similar exists for vlc can you please explain the syntax? El 17 maig 2016, a les 8:05, Marcus MERIGHI va escriure: > pau.amaro.seo...@gmail.com (Pau Amaro-Seoane), 2016.05.15 (Sun) 22:10 (CEST): >> Is there a way to "boost" output master for values larger than 255? >> I'm playing some movies and the sound is coming rather low. Is there a >> way to boost it? > > Some movies have low volume recording. With mplayer I use: > > $ mplayer -af volnorm=1:0.5 > > make it permanent: > > $ cat ~/.mplayer/config > [default] > af=volnorm=1:0.5 > > This way you increase noise volume, too, of course. > > Bye, Marcus > >> This is my output: >> >> $ mixerctl -av >> >> inputs.dac-0:1_mute=off [ off on ] >> inputs.dac-0:1=222,222 >> inputs.dac-2:3_mute=off [ off on ] >> inputs.dac-2:3=222,222 >> inputs.beep=108 >> record.adc-0:1_source=mic3 [ sel sel2 mic3 mix ] >> record.adc-0:1_mute=off [ off on ] >> record.adc-0:1=126,126 >> record.adc-2:3_source=sel2 [ sel sel2 mic3 mix ] >> record.adc-2:3_mute=off [ off on ] >> record.adc-2:3=126,126 >> record.adc-4:5_source=sel2 [ sel sel2 mic3 mix ] >> record.adc-4:5_mute=off [ off on ] >> record.adc-4:5=126,126 >> inputs.sel_source=mic2 [ mic mic2 ] >> outputs.sel=252,252 >> inputs.sel2_source=mic2 [ mic mic2 ] >> outputs.sel2=252,252 >> outputs.hp_source=dac-0:1 [ dac-0:1 dac-2:3 ] >> outputs.hp_boost=on [ off on ] >> outputs.mic_dir=input-vr80 [ none input input-vr50 input-vr80 ] >> outputs.mic2_source=dac-0:1 [ dac-0:1 dac-2:3 ] >> outputs.mic2_dir=input-vr80 [ none output input input-vr50 input-vr80 ] >> outputs.mic2_eapd=on [ off on ] >> outputs.hp2_source=dac-0:1 [ dac-0:1 dac-2:3 ] >> outputs.spkr_source=dac-2:3 [ dac-0:1 dac-2:3 ] >> inputs.mic3=126,126 >> inputs.mix_source=dac-0:1,dac-2:3 { dac-0:1 dac-2:3 } >> inputs.mix_dac-0:1=126,126 >> inputs.mix_dac-2:3=126,126 >> outputs.hp_sense=unplugged [ unplugged plugged ] >> outputs.mic_sense=unplugged [ unplugged plugged ] >> outputs.mic2_sense=unplugged [ unplugged plugged ] >> outputs.hp2_sense=unplugged [ unplugged plugged ] >> outputs.spkr_muters=hp,mic2,hp2 { hp mic2 hp2 } >> outputs.master=255,255 >> outputs.master.mute=off [ off on ] >> outputs.master.slaves=dac-0:1,dac-2:3 { dac-0:1 dac-2:3 beep sel sel2 } >> record.volume=126,126 >> record.volume.mute=off [ off on ] >> record.volume.slaves=adc-0:1,adc-2:3,adc-4:5 { adc-0:1 adc-2:3 adc-4:5 mic3 >> } >> >> thanks! >> >> Pau >> PS: Why is anyway 255 the maximum and not 256? >> $ mixerctl outputs.master=500 >> outputs.master: 255,255 -> 255,255 >> !DSPAM:5738d79f286911280279826! ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
pf rules - please critic!
Dear all: What do you think of these rules? I use my laptop to mostly download things from the internet from a browser (movies!), but also big data with scp. I also upload data with it. Other than that, I am a regular user (some chatting, youtube and downloading of scientific papers): ext_if=iwn0 set block-policy return set loginterface $ext_if set skip on lo0 scrub in all block log all pass out all Also, I sometimes use the cable (em0) and sometimes wireless (iwn0). How could I set up the rules, such that they will be taken into account independently of the interface I am using? Any suggestions? Thanks! Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: mixerctl output master beyond 255?
yes, up to 222, but it does not help... only the mplayer "trick" does it Cheers, Pau El 18 maig 2016, a les 10:06, Stuart Henderson va escriure: > On 2016-05-15, Pau Amaro-Seoane wrote: >> inputs.dac-0:1=222,222 >> inputs.dac-2:3=222,222 >> inputs.mix_dac-0:1=126,126 >> inputs.mix_dac-2:3=126,126 > > Does it let you raise any of these values? > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
xlock
Hi, I am using 5.9 with xfce and I have realised that when I am away from the laptop, xlock is launched. Then I am prompted twice for the password and one more time for slock, which I installed. I am using cat /etc/apm/suspend #!/bin/sh pkill -USR1 xidle And cat /home/pau/.xsession xmodmap -e "keycode 22 = BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace" pkill xidle xidle -delay 5 -sw -program "/usr/local/bin/slock" -timeout 3600 & #xidle -delay 5 -sw -program "/usr/X11R6/bin/xlock -mode blank" -timeout 3600 & exec startxfce4 I have commented out xlock because I somehow prefer a bit more slock. But why is xlock launched and why two times? And why is slock launched as well? I prefer to lock the screen by myself. Thanks, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
encryption, again
Dear all, I have been following this guide here: http://www.openbsd.org/faq/faq14.html#softraidCrypto And I get this problem: pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m dd: /dev/rsd2c: short write on character device dd: /dev/rsd2c: end of device 57260+0 records in 57259+1 records out 60040544256 bytes transferred in 2966.279 secs (20241028 bytes/sec) pyrrha# fdisk -iy sd2 Writing MBR at offset 0. pyrrha# disklabel -E sd2 Label editor (enter '?' for help at any prompt) > a a offset: [64] size: [117258371] FS type: [4.2BSD] Rounding size to bsize (32 sectors): 117258368 > w > q No label changes. pyrrha# bioctl -c C -l sd2a softraid0 softraid0: invalid metadata format /dev/sd2 is my external usb disk. What am I doing wrong? Thanks, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: encryption, again
> pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m ^ > Since there's no difference on OpenBSD, why do you keep on changing > the device name to something other than what's in the document? Do you mean /dev/rsd2c? As I understand it, if I left the name that's in the document, /dev/rsd0c I would screw all data of my internal drive, where the OS is installed. sd2 is what I got from dmesg 2016-05-25 12:47 GMT+02:00 Raf Czlonka : > On Tue, May 24, 2016 at 05:10:31PM BST, Pau Amaro-Seoane wrote: >> Dear all, >> >> I have been following this guide here: >> >> http://www.openbsd.org/faq/faq14.html#softraidCrypto >> >> And I get this problem: >> >> pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m > ^ > Since there's no difference on OpenBSD, why do you keep on changing > the device name to something other than what's in the document? > >> dd: /dev/rsd2c: short write on character device >> dd: /dev/rsd2c: end of device >> 57260+0 records in >> 57259+1 records out >> 60040544256 bytes transferred in 2966.279 secs (20241028 bytes/sec) >> pyrrha# fdisk -iy sd2 >> Writing MBR at offset 0. >> pyrrha# disklabel -E sd2 >> Label editor (enter '?' for help at any prompt) >> > a a >> offset: [64] >> size: [117258371] >> FS type: [4.2BSD] >^^^ > This should be RAID. > > It is there in the document you had linked to above :^) > > Regards, > > Raf > >> Rounding size to bsize (32 sectors): 117258368 >> > w >> > q >> No label changes. >> pyrrha# bioctl -c C -l sd2a softraid0 >> softraid0: invalid metadata format >> >> /dev/sd2 is my external usb disk. >> >> What am I doing wrong? >> >> Thanks, >> >> Pau >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: encryption, again
ok, I got it... raid it was... last question: " Next time you need to access the drive, simply use bioctl(8) to attach it and then repeat the last four commands as needed. " Which would be the exact command? I seem not to be able to figure it out from the man page... remember this is newbies, please... 2016-05-25 12:55 GMT+02:00 Pau Amaro-Seoane : >> pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m > ^ >> Since there's no difference on OpenBSD, why do you keep on changing >> the device name to something other than what's in the document? > > Do you mean /dev/rsd2c? > > As I understand it, if I left the name that's in the document, > > /dev/rsd0c > > I would screw all data of my internal drive, where the OS is installed. > > sd2 is what I got from dmesg > > > 2016-05-25 12:47 GMT+02:00 Raf Czlonka : >> On Tue, May 24, 2016 at 05:10:31PM BST, Pau Amaro-Seoane wrote: >>> Dear all, >>> >>> I have been following this guide here: >>> >>> http://www.openbsd.org/faq/faq14.html#softraidCrypto >>> >>> And I get this problem: >>> >>> pyrrha# dd if=/dev/arandom of=/dev/rsd2c bs=1m >> ^ >> Since there's no difference on OpenBSD, why do you keep on changing >> the device name to something other than what's in the document? >> >>> dd: /dev/rsd2c: short write on character device >>> dd: /dev/rsd2c: end of device >>> 57260+0 records in >>> 57259+1 records out >>> 60040544256 bytes transferred in 2966.279 secs (20241028 bytes/sec) >>> pyrrha# fdisk -iy sd2 >>> Writing MBR at offset 0. >>> pyrrha# disklabel -E sd2 >>> Label editor (enter '?' for help at any prompt) >>> > a a >>> offset: [64] >>> size: [117258371] >>> FS type: [4.2BSD] >>^^^ >> This should be RAID. >> >> It is there in the document you had linked to above :^) >> >> Regards, >> >> Raf >> >>> Rounding size to bsize (32 sectors): 117258368 >>> > w >>> > q >>> No label changes. >>> pyrrha# bioctl -c C -l sd2a softraid0 >>> softraid0: invalid metadata format >>> >>> /dev/sd2 is my external usb disk. >>> >>> What am I doing wrong? >>> >>> Thanks, >>> >>> Pau >>> ___ >>> Openbsd-newbies mailing list >>> Openbsd-newbies@sfobug.theapt.org >>> http://mailman.theapt.org/listinfo/openbsd-newbies >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
trouble booting - random.seed Invalid argument
Hello... I was detaching an encrypted drive and I think I chose the wrong disk and got the main one, where the OS is installed, with a bioctl -d sd1, which is also encrypted... I was prompted a blue terminal and picked up reboot... but after boot I get this screen... now what? http://s33.postimg.org/t2mqe678v/image.jpg ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: trouble booting - random.seed Invalid argument
Hello... I can boot from my usb live stick with openbsd and attach the internal drive with bioctl -c C -l sd0a softraid0 then mount /dev/sd2a /mnt But boot.conf is not in /mnt/etc What now? > Hello... > > I was detaching an encrypted drive and I think I chose the wrong disk and > got the main one, where the OS is installed, with a bioctl -d sd1, which is > also encrypted... I was prompted a blue terminal and picked up reboot... > but after boot I get this screen... now what? > > http://s33.postimg.org/t2mqe678v/image.jpg > -- Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
datasize-cur
Hello... I have installed chromium and when I try to start it I get: Cannot increase datasize-cur to at least 716800 Do you want to run Chromium anyway? (If you don't increase these limits, Chromium might fail to work properly.) However I have already in /etc/login.conf staff:\ :datasize-cur=infinity:\ :datasize-max=infinity:\ :openfiles-cur=8192:\ :stacksize-cur=32M:\ :maxproc-max=8192:\ :maxproc-cur=8192:\ :ignorenologin:\ :requirehome@:\ :tc=default: Why is it complaining? Also, firefox is crashing all the time, which makes me think that the datasize-cur infinity option is not taken into account? Any help? Thanks! Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: datasize-cur
indeed, I was not in the staff group... I added myself: cat /etc/group | grep staff staff:*:20:root,pau rebooted and... same problem: Cannot increase datasize-cur to at least 716800 Do you want to run Chromium anyway? (If you don't increase these limits, Chromium might fail to work properly.) What is the default set up for a user added during installation? I added myself later... 2016-06-19 0:17 GMT+02:00 Raf Czlonka : > On Sat, Jun 18, 2016 at 11:05:52PM BST, Pau Amaro-Seoane wrote: >> Hello... >> >> I have installed chromium and when I try to start it I get: >> >> Cannot increase datasize-cur to at least 716800 >> Do you want to run Chromium anyway? >> (If you don't increase these limits, Chromium might fail to work properly.) >> >> However I have already in /etc/login.conf >> >> staff:\ >>:datasize-cur=infinity:\ >>:datasize-max=infinity:\ >>:openfiles-cur=8192:\ >>:stacksize-cur=32M:\ >>:maxproc-max=8192:\ >>:maxproc-cur=8192:\ >>:ignorenologin:\ >>:requirehome@:\ >>:tc=default: >> >> Why is it complaining? > > Is your account member of the 'staff' group? > > Raf > >> Also, firefox is crashing all the time, which makes me think that the >> datasize-cur infinity option is not taken into account? >> >> Any help? >> >> Thanks! >> >> Pau >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: datasize-cur
yes, thanks! I figured that one out later... Cheers, Pau El 20 juny 2016, a les 12:30, Stuart Henderson va escriure: > On 2016-06-18, Pau Amaro-Seoane wrote: >> indeed, I was not in the staff group... I added myself: >> >> cat /etc/group | grep staff >> staff:*:20:root,pau >> >> rebooted and... same problem: >> >> Cannot increase datasize-cur to at least 716800 >> Do you want to run Chromium anyway? >> (If you don't increase these limits, Chromium might fail to work properly.) >> >> What is the default set up for a user added during installation? I >> added myself later... > > Class, not group. It's field #5 in master.passwd(5). > > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
pf rules
Hi... with these pf rules wifi=iwn0 wired=em0 set block-policy return set skip on lo0 match in all scrub block log all I can ping www.google.com without loss but no browser opens any URL... do you know what's going on? Thanks! Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: pf rules
pf is disabled, yes... So, then I would have to remove the last line. I need to download and upload things, but do not want to allow any remote connection to the laptop. I guess this configuration fulfills my needs? Thanks! 2016-06-23 19:20 GMT+02:00 Josh Grosse : > On 2016-06-23 10:29, Pau Amaro-Seoane wrote: >> >> Hi... with these pf rules >> >> wifi=iwn0 >> wired=em0 >> set block-policy return >> set skip on lo0 >> match in all scrub >> block log all >> >> I can ping www.google.com without loss >> but no browser opens any URL... do you know what's going on? >> >> Thanks! >> >> Pau >> ___ >> Openbsd-newbies mailing list >> Openbsd-newbies@sfobug.theapt.org >> http://mailman.theapt.org/listinfo/openbsd-newbies > > > Hi, Pau. Last matching rule wins, and your last rule blocks all traffic. > > The only packets that will pass through PF are those that use the loopback > interface lo0. So either that is not your entire rule set, or PF is > disabled. > > Ping requires the passing of ICMP protocol ECHO packates, while address > resolution of www.google.com requires the passing of DNS protocol > packets via UDP port 53. ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: pf rules
thanks, Josh! Although with these rules I seem not to be able to send e-mails. For instance, gmail complains about not being able to do so, and it also says that I seem to have a very old browser, and should load a simplistic html version of gmail. When I disable pf with pfctl -d, the email is sent and gmail does not complain about anything. Maybe the block is also blocking sites from delivering cookies? 2016-06-25 15:39 GMT+02:00 Josh Grosse : > On Sat, Jun 25, 2016 at 09:28:16AM +0200, Pau Amaro-Seoane wrote: >> pf is disabled, yes... >> >> So, then I would have to remove the last line. I need to download and >> upload things, but do not want to allow any remote connection to the >> laptop. I guess this configuration fulfills my needs? > > No. If you remove the rule that blocks all traffic, what will PF do? > > 1) Ignore lo0 traffic > 2) Scrub all other traffic > > Nothing else. > > Let's look at your six-line rule set in detail: > > a. Rules 1 and 2 set the macros $wifi and $wired, which are never used. > b. Rule 3 sets the option to respond to blocked TCP traffic with RST >and respond with ICMP UNREACHABLE to other blocked traffic. > c. Rule 4 instructs PF to ignore traffic on the loopback interface. > d. Rule 5 requests packet normalization > e. Rule 6 blocks all traffic, except on the ignored loopback interface, >and logs them through your pflog(4) interface. > > Keep in mind, I can only answer questions based upon the information > you provide. Based solely on your laptop use-case description, here is > a very simple ruleset: > > block > pass from self to any > > a. Rule 1 blocks all traffic. > b. Rule 2 passes all traffic originating on the laptop, going anywhere. > > How does PF manage inbound traffic with this? > > Because passed traffic keeps state by default, response packets > will be passed. For stateless protocols like UDP or ICMP, state is > maintained via timers. > > In my previous reply to you, I'd reminded you that in PF, the last > matching rule wins. When an inbound packet is part of an existing > state (TCP session, or within a response timeout window), the rule > set will not be tested and the packet will flow. When an inbound > packet is not part of any existing state, PF will test it against > the rule set and the first rule (block) will be the last one > which matches. > >> >> Thanks! >> >> 2016-06-23 19:20 GMT+02:00 Josh Grosse : >> > On 2016-06-23 10:29, Pau Amaro-Seoane wrote: >> >> >> >> Hi... with these pf rules >> >> >> >> wifi=iwn0 >> >> wired=em0 >> >> set block-policy return >> >> set skip on lo0 >> >> match in all scrub >> >> block log all >> >> >> >> I can ping www.google.com without loss >> >> but no browser opens any URL... do you know what's going on? >> >> >> >> Thanks! >> >> >> >> Pau >> >> ___ >> >> Openbsd-newbies mailing list >> >> Openbsd-newbies@sfobug.theapt.org >> >> http://mailman.theapt.org/listinfo/openbsd-newbies >> > >> > >> > Hi, Pau. Last matching rule wins, and your last rule blocks all traffic. >> > >> > The only packets that will pass through PF are those that use the loopback >> > interface lo0. So either that is not your entire rule set, or PF is >> > disabled. >> > >> > Ping requires the passing of ICMP protocol ECHO packates, while address >> > resolution of www.google.com requires the passing of DNS protocol >> > packets via UDP port 53. ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: pf rules
Dear Josh: Apologies for being vague. I mean that I have yours now: $ cat /etc/pf.conf block pass from self to any #a. Rule 1 blocks all traffic. #b. Rule 2 passes all traffic originating on the laptop, going anywhere. If I enable them with $ pfctl -e I can ping anything, but no browser will open anything If I run $ pfctl -d pf disabled Then of course everything works just fine. Pau 2016-06-25 18:35 GMT+02:00 Josh Grosse : > On Sat, Jun 25, 2016 at 06:18:18PM +0200, Pau Amaro-Seoane wrote: >> thanks, Josh! >> >> Although with these rules I seem not to be able to send e-mails > > Which rules? Mine or yours? Please remember I only have what you > state in your Emails for a problem description. > > All I know is that you have a laptop running OpenBSD, and that > when you use your "six rule" ruleset, all traffic would be blocked. > If you use your "five rule" ruleset, no traffic would be blocked. > If you use Stephen's recommended additional line, and build a > "seven rule" ruleset that ends with his pass out rule, or, end > with my pass from self to any rule, or you use my simple two > rule exampe, with either the pass out or the pass from self to any > rule, you should have a working ruleset for the use case you > described. > >> ... For >> instance, gmail complains about not being able to do so, and it also >> says that I seem to have a very old browser, and should load a >> simplistic html version of gmail. When I disable pf with pfctl -d, the >> email is sent and gmail does not complain about anything. Maybe the >> block is also blocking sites from delivering cookies? > > I can only guess that your normalization ("scrub") directive is the > cause of this symptom. > >> 2016-06-25 15:39 GMT+02:00 Josh Grosse : >> > On Sat, Jun 25, 2016 at 09:28:16AM +0200, Pau Amaro-Seoane wrote: >> >> pf is disabled, yes... >> >> >> >> So, then I would have to remove the last line. I need to download and >> >> upload things, but do not want to allow any remote connection to the >> >> laptop. I guess this configuration fulfills my needs? >> > >> > No. If you remove the rule that blocks all traffic, what will PF do? >> > >> > 1) Ignore lo0 traffic >> > 2) Scrub all other traffic >> > >> > Nothing else. >> > >> > Let's look at your six-line rule set in detail: >> > >> > a. Rules 1 and 2 set the macros $wifi and $wired, which are never used. >> > b. Rule 3 sets the option to respond to blocked TCP traffic with RST >> >and respond with ICMP UNREACHABLE to other blocked traffic. >> > c. Rule 4 instructs PF to ignore traffic on the loopback interface. >> > d. Rule 5 requests packet normalization >> > e. Rule 6 blocks all traffic, except on the ignored loopback interface, >> >and logs them through your pflog(4) interface. >> > >> > Keep in mind, I can only answer questions based upon the information >> > you provide. Based solely on your laptop use-case description, here is >> > a very simple ruleset: >> > >> > block >> > pass from self to any >> > >> > a. Rule 1 blocks all traffic. >> > b. Rule 2 passes all traffic originating on the laptop, going anywhere. >> > >> > How does PF manage inbound traffic with this? >> > >> > Because passed traffic keeps state by default, response packets >> > will be passed. For stateless protocols like UDP or ICMP, state is >> > maintained via timers. >> > >> > In my previous reply to you, I'd reminded you that in PF, the last >> > matching rule wins. When an inbound packet is part of an existing >> > state (TCP session, or within a response timeout window), the rule >> > set will not be tested and the packet will flow. When an inbound >> > packet is not part of any existing state, PF will test it against >> > the rule set and the first rule (block) will be the last one >> > which matches. >> > >> >> >> >> Thanks! >> >> >> >> 2016-06-23 19:20 GMT+02:00 Josh Grosse : >> >> > On 2016-06-23 10:29, Pau Amaro-Seoane wrote: >> >> >> >> >> >> Hi... with these pf rules >> >> >> >> >> >> wifi=iwn0 >> >> >> wired=em0 >> >> >> set block-policy return >> >> >> set skip on lo0 >> >> >> match in all scrub >> &
Re: pf rules
will do so soon... thanks! Pau El 27.06.2016, a les 12:00, Stuart Henderson va escriure: > On 2016-06-25, Josh Grosse wrote: >>b. Use tcpdump(8) to inspect pass/block rules as they >>are applied. The following example command will >>do this "live" while you attempt to use your network, >>output goes to the local terminal window and also to a file. >> >># tcpdump -ni pflog0 | tee /path/to/my.tcpdump.log > > Add -e to the tcpdump line here (it will show action [block/pass/etc], > interfaces, etc), and maybe -vv. > > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
ntfs kernel trap
Hello, I get a kernel trap when reading a 2TB mounted NTFS drive to copy over about 170G of backup data... on stable 6.0 with a thinkpad x220. Why is this causing a kernel fault trap? I have two backup drives on which I copied all of my data, previously hosted on a linux box. One is this and the other one is ext2. This drive is giving me this problem. The ext2 one has a different problem: I get "invalid argument" when I try to copy over the data. I think it might be related to weird names that some files have, unfortunately (not my choice, result of large collaborations), like files containing special characters or empty spaces. I thought a file manager would be smarter than rsync or cp (using "cp --" didn't help either btw). I need to copy those data on the internal drive of my laptop asap. Any idea? Cheers, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
eduroam dropping
Dear all: I have noticed that the eduroam connection is dropping every few minutes. I am in a conference room with about 20 people. All of them are connecting via eduroam and seem to not be suffering these connection drops. They're on macs, linux and I guess windows machines. My wpa_supplicant configuration file looks like ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel ap_scan=0 network={ ssid="eduroam" scan_ssid=1 key_mgmt=WPA-EAP proto=WPA2 eap=PEAP identity="pau" password="my very own passwd" anonymous_identity="anonym...@blabla.de" ca_cert="/home/pau/fitx_confg/eduroam_openbsd/Deutsche_Telekom_Root_CA_2.crt" phase1="peaplabel=0" phase2="auth=MSCHAPV2" priority=2 } I launch it like # ifconfig iwn0 -wpakey # ifconfig iwn0 nwid eduroam wpa wpaakms 802.1x up # wpa_supplicant -Bc /home/pau/fitx_confg/eduroam_openbsd/eduroam_aei.conf -D openbsd -i iwn0 # dhclient iwn0 It connects fine and looks perfect. I can surf, send e-mails etc. After a few minutes I notice that it's dropped. The problem is that I do not even know how to log the activity. Do you see any problem here? thanks, Pau PS: dmesg follows OpenBSD 6.0 (GENERIC.MP) #2319: Tue Jul 26 13:00:43 MDT 2016 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8451125248 (8059MB) avail mem = 8190525440 (7811MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (68 entries) bios0: vendor LENOVO version "8DET56WW (1.26 )" date 12/01/2011 bios0: LENOVO 42914BG acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! TCPA SSDT SSDT DMAR UEFI UEFI UEFI acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3) EHC2(S3) HDEF(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz, 2791.33 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz, 2790.94 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 1, core 0, package 0 cpu2 at mainbus0: apid 2 (application processor) cpu2: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz, 2790.94 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 0, core 1, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz, 2790.94 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 1, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins acpimcfg0 at acpi0 addr 0xf800, bus 0-63 acpiec0 at acpi0 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (PEG_) acpiprt2 at acpi0: bus 2 (EXP1) acpiprt3 at acpi0: bus 3 (EXP2) acpiprt4 at acpi0: bus 5 (EXP4) acpiprt5 at acpi0: bus 13 (EXP5) acpiprt6 at acpi0: bus 14 (EXP7) acpicpu0 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS acpicpu1 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS acpicpu2 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS acpicpu3 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS acpipwrres0 at acpi0: PUBS, resource for EHC1, EHC2 acpitz0 at acpi0: critical temperature is 99 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB "PNP0303" at acpi0 not configured "LEN0020" at acpi0 not configured "SMO1200" at acpi0 not configured acpibat0 at acpi0: BAT0 model "42T4940&
cwm autogroupping with WM_NAME(STRING)
Dear all: Sorry for the spam of today. I have a second question. I am using cwm with autogroups but I wonder whether one could use WM_NAME(STRING) instead of WM_CLASS or, even better, WM_NAME along with WM_CLASS? That's because I like to have mutt on group1 but other xterms in other groups with strings labelled according to the project I am working on. If I only use WM_CLASS, then all xterms go into the same group, unless I CTRL+ALT+g them, one by one... thanks! Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: eduroam dropping
Hi, thanks for the reply. I will check that the next time I'm on eduroam. Could you please explain how do you tether roam via usb your phone? That could be a good fix. Cheers, Pau El 2 nov 2016, a les 12:59, Stuart Henderson va escriure: > On 2016-11-02, Pau Amaro-Seoane wrote: >> Dear all: >> >> I have noticed that the eduroam connection is dropping every few >> minutes. I am in a conference room with about 20 people. All of them >> are connecting via eduroam and seem to not be suffering these >> connection drops. They're on macs, linux and I guess windows machines. > > Are you moving between APs? Check if the bssid in 'ifconfig iwn0' output > changes. If that's the case, "pkill -HUP wpa_supplicant" may well get > it passing traffic again. > > wpa-enterprise on OpenBSD is flaky enough that I tend to usb-tether off > my phone's wifi instead if I need to use it.. > > > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: pf rules
pth: 0 bytes em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address f0:de:f1:d0:be:97 ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 16 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x04: msi azalia0: codecs: Conexant CX20590, Intel/0x2805, using Conexant CX20590 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb4: msi pci1 at ppb0 bus 2 ppb1 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb4: msi pci2 at ppb1 bus 3 iwn0 at pci2 dev 0 function 0 "Intel Centrino Advanced-N 6205" rev 0x34: msi, MIMO 2T2R, MoW, address 10:0b:a9:74:df:54 ppb2 at pci0 dev 28 function 3 "Intel 6 Series PCIE" rev 0xb4: msi pci3 at ppb2 bus 5 ppb3 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb4: msi pci4 at ppb3 bus 13 sdhc0 at pci4 dev 0 function 0 "Ricoh 5U822 SD/MMC" rev 0x07: apic 2 int 16 sdhc0: SDHC 3.0, 50 MHz base clock sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, dma ppb4 at pci0 dev 28 function 6 "Intel 6 Series PCIE" rev 0xb4: msi pci5 at ppb4 bus 14 xhci0 at pci5 dev 0 function 0 "NEC xHCI" rev 0x04: msi usb1 at xhci0: USB revision 3.0 uhub1 at usb1 "NEC xHCI root hub" rev 3.00/1.00 addr 1 ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 23 usb2 at ehci1: USB revision 2.0 uhub2 at usb2 "Intel EHCI root hub" rev 2.00/1.00 addr 1 pcib0 at pci0 dev 31 function 0 "Intel QM67 LPC" rev 0x04 ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x04: msi, AHCI 1.3 ahci0: port 0: 6.0Gb/s scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 0 lun 0: SCSI3 0/direct fixed naa.500a0751033ff239 sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x04: apic 2 int 18 iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-8500 SO-DIMM spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-8500 SO-DIMM isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) wsmouse0 at pms0 mux 0 wsmouse1 at pms0 mux 0 pms0: Synaptics clickpad, firmware 8.0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 aps0 at isa0 port 0x1600/31 uhub3 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2 ugen0 at uhub3 port 3 "UPEK Biometric Coprocessor" rev 1.01/0.02 addr 3 uvideo0 at uhub3 port 6 configuration 1 interface 0 "Chicony Electronics Co., Ltd. Integrated Camera" rev 2.00/8.54 addr 4 video0 at uvideo0 uhub4 at uhub2 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2 umodem0 at uhub4 port 4 configuration 1 interface 1 "Lenovo F5521gw" rev 2.00/0.00 addr 3 umodem0: data interface 2, has CM over data, has break umodem0: status change notification available ucom0 at umodem0 umodem1 at uhub4 port 4 configuration 1 interface 3 "Lenovo F5521gw" rev 2.00/0.00 addr 3 umodem1: data interface 4, has CM over data, has break umodem1: status change notification available ucom1 at umodem1 umodem2 at uhub4 port 4 configuration 1 interface 9 "Lenovo F5521gw" rev 2.00/0.00 addr 3 umodem2: data interface 10, has CM over data, has break umodem2: status change notification available ucom2 at umodem2 ugen1 at uhub4 port 4 configuration 1 "Lenovo F5521gw" rev 2.00/0.00 addr 3 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets root on sd0a (df31d27ca420f865.a) swap on sd0b dump on sd0b sd1 at scsibus3 targ 1 lun 0: SCSI2 0/direct fixed sd1: 222688MB, 512 bytes/sector, 456066736 sectors IFCONFIG: = lo0: flags=8049 mtu 32768 index 4 priority 0 llprio 3 groups: lo inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff00 em0: flags=8802 mtu 1500 lladdr f0:de:f1:d0:be:97 index 1 priority 0 llprio 3 media: Ethernet autoselect (none) status: no carrier iwn0: flags=8843 mtu 1500 lladdr 10:0b:a9:74:df:54 index 2 priority 4 llprio 3 groups: wlan egress media: IEEE802.11 autoselect (HT-MCS7 mode 11n) status: active ieee80211: nwid "MY NETWORK" chan 1 bssid 34:31:c4:64:6f:09 -46dBm wpakey wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip inet 192.168.178.60 netmask 0xff00 broadcast 192.168.178.255 enc0: flags=0<> index 3 priority 0 llprio 3 groups: enc status: active pflog0: flags=141 mtu 33144 index 5 priority 0 llprio 3 groups: pflog Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org 2016-06-25 19:43 GMT+02:00 Josh Grosse : > On Sat, Jun 25, 2016 at 07:16:29PM +0200, Pau Amaro-Seoane wrote
Re: pf rules
Hi Josh et al: I have been trying to use tcpdump after applying these rules: # cat /etc/pf.conf match log block pass from self to any and I get this: # tcpdump -ni pflog0 tcpdump: WARNING: snaplen raised from 116 to 160 tcpdump: listening on pflog0, link-type PFLOG ^C 0 packets received by filter 0 packets dropped by kernel With those pf.conf rules I am not able to do anything. All outgoing traffic seems to be blocked. Although I have added match log, I must admit that I do not know how to look at the log... Any idea? thanks! Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org 2016-06-25 19:43 GMT+02:00 Josh Grosse : > On Sat, Jun 25, 2016 at 07:16:29PM +0200, Pau Amaro-Seoane wrote: >> Dear Josh: >> >> Apologies for being vague. >> >> I mean that I have yours now: >> >> $ cat /etc/pf.conf >> block >> pass from self to any >> #a. Rule 1 blocks all traffic. >> #b. Rule 2 passes all traffic originating on the laptop, going anywhere. >> >> If I enable them with >> >> $ pfctl -e >> >> I can ping anything, but no browser will open anything >> >> If I run >> >> $ pfctl -d >> pf disabled >> >> Then of course everything works just fine. >> >> Pau > > I am at a loss to explain your issue, then. I have just > tested that exact 2-line ruleset here, and am able > to connect to a nameserver for address resolution, connect > to websites with a browser, and connect to an Email client > with ssh in order to post this message. > > Please post additional information. > > 1. Post your dmesg(8). > > $ dmesg > /path/to/my.dmesg > > This will show us the exact version of the OS you are > using, when it was built, and your network interfaces, > among other information. > > 2. Post your ifconfig(8). > > $ ifconfig > /path/to/my.ifconfig > > This will show us how your network interfaces are > configured. Feel free to redact any "real" Internet > facing addresses, if your laptop is on the Internet > rather than on a private network that routes to the > Internet. > > 3. Optionally, collect information to determine if > desired traffic is being blocked by PF. > > a. Add this new rule above the other two: > > match log > > This will log all pass and block rules as they > match through your pflog(4) interface. > > b. Use tcpdump(8) to inspect pass/block rules as they > are applied. The following example command will > do this "live" while you attempt to use your network, > output goes to the local terminal window and also to a file. > > # tcpdump -ni pflog0 | tee /path/to/my.tcpdump.log > >> 2016-06-25 18:35 GMT+02:00 Josh Grosse : >> > On Sat, Jun 25, 2016 at 06:18:18PM +0200, Pau Amaro-Seoane wrote: >> >> thanks, Josh! >> >> >> >> Although with these rules I seem not to be able to send e-mails >> > >> > Which rules? Mine or yours? Please remember I only have what you >> > state in your Emails for a problem description. >> > >> > All I know is that you have a laptop running OpenBSD, and that >> > when you use your "six rule" ruleset, all traffic would be blocked. >> > If you use your "five rule" ruleset, no traffic would be blocked. >> > If you use Stephen's recommended additional line, and build a >> > "seven rule" ruleset that ends with his pass out rule, or, end >> > with my pass from self to any rule, or you use my simple two >> > rule exampe, with either the pass out or the pass from self to any >> > rule, you should have a working ruleset for the use case you >> > described. >> > >> >> ... For >> >> instance, gmail complains about not being able to do so, and it also >> >> says that I seem to have a very old browser, and should load a >> >> simplistic html version of gmail. When I disable pf with pfctl -d, the >> >> email is sent and gmail does not complain about anything. Maybe the >> >> block is also blocking sites from delivering cookies? >> > >> > I can only guess that your normalization ("scrub") directive is the >> > cause of this symptom. >> > >> >> 2016-06-25 15:39 GMT+02:00 Josh Grosse : >> >> > On Sat, Jun 25, 2016 at 09:28:16AM +0200, Pau Amaro-Seoane wrote: >> >> >> pf is disabled, yes... >> >> >&g
Re: pf rules
6.912680 rule 0/(match) block out on iwn0: 192.168.178.60.24763 > 52.87.36.180.843: P 0:138(138) ack 1 win 2048 (DF) 11:54:57.237306 rule 0/(match) block in on iwn0: 149.154.167.57.443 > 192.168.178.60.603: P 0:528(528) ack 1 win 81 (DF) 11:54:58.912676 rule 0/(match) block out on iwn0: 192.168.178.60.24763 > 52.87.36.180.843: P 0:138(138) ack 1 win 2048 (DF) 11:54:59.752714 rule 0/(match) block out on iwn0: 192.168.178.60.4273 > 31.13.93.36.443:FP 0:858(858) ack 1 win 2048 (DF) 11:55:00.159127 rule 0/(match) block in on iwn0: 31.13.93.3.443 > 192.168.178.60.10489: 0:103(103) ack 1 win 2043 (DF) 11:55:01.746956 rule 4/(match) pass out on iwn0: 192.168.178.60.33621 > 192.168.178.1.53 54060+[|domain] 11:55:01.751729 rule 4/(match) pass out on iwn0: 192.168.178.60.30819 > 149.154.167.57.43: S 1837619771:1837619771(0) win 16384 (DF) 11:55:02.722731 rule 0/(match) block out on iwn0: 192.168.178.60.42581 > 149.154.167.57.43: P 0:498(498) ack 1 win 2048 11:55:02.912726 rule 0/(match) block out on iwn0: 192.168.178.60.24763 > 52.87.36.180.843: P 0:138(138) ack 1 win 2048 11:55:03.245621 rule 0/(match) block out on iwn0: 192.168.178.60.10489 > 31.13.93.3.443:P 1:35(34) ack 0 win 2048 (DF) 11:55:03.995814 rule 0/(match) block in on iwn0: 172.217.17.110.443 > 192.168.178.60.4800: P 0:55(55) ack 1 win 845 11:55:04.242692 rule 0/(match) block out on iwn0: 192.168.178.60.10489 > 31.13.93.3.443:P 1:35(34) ack 0 win 2048 (DF) 11:55:04.494559 rule 0/(match) block in on iwn0: 31.13.93.36.443 > 192.168.178.60.4273: P 1:62(61) ack 0 win 2043 (DF) 11:55:06.242691 rule 0/(match) block out on iwn0: 192.168.178.60.10489 > 31.13.93.3.443:P 1:35(34) ack 0 win 2048 (DF) 11:55:07.479037 rule 0/(match) block in on iwn0: 31.13.93.3.443 > 192.168.178.60.10489: P 103:164(61) ack 1 win 2043 (DF) 11:55:07.926448 rule 0/(match) block in on iwn0: 31.13.93.3.443 > 192.168.178.60.10489: 0:103(103) ack 1 win 2043 (DF) 11:55:09.261383 rule 0/(match) block out on iwn0: 192.168.178.60.10489 > 31.13.93.3.443:P 35:199(164) ack 0 win 2048 (DF) 11:55:10.242746 rule 0/(match) block out on iwn0: 192.168.178.60.10489 > 31.13.93.3.443:P 1:199(198) ack 0 win 2048 ^C 133 packets received by filter 0 packets dropped by kernel pyrrha# So... what is it doing? (newbies!) I seem to have now access to email through mutt and I can browse... can you explain the rules you gave me? Again, thanks for your time, patience and explanation. Pau Pau --- Group Leader of Theoretical Astrophysics Max Planck Institute Gravitational Physics Albert Einstein Institute http://astro-gr.org 2016-11-30 2:30 GMT+01:00 Josh Grosse : > On Sat, Nov 26, 2016 at 02:05:55PM +0100, Pau Amaro-Seoane wrote: >> Hi Josh et al: >> >> I have been trying to use tcpdump after applying these rules: >> >> # cat /etc/pf.conf >> match log >> block >> pass from self to any >> >> and I get this: >> >> # tcpdump -ni pflog0 >> tcpdump: WARNING: snaplen raised from 116 to 160 >> tcpdump: listening on pflog0, link-type PFLOG >> >> ^C >> 0 packets received by filter >> 0 packets dropped by kernel >> >> With those pf.conf rules I am not able to do anything. All outgoing >> traffic seems to be blocked. > > I have a correction to my part 3 instructions. As provided to > you, and as applied here, they would have shown a log entry for every > packet processed by PF but not which rule passed or blocked. > > But it appears that PF is not enabled, because no packets are being > logged. PF must be enabled in order to obtain log information. > > Correction #1 > - > > My "match" command will only log every packet as it enters PF, but > not as it is blocked or passed. That is because the "match log" rule > is not sticky, the way that "match" rule for other options does apply > to later block or pass rules. > > So remove the match rule, and instead, add "log" to the block and the > "pass" rules, such as: > > block log > pass log from self to any > > Correction #2 > - > > Along with enabling PF in order to log, you forgot to use the -e i > option with your tcpdump(8) command as Stuart recommended. :) > > After revising the pf.conf file per Correction #1 be sure > to enable PF when you load the revised rule set: > > # pfctl -ef /etc/pf.conf > > Start tcpdump() with three options. -n, -e, and -i. > > # tcpdump -nei pflog0 ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
Re: random reboot?
Hi... memory seems to not be the problem. I'm on the 5th Memtest86+ pass after 8:30 hours and I have "Errors: 0". More info here: https://s11.postimg.org/pu0ubv88wz/IMG_3025.jpg Pau El 7 des 2016, a les 0:02, Jim Barchuk va escriure: > > On Tue, 6 Dec 2016, Josh Grosse wrote: > >> This assumes that the hardware is working and there is enough >> of the OS still running to be able to crash(). >> >> Random reboots without a crash() most commonly are caused by hardware >> problems. While it is possible to have a software root cause, the >> odds of a hardware problem are much higher. > > Faulty memory is common. They have lifetime warranty, but they don't test > them at manufacture time because it's cheaper to give the customer another > one if one fails. > > Try memtest86.com. I test every new PC I build with it, and it's one of the > first troubleshooting tools I use when hardware might be the issue. As was > mentioned, hardware is your most likely issue. > > -- > Jim Barchuk > j...@jbarchuk.com > ___ > Openbsd-newbies mailing list > Openbsd-newbies@sfobug.theapt.org > http://mailman.theapt.org/listinfo/openbsd-newbies ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies
thinkpad x1 carbon 4th generation
Hello: I just got one of these at work. I have installed a small partition with linux because I need to use skype for large collaborations and the rest of the hard drive is for openbsd, I have installed 6.1 I cannot post here my dmesg because I still could not run fw_update on it (there's only wireless here). The point is that sometimes, not always, after boot, when I am on the xdm screen (its newer alternative, forgot the name), the keyboard does not react properly and writes random characters, followed/combined with a beep. Its not a hw problem, because it works on linux well. My guess is that this can be related to the uefi? I will provide more details if required when I find a way to connect it to the internet. Has somebody else had this problem? Cheers, Pau ___ Openbsd-newbies mailing list Openbsd-newbies@sfobug.theapt.org http://mailman.theapt.org/listinfo/openbsd-newbies