Re: User mount cdrom?
On 6/9/07, Timothy Wilson [EMAIL PROTECTED] wrote: Hello, I'm having great difficulty allowing my users to mount the cdrom. I've looked in the faq and both fstab and mount manpages, but still can't find it! I think the GNU tools allow: Hello Tim: I got user mount of the CDROM to work as follows: 1) Edit /etc/sysctl.conf and insert kern.usermount=1 2) As root, do # mkdir /cdrom # cd /cdrom # mkdir tim (assuming the user account is named tim) 3) Do: # chown tim /cdrom/tim this is based on the comment from: ___ http://monkey.org/openbsd/archive/misc/0309/msg01664.html /* * If the user is not root, ensure that they own the directory * onto which we are attempting to mount. */ 4) Edit /etc/fstab and insert the following line: /dev/cd0a /cdrom/tim cd9660 ro,noauto 0 0 5) Add the user tim to the operator group, in /etc/group like so: operator:*:5:root,tim - To make a user mountable thumb drive: 1) Make sure /etc/sysctl.conf has: kern.usermount=1 2) As root, do # mkdir /thumb # cd /cdrom # mkdir tim (assuming the user account is named bsd) 3) Do: # chown tim /thumb/tim Again see: http://monkey.org/openbsd/archive/misc/0309/msg01664.html for the details. 4) Edit /etc/fstab and insert the following line: /dev/sd0i /thumb/tim msdos rw,noauto 0 0 5) Again, make sure the user tim is in the operator group, in /etc/group like so: operator:*:5:root,tim 6) Last step, do # chmod g+w /dev/sd0i (sd0i is the mount point for the USB thumb drive) -- Kind regards, Jonathan
gmplayer locks up Fvwm
OpenBSD 4.1 GENERIC#0 i386 Hi: Don't know if any one else experienced this. When gmplayer is activated from Fvwm's menu then it locks up fvwm. To reproduce: 1) Put: +GMplayer Exec exec gmplayer in the RootMenu section, of the .fvwmrc 2) Restart Fvwm 3) Click on GMplayer in the Fvwm menu. 4) Fvwm locks up and requires ALT-CTL-Backspace The fix is show here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg08129.html Namely make the menu entry as so: + GMplayerExec exec xterm -iconic -e gmplayer -- Kind regards, Jonathan
Re: CUPS
On 2/24/07, Tang Tse [EMAIL PROTECTED] wrote: Hi, Thanks for your answear. So best i use linux for a printer server? Hello Tang: You can still get printing to work on OpenBSD. Suppose your printer is an HP 600 Deskjet, you would do the following: 1) Go to http://openprinting.org/printer_list.cgi?make=HP and look for the Deskjet 600 *.ppd. Download the *.ppd from here: http://openprinting.org/show_printer.cgi?recnum=HP-DeskJet_600 . 2) Install a2ps-4.13bp3-a4.tgz from packages. pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/a2ps-4.13bp3-a4.tgz 3) pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/hpijs-1.5.tgz to install the HP print driver 4) Modify your /etc/printcap so that it looks like this: lp|HP600:\ :lp=/dev/ulpt0:\ :af=/usr/local/sbin/HP-DeskJet_600-hpijs.ppd:\ :if=/usr/local/bin/foomatic-rip:\ :sd=/var/spool/output/lp:\ :lf=/var/spool/output/lp/log:\ :mx#0:\ :sh: This assumes that you are using a USB printer. 5) Go to /var/spool/output # cd /var/spool/output do: #mkdir lp then do: #chown daemon:daemon lp/ as root. 6) As root do: # touch /var/spool/output/lp/log 7) edit /etc/rc.conf by changing the variable lpd_flags=NO to lpd_flags= 8) Reboot the computer and printing should be working. 9) You may need to change the defaults in /etc/a2ps-site.conf. See http://www.infres.enst.fr/~demaille/a2ps/doc-4.12/a2ps_toc.html for details on configuring the a2ps-site.conf -- Kind regards, Jonathan
Re: OpenBSD speed on desktops
On 2/17/07, R. Fumione [EMAIL PROTECTED] wrote: Hello, I am using OpenBSD on server since few years now, and I am very happy with it's easy maintenance and it's stability. I want to try on desktop, and I am having trouble. Everything is much slower than existing Linux system. For example, Firefox takes 3-5 seconds to start on Linux but ~10 seconds on OpenBSD on same machine! Hi: Slowdowns for large applications for Firefox and Gimp can beaccompanied by the following warning: Gdk-WARNING**: shmget failed: error 28 (no space left on device) This can fixed by setting sysctl kern.shminfo.shmseg=128 sysctl kern.shminfo.shmall=32768 In /etc/sysctl.conf See: Re: dillo - Gdk-ERROR ? http://monkey.org/openbsd/archive/ports/0309/msg00164.html Another cause of the slowdowns mayy be that /etc/login.conf class default does not not allow enough files to be open at the same time. in /etc/login.conf change: :openfiles-cur=64:\ to :openfiles-cur=256:\ I have used OpenBSD as a desktop for several years and the slowdowns are not caused by a defect in the OS. In fact I use 4.0 on an ancient Pentium I with 96 MB of ram and it's load speed is satisfactory. -- Kind regards, Jonathan
Re: Text Editor
On 9/12/05, Joco Salvatti [EMAIL PROTECTED] wrote: Hi all. I'd like to know if anyone can tell me a good text editor that runs under X environment. Ted 2.17 http://www.nllgg.nl/Ted/ an *.rtf editor has been tested heavily on OpenBSD 3.5 and 3.6. Get the ted-2.17.src.tar.gz tarball. You can install it as a local user. To do that: 1) Unpack the tarball. 2) Make sure that you have openmotif installed (usr/ports/ x11/openmotif). 3) As a regular user do $ make 4) Then do $ make private Ted will create 4 directories: ~/Ted, ~/bin, ~/afm and ~/ind. Ted can export to *pdf using the script ~/Ted/rtf2pdf.sh and also save *.rtf documents to *.html. In addition it can copy and paste images as well as text. Spell check is available in Spanish and Portuguese also. -- Kind regards, Jonathan
Re: BSD PPPoA Hardware
On 8/27/05, Simon Morgan [EMAIL PROTECTED] wrote: On 8/15/05, Simon Morgan [EMAIL PROTECTED] wrote: Does anyone have any suggestions? Any advice is welcome. To anyone who might be reading this in the future (Hi! Do you have robots and flying cars yet?), I've given up looking for a native solution. The state of ADSL hardware support under BSD as well as Linux is shockingly bad and simply isn't worth bothering with. Hi Simon and others: I am using an Actiontec model GT701R DSL modem for PPPoA here on OpenBSD 3.6. It was easy to configure. The Modem itself has the address of 192.168.0.1 and does the Network Address Translation. First, I did: /usr/bin/sudo ifconfig bge0 inet 192.168.0.5 netmask 255.255.255.0 then /usr/bin/sudo route add default 192.168.0.1 Afterwards, I configured it with Firefox. Lynx or Links would not work. The DSL modem and PPPoA works like a charm. -- Kind regards, Jonathan
Re: Create my own shell?
On 7/25/05, Jon Drews [EMAIL PROTECTED] wrote: On 7/25/05, Abel Talaversn Estevez [EMAIL PROTECTED] wrote: I need to create a particular but simple shell for a firewall running OpenBSD 3.6. The idea is create a user whose shell is a very limited one. Hi: Operating ksh in restricted mode may fulfill your needs. Oops - this is not true. I set up an account with rksh (ksh -r) and it is possible for the user to still switch shells. For the details on this see: Practical Unix Internet Security, 3rd Edition by Simson Garfinkel, Gene Spafford, Alan Schwartz. The relevant material is on pages 576 to 578. Basically the restricted shell can be subverted and they advise using chroot. -- Kind regards, Jonathan
Re: Create my own shell?
On 7/25/05, Abel Talaversn Estevez [EMAIL PROTECTED] wrote: Hi all, I need to create a particular but simple shell for a firewall running OpenBSD 3.6. The idea is create a user whose shell is a very limited one. This shell or command line interpreter (CLI) must have permissions only in the home directory. Hi: Operating ksh in restricted mode may fulfill your needs. Here from the man page for ksh (this is the public domain Korn Shell in OpenBSD): -r Restricted shell. A shell is ``restricted'' if this option is used or if either the basename the shell was invoked with or the SHELL parameter match the pattern ``*r*sh'' (e.g. rsh, rksh, rpdksh). The following restrictions come into effect after the shell processes any profile and ENV files: o The cd command is disabled. o The SHELL, ENV, and PATH parameters cannot be changed. o Command names can't be specified with absolute or relative paths. o The -p option of the built-in command command can't be used. o Redirections that create files can't be used (i.e. `', `|', `', `'). -- Kind regards, Jonathan
Re: Tutorial
On 6/28/05, Matt Juszczak [EMAIL PROTECTED] wrote: Tried to install OpenBSD but kept getting errors that it couldn't create the disklabel. Maybe I was doing something wrong. Is there a nice tutorial to install it? The book Absolute OpenBSD has a very detailed chapter on installation, that covers disklabel. -- Kind regards, Jonathan
Re: External, USB hard drives
On 6/23/05, Steven Bowers [EMAIL PROTECTED] wrote: I'd like to attach an external USB hard drive to my 3.7 machine so that I can back various files on a scheduled basis. Not having used a USB drive before thought I would ask here about them first. I am using a Seagate 80 GB USB 2.0 hard drive and it works fine. I am running OpenBSD 3.6. -- Kind regards, Jonathan
Re: Does OpenBSD Have a Spreadsheet That Prints Properly?
On 6/13/05, Dave Feustel [EMAIL PROTECTED] wrote: Yes. Note that my problem is not printing pdf files, it is creating pdf files from within gnumeric. OK, these are the dependencies I have for Gnumerics printing: libgnomeprintui-2.6.2 gtksourceview-1.0.1 libgnomeprint-2.6.2 do you have these also ? -- Kind regards, Jonathan
Re: Gnumeric on 3.6
On 6/13/05, Dave Feustel [EMAIL PROTECTED] wrote: The gnumeric developers assert that gnumeric is 'stable' ie rarely crashes. Yet my experience is that gnumeric crashes *frequently* while attempting to create pdf files. Does anyone else running gnumeric on 3.6 or 3.7 experience gnumeric crashing during the creation of pdf files? No - Gnumeric makes *pdf's just fine here on 3.6. I have been using Gnumeric for about a year on this OpenBSD laptop. Both the Gnumeric that ws in 3.5 and this one (1.2.13) work pretty good. There are some MS *.xls that I have trouble opening but those are pretty infrequent. Dave, maybe something got corrupted on your OpenBSD ports ? I'd need more info to be of help. -- Kind regards, Jonathan
Re: Does OpenBSD Have a Spreadsheet That Prints Properly?
On 6/13/05, Dave Feustel [EMAIL PROTECTED] wrote: I can say from experience that, running with KDE, neither Kspread nor Gnumeric on OpenBSD 3.6 are useable (by me, at least) for hard copy of even simple spreadsheets. I am beginning to think *very* seriously about using a Windows computer *just* to run MS Excel so I can get reliably and straightforwardly the hard copy I need. Neither gnumeric nor kspread running on OpenBSD 3.6 qualify on the basis of my brief experience with those two programs. Hi Dave: I am using: gnumeric-1.2.13 on OpenBSD notebook.silbsd.org 3.6 GENERIC#4 i386 I use this Gnumeric spreadsheet every day. I printed out a *.gnumeric OK here on lpr: Rank Owner Job Files Total Size active xfce 159 (standard input) 302758 bytes So it does work and work well. Are you able to print other jobs ? Are you using CUPS or lpd ? -- Kind regards, Jonathan