amilo-forum.com

Everything you need to know about Amilo and Lifebook laptops by Fujitsu

Li1718 auto installation for ubuntu 32bit - Testers needed

Everything around Linux and Unix-like operating systems.

A bit more info

Postby roadrash » Tue Sep 11, 2007 6:17 pm

One of the problems i'm having seems to be with the blackist section. For some reason there seems to be a permission problem with the script not being allowed to append the /etc/modprobe.d/blacklist file with the "blacklist ath_pci" line.
Here is the section of the script where the problem is. Can you help get around this.

#blacklist madwifi
if [ -z "grep ath_pci /etc/modprobe.d/blacklist" ]; then
echo "blacklist ath_pci" >> /etc/modprobe.d/blacklist
if [ -n "lsmod |grep ath_pci" ]; then
rmmod ath_pci
fi


The other problem I have is not so much of a problem than an anoyance. I have set the wireless interface as default in the bios so it is enabled at boot up so I didn't have to manually activate it after the desktop in windows had loaded. But in linux I have to wait until the desktop has loaded and then press the network interface button to turn it on then wait again for detection of available networks. I don't know if this is because of the buttons section of the script. If it is then I can always disable it.
roadrash
 
Posts: 72
Joined: Mon Sep 03, 2007 10:37 am

Re: A bit more info

Postby damagedspline » Wed Sep 12, 2007 9:26 pm

roadrash wrote:One of the problems i'm having seems to be with the blackist section. For some reason there seems to be a permission problem with the script not being allowed to append the /etc/modprobe.d/blacklist file with the "blacklist ath_pci" line.
Here is the section of the script where the problem is. Can you help get around this.

#blacklist madwifi
if [ -z "grep ath_pci /etc/modprobe.d/blacklist" ]; then
echo "blacklist ath_pci" >> /etc/modprobe.d/blacklist
if [ -n "lsmod |grep ath_pci" ]; then
rmmod ath_pci
fi


The other problem I have is not so much of a problem than an anoyance. I have set the wireless interface as default in the bios so it is enabled at boot up so I didn't have to manually activate it after the desktop in windows had loaded. But in linux I have to wait until the desktop has loaded and then press the network interface button to turn it on then wait again for detection of available networks. I don't know if this is because of the buttons section of the script. If it is then I can always disable it.


Could you please post the result of
Code: Select all
ls -la /etc/modprobe.d/blacklist


On my laptop's bios, it is set for 'Wireless Enabled On Boot = Disabled'. I cannot force anyone for always on wireless due to powersaving.

you can create a simple a simple script to do that and put it in the autostart runlevel 5 directory.
script content should be:
Code: Select all
#!/bin/sh
echo 1 > /proc/driver/acerhk/wirelessled

when I'll have the time, I'll improve the script whether or not to set it to auto enable on boot.
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby roadrash » Thu Sep 13, 2007 12:19 am

Could you please post the result of
Code:
ls -la /etc/modprobe.d/blacklist


-rw-r--r-- 1 root root 858 2007-09-10 10:14 /etc/modprobe.d/blacklist
roadrash
 
Posts: 72
Joined: Mon Sep 03, 2007 10:37 am

Postby roadrash » Thu Sep 13, 2007 11:37 am

you can create a simple a simple script to do that and put it in the autostart runlevel 5 directory.
script content should be:
Code:

#!/bin/sh
echo 1 > /proc/driver/acerhk/wirelessled



I couldn't find anything autostart runlevel 5 but i did create a shell script and put it in /etc/init.d with a symbolic link to it in /etc/rc5.d which i believe should execute the script at runlevel 5. But it didn't work.
did i do wrong or is there something wrong with the script?
roadrash
 
Posts: 72
Joined: Mon Sep 03, 2007 10:37 am

Postby roadrash » Thu Sep 13, 2007 7:10 pm

its ok got the wireless auto start on boot now. I had to apply chmod 755 to the /etc/init.d/script and put the symlink in rc2.d not rc5.d

sorted out the permissions problem in appending the blacklist file by using:-
sudo chmod 777 /etc/init.d/blacklist

before the install to allow full read/write permissions to all. now it allows the script to change the file.

I have also created a modified version of the script as well to work on Linux mint 3.0 cassandra.
roadrash
 
Posts: 72
Joined: Mon Sep 03, 2007 10:37 am

Postby damagedspline » Mon Sep 24, 2007 6:48 am

roadrash wrote:its ok got the wireless auto start on boot now. I had to apply chmod 755 to the /etc/init.d/script and put the symlink in rc2.d not rc5.d

sorted out the permissions problem in appending the blacklist file by using:-
sudo chmod 777 /etc/init.d/blacklist

before the install to allow full read/write permissions to all. now it allows the script to change the file.

I have also created a modified version of the script as well to work on Linux mint 3.0 cassandra.


Sorry for the late response...
I've hopefully fixed the permission (not in repository yet) - by replacing the way I add lines to the blacklist file.
echo "blacklist $module" >> /etc/modprobe.d/blacklist
to
echo "blacklist $module" | sudo tee -a /etc/modprobe.d/blacklist

During the next couple of days I'll add a boot script which will allow to:
start|stop|restart|upgrade|setup|uninstall

This will be awesome since after running it once, it will check that all of the settings are ok on boot and if not fix them automagically.

If one will want to restore to a previous state, the uninstall feature can be used.

If one will want to freshen the scripts - upgrade feature can be used.
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby roadrash » Mon Sep 24, 2007 11:22 am

This will be awesome since after running it once, it will check that all of the settings are ok on boot and if not fix them automagically.

If one will want to restore to a previous state, the uninstall feature can be used.


This sounds really great and will be very useful.

Iv'e done a Linux Mint version of the Ubuntu script you wrote and posted it in the Linux Mints how to section of their forum. It works on linux mint 3.0 cassandra with very little modification except for the sound which required downloading and running of a alsaconf script to get it working. Linux mint 3.0 cassandra is basically an enahanced KDE version of Ubuntu fiesty. My post post and install guide in their forum is here if want to take a look: http://linuxmint.com/forum/viewtopic.php?t=5378 I have given credit to you damagedspline as the author of this wonderful piece of work.
The only thing i would like to see is a section in the script that asks if the user wants the wireless enabled at boot. That would save the user having to perform another task after running the scrpit.
roadrash
 
Posts: 72
Joined: Mon Sep 03, 2007 10:37 am

Postby damagedspline » Thu Sep 27, 2007 9:39 pm

roadrash wrote:Iv'e done a Linux Mint version of the Ubuntu script you wrote and posted it in the Linux Mints how to section of their forum. It works on linux mint 3.0 cassandra with very little modification except for the sound which required downloading and running of a alsaconf script to get it working. Linux mint 3.0 cassandra is basically an enahanced KDE version of Ubuntu fiesty. My post post and install guide in their forum is here if want to take a look: http://linuxmint.com/forum/viewtopic.php?t=5378 I have given credit to you damagedspline as the author of this wonderful piece of work.
The only thing i would like to see is a section in the script that asks if the user wants the wireless enabled at boot. That would save the user having to perform another task after running the scrpit.


I believe I'll integrate mint support.

anyway, new script is out with auto checking.

4 script options:
1) setup - should be run once - this will make all the required adjustments and add the script for auto checking configuration
2) start - use for auto boot checking
3) stop - does nothing
4) upgrade - upgrade and install the latest script from svn

installation instructions:
wget http://fscamiloa16xx.googlecode.com/svn ... sca16xx.sh
chmod 755 fsca16xx.sh
sudo ./fsca16xx.sh setup
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby roadrash » Tue Oct 09, 2007 9:34 pm

I'll give the Linux mint version of your new script a try when you get it finished. I have curently got the "Linux Mint 3.0 (cassandra) KDE edition" installed on my laptop. I have had everything working with the "3.1 Celina" version but it only comes with the gnome desktop so i went back to using 3.0 Celina.
roadrash
 
Posts: 72
Joined: Mon Sep 03, 2007 10:37 am

Postby damagedspline » Sat Oct 13, 2007 9:41 pm

roadrash wrote:I'll give the Linux mint version of your new script a try when you get it finished. I have curently got the "Linux Mint 3.0 (cassandra) KDE edition" installed on my laptop. I have had everything working with the "3.1 Celina" version but it only comes with the gnome desktop so i went back to using 3.0 Celina.


I tried checking the diff between the modified version in the mint forum and the current script version o I can add mint support.

I've made some structural changes to the script so I can't actually see the differences.

beside installing wifi-radar on celina and recognizing celina and cassandra as feisty, are there additional changes?
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby damagedspline » Sat Oct 13, 2007 9:47 pm

damagedspline wrote:
roadrash wrote:I'll give the Linux mint version of your new script a try when you get it finished. I have curently got the "Linux Mint 3.0 (cassandra) KDE edition" installed on my laptop. I have had everything working with the "3.1 Celina" version but it only comes with the gnome desktop so i went back to using 3.0 Celina.


I tried checking the diff between the modified version in the mint forum and the current script version in order to add mint support.

I've made some structural changes to the script so I can't actually see the differences.

beside installing wifi-radar on celina and recognizing celina and cassandra as feisty, are there additional changes?
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby roadrash » Sun Oct 14, 2007 1:00 pm

