MadeOnEarth
Posts: 8
Joined: Sat Feb 14, 2015 3:41 pm

Is Geany on Raspbian? ...

Sat Feb 14, 2015 8:42 pm

I've installed raspbian today via Noobs , but couldn't find Geany on it.

However, I came across the following which mentions it is on it ...

http://www.raspberry-projects.com/pi/pr ... rogramming

Can I presume that Raspbian via noobs is the same as Raspbian image, and that the above link is incorrect?

Thanks

User avatar
PeterO
Posts: 4939
Joined: Sun Jul 22, 2012 4:14 pm

Re: Is Geany on Raspbian? ...

Sat Feb 14, 2015 8:44 pm

I don't think it comes preinstalled so have you tried installing it ?

Code: Select all

sudo apt-get install geany 
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
croston
Posts: 702
Joined: Sat Nov 26, 2011 12:33 pm
Location: Blackpool
Contact: Website

Re: Is Geany on Raspbian? ...

Sat Feb 14, 2015 8:46 pm

You can make sure that Geany is installed:

Code: Select all

$ sudo apt-get update
$ sudo apt-get install geany

jimallyn
Posts: 51
Joined: Wed Nov 12, 2014 9:13 am

Re: Is Geany on Raspbian? ...

Sat Feb 14, 2015 9:09 pm

Entering 'apt-cache search geany' in terminal shows that not only is geany available, but a bunch of plugins for it, too.
“So you say you love the poor? Name them.” - Gustavo Gutierrez

User avatar
Mequa
Posts: 172
Joined: Sun Sep 09, 2012 9:54 pm
Location: England
Contact: Website

Re: Is Geany on Raspbian? ...

Sat Feb 14, 2015 10:23 pm

I'm wondering if the Raspberry Pi Foundation would consider pre-loading Geany onto the Raspbian and NOOBS images. It's a much better IDE for Python than IDLE (which is included), is very lightweight, and fits well with the purpose of the RPi.

Geany is also recommended for use with Pi3D, for creating hardware accelerated 3D applications with Python.

DirkS
Posts: 9898
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Is Geany on Raspbian? ...

Sat Feb 14, 2015 10:27 pm

Mequa wrote:I'm wondering if the Raspberry Pi Foundation would consider pre-loading Geany onto the Raspbian and NOOBS images. It's a much better IDE for Python than IDLE (which is included), is very lightweight, and fits well with the purpose of the RPi.
I hope they don't. There are enough 'extras' installed already.
It takes a few seconds to install anyway.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Is Geany on Raspbian? ...

Sun Feb 15, 2015 1:51 am

it seems all tutorial copy from same source,
like here about geany again, need a makefile, and if you copy it
and if you have your main.c ( or main.cpp ) ( file edit by geany or any text editor )
you can use geany to make the main.a
or you type
make
in the terminal with the same result.
i have no idea where the main.a comes from, but using RPI filemanager...
linux thinks its a archive and not a executable ( but it runs )
so i changed that makefile to make a .app , just looks better from the desktop side.

but it might be that geany editor and project tools are worth for bigger projects.
___________________________________________________________
but back to the question ,i also have:
is XXXX on the RPI
that happens to me all the time: what is installed and what can i install
and for that i think we should not talk about should geany be in the distribution
better talk about
sudo apt-get install synaptic
i know it runs the RPI to the cpu limit, but this way the lists "what i have and what i can install"
are much more readable.
___________________________________________________________

User avatar
r3d4
Posts: 967
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: Is Geany on Raspbian? ...

Sun Feb 15, 2015 8:36 am

KLL wrote:but back to the question ,i also have:
is XXXX on the RPI
that happens to me all the time: what is installed and what can i install
and for that i think we should not talk about should geany be in the distribution
better talk about
sudo apt-get install synaptic
i know it runs the RPI to the cpu limit, but this way the lists "what i have and what i can install"
are much more readable.
Hi :) i think for a list of installed packages synaptic is over kill ...
Simpler IMHO to just use a terminal and do abit of research into the many tools that are available ..

To LIST ALL INSTALLED PACKAGES use

Code: Select all

dpkg-query -W --showformat='${Package}\n' 
if you want to be able to scroll this list simply pipe the out put to the `less` command like so ( use q to quit )

Code: Select all

dpkg-query -W --showformat='${Package}\n' | less
to search the list pipe the out put to the `grep` command

Code: Select all

