Auto login and auto start X on boot

General Q&A stuff about FoxyRoxyLinux

Auto login and auto start X on boot

Postby saintless » Wed Aug 15, 2012 5:45 am

If you like to auto login boot direct in FoxyRoxy desktop this is what you have to edit in your kernel line in Grub menu list (if you use HDD install) or in /syslinux/live.cfg file in your FoxyRoxy usb:

change noautologin to autologin and add exactly after username=root password=roxy

Here is an example for live.cfg:
Code: Select all
label live-bigmem
   menu label Live BigMem
   kernel /live/vmlinuz3
   append initrd=/live/initrd3.img boot=live config persistent max_loop=128 quickreboot noprompt autologin username=root password=roxy


or for Grub legacy menu.lst:
Code: Select all
title FoxyRoxyLinux BigMem
rootnoverify (hd0,0)
kernel /live/vmlinuz3 boot=live config persistent swapon quickreboot noprompt autologin username=root password=roxy
initrd /live/initrd3.img
boot


The swapon option is if you need to use swap partition.
User avatar
saintless
 
Posts: 246
Joined: Sat Jul 14, 2012 7:01 am
Location: Bulgaria

Re: Auto login and auto start X on boot

Postby atv » Fri Aug 17, 2012 7:48 pm

Hi saintless, jbv: I must congratulate both of you for a well thought out implementation (albeit prelim) of sickgut's work. However, your instructions need clarification on the method used for auto login:
If you like to auto login boot direct in FoxyRoxy desktop this is what you have to edit in your kernel line in Grub menu list (if you use HDD install) or in /isolinux/live.cfg file in your FoxyRoxy usb:...

In the case of creating a bootable USB stick from MS windows, I used the Universal-USB-Installer recomended by jbv. The detail is that the file that must be edited is the /syslinux/live.cfg
Keep up the good work! :P

regards, Andres
User avatar
atv
 
Posts: 4
Joined: Fri Aug 17, 2012 2:07 pm
Location: Tambo, Ecuador

Re: Auto login and auto start X on boot

Postby saintless » Fri Aug 17, 2012 7:52 pm

Hi, Atv and Welcome :)

Thanks for finding this mistake for /syslinux/live.cfg. I will edit the first post with the correct information.
User avatar
saintless
 
Posts: 246
Joined: Sat Jul 14, 2012 7:01 am
Location: Bulgaria

Adding a Timeout to the Boot Menu

Postby jbv » Sat Aug 18, 2012 2:09 am

If you are booting a Server from a USB stick, it may be headless or have the screen turned off.
Or, perhaps you just want FoxyRoxy to start AutoMagically at power-on.

The following edits to /syslinux/syslinux.cfg on the USB stick will see FoxyRoxy AutoStart.

Arrange the label lines (and associated segments) so that your preferred or default model is the first label.
Change the timeout value from 00 to 100 which will set a 10 second timeout.

If you add the AutoLogin info above; at power-on the machine will Automatically run all the way through to bringing up the desktop.

As an example: I use the 686-BigMem kernel - which I want to auto-load. This my syslinux.cfg file.
Code: Select all
menu hshift 15
menu width 50

menu title Boot Menu
menu background /syslinux/splash.png
menu color title   * #FFFFFFFF *
menu color border   * #00000000 #00000000 none
menu color sel      * #ffffffff #76a1d0ff *
menu color hotsel   1;7;37;40 #ffffffff #76a1d0ff *
menu color tabmsg   * #ffffffff #00000000 *
menu color help      37;40 #ffdddd00 #00000000 none
menu vshift 17
menu rows 10
menu helpmsgrow 15
menu cmdlinerow 16
menu timeoutrow 16
menu tabmsgrow 18
menu tabmsg Press ENTER to boot or TAB to edit a menu entry

label live-bigmem
   menu label Live 686-BigMem
   kernel /live/vmlinuz3
   append initrd=/live/initrd3.img boot=live config persistent max_loop=128 quickreboot noprompt noautologin

label live-686
   menu label Live 686
   kernel /live/vmlinuz2
   append initrd=/live/initrd2.img boot=live config persistent max_loop=128 quickreboot noprompt noautologin

label live-486
   menu label Live 486
   kernel /live/vmlinuz1
   append initrd=/live/initrd1.img boot=live config   persistent max_loop=128 quickreboot noprompt noautologin

label memory-test
   menu label Test Memory
   kernel /live/memtest
   
default /syslinux/vesamenu.c32
prompt 0
timeout 100
jbv
 
Posts: 600
Joined: Sat Jul 14, 2012 2:02 am
Location: Sydney, Australia


Return to Do General Stuff



Who is online

Users browsing this forum: No registered users and 1 guest

cron