Go to advanced search

by Azsorlex26
Tue Aug 14, 2018 1:57 am
Forum: Other programming languages
Topic: Resetting the system, then resuming from the point after it in BASH script
Replies: 3
Views: 1698

Re: Resetting the system, then resuming from the point after it in BASH script

Create a file just before the reboot (e.g. using 'touch') and check for the existence of that file at the start of your script. If it exists you jump to a location after the reboot. So how would I do this? Something like this: if [ *continue doesn't exist* ] ; then *first block of code* *set script...
by Azsorlex26
Mon Aug 13, 2018 11:51 pm
Forum: Other programming languages
Topic: Resetting the system, then resuming from the point after it in BASH script
Replies: 3
Views: 1698

Resetting the system, then resuming from the point after it in BASH script

Hello forums. What I'm trying to do is create a script that sets up my computer from a clean installation of Raspbian Lite (in case the backup fails). I've done a lot of testing on this, and it simply cannot be done without rebooting; some commands such as pivpn -a require a reboot to not break the ...
by Azsorlex26
Fri Aug 10, 2018 10:48 am
Forum: Troubleshooting
Topic: Trouble with setting up desktop in a custom script
Replies: 0
Views: 90

Trouble with setting up desktop in a custom script

Hello forums. What I'm trying to do is create a custom script which sets up my raspberry pi from a clean install of Raspbian Lite. I've had similar problems with this script before where running the RetroPie gui installer would stop my script after it was done (even though I didn't specify it to sto...
by Azsorlex26
Sun Jul 29, 2018 12:59 am
Forum: Gaming
Topic: Trouble with setting up RetroPie in a custom script
Replies: 3
Views: 614

Re: Trouble with setting up RetroPie in a custom script

I am not sure if that is what you want but you can also call some commands from the RetroPie Script without running the GUI. If you take a look at the code: sudo __nodialog=1 ./retropie_packages.sh setup basic_install This will install RetroPie silently, for example. So I've figured out how to add ...
by Azsorlex26
Wed Jul 25, 2018 11:11 am
Forum: Gaming
Topic: Trouble with setting up RetroPie in a custom script
Replies: 3
Views: 614

Trouble with setting up RetroPie in a custom script

So, what I'm trying to do is create a custom script that will set up my pi from a clean installation of Raspbian Lite, though every time I test it, I keep running into a specific problem. When it comes to setting up RetroPie (executed by the below line), and I perform a basic installation, remove us...
by Azsorlex26
Tue Jul 24, 2018 1:17 pm
Forum: Beginners
Topic: How do I alter files using commands?
Replies: 12
Views: 813

Re: How do I alter files using commands?

The redirect which you are using there is a good way to save the output. I'd say it is the best for this situation, especially once pipes come into play. If you are just using sed alone then the -i option is sometimes good. Going off what you said, I was able to simplify the insertion command to: s...
by Azsorlex26
Tue Jul 24, 2018 12:37 pm
Forum: Beginners
Topic: How do I alter files using commands?
Replies: 12
Views: 813

Re: How do I alter files using commands?

To expand on the sed option, look at the a, i, c, and d commands. Additionally the -i option allows you to save a backup copy. The i command can insert anywhere. Here the i inserts some lines at the head of the file, before line 1: Code: Select all sed '1i\fallback to static profile on eth0\ninterf...
by Azsorlex26
Mon Jul 23, 2018 11:51 pm
Forum: Beginners
Topic: How do I alter files using commands?
Replies: 12
Views: 813

How do I alter files using commands?

Hi there. I'm attempting to make a script that will fully set up my raspberry pi from a clean installation of Raspbian Lite. This mostly involves using automatic commands like sudo apt-get update or sudo apt-get install ... , however the setup process also involves me altering files such as /etc/fst...
by Azsorlex26
Mon Jul 16, 2018 11:52 pm
Forum: Gaming
Topic: Retropie only utilising one CPU core
Replies: 1
Views: 543

Retropie only utilising one CPU core

So, when I was running games on Retropie, I noticed that in areas with lots of visuals and sounds that the sounds would get crackly and the entire game would slow down a bit. I did a bit of self-troubleshooting by maxing out the VRAM limit, enabling HW acceleration etc. but nothing worked. Then by o...
by Azsorlex26
Mon Feb 19, 2018 10:59 am
Forum: Gaming
Topic: How to run emulationstation through SSH?
Replies: 8
Views: 2060

Re: How to run emulationstation through SSH?

So, I was able to enable that feature you mentioned, and I can run emulationstation remotely :D (albeit it runs like a** :( ). Thanks for your help, but it wasn't really worth it in the end :lol:. Oh well, all part of the learning experience.
by Azsorlex26
Mon Feb 19, 2018 7:13 am
Forum: Gaming
Topic: How to run emulationstation through SSH?
Replies: 8
Views: 2060

Re: How to run emulationstation through SSH?

I'm already using RealVNC server and VNC viewer to access my pi's desktop environment, yet running emulationstation through its terminal doesn't work. Also, I can't view the pi's local command line from there either; it's just a black screen. How would I get emustat to work through RealVNC server?
by Azsorlex26
Sun Feb 18, 2018 11:44 am
Forum: Gaming
Topic: How to run emulationstation through SSH?
Replies: 8
Views: 2060

Re: How to run emulationstation through SSH?

Emulationstation is hardware-accelerated, isn't it ? That doesn't work over SSH at all. Hardware-accelerated stuff only works on real displays directly connected to Raspberries. Hm. That's a real shame if it doesn't work at all. I mainly wanted to run emulationstation through ssh since my monitor d...
by Azsorlex26
Sun Feb 18, 2018 8:48 am
Forum: Gaming
Topic: How to run emulationstation through SSH?
Replies: 8
Views: 2060

Re: How to run emulationstation through SSH?

Thanks for your response :D

Yes I do and I can run emulationstation that way. However I want to take it a step further and run it without the need for additional cabling.
by Azsorlex26
Sun Feb 18, 2018 2:30 am
Forum: Gaming
Topic: How to run emulationstation through SSH?
Replies: 8
Views: 2060

How to run emulationstation through SSH?

Hi there. I have RetroPie installed on my pi, and I just have one question: How do you run emulationstation through SSH? I came across another post on these forums: https://www.raspberrypi.org/forums/viewtopic.php?t=169864 where a guy had the exact opposite problem: he could run emulationstation thr...
by Azsorlex26
Sun Feb 18, 2018 1:58 am
Forum: Troubleshooting
Topic: Unable to view USB on the command line
Replies: 2
Views: 320

Re: Unable to view USB on the command line

Thanks for your input :D

I tried what you gave me and it worked! At first I thought it didn't work because I forgot that the directory was changed :oops:, but I got it working. Thanks for your help! It was much appreciated :D
by Azsorlex26
Sat Feb 17, 2018 10:53 pm
Forum: Troubleshooting
Topic: Unable to view USB on the command line
Replies: 2
Views: 320

Unable to view USB on the command line

Hello there. So, I have a "simple" problem that I for the life of me cannot figure out. As the title explains, I can't access my usb drive through the command line, whether that be through SSH or the pi itself. However, as soon as I go into the desktop environment (either through VNC or the pi itsel...

Go to advanced search