Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

Install to live USB stick: latest antix2usb scripts

Post questions, problems, comments here.

Re: Install to live USB stick: latest antix2usb scripts

Postby secipolla on Fri Nov 06, 2009 2:19 am

Fine!
There was two GPL files, one plain text and the other html but I saved as full web page and it came with a folder with the images.
Maybe just leave the plain text.
I could have saved the web page html only but although Dillo did show it of course, it wouldn't stop loading because it couldn't find the image files. So it was just a matter of removing the image links in the page but since I don't know about that I didn't do it.

Summary: next time I'll upload a simple html file and do some tests to remove the image link from the code.
secipolla
 
Posts: 437
Joined: Sun Jun 15, 2008 2:56 pm
Location: São Paulo / Brazil

Re: Install to live USB stick: latest antix2usb scripts

Postby lagopus on Fri Nov 06, 2009 2:49 am

Secipolla:

Here is the result: main dialog and help, and a chunk of code:

screenshot3.jpg
screenshot3.jpg (153.48 KiB) Viewed 311 times
Yves
_____________________________________________________________
S'il n'y a pas de solutions, il n'y a pas de problèmes.
User avatar
lagopus
 
Posts: 97
Joined: Wed Oct 15, 2008 9:42 pm
Location: Toulouse, France

Re: Install to live USB stick: latest antix2usb scripts

Postby secipolla on Fri Nov 06, 2009 2:57 am

