topic title: antix-system
Posts: 1,062
Dave
Joined: 20 Jan 2010
#1
working on putting together antix-system, so far I am looking at

setting computer names
setting computer locales
antix USB
Disk space saving
Repairing boot

just wondering if there are ways to increase disk space other than those listed in msystem, and smxi. Also if there is anything else that may be convienient to have in antix-system
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
One option is to install localepurge and then it will ask which locales you want to keep and then delete all others. Saves lots of space. However it should come with a warning as once you have deleted the language locales it is very difficult to get them back for the apps of your choice. Maybe this could be an option as a dialog in post install script?

Setting computer names should be as it is in msystem for MEPIS the same for antiX.
Setting computer locales is different from what is in msystem. The msystem version is out of date in many ways and for antiX it hinders rather than helps.
antiXusb - we already have lagopus's antix2usb script which works really well and maybe we could use the hybridiso option as well.
Repairing boot in msystem is broken once grub-common gets updated.

If you can get the broken ones fixed for antiX then you will be a star! I don't think it will be easy, but if you can do it, wonderful!!
Posts: 1,062
Dave
Joined: 20 Jan 2010
#3
Update,

Thus far I have working
- a gui
- Sets computer name
- Sets computer domain
- Sets Samba Workgroup
- Sets Keyboard Layout
- Sets Mouse button order
- Clears System Logs
- Clears Package Cache
- Shows basic areas of disk usage
- Links / Starts Gparted
- Links / Starts Antix 2 USB

Know how to make work need to add to script
- Repairing grub

Still need to figure out
- Locale purge
- Set Locale

will be looking at locale purge once I download it. For setting locale, few questions.
1. How to set locale for /usr/local/bin/* Example:antixcc.sh, should it simply copy the files from /usr/share/antiX/localization
2. way to choose a locale without listing all available ( only ceratin entries similar to msystem ), or should it list all that are available and the user chooses from a list?

Screenshots of gui, free to suggest changes
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#4
Looking great Dave.

1. Basically yes, with the menu.lang changed to menu going to ~/.fluxbox ~/.icewm folders.
2. Not sure how to do this or the best way to do so.

A couple of comments on localisation. Users may want to be able to toggle more than one keyboard for example I toggle English and Greek. For languages using non-Latin alphabet, users have to be careful about the login name and password as slim is not able to allow not Latin letters login. This is best 'solved' by always having en in the keyboard toggle.

This is my /etc/default/keyboard.

Code: Select all

XKBMODEL="pc105"
XKBLAYOUT="us,gr"
XKBVARIANT=","
XKBOPTIONS="grp:alt_shift_toggle,terminate:ctrl_alt_bksp,grp_led:scroll"
For Repair boot, under options, Use initrd shouldn't be an option as in reality it is necessary not recommended.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#5
Dave, if you already know this, just ignore.

For localisation once installed.

1. Copy /usr/share/antiX/localisation/$lang/local-bin /usr/share/local/bin
2. Copy /usr/share/antiX/localisation/$lang/fluxbox ~/.fluxbox and rename menu.$lang menu
3. Copy /usr/share/antiX/localisation/$lang/icewm ~/.icewm and rename menu.$lang menu
4. At end of ~/.profile file replace old locale with new one.
5. Set /etc/default/locale to new $lang This might be done simply by editing the file, if not #dpkg-reconfigure locales in a root terminal will do it.
6. Set /etc/default/keyboard to ne $lang. See post above, probably can be done by simply editing that file.
7. The menu file(s) from icewm/fluxbox will need the install section removed. (Those files are originally set for running live)
Posts: 1,062
Dave
Joined: 20 Jan 2010
#6
@anti
I think this is on the way to setting the language locale, If it is possible have a look before I add it to antix-system and make some beneficial critiques

Code: Select all


sed -e"s/# //ig" /etc/locale.gen > /tmp/locale.txt;
LOCALE=`cat /tmp/locale.txt |zenity --text"List is LARGE please allow some time before choosing locale" --list --column=""`;
ALOCALE=`$LOCALE | cut -f 1,2`;
cp -r /usr/share/antiX/localisation/$ALOCALE/local-bin/* /usr/local/bin ;
chmod 755 /usr/local/bin/* ;
cp -r /usr/share/antiX/localisation/$ALOCALE/icewm/* /home/*******/.icewm ;
mv /home/******/.icewm/menu.$ALOCALE /home/******/.icewm/menu
cp -r /usr/share/antiX/localisation/$ALOCALE/fluxbox/* /home/******/.fluxbox ;
mv /home/******/.fluxbox/menu.$ALOCALE /home/******/.fluxbox/menu
echo"#  File generated by update-locale" > /etc/default/locale ;
echo"#  Locale Default choose and set by antix-system" >> /etc/default/locale ;
echo"$LOCALE" >> /etc/default/locale ;
sed"s/# //ig" /etc/locale.gen > /tmp/test.txt ;
sed -i -e 's_.*_#&_' /tmp/test.txt ;
sed"s/#$LOCALE/$LOCALE/ig" /tmp/test.txt >> /tmp/test3.txt ;
locale-gen;
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#7
I just had a very quick look and cannot see any issues.