dpkg-query -W --showformat='${Package}\n' | grep XXXX 
EG :

Code: Select all

dpkg-query -W --showformat='${Package}\n' | grep -i "Geany" 

# using the -i or --ignore-case option to 'ignore case distinctions'
:D
-------------------------------
"As the days go by, we face the increasing inevitability that we are alone in a Godless, uninhabited, hostile and meaningless universe. Still, you've got to laugh, haven't you?" — Holly

User avatar
rpdom
Posts: 14979
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Is Geany on Raspbian? ...

Sun Feb 15, 2015 9:16 am

r3d4 wrote:To LIST ALL INSTALLED PACKAGES use

Code: Select all

dpkg-query -W --showformat='${Package}\n' 
That will actually list all packages that have ever been installed, including ones that have been removed.

There are several ways of showing currently installed packages only. A couple are

Code: Select all

dpkg-query -W --showformat='${Package} ${Status}\n' | grep "install ok installed"| cut -d' ' -f 1
dpkg-query -W --showformat='${Package} ${Status}\n' | sed -n "s/^\([^ ]*\) install ok installed$/\1/p"

Sleep Mode zZ
Posts: 319
Joined: Sun Aug 19, 2012 5:56 am
Location: Finland

Re: Is Geany on Raspbian? ...

Sun Feb 15, 2015 9:50 am

r3d4 wrote:
Hi :) i think for a list of installed packages synaptic is over kill ...
Simpler IMHO to just use a terminal and do abit of research into the many tools that are available ..
[...]
rpdom wrote:
r3d4 wrote:To LIST ALL INSTALLED PACKAGES use

Code: Select all

dpkg-query -W --showformat='${Package}\n' 
That will actually list all packages that have ever been installed, including ones that have been removed.

There are several ways of showing currently installed packages only. A couple are

Code: Select all

dpkg-query -W --showformat='${Package} ${Status}\n' | grep "install ok installed"| cut -d' ' -f 1
dpkg-query -W --showformat='${Package} ${Status}\n' | sed -n "s/^\([^ ]*\) install ok installed$/\1/p"
I'm sorry to say, but recalling commands like that is much more of an overkill than starting Synaptic with a click of the mouse. That is for my brain - YMMV.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Is Geany on Raspbian? ...

Sun Feb 15, 2015 9:53 am

thanks, yes @Sleep Mode zZ
when i take it from this posts and paste it into putty it works fine,
and tomorrow? i search 10min for that last post here?
what i mean, what is the working style of you terminal apostles, how can you remember that?
you store it all to

sudo nano /home/pi/.bash_aliases

or you have a snippet file on the host computer you run the putty from, using [CTRL C] and right mouse click on putty?

User avatar
r3d4
Posts: 967
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: Is Geany on Raspbian? ...

Sun Feb 15, 2015 10:20 am

rpdom wrote:
r3d4 wrote:To LIST ALL INSTALLED PACKAGES use

Code: Select all

dpkg-query -W --showformat='${Package}\n' 
That will actually list all packages that have ever been installed, including ones that have been removed.

There are several ways of showing currently installed packages only. A couple are

Code: Select all

dpkg-query -W --showformat='${Package} ${Status}\n' | grep "install ok installed"| cut -d' ' -f 1
dpkg-query -W --showformat='${Package} ${Status}\n' | sed -n "s/^\([^ ]*\) install ok installed$/\1/p"
aah! :lol: fail . Well i have not used the command's in along long time ( mostly used to slim-down `live iso ) so (please) excuse my ignorence :) and thanks for the corection !!

I did just a quick search as i have forgotten the exact link/reffrence i have used in the past ( to find and filter /remove large packages)

Also i think dpkg has a log file some place you can just grep but i might be thinking of another distro / package managment system ;)
... Oh aparently

Code: Select all

dpkg --list
will also list all installed package's

MadeOnEarth
Posts: 8
Joined: Sat Feb 14, 2015 3:41 pm

Re: Is Geany on Raspbian? ...

Sun Feb 15, 2015 2:44 pm

Lots of smart little tricks and stuff there! Thanks all!

I think overall raspbian is not the simplest of things to use with respect to packages.

I'd hope for a simple pre-installed gui package tool.

Anyone, original question - Geany isn't on it, so that link is incorrect.

Right, thank you all.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Is Geany on Raspbian? ...

Mon Feb 16, 2015 4:47 am

MadeOnEarth wrote: I'd hope for a simple pre-installed gui package tool.
Anyone, original question - Geany isn't on it, so that link is incorrect.
i think now there is some confusion, sorry we got OFF TRACK,
- yes, geany is not installed
-1- you don't need it, but you can install it
sudo apt-get install geany
-2- its anyway not a gui package, its a IDE
-3- for C++ GUI like GTK you need to install
sudo apt-get install libgtk-3-dev
-4- you might need to get or make a makefile to use make ( with or without geany installed )

for writing your "first" C GUI program you could look my blog
http://kll.engineering-news.org/kllfusi ... #example4b
you also can download the ZIP with all the examples.
( but i am not a C.. programmer! i just test RPI for learn GUI programming, so possibly you can teach me C.. )
there are many other examples how to start GUI programming on RPI
i assumed you want geany because you want use it for C?++?
but if you not insist in using C

you could start with python, where no add. installs are required for GUI.
( this python GUI versions are already installed on RPI: Tkinter, GTK, pygame )
you can start with using IDLE ( python2 IDE )
or use any editor and make a "my_first_python2_test.py" file and run it by terminal command
python my_first_python2_test.py

and that also would have been the easy answer if your question would have been
I'd hope for a simple pre-installed gui package tool

User avatar
PeterO
Posts: 4939
Joined: Sun Jul 22, 2012 4:14 pm

Re: Is Geany on Raspbian? ...

Mon Feb 16, 2015 12:33 pm

KLL wrote: i think now there is some confusion, sorry we got OFF TRACK,
- yes, geany is not installed
-1- you don't need it, but you can install it
sudo apt-get install geany
-2- its anyway not a gui package, its a IDE
Some of the confusion is caused by you....
From the Geany home page..."Geany is a text editor using the GTK2 toolkit with basic features of an integrated development environment."
Do you know what "GUI" means and what "GTK2" provides ?
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Is Geany on Raspbian? ...

Mon Feb 16, 2015 12:46 pm

no, i don't know, teach me
i hope you read in my post that i don't know any C..

do you want to say that if i install geany it comes already with the libgtk-3-dev lib ?
that i could not see, because i first install the lib and use make...
and later installed geany, thanks i will try on a new system.

User avatar
PeterO
Posts: 4939
Joined: Sun Jul 22, 2012 4:14 pm

Re: Is Geany on Raspbian? ...

Mon Feb 16, 2015 12:54 pm

KLL wrote:no, i don't know, teach me

do you want to say that if i install geany it comes already with the libgtk-3-dev lib ?
that i could not see, because i first install the lib and use make...
and later installed geany, thanks i will try on a new system.
You are mixing up applications that use a Graphical User Interface (GUI) with the tools that are used to design Graphical User Interfaces
Of course an application like Glade has a GUI and is used to design GUIs for other appliactions.

GUI applications use mouse/pointer/graphics compared to those that just the keyboard (which are called Command Line Interface (CLI) applications).

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Is Geany on Raspbian? ...

Mon Feb 16, 2015 1:21 pm

Thanks,
and i just tested: geany not compiled my "GUI".cpp as GTK is missing on a new system.

so "my confusion" is that i interpret:
"pre-installed gui package tool" as: MadeOnEarth want write a program with window mouse ..
and @PeterO, you think he just want write a C program without GUI but
want use a nice desktop tool for it.
ok

User avatar
PeterO
Posts: 4939
Joined: Sun Jul 22, 2012 4:14 pm

Re: Is Geany on Raspbian? ...

Mon Feb 16, 2015 1:28 pm

KLL wrote:Thanks,
and i just tested: geany not compiled my "GUI".cpp as GTK is missing on a new system.
Of course ! GTK(2 or 3) development libraries are not installed by default. I'm still not sure you've understood the concepts here.
so "my confusion" is that i interpret:
"pre-installed gui package tool" as: MadeOnEarth want write a program with window mouse ..
and @PeterO, you think he just want write a C program without GUI but
I don't know what he wants to do. I've only been concerned with trying to sort out your apparent confusion
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
r3d4
Posts: 967
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: Is Geany on Raspbian? ...

Tue Feb 17, 2015 1:04 am

PeterO wrote: I don't know what he wants to do. I've only been concerned with trying to sort out your apparent confusion
I think i can take some credit ( :?: ) for the confusion ! :?
Partly,.
---------
"The vodka is good, but the meat is rotten"

Return to “Beginners”