Difference between pages "LiveUSB" and "Getty as display manager"

(Difference between pages)
 
(Created page with "This guide shows how you can use getty as display manager. == Choose window manager == Create ~/.xinitrc <pre>setxkbmap fi exec dwm </pre> == Start X on login to tty1 == Sta...")
 
Line 1: Line 1:
This guide will show you how to install bootable linux livecd image to USB stick.
+
This guide shows how you can use getty as display manager.
  
== Get the livecd image ==
+
== Choose window manager ==
First you need to choose livecd distribution. SystemResqueCd is good choise because it supports 32bit and 64bit processors on the same image. Its also based on gentoo.
+
Create ~/.xinitrc
 +
<pre>setxkbmap fi
 +
exec dwm
 +
</pre>
  
Download the image of your choise:
+
== Start X on login to tty1 ==
<console>
+
Start X session when you login to first virtual terminal.
$##bl## wget http://example.com/linux-livecd.iso
+
</console>
+
  
== Convert livecd image to hybrid mode ==
+
Add the following line in top of your ~/.bashrc
Most modern LiveCD's are already in hybrid mode. If your LiveUSB doesnt boot without this step then you have to convert it to hybrid mode. Hybrid image means image that can be booted from either CD-ROM or USB drive.
+
<pre>[[ $(tty) = "/dev/tty1" ]] && exec startx</pre>
<console>
+
###i## emerge syslinux
+
$##bl## isohybrid linux-livecd.iso
+
</console>
+
  
== Write livecd image to the usb drive ==
+
== Autologin ==
Now you can write the hybrid image to usb drive. Be sure to select the device node /dev/sdX, not partition node /dev/sdX1.
+
Modify /etc/inittab
<console>
+
<pre>
###i## dd if=linux-livecd.iso of=/dev/sdb bs=4M
+
# TERMINALS
</console>
+
c1:12345:respawn:/sbin/agetty -a username 38400 tty1 linux
Now you can reboot. You must select the usb drive as startup device in bios.
+
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
 +
</pre>
  
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]

Revision as of 15:56, 19 August 2013

This guide shows how you can use getty as display manager.

Choose window manager

Create ~/.xinitrc

setxkbmap fi
exec dwm

Start X on login to tty1

Start X session when you login to first virtual terminal.

Add the following line in top of your ~/.bashrc

[[ $(tty) = "/dev/tty1" ]] && exec startx

Autologin

Modify /etc/inittab

# TERMINALS
c1:12345:respawn:/sbin/agetty -a username 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux