Results 1 to 4 of 4

Thread: C-language and Java development

  1. #1
    Junior Member
    Join Date
    Jul 2004
    Posts
    1

    C-language and Java development

    I have been developing some C-language and Java programs in Windows and Unix. I want to try to do some of that development under Linux (KNOPPIX) running on a Windows XP system (HP Pavilion).

    I set up a partition for my configuration and files on a USB hard drive, but I am having trouble storing files there. On Unix I can make a directory, create a file with an editor and save it, and then compile it. With KNOPPIX, I get messages that the file cannot be stored on my read-only drive, even when I have allocated a 50M partition.

    Is there a step-by-step guide for creating a file and compiling it? I know how to use all the commands (mkdir, cc, etc.) from a command prompt, but I am stumbling with some elementary setup barriers.

    Any help will be appreciated.

    citpeks

  2. #2
    Senior Member registered user
    Join Date
    Mar 2004
    Location
    Berlin
    Posts
    436
    /etc/fstab (FileSystem Table) contains information who may mount a drive, and which permissions to use.

    assuming your drive is /dev/sda1 and mounted to /mnt/usb, then there is an entry
    /dev/sda1 /mnt/usb vfat defaults 0 0
    instead vfat, there might be 'auto'.
    Instead defaults, there might be this or that.
    make that entry: noauto,users,exec (no blank after comma) which means:
    don't mount automatically at boot,
    allow users to mount
    allow execution of files from that drive.

    missing filepermissions (rwx) on vfat-drives are often disturbing - - -
    defaults setting only allow root to mount the drive who becomes owner of that files.

    But you say you made a partition: reiserfs? ext2? ext3 or other linux-partition?

    By the way - this is a 'general' question.
    This section is more for entertainment or the forum as such, I think.

    Did I mention 'man fstab' and 'man mount'?
    Did you format it (mkfs.reiserfs, mkfs....)?
    Perhaps your /etc/fstab contains in the option-section a 'ro' - read-only.
    Delete it! Away away!

    May root mount it?
    It might be /dev/sda2 if it's not the first partition.

  3. #3
    Junior Member
    Join Date
    Jul 2004
    Posts
    1
    Knoppix handles harddrives as read-only by default. You can allow writing on a drive explicitly by right-clicking on it, and then finding the readonly checkbox somewhere in the context menu. (Unfortunately I don't remember where, maybe options or settings)

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY, USA
    Posts
    1,256
    Sounds to me like you want to install KNOPPIX to the hdd. I'm not clear on your configuration. I'm assuming its one of these 3:

    (1) You are booting from a liveCD and trying to save your work to a hdd partition.

    (2) You copied the /KNOPPIX/KNOPPIX file from the CD to a hdd partition and booted from there (aka "poorman's dual boot").

    (3) You actually installed to an hdd partition, created a user, booted from there and logged-in.

    In the case of (1), your hdd partitions should show-up as an icon on your KNOPPIX desktop. Simply clicking on it gives you a KONQUEROR dir listing of that partition. However, that partition is ro by default. You can right-click that icon and change from ro to rw to save your files.

    In the case of (2), you're working with an ro file system just as if you were running from the CD. You cannot save there. The only thing I can think of in this case is to save to a floppy or another hdd partition.

    Case (3) is how I set-up my PCs and have no trouble editting, saving, printing, compiling or executing my C++ and Java code.

    Good Luck!

    HTH,
    AJG

Similar Threads

  1. A GNU development environment
    By kynax in forum General Support
    Replies: 4
    Last Post: 09-08-2005, 01:06 PM
  2. About learning game development !
    By rangalo in forum General Support
    Replies: 8
    Last Post: 06-15-2005, 12:32 PM
  3. keyboard language different from console language?
    By fingers99 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 03-08-2005, 12:46 AM
  4. KDevelop / c++ Development
    By AS in forum General Support
    Replies: 0
    Last Post: 04-01-2004, 07:36 PM
  5. Java development
    By Kethinov in forum General Support
    Replies: 3
    Last Post: 12-03-2003, 05:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HP ProLiant MicroServer Gen8 G8 G2020T 8GB RAM 4x 1TB HDD 4x 3.5

HP ProLiant MicroServer Gen8 G8 G2020T 8GB RAM 4x 1TB HDD 4x 3.5" 712318-421

$269.99



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$273.00



HP ProLiant MicroServer Gen8 Desktop Computer Intel Core i3-3240 8GB Ram picture

HP ProLiant MicroServer Gen8 Desktop Computer Intel Core i3-3240 8GB Ram

$224.99



HP ProLiant MicroServer Gen8/4x seagate desktop hdd 1000gb cpu e3-1220l v2 rms8g picture

HP ProLiant MicroServer Gen8/4x seagate desktop hdd 1000gb cpu e3-1220l v2 rms8g

$257.92



HPE 658553-001 ProLiant MicroServer Ultra Micro Tower Server - 1 x AMD Turion II picture

HPE 658553-001 ProLiant MicroServer Ultra Micro Tower Server - 1 x AMD Turion II

$365.00



DATTO-1000 Mini PC Micro Server 8GB RAM picture

DATTO-1000 Mini PC Micro Server 8GB RAM

$67.48



HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon picture

HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon

$846.48



HP Proliant HSTNS-5151 Microserver (618364-005) NO HARD DRIVES - WORKS picture

HP Proliant HSTNS-5151 Microserver (618364-005) NO HARD DRIVES - WORKS

$149.99



Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD picture

Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD

$149.99



1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture

1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports

$149.00