Author Topic: Linux distro for devs?  (Read 33169 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Linux distro for devs?
« on: November 24, 2006, 12:23:33 am »
Dear all,
I'm looking for a linux distribution (best would be a live-cd) that ships with the most important development tools - thus at least gcc/g++ and wxGTK (2.6.x). I don't have massive space so if there is a distro which is especially designed for this purpose I'd like to know. It doesn't need a fancy desktop but it should be able to run C::B. And if I can simply boot into this system without installation - great!!!
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

takeshimiya

  • Guest
Re: Linux distro for devs?
« Reply #1 on: November 24, 2006, 01:02:59 am »
My favorite when I'm on Windows is andLinux. Basically it's Ubuntu Edgy + coLinux.
It's like you would use in Windows VMware/VirtualPC/Parallels to boot Linux, only that it's native, not emulated (it's really fast). :)

To get it running, download andLinux PreBeta (190MB) from here and then install it simply run the file run_to_install.bat.
And to run it, startup.bat. If you have any issue, be sure to read this.

Here's a C::B running on Ubuntu Edgy and Windows XP at the same time,


Perfect for cross-platform development. :D

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Linux distro for devs?
« Reply #2 on: November 24, 2006, 09:08:29 am »
Here's a C::B running on Ubuntu Edgy and Windows XP at the same time,
Yes, that would be quite what I'm looking for. I know coLinux but did never get the network to run but I saw that there were a couple of updates, too. Will try that for sure. Thanks! :D
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Linux distro for devs?
« Reply #3 on: November 25, 2006, 08:21:01 pm »
Right... this was a good shot. I didn't get it to work at work, but here at home this is quite impressive. I'm currently compiling SVN in a Linux shell under Windows. With real *great* speed!
That's pretty cool... so I just can forget about another Linux partition (I wouldn't have had space enough for that anyway...).
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Linux distro for devs?
« Reply #4 on: November 25, 2006, 09:54:02 pm »
... I'm currently compiling SVN in a Linux shell under Windows. With real *great* speed! That's pretty cool...

i'm doing the same at the moment, thanks for the tip with andLinux, quite impressive !

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Linux distro for devs?
« Reply #5 on: November 25, 2006, 11:12:28 pm »
done, i love this desktop  :D




another question: does any andLinux guru know how i can edit/set my screen dpi settings
because the fonts are displayed quite too small on my andLinux ...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Linux distro for devs?
« Reply #6 on: November 25, 2006, 11:54:24 pm »
Thanks for the word on andLinux!

I am working on setting up my machine now.

Thanks again
Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

takeshimiya

  • Guest
Re: Linux distro for devs?
« Reply #7 on: November 26, 2006, 06:44:20 am »
another question: does any andLinux guru know how i can edit/set my screen dpi settings
because the fonts are displayed quite too small on my andLinux ...
I recommend this:
apt-get install gtk-switch-theme gtk2-engines-ubuntulooks
and then run gtk-switch-theme2, there you can choose the font size of the theme (by clicking on the "+" button) and the default ubuntu theme which is nicer.

Both packages will be included by default in next andLinux. :)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Linux distro for devs?
« Reply #8 on: November 26, 2006, 09:14:14 am »
found it : it's a commandline argument to Xming ::  -dpi int    ->    screen resolution in dots per inch
can be edited in "settings_static.txt"
exec0="xming\Xming.exe",":0 -ac -clipboard -notrayicon -c -multiwindow -dpi 87 ...

maybe useful for others too

i don't know why Xming don't just use the dpi settings already provided by windows OS ??
at least it can be given as commandline argument.
« Last Edit: November 26, 2006, 01:25:27 pm by tiwag »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #9 on: December 16, 2006, 06:54:20 pm »
The wiki for andLinux says that its a ubuntu system.

Yet I can't find anyting ubuntu about it. It boots, puts 4 icons at the top of the screen and that's it.
Am I supposed to start ubuntu somehow?

How can I add a user other than root? It has no adduser app that I can find.

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Linux distro for devs?
« Reply #10 on: December 16, 2006, 07:40:48 pm »
How can I add a user other than root? It has no adduser app that I can find.
Normally this programm should be called "useradd" ;)
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #11 on: December 16, 2006, 07:50:45 pm »
How can I add a user other than root? It has no adduser app that I can find.
Normally this programm should be called "useradd" ;)

Thanks, I added a user 'pecan'. But I can't figure out how to run as pecan.
It's funny my unix book didn't even show me how to add a user.

andLinux boots as root. When I use the X termininal app to login as pecan, the file manger still starts up as root.

Very confusing. Do you always have to run as root in andLinux?
That wouldn't help me debug CB very well.


Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Linux distro for devs?
« Reply #12 on: December 16, 2006, 09:45:47 pm »
Thanks, I added a user 'pecan'. But I can't figure out how to run as pecan.
This should do the trick:
Code
su pecan -
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Linux distro for devs?
« Reply #13 on: December 18, 2006, 08:17:09 am »
How can I add a user other than root? It has no adduser app that I can find.
Normally this programm should be called "useradd" ;)

Thanks, I added a user 'pecan'. But I can't figure out how to run as pecan.
It's funny my unix book didn't even show me how to add a user.

andLinux boots as root. When I use the X termininal app to login as pecan, the file manger still starts up as root.

Very confusing. Do you always have to run as root in andLinux?
That wouldn't help me debug CB very well.



yes, the startup of andLinux is a bad hack:

   the xfce panel is started from the
   startwindowsterminalsession script


andLinux boot startup files:

/etc/inittab
   #Startup application
   C0::respawn:/usr/bin/X11/startwindowsterminalsession

/usr/bin/X11/startwindowsterminalsession
   termcommand=`cat /etc/winterm`
   ...
   sux - root ${termcommand} $parameters

/etc/winterm
   /usr/bin/xfce4-panel



i removed the execution of startwindowsterminalsession from /etc/inittab
and then andLinux just boots and i do a login to my user
with putty terminal from windows. this works just fine.

if i need xfce i start it from another shell script with user-rights.

brgds, tiwag
« Last Edit: December 18, 2006, 08:19:44 am by tiwag »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #14 on: December 18, 2006, 02:20:55 pm »
<snip>
i removed the execution of startwindowsterminalsession from /etc/inittab
and then andLinux just boots and i do a login to my user
with putty terminal from windows. this works just fine.

if i need xfce i start it from another shell script with user-rights.

brgds, tiwag

thanks tiwag, I'll make those mods today.
andLinux really makes it convienient to do the CB write/test/modify cycle.
I installed samba, and now have shared file accessabilty with windows. Very convenient.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Linux distro for devs?
« Reply #15 on: December 18, 2006, 05:28:08 pm »
Good information that is. :-)
I could add my 2 cents here, too: I modified the distro in a way it uses my (already installed) Xming. I adopted the path in settings_static.txt accordingly. In addition there was a hint on the andLinux webpage how to disable the file system check on startup. This actually works and has speed up the launch a lot for me.
With regards, Morten.
Ps.: If you have any further infos on that topic, keep it coming! ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Belgabor

  • Multiple posting newcomer
  • *
  • Posts: 91
Re: Linux distro for devs?
« Reply #16 on: December 18, 2006, 06:10:55 pm »
I installed samba, and now have shared file accessabilty with windows. Very convenient.

I haven't tried andLinux, I use basic coLinux with a Gentoo image, but depending on the coLinux version andLinux is based upon and what you actually want to share, using cofs may be easier.
« Last Edit: December 18, 2006, 06:12:26 pm by Belgabor »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Linux distro for devs?
« Reply #17 on: December 18, 2006, 09:18:21 pm »
I haven't tried andLinux, I use basic coLinux with a Gentoo image, but depending on the coLinux version andLinux is based upon and what you actually want to share, using cofs may be easier.

I found some info on cofs here.
http://wiki.colinux.org/mediawiki/index.php/CofsDevice
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #18 on: December 18, 2006, 10:20:35 pm »
I haven't tried andLinux, I use basic coLinux with a Gentoo image, but depending on the coLinux version andLinux is based upon and what you actually want to share, using cofs may be easier.

I found some info on cofs here.
http://wiki.colinux.org/mediawiki/index.php/CofsDevice

cofs sure looks like a lot of work.
Using the synaptics provided in andLinus, I simply installed the ubuntu samba.
Then enabled pecan to use it with the command Yiannis taught me a year ago:
Code
smbpasswd -a pecan

In /etc/samba/smb.conf I added at the bottom:
Code
[pecan]
path = /home/pecan
comment = \home\pecan
available = yes
browseable = yes
public = yes
writable = yes

