Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
getting-started [2014/02/21 05:07] – created snacsnocgetting-started [2023/11/18 20:47] (current) – [Quick start] snacsnoc
Line 1: Line 1:
 ====== Quick start ====== ====== Quick start ======
  
-Download the [[http://snacklinux.org/iso/|latest ISO]] and boot into SnackLinux.+Download the [[http://snacklinux.geekness.eu/download/|latest ISO]] (x86 only) or compile the kernel and root filesystem (any architecture) and boot into SnackLinux either in a virtual machine or on physical hardware 
 + 
 +<del>//OLD//: Docker templates are available [[http://snacklinux.geekness.eu/downloads/docker/|here]]. See the [[docker|Docker]] page for more information. 
 +</del> 
 +SnackLinux supports most generic hardware. 
 + 
 +==== Install ==== 
 +You can install SnackLinux to a local hard drive by runnning install-snacklinux.sh in /root 
 +Note: you will need to setup networking and install dialog, ncurses and lilo with fbpkg install 
 +  fbpkg install dialog && fbpkg install ncurses && fbpkg install lilo 
 +  bash install-snacklinux.sh /dev/sda 
 +==== Networking ==== 
 To set up networking, you can either use a static IP To set up networking, you can either use a static IP
   ifconfig eth0 192.168.0.100 netmask 255.255.255.0   ifconfig eth0 192.168.0.100 netmask 255.255.255.0
-  route add default gw 192.168.0.1 +  route add default gw 192.168.0.1  
-or use <code>udhcpc</code> for DHCP. +or use ''udhcpc'' for DHCP. 
-Run <code>fbpkg update</code> to update the latest packages list and to check if the network is up.+or create ''/etc/network/intefaces'' and use ''ifup eth0'' 
 +  touch /etc/network/intefaces 
 +   
 +  auto eth0 
 +  iface eth0 inet static 
 +    address 192.168.1.X # Replace X with the specific IP address you want to assign to this device 
 +    netmask 255.255.255.0 
 +    gateway 192.168.1.1 
 +    dns-nameservers 8.8.8.8 8.8.4.4
  
-**SSH**+Run ''fbpkg update'' to update the latest packages list and to check if the network is up.
  
-Install dropbear via fbpkg by running <code>fbpkg install dropbear</code>+=== SSH === 
 + 
 +Install dropbear via fbpkg by running ''fbpkg install dropbear''
 Then set up the keys: Then set up the keys:
 <code> <code>
 mkdir /etc/dropbear && cd /etc/dropbear mkdir /etc/dropbear && cd /etc/dropbear
 dropbearkey -t rsa -f dropbear_rsa_host_key dropbearkey -t rsa -f dropbear_rsa_host_key
-dropbearkey -t dss -f dropbear_dss_host_key+dropbearkey -t ecdsa -f dropbear_ecdsa_host_key
 </code> </code>
-Now run <code>dropbear</code> to start the dropbear SSH server. +Now run ''dropbear'' to start the dropbear SSH server. 
-If you receive an error such as PTY allocation request failed on channel 0 after you have installed when trying to SSH into SnackLinux, try the below: + 
-<code> +=== Packages === 
-rm -rf /dev/pts + 
-mkdir /dev/pts +To see the available packages, run ''fbpkg search mypackage''. 
-mount /dev/pts + 
-</code> +Use ''fbpkg install <package>'' or ''fbpkg remove <package>'' for installation and removal. Run ''fbpkg --help'' for more information.
-Add <code>mkdir /dev/pts</code> above <code>/bin/mount -a</code> in /etc/init.d/rcS.+
  
-**Installation**+=== Programming === 
 +For compiling C/C++, install the essential tools: 
 +   fbpkg install gcc-toolchain 
 +   fbpkg install make 
 +   fbpkg install binutils 
 +   fbpkg install m4 
 +    
 +For Nim, see the [[nim-lang|Nim language page  ]]  
 +   
  
-Run <code>/root/install-snacklinux.sh /dev/hdX</code> and follow through the prompts to install to persistent media. The installation uses approximately 40 MB of disk space. 
  
-**Packages** 
  
-To see the available packages, run <code>cat /var/lib/fbpkg/packageslist</code>. Use fbpkg install <package> or fbpkg remove <package> for installation and removal. Run fbpkg --help for more information.