IRIX Tips: 1/2020
#1
IRIX Tips: 1/2020
I'm gonna try and do some monthly tips threads on this. If they become popular enough, then I'll start a subforum for 'em.

  • IRIX does have skeleton files that it uses to create a user account. These are located in /var/sysadm/config and can be used to add anything from a custom shellrc to populate in default files for programs like vim. 
  • /usr/sysadm/privbin/ is a privileged user directory full of useful scripts to automate tasks. 
  • MIPSPro is quite pedantic, so you can use -woff to turn off some of the warnings. That being said, it catches a lot of things GCC will let slide that could be serious issues down the like. Use the following at your own risk in a makefile
           NOWARN = -woff 1009,1014,1110,1116,1185,1188,1204,1230,1233 \                -Wl,-woff,85,-woff,84       $(CC) $(NOWARN) ...
  • IRIX's main libc is only available as a shared object, so for a lot of programs calling from IRIX libc, full static linking isn't possible. 
  • tcsh on IRIX is actually quite usable, and far faster than bash. Here's my .cshrc I use for root:
    Code:
    # User TCSH for IRIX

    # ENV
    setenv PATH '/usr/sbin:/usr/bsd:/sbin:/usr/bin:/etc:/usr/etc'

    # Prompt
    set     red="%{\033[1;31m%}"
    set   green="%{\033[0;32m%}"
    set  yellow="%{\033[1;33m%}"
    set    blue="%{\033[1;34m%}"
    set magenta="%{\033[1;35m%}"
    set    cyan="%{\033[1;36m%}"
    set   white="%{\033[0;37m%}"
    set     end="%{\033[0m%}" # This is needed at the end... :(
    set prompt="${yellow}%n${green}@%m ${yellow}%~ ${blue}%%${end} "

    # Development
    setenv CC c99
    setenv CXX $CC
    if ($?prompt) then
            # An interactive shell -- set some stuff up
            set filec
            set history = 1000
            set savehist = (1000 merge)
            set autolist = ambiguous
            # Use history to aid expansion
            set autoexpand
            set autorehash
            if ( $?tcsh ) then
                    bindkey "^W" backward-delete-word
                    bindkey -k up history-search-backward
                    bindkey -k down history-search-forward
            endif

    endif
  • and .login:
    Code:
    # User .login for IRIX

    # ENV
    setenv TERM xterm
    stty intr '^C'
    stty erase '^?'

  • You can change the prompt colors; I use the red to remind myself I'm root. 

Useful or not?

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
(This post was last modified: 01-30-2020, 04:33 AM by Raion.)
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
01-26-2020, 12:49 AM
#2
RE: IRIX Tips: 1/2020
Just came across this, thanks!
02girl
O2

Trade Count: (0)
Posts: 34
Threads: 6
Joined: May 2020
Find Reply
09-30-2020, 06:44 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)