MEPIS Community Forum

A Linux operating system based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 30 posts ]  Go to page 1, 2, 3  Next
Modified installation binary with timezones 
Author Message
Forum Regular
Forum Regular
User avatar

Joined: Thu Aug 17, 2006 7:56 am
Posts: 874
Location: Scotland
Has thanked: 87 times
Have thanks: 45 times
Post # 254748
Post Modified installation binary with timezones
Warren's feedback got me thinking about having a go at coding with Qt. One thing that bothers me (and others, I gather) during the install is the inability to set the timezone during the installation :angry:

So, I got the minstall source code and had a go. Attached is my first attempt. It's worked in a test Vbox installation and anyone is welcome to try it. The change is at Step 7c.

The file is a simple replacement for the real 'minstall' binary found in /usr/sbin/. The way I got it working in a liveDVD session is by putting it on a USB stick and running it from there as root.

Please let me know your thoughts and comments. I'll forward the changes to Warren when I've got confirmation from at least one other person that it works ;)

Edit: Please note this is 32bit binary. Judging from m_pav's experience it won't work with 64bit systems.


You do not have the required permissions to view the files attached to this post.

_________________
Acer Aspire X1301 desktop: AMD Athlon II X2 215, nForce 8600 chipset with integrated graphics, 4Gb RAM, 1Tb HDD
Monitor: Samsung SyncMaster 2243BW (1680x1050)
Printer: HP Photosmart C5180 all-in-one


Mon Dec 20, 2010 4:35 pm
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Wed Jul 19, 2006 6:13 am
Posts: 10014
Location: Geneva NY
Has thanked: 2862 times
Have thanks: 1859 times
Post # 254750
Post 
Great to see some Community development work be done this cycle! I will test this in a bit and get back to you.

EDIT: that seems to work fine. I fired up the M11 A4 LiveDVD, used a USB stick to move it into Downloads, then ran it from there with ./minstall. Installed to a partition with Europe/Paris time, then checked the file /etc/timezone and the correct one had been written. Did not check further than that.

Questions: 1) the Help page facing your changes says that EST is the default--is it still? Warren would probably want that default. 2) are there any changes to that Help page that your revision requires?

_________________
A Wiki only works when many eyes are on it.

32bit, 3.12-0.bpo.1-686-pae, MX-14, AMD Phenom 9650 Quad-Core, Dell SP2309W with integrated webcam, Nvidia GeForce 6150SE, 4 GB DDR2


Mon Dec 20, 2010 4:58 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sat Jul 15, 2006 10:40 am
Posts: 2895
Location: Greece
Has thanked: 381 times
Have thanks: 805 times
Post # 254754
Post 
Tested on antiX live system and set timezone to Europe/Athens and it works just fine.

_________________
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX "Luddite" - lean and mean.
http://antix.mepis.org


Mon Dec 20, 2010 6:02 pm
Profile
Forum Regular
Forum Regular
User avatar

Joined: Thu Aug 17, 2006 7:56 am
Posts: 874
Location: Scotland
Has thanked: 87 times
Have thanks: 45 times
Post # 254756
Post 
Jerry3904 wrote:
Great to see some Community development work be done this cycle! I will test this in a bit and get back to you.

EDIT: that seems to work fine. I fired up the M11 A4 LiveDVD, used a USB stick to move it into Downloads, then ran it from there with ./minstall. Installed to a partition with Europe/Paris time, then checked the file /etc/timezone and the correct one had been written. Did not check further than that.

Questions: 1) the Help page facing your changes says that EST is the default--is it still? Warren would probably want that default. 2) are there any changes to that Help page that your revision requires?


Thanks Jerry and Anti for testing it :happy:

I've not changed any of the help text yet. That's an easy fix compared to the code itself. No, the default is 'Europe/London' :p ...but that's also easily changed.

_________________
Acer Aspire X1301 desktop: AMD Athlon II X2 215, nForce 8600 chipset with integrated graphics, 4Gb RAM, 1Tb HDD
Monitor: Samsung SyncMaster 2243BW (1680x1050)
Printer: HP Photosmart C5180 all-in-one


Mon Dec 20, 2010 6:15 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sun Aug 06, 2006 3:02 pm
Posts: 2158
Location: New Zealand BOP
Has thanked: 72 times
Have thanks: 456 times
Post # 254778
Post 
I'll give it a whirl on my EEE tonight using NZ timezone.

