Changes

m
no edit summary
Line 12: Line 12:     
==Initial setup==
 
==Initial setup==
Flashing and configuring the SD card to boot a Linux based operating system is described in this video: [https://www.youtube.com/watch?v=D2S1MHjDCZkWii U Linux Installation Tutorial (Void Linux for Wii U)].
+
Flashing and configuring the SD card to boot a Linux based operating system is described in this video: [https://www.youtube.com/watch?v=D2S1MHjDCZk Wii U Linux Installation Tutorial (Void Linux for Wii U)].
    
If your Wii U is already booted in Void, you can continue here.
 
If your Wii U is already booted in Void, you can continue here.
Line 19: Line 19:     
You should then see a "#" character at the bottom of your screen. Type "bash", and press enter. Now, you can start setitng up your system.
 
You should then see a "#" character at the bottom of your screen. Type "bash", and press enter. Now, you can start setitng up your system.
 +
 
==Internet connection==  
 
==Internet connection==  
   Line 25: Line 26:  
Run the command:
 
Run the command:
 
  <nowiki>
 
  <nowiki>
date -s YYYY-MM-DD</nowiki>
+
    date -s YYYY-MM-DD</nowiki>
    
YYYY-MM-DD should be the current date. For example, if it is August 27, 2021, it would be entered as 2021-08-27.
 
YYYY-MM-DD should be the current date. For example, if it is August 27, 2021, it would be entered as 2021-08-27.
Line 34: Line 35:     
  <nowiki>
 
  <nowiki>
dhcpcd -w</nowiki>
+
    dhcpcd -w</nowiki>
    
This should automatically set up your network connection. To verify that it worked, run:
 
This should automatically set up your network connection. To verify that it worked, run:
 
  <nowiki>
 
  <nowiki>
ping voidlinux.org</nowiki>
+
    ping voidlinux.org</nowiki>
    
If the output of this command has lines that start with "64 bytes from", your internet connection is working. If it times out, verify that everything is set up properly and try connecting again using the same dhcpcd command. This command will run forever until you stop it manually by pressing Control+C.
 
If the output of this command has lines that start with "64 bytes from", your internet connection is working. If it times out, verify that everything is set up properly and try connecting again using the same dhcpcd command. This command will run forever until you stop it manually by pressing Control+C.
Line 45: Line 46:     
  <nowiki>
 
  <nowiki>
ln -s /etc/sv/dhcpcd /var/service</nowiki>
+
    ln -s /etc/sv/dhcpcd /var/service</nowiki>
    
Once you have a working network connection, you can begin installing software.
 
Once you have a working network connection, you can begin installing software.
Line 53: Line 54:  
Before you can begin installing software, you will need to run a couple initial setup commands. Run these in order:
 
Before you can begin installing software, you will need to run a couple initial setup commands. Run these in order:
   −
  <nowiki>
+
   
xbps-install -Sy</nowiki>
+
  SSL_NO_VERIFY_PEER=1 xbps-install -Sy
This will download the list of currently available software packages, and must be ran before you can do anything else since by default there is no list and all packages will fail to install.
+
(Prepend SSL_NO_VERIFY_PEER=1 to each subsequent xbps command or set it as an environment variable in ~/.bashrc) This will download the list of currently available software packages, and must be ran before you can do anything else since by default there is no list and all packages will fail to install.
    
  <nowiki>
 
  <nowiki>
xbps-install -u -y xbps</nowiki>
+
    xbps-install -u -y xbps</nowiki>
 
This will update the XBPS program, which is the program that handles downloading and managing software packages. This is needed since the version of XBPS included with the current Void Linux image is too old to work properly without being updated.
 
This will update the XBPS program, which is the program that handles downloading and managing software packages. This is needed since the version of XBPS included with the current Void Linux image is too old to work properly without being updated.
   Line 64: Line 65:     
  <nowiki>
 
  <nowiki>
xbps-install -S <name of package></nowiki>
+
    xbps-install -S <name of package></nowiki>
 +
You should do xbps-install -Syu to upgrade the whole system before installing any software.
 +
 
 
A list of available packages can be found [https://repo.voidlinux-ppc.org/stats.html here]. In this table, if a package is marked with green under the "ppc" column (fourth from the right), it is available for the Wii U. You can use lists like [https://wiki.archlinux.org/title/List_of_applications this one] to find programs to install, although some of the package names may be different on Void.
 
A list of available packages can be found [https://repo.voidlinux-ppc.org/stats.html here]. In this table, if a package is marked with green under the "ppc" column (fourth from the right), it is available for the Wii U. You can use lists like [https://wiki.archlinux.org/title/List_of_applications this one] to find programs to install, although some of the package names may be different on Void.
   Line 73: Line 76:  
To use the entire capacity of your USB drive, you first need to install a program called Parted. Run the following command:
 
To use the entire capacity of your USB drive, you first need to install a program called Parted. Run the following command:
 
  <nowiki>
 
  <nowiki>
xbps-install -S -y parted wget</nowiki>
+
    xbps-install -S -y parted wget</nowiki>
    
The -y option automatically installs the program without requiring any extra input, and the "wget" program is added as it is needed to download a setup script.
 
The -y option automatically installs the program without requiring any extra input, and the "wget" program is added as it is needed to download a setup script.
    
Now, run the following:
 
Now, run the following:
  <nowiki>
+
   
wget https://raregamingdump.ca/files/resize_fs.sh</nowiki>
+
  wget --no-check-certificate <nowiki>https://raregamingdump.ca/files/resize_fs.sh</nowiki>
    
And then:
 
And then:
    
  <nowiki>
 
  <nowiki>
chmod +x ./resize_fs.sh</nowiki>
+
    chmod +x ./resize_fs.sh</nowiki>
    
  <nowiki>
 
  <nowiki>
./resize_fs.sh</nowiki>
+
    ./resize_fs.sh</nowiki>
    
The last command will take a few minutes to complete, and will take longer for larger drives. If it fails with an error, you may have to reflash your USB drive.
 
The last command will take a few minutes to complete, and will take longer for larger drives. If it fails with an error, you may have to reflash your USB drive.
Line 100: Line 103:     
  <nowiki>
 
  <nowiki>
echo 'TIMEZONE="Timezone1/Timezone2"' >> /etc/rc.conf</nowiki>
+
    echo 'TIMEZONE="Timezone1/Timezone2"' >> /etc/rc.conf</nowiki>
    
Replace Timezone1/Timezone2 with the timezone specified by the time zone picker.
 
Replace Timezone1/Timezone2 with the timezone specified by the time zone picker.
Line 107: Line 110:     
  <nowiki>
 
  <nowiki>
xbps-install -S -y chrony</nowiki>
+
    xbps-install -S -y chrony</nowiki>
    
Once it is installed, run this command to enable it:
 
Once it is installed, run this command to enable it:
 
  <nowiki>
 
  <nowiki>
ln -s /etc/sv/chronyd /var/service</nowiki>
+
    ln -s /etc/sv/chronyd /var/service</nowiki>
    
Your system time should now be constantly synchronized and accurate.
 
Your system time should now be constantly synchronized and accurate.
Line 121: Line 124:  
First, run the following command and follow the instructions on the screen:
 
First, run the following command and follow the instructions on the screen:
 
  <nowiki>
 
  <nowiki>
passwd root</nowiki>
+
    passwd root</nowiki>
    
This will allow you to set a new password for the root account.
 
This will allow you to set a new password for the root account.
Line 127: Line 130:  
Then, run:
 
Then, run:
 
  <nowiki>
 
  <nowiki>
useradd username</nowiki>
+
    useradd username</nowiki>
    
Replace "username" with the username you want, such as your own name. The username must not have any spaces.
 
Replace "username" with the username you want, such as your own name. The username must not have any spaces.
Line 133: Line 136:  
To set the password of this new user, run:
 
To set the password of this new user, run:
 
  <nowiki>
 
  <nowiki>
passwd username</nowiki>
+
    passwd username</nowiki>
    
You need to do this before you can log in as this user.
 
You need to do this before you can log in as this user.
Line 145: Line 148:     
  <nowiki>
 
  <nowiki>
xbps-install -S -y xorg xterm</nowiki>
+
    xbps-install -S -y xorg xterm</nowiki>
    
This will install the Xorg display server and the Xterm program, which are needed to use a graphical environment.
 
This will install the Xorg display server and the Xterm program, which are needed to use a graphical environment.
Line 169: Line 172:  
Here are some application notes and suggestions for the Wii U:
 
Here are some application notes and suggestions for the Wii U:
   −
*Gecko (Firefox) and Blink (Chromium)-based web browsers will not work, so you are limited to WebKit-based browsers such as Eolie (the "eolie" package). These are very slow (as with everything on Wii U Linux currently), but can browse the modern web and can handle some sites which the Wii U's browser cannot due to its outdated SSL support.
+
*Gecko (Firefox) and Blink (Chromium)-based web browsers will not work, so you are limited to WebKit-based browsers such as Eolie (the "eolie" package) and "surf" (a very lightweight WebKit browser). These are very slow (as with everything on Wii U Linux currently), but can browse the modern web and can handle some sites which the Wii U's browser cannot due to its outdated SSL support. The "netsurf" browser can also be used, but has limited support for the modern web (although it is much faster than WebKit-based options).
    
*As the default Xterm terminal emulator is hard to use on a large screen, an alternative terminal emulator such as xfce4-terminal is recommended.
 
*As the default Xterm terminal emulator is hard to use on a large screen, an alternative terminal emulator such as xfce4-terminal is recommended.