|
|
|
|
|
|
| Author |
Message |
Martin Schöön *nix forums Guru
Joined: 22 Feb 2005
Posts: 2122
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Printing On 3.6 - resolved
|
|
|
Looking at the dmesg output made me see that I didn't have a generic
kernel after all. Compiled GENERIC.MP, installed it and the printing
problem disappeared. "Why" is another issue.
Lux |
|
| Back to top |
|
 |
Martin Schöön *nix forums Guru
Joined: 22 Feb 2005
Posts: 2122
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Printing On 3.6
|
|
|
Have tried several times (using the standard SMP 3.6 kernel)
to get apsfilter configured using the SETUP script. Trying to
print the test page consistenly kills the entire system immediately,
causing it to reboot. (Wow!)
Here is my /var/run/dmesg.boot:
OpenBSD 3.6-stable (MC0) #0: Sat Feb 5 17:44:43 CET 2005
root@mc0.hfc30-01-15.datazug.ch:/sys/arch/i386/compile/MC0
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 401 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem = 133787648 (130652K)
avail mem = 115273728 (112572K)
using 1658 buffers containing 6791168 bytes (6632K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(ac) BIOS, date 03/03/00, BIOS32 rev. 0 @ 0xf0530
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xda2
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf0d20/128 (6 entries)
pcibios0: PCI Interrupt Router at 000:04:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x4000
mainbus0: Intel MP Specification (Version 1.1) (OEM00000 PROD00000000)
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: apic clock running at 100 MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 401 MHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
mainbus0: bus 0 is type PCI
mainbus0: bus 1 is type PCI
mainbus0: bus 2 is type ISA
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Mach64 GZ" rev 0x7a
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 4 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 4 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <IBM-DTTA-371440>
wd0: 16-sector PIO, LBA, 13783MB, 28229040 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, DVD-ROM SR-8585, 1W29> SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 4 function 2 "Intel 82371AB USB" rev 0x01: apic 2 int
19 (irq 9)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power Mgmt" rev 0x02 at pci0 dev 4 function 3 not configured
eap0 at pci0 dev 9 function 0 "Ensoniq AudioPCI97" rev 0x06: apic 2 int
19 (irq 9)
ac97: codec id 0x54524103 (TriTech Microelectronics TR28023)
audio0 at eap0
tl0 at pci0 dev 10 function 0 "Compaq Netelligent 10 T/2 PCI" rev 0x10:
apic 2 int 18 (irq 5) address 00:80:5f:f1:49:a7
ukphy0 at tl0 phy 31: Generic IEEE 802.3u media interface
ukphy0: OUI 0x100014, model 0x0001, rev. 5
iha0 at pci0 dev 11 function 0 "Initio INIC-940" rev 0x01: apic 2 int 17
(irq 10)
scsibus1 at iha0: 8 targets
iha0: target 2 using 8 bit 10.0 MHz 15 REQ/ACK offset xfers
sd0 at scsibus1 targ 2 lun 0: <SyQuest, SyJet-S, 0112> SCSI2 0/direct
removable
sd0: 1430MB, 5258 cyl, 4 head, 139 sec, 512 bytes/sec, 2929800 sec total
iha0: target 3 using 8 bit 10.0 MHz 15 REQ/ACK offset xfers
st0 at scsibus1 targ 3 lun 0: <SONY, SDT-9000, 0403> SCSI2 1/sequential
removable
st0: drive empty or not ready
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83781D
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 0 netmask 0 ttymask 0
ioapic0: pin 19 shares different IPL interrupts (40..90), degraded
performance
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
dkcsum: sd0 had no matching BIOS disk
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
WARNING: / was not properly unmounted
apm0: disconnected
Greetings,
Lux |
|
| Back to top |
|
 |
jim *nix forums beginner
Joined: 19 Feb 2005
Posts: 1
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Token-Ring support ?
|
|
|
paul@salon-langenmair.de wrote:
| Quote: | Hello group,
is there anybody who have a token-ring device running under openbsd ?
I must connect 2 token-ring over 2 openbsd boxes with pf, carp and
pfsync,
but firewalling is not the problem.
With google i can`t find what i need and at openbsd.org i dont see any
tr
device supported.
Thanks
Hi Paul, |
I've been having the same prolem, and though the kernel seems to have
drivers for isa cards, I never got it to work.
I use Linux for all token ring stuffs and OpenBSD where I've got
ethernet networks.
You can under Linux have 100M token ring with Madge cards and their driver. |
|
| Back to top |
|
 |
Jorey Bump *nix forums Guru Wannabe
Joined: 26 Feb 2005
Posts: 281
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Remotely run a program, display on console
|
|
|
"Bas Keur" <bas.keur@dmrt.net> wrote in
news:4205b458$0$28986$e4fe514c@news.xs4all.nl:
| Quote: | Thanks, that's handy. Do you have one that will apply security
updates (now, who's the lazy bum)?
lynx -dump www.openbsd.org/errata.html|grep pub|awk '{print $2}'
Or have a daily visit at www.undeadly.org
But seriously, what is the best way to update OpenBSD?
For as far as patching go's
cd /usr/src
patch -p0 < 001.file.patch
I try to avoid having to upgrade the OS by from /usr/src.
It's not that i expect any problems, it's just that a new install
takes about 10 minutes & i'm sure the box is `fresh`
|
Same here, I'm just interested in security updates for the latest stable
release, and the only information I've seen involves patching source. I
was hoping that there were replacement packages that could be installed
over the old ones. I see the ones at:
http://www.openbsd.org/pkg-stable.html
but they don't include things from the errata page (no BIND, for
example).
| Quote: | And to keep it interesting, what is the best way to do it on
a 486 with 16MB of RAM and 138MB of free disk space? ))
Are you working in a museum ? A 486 whould take about
guessing> 4 days to recomile /usr/src. May i suggest you
trow it from a bridge
|
Someone already did. Guess who found it? On a lark, I installed OpenBSD
on it and am currently using it as the DNS server on my home network.
Noone is more surprised than I am that this box could be recycled.
Because OpenBSD can be installed on boxes with such tight disk
constraints (this one is 290MB), it's a good candidate for installing on
a Compact Flash card using an IDE adapter on a mini-ITX. This is one
reason I am interested in binary security updates (a distant second to
pure laziness).
My other boxes can patch the source without any difficulty. But those
will also be slow and underpowered one day. Running stress tests on my
50MHz 486 can give me a glimpse into The Future. In fact, apache is
delivering a blazingly fast 10 requests/sec on it as we speak (Uh-oh,
just took it offline with 100 concurrent requests. "Fast and capable
486DX2", my ass.).  |
|
| Back to top |
|
 |
Bas Keur *nix forums beginner
Joined: 06 Apr 2005
Posts: 38
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Remotely run a program, display on console
|
|
|
| Quote: | Thanks, that's handy. Do you have one that will apply security updates
(now, who's the lazy bum)?
|
lynx -dump www.openbsd.org/errata.html|grep pub|awk '{print $2}'
Or have a daily visit at www.undeadly.org
| Quote: | But seriously, what is the best way to update OpenBSD?
|
For as far as patching go's
cd /usr/src
patch -p0 < 001.file.patch
I try to avoid having to upgrade the OS by from /usr/src.
It's not that i expect any problems, it's just that a new install
takes about 10 minutes & i'm sure the box is `fresh`
| Quote: | And to keep it interesting, what is the best way to do it on
a 486 with 16MB of RAM and 138MB of free disk space? ))
|
Are you working in a museum ? A 486 whould take about
<guessing> 4 days to recomile /usr/src. May i suggest you
trow it from a bridge :)
| Quote: | I gave up on Windows servers a long time ago,
but i kept the mouse as well as the copy/paste habbit =]
Huh. You can use Windows on servers?
That would make an interesting experiment...
|
A mental one.
| Quote: | Or is it some sort of monitor/stats idea ?
Yes.
Is there any reason why an X server doesn't do the job ?
Disaster is only a mouse click away.
|
Then.... unplug it :)
| Quote: | Just give him a windows box and install something like
exceed or reflection (Win32 X servers) so you can
export a display/terminal running the req. program to his
windows machine. You can specify some nice policies as
well, so he can't ctrl+z a shell etc. (A friendly warning while
holding a lead pipe works pretty fine as well.)
I'm already using Cygwin with excellent results, and have considered
setting it up on user b's computer to do as you propose. In fact, the use
of special purpose ssh keys may make this a plausible way for user b to
start the programs without my intervention.
|
ok
| Quote: | I can start it from a screen session and detach, if that's what you mean.
As for handing the screen session over to someone else, it might be like
handing the steering wheel over to an inexperienced driver. Lesson 1:
"UNIX is case-sensitive." Lesson 2: "There is no C: drive." You get the
idea...
|
Thats why i like the reflection/exceed packages, it's very idiot proof.
He just have to `click` the icon, wich will rsh/ssh/telnet whatever
to wherever and run some giving shell commands. The only thing
the user is getting on his screen is the ending result.
| Quote: | So I created a user with a restricted shell.
Wich one, just curious.
It works with rksh, which comes with the basic installation of OpenBSD.
But since I prefer bash, and already tailored /etc/profile for it, I
created a symlink to it named rbash, which serves the same purpose.
|
Ok, you might also want to compile your own bash from source
and run the bofh patch over it. Logs keystrokes trough syslog
http://www.ccitt5.net/archives/bash-bofh-2.05b-0.0.1.tar.gz
For the real paranoid :)
| Quote: | While it's possible to direct output to the console when nobody is
logged in, it's sometimes unreadable. For example, ntop works great
(as long as nobody touches the keyboard), but top doesn't.
Maybe you can replace the vt220 term with ansi or xterm-color
*never tried it though*
Thanks for your help.
|
ok :)
--
] Bas Keur
] `Energizer Bunny arrested, charged with battery` |
|
| Back to top |
|
 |
Jorey Bump *nix forums Guru Wannabe
Joined: 26 Feb 2005
Posts: 281
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Remotely run a program, display on console
|
|
|
"Bas Keur" <bas.keur@dmrt.net> wrote in
news:420556c1$0$28975$e4fe514c@news.xs4all.nl:
| Quote: | And who says OpenBSD needs apt-get?
A little voice in my head says it misses `the upgrade` function
from rpm/apt etc. Then again, we all know what kind of
problems THAT will/can/shall cause :)
Seriously, thanks, I was just trying
to figure out a way to simplify fetching packages from my favorite
mirror. I can use this to create a function in my profile.
Well, in this case you might even like my 'Lazy Bum' script
http://www.dmrt.net/viper/code/scripts/package_install.sh
1: Like you said, plz use a local mirror in it.
2: Have ncftp installed to use it.
[viper@aspav viper]$ sh package_install.sh
[viper@aspav viper]$ grep wget package_install.html
pkg_add -v
ftp://ftp.nluug.nl/pub/OpenBSD/3.6/packages/i386/wget-1.8.2.tgz
|
Thanks, that's handy. Do you have one that will apply security updates
(now, who's the lazy bum)?
But seriously, what is the best way to update OpenBSD? And to keep it
interesting, what is the best way to do it on a 486 with 16MB of RAM and
138MB of free disk space? ))
| Quote: | I gave up on Windows servers a long time ago,
but i kept the mouse as well as the copy/paste habbit =]
|
Huh. You can use Windows on servers? That would make an interesting
experiment...
| Quote: | $ screen -r
Nice tip. I use screen a lot, but it won't work for me in this
instance. It needs to be a passive experience for user b, who has
very fat fingers. Imagine user b is watching TV, but I have the
remote.
(How cruel
|
Only to be kind...
| Quote: | May the user `interact` with the tool ?
|
No.
| Quote: | Or is it some sort of monitor/stats idea ?
|
Yes.
| Quote: | Is there any reason why an X server doesn't do the job ?
|
Disaster is only a mouse click away.
| Quote: | Just give him a windows box and install something like
exceed or reflection (Win32 X servers) so you can
export a display/terminal running the req. program to his
windows machine. You can specify some nice policies as
well, so he can't ctrl+z a shell etc. (A friendly warning while
holding a lead pipe works pretty fine as well.)
|
I'm already using Cygwin with excellent results, and have considered
setting it up on user b's computer to do as you propose. In fact, the use
of special purpose ssh keys may make this a plausible way for user b to
start the programs without my intervention.
| Quote: | top > /dev/console
This does exactly want I want it to do.
But it requires someone to be logged in at the console. :(
Not when running it with screen noh ?
|
I can start it from a screen session and detach, if that's what you mean.
As for handing the screen session over to someone else, it might be like
handing the steering wheel over to an inexperienced driver. Lesson 1:
"UNIX is case-sensitive." Lesson 2: "There is no C: drive." You get the
idea...
| Quote: | So I created a user with a restricted shell. :P
Wich one, just curious.
|
It works with rksh, which comes with the basic installation of OpenBSD.
But since I prefer bash, and already tailored /etc/profile for it, I
created a symlink to it named rbash, which serves the same purpose.
| Quote: | While it's possible to direct output to the console when nobody is
logged in, it's sometimes unreadable. For example, ntop works great
(as long as nobody touches the keyboard), but top doesn't.
Hmmm, i'm pretty sure ntop comes ncurses.
curses(3) - CRT screen handling and optimization package
This is the reason why i guess.
Try some different terminals
# grep console /etc/ttys
console "/usr/libexec/getty Pc" vt220 off secure
Maybe you can replace the vt220 term with ansi or xterm-color
*never tried it though*
|
No effect.
But ntop is really the application I had in mind, so I'm pretty happy,
for now. :)
Thanks for your help. |
|
| Back to top |
|
 |
Bas Keur *nix forums beginner
Joined: 06 Apr 2005
Posts: 38
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Remotely run a program, display on console
|
|
|
| Quote: | And who says OpenBSD needs apt-get?
|
A little voice in my head says it misses `the upgrade` function
from rpm/apt etc. Then again, we all know what kind of
problems THAT will/can/shall cause :)
| Quote: | Seriously, thanks, I was just trying
to figure out a way to simplify fetching packages from my favorite
mirror. I can use this to create a function in my profile.
|
Well, in this case you might even like my 'Lazy Bum' script
http://www.dmrt.net/viper/code/scripts/package_install.sh
1: Like you said, plz use a local mirror in it.
2: Have ncftp installed to use it.
[viper@aspav viper]$ sh package_install.sh
[viper@aspav viper]$ grep wget package_install.html
pkg_add -v ftp://ftp.nluug.nl/pub/OpenBSD/3.6/packages/i386/wget-1.8.2.tgz
I gave up on Windows servers a long time ago,
but i kept the mouse as well as the copy/paste habbit =]
| Quote: | $ screen -r
Nice tip. I use screen a lot, but it won't work for me in this instance.
It needs to be a passive experience for user b, who has very fat fingers.
Imagine user b is watching TV, but I have the remote.
|
(How cruel
May the user `interact` with the tool ?
Or is it some sort of monitor/stats idea ?
Is there any reason why an X server doesn't do the job ?
Just give him a windows box and install something like
exceed or reflection (Win32 X servers) so you can
export a display/terminal running the req. program to his
windows machine. You can specify some nice policies as
well, so he can't ctrl+z a shell etc. (A friendly warning while
holding a lead pipe works pretty fine as well.)
| Quote: | top > /dev/console
This does exactly want I want it to do.
But it requires someone to be logged in at the console.
|
Not when running it with screen noh ?
| Quote: | So I created a user with a restricted shell.
|
Wich one, just curious.
| Quote: | While it's possible to direct output to the console when nobody is logged
in, it's sometimes unreadable. For example, ntop works great (as long as
nobody touches the keyboard), but top doesn't.
|
Hmmm, i'm pretty sure ntop comes ncurses.
curses(3) - CRT screen handling and optimization package
This is the reason why i guess.
Try some different terminals
# grep console /etc/ttys
console "/usr/libexec/getty Pc" vt220 off secure
Maybe you can replace the vt220 term with ansi or xterm-color
*never tried it though*
| Quote: | Hope this helps.
It did. Thanks. screen will come in handy when I want to output something
to the console but leave it running for a while. I can simply detach from
the session and attach to it later.
|
Handy with torrent clients & irc as well :)
] Bas Keur
] `Energizer Bunny arrested, charged with battery` |
|
| Back to top |
|
 |
Jorey Bump *nix forums Guru Wannabe
Joined: 26 Feb 2005
Posts: 281
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Remotely run a program, display on console
|
|
|
"Bas Keur" <bas.keur@dmrt.net> wrote in
news:42044e31$0$28980$e4fe514c@news.xs4all.nl:
| Quote: | I'd like to log into a box remotely and run a curses-based program,
but have the output display on the console for a colleague to view.
Is this possible?
*I might be very wrong here*
But my though is that unless you make use of the X server
for exporting Xterm consoles your stuck with screen as
far as the managing go's on terminals (Do note the *)
I'm running multiple serial console related tools in the background
for multiple users using screen,
Have a try
# ftp "ftp://ftp.openbsd.org/pub/OpenBSD/`uname -r`/\
packages/`uname -m`/screen*static.tgz"
# pkg_add -v screen-*
|
And who says OpenBSD needs apt-get? Seriously, thanks, I was just trying
to figure out a way to simplify fetching packages from my favorite
mirror. I can use this to create a function in my profile.
| Quote: | ---user a
$ screen top
press [ctrl] + [a] + [d]
[session detached]
---user b
$ screen -r
|
Nice tip. I use screen a lot, but it won't work for me in this instance.
It needs to be a passive experience for user b, who has very fat fingers.
Imagine user b is watching TV, but I have the remote.
| Quote: | If so, can it be sent to the console screen without anyone being
logged in?
Try looking at the screen man page, it has loads of options.
It might have some sort of /etc/ttys redirect, mix that with ssh
and your problem should be solved.
For example, I'd like to launch top, have it appear on the screen,
and continually update normally, without scrolling.
If all fails dump top output to a file.
$ while true;do top -b -o cpu && sleep 1 && clear;done >> /tmp/output
|
The simplest solution seems to be this:
top > /dev/console
This does exactly want I want it to do. :)
But it requires someone to be logged in at the console. :(
So I created a user with a restricted shell. :P
While it's possible to direct output to the console when nobody is logged
in, it's sometimes unreadable. For example, ntop works great (as long as
nobody touches the keyboard), but top doesn't.
It did. Thanks. screen will come in handy when I want to output something
to the console but leave it running for a while. I can simply detach from
the session and attach to it later. |
|
| Back to top |
|
 |
Bas Keur *nix forums beginner
Joined: 06 Apr 2005
Posts: 38
|
|
| Back to top |
|
 |
Bas Keur *nix forums beginner
Joined: 06 Apr 2005
Posts: 38
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Real time log analysis and action
|
|
|
| Quote: | I know I can run a script that runs every minute as a cron job but I want
something even more responsive than that, like on the order of 3-5
seconds.
You can convince syslog to pipe selected messages to a command.
syslog.conf
Regards,
Dorian
|
Note when piping to `mail`
IF for some reason your ISP calls you screaming MAIL BOMB DOS !!
you might have a fast connection on the server and decided 24 hours earlier
you would like to .forward syslog messages by mail to your private/home ISP.
Changes are your file system is full heheh :)
] Bas Keur
] `Energizer Bunny arrested, charged with battery` |
|
| Back to top |
|
 |
Bas Keur *nix forums beginner
Joined: 06 Apr 2005
Posts: 38
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Remotely run a program, display on console
|
|
|
| Quote: | I'd like to log into a box remotely and run a curses-based program, but
have the output display on the console for a colleague to view. Is this
possible?
|
*I might be very wrong here*
But my though is that unless you make use of the X server
for exporting Xterm consoles your stuck with screen as
far as the managing go's on terminals (Do note the *)
I'm running multiple serial console related tools in the background
for multiple users using screen,
Have a try
# ftp "ftp://ftp.openbsd.org/pub/OpenBSD/`uname -r`/\
packages/`uname -m`/screen*static.tgz"
# pkg_add -v screen-*
---user a
$ screen top
press [ctrl] + [a] + [d]
[session detached]
---user b
$ screen -r
| Quote: | If so, can it be sent to the console screen without anyone being logged
in?
|
Try looking at the screen man page, it has loads of options.
It might have some sort of /etc/ttys redirect, mix that with ssh
and your problem should be solved.
| Quote: | For example, I'd like to launch top, have it appear on the screen, and
continually update normally, without scrolling.
|
If all fails dump top output to a file.
$ while true;do top -b -o cpu && sleep 1 && clear;done >> /tmp/output
Hope this helps.
--
] Bas Keur
] `Energizer Bunny arrested, charged with battery` |
|
| Back to top |
|
 |
808blogger *nix forums beginner
Joined: 19 Feb 2005
Posts: 2
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Q Xwindows on Ultrasparc10
|
|
|
correct
Ignore my useless ramblings....
my brain must have farted when i was typing it |
|
| Back to top |
|
 |
Nicholas Marriott *nix forums beginner
Joined: 14 Mar 2005
Posts: 6
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Q Xwindows on Ultrasparc10
|
|
|
"808blogger" <808blogger@gmail.com> wrote...
| Quote: | try a 'locate startx'
if thats not there no x11
I DONT recomment compiling it from the ports tree as that is slow
|
ports? What?
If the /usr/X11R6 dir doesn't exist, he needs to get the X distribution sets
(xbase??.tgz, xetc??.tgz, etc) and look at:
http://www.openbsd.org/faq/faq4.html#AddFileSet
If it does exist, he needs to a) read the FAQ, there are several parts about
X and b) if none of them help, be more specific on how it doesn't work.
| Quote: | so i would burn all of the packages for x11 onto a cd and pk_add them
otherwise download ports and untar it
cd /usr/ports/x11
|
Once X is installed any X apps wanted can be installed from packages or
ports in the normal way.
-- Nicholas. |
|
| Back to top |
|
 |
808blogger *nix forums beginner
Joined: 19 Feb 2005
Posts: 2
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Q Xwindows on Ultrasparc10
|
|
|
try a 'locate startx'
if thats not there no x11
I DONT recomment compiling it from the ports tree as that is slow
so i would burn all of the packages for x11 onto a cd and pk_add them
otherwise download ports and untar it
cd /usr/ports/x11
make install
PREPARE TO WAIT FOR DAYS
well i dunno about days anymore... well just longer than i like to wait |
|
| Back to top |
|
 |
Charlie Gibbs *nix forums beginner
Joined: 12 Mar 2005
Posts: 45
|
Posted: Sat Feb 19, 2005 7:59 pm Post subject:
Re: Firewall stops working - how to diagnose?
|
|
|
In article <41ffec65_2@news.dnainternet.net>, marko@where.ever.invalid
(Marko Vihoma) writes:
| Quote: | John McGrail wrote:
On 2005-02-01, Marko Vihoma <marko@where.ever.invalid> wrote:
I believe that pf needs to be flushed & reloaded when the $ext_if IP
changes, so it will know the correct $ext_if IP again.
This depends very much on the version of OpenBSD the original poster
is using, as well as the syntax used in the rule-set.
He said it's OpenBSD 3.3 (time to update maybe?).
|
<sigh> You can escape Windows, but you can't escape updates.
| Quote: | As of OpenBSD version 3.mummble, surrounding the interface name with
parentheses causes PF to automatically update the rule whenever the
interface changes its address. The ruleset does not need to be
reloaded.
That was the way with my former NetBSD & ipfilter router/firewall,
I don't know about OpenBSD 3.6 pf's situation yet, because my
external IP hasn't changed in these few month's of using it as
my router/firewall.
The above-mentioned feature is in 3.6 so if you use the right syntax
with your rules, you should never have to think about it.
Great, this was good to hear!
I had a hunch I read something about this somewhere...
My rdr & nat rules already contained these mysterious parentheses, as
they were essentially copied from the pf.conf(5) examples Well,
changed rest of my rules from "to $ext_if" to "to ($ext_if)" as well
now, thank You for pointing this out!
|
Even on my 3.3 system, I found the following in the pf.conf man page:
Host name resolution and interface to address translation are
done at ruleset load-time. When the address of an interface
(or host name) changes (under DHCP or PPP, for instance), the
ruleset must be reloaded for the change to be reflected in the
kernel. Surrounding the interface name in parentheses changes
this behaviour. When the interface name is surrounded by
parentheses, the rule is automatically updated whenever the
interface changes its address. The ruleset does not need to
be reloaded. This is especially useful with _nat_.
Thanks, everyone, for your help. I'm off to check my pf.conf...
--
/~\ cgibbs@kltpzyxm.invalid (Charlie Gibbs)
\ / I'm really at ac.dekanfrus if you read it the right way.
X Top-posted messages will probably be ignored. See RFC1855.
/ \ HTML will DEFINITELY be ignored. Join the ASCII ribbon campaign! |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 12:05 pm | All times are GMT
|
|
Online Loans | Loans | Budapest hotels | Debt Consolidation | Free Ringtones
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|