Results 1 to 4 of 4

Thread: Changing default command prompt and mounting fat32 in read/write mode.

  1. #1

    Changing default command prompt and mounting fat32 in read/write mode.

    I am running a highly customized harddrive install of Adriane Knoppix 7.2, and I have a few little annoyances I would like help with. I do nearly all of my offline computing from the Command line, and since the SBL screen reader Adriane uses in text mode speaks entire lines by default, it gets quite annoying to listen to it repeat knoppix@microknoppix followed by the path to the working directory every time I need it to read back the command I just typed. I know typing PS1=$ at the command line can be used to change the prompt to a stand-alone dollar sign, but I would like to make this change permanent instead of having to re-enter the command everytime I bring up the command line. I tried adding PS1=$ to the script I use to have vbetool turn off my monitor, but it doesn't seem to work there and I have no idea how to make the change automatic. My other problem is with mounting fat32 file systems. I do 99.9% of my file management from the command line and I normally mount external drives using the command: mount /dev/sdxn /media/sdxn where x is the drive letter and n is the partition number, and for all of my linux format drives(previously included ext3/4, now includes Btrfs and reiserfs) this works fine, but I have a FAT32 formatted SD card that I use for the rare occasions I need to use Windows PCs, and this command mounts it in read-only mode. The file manager provide by the Adriane-mount package can mount it in read-write mode, but it is annoying to have to leave the command line, launch the file manager, mount the SD card, exit the file manager and return to the command line every time I need to access the card and I realize I haven't mounted it since the last reboot. Is there a way I can mount this fat32 SD card in read-write mode from the command-line. Alternatively, is there a way to make the card automounted at boot?

  2. #2
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Greetings, Jeffery.

    In regards to PS1,
    I would expect that if you defined PS1 to suit you in /etc/rc.local,
    that should do it until you subsequently change it with another definition.
    Is that not the case?

  3. #3
    Best I can tell, my /etc/rc.local doesn't contain a existing PS1 definition, and apparently adding such a definition is more complicated than adding the line: PS1=$ on a blank line within the file. I'm no stranger to editing config files manually, but in this case, I am ignorant on how to edit the needed files to recieve the desired result.
    Last edited by Jeffery Mewtamer; 02-25-2014 at 01:26 PM. Reason: Glitch in quick replay deleting line breaks.

  4. #4
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631

    Just a suggestion

    .
    Greetings again, Jeffery.

    I offer the following only if you feel comfortable making changes to your Knoppix.

    You might edit /etc/rc.local with the command
    Code:
    sudo leafpad /etc/rc.local
    to include a new single command line just before the 'exit 0' line, as follows:
    Code:
    #!/bin/bash
    #
    # rc.local
    #
    # Start local services after hardware detection
    
    SERVICES="cups"
    
    for i in $SERVICES; do
     [ -x /etc/init.d/"$i" ] && /etc/init.d/"$i" start >/dev/null 2>&1
    done
    
    # PS1 re-definition command here.
    
    exit 0
    If you were to save and reboot with this /etc/rc.local, there should be no changes in your system.
    If you use sudo leafpad /etc/rc.local to remove the initial '#' ahead of the command, and re-save
    this changed /etc/rc.local, then I would expect this to change your PS1 for the remainder of this boot
    and for subsequent re-boots until or unless your put the initial '#' back and reboot.

    It's really not essential here, but it's good practice always to save an original configuration file
    just in case somehow you goof up editing the original. With /etc/rc.local, since its permissions
    are root:root, this means doing
    Code:
     sudo cp /etc/rc.local /etc/rc.local.orig
    or something similar.

Posting Permissions

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


Original Vintage Old Style STANDARD Black CD Jewel Case (Heavy Duty) 90g Lot picture

Original Vintage Old Style STANDARD Black CD Jewel Case (Heavy Duty) 90g Lot

$316.95



Vintage GTE XT300 Action Station Terminal 1984 - Tested Works Orig. Box & Foam picture

Vintage GTE XT300 Action Station Terminal 1984 - Tested Works Orig. Box & Foam

$889.00



Vintage Tandy Computer Varsity Scripsit Word Processing 3.5 & 5.25 Disks SEALED picture

Vintage Tandy Computer Varsity Scripsit Word Processing 3.5 & 5.25 Disks SEALED

$29.95



Vintage 1993 Compaq  User Programs .Disc 1-2 Complete Used Untested picture

Vintage 1993 Compaq User Programs .Disc 1-2 Complete Used Untested

$10.00



Vintage Everex Intel 286-10 640K DRAM Motherboard - Works picture

Vintage Everex Intel 286-10 640K DRAM Motherboard - Works

$190.00



Vintage Large Intel 386 DX-33 Motherboard - Works picture

Vintage Large Intel 386 DX-33 Motherboard - Works

$200.00



Vintage Everex AT  1MB Large System Board - 80286- 8 Motherboard - Works picture

Vintage Everex AT 1MB Large System Board - 80286- 8 Motherboard - Works

$190.00



Vintage 1993 Compaq  User Programs .Disc 1-2 Complete Used Untested picture

Vintage 1993 Compaq User Programs .Disc 1-2 Complete Used Untested

$10.00



Ultra Rare Vintage IBM 3270 Personal Computer Wooden Floppy Disk Box Caddy  picture

Ultra Rare Vintage IBM 3270 Personal Computer Wooden Floppy Disk Box Caddy

$179.99



Rare Vintage Apple TV/FM Radio System In Box w Remote For Mac M4586LL/A picture

Rare Vintage Apple TV/FM Radio System In Box w Remote For Mac M4586LL/A

$499.00