Ubiquity not working / Live CD/DVD User not added to "sudo" group?
I discovered by chance downloading the last .tar.gz that we should have a regression.
Basically when you remaster a live CD/DVD with http://
Let me know how can I help, debug?
Marco
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- relinux Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Marco Ghirlanda
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
This is actually just a simple question, not a bug
Revision history for this message
|
#2 |
OK, the problem is simple.
Run this command:
sudo /usr/lib/
Then rerun relinux.
Revision history for this message
|
#3 |
Did remastersys have that problem?
Revision history for this message
|
#4 |
No, it didn't. It seems to me the relinux scripts is not setting sudo the right way.
Infact the user artistx is in the sudoers group (otherwise I would get a "not in the sudoers" error)
but its password is set to empty instead of "none"
if I open a terminal "sudo su" will give me root just pressing enter
Revision history for this message
|
#5 |
I'm going to test this out on VirtualBox. I didn't have this problem, but it might be because I'm using an unreleased build of relinux 0.3 (0.3 stable).
Revision history for this message
|
#6 |
I also think so.
I can tell you what happened,
first I was using a version which will not work, I helped sorted out a bug and to do so the relinux developer asked me to use git and download the latest version from the repository.
That was the latest version working. When I told them relinux was working again (bu corrected in the repo) they put out the "new" .tar.gz on the web page. This .tar.gz is the one with the root bug.
I think something in between the repo and the .tar.gz has broken.
If you test something please be sure to use the .tar.gz on the web
Revision history for this message
|
#7 |
I think you mean BZR, as relinux does not have a GIT repository. I just tested it in VBox, and I didn't have the problem, so I think I'll post 0.3 stable, and see if it will fix the problem.
Revision history for this message
|
#8 |
you can send it to me I can try privately
maybe a bug in ubiquity or sudo of oneiric?
Revision history for this message
|
#9 |
Wait, when running the livecd, could you give me the output of these commands?
sudo cat /etc/passwd /etc/shadow
The problem might be that it makes a wrong symbol in one of the 2 files.
Revision history for this message
|
#10 |
I found the problem. It will be fixed in relinux 0.4a1.
Revision history for this message
|
#11 |
Ok, for the moment my users will be able to drop to su or install with ubiquity with a blank pwd because other than that I found no bugs
keep up the great work!
Revision history for this message
|
#12 |
I am having a similar problem relinuxing Ubuntu 11.10. The live cd works perfectly well, but I can't install it or run su because it asks for a password. Unlike the problem in this bug report, my password is obviously not set to empty. I have tried all the generic passwords I could think of, but nothing works. Just hitting enter says fail, hitting enter again says fail, and the third time it makes me start over. However, when running from a live usb (possibly a cd/dvd too just haven't tried it yet), I opened a local hard disk by clicking on the icon in awn, a password box popped up and empty password worked. I then tried su again without success.
I have tried all the things mentioned above and nothing works.
I should mention that I have been using remastersys for several years but could not get the live cds to boot since Ubuntu 11.04. I will send relinux.conf file in a few minutes.
Thank you for your time,
John
Revision history for this message
|
#13 |
Another note, while in the live usb, I went to users and created a new admin account. Logged out and back in with the new account, and the installer came right up. Just more info, hope it helps. Thanks again!
Here is the relinux.conf file for the above:
# Relinux Template Configuration File
# Copy and paste below this line into another configuration file
# ALL OPTIONS BELOW ARE CASE SENSITIVE, INCLUDING Y/N OPTIONS
# NAME=Work Directory
# DESCRIPTION=This option is the work directory for relinux
# TYPE=filename
WORKDIR=
# NAME=Excludes from CD
# DESCRIPTION=This option is the files you want to exclude from the CD
# TYPE=space_
EXCLUDES="$WORKDIR* /home/ijmilton/
# NAME=Remove after install
# DESCRIPTION=This option lets you decide packages that you want to remove after install
# TYPE=space_
REMOVEAFTERINST
# NAME=Keep relinux in CD
# DESCRIPTION=This option lets you decide if you want to keep relinux in the CD
# TYPE=yn
KEEPRELINUX="N"
# NAME=Keep log files
# DESCRIPTION=This option lets you decide if you want to keep log files in the CD
# TYPE=yn
KEEPLOG="N"
# NAME=Keep backup files
# DESCRIPTION=This option lets you decide if you want to keep backup files in the CD
# TYPE=yn
KEEPBACKUP="N"
# NAME=Keep old files
# DESCRIPTION=This option lets you decide if you want to keep old files in the CD
# TYPE=yn
KEEPOLD="N"
# NAME=Keep deb files
# DESCRIPTION=This option lets you decide if you want to keep .deb files in the CD
# TYPE=yn
KEEPDEB="N"
# NAME=Keep Work Directory
# DESCRIPTION=This option lets you decide if you want to keep the relinux work directory. NOT RECOMMENDED AT ALL
# TYPE=yn
KEEPWORKDIR="N"
# NAME=Live CD Username
# DESCRIPTION=This option is the username of the LiveCD user
# TYPE=custom
LIVEUSER="guest1"
# NAME=Live CD Name
# DESCRIPTION=This option is the name of the LiveCD user
# TYPE=custom
LIVENAME="guest2"
# NAME=Live CD Hostname
# DESCRIPTION=This option is the temporary hostname of the LiveCD
# TYPE=custom
HOSTNAME="MUNG"
# NAME=Name of your OS
# DESCRIPTION=This option is the name of your OS
# TYPE=custom
SYSNAME=
# NAME=Version of your OS
# DESCRIPTION=This option is the version of your OS
# TYPE=custom
SYSVERSION="11.10"
# NAME=Description of your OS
# DESCRIPTION=This option is the description of your OS
# TYPE=custom
SYSDESC="Clean, easy workflow."
# NAME=Codename of your OS
# DESCRIPTION=This option is the codename of your OS
# TYPE=custom
SYSCODE="mung11.10"
# NAME=Splash Image Location
# DESCRIPTION=This option is the location of the splash image
# TYPE=filename
SPLASHIMAGE=
# NAME=Preseed file Location
# DESCRIPTION=This option is the location of the preseed file
# TYPE=filename
PRESEED=
# NAME=ISOlinux configuration file location
# DESCRIPTION=This option is the location of the ISOlinux configuration file
# TYPE=filename
ISOLINUX=
# NAME=LiveCD Label
# DESCRIPTION=This option is the label of the LiveCD
# TYPE=custom
LIVECDLABEL=
# NAME=LiveCD Timeout
# DESCRIPTION=This option is the timeout of the LiveCD Splash (in 1/10 of a second)
# TYPE=custom
LIVECDTIMEOUT="300"
# NAME=ISO filename
# DESCRIPTION=This option is the ISO filename
# TYPE=custom
CUSTOMISO=
# NAME=URL of the system
# DESCRIPTION=This option is the URL of the system (homepage)
# TYPE=custom
LIVECDURL="http://
# NAME=Allow change to sources.list
# DESCRIPTION=This option lets you decide if you want Ubiquity (the installer) to change the apt sources.list
# TYPE=yn
ALLOWCHANGESOUR
# NAME=Generate Casper files
# DESCRIPTION=This option lets you decide if you want Relinux to generate the casper.conf file
# TYPE=yn
GENERATECASPER="Y"
# NAME=Generate LSB_Release files
# DESCRIPTION=This option lets you decide if you want Relinux to generate the lsb_release file
# TYPE=yn
GENERATELSBRELE
# NAME=Enable WUBI
# DESCRIPTION=This option lets you decide if you want WUBI enabled in the CD
# TYPE=yn
WUBI="N"
# NAME=WUBI Location
# DESCRIPTION=This option lets you decide the location of wubi.exe
# TYPE=filename
WUBILOCATION=
Revision history for this message
|
#14 |
Did remastersys have that problem too? I think I've found the solution, but I haven't been able to reproduce the bug yet.
Could you give me as much detail as possible as to what your installation is? If I can reproduce it, we'll be able to find the solution :)
Revision history for this message
|
#15 |
remastersys had an entirely different and in my opinion, worse problem. It would not boot at all...just hangs forever on the Ubuntu screen with the dots.
I am not sure what kind of info you would like but here it goes...
Relinuxing Ubuntu 11.10
uninstalled Unity
deleted the ubuntu sessions from xsessions and gnome-session
added new session (myubuntung) to disable gnome-panel and enable avant-window-
ran the command sudo /usr/lib/
-side note, myubuntung is still NOT the default session when the live usb boots, though it is correct in lightdm.conf
customized awn theme for the top and side panels I created
minor application settings changes (ie. change nautilus to display list instead of icon, gedit to show line numbers)
copied .gconf .gnome2 .config .local .mozilla .icons .compiz1 .profile .xscreensaver to the /etc/skel directory
ran:
sudo relinux fullclean /home/ijmilton/
sudo relinux iso /home/ijmilton/
That's all i can think of at the moment, but if you need anything else I am happy to help you help me :-)
Thanks!!!
Revision history for this message
|
#16 |
a little more info:
not sure if this is related, but when running the live usb, the shutdown and restart buttons from the main ubuntu menu take you to the login screen. Thet DO NOT shutdown or restart.
Revision history for this message
|
#17 |
ah yes, probably important to note that I am Relinuxing in Virtualbox, and testing ISO in Virtualbox and on live usb.
Revision history for this message
|
#18 |
If you want, I would be happy to try out your solution since you are not able to reproduce the bug. Thanks again for your help.
Revision history for this message
|
#19 |
ok i am new to this and I just want to create a distributable copy of my ubuntu so my friends use it and start with linux easy
but i have 2 problems
it asks for empty password
the time is blank on the live cd unity session just displays "time"
how to fix that
Revision history for this message
|
#20 |
I'll see if I can reproduce the bug. The current fix does not work, so I'll see if I can "hack" the casper scripts :-)
Revision history for this message
|
#21 |
Would it help if I upload the broken ISO to my server for you to download? It seems that if you were to run the live iso, create an admin account and install, then install relinux and run it you may get your bug.
Revision history for this message
|
#22 |
thanks, yes that would help :)
Revision history for this message
|
#23 |
The broken iso is located at
http://
Thank you so much for helping with this. Let me know if there is anything else you need :-)
Revision history for this message
|
#24 |
Well, about the login in the wrong session, the problem is that it's trying to access the myubuntung session, which, since it's case-sensitive, it doesn't find. Change it to MyUbuntuNG.
Revision history for this message
|
#25 |
About the problem with sudo, it actually has nothing to do with it. The problem is that it logs into the guest user instead of the "ubuntu" user. I have no idea why it's called ubuntu instead of guest1, but that bug will be fixed in the next release.
If you select Other, and enter ubuntu as the user name, and no password, it should work fine. I'm looking for a fix to automatically log you in.
Revision history for this message
|
#26 |
ok, I found the fix. Edit /etc/lightdm/
autologin-
Revision history for this message
|
#27 |
You are awesome!!!!!
Here is what I did to test:
-booted the live iso in virtualbox
-selected other and typed ubuntu
-changed session to MyUbuntuNG
-clicked login
-hit enter on the blank password screen
The result:
-logged in properly to MyUbuntuNG session as user ubuntu
-install icon now shows on the desktop
-clicking it starts the installer as expected
-su works as expected in the live environment
-shutdown and restart now work as expected
Still not working:
-MyUbuntuNG as the default session when the user clicks login without changing anything
I have an idea why the live user is not ubuntu. I set it that way in the config file. I am not going to pretend I know what I am doing so I guessed on a lot of the user settings. It is posted above if you need it for reference. If this is all my fault please advise without prejudice :-)
Thanks again for your help so far.
Revision history for this message
|
#28 |
sorry, just saw post 24. I will try that. Thanks again :-)
Revision history for this message
|
#29 |
Follow all 3 of my posts, and you shouldn't even have to log in :-)
No, the problem about having "ubuntu" instead of "guest1" relies somewhere in relinux. I'm fixing that.
Revision history for this message
|
#30 |
That officially solves my problems. Thank you for all your hard work...Relinux Rocks ™
Revision history for this message
|
#31 |
No problem! Glad to know that it works!
@d3mro, could you send me the output of this command (in your livecd): sudo cat /etc/sudoers
Revision history for this message
|
#32 |
@lkjoel
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) NOPASSWD: ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
#includedir /etc/sudoers.d
Revision history for this message
|
#33 |
You ran that in your remastered livecd that you had sudo asking for the blank password, right?
Revision history for this message
|
#35 |
ok, then run that command on the livecd that asked for the blank password.
Revision history for this message
|
#37 |
Hello again...I have some new developments I thought I'd share. Not sure if they are related.
After the iso was created, I used Startup Disk Creator to make a live usb. I then booted it on my desktop and installed. Once installed, it rebooted and landed me in brand new user account. The skel dir did not copy correctly or something because nothing was right. After copying the skel to user, chmod, logout and in, everything seems good...
I then make some changes to the desktop (very minor app settings and a couple small app installs), installed Relinux, and pasted the exact same relinux.conf file from the Virtualbox install I was using before. When I loaded the resulting iso in Virtualbox, it seemed to ignore most of the settings I put in the relinux.conf file. It seems to be inheriting them somehow from the desktop install. On the login screen for example, in the top left corner, it says "MUNG" which I changed and is no longer located anywhere in the relinux.conf file. Even more strange, remember before I was having a problem because I was using guest1 in the relinux.conf file and it was still creating the user ubuntu? Well, now I have liveuser in the relinux.conf file and it is creating the user guest1.
Where is it getting this info and why isn't it using the info from the conf file? It is using some of the info, like the work directory location.
Thanks and sorry to bug you again. I feel like I am so close.
Revision history for this message
|
#38 |
just noticed that after installation 2 home directories were created. One is /home/ijmilton and the other is /home_1/ijmilton. It seems like some of the files in the /etc/skel folder were copied to /home/ijmilton but all of them were copied to /home_1/ijmilton. Copying the contents from /home_1 to /home after installation brought back my customizations. You will probably have the same result if you install the iso from the link above.
Thanks again for all your time
Revision history for this message
|
#39 |
It also asked for my password when I clicked on the install icon. Enter worked on the empty password field. Thought it might be relevent. Thanks again :-)
Revision history for this message
|
#40 |
Just wondering if you have gotten a chance to look into this further. Thanks again :-)
Revision history for this message
|
#41 |
Yes, sorry, I've had a lot of local problems here. I'm looking into the problem.