from Windows I issue the command:
Code
net use n: \\andLinux\pecan myPassWord

now andLinux is avaiable as disk n:\home\pecan\*  for any windows or dos program.

If you wish to share the whole system, add in smb.conf
Code
[root]
path = /
comment = \
available = yes
browseable = yes
public = yes
writable = yes
and do something like: "net use n: \\andLinux\root"

I have used TotalCommander for years. It will do the "use" command for me, and looks like:


Now any file can be copied/moved/edited/ etc etc.
A very convenient setup.
« Last Edit: December 24, 2006, 01:46:01 pm by Pecan »

Offline Belgabor

  • Multiple posting newcomer
  • *
  • Posts: 91
Re: Linux distro for devs?
« Reply #19 on: December 19, 2006, 01:11:17 am »
I haven't tried andLinux, I use basic coLinux with a Gentoo image, but depending on the coLinux version andLinux is based upon and what you actually want to share, using cofs may be easier.

I found some info on cofs here.
http://wiki.colinux.org/mediawiki/index.php/CofsDevice

It seems to me that this is largely outdated. Guessing from andLinux' changelog they use coLinux 0.6.4. That means add something like
Code
<cofs_device index="0" type="flat" path="\DosDevices\C:\" enabled="true" />
to your coLinux config file and
Code
cofs0:Share      /mnt/windows            cofs    defaults          0 0
to your fstab inside, that's all you need.
(Note: the example will mount C:\Share as /mnt/windows)

For your benefit here's the full cofs readme that comes with 0.6.4:
Code
The cofs driver in the coLinux kernel is based on work by the people 
responsible for the fuse-1.3 library and kernel code, namely Miklos
Szeredi <miklos@szeredi.hu>.
 
cofs is similar to UML's hostfs. It is a binding between the host's
VFS and Linux's VFS layers. By using cofs it is possible to mount
host OS directories inside Linux.

* Flat mode (default)

  Mounting in flat mode (the default) under Windows, means that the
  expected behavior of the mounted file system is similar to that of
  vfar or samba, which means there is no support for the regular
  UNIX meta data and all the UNIX attributes (mode, uid, gid) are
  virtually the same for all files and directories. Creation of special
  files like symlinks, device nodes, and pipes are not supported.

* UNIX meta data mode

  Future versions of cofs support will introduce the UNIX meta data
  mode, which is similiar to hostfs. It will allow to have a true
  UNIX file system on top of a Windows (or Linux) file system by
  storing the VM's UNIX meta data as regular inaccessible files.
  Theoretically, it will allow to boot a full Linux system without
  a root file system image.

* Ports

  For the host OS side, cofs is only supported on the Windows port
  at the time this is written (October 23, 2004).

  The planned Linux port will be designed to behave more like UML's
  hostfs in flat mode (with support for UNIX attributes), and UML's
  humfs in UNIX meta data mode.

* Configuring cofs (using the colinux-daemon command line interface):

    cofsXX=host-pathname

  XX is a number between 0 and 31.

or in the XML config file:

   <cofs_device index="0" type="<flat | meta>" path="\DosDevices\<path>" enabled="true" />

* mount syntax:

    mount -t cofs (cofs)XX(:path) (-o options) /mnt/point
     
  'cofs' as a prefix to the device name is optional and its purpose
  it clarity.

  The optional ':path' suffix can specify an inner path to mount
  instead of the mapped root.

  'options' are parallel to smbfs:

    gid=        Set the default group.
    uid=        Set the default user.
    dmask=      Set the default directory permission.
    fmask=      Set the default regular file permission.

* Examples:
   
  Using the following configuration:
 
    colinux-daemon kernel=vmlinux hda1=root_fs cofs0=c:\

      This map cofs0 to c:\.

    mount -t cofs 0 /mnt/windows

      Mount c:\ as /mnt/windows.

    mount -t cofs cofs0 -o uid=dax,gid=dax /mnt/windows

      Mount c:\ as /mnt/windows and give dax full access to all the
      files and directories.

    mount -t cofs cofs0:Share -o uid=dax,gid=dax,dmask=0700,fmask=0700 /mnt/windows

      Mount c:\Share as /mnt/windows and give dax exclusive full
      access to all the files and directories.

    An example fstab entry:

      cofs0:Share      /mnt/windows            cofs    defaults          0 0

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #20 on: December 21, 2006, 07:44:35 pm »
What is the difference between "andLinux PreBeta" and "andLinux POC-2.1" ?

