WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Some features requested  (Read 7071 times)

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Some features requested
« on: April 09, 2011, 02:22:16 AM »
Hello to all,

I'm still very novice with TinyCore and Bash scripting.  Need help to build custom packages, step by step.  Want to do next ...

  a) Update DosBox to 0.74 release.
  b) Update WinE to last release with Ubuntu Linux WinE features.
  c) Update Clementine to 0.71 release.
  d) Modify OpenOffice package to include startup icon into wbar configuration (same as LibreOffice).
  e) Update wireless packages to connect to WPA2-PSK WiFi networks (I can't connect).
   f) Create new package for Harbour 2.0 Compiler.
  g) Create new package to change some environment vars (PS1, ...) and calling custom script
       located in /dev/sda1
  h) Create new package for Kaffeine (the best DVB-T player for me).
   i) Create new packages to add ChatZilla and FlashPlayer extensions to Firefox browser (to see
        YouTube videos).
   j) Add keyboard-change support.
  k) Create new packages for remote desktop (Linux) and Teamviewer.
   l) Create new package for Skype.

I think this is all on this first question.  Loading all .tcz modules desired at startup requires huge memory, also for on-demand.  I want to create a menu tool for loading .tcz files from local as desired.

Thank you.
« Last Edit: April 09, 2011, 02:25:07 AM by AlejandroPadrino »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: Some features requested
« Reply #1 on: April 09, 2011, 02:30:46 AM »
 d) Modify OpenOffice package to include startup icon into wbar configuration (same as LibreOffice).
You can copy the way it has been done in the oo2 extension

Quote
 e) Update wireless packages to connect to WPA2-PSK WiFi networks (I can't connect).
Works fine for me with a couple of different wpa2-personal networks, maybe you could post the errors?

Quote
I want to create a menu tool for loading .tcz files from local as desired.
Why not use the apps browser or command line?

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: Some features requested
« Reply #2 on: April 09, 2011, 03:05:34 PM »
Hello Juanito,

d) I want to use OpenOffice 3.2.1 (or 3.1.1 as minimal release) because better compatibility
    with M$ Office documents.

e) There is no error.  Some times don't show my WiFi network (same as BT4 Wicd network manager), and other times can't connect.  What modules are you using to connect to WPA2-PSK?  How to do?  I was load all WiFi related .tcz files.

For loading .tcz from custom menu, I want do it as script configuration, organizing .tcz files for some groups (audio & video, network, ...), allowing me to enable (load) or disable (unload) each group at runtime or at next boot time.  This is because loading all basic modules for audio, network and others requires huge memory.  Also need scripts to load and unload from commandline (I think unload is not possible).

Thank you.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: Some features requested
« Reply #3 on: April 09, 2011, 11:43:07 PM »
e) There is no error.  Some times don't show my WiFi network (same as BT4 Wicd network manager), and other times can't connect.  What modules are you using to connect to WPA2-PSK?  How to do?  I was load all WiFi related .tcz files.

I load the wireless_tools and wpa_supplicant extensions and deps and then modprobe the lib80211_crypt_tkip, lib80211_crypt_wep and lib80211_crypt_ccmp modules.

Note that you need to create a suitable /etc/wpa_configure.conf - there are a couple of posts on this if you search the forums.

Quote
For loading .tcz from custom menu, I want do it as script configuration, organizing .tcz files for some groups (audio & video, network, ...), allowing me to enable (load) or disable (unload) each group at runtime or at next boot time.  This is because loading all basic modules for audio, network and others requires huge memory.  Also need scripts to load and unload from commandline (I think unload is not possible).

You could, for example, create a folder /tce/audio, put your audio extensions in there and load them with "tce-load -i /tce/audio/*tcz.

I'm not sure why you say loading modules uses a huge amount of memory - are you copying them to ram rather than using the default?

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: Some features requested
« Reply #4 on: April 10, 2011, 03:40:02 AM »
Hello Juanito,

I can't found lib80211_crypt_tkip, lib80211_crypt_wep and lib80211_crypt_ccmp modules into TinyCore web pages.  Can you send me download links?

