# Stuck in command line

**URL:** <https://forum.clockworkpi.com/t/stuck-in-command-line/2320>\
**Category:** GameShell\
**Tags:** gameshell\
**Created:** [January 19, 2019, 12:56am UTC](https://forum.clockworkpi.com/t/stuck-in-command-line/2320 "2019-01-19T00:56:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atomickarma](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/atomickarma/32/1496_2.png) [@Atomickarma](https://forum.clockworkpi.com/u/Atomickarma)\
**Post date:** [January 19, 2019, 12:56am UTC](https://forum.clockworkpi.com/t/stuck-in-command-line/2320/1 "2019-01-19T00:56:19Z")

</div>

Hi

Just put my game gameshell together today, had a fiddle around… and accidentally got stuck in command line. I see the CPI screen, “happy hacking” and the prompt.

I’ve rebooted via the power button, and via ssh, but there’s still no UI.

What can I do? Is there a shortcut button I can use when booting?

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [January 19, 2019, 8:30am UTC](https://forum.clockworkpi.com/t/stuck-in-command-line/2320/2 "2019-01-19T08:30:41Z")

</div>

> [@GameShell OS image files (v0.3-0.4)](https://forum.clockworkpi.com/t/gameshell-os-image-files-v0-3-0-4/355/1):
>
> **The New GameShell OS image file (v0.21 latest) is available for download now:**
> 
> - (v0.21 latest) [http://106.185.33.196/clockworkos\_v0.21.img.bz2](http://106.185.33.196/clockworkos_v0.21.img.bz2)  
> MD5SUM: 8c853816594b1c6b8b998e97d177b42a  
> SIZE: 4GB [TORRENT](http://www.urlhash.com/115579/clockworkos_v0.21.img.bz2.torrent) [MAGNET] ( magnet:?xt=urn:btih:3555f7abe31814400a7cdbde71f117f17172405d&dn=clockworkos\_v0.21.img.bz2)

don’t know why

but maybe re-flash the sd card will fix your issue

---

<div class="post-metadata">

**Author:** ![Atomickarma](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/atomickarma/32/1496_2.png) [@Atomickarma](https://forum.clockworkpi.com/u/Atomickarma)\
**Post date:** [January 19, 2019, 8:41am UTC](https://forum.clockworkpi.com/t/stuck-in-command-line/2320/3 "2019-01-19T08:41:24Z")

</div>

That seems a bit destructive. I’ve literally done nothing but setup wi-fi and play games; nothing added, nothing removed.

Doesn’t install confidence for reliability if things can go wrong so easily.

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [January 19, 2019, 8:52am UTC](https://forum.clockworkpi.com/t/stuck-in-command-line/2320/4 "2019-01-19T08:52:36Z")

</div>

well  
if you have connected wifi on GameShell  
then you can ssh into your gs ,and fix it  
find the GameShell ip in router’s admin page

so do you know anything about ssh , or linux?

---

<div class="post-metadata">

**Author:** ![Atomickarma](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/atomickarma/32/1496_2.png) [@Atomickarma](https://forum.clockworkpi.com/u/Atomickarma)\
**Post date:** [January 19, 2019, 9:06am UTC](https://forum.clockworkpi.com/t/stuck-in-command-line/2320/5 "2019-01-19T09:06:34Z")

</div>

A bit, but not sure if it’s enough.

I’m already connected via SSH. I assumed the load.sh script was enough, but that returns an error, “pygame.error: Unable to open a console terminal” so it seems that’s not the answer.

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [January 19, 2019, 9:13am UTC](https://forum.clockworkpi.com/t/stuck-in-command-line/2320/6 "2019-01-19T09:13:20Z")

</div>

what is the results of command below on your machine?

```auto
 tail -n 30 ~/.bashrc 

```

---

<div class="post-metadata">

**Author:** ![Atomickarma](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/atomickarma/32/1496_2.png) [@Atomickarma](https://forum.clockworkpi.com/u/Atomickarma)\
**Post date:** [January 19, 2019, 9:13am UTC](https://forum.clockworkpi.com/t/stuck-in-command-line/2320/7 "2019-01-19T09:13:54Z")

</div>

#alias la=‘ls -A’  
#alias l=‘ls -CF’

# Alias definitions.

# You may want to put all your additions into a separate file like

# ~/.bash\_aliases, instead of adding them here directly.

# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [-f ~/.bash\_aliases]; then  
. ~/.bash\_aliases  
fi

# enable programmable completion features (you don’t need to enable

# this, if it’s already enabled in /etc/bash.bashrc and /etc/profile

# sources /etc/bash.bashrc).

if ! shopt -oq posix; then  
if [-f /usr/share/bash-completion/bash\_completion]; then  
. /usr/share/bash-completion/bash\_completion  
elif [-f /etc/bash\_completion]; then  
. /etc/bash\_completion  
fi  
fi

if [-f /tmp/autologin]  
then  
rm -f /tmp/autologin  
mpd ~/.mpd.conf  
startx /home/cpi/launchergo/.xinitrc – -nocursor \> /tmp/x.log 2\>&1  
fi  
alias iujk=startx

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [January 19, 2019, 9:16am UTC](https://forum.clockworkpi.com/t/stuck-in-command-line/2320/8 "2019-01-19T09:16:30Z")

</div>

got you problem

I guess you did an update in launcher

there is a bug between versions updating…

> [@Bug in Launcher 1.23](https://forum.clockworkpi.com/t/bug-in-launcher-1-23/2139):
>
> I just installed the newest Launcher update into ClockworkOS 1.21. Now every time it boots it starts up in a windowed mode, displaying the launcher in a window titled “pygame window”. If I switch to LauncherGo, it reboots into the normal display, but looses a lot of features in Settings.

> [@Bug in Launcher 1.23](https://forum.clockworkpi.com/t/bug-in-launcher-1-23/2139/2):
>
> need a little fix in /home/cpi/.bashrc
> 
> remove bottom part of `.bashrc` , starts at this line to the end
> 
> ```auto
> if [-f /tmp/autologin]
> ....
> 
> ```
> 
> Replace with:
> 
> ```auto
> if [-f ~/launcher/.cpirc]; then
> . ~/launcher/.cpirc
> fi
> 
> ```
> 
> In os v0.21 image, we changed `~/.bashrc`

if you don’t know how to edit text under ssh use vim ,let me know

here is the whole file of ~/.bashrc

> **[gameshell /home/cpi/.bashrc - Pastebin.com](https://pastebin.com/eJRPg93A)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

if you changed `~/.bashrc` successfully

just `sudo reboot`

---

<div class="post-metadata">

**Author:** ![Atomickarma](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/atomickarma/32/1496_2.png) [@Atomickarma](https://forum.clockworkpi.com/u/Atomickarma)\
**Post date:** [January 19, 2019, 9:31am UTC](https://forum.clockworkpi.com/t/stuck-in-command-line/2320/9 "2019-01-19T09:31:42Z")

</div>

Thanks so much for that – used nano rather than vim, otherwise all good.

Which is a relief, as downloading the image is ultra slow right now. Thanks again!

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [January 19, 2019, 11:15am UTC](https://forum.clockworkpi.com/t/stuck-in-command-line/2320/10 "2019-01-19T11:15:46Z")

</div>

wait a while  
new image will be released soon