takeshimiya

  • Guest
Re: Linux distro for devs?
« Reply #21 on: December 22, 2006, 07:56:17 am »
What is the difference between "andLinux PreBeta" and "andLinux POC-2.1" ?

PreBeta is the newest and latest version, POC-2.1 is the previous version.
PreBeta uses Ubuntu Edgy wereas POC-2.1 used Debian Unstable.

Next version will be called Beta1.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #22 on: December 22, 2006, 10:34:51 pm »
I notice that after terminating CB when running under GDB and andLinux preBeta, WinTap CoLinux-daemon goes to 99% cpu usage. 

A Ctrl-C in the terminal wakes up GDB and it can be exited. CPU then goes to idle.

Looks like GDB is in a loop wondering where CB went.

I have a loop "alarm" on my Dell laptop. It's called "Highest Fan Speed" and the "keyboad is getting hot" alarm.

EDIT: This seems to occur often. It seems to occur after I exit CB. Will try to narrow it down.
« Last Edit: December 23, 2006, 01:34:14 am by Pecan »

LordDavon

  • Guest
Re: Linux distro for devs?
« Reply #23 on: December 24, 2006, 01:18:47 pm »
Hello all:

I have read and am very glad andLinux is useful to the C::B community.  I will be adding some of these modifications to the next version of andLinux and hope you could give some advice as how to proceed in certain areas.  Please understand that andLinux has many different user bases with individual needs.  That being said, there are some changes desired that I would like to ask your input on:

1)I originally designed andLinux's startup user as root since Windows already handles much of the security.  I have heard arguments from every side about the need for user-level security (as opposed to the default user being root).  My preference is to allow the user to decide this level of security during install.  Since I foresee a new release in several weeks, I won't have the default user choice into andLinux in time and may need to lower its priority for other reasons.
I would like to know how difficult it is to work in a root-level environment?
How needed are the user-level additions?
I was thinking of adding a .deb package modifying the system allow user-level logon as a work-around.  This would allow andLinux to release as root user, but patch to specified user.  Do you see this as a good “common ground”?

2)When testing samba printing, file-sharing seemed a very simple addition.  I setup file sharing as a quick way of testing samba when I was having problems attaching printers.  Even though the security implications of mounting Linux drives in Windows can be argued, try to look at ease-of-use as an equal argument.
Which area in the andLinux file system should be mapped?
Do you see the need to have a specific user account that should be required to send/retrieve files from this area or should andLinux automatically map to the default user?
Should andLinux continue to only allow Linux to access Windows?

Also, I would like to address some things said out in the forums:

1)(and my personal favorite) "yes, the startup of andLinux is a bad hack":
Although I have used “dirty hack”, I prefer to call it a "functional hack" or "working hack". :lol:  Much of this is leftover from prior version work-arounds which became obsolete as andLinux “hacks” moved into the CoLinux binaries.  Others are because... well... Linux and Windows don't really play well together.
An alternate solution is to do the following (I will try and create better instructions on the wiki):
A) Create a new user
B) Run the panel application from that user getting your settings correct
C) Replace the word "root" for your custom user in the "   sux - root ${termcommand} $parameters" command.
As well, you can change the contents of /etc/winterm to contain your preferred startup application.

2)"Yet I can't find anyting ubuntu about it..." and "Am I supposed to start Ubuntu somehow":
Ubuntu is the core OS used in andLinux, which makes andLinux compatible with Ubuntu packages.  It just doesn't contain the Kubuntu, Xubuntu, Ubuntu (Gnome) customized desktops that you find in a native install of Ubuntu.  Although the Xfce4 panel application is compatible with X, Kde and Gnome, Windows Explorer is your desktop.  I will be improving the Xfce4-panel application to be a more robust panel application in future versions (starting with the next version).  It will have a full menu of installed Linux applications, add newly installed applications automatically and allow more desktop customizing.

3)"don't know why Xming don't just use the dpi settings already provided by windows OS ??":
If you can find me a way to read the dpi settings from Windows, I will be more then happy to add an automatic adjustment.  I think andLinux should be able to set this.  I really think this is a great idea!