Still don't run.  Modules loaded are wireless-2.6.33.3-tinycore.tcz, wimax-2.6.33.3-tinycore.tcz,
wimax-2.6.33.3-l1-rt19.tcz, wireless-2.6.33.3-l1-rt19.tcz, compat-wireless-2.6.33.3-tinycore.tcz,
firmware-iwlwifi.tcz, firmware-libertas.tcz, firmware-wimax.tcz, firmware.tcz, wireless_tools.tcz,
wpa_gui.tcz, wpa_supplicant.tcz, wpa_supplicant-dbus.tcz, wicd-2.6.tcz and wicd-doc-2.6.tcz

wicd start command appears to be run.  But wicd command or wicdnetworkmanager menu entry does not show nothing.  After installing wifi radar application do not run.  wpa_gui don't save access point information.  error is "failed to enable network in wpa_suplicant information".

iwconfig returns next ...

wlan0     IEEE 802.11bg  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm  
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

I'm using TinyCore 3.5.1 in a Asus Eee-PC 904HD laptop (netbook).

What to do?

Thank you.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Some features requested
« Reply #5 on: April 10, 2011, 03:59:50 AM »
Do not load both wireless- and compat-wireless-. Having the realtime module extensions loaded won't harm, they will just use up some resources.
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: Some features requested
« Reply #6 on: April 10, 2011, 04:14:22 AM »
The lib80211_crypt_tkip, lib80211_crypt_wep and lib80211_crypt_ccmp modules are part of the wireless-2.6.33.3-tinycore extension.

Once the wireless-2.6.33.3-tinycore extension is loaded these modules will be available to load using the modprobe command, eg:
Code: [Select]
$ sudo modprobe lib80211_crypt_tkip
I don't use wicd, the only wireless extensions I load are the ones I listed above.

What wireless hardware does your Asus Eee-PC 904HD laptop have? You can use the pci-utils or usb-utils extensions to list hardware using lspci or lsusb

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: Some features requested
« Reply #7 on: April 10, 2011, 05:20:15 AM »
WiFi device is Atheros (AR5001).  I was remove compat-wireless modules.  Want to connect to WiFi networks using Wicd network manager instead of scripting.  This script can't connect ...

sudo modprobe lib80211_crypt_tkip
sudo modprobe lib80211_crypt_ccmp
sudo modprobe lib80211_crypt_wep
sudo /sbin/ifconfig wlan0 up
sudo /usr/local/sbin/iwconfig wlan0 mode managed
sudo /usr/local/sbin/iwpriv wlan0 set AuthMode=WPA2PSK
sudo /usr/local/sbin/iwpriv wlan0 set EncrypType=TKIP
sudo /usr/local/sbin/iwconfig wlan0 essid #####
sudo /usr/local/sbin/iwpriv wlan0 set WPAPSK=#####
sudo /usr/local/sbin/iwconfig wlan0 essid #####
sleep 2
sudo /sbin/udhcpc -H TinyEEE -b -i wlan0

Error in script is "wlan0      no private ioctls.".  What's wrong?

Thank you for faster replies.
« Last Edit: April 10, 2011, 05:23:03 AM by AlejandroPadrino »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: Some features requested
« Reply #8 on: April 10, 2011, 05:39:16 AM »
Error in script is "wlan0      no private ioctls.".  What's wrong?

This means the driver does not support some of the functionality you're trying to access with the iwpriv/iwconfig commands - I have the same issue with my broadcom hardware and the b43 driver.

This script works for me:
Code: [Select]
#!/bin/sh -e
#
sudo cp /mnt/sda1/conf/wpa_configure.conf /etc/wpa_configure.conf
#
tce-load -i /mnt/sda1/tce/optional/b43_firmware.tcz
tce-load -i /mnt/sda1/tce/optional/wireless_tools.tcz
tce-load -i /mnt/sda1/tce/optional/wpa_supplicant.tcz
#
sudo modprobe lib80211_crypt_tkip
sudo modprobe lib80211_crypt_wep
sudo modprobe lib80211_crypt_ccmp
#
sleep 2
sudo iwconfig wlan0 essid "xxxxxx"
sudo wpa_supplicant -B -Dwext -i wlan0 -c/etc/wpa_configure.conf
#
sudo udhcpc -b -i wlan0
#
# EOF

where:
Code: [Select]
$ cat /etc/wpa_configure.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

network={
        ssid="xxxxxx"
        psk="pass_key"
        scan_ssid=1
key_mgmt=WPA-PSK
proto=WPA2
pairwise=CCMP
group=CCMP
}

and see also http://forum.tinycorelinux.net/index.php?topic=4394.msg30059#msg30059
« Last Edit: April 10, 2011, 05:57:41 AM by Juanito »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Some features requested
« Reply #9 on: April 10, 2011, 09:45:05 AM »
For loading .tcz from custom menu, I want do it as script configuration, organizing .tcz files for some groups (audio & video, network, ...), allowing me to enable (load) or disable (unload) each group at runtime or at next boot time.  This is because loading all basic modules for audio, network and others requires huge memory.  Also need scripts to load and unload from commandline (I think unload is not possible).

Thank you.

Loading all possibly required packages for basic audio and networking support is next to negligible concerning resources usage in proportion to several of the apps mentioned in original post each on their own.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Some features requested
« Reply #10 on: April 10, 2011, 09:47:15 AM »
Error in script is "wlan0      no private ioctls.".  What's wrong?

You can list all available private ioctls by simply doing
Code: [Select]
iwpriv
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: Some features requested
« Reply #11 on: April 17, 2011, 02:30:07 PM »
Juanito, script does not run.  I think is not problem from driver because Ubuntu Kernel (2.6.32.23) supports Atheros without any problem, and TinyCore Kernel is 2.6.35.x

Can I suggest you new release of TinyCore with full Linux Kernel?  I think can be good choice.  Ubuntu Live needs 256 MBytes of RAM to run, with all Live-CD.  I understand basics of TinyCore, but think that Network drivers for LAN and WiFi are a essential feature to run as Live.  But loading drivers and tools in TinyCore, RAM is frequently over 1 GiByte.  Audio drivers can be a choice to disable (not for me), but communications always are needed.

Another problem found is to mount NTFS compressed drives as rw mode.

Thanks.   :-)
« Last Edit: April 17, 2011, 02:32:50 PM by AlejandroPadrino »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Some features requested
« Reply #12 on: April 17, 2011, 07:19:22 PM »
Talking of disabled audio drivers is putting the issue wrongly.

There is no audio included in base, but a free choice between alsa and OSS.   ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: Some features requested
« Reply #13 on: April 18, 2011, 09:25:00 AM »
Juanito, script does not run.
Are there any error messages?

Quote
I think is not problem from driver because Ubuntu Kernel (2.6.32.23) supports Atheros without any problem, and TinyCore Kernel is 2.6.35.x
Tinycore uses the 2.6.33.3 kernel and I believe Atheros is suported.

Quote
But loading drivers and tools in TinyCore, RAM is frequently over 1 GiByte.  Audio drivers can be a choice to disable (not for me), but communications always are needed.
Are you mixing permanent storage and ram maybe? Loop mounted extensions (the default) use very little ram unless you've stored the extensions themselves in ram or copied them to the ram file system.

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: Some features requested
« Reply #14 on: April 18, 2011, 03:20:37 PM »

   i) Create new packages to add ChatZilla and FlashPlayer extensions to Firefox browser (to see
        YouTube videos).

there is an extension: getflash10.
Download it + load it + run it.
There is a video here how to do it. http://distro.ibiblio.org/tinycorelinux/screenshots.html
Look at it from another pc.. or in short:
-  start one time firefox
- close firefox
- start getflash10
- go to appsaudit an put Flash10.tcz as "onboot" or "ondemand"
- in appasaudit, delete getflash10
- start flash10 (if not started onboot already)
- start firefox.. and look your videos
thats it.
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed