Active Topics

 


Reply
Thread Tools
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#1
Hi, i want to share with you my customization to change the user agent in one click tapping on the Status Menu Bar and selecting one of the user agents (you'll have Firefox 6 user agent, Iphone user agent, Android user agent, Maemo (n900) default user agent. I did it becouse sometimes i need to change it manually to enter in some Wap Chats and/or mobile portals.

*** example: if you use, the live chat europe service, you are not able to see user's pictures with the default user agent becouse the server recognizes you like from a PC and resizes the pictures in extra low quality... I was not able to see user's pictures!

################################################## ##
################################################## ##
Step 1
------------------------------------------------------------------------------------
Download and install Hide User Agent
Download and install Quick-Launch
Download and install rootsh

################################################## ##
################################################## ##
Step 2
------------------------------------------------------------------------------------
Download the attachment, extract the folder CUSTOMIZATION and paste it in the N900 MyDocs folder

Open Xterminal on your N900 and paste this code
Code:
root
cp -r /home/user/Mydocs/CUSTOMIZATION/opt/HideUserAgent /opt/
chmod +rwx /opt/HideUserAgent/*
cp -r /home/user/Mydocs/CUSTOMIZATION/usr/share/applications/hildon /usr/share/applications/hildon
cp -r /home/user/Mydocs/CUSTOMIZATION/usr/share/icons/hicolor/48x48/hildon /usr/share/icons/hicolor/48x48/hildon
rm -r /home/user/Mydocs/CUSTOMIZATION
exit
close
################################################## ##
################################################## ##
Step 3
------------------------------------------------------------------------------------
Go to the Menu, open the control panel settings, open the Quick Launch Menu and start to setup the Buttons.. User Agents Shortcuts are:

Firefox User Agent
Android User Agent
Iphone User Agent
Maemo User Agent

Setup all the buttons with these links, and select the OK button to save.

################################################## ##
################################################## ##
Step 4
------------------------------------------------------------------------------------
Reboot the System and you are ready to switch the User Agent clicking in the status menu bar. All the times that you will change the user agent, a Screen Message will inform you about the current setting, the browser will be closed to apply the selected user agent. A female voice will tell you about that

Ciao

THX to the Quick Lauch Bar's creator
THX to the Hide User Agent's creator

Sorry for my bad english
Attached Images
 
Attached Files
File Type: gz CUSTOMIZATION.tar.gz (75.0 KB, 282 views)

Last edited by santiago; 2011-07-17 at 18:30.
 

The Following 16 Users Say Thank You to santiago For This Useful Post:
Posts: 1,463 | Thanked: 1,916 times | Joined on Feb 2008 @ Edmonton, AB
#2
thanks for taking the time to write out the tutorial!
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#3
Nice thing, but it's pity, that it needs Quick-Launch - I already use it for choice between fCam, HDR, Lowlight and cameraui2 (and torch ) when camera lens is opened.

I suppose that, with little modification, it can be used just by desktop shortcut or Queen Beecon Widget engine?
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Posts: 1,463 | Thanked: 1,916 times | Joined on Feb 2008 @ Edmonton, AB
#4
you could install camera lens launcher and get a menu when you open the lens cover, then you have quick launch free again...
 
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#5
Originally Posted by Estel View Post
Nice thing, but it's pity, that it needs Quick-Launch - I already use it for choice between fCam, HDR, Lowlight and cameraui2 (and torch ) when camera lens is opened.

I suppose that, with little modification, it can be used just by desktop shortcut or Queen Beecon Widget engine?
yes, you can use it like desk shortcuts... Open with a text editor, from /usr/share/applications/hildon/ the files fox.desktop, iphone.desktop, maemo.desktop, android.dektop and delete from them the line

Code:
NoDisplay=true
Save them, and you will have the shortcuts... If you want to use them with queenbecon, you have the scripts on

/opt/HideUserAgent

they are

android, firefox, maemo, iphone


Last edited by santiago; 2011-07-19 at 12:17.
 

The Following User Says Thank You to santiago For This Useful Post:
Posts: 50 | Thanked: 14 times | Joined on Mar 2011
#6
i just got a probleme with your method to change the useragents, siantago!

first one, change in the status bar menu not modify the useragent of microb when i'm surfing. and this, for the 4s U.A (realize the teste on this website:Whats My User Agent). i have the same U.A at the begining, it never changed.

2nd one, when i want to remove HIDEUSERAGENT (rootsh or app manage) i can't. try to remove hideuseragent by xTerm give me the follows results:

"
/home/user # apt-get remove --purge hideuseragent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
hideuseragent*
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
After this operation, 119kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 29793 files and directories currently installed.)
Removing hideuseragent ...
/var/lib/dpkg/info/hideuseragent.prerm: line 4: /opt/HideUserAgent/MicroBUserAgent.sh: not found
dpkg: error processing hideuseragent (--purge):
subprocess pre-removal script returned error exit status 127
/var/lib/dpkg/info/hideuseragent.postinst: line 6: /opt/HideUserAgent/MicroBUserAgent.sh: not found
Errors were encountered while processing:
hideuseragent
E: Sub-process /usr/bin/dpkg returned an error code (1)


plz can you tell me what is wrong and what i have to do to solve this probleme?

thnx
 
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#7
Originally Posted by kayamagan View Post
i just got a probleme with your method to change the useragents, siantago!

first one, change in the status bar menu not modify the useragent of microb when i'm surfing. and this, for the 4s U.A (realize the teste on this website:Whats My User Agent). i have the same U.A at the begining, it never changed.

2nd one, when i want to remove HIDEUSERAGENT (rootsh or app manage) i can't. try to remove hideuseragent by xTerm give me the follows results:

"
/home/user # apt-get remove --purge hideuseragent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
hideuseragent*
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
After this operation, 119kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 29793 files and directories currently installed.)
Removing hideuseragent ...
/var/lib/dpkg/info/hideuseragent.prerm: line 4: /opt/HideUserAgent/MicroBUserAgent.sh: not found
dpkg: error processing hideuseragent (--purge):
subprocess pre-removal script returned error exit status 127
/var/lib/dpkg/info/hideuseragent.postinst: line 6: /opt/HideUserAgent/MicroBUserAgent.sh: not found
Errors were encountered while processing:
hideuseragent
E: Sub-process /usr/bin/dpkg returned an error code (1)


plz can you tell me what is wrong and what i have to do to solve this probleme?

thnx
hi, try manually

Open xterm, paste all of this
Code:
root
rm -r /opt/HideUserAgent
rm -r /var/lib/dpkg/info/hideuseragent.*
dpkg -r hideuseragent
close
close
 
Posts: 50 | Thanked: 14 times | Joined on Mar 2011
#8
Originally Posted by santiago View Post
hi, try manually

Open xterm, paste all of this
Code:
root
rm -r /opt/HideUserAgent
rm -r /var/lib/dpkg/info/hideuseragent.*
dpkg -r hideuseragent
close
close
but below this is the result:

/home/user # rm -r /opt/HideUserAgent
/home/user # rm -r /var/lib/dpkg/HideUserAgent.*
rm: cannot remove '/var/lib/dpkg/HideUserAgent.*': No such file or directory

/home/user # dpkg -r hideuseragent
(Reading database ... 29813 files and directories currently installed.)
Removing hideuseragent ...
/var/lib/dpkg/info/hideuseragent.prerm: line 4: /opt/HideUserAgent/MicroBUserAgent.sh: not found
dpkg: error processing hideuseragent (--remove):
subprocess pre-removal script returned error exit status 127
chmod: /opt/HideUserAgent/MicroBUserAgent.sh: No such file or directory
/var/lib/dpkg/info/hideuseragent.postinst: line 6: /opt/HideUserAgent/MicroBUserAgent.sh: not found
chown: /opt/HideUserAgent/UA.txt: No such file or directory
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
hideuseragent
/home/user #

What's wrong ?
 

The Following User Says Thank You to kayamagan For This Useful Post:
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#9
Originally Posted by kayamagan View Post
but below this is the result:

/home/user # rm -r /opt/HideUserAgent
/home/user # rm -r /var/lib/dpkg/HideUserAgent.*
rm: cannot remove '/var/lib/dpkg/HideUserAgent.*': No such file or directory

/home/user # dpkg -r hideuseragent
(Reading database ... 29813 files and directories currently installed.)
Removing hideuseragent ...
/var/lib/dpkg/info/hideuseragent.prerm: line 4: /opt/HideUserAgent/MicroBUserAgent.sh: not found
dpkg: error processing hideuseragent (--remove):
subprocess pre-removal script returned error exit status 127
chmod: /opt/HideUserAgent/MicroBUserAgent.sh: No such file or directory
/var/lib/dpkg/info/hideuseragent.postinst: line 6: /opt/HideUserAgent/MicroBUserAgent.sh: not found
chown: /opt/HideUserAgent/UA.txt: No such file or directory
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
hideuseragent
/home/user #

What's wrong ?

is rm -r /var/lib/dpkg/info/hideuseragent.*

after all of this, follow the 1st post, i had the same kind of problem but i resolved with cp and chmod. Follow the 1st pos
 

The Following User Says Thank You to santiago For This Useful Post:
Posts: 50 | Thanked: 14 times | Joined on Mar 2011
#10
i have spend all my day to vanilla my n900 (du to this trouble).
but now i got a n900, faster.... and the good new is that your feature works!

plz how to remove the humain voice? should i just have to delete it from his folder?
thx
 

The Following User Says Thank You to kayamagan For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 20:25.