Just don't forget to add the change to ~/.profile
Posts: 1,062
Dave
Joined: 20 Jan 2010
#8
@anti
added the part for setting ~/.profile, with this section the way it is it will change the locale for all the users on the system, should I also add the ability to select a specific user
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#9
If you think it will work, though i'm not sure if it will.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#10
The first draft / version of antix-system is pretty well done except for some minor informative facts. Such as the disk usage on a fresh install, and some general warnings. I would advise everyone not to try on your running install until the bugs ( if any ) are worked out, due to the fact that it has the potential to crash the system. Nothing that is not reversable __{{emoticon}}__ , but still not very convenient

need to download both of these files to /usr/local/bin


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://daveserver.dyndns-web.com/antiX/antix-system/antix-system"
linktext was:"antix-system"
====================================


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://daveserver.dyndns-web.com/antiX/antix-system/diskusage"
linktext was:"diskusage"
====================================
Last edited by Dave on 23 Jul 2011, 20:57, edited 1 time in total.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#11
Quick comment for now after testing. I need to do more.

1. Locale tab.

Seems that computer name, domain and samba works ok.

Locales section seem a bit problemmatic.
Changing and choosing locales does work at first, but after a few changes it puts a # in front of LANG=xx_XX.UTF-8 and adds an extra UTF-8 to /etc/default/locale. The reason is that it copies from /etc/locale.gen. This results in errors on booting and when using the console.

Chnage mouse seems to work ok.

Change keyboard layout works, but the changes do not stick on reboot. The changes need to be done differently for permanent install ie the changes need to be done via /etc/default/keyboard and not via setxkbmap (setxkbmap is fine for live use).

2. Disk management works fine.

3. Grub management I need to test more.

For localisation and setting keyboard, I have some suggestions, but nothing sorted yet. When I get the chance, I'll post again.

(I'm very busy at the moment with 'real' life).

Once again, thanks. antix-system will be a great asset to antiX.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#12
Thanks anti,

take your time, it does not need to happen right away. We all have things to do, thanks for testing what you have I will look into the problems with the locale and make the keyboard permanent.

Also on a fresh install I am noticing that in /usr/share/ there is a folder called antix-install, containing locales. Could these be removed as a clean up under disk management, also the other locales under the antiX folder. Maybe title it remove antix extras. I looked at locale-purge, and I do not know if that should be in antix-system. In my opinion it should be left to people who at least know how to use the terminal. That way there will not be many posts on locale problems do to the locales being permanently deleted.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#13
I believe I have fixed the keyboard not being permanent and the locale issues. The new antix-system

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://daveserver.dyndns-web.com/antiX/antix-system/antix-system"
linktext was:"antix-system"
====================================


but once again, take your time it does not need to happen right away. After all I am doing this in my free time, and there is no reason to bend because our free times do not match.
Last edited by Dave on 23 Jul 2011, 20:57, edited 1 time in total.
anticapitalista
Posts: 5,955
anticapitalista
Site Admin
Joined: 11 Sep 2007
#14
I have been testing locales and keyboard on the latest antix-system. This is what I have found.

Keyboard:

1. For keyboard the setxkbmap xx; is not needed.
2. NEWKLOCALE="XKBLAYOUT=\"us, xx\"" ; best not to leave the space, instead use us,xx

Locales:

1. Maybe best to run in a root terminal dpkg-reconfigure locales as it will automatically set /etc/default/locale and then run the set keyboard part.
2. Setting last line in ~/.profile export LANG=xx.XX.UTF-8 from the default doesn't work.
3. Choose a your locale for antiX applications works for fluxbox and icewm.

General:

I'm not sure if we should have a dpkg-reconfigure console-setup or not.

Keep up the great work.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#15
Have now set to

Keyboard:
1 setxkbmap XX; is removed
2 space removed between \"us, XX\"

Locales:
1 runs dpkg-reconfigure locales, rather than doing it manually
2 setting the last line in ~/.profile should be fixed, missed a nastly space in the code

General:
console-setup is easy enough to do, but i do not know if it should be there because it is easy enough to do if you know how to use the console. On the other hand there are times when new users are shown how to use it to fix a problem. I am unsure in this as well may be time for a poll

EDIT: added console-setup anyway for the amount of time it took it was worth a look