'Persistence' should be 'Persistência' but maybe it didn't get translated because of the accent?
Also the buttons.. are they on the script or do they depend on antix2usb?
antix2usb will be translated for the next version of antiX (anti put it in Launchpad and it's already translated).
secipolla
 
Posts: 437
Joined: Sun Jun 15, 2008 2:56 pm
Location: São Paulo / Brazil

Re: Install to live USB stick: latest antix2usb scripts

Postby lagopus on Sat Nov 07, 2009 1:31 am

This is a new version, (pre-release?)

Bug fixes, improvements:

- when the persistence option is checked, cheatcodes:
homefs=UUID-of-antiXData-partition rootfs=UUID-of-antiXData-partition
are appended in menu.lst
- localisation: the environment variable LANG is checked; for LANG=fr_FR.UTF-8 for instance, lang=fr is appended silently to the kernel line; seems to work for fr, secipolla will try it for pt_BR :wink:
- portuguese (brazilian added)
- a dialog would pop up when the process is completed; the main dialog should then close... this relies on the presence of the logfile under /tmp/antix2usb.log... Do not forget to update **both** the gui.sh and the sh script
- there are two (not documented) options for antix2usb-gui.sg
-d : verbose output (debug)
-t : = for test only, verbose output, plus: iso-or-whatever-you-choose-file will not be writen to the device (saves time), but this will format, install grub,.. initrd

- both partitions are ext2

Do not use this tar file. Please see next posts
Attachments
antix2usb-0.2.1.tar.gz
(17.79 KiB) Downloaded 8 times
Last edited by lagopus on Sat Nov 07, 2009 2:39 am, edited 2 times in total.
Yves
_____________________________________________________________
S'il n'y a pas de solutions, il n'y a pas de problèmes.
User avatar
lagopus
 
Posts: 97
Joined: Wed Oct 15, 2008 9:42 pm
Location: Toulouse, France

Re: Install to live USB stick: latest antix2usb scripts

Postby eriefisher on Sat Nov 07, 2009 1:58 am

Here is all the output from the treminal. Also when it graphically finishes, succesfully I may add, the terminal is still on hold.

Code: Select all
(gtkdialog:6192): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
################# DO_DEBUG= #####################
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected
/usr/local/bin/antix2usb-gui.sh: line 630: [: =: unary operator expected
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected

** (roxterm:6446): CRITICAL **: Error connecting to dbus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
process 6446: arguments to dbus_connection_send_with_reply_and_block() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3338.
This is normally a bug in some application using the D-Bus library.
process 6446: arguments to dbus_connection_add_filter() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5297.
This is normally a bug in some application using the D-Bus library.

** (roxterm:6446): CRITICAL **: Unable to install D-BUS message filter: <unknown>

(roxterm:6446): Vte-CRITICAL **: vte_terminal_set_background_tint_color: assertion `color != NULL' failed
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected
EXIT="OK"
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected
/usr/local/bin/antix2usb-gui.sh: line 254: [: =: unary operator expected

eriefisher

Image

SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS.
User avatar
eriefisher
 
Posts: 1431
Joined: Sun Oct 07, 2007 5:16 pm
Location: Canada's South Coast

Re: Install to live USB stick: latest antix2usb scripts

Postby lagopus on Sat Nov 07, 2009 2:32 am

OK eriefisher

In a last minute change, I decided to pass the '-d' option to the antix2usb.sh script; to achieve this, I must not define the DO_DEBUG variable at the beginning of the script... and an undefined $DO_DEBUG is not the empty string "$DO_DEBUG".
Thanks, fixed

On my system, I do not see any dbus error
But I got:
(roxterm:7010): Vte-CRITICAL **: vte_terminal_set_background_tint_color: assertion `color != NULL' failed
execute_command: status: Failure


... I would prefer to have a simple xterm (as I got on Mepis)

Attached file.
Attachments
antix2usb-0.2.1.tar.gz
(17.77 KiB) Downloaded 7 times
Yves
_____________________________________________________________
S'il n'y a pas de solutions, il n'y a pas de problèmes.
User avatar
lagopus
 
Posts: 97
Joined: Wed Oct 15, 2008 9:42 pm
Location: Toulouse, France

Re: Install to live USB stick: latest antix2usb scripts

Postby anticapitalista on Sat Nov 07, 2009 2:44 am

lagopus, that bug in roxterm can be fixed when you open roxterm as root and then
Preferences->Edit Current Color Scheme->
Click on 'Set text and background colors'.

This is fixed for antiX-M8.5, so no need to worry about it.
Philosophers have interpreted the world in many ways; the point is to change it.
User avatar
anticapitalista
Site Admin
 
Posts: 2144
Joined: Tue Sep 11, 2007 4:55 pm
Location: Greece

Re: Install to live USB stick: latest antix2usb scripts

Postby secipolla on Sat Nov 07, 2009 5:20 pm

I didn't test it because I don't have a usb key with me. But I fixed the translation (I had replaced 'fr' for 'br' and that replaced a couple of 'frame' for 'brame' and I also better translated one sentence).

I see that you didn't put in the license text in Portuguese so i didn't put it as well but if you think you'ld like to figure it:
#
# Este programa é um software livre; você pode redistribuí-lo e/ou
# modificá-lo dentro dos termos da Licença Pública Geral GNU como
# publicada pela Fundação do Software Livre (FSF); na versão 2 da
# Licença ou (à sua opção) qualquer versão posterior.
#
# Este programa é distribuido na esperança de que possa ser útil,
# mas SEM NENHUMA GARANTIA; nem mesmo uma garantia implícita de
# ADEQUAÇÂO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a
# Licença Pública Geral GNU para maiores detalhes.
#
# Você deve ter recebido uma cópia da Licença Pública Geral GNU
# junto com este programa; se não, escreva para a Fundação do Software
# Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Nos sistemas Debian GNU/Linux o texto da licença GPL se encontra
# em /usr/share/common-licenses/GPL.
#
# A tradução oficial para o português do Brasil pode ser encontrada
# online em http://www.fsfla.org/svnwiki/trad/GPLv3
#
Attachments
antix2usb-gui.sh.zip
(8.16 KiB) Downloaded 3 times
secipolla
 
Posts: 437
Joined: Sun Jun 15, 2008 2:56 pm
Location: São Paulo / Brazil

Re: Install to live USB stick: latest antix2usb scripts

Postby lagopus on Tue Nov 17, 2009 2:54 am

Last update

Now the antix2usb-gui.sh is started as simple used.
After selecting the iso, clicking Apply, you are prompted for the root password.

Technical note: the bash function execute_command() opens a roxterm which executes "gtksu -u root ... antix2usb.sh"
(found no option for setting the roxterm at the center of the screen, set position for my 1024x600 screen...)

Download the attached archive. Then:
1) Copy the downloaded file to a temporary directory, and untar the file:
yves@montcalm:~/temp$ cp ~/Downloads/antix2usb-0.2.2.tgz .
yves@montcalm:~/temp$ ls
antix2usb-0.2.2.tgz
yves@montcalm:~/temp$ tar zxvf antix2usb-0.2.2.tgz
antix2usb-0.2.2/
antix2usb-0.2.2/README
antix2usb-0.2.2/antix2usb-gui.sh
antix2usb-0.2.2/install.sh
antix2usb-0.2.2/antix2usb.sh

2) Change working directory and run the install.sh script as root:
yves@montcalm:~/temp$ cd antix2usb-0.2.2/
yves@montcalm:~/temp/antix2usb-0.2.2$ ./install.sh
Root privileges are required to install antix2usb scripts.
yves@montcalm:~/temp/antix2usb-0.2.2$ su
Password :
root@montcalm:/home/yves/temp/antix2usb-0.2.2# ./install.sh
This will install antix2usb scripts in /usr/local/bin
Continue (y|n): y
antix2usb scripts installed to /usr/local/bin