I tried checking the diff between the modified version in the mint forum and the current script version in order to add mint support.

I've made some structural changes to the script so I can't actually see the differences.

beside installing wifi-radar on celina and recognizing celina and cassandra as feisty, are there additional changes?


Those small tweaks were really all i had to do, apart from the sound didn't work. I had to put a alsaconf script into the /usr/sbin/ folder and run it to get the sound working. You might need to do something with this.
roadrash
 
Posts: 72
Joined: Mon Sep 03, 2007 10:37 am

Works on Gutsy and Amilo Li1718 but some notes

Postby PhobosK » Wed Oct 17, 2007 11:15 am

Hi,
first let me congratulate you for the good job done here. This works on Gutsy on Amilo Li1718 (with only two errors but when corrected it will be ok).
Here are my notes on this:
1. Since this is an additional script/work/program done outside the original distro i think it will be better if all things happen in /usr/local/src dir.
2. It will be good if all the staff downloaded or compiled be in one dir - for example /usr/ocal/src/fsca16xx . Now all the files and dirs are scattered in the /usr/src dir and I think this is not a good programing practice.
3. You try to copy files (the *.def) into /usr/share/hotkeys before you install the hotkeys package and i think this should be done after that (since it gives an error now).
4. For some reason the "blacklist netathr" and "blacklist sis163u" are not put in the /etc/modules.d/blacklist though they do not exist there as entries
5. The "unzip -fq" still doesn't work so it gives an error to the next stage when installing the ndiswrapper driver


That is all from me ;) Keep up the good work.
PhobosK
 
Posts: 3
Joined: Wed Oct 17, 2007 10:53 am
Location: Bulgaria

Re: Works on Gutsy and Amilo Li1718 but some notes

Postby damagedspline » Sun Oct 28, 2007 8:02 pm

PhobosK wrote:Hi,
first let me congratulate you for the good job done here. This works on Gutsy on Amilo Li1718 (with only two errors but when corrected it will be ok).
Here are my notes on this:
1. Since this is an additional script/work/program done outside the original distro i think it will be better if all things happen in /usr/local/src dir.
2. It will be good if all the staff downloaded or compiled be in one dir - for example /usr/ocal/src/fsca16xx . Now all the files and dirs are scattered in the /usr/src dir and I think this is not a good programing practice.
3. You try to copy files (the *.def) into /usr/share/hotkeys before you install the hotkeys package and i think this should be done after that (since it gives an error now).
4. For some reason the "blacklist netathr" and "blacklist sis163u" are not put in the /etc/modules.d/blacklist though they do not exist there as entries
5. The "unzip -fq" still doesn't work so it gives an error to the next stage when installing the ndiswrapper driver

That is all from me ;) Keep up the good work.


Uffff, It's been a long month. Anyway, number 1-3 have been fixed and are avail in the SVN. Number 4 and 5, I still can't figure out why it's happening...

Hopefully, in the next couple of days, I'll add the Mint flavor.
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Error: Ubuntu version is unsupported. This script will only

Postby kasketten » Mon Oct 29, 2007 2:06 pm

Hello,

I use the Ubuntu Gutsy,
and then i try to use the last created script, i get this error:

Error: Ubuntu version is unsupported. This script will only work on Ubuntu Feisty and Ubuntu Gutsy

Code: Select all
kasketten@kasketten-laptop:~/Desktop$ wget http://fscamiloa16xx.googlecode.com/svn/trunk/fsca16xx.sh
--14:15:53--  http://fscamiloa16xx.googlecode.com/svn/trunk/fsca16xx.sh
           => `fsca16xx.sh.2'
Løser fscamiloa16xx.googlecode.com... 66.102.1.82
Connecting to fscamiloa16xx.googlecode.com|66.102.1.82|:80... forbundet.
HTTP forespørgsel sendt, afventer svar... 200 OK
Længde: uspecificeret [text/plain]

    [  <=>                                ] 17.682        67.00K/s             

14:15:54 (66.96 KB/s) - `fsca16xx.sh.2' saved [17682]

kasketten@kasketten-laptop:~/Desktop$ chmod 755 fsca16xx.sh
kasketten@kasketten-laptop:~/Desktop$ sudo ./fsca16xx.sh setup
Error: Ubuntu version is unsupported. This script will only work on Ubuntu Feisty and Ubuntu Gutsy


Do you know the error?
And thanks for making it possible to access the internet from Ubuntu xD ;)

//Christian
kasketten
 
Posts: 22
Joined: Mon Oct 29, 2007 1:30 pm

PreviousNext

Return to Linux / Unix / BSD