Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Smalleyster on July 10, 2011, 11:37:19 AM



Title: LinuxCoin Issues
Post by: Smalleyster on July 10, 2011, 11:37:19 AM
Does anybody know how to:

1) Make the LinuxCoin USB ask for a password before getting to the desktop?

2) Make the default on boot be to Persistence?

3) Make an exact mirror image duplicate of the USB?

TIA!


Title: Re: LinuxCoin Issues
Post by: drgr33n on July 10, 2011, 12:34:12 PM
Does anybody know how to:

1) Make the LinuxCoin USB ask for a password before getting to the desktop?

2) Make the default on boot be to Persistence?

3) Make an exact mirror image duplicate of the USB?

TIA!

1) edit /usr/share/gdm/defaults.conf and change AutomaticLoginEnable=true to AutomaticLoginEnable=false.
2) Depends on what method you used to get it onto your flash media. Just open up syslinux.cfg and replace everything with

Code:
default menu.c32
prompt 0
menu title LinuxCoin
timeout 0

label linuxcoin
menu label LinuxCoin Persistent (flash only)
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live config quiet splash persistent rw vga=791

3) This has been covered lots of times. If I was you though I'd just create as many sticks as you need and use your persistence file as a backup. If you need to reformat just create the stick and place your live-rw on the root of your flash media and yor golden ;)


Title: Re: LinuxCoin Issues
Post by: Smalleyster on July 10, 2011, 02:47:52 PM
Does anybody know how to:

1) Make the LinuxCoin USB ask for a password before getting to the desktop?

2) Make the default on boot be to Persistence?

3) Make an exact mirror image duplicate of the USB?

TIA!

1) edit /usr/share/gdm/defaults.conf and change AutomaticLoginEnable=true to AutomaticLoginEnable=false.
2) Depends on what method you used to get it onto your flash media. Just open up syslinux.cfg and replace everything with

Code:
default menu.c32
prompt 0
menu title LinuxCoin
timeout 0

label linuxcoin
menu label LinuxCoin Persistent (flash only)
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live config quiet splash persistent rw vga=791

3) This has been covered lots of times. If I was you though I'd just create as many sticks as you need and use your persistence file as a backup. If you need to reformat just create the stick and place your live-rw on the root of your flash media and yor golden ;)


#3) Worked great! (my apologies for not being able to find it, I have spent hours and hours trying 8^)

#1) 8^(

Leafpad will not save it
Root terminal gives (after login user live):

user@linuxcoin:~$ edit /usr/share/gdm/defaults.conf
Warning: unknown mime-type for "/usr/share/gdm/defaults.conf" -- using "application/octet-stream"
Error: no write permission for file "/usr/share/gdm/defaults.conf"
user@linuxcoin:~$

Trying to set file permissions in File Manager I get:
: Error setting permissions: Operation not permitted

user@linuxcoin:~$ chmod u+w /usr/share/gdm/defaults.conf
chmod: changing permissions of `/usr/share/gdm/defaults.conf': Operation not permitted

May have success! In Root Terminal:
root@linuxcoin:/home/user# ls -l ''/usr/share/gdm/defaults.conf''
-rw-r--r-- 1 root root 33977 Jun 21 17:55 /usr/share/gdm/defaults.conf
root@linuxcoin:/home/user# chmod o+rw /usr/share/gdm/defaults.conf
root@linuxcoin:/home/user# ls -l ''/usr/share/gdm/defaults.conf''
-rw-r--rw- 1 root root 33977 Jun 21 17:55 /usr/share/gdm/defaults.conf
root@linuxcoin:/home/user#

After this LeafPad seems to have saved the change.
Will reboot now to see if it worked
Did not work, booted straight to default
now going to try:
sudo leafpad /usr/share/gdm/defaults.conf
Hmmmm, the file obviously was changed but it had no effect:
"AutomaticLoginEnable=false"

Giving up on this one, now going to try #2

#2) I assume I will have the same no access to file issues as #1
Oh joy, now I can't find syslinux.cfg
root@linuxcoin:/home/user# sudo find / -iname 'syslinux.cfg'
/live/image/syslinux.cfg
sudo leafpad /live/image/syslinux.cfg
Ok, seems to have saved it, Time to reboot and test!



Title: Re: LinuxCoin Issues
Post by: drgr33n on July 10, 2011, 03:07:17 PM
lol you need root permission to change anything other than whats in home. Your still trying to use the user account hence user@linuxcoin:~$. It should read root@linuxcoin:~$ if your using a root terminal. Simple rule of thumb if you want to make changes to system files use sudo.

Code:
sudo leafpad /usr/share/gdm/defaults.conf

Leafpad will now be able to save your changes.


Title: Re: LinuxCoin Issues
Post by: Smalleyster on July 10, 2011, 03:52:59 PM
Now it waits at the main menu with only Persistence as an option, but I am still not being challenged for a password.

And the Password is essential. 8^(


Title: Re: LinuxCoin Issues
Post by: Smalleyster on July 10, 2011, 06:59:55 PM
After more hours of fumbling and bumbling on the linux command line I have decided to give up on mking this product password protected.

Now I will go waste a week or so seeing if I can make a secure Ubuntu bootable USB stick.


Title: Re: LinuxCoin Issues
Post by: Xenland on July 11, 2011, 02:39:07 AM
After more hours of fumbling and bumbling on the linux command line I have decided to give up on mking this product password protected.

Now I will go waste a week or so seeing if I can make a secure Ubuntu bootable USB stick.

I havnet used linux coin but from how I've read up on how it works, You probably need to boot up your computer without linuxcoin, then plugin the stick with the OS booted, edit the file that way. My take is that considering the file you are trying to edit it is probably locked for the system to use.


Title: Re: LinuxCoin Issues
Post by: Smalleyster on July 11, 2011, 03:16:42 AM
I DID IT! And the good part is if you do it wrong it screws everything up and makes it look like you have an empty wallet. But your wallet is still there hidden and waiting for you to come and rescue it! YEEEEHHHAAAA!!!! 8^)

And it's a GUI, screw all that code stuff!

LinuxCoin rocks and will be reasonably secure for that average user!

8^)

(details will follow after some more testing tomorrow)