3) Exit and check the installation:
root@montcalm:/home/yves/temp/antix2usb-0.2.2# exit
yves@montcalm:~/temp/antix2usb-0.2.2$ which antix2usb-gui.sh
/usr/local/bin/antix2usb-gui.sh
yves@montcalm:~/temp/antix2usb-0.2.2$ antix2usb-gui.sh -v
antix2usb-gui.sh v0.2.2 2009-11-16
yves@montcalm:~/temp/antix2usb-0.2.2$ antix2usb.sh
bash: /usr/local/bin/antix2usb.sh: Permission non accordée


You will now be able to start antix2usb-gui.sh

I added an entry in ~/.icewm/menu, something like:

menu "Outils" folder {
prog "antix2usb" - antix2usb-gui.sh
...
...
}


Hope this will work for you.
Some error cases are not cleanly handled (key already mounted,...)
Yves
_____________________________________________________________
S'il n'y a pas de solutions, il n'y a pas de problèmes.
User avatar
lagopus
 
Posts: 97
Joined: Wed Oct 15, 2008 9:42 pm
Location: Toulouse, France

Re: Install to live USB stick: latest antix2usb scripts

Postby lagopus on Tue Nov 17, 2009 3:00 am

Here is the tar-file
(!!! tgz files are not allowed, replace .tgz by .tar.gz)
Attachments
antix2usb-0.2.2.tar.gz
(17.87 KiB) Downloaded 8 times
Yves
_____________________________________________________________
S'il n'y a pas de solutions, il n'y a pas de problèmes.
User avatar
lagopus
 
Posts: 97
Joined: Wed Oct 15, 2008 9:42 pm
Location: Toulouse, France

Re: Install to live USB stick: latest antix2usb scripts

Postby rokytnji on Tue Nov 17, 2009 1:17 pm

I feel like Homer Simpson Today. I was in a Puppy Linux State of Mind and thought that this script and feature was the equivalent of a pup_save_sfs for Antix Live USB.

DOH!

I can be thick headed at times. No wonder I confuse the hell out of you guys. Now it is starting to get through my thick skull that this is a way to make a installed version of Antix to USB . But with my batting average lately. I aint even sure I am right in thinking that either. I need to read up a few times in a row for things to sink in sometimes.
Just give me some time to sort out things in my brain a little. I will get there eventually.

Ps. It doesn't help when these netbook small screens are so friggin small and hard to read. And yeah, I got image zoom(firefox) and Opera 10 with zoom feature. But I was diagnosed with cataracts which I am working on to get removed.
Free Linux Books: http://www.linuxforums.org/forum/coffee-lounge/137677-whats-best-book-about-linux.html
Linux Registered User # 475019
And I’ll keep using Linux until they pry it from my cold dead fingers.
User avatar
rokytnji
 
Posts: 250
Joined: Fri Feb 20, 2009 3:44 am
Location: Pecos, Texas

Re: Install to live USB stick: latest antix2usb scripts

Postby anticapitalista on Tue Nov 17, 2009 1:47 pm

lagopus,

I tested out the latest script and there are problems.

1. If you use the script from a menu (as user), when roxterm opens and tells you to be root
user it closes before you have time to do anything.
2. If antix2usb-gui.sh is opened as root (wrong thing to do) and you do not have a usb device
connected, you cannot cancel. Once the stick is inserted and detected, cancel works.

Running from a terminal, these errors are reported.

Code: Select all
$ antix2usb-gui.sh
/usr/local/bin/antix2usb-gui.sh: line 840: /tmp/antix2usb.pid: Permission denied
antiX@mepis1:~$ /usr/local/bin/antix2usb-gui.sh: line 644: kill: (12308) - No such process
Philosophers have interpreted the world in many ways; the point is to change it.
User avatar
anticapitalista
Site Admin
 
Posts: 2144
Joined: Tue Sep 11, 2007 4:55 pm
Location: Greece

Re: Install to live USB stick: latest antix2usb scripts

Postby lagopus on Tue Nov 17, 2009 5:51 pm

Ok I will check these two points:
1. If you use the script from a menu (as user), when roxterm opens and tells you to be root
user it closes before you have time to do anything.
2. If antix2usb-gui.sh is opened as root (wrong thing to do) and you do not have a usb device
connected, you cannot cancel. Once the stick is inserted and detected, cancel works.

Point 1: I suspect where the problem lies... in fact I don't know how it can work for me

About this:
Code: Select all
$ antix2usb-gui.sh
/usr/local/bin/antix2usb-gui.sh: line 840: /tmp/antix2usb.pid: Permission denied
antiX@mepis1:~$ /usr/local/bin/antix2usb-gui.sh: line 644: kill: (12308) - No such process

I think the file /tmp/antix2usb.pid has been previously writen by root, user can't overwrite it. I am not sure I can use a tmpXXX file name... (I use this to close the first instance of the shell, which starts gtkdialog)

I'll try to fix it this evening.
Yves
_____________________________________________________________
S'il n'y a pas de solutions, il n'y a pas de problèmes.
User avatar
lagopus
 
Posts: 97
Joined: Wed Oct 15, 2008 9:42 pm
Location: Toulouse, France

Re: Install to live USB stick: latest antix2usb scripts

Postby lagopus on Wed Nov 18, 2009 12:34 am

I apologize for the bugs. :oops:
I made last minute modifications last night before packaging... and screwed up something.

Could not repeat this error:
If you use the script from a menu (as user), when roxterm opens and tells you to be root
user it closes before you have time to do anything.


Hope this will finally work
Attachments
antix2usb-0.2.2.tar.gz
(18.04 KiB) Downloaded 18 times
Yves
_____________________________________________________________
S'il n'y a pas de solutions, il n'y a pas de problèmes.
User avatar
lagopus
 
Posts: 97
Joined: Wed Oct 15, 2008 9:42 pm
Location: Toulouse, France

Re: Install to live USB stick: latest antix2usb scripts

Postby miks on Wed Nov 18, 2009 8:40 pm

Hey lagopus, is this likely to work on an install of debian squeeze (my main production os.)?
User avatar
miks
 
Posts: 9
Joined: Sun Jul 26, 2009 2:44 pm

PreviousNext

Return to antiX-M8.2 Tȟašúŋke Witkó

Who is online

Users browsing this forum: No registered users and 0 guests