Changes

m
no edit summary
Line 26: 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 35: 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 46: 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 56: Line 56:  
   
 
   
 
   SSL_NO_VERIFY_PEER=1 xbps-install -Sy
 
   SSL_NO_VERIFY_PEER=1 xbps-install -Sy
(Prepend SSL_NO_VERIFY_PEER=1 to each subsequent xbps command until you do -Syu 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.
+
(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 65: 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.
 
You should do xbps-install -Syu to upgrade the whole system before installing any software.
   Line 76: 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.
Line 87: Line 87:     
  <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 103: 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 110: 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 124: 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 130: 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 136: 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 148: 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.