Ankündigung

Einklappen
Keine Ankündigung bisher.

PyCharm Debug - can't find smarthome.sh

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    PyCharm Debug - can't find smarthome.sh

    Hello Guys.
    According to the guide in the WIKI regarding the PyCharm as a debuggger, i need to change a file called smarthome.sh placed in /etc/profile.d/smarthome.sh - but here is no files called smarthome.sh....

    If i use the find -name "smarthome.sh" i don't get any result..

    Any clues here?

    #2
    Well, I guess you are not using the SH image and so the file isn't at this location or is not existing. I am not the Linux expert, but as far as I can see the file contains some shortcuts for the console, so should not be essential for using PyCharm...

    Kommentar


      #3
      No, I've followed the guide for a custom installation.... Seems like there should be added something to the file before PyCharm can output something...
      I don't think the file exists in my config, since a find command can't find the file....

      Kommentar


        #4
        Well, I am currently not using PyCharm so can't help here for the moment, but I attached the missing file, maybe it will help you.
        Code:
        export GREP_OPTIONS='--color=auto'
        export PATH="$PATH:/sbin:/usr/smarthome/bin"
        export PYTHONSTARTUP="$HOME/.pythonrc"
        
        if [ "$UID" == "0" ]; then
            export PS1='$(echo -n "\033[1;31m")$USER$(echo -n "\033[0m")@$HOSTNAME:$(basename $PWD)# '
        else
            export PS1='$USER@$HOSTNAME:$(basename $PWD)$ '
        fi
        
        seconds2date (){
            /bin/date -r $1 +%FT%T%z
        }
        
        find.grep () { # find | grep
          if [ ! $# ]; then
            echo "findgrep: No arguments entered.";
            return 1
          else
            find {.[a-zA-Z0-9],}* -type f -exec grep "$*" /dev/null {} \; 2> /dev/null
          fi
        }
        
        DU_OPTIONS='-h --max-depth=1';
        alias du='du $DU_OPTIONS'
        alias ls='ls -Fh'
        alias ll='ls -l'
        alias l='ll'
        alias lll='ll'
        alias la='ll -A'
        alias ..='cd ../'
        alias df='df -h'
        alias mkdir='mkdir -p'
        alias md='mkdir'
        alias rd='rm -r'
        alias tx='tar xpvzf'
        alias tz='tar xpvjf'
        alias tl='tar tvzf'
        alias tc='tar cpvzf'
        alias ps.grep='ps auxww | grep -v grep | grep'
        alias ps.my='ps -U $USER -o pid,%cpu,%mem,bsdtime,command ;'
        alias x='exit'
        alias gw='groupswrite ip:127.0.0.1'
        alias gr='groupread ip:127.0.0.1'
        alias cli='telnet 127.0.0.1 2323'
        alias sh.cli='telnet 127.0.0.1 2323'
        alias sh.log="tail -F /usr/smarthome/var/log/smarthome.log | sed \
                -e '/WARNING\|ERROR\|CRITICAL\|FAIL/s/WARNING\|ERROR\|CRITICAL\|FAIL/\x1b[91m&\x1b[0m/i' \
                -e '/PASS/s/PASS/\x1b[92m&\x1b[0m/i'"
        
        cd /usr/smarthome
        
        if [ -f ~/.localrc ]; then
            . ~/.localrc
        fi

        Kommentar


          #5
          Thx - i'll try to paste it inside my project...
          Was your location:
          /etc/profile.d/smarthome.sh?

          Thanks

          Kommentar


            #6
            Yep, that's correct!

            Kommentar

            Lädt...
            X