Mike P

_________________
Mike P

Regd Linux User #472293
(1)Lenovo e520, i7-2640M, 8GB, 750GB Seagate Hybrid, MX-14.1_DVD (my own respin)
(2) Asus M4A88TD-M, AMD Phenom II x4 955 CPU, Radeon HD 4250, 4Gb, 1.5TB, antiX-13-64


Tue Dec 21, 2010 12:45 am
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sun Aug 06, 2006 3:02 pm
Posts: 2158
Location: New Zealand BOP
Has thanked: 72 times
Have thanks: 456 times
Post # 254782
Post 
Booted my netbook from a flash drive with M11 A4 64-bit, I copied the file to the flash drive from my regular notebook, then to /home/demo/Downloads, extracted it, checked that it was executable, opened konsole, su to root, cd to Downloads and the remainder is below. Because it failed, I exited root back to demo, typed xhost +, su'd back to root and tried again, still no joy, connected to my wireless, re-downloaded and tried again, still no joy.
Code:
demo@mepis1:~$ cd Downloads/
demo@mepis1:~/Downloads$ ls
minstall  Minstall.zip
demo@mepis1:~/Downloads$ su
Password:
[root@mepis1 Downloads]# ./minstall
bash: ./minstall: No such file or directory
[root@mepis1 Downloads]#

My impression is that the executable will not work from a live-usb, it must be looking for a file in a different location

Mike P

_________________
Mike P

Regd Linux User #472293
(1)Lenovo e520, i7-2640M, 8GB, 750GB Seagate Hybrid, MX-14.1_DVD (my own respin)
(2) Asus M4A88TD-M, AMD Phenom II x4 955 CPU, Radeon HD 4250, 4Gb, 1.5TB, antiX-13-64


Tue Dec 21, 2010 2:38 am
Profile
Forum Regular
Forum Regular
User avatar

Joined: Thu Aug 17, 2006 7:56 am
Posts: 874
Location: Scotland
Has thanked: 87 times
Have thanks: 45 times
Post # 254783
Post 
Ah, I should have said this is a 32bit binary. I guess your problems are due your using 64bit. I'll try and get a 64bit binary for you.

_________________
Acer Aspire X1301 desktop: AMD Athlon II X2 215, nForce 8600 chipset with integrated graphics, 4Gb RAM, 1Tb HDD
Monitor: Samsung SyncMaster 2243BW (1680x1050)
Printer: HP Photosmart C5180 all-in-one


Tue Dec 21, 2010 3:58 am
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sun Aug 06, 2006 3:02 pm
Posts: 2158
Location: New Zealand BOP
Has thanked: 72 times
Have thanks: 456 times
Post # 254784
Post 
I did wonder about that, but as it was not specifically stated, I wondered if the installer would be OK for either platform.

Will eagerly await the package

Mike P

_________________
Mike P

Regd Linux User #472293
(1)Lenovo e520, i7-2640M, 8GB, 750GB Seagate Hybrid, MX-14.1_DVD (my own respin)
(2) Asus M4A88TD-M, AMD Phenom II x4 955 CPU, Radeon HD 4250, 4Gb, 1.5TB, antiX-13-64


Tue Dec 21, 2010 4:34 am
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Wed Jul 12, 2006 1:42 am
Posts: 4464
Has thanked: 443 times
Have thanks: 596 times
Post # 254800
Post 
I don't think it's 64 bit problem, if you try to run a 32 bit binary it tells you that it cannot find the 32 bit libraries for it (if you don't have them installed on your system) not that the file is not there, it's something else going on I think.


Tue Dec 21, 2010 11:08 am
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Wed Jul 12, 2006 2:26 pm
Posts: 6951
Has thanked: 378 times
Have thanks: 2233 times
Post # 254807
Post 
Try starting it as a regular user, using kdesu.

For instance I have it extracted to my /tmp directory and
Quote:
kdesu /tmp/minstall
from either the command line in konsole or the <Alt>+<F2> Run Command will start it up.

{Other than start it up, I haven't run the new minstall because I was running it from an existing install instead of a LiveDVD session.}

edit: I am using 32bit


Tue Dec 21, 2010 11:31 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 30 posts ]  Go to page 1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.