4)"Guessing from andLinux' changelog they use coLinux 0.6.4":
andLinux uses CoLinux 0.8.0 testing.  It is a test version of CoLinux created by Henry Nestler with some modifications added for andLinux.  andLinux will not run with the 0.6.x or 0.7.x branches of CoLinux (it may run unstable under some older 0.7.x versions though).

5)"...depending on the coLinux version andLinux is based upon and what you actually want to share, using cofs may be easier":
As a matter of fact, the mount point of /mnt/and already uses cofs to point to the andLinux folder in Windows.  On my system, I have the folder c:\andLinuxDev\andLinux-06-Dec which holds andLinux.  In this folder I created a transfer folder.  i.e. c:\andLinuxDev\andLinux-06-Dec\transfer.  Anything placed in this folder is accessible in andLinux from /mnt/and/transfer.  I allowed andLinux to see Windows, yet for security sake, I didn't allow Windows to see andLinux.  This way, andLinux can only destroy itself if hit with a virus.  If Windows gets hit with a virus, most viruses would attach only the executables and preserve the virtual drives.


Please understand that when I originally designed andLinux, I figured only a handful of people may use it for sparse development items.  I projected anywhere between 50-100 users.  andLinux turned 1 on December 17th and I now have an estimated 30,000 users.  andLinux was designed for quick Linux development, but has users with hundreds of different needs now.  With PreBeta, I was able to greatly enhance it over its original design without neglecting its initial design.  Your feedback helps ensure this.

Feel free to forward any suggestions for how andLinux could better help the C::B community to my email (at the bottom of the wiki page).


David Solomon
andLinux Founder
http://wiki.gp2x.org/wiki/AndLinux

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Linux distro for devs?
« Reply #24 on: December 25, 2006, 05:10:10 am »
I think you are missing the whole point of having a 'root' user in the first place.  If you are root these 9 characters will complete wipe out you system: "rm -rf /*".  Now that is an extreme example but when working you don't want to have to worry about accidentally screwing up you system settings removing important files.  You could even mistype a path in some program you are developing and do basically the same as I typed above.

If you can, don't even set a root password.  Go with the Ubuntu spirit and force the creation of a user account and let everyone use sudo for admin tasks.  See here for the Ubuntu take on this.  Windows is the only OS I know of that basically gives all users root privileges as default, don't repeat the mistake with andLinux.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #25 on: January 01, 2007, 05:06:57 pm »
Does anyone know how to turn that andLinux startup sound off?

If I forget to turn the sound off at power-down, that andLinux noise makes me jump out of my skin at power-up. it's so damn loud.

thanks
pecan

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Linux distro for devs?
« Reply #26 on: January 01, 2007, 05:54:43 pm »
Does anyone know how to turn that andLinux startup sound off?

If I forget to turn the sound off at power-down, that andLinux noise makes me jump out of my skin at power-up. it's so damn loud.

thanks
pecan



Code
andLinuxPreBeta\Sound>esd --help
Esound version 0.2.36

Usage: esd [options]

  -v --version  print version information
  -d DEVICE     force esd to use sound device DEVICE
  -b            run server in 8 bit sound mode
  -r RATE       run server at sample rate of RATE
  -as SECS      free audio device after SECS of inactivity (-1 to disable)
  -unix         use unix domain sockets instead of tcp/ip
  -tcp          use tcp/ip sockets instead of unix domain
  -public       make tcp/ip access public (other than localhost)
  -promiscuous  start unlocked and owned (disable authenticaton) NOT RECOMMENDED
  -terminate    terminate esd daemon after last client exits
  -noterminate  do not terminate esd daemon after last client exits
  -nobeeps      disable startup beeps
  -beeps        enable startup beeps
  -trust        start esd even if use of /tmp/.esd can be insecure
  -port PORT    listen for connections on PORT (only for tcp/ip)
  -bind ADDRESS binds to ADDRESS (only for tcp/ip)

Possible devices are:  /dev/dsp, /dev/dsp2, etc.


edit your "settings_static.txt"

from
exec1="sound\esd","-tcp -public"

to
exec1="sound\esd","-tcp -public -nobeeps"


brgds
--tiwag

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #27 on: January 01, 2007, 07:54:05 pm »
RE: esd

Thanks, that did the trick.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #28 on: January 04, 2007, 01:24:47 am »
Has anyone been successful running a program from within CB on andLinux.

I dont seem to have an xterm on andLinux, so I changed Setting/Environment Terminal to
Code
/usr/bin/xfce4-terminal -T $TITLE -e


I see the console quickly flash by and get the following messages:
Code
Checking for existence: /home/pecan/proj/Hello/Hello
Executing: /usr/bin/xfce4-terminal -T 'Hello' -e 'LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH /home/pecan/devel/trunk/src/devel/cb_console_runner "/home/pecan/proj/Hello/Hello" ' (in /home/pecan/proj/Hello/.)
Process terminated with status 0 (0 minutes, 0 seconds)
 


with the following error message in my andLinux terminal window

Code
pecan@andLinux:~/devel/trunk/src/devel$ ./run.sh
-------------- Build: Debug in Hello ---------------
g++-4.0 -Wall -g   -c main.cpp -o obj/main.o
g++-4.0  -o ./Hello obj/main.o   
Process terminated with status 0 (0 minutes, 4 seconds)
0 errors, 0 warnings
Unable to register terminal service: Unable to determine the address of the message bus (try 'man dbus-launch' and 'man dbus-daemon' for help)
Process terminated with status 0 (0 minutes, 0 seconds)
Unable to register terminal service: Unable to determine the address of the message bus (try 'man dbus-launch' and 'man dbus-daemon' for help)
Process terminated with status 0 (0 minutes, 0 seconds)

I installed the dbus stuff with synaptic, rebooted andLinux and started the dbus-daemon:

Code
andLinux:~# dbus-daemon
No configuration file specified.
dbus-daemon [--version] [--session] [--system] [--config-file=FILE] [--print-address[=DESCRIPTOR]] [--print-pid[=DESCRIPTOR]] [--fork] [--nofork] [--introspect]

top shows the daemon running, but it all made no difference at all.
I think I'm now over my head here.

Is there another way to get CB to run a program under andLinux?
« Last Edit: January 04, 2007, 01:28:16 am by Pecan »

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Linux distro for devs?
« Reply #29 on: January 04, 2007, 02:21:37 am »
Has anyone been successful running a program from within CB on andLinux.

I dont seem to have an xterm on andLinux, so I changed Setting/Environment Terminal to
Code
/usr/bin/xfce4-terminal -T $TITLE -e

...
Is there another way to get CB to run a program under andLinux?


just install xterm
and use Setting/Environment Terminal
Code
xterm -T $TITLE -e

works fine for me  :D

brgds,
--tiwag

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #30 on: January 04, 2007, 03:18:04 am »
just install xterm
and use Setting/Environment Terminal
Code
xterm -T $TITLE -e

works fine for me  :D

brgds,
--tiwag

Thanks, that works. Though the font is so small I can't read it.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Linux distro for devs?
« Reply #31 on: January 04, 2007, 04:22:35 am »

Thanks, that works. Though the font is so small I can't read it.


I just googled this info, no idea if it works

xterm -fs 12

sets the font size to 12 point.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Linux distro for devs?
« Reply #32 on: January 04, 2007, 10:12:36 am »
Thanks, that works. Though the font is so small I can't read it.

try keep pressing " Ctrl + Right Mouse-Button " in the xterm window,
then a menu pops up and you can adjust

Code
info xterm
will give you all commandline options and infos  :P

brgds,
--tiwag

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #33 on: January 04, 2007, 03:26:46 pm »
Thanks, that works. Though the font is so small I can't read it.

try keep pressing " Ctrl + Right Mouse-Button " in the xterm window,
then a menu pops up and you can adjust

Code
info xterm
will give you all commandline options and infos  :P

brgds,
--tiwag

Thanks.
I finally figured out xfontset and "xterm -font -*-*-*-*-*-*-20-*-*-*-*-*-*-*" did the trick. Man, is that an ugly parameter or "whut"? 8^}

I tried exo-open as a substitute for gnome-open. But it didn't fly.

Also fingured out that you can keep the .cbp path of a project in the snippets plugin, then drag it into the file manager window as a convenience when it rolls off the frequently used list.

andLinux does not seem to work at double clicking a .cbp file.

Found out that a colinux-daemon 99% cpu loop occurs when a program terminates, but the shell that started it does not return to the prompt. a simple ctrl-C cancels the shell and the loop exits ok.
But this means starting "./run.sh &" can get you into a loop that can only be stopped with "killall codeblocks".

But then, I can't complain too much. I find andLinux extreemly useful. andLinux is very nice to use in a stripped down "chop shop" kind of way.
In fact, I've bought more memory just so I can run it without it being swapped out each time I switch to another memory pig (read as Firefox).

Thanks everyone for the help.

« Last Edit: January 04, 2007, 03:34:23 pm by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #34 on: January 04, 2007, 09:26:38 pm »
To add truetype fonts to andLinux (and therby CodeBlocks), copy the font from \windows\fonts to /usr/share/fonts/truetype/{somedir}; then run
Code
dpkg-reconfigure fontconfig

eg., for CourierNew
from windows, copy \windows\fonts\cour*.ttf \andLinux\Transfer
from andLinux
Code
cd /usr/share/fonts/truetype
mkdir ttf-courier
cd ttf-courier
cp /mnt/and/Transfer/*.ttf .
su
dpkg-reconfigure fontconfig

now you should be able to pick courier new in the CB font picker.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Linux distro for devs?
« Reply #35 on: January 30, 2007, 06:37:08 pm »
when I leave andLinux unattended for some time, like walking or feeding my pup,  all my terminals and pgms terminate; disappear.

Why is this and how can I stop it.

Yeah, yeah, I know, the dog ate it.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Linux distro for devs?
« Reply #36 on: July 04, 2007, 01:33:42 pm »

i'm still with wx 2.6.3 on my andlinux - has anyone built wxWidgets 2.8.4 and C::B already on andlinux ?

in the old ubuntu repository i can't find wx 2.8.4, is it possible to use newer ubuntu repositories also when running an older ubuntu ?

thanks,
brgds, tiwag

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Linux distro for devs?
« Reply #37 on: July 04, 2007, 01:39:08 pm »
i'm still with wx 2.6.3 on my andlinux - has anyone built wxWidgets 2.8.4 and C::B already on andlinux ?

I did. But unfortunately my andLinux installation died.

Now I'm happy with VMware. :)
Be a part of the solution, not a part of the problem.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Linux distro for devs?
« Reply #38 on: July 04, 2007, 10:47:15 pm »
ok i've updated my ancient andlinux with wxWidgets 2.8.4

it was not very complicated,
on the wxWidgets download page there is a link to a repository,
with a few changes it works also with andlinux res. ubuntu 6.10 edgy

the repository
Code
    deb http://apt.tt-solutions.com/ubuntu/ edgy main

has to be added to the file
Code
    /etc/apt/sources.list 

then run
Code
    apt-get update
and you get some errors about untrustet public key.
the commands how to add the public key used for signing wxWidgets packages
to the list of keys trusted by apt are described in the /etc/apt/sources.list
just run them with the key you got from the last apt-get update command.

finally run another
Code
    apt-get update

or use synaptic and update the repositories.

then all wx2.8.4 packages are available.

hth,
brgds, tiwag


ps. CB built fine !
« Last Edit: July 04, 2007, 10:48:51 pm by tiwag »

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: Linux distro for devs?
« Reply #39 on: July 04, 2007, 11:12:17 pm »
Dear all,
I'm looking for a linux distribution (best would be a live-cd) that ships with the most important development tools - thus at least gcc/g++ and wxGTK (2.6.x). I don't have massive space so if there is a distro which is especially designed for this purpose I'd like to know. It doesn't need a fancy desktop but it should be able to run C::B. And if I can simply boot into this system without installation - great!!!
With regards, Morten.

Does anyone have heard of "puppy linux" is a great distro that runs from a live cd and use the ram as a file system (only 128mb needed) :shock:, also can run from a jump drive. It loads really fast, works with every Ethernet card, even with wireless, printers ,etc... very easy to configure. Is loaded with all the needed applications for everyday use, and very light applications (really fast for old computers).

The most important thing, it can be customized to make a custom distro of this one. For example graphpup a distro based in puppy linux that is for graphical artists (includes:gimp,inkscape,scribus, etc...).

One time I was thinking on making my own distro of puppy linux for development. It would be nice to create a distro of puppylinux loaded with codeblocks and other useful tools for developers. With some name like myDevPup, The perfect pet for developers.  :P

I just bought a 3.8 ounces 40 gigs hard drive that I can carry anywhere, and installed ubuntu and i forgot the whole thing, but it would be nice.  :)

This is the link:
http://www.puppylinux.org/