├── .gitignore ├── white.gif ├── kermit.jpg ├── snap ├── gui │ ├── ckermit-raymii.png │ └── ckermit-raymii.desktop ├── local │ └── ckermit-wrapper └── snapcraft.yaml ├── ckermit-raymii_9.0.302-5.6_amd64.snap ├── test.kermit └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | *.snap 2 | -------------------------------------------------------------------------------- /white.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/ckermit-snap/master/white.gif -------------------------------------------------------------------------------- /kermit.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/ckermit-snap/master/kermit.jpg -------------------------------------------------------------------------------- /snap/gui/ckermit-raymii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/ckermit-snap/master/snap/gui/ckermit-raymii.png -------------------------------------------------------------------------------- /ckermit-raymii_9.0.302-5.6_amd64.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/ckermit-snap/master/ckermit-raymii_9.0.302-5.6_amd64.snap -------------------------------------------------------------------------------- /snap/local/ckermit-wrapper: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export LC_ALL=C.UTF-8 4 | export LANG=C.UTF-8 5 | 6 | exec $SNAP/usr/bin/kermit "$@" 7 | -------------------------------------------------------------------------------- /snap/gui/ckermit-raymii.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Version=1.0 4 | Name=CKermit 5 | GenericName=Kermit 6 | Comment=Kermit is a serial and network communications package 7 | Icon=${SNAP}/meta/gui/ckermit-raymii.png 8 | Exec=kermit 9 | Categories=Development; 10 | -------------------------------------------------------------------------------- /test.kermit: -------------------------------------------------------------------------------- 1 | #!/snap/bin/ckermit-raymii + 2 | kermit -l /dev/ttyUSB0 3 | set speed 115200 4 | set carrier-watch off 5 | set handshake none 6 | set flow-control none 7 | robust 8 | set file type bin 9 | set file name lit 10 | set rec pack 4096 11 | set send pack 4096 12 | set window 5 13 | 14 | SET INPUT ECHO ON 15 | INPUT 999 Hit any key to stop autoboot: 16 | LINEOUT 17 | INPUT 5 => 18 | LINEOUT setenv console ttymxc0 19 | INPUT 5 => 20 | LINEOUT setenv optargs serial.getty=ttymxc0 21 | LINEOUT boot 22 | connect 23 | -------------------------------------------------------------------------------- /snap/snapcraft.yaml: -------------------------------------------------------------------------------- 1 | name: ckermit-raymii 2 | base: core18 3 | version: '9.0.302-5.6' 4 | summary: serial and network communications package 5 | icon: snap/gui/ckermit-raymii.png 6 | description: | 7 | C-Kermit is a combined network and serial communication software package offering a consistent, transport-independent, 8 | cross-platform approach to connection establishment, terminal sessions, file transfer, file management, 9 | character-set translation, numeric and alphanumeric paging, and automation of file transfer and management, 10 | dialogs, and communication tasks through its built-in scripting language. 11 | The Kermit Project originated at Columbia University in New York City in 1981 and remained there for 30 years. 12 | Since 2011 it is independent. 13 | 14 | **Setup** 15 | In order to access a serial port over USB (ttyUSB0 for example, you need to add your user to the `dailout` 16 | group and connect the snap to the `raw-usb` socket. Open a terminal window, 17 | run the following commands an *reboot* your computer. 18 | > `sudo usermod -a -G dialout $USER` 19 | > `sudo snap connect ckermit-raymii:raw-usb` 20 | Now restart your computer and you're good to go! 21 | 22 | grade: stable 23 | confinement: strict 24 | 25 | parts: 26 | ckermit-raymii: 27 | plugin: dump 28 | source: snap/local 29 | override-build: | 30 | chmod +x ckermit-wrapper 31 | chmod +x ckermit-snap.desktop 32 | snapcraftctl build 33 | stage: 34 | - usr/bin/ckermit-wrapper 35 | - usr/share/applications/ckermit.desktop 36 | organize: 37 | ckermit-wrapper: usr/bin/ckermit-wrapper 38 | ckermit.desktop: usr/share/applications/ckermit.desktop 39 | ckermit-raymii: 40 | plugin: nil 41 | override-build: | 42 | snapcraftctl build 43 | stage-packages: 44 | - ckermit 45 | - libpam0g 46 | - libtinfo5 47 | - libssl1.0.0 48 | - libcomerr2 49 | - libgssapi-krb5-2 50 | - libk5crypto3 51 | 52 | layout: 53 | $SNAP/var/lock: 54 | type: tmpfs 55 | 56 | apps: 57 | ckermit-raymii: 58 | environment: 59 | PATH: $SNAP/usr/bin:$SNAP/bin/:$PATH 60 | PYTHONPATH: $SNAP/usr/lib/python2.7/site-packages:$SNAP/usr/lib/python2.7/dist-packages:$PYTHONPATH 61 | LANG: C.UTF-8 62 | command: usr/bin/kermit 63 | plugs: 64 | - home 65 | - desktop 66 | - x11 67 | - desktop-legacy 68 | - network 69 | - raw-usb 70 | - serial-port 71 | - network-bind 72 | 73 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ckermit snap 2 | 3 | [![ckermit-raymii](https://snapcraft.io/ckermit-raymii/badge.svg)](https://snapcraft.io/ckermit-raymii) 4 | [![ckermit-raymii](https://snapcraft.io/ckermit-raymii/trending.svg?name=0)](https://snapcraft.io/ckermit-raymii) 5 | 6 | 7 | This is the Ubuntu 18.04 .deb package converted to snap, because in Ubuntu 8 | 20.04, there is no ckermit package. Just as I did with Gnash. See 9 | https://raymii.org/s/blog/Ive_packaged_up_CKermit_as_a_snap_for_Ubuntu_20.04.html for more info on the snap, and 10 | https://www.kermitproject.org/ for more info on kermit. 11 | 12 | Ubuntu versions 18.04 and 21.04 currently do have ckermit in the repository, so this 13 | snap is only really useful on Ubuntu 20.04 LTS. (https://answers.launchpad.net/ubuntu/+source/ckermit/+question/693175) 14 | 15 | I personally use ckermit for a few scripts that boot up ARM devkit boards via NFS. 16 | One such script can be found in this repository (`test.kermit`) and is what I 17 | use to test the snap with. Other functionality is not tested, but if you 18 | miss anything, just contact me. 19 | 20 | 21 | ![img](kermit.jpg) 22 | 23 | (Screenshot from here: http://www.amber-lab.com/wiki/amber-board-tutorials/board-connection-to-pc/) 24 | 25 | To use `ckermit` on the command-line you must use the command 26 | `ckermit-raymii`. `ckermit` is a reserved name on the snap store. 27 | 28 | C-Kermit is a combined network and serial communication software package 29 | offering a consistent, transport-independent, cross-platform approach to 30 | connection establishment, terminal sessions, file transfer, file management, 31 | character-set translation, numeric and alphanumeric paging, and automation of 32 | file transfer and management, dialogs, and communication tasks through its 33 | built-in scripting language. 34 | 35 | The Kermit Project originated at Columbia University in New York City in 1981 36 | and remained there for 30 years. Since 2011 it is independent. 37 | 38 | ## Setup 39 | 40 | In order to access a serial port over USB (ttyUSB0 for example, you need to 41 | add your user to the `dailout` group and connect the snap to the `raw-usb` 42 | socket. 43 | 44 | Open a terminal window, run the following commands an *reboot* your computer. 45 | 46 | sudo usermod -a -G dialout $USER 47 | 48 | sudo snap connect ckermit-raymii:raw-usb 49 | 50 | Now restart your computer and you're good to go! 51 | 52 | Source URL for Kermit: https://www.kermitproject.org/ 53 | 54 | My homepage: https://raymii.org/ 55 | 56 | Snap store page: https://snapcraft.io/ckermit-raymii 57 | 58 | Install via the snap store: 59 | 60 | snap install ckermit-raymii 61 | 62 | (ckermit is a reserved name in the snap store) 63 | 64 | Or locally, clone this git repo and install the snap: 65 | 66 | sudo snap install --dangerous ckermit-raymii_9.0.302-5.3_amd64.snap 67 | 68 | Based on this article: https://philroche.net/2020/10/08/using-snaps-to-package-old-software/ 69 | 70 | 71 | # Changelog 72 | 73 | No new version of ckermit will come out since development stopped around 2011, this is 74 | the changelog of the snap. 75 | 76 | ## 9.0.302-5.3 77 | 78 | - Original ckermit package from 18.04 snapped up 79 | --------------------------------------------------------------------------------