Damn Small Linux (DSL) Forums
Welcome, Guest. Please login or register.
September 21, 2023, 08:17:44 AM

Login with username, password and session length
News
The new DSL forums are now open.
Stats
11609 Posts in 311 Topics by 291 Members
Latest Member: mik3ca
Search:     Advanced search
* Home Help Search Login Register
Get The Official Damn Small Linux Book. Great VPS hosting provided by Tektonic

  Show Posts
Pages: [1]
1  Damn Small Linux / Other Help Topics / Re: C and C++ programming with the DSL OS? on: November 05, 2014, 10:39:58 PM
I realize it is a while since the last post, but having used DSL on and off for years I have just discovered that it includes a C compiler as standard: tcc. It's a very neat compiler, which compiles very quickly and has some nice built in features including a memory checker and a stack trace output on error, so no need for a separate debugger to find out where your program crashed.

http://en.wikipedia.org/wiki/Tiny_C_Compiler

This won't help you with c++ but if you install gcc (gcc1-with-libs.dsl) you get gcc and g++ so can compile C and/or C++, this package also contains make. The gnu debugger is separate however, you need to install the gdb.dsl package... however this looks quite an old version.
2  Damn Small Linux / Other Help Topics / Re: NETCAT on: November 05, 2014, 10:13:30 PM
Hi, OK thanks. The page you mentioned seems to give quite a good explanation of the ethernet situation on the eOne - I can see it seems problematic. When you say you don't know how to compile the driver, could you be more specific? The webpage mentions some instructions. Is it that you get errors when you follow them, or are they the type of instructions that assume you know/have things that you don't? Happy to help if you're stuck. Regarding the C-compiler, DSL has tcc built in, but you may need to install GCC, which can be found in the system section of MyDSL.

cheers
3  Damn Small Linux / Other Help Topics / Re: NETCAT on: November 05, 2014, 08:04:31 PM
Hi,

I'm assuming the spam answer above didn't help. To use netcat, you need a working network connection between two computers. It seems unlikely you'll manage this with an audio cable - although soundmodem does sound interesting, but something fun to experiment with rather than get a reliable connection.

I'm not familiar with your hardware but I believe the eOne has a 10base-T ethernet port and the Compaq Presario V2415LA a 100base-T port. Assuming the laptop supports both speeds (not just 100Mb/s), all you need is a crossover ethernet cable to connect the two together. Once you have a network connection there are lots of ways to transfer files.

Even though the E1 has very old and slow ethernet, it will still be vastly superior to a sound modem type connection - maybe 1000 times faster.

I hope this helps.
4  Damn Small Linux / Other Help Topics / Virtualbox Guest Additions on: November 03, 2014, 08:27:46 PM
Hi,

I have a couple of DSL installs on VirtualBox (https://www.virtualbox.org/) so that I can try stuff out on it whilst doing other stuff. Love the distro. So many cool things in such a small space.

Virtual box allows you to mount a "shared folder" from the host OS (Windows 7 in my case), so that you can access them. It also allows you to copy/paste, drag/drop, between the host and guest OS (DSL)... however you need to install guest additions to get access to these handy features. I have seen from googles that quite a few people seem to have installed DSL on virtualbox, and some seem to have got the guest additions working but I am stuck. Any help appreciated. Here's what I got so far:

HD install of DSL 4.4.10 onto VirtualBox 4.3.16 as 32-bit Linux 2.4 (have also tried with Debian 32-bit setting)
- start up VM and attempt to set up shared folders (VirturalBox -> Devices -> Share Folder Settings)
- Error dialog appears "The VirtualBox Guest Additions do not appear to be available on this virtual machine, and shared folders cannot be used without them. To use shared folders inside the virtual machine, please install the Guest Additions....
- load the guest additions CD into the virtual CD drive (VirtualBox -> Devices -> Insert Guest Additions CD image
- mount it (DSL->Mount->click once to get cdrom -> click to mount (box goes green "mounted")
- DSL cd /mnt/cdrom
- sudo bash ./VBoxLinuxAdditions.run
- see error messages about no cc
- go to /usr/bin and sym link tcc to cc
- retry - realise it needs gcc and make
- go to MyDSL - can't get downloads
- go to Apps/Tools/MyDslMirrors and select a suitable mirror
- retry system- > gcc with libs install in MyDSL - success :-)
- re link cc so that it points to gcc
- retry sudo bash ./VBoxLinuxAdditions.run - fails again, need kernel headers
- back to MyDSL - install system->kernel sources
- retry sudo bash ./VBoxLinuxAdditions.run - fails again, kernel headers still not found
- check /usr/src and discover the kernel source is version 2.4.26 vs actual kernel version is 2.4.31
- add a symlink ln -s /usr/src/linux-2.4.26  ln -s /usr/src/linux-2.4.31
- retry sudo bash ./VBoxLinuxAdditions.run - fails again with compiler errors

At this point I would love to copy and paste the errors or copy off the error log to a shared folder, but of course I can't do either until I get guest additions working! So here is a hand typed summary of the first error.

The first error is an undefined type:
In file included from  ....../include/iprt/types.h
In file included from  ....../linux/the-linux-kernel.h
In file included from  VBoxGuest-linux.c
/lib/modules/2.4.31/build/include/linux/types.h:21: error: parse error before "dev_t"
/lib/modules/2.4.31/build/include/linux/types.h:21: warning: data definition has no type of storage class

Does anybody know how to proceed from this point? I have tried installing one of the existing VirtualBox DSL images in the hope that they already set up guest additions, but sadly not :-(

Any help appreciated.

Thanks

Raffles
Pages: [1]
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Mercury design by Bloc