CANNASERVER(1)
π CANNASERVER(1) π
okay bestie, so this is cannaserver from the General Commands Manual, and she is literally the Kana-Kanji conversion server. sit down, hydrate, let's get into it π
β¨ NAME β¨
cannaserver β the Kana-Kanji conversion server, periodt π
πΈ SYNOPSIS πΈ
cannaserver [-d] [-u userid] [-inet] [-inet6] [-l n] [-syslog] [-p num]
[ddpath]
π¦ DESCRIPTION π¦
so cannaserver(1) is the whole reason you can do Kana-Kanji conversion, she provides the service. no cap. and most of the time? you're not even the one starting her β this daemon usually gets launched by whatever daemon bootup framework your system uses, like /etc/rc depending on your setup. so like, you do not usually start it up manually. it's giving "she's already awake, don't touch her" π
by default, cannaserver(1) only accepts connections from clients on the same host where the server is running (via UNIX domain socket). she's lowkey exclusive like that. but if you want her accessible from other hosts via TCP, you use option -inet (or -inet6). and whether you use that option or not, you can still get access control based on user and host using /etc/hosts.canna β she checks IDs at the door π
cannaserver(1) immediately forks and gets into the background after it starts. so no, you do not need to use & explicitly to make it run in the background. she does it herself, main character energy fr fr β¨
when she starts, cannaserver(1) creates the UNIX domain socket /tmp/.iroha_unix/IROHA[:num] to communicate with clients. that socket gets deleted automatically if cannaserver(1) terminates normally. but β and this is the messy part π β the socket may still exist while cannaserver(1) is not running (because, for example, cannaserver(1) terminated abnormally). in that case you have to delete the file manually, or you literally cannot start her. like she's blocked by her own ghost π
/var/lib/canna/dic/*/dics.dir includes the list of dictionaries which are available to clients. users (i.e. clients) can choose which to use and specify them in ~/.canna. pick your faves, bestie π
π OPTIONS π
ddpathβ specifies the directory that contains dictionaries.-inetβ this option letscannaserver(1)accept connections from remote hosts using inet domain socket (IPv4). by default,cannaserver(1)uses only UNIX domain socket, i.e. only clients in your local machine can connect to the server. so like, she's homebody-coded unless you flip this πΈ-inet6β enable IPv6. if this option is used solely, IPv4 access is disabled. if you want to use IPv4 at the same time, use both-inetand-inet6. it's giving "both, or neither, no in-between" π-l nβ outputs thecannaserver(1)log to/tmp/canna.log.n(1 to 5) specifies the log level. so you're picking how chatty she is, from 1 to 5 π£οΈ-dβ startscannaserver(1)in debug mode. it is executed as the foreground process. log data at log level 5 is output to the standard output. she's not hiding in the background anymore, she's performing live on your terminal β-u useridβ specifies which usercannaserver(1)runs as. by default,cannaserver(1)runs as the user who startedcannaserver(1). so like, whoever launched her is her identity unless you say otherwise π«Ά-syslogβ outputs thecannaserver(1)log tosyslogd(8). if you specify this option, logs are not output to/var/log/canna/CANNA?msgs. pick a lane bestie π-p numβ by this optioncannaserver(1)uses the port number5680 + num. the default port number is5680. this option also has an effect on the filename of the socket and the log file. see below π
π FILES π
/tmp/.iroha_unix/IROHA[:num]β socket. the[:num]part is added only when you specify-p. no-p, no suffix, simple as π¦/var/lib/canna/dic/*/dics.dirβ dictionary directory./etc/hosts.cannaβ access control file. the bouncer at the door π/var/log/canna/CANNA?msgsβ log file."?"is replaced withnumspecified with-p, and defaults to0without-p num. log messages are not output to this file when-syslogis specified. so it's either this file or syslog, never both, no cap π
heads up bestie: that stale socket in/tmp/.iroha_unix/IROHA[:num]is the #1 reason a start will just refuse to work. ifcannaserver(1)died abnormally, delete the file manually or she will not boot. fr fr.
π SEE ALSO π
cannakill(1), cannastat(1), cannacheck(1), cshost(1)
go read them, they're the friend group π
okay that's the whole page!! this was CANNASERVER(1) from the General Commands Manual, and yes the footer is also just CANNASERVER(1) because she's iconic enough to sign her own name and nothing else. slay, mwah, go start your daemon ππβ¨
π¦ where this page comes from
- debian bookworm: canna 3.7p3-20 Β· ISC
- debian trixie: canna 3.7p3-25 Β· ISC
- ubuntu jammy: canna 3.7p3-17 Β· ISC
- ubuntu noble: canna 3.7p3-20 Β· ISC
- ubuntu questing: canna 3.7p3-26
- ubuntu resolute: canna 3.7p3-26build1 Β· ISC
- ubuntu stonking: canna 3.7p3-29 Β· ISC
- Copyright 1994 NEC Corporation, Tokyo, Japan
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms