SlideShare a Scribd company logo
1 of 3
Download to read offline
Using the Linux Command Line Compilers under Kate.
Pre-release beta tester information v0.1
© Revolution Education Ltd 2008. Subject to change.
Introduction.
Users of Linux (KDE) normally have a very powerful text editor, called Kate, pre-installed.
Kate is ideal for using with the PICAXE command line compiler as it:
1) Supports saving files in the raw text format as required by the PICAXE compiler.
2) Supports colour syntax coding of the program.
3) Allows a Terminal Console to be displayed on screen at the same time as the program.
Users of other versions of X (e.g. Gnome) may not have access to Kate, but can still use the
compiler with programs entered in an alternate editor (e.g. gedit under Gnome).
The screenshot above is from an ASUS eeePC (Xandros distribution). We also assume that:
• you know how to open a console terminal (ctrl+alt+t on eeePC, different on other
distributions)
• you are running KDE (not gnome)
Setting up Kate for use with the PICAXE Compiler
Installation:
Step 1 - Download and save the PICAXE compilers.
The PICAXE compilers are available in a compressed .tgz file from the software pages at
www.picaxe.co.uk
Download and save into your working folder e.g. “My Documents” or “Desktop”.
Uncompress the files using a File Manager application or via the command line:
gunzip –c picaxe.tgz | tax –xvf –
or (on more modern systems) simply
tar -xvf picaxe.tgz
Step 2 – Setup Kate syntax colour coding
One of the files extracted, picaxe.xml, is the colour syntax file for Kate, which needs to be copied to
the correct /katepart/syntax folder e.g.
sudo cp picaxe.xml /usr/share/apps/katepart/syntax
One of the restrictions of Kate’s syntax colour coding is that is will only accept one single line
comment marker, whereas PICAXE compiler accepts two - ‘ (apostrophe) or ; (semi-colon). The file
may be edited (near bottom of file) to swap your personal preference.
Step 3 – Patch the AXE027 driver (if using USB)
Patch the AXE027 driver as required (BEFORE the USB cable is inserted). Full details on how to do
this are given in the AXE027 datasheet available from www.picaxe.co.uk. A quick method is simply
sudo modprobe ftdi_sio vendor=0x0403 product=0xbd90
Step 4 – Open Kate
To use Kate simply type kate at the command prompt.
Use the Tools > Highlighting > Sources > PICAXE menu to select the correct colour coding.
After typing in the program, save it (e.g. test.bas) and then select the ‘Terminal’ tab at the bottom of
the screen.
Type in the appropriate command line, e.g.
./picaxe08m –c/dev/ttyS0 test.bas (AXE026 serial cable on COM1)
or
./picaxe08m –c/dev/ttyUSB0 test.bas (AXE027 USB cable)
to download the program.
Remember to save the file before each download. Note you can use the <up arrow> key within the
Terminal window to repeat the command line without retyping.
Serial Terminal
The compiler already supports display of serial data from both ‘debug’ and ‘sertxd’ commands.
Simply add the –d or –t switch to the command line.
However for a much more powerful open source Serial terminal application we recommend
‘gtkTerm’
To download gtkTerm visit
http://www.jls-info.com/julien/linux/
or for Debian/Ubunto/Xandros etc. simply use
sudo apt-get update
sudo apt-get install gtkterm
Note that on eeePC to do this you will first need to add a debian repository to sources.list e.g.
sudo kwrite /etc/apt/sources.list
add the line
deb ftp://ftp.nl.debian.org/debian stable main contrib non-free
and then save.
(Note ftp.nl repository is used above, but select a local one to you. Although Revolution are
in the UK we tend to use ftp.nl as it is less busy, and hence faster, than the ftp.uk option!)

More Related Content

What's hot

Embedded_Linux_Booting
Embedded_Linux_BootingEmbedded_Linux_Booting
Embedded_Linux_Booting
Rashila Rr
 
Uboot startup sequence
Uboot startup sequenceUboot startup sequence
Uboot startup sequence
Houcheng Lin
 

What's hot (20)

FFMPEG TOOLS
FFMPEG TOOLSFFMPEG TOOLS
FFMPEG TOOLS
 
U-Boot presentation 2013
U-Boot presentation  2013U-Boot presentation  2013
U-Boot presentation 2013
 
U-Boot Porting on New Hardware
U-Boot Porting on New HardwareU-Boot Porting on New Hardware
U-Boot Porting on New Hardware
 
Building RT image with Yocto
Building RT image with YoctoBuilding RT image with Yocto
Building RT image with Yocto
 
Getting started with BeagleBone Black - Embedded Linux
Getting started with BeagleBone Black - Embedded LinuxGetting started with BeagleBone Black - Embedded Linux
Getting started with BeagleBone Black - Embedded Linux
 
openPOWERLINK over Xenomai
openPOWERLINK over XenomaiopenPOWERLINK over Xenomai
openPOWERLINK over Xenomai
 
Linux-without-a-bootloader
Linux-without-a-bootloaderLinux-without-a-bootloader
Linux-without-a-bootloader
 
Pc bsd-intro
Pc bsd-introPc bsd-intro
Pc bsd-intro
 
Unix
UnixUnix
Unix
 
µCLinux on Pluto 6 Project presentation
µCLinux on Pluto 6 Project presentationµCLinux on Pluto 6 Project presentation
µCLinux on Pluto 6 Project presentation
 
coreboot@Budapest 10.2009 Meetup
coreboot@Budapest 10.2009 Meetupcoreboot@Budapest 10.2009 Meetup
coreboot@Budapest 10.2009 Meetup
 
XPDDS17: PVH Dom0: The Road so Far - Roger Pau Monné, Citrix
XPDDS17: PVH Dom0: The Road so Far - Roger Pau Monné, CitrixXPDDS17: PVH Dom0: The Road so Far - Roger Pau Monné, Citrix
XPDDS17: PVH Dom0: The Road so Far - Roger Pau Monné, Citrix
 
Lab manual
Lab manualLab manual
Lab manual
 
Embedded Recipes 2019 - Testing firmware the devops way
Embedded Recipes 2019 - Testing firmware the devops wayEmbedded Recipes 2019 - Testing firmware the devops way
Embedded Recipes 2019 - Testing firmware the devops way
 
Embedded_Linux_Booting
Embedded_Linux_BootingEmbedded_Linux_Booting
Embedded_Linux_Booting
 
Uboot startup sequence
Uboot startup sequenceUboot startup sequence
Uboot startup sequence
 
Board Bringup
Board BringupBoard Bringup
Board Bringup
 
BSDCan 2015: How to Port BSD as a Xen on ARM Guest
BSDCan 2015: How to Port BSD as a Xen on ARM GuestBSDCan 2015: How to Port BSD as a Xen on ARM Guest
BSDCan 2015: How to Port BSD as a Xen on ARM Guest
 
Fosdem 17 - Towards a HVM-like Dom0 for Xen
Fosdem 17 - Towards a HVM-like Dom0 for XenFosdem 17 - Towards a HVM-like Dom0 for Xen
Fosdem 17 - Towards a HVM-like Dom0 for Xen
 
OMAP
OMAPOMAP
OMAP
 

Viewers also liked

S E S IÓ N 1
S E S IÓ N 1S E S IÓ N 1
S E S IÓ N 1
luisamhia
 
Pergerakan Lokomotor & Bukan Lokomotor
Pergerakan  Lokomotor &  Bukan  LokomotorPergerakan  Lokomotor &  Bukan  Lokomotor
Pergerakan Lokomotor & Bukan Lokomotor
nurhusna
 
Narraciones extraordinarias allan_poe
Narraciones extraordinarias allan_poeNarraciones extraordinarias allan_poe
Narraciones extraordinarias allan_poe
jasonmontoya
 

Viewers also liked (14)

S E S IÓ N 1
S E S IÓ N 1S E S IÓ N 1
S E S IÓ N 1
 
Satchel
SatchelSatchel
Satchel
 
203K
203K203K
203K
 
Apps4 health building for success 2013may16 - pdf format
Apps4 health   building for success 2013may16 - pdf formatApps4 health   building for success 2013may16 - pdf format
Apps4 health building for success 2013may16 - pdf format
 
Earth day 2016 (1)
Earth day 2016 (1)Earth day 2016 (1)
Earth day 2016 (1)
 
Pergerakan Lokomotor & Bukan Lokomotor
Pergerakan  Lokomotor &  Bukan  LokomotorPergerakan  Lokomotor &  Bukan  Lokomotor
Pergerakan Lokomotor & Bukan Lokomotor
 
Adam cole, sample work
Adam cole, sample workAdam cole, sample work
Adam cole, sample work
 
Software estimating
Software estimatingSoftware estimating
Software estimating
 
Comparison between TKT and OUHK
Comparison between TKT and OUHKComparison between TKT and OUHK
Comparison between TKT and OUHK
 
Scaling with Riak at Showyou
Scaling with Riak at ShowyouScaling with Riak at Showyou
Scaling with Riak at Showyou
 
Designing experiences nobody cares about
Designing experiences nobody cares aboutDesigning experiences nobody cares about
Designing experiences nobody cares about
 
Narraciones extraordinarias allan_poe
Narraciones extraordinarias allan_poeNarraciones extraordinarias allan_poe
Narraciones extraordinarias allan_poe
 
Happiness: A Free Person's Worship/Sunday Assembly Nashville
Happiness: A Free Person's Worship/Sunday Assembly NashvilleHappiness: A Free Person's Worship/Sunday Assembly Nashville
Happiness: A Free Person's Worship/Sunday Assembly Nashville
 
Roots pp
Roots ppRoots pp
Roots pp
 

Similar to Beta kate

Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Line
lifeit
 
Raju Tiwari-Resume-8+
Raju Tiwari-Resume-8+Raju Tiwari-Resume-8+
Raju Tiwari-Resume-8+
Raju Tiwari
 

Similar to Beta kate (20)

BeagleBone Black: Platform Bring-Up with Upstream Components
BeagleBone Black: Platform Bring-Up with Upstream ComponentsBeagleBone Black: Platform Bring-Up with Upstream Components
BeagleBone Black: Platform Bring-Up with Upstream Components
 
First Steps Developing Embedded Applications using Heterogeneous Multi-core P...
First Steps Developing Embedded Applications using Heterogeneous Multi-core P...First Steps Developing Embedded Applications using Heterogeneous Multi-core P...
First Steps Developing Embedded Applications using Heterogeneous Multi-core P...
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
Backtrack Manual Part4
Backtrack Manual Part4Backtrack Manual Part4
Backtrack Manual Part4
 
Vortex86 Sx Linux How To
Vortex86 Sx Linux How ToVortex86 Sx Linux How To
Vortex86 Sx Linux How To
 
Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Line
 
C programming first_session
C programming first_sessionC programming first_session
C programming first_session
 
C programming first_session
C programming first_sessionC programming first_session
C programming first_session
 
Linux
LinuxLinux
Linux
 
Install guide
Install guideInstall guide
Install guide
 
Install guide
Install guideInstall guide
Install guide
 
Linux
LinuxLinux
Linux
 
Resume -9 Yrs -Looking for New Opportunity !!
Resume -9 Yrs -Looking for New Opportunity !!Resume -9 Yrs -Looking for New Opportunity !!
Resume -9 Yrs -Looking for New Opportunity !!
 
U Boot or Universal Bootloader
U Boot or Universal BootloaderU Boot or Universal Bootloader
U Boot or Universal Bootloader
 
Lavigne bsdmag july
Lavigne bsdmag julyLavigne bsdmag july
Lavigne bsdmag july
 
Lavigne bsdmag july
Lavigne bsdmag julyLavigne bsdmag july
Lavigne bsdmag july
 
Ctutor ashu
Ctutor ashuCtutor ashu
Ctutor ashu
 
Programming in c_in_7_days
Programming in c_in_7_daysProgramming in c_in_7_days
Programming in c_in_7_days
 
Proyecto de microcontroladores
Proyecto de microcontroladoresProyecto de microcontroladores
Proyecto de microcontroladores
 
Raju Tiwari-Resume-8+
Raju Tiwari-Resume-8+Raju Tiwari-Resume-8+
Raju Tiwari-Resume-8+
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 

Beta kate

  • 1. Using the Linux Command Line Compilers under Kate. Pre-release beta tester information v0.1 © Revolution Education Ltd 2008. Subject to change. Introduction. Users of Linux (KDE) normally have a very powerful text editor, called Kate, pre-installed. Kate is ideal for using with the PICAXE command line compiler as it: 1) Supports saving files in the raw text format as required by the PICAXE compiler. 2) Supports colour syntax coding of the program. 3) Allows a Terminal Console to be displayed on screen at the same time as the program. Users of other versions of X (e.g. Gnome) may not have access to Kate, but can still use the compiler with programs entered in an alternate editor (e.g. gedit under Gnome). The screenshot above is from an ASUS eeePC (Xandros distribution). We also assume that: • you know how to open a console terminal (ctrl+alt+t on eeePC, different on other distributions) • you are running KDE (not gnome)
  • 2. Setting up Kate for use with the PICAXE Compiler Installation: Step 1 - Download and save the PICAXE compilers. The PICAXE compilers are available in a compressed .tgz file from the software pages at www.picaxe.co.uk Download and save into your working folder e.g. “My Documents” or “Desktop”. Uncompress the files using a File Manager application or via the command line: gunzip –c picaxe.tgz | tax –xvf – or (on more modern systems) simply tar -xvf picaxe.tgz Step 2 – Setup Kate syntax colour coding One of the files extracted, picaxe.xml, is the colour syntax file for Kate, which needs to be copied to the correct /katepart/syntax folder e.g. sudo cp picaxe.xml /usr/share/apps/katepart/syntax One of the restrictions of Kate’s syntax colour coding is that is will only accept one single line comment marker, whereas PICAXE compiler accepts two - ‘ (apostrophe) or ; (semi-colon). The file may be edited (near bottom of file) to swap your personal preference. Step 3 – Patch the AXE027 driver (if using USB) Patch the AXE027 driver as required (BEFORE the USB cable is inserted). Full details on how to do this are given in the AXE027 datasheet available from www.picaxe.co.uk. A quick method is simply sudo modprobe ftdi_sio vendor=0x0403 product=0xbd90 Step 4 – Open Kate To use Kate simply type kate at the command prompt. Use the Tools > Highlighting > Sources > PICAXE menu to select the correct colour coding. After typing in the program, save it (e.g. test.bas) and then select the ‘Terminal’ tab at the bottom of the screen. Type in the appropriate command line, e.g. ./picaxe08m –c/dev/ttyS0 test.bas (AXE026 serial cable on COM1) or ./picaxe08m –c/dev/ttyUSB0 test.bas (AXE027 USB cable) to download the program. Remember to save the file before each download. Note you can use the <up arrow> key within the Terminal window to repeat the command line without retyping.
  • 3. Serial Terminal The compiler already supports display of serial data from both ‘debug’ and ‘sertxd’ commands. Simply add the –d or –t switch to the command line. However for a much more powerful open source Serial terminal application we recommend ‘gtkTerm’ To download gtkTerm visit http://www.jls-info.com/julien/linux/ or for Debian/Ubunto/Xandros etc. simply use sudo apt-get update sudo apt-get install gtkterm Note that on eeePC to do this you will first need to add a debian repository to sources.list e.g. sudo kwrite /etc/apt/sources.list add the line deb ftp://ftp.nl.debian.org/debian stable main contrib non-free and then save. (Note ftp.nl repository is used above, but select a local one to you. Although Revolution are in the UK we tend to use ftp.nl as it is less busy, and hence faster, than the ftp.uk option!)