Commit graph

446 commits

Author SHA1 Message Date
cinap_lenrek
ea413b4a62 ircrc: strip backspaces, preventing backspace spam (thanks doppler) 2017-06-02 17:10:52 +02:00
stanley lieber
db46e826c2 newt: add !cmd 2017-05-28 15:45:07 -04:00
stanley lieber
9c70c81e70 newt: honor environment variables $editor and $pager 2017-05-26 11:15:35 -04:00
cinap_lenrek
20ba8815bc inst/configether: in manual network configuration, ask for dns server 2017-05-01 22:50:16 +02:00
aiju
759651e8a9 change cpurc to look for service folder in /cfg/$sysname and /cfg/default 2017-04-19 09:00:44 +00:00
aiju
9dee37a2b0 disable all services except 17019, 17020 by default 2017-04-19 08:51:18 +00:00
cinap_lenrek
4bcd247b90 change listener from ip/imap4d to upas/imap4d 2017-03-12 17:18:56 +01:00
cinap_lenrek
fb1299102f play: recognize .mus file extension 2017-02-26 22:17:18 +01:00
cinap_lenrek
70c6dab003 play, file: recognize midi and mus audio 2017-02-26 19:26:42 +01:00
aiju
e4dc3f9bd8 asaudit: check factotum key ; netaudit: mention asaudit 2017-02-25 11:54:15 +01:00
aiju
e5de0d457a add redact(1) 2017-02-25 00:56:26 +01:00
cinap_lenrek
cf7d50a1a1 inst/bootsetup: fix unformated esp check (thanks yellow_apple) 2017-01-23 14:37:02 +01:00
cinap_lenrek
ca47fef006 rcpu: use $cpu environment variable for host when not specified 2017-01-15 18:25:54 +01:00
cinap_lenrek
432c89418f remove !tcp22 service 2017-01-13 19:44:47 +01:00
khm
dc8c7bf2b7 ssh: R.I.P. 2017-01-12 16:36:38 -08:00
cinap_lenrek
cd15849bf2 rcpu: avoid filedescriptor conflict with <{} (thanks mycroftiv)
the rcpu client dup's fd 0,1,2 to fd 10,11,12 which
can accidentally override the pipe file descriptor
allocated by the <{} operator. to avoid this problem,
we generate the remote script as an /env file in a
separate step now.
2016-12-19 19:05:35 +01:00
cinap_lenrek
978628d679 tcp17019: make service proto and netdir arguments optional (for aux/listen1)
this allows /rc/bin/service/tcp17019 to be called from
aux/listen1 without arguments like:

aux/listen1 tcp!*!rcpu /rc/bin/service/tcp17019
2016-12-03 00:24:19 +01:00
BurnZeZ
b563ed7550 iwhois(1): make -n work, add .org, and a couple minor changes 2016-10-03 12:31:48 -04:00
cinap_lenrek
4052945479 ipv6on: get network device from $netdir/ipifc/*/status 2016-09-17 17:49:59 +02:00
aiju
762e98d47e Bfn: set +x 2016-08-26 21:23:13 +02:00
aiju
81b1fc5a12 fix Bfn botch 2016-08-25 23:03:54 +02:00
cinap_lenrek
5fc7cdbbcc 9fs: remove juke, kfs and snap targets, caching for other and dump 2016-07-02 21:15:39 +02:00
cinap_lenrek
bd50adc942 add srvtls and the corresponding tcp17020 service 2016-05-16 22:49:32 +02:00
stanley lieber
c7db24fc26 9fs: add sites to 9front case. 2016-05-04 19:26:26 -04:00
cinap_lenrek
2ef975ae7d hg: set $HOME when not already set to avoid silly uid lookups which can fail if theres no /adm/users 2016-05-04 19:23:57 +02:00
cinap_lenrek
651d6c2bc6 abaco(1): remove readweb 2016-04-26 00:10:47 +02:00
Matthew Veety
6d2635d5ba made abaco's gui respect $font and made readweb respect most installations 2016-04-25 17:49:31 -04:00
cinap_lenrek
2763229c00 rcpu: make sure not to leak /env/fn#server and /env/fn#aanserver for drawterm (thanks mischief) 2016-04-20 00:41:03 +02:00
cinap_lenrek
1e821d82f2 tcp567: run authserver with p9sk1 tickets disabled preventing offline password brute-force 2016-04-07 21:19:48 +02:00
stanley lieber
eed13a5c22 9fs: bind -b /n/9front.org!7734 /n/lists 2016-03-31 14:15:45 -04:00
cinap_lenrek
99e3bea407 g: dont pollute the environment (thanks BurnZeZ) 2016-03-13 22:34:08 +01:00
cinap_lenrek
e95f557ba5 rcpu: post hangup note to remote when connection breaks
when the cat that forwards notes on the remote exits,
send a hangup note so processes wont keep hanging arround.
2016-02-27 02:08:00 +01:00
cinap_lenrek
86dfd3cf16 provide rcpu(1), make usage line consistent 2016-02-15 17:30:56 +01:00
cinap_lenrek
fde5906b30 adding experimental rcpu service
this is a reimplementation of cpu and import utilities in rc using a tlsclient
and tlssrv as the encryption and authentication layers. there is only one new
service, which after authentication and encryption setup accepts an arbitrary
rc script over the network and executes it with the standard filedescriptors
redirected to the conversaion (this is *after* authentication and in the
context of the authorized user).

the new rcpu program has a few improvements over cpu(1):

- doesnt mangle program arguments
- the remote process will get the clients standard file descriptors, so error
  and output are separated and you can consume the clients input from the
  remote side :-)
- forwards error status of remote process

theres no backwards mode for rimport, but a new program called rexport
for the same purpose.

all these services use exportfs without the bolted on initial handshake,
so the hope is to clean up exportfs in the future and remove all the ugly
crap in there.
2016-02-14 05:18:33 +01:00
cinap_lenrek
ecebba779f provide /n and /mnt early in bootrc to allow consistent use in /lib/namespace
theres a bootstrap problem:

when /bin/init is run, it processes /lib/namespace where we might want to
mount or bind resources to /n or /mnt. but mntgen was run later in
cpurc/termrc so these mounts would be ignored.

we already have mntgen in bootfs, so we can provide these mountpoints early.

i keep the termrc/cpurc mntgens where they are, but ignore the error
prints. this way old kernels will continue to work.
2016-02-14 01:42:32 +01:00
stanley lieber
d80e3a5d95 /rc/bin/": fix quoting bug (thanks, aiju and silasm) 2016-01-07 15:04:56 -05:00
Matthew Veety
1c0ba2019e made sure that rcmain.local runs independent of the existence of $home/lib/profile. Documented /rc/lib/rcmain, /rc/lib/rcmain.local, $home/lib/profile in rc(1) and the first two in namespace(4) 2015-12-07 17:59:53 -05:00
Matthew Veety
04a8392f8c Added change to /rc/lib/rcmain to allow execution of /rc/lib/rcmain.local if it exists. /rc/lib/rcmain.local is similar to $home/lib/profile in that it will only be executed with -l, but is site-wide. 2015-12-07 16:01:09 -05:00
stanley lieber
55d3e11f0f 9fs: add case 9front 2015-11-06 20:00:03 -05:00
stanley lieber
b26ec24f9d 9fs: add 9pio case for unauthenticated connections to 9p.io. 2015-11-02 19:12:15 -05:00
aiju
5c5c074f12 delkey: don't be stupid 2015-10-30 22:18:09 +01:00
aiju
0a3160261d teach doctype how to timepic 2015-09-28 11:33:06 +02:00
cinap_lenrek
d1315ade41 libdraw, screenrc: bind devdraw and devmouse in screenrc instead of handling it in libdraw
libdraw was attempting to bind '#i' and '#m' to /dev when it could not find
/dev/mouse or /dev/draw. a library shouldnt be that clever and do namespace
manipulations on behalf of the caller. so instead, we setup the graphics
environment in screenrc on boot time.
2015-09-20 12:25:01 +02:00
stanley lieber
f5174e6fdf ircrc: add -P option for server password (thanks, nick) 2015-09-19 14:03:22 -04:00
cinap_lenrek
10f680c5ba move screen and mouse setup code to /rc/bin/screenrc 2015-09-05 03:14:44 +02:00
mischief
029f07292b import E script from bell labs 2015-08-25 02:09:22 -07:00
cinap_lenrek
12d6eb0ce3 remove old9p cpu service 2015-08-21 23:21:41 +02:00
cinap_lenrek
3db2012126 fshalt: remove kfs support 2015-08-21 19:40:29 +02:00
cinap_lenrek
8234f9d906 ipv6on: fix search for ip attribute (thanks kenji arisawa) 2015-08-02 14:48:53 +02:00
cinap_lenrek
2559f92a83 inst: fix download task using ip/httpfile to mount a iso over http and prompt for installurl 2015-07-13 06:28:46 +02:00
stanley lieber
9b0efa4176 approx: chmod 775 2015-06-27 19:45:24 -04:00
aiju
9ca3fc3a1d added approx(1) 2015-06-27 22:00:33 +02:00
ftrvxmtrx
47f05d4d8b usps: cut the useless part 2015-06-17 18:07:32 +02:00
cinap_lenrek
bce2696b17 dontkill: only use noswap flag to mark processes as not to be terminated on oom
changing procmode has the nasty side effect that notes cannot
be posted to them, prventing sysfatal() and threadexitsall()
to cleanup properly.

recent kernels also check the noswap flag to void killing them
in out of memory condition, so this is really all we need now.
2015-06-15 17:13:19 +02:00
stanley lieber
8f1b69997f sysinfo: update -p for sysinfo.9front.org 2015-06-06 18:18:38 -04:00
cinap_lenrek
ebf43c0a0b sysupdate: change source repo to https://code.9front.org/hg/plan9front
code.google.com is shutting down, the new repository is on code.9front.org.
2015-06-07 00:11:47 +02:00
cinap_lenrek
628611fb5c inst: provide gpt/mbr choice when disk is blank, format esp 2015-06-06 02:00:51 +02:00
cinap_lenrek
1a1863e5dc rc-httpd: cleanup cgi handler
- avoid silly stats and checks for $cgi_dir, just use status
  from builtin cd.

- log proper http status code from the cgi script
2015-06-02 16:56:19 +02:00
cinap_lenrek
7b8bada6b4 rc-httpd: various fixes
care has to be taken when splitting the host into SERVER_NAME and SERVER_PORT,
as ipv6 uses : in the host part. also do it consistently, the host can be set
thru the request uri and the host header.

set REMOTE_USER to empty string to prevent accidents.

we do not handle chunked transfer encoding, just assuming the client doesnt
do keep alive is wrong. we have to reject the post when the client tries
chunked post with 411 "Length required" error.
2015-06-02 23:15:02 +02:00
cinap_lenrek
0ca9977075 9fs: handle all the dos filesystems in one case, add esp handler 2015-05-31 19:48:44 +02:00
cinap_lenrek
52c6b751c0 inst/bootplan9: skip mbr installation and active partition switching when we have no plan9 dos partition
on efi systems, there is no plan9 partition in the dos partition table
that could be marked active and the mbr should be left alone.
2015-05-31 16:41:46 +02:00
cinap_lenrek
82aa1d5c78 integrate disk/edisk with diskparts, bootfs and installer (gpt support) 2015-05-31 13:06:18 +02:00
stanley lieber
20b8f1e777 rc-httpd/handlers/dir-index: plan 9 files may be chmod +a:
The mode printed under the -l option contains 11 characters,
          interpreted as follows: the first character is

          d    if the entry is a directory;

          a    if the entry is an append-only file;

          -    if the entry is a plain file.

Therefore, handle them in automatically generated directory listings.
2015-05-14 21:04:51 -04:00
cinap_lenrek
e611879eab hget: work arround apache Content-Encoding: gzip for Content-Type: application/x-gzip bug
apache sends Content-Encoding: gzip header for Content-Type: application/x-gzip
causing hget to decompress tgz files.

from the w3c:

The Content-Encoding entity-header field is used as a modifier to the media-type.
When presented, its value indicates what additional content codings have been applied
to the entity-body, and thus what decoding mechanisms must be applied in order to
obtail the media-type referenced by the Conent-Type header field. Content-Encoding
is primarily used to allow a document to be compressed without losing the
identity of its underlying media type.

this is clearly silly, as the file is already compressed, and decompressing it
will not yield the indicated Content-type: application/x-gzip, but a tarball.

examples:

http://zlib.net/zlib-1.2.8.tar.gz
https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R50f.tgz
2015-05-14 14:12:28 +02:00
Matthew Veety
80845af98b removed ukill. 2015-05-13 00:11:59 -04:00
Matthew Veety
e8c3eb87d2 Added ukill(1): Kills all processes started by a user 2015-05-13 18:48:46 -04:00
stanley lieber
2a03ed80e4 webpaste: update for modified okturing.com 2015-03-30 20:53:49 -04:00
ftrvxmtrx
0a9e7e34ce ircrc: remove unused clonefile 2015-03-23 14:28:28 +01:00
stanley lieber
848c477af9 ssam: fix typo 2015-03-16 23:44:04 -04:00
stanley lieber
197e4d6e08 ssam: don't pollute the environment. 2015-03-16 23:42:58 -04:00
cinap_lenrek
8ef66ca212 rc-httpd: support for http basic authentication, fix cgi support to work with hgweb.cgi 2015-03-14 01:02:43 +01:00
aiju
aa3a54246b netaudit: comment file server auth test (unreliable on cwfs) 2015-03-11 16:13:42 +01:00
stanley lieber
9b63280ae8 g: search .awk and .rc files 2015-03-08 21:46:00 -04:00
cinap_lenrek
48c5cf1f11 ircrc: dont require nick and user to be the same for auth/userpasswd (thanks spew) 2015-02-12 18:40:20 +01:00
mischief
31e1c15d44 ircrc: use aux/trampoline or tlsclient for connections, add -T flag for tls
previously ircrc dialed through /net itself and resolved ips on its own. this prevented the use of an ip address, and also prevented use of ipv6. now you can use an ip, or a dns name that resolves to ipv6. the -T flag is also added to use tlsclient for encrypted connections.
2014-12-27 23:38:21 -08:00
cinap_lenrek
d1799f65ca nusb/serial: fix nusb/serial hang with ftdi
have to create process, not a thread in ftdi code so main
process can exit after posting fs service.
2014-12-24 11:04:18 +01:00
mischief
d44d679793 pci: import pci script and updated database from 9atom 2014-12-20 21:41:34 -08:00
cinap_lenrek
2e802acf34 hpost: break up tags with newlines to avoid sed line buffer limit 2014-11-16 01:59:29 +01:00
cinap_lenrek
4cd03abefe hpost: fix multipart/form variable name mangeling when field value contains newlines
com='MH3U
pic unrelated
' hpost -u ... -m post com:$com

resulted in wrong field name like:

--HJBOUNDARY
 Content-Disposition: form-data; name="com pic unrelated"

 MH3U
 pic unrelated
2014-11-15 23:51:01 +01:00
khm
39cabc7269 Don't quit ircrc on blank line (thanks Ray) 2014-11-07 12:51:16 -05:00
cinap_lenrek
0aea317dd2 inst: copy efi bootloader in bootsetup 2014-11-05 21:38:28 +01:00
cinap_lenrek
0560d1d6b6 termrc: setup mouse when we have a framebuffer
previously, we setup mouse only when vgasize= was specifid in
plan9.ini. with efi systems, the framebuffer is already setup
for us and theres no requirement for going thru aux/vga setup,
but we still want to setup the mouse.

so do the mouseport= check once theres a framebuffer by testing
the existence of '#i/winname' (which fails when thers no
framebuffer).
2014-11-05 20:42:47 +01:00
stanley lieber
c82569c6dd bullshit: don't pollute the environment 2014-11-02 13:16:33 -05:00
stanley lieber
678db0fbb1 newt: delete lines 2014-10-29 00:20:41 -04:00
stanley lieber
e02e4045f2 newt: do not print first message twice when stepping through messages 2014-10-29 22:49:08 -04:00
Kurt H Maier
392ca817ba disable useless ssh daemon by default 2014-10-29 13:12:44 -04:00
stanley lieber
cefc352c74 newt: only print a date if we've managed to extract a date 2014-10-29 12:03:32 -04:00
stanley lieber
e1b0ab1745 newt: removed unused function 2014-10-28 00:43:52 -04:00
stanley lieber
6213e137ff newt: implement ned-style address ranges and overhaul h command to suit 2014-10-28 00:38:58 -04:00
cinap_lenrek
d91fe5b38b inst: ignore *bootscreen= variable when generating plan9.ini 2014-10-19 21:17:08 +02:00
BurnZeZ
81e0d6e988 sysupdate/psfax/play: fix unquoted brackets causing rc to perform unnecessary file lookups 2014-10-15 15:57:51 -04:00
aiju
02ea56dbda added gbatype 2014-09-30 20:46:13 +02:00
cinap_lenrek
59ab557f31 sysinfo: relax regex for start of kernel boot messages
we used to look for /^Plan 9$/ for the start of kernel
boot messages in /dev/kmesg. but the xen kernel prints
Plan 9 (.....) on boot. so just look for line starting
with /^Plan 9/ for now.
2014-09-21 18:28:35 +02:00
ftrvxmtrx
d14b6a0bf9 usps: yet another update 2014-08-01 20:44:58 +02:00
cinap_lenrek
98d518cc8c fstype: fix kfs detection (thanks kenji okomoto) 2014-07-30 20:34:45 +02:00
stanley lieber
b46a3ee95f rc-httpd/handlers/serve-static: restore simple test for file type and hardcode max_age to 1 hour (thanks eekee) 2014-07-11 23:24:27 -04:00
cinap_lenrek
2fb18c3339 sysinfo: add cpuid info 2014-07-11 23:20:15 +02:00
cinap_lenrek
336e605a11 support for huawei e220 g3 modem, cleanup nusb/serial 2014-07-05 23:19:13 +02:00
cinap_lenrek
4275c49e72 nusb: implement aijus stable uniqueue device names
instead of naming devices by ther dynamically assigned device address,
we hash device uniqueue fields from the device descriptor and produce
a 5 digit hex string that will identify the device across machines.

when there is a collision (less than 1% chance with 100 devices),
usbd will append the device address to the name to make it uniqueue
for this machine.

the hname is passed to drivers in the devid argument, which now has
the form addr:hname, where the colon and hname can be omited (for backwards
compatibility).

when the new behaviour isnt desired, nousbhname= environment variable
can be defined giving the old behaviour.
2014-06-28 18:09:43 +02:00
stanley lieber
e9b6f349b8 termrc, cpurc: clarify comments by removing lies 2014-06-12 15:56:54 -04:00