Ok, I have a new phone SE X8, because my LG Arena is being repaired (hopefully). This one has Android OS. First - I struggled to update Android trough Wine and in the end, I needed to use my virtual windows to do so. And it was very annoying, because I needed to manually load the usb from the top menu of the machine. Very stupid. Anyway, now it's updated.
My next problem was how to install anything without a Google account. Of course, I have Gmail account, it's not the point. My problem is that I don't see ANY reason to connect my gmail account with my phone, since phones are easily lost or stolen and I really don't want my gmail account falling into wrong hands. Not that I have very sensitive information in it, I try to delete such stuff immediately. But still, this is my default email and I really don't want it jeopardized.
My other problem is that your license agreement with Android market involves agreement that Google has the right to REMOVE any application from YOUR phone that it finds bad for you. In any way. That's obviously wrong and I would never agree to this provided I have the choice.
Well, it turned out that I actually have that choice.
So to install apps without Market:
0. From your phone settings menu, choose "Applications" -> Unknown sources (allow apps which are not from Market) -> Allow. (source)
1. Find sites with apps you can download without barcodes or other Google shit. Good start is: androidfreeware.org and http://google-androids.ru or http://www.brothersoft.com/mobile and http://getandroidstuff.com/
2. Download whatever you like. Remember that those apps were not checked by the careful eye of Google, so do it with caution and check comments and so on to be sure the app is safe. And don't download anything connected with financial stuff.
3. Now that you have all the apps, you need an android file manager to install them on you phone. How to install it without market? Easily!
4. Connect your phone to Internet using wireless or gprs or 3g or whatever.
5. Open default browser, type one of the urls above and download a file manager. When the download is complete, click/tap over the file (in the download window) and it will ask you whether to install. Say YEAH and now you have a file manager.
6. Use your newly installed file manager to install all the other apps that you transfered to a folder on your phone using USB cable (or bluetooth).
7. You can avoid the use of computer if you're a fan of browsing trough your phone - simply connect to wireless (or cheap net) and browse trough those sites with your default browser. Download whatever you like and when the download is complete choose "install". And that's it.
Now you can download and install whatever you like without the annoying interference of Market. Just don't forget that apps on Market are generally safer than other sources. And if you "root" your phone, Google probably won't be able to remove your apps. But I really don't want to give my gmail account so I prefer to do it this way.
As to my X8, I actually like it, except for the lousy camera without flash, but otherwise, it's quite nice phone.
четвъртък, 30 декември 2010 г.
четвъртък, 23 декември 2010 г.
Script to find and replace text in multiples files
Ok, I wanted to find a way to edit multiple files (mostly html files) for my site, finding and replacing certain text in them. Here's my progress so far. Please, don't laugh at my efforts, I'm not a bash programmer, I know how to do basic stuff, but this is not my job, not even my hobby. So, if there is simpler and more obvious way - just let me know.
I used following resources: site 1 and site 2 to produce following script:
#!/bin/bash
for fl in *.txt; do
mv $fl $fl.old
sed "s/$1/$2/g" $fl.old > $fl
rm -f $fl.old
done
What it does is to look for a certain string $1 in all the txt files in the directory and to replace it with $2, where you start the script with
sh name.sh $1 $2
where you put the strings $1 and $2 in ' '.
It works beautifully and replaces the strings as it's supposed to. My major
problem with it is that the strings aren't supposed to include "/" in them. Which when you edit an html file is bad. If you want to use that character, you need to "escape" it with "\" meaning that '</div>' will have to become '<\/div>'. I wanted to make a script that will do that automatically, but so far without success. But still, you can easily replace a line with other one or two using this script. And that was the point so. Cheers.
P.S. For more useful info on "sed" look here.
I used following resources: site 1 and site 2 to produce following script:
#!/bin/bash
for fl in *.txt; do
mv $fl $fl.old
sed "s/$1/$2/g" $fl.old > $fl
rm -f $fl.old
done
What it does is to look for a certain string $1 in all the txt files in the directory and to replace it with $2, where you start the script with
sh name.sh $1 $2
where you put the strings $1 and $2 in ' '.
It works beautifully and replaces the strings as it's supposed to. My major
problem with it is that the strings aren't supposed to include "/" in them. Which when you edit an html file is bad. If you want to use that character, you need to "escape" it with "\" meaning that '</div>' will have to become '<\/div>'. I wanted to make a script that will do that automatically, but so far without success. But still, you can easily replace a line with other one or two using this script. And that was the point so. Cheers.
P.S. For more useful info on "sed" look here.
неделя, 19 декември 2010 г.
How to use Alcatel One Touch X220L 3G modem in Linux
Thanks to the many and extremely unnerving problems with my Internet connection, we decided to get a 3G/HSPA USB modem, for backup. Of course, all the installation files are for Windows, so I had to Google for a solution. I found this Ubuntu HOWTO that helped me connect to Internet with the USB device.
Without getting in details, here's what I did:
Plug-in your device and type:
>$sudo lsusb
Look for a line looking like this:
>$Bus 001 Device 003: ID 1bbb:f000 T & A Mobile Phones
If you have "f000" part, then you need to install a program that will switch it to "0000".
1. Install usb_modeswitch. Sabayon Linux had it in Entropy, but you may need to download it.
2. Configure usb_modeswitch ( >$sudo nano /etc/usb_modeswitch.conf ) adding the lines:
########################################################
# Alcatel X220L
DefaultVendor= 0x1bbb
DefaultProduct= 0xf000
TargetVendor= 0x1bbb
TargetProduct= 0x0000
# only for reference
# MessageEndpoint=0x01
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
########################################################
Save and plug the device again.
3. >$sudo usb_modeswitch
4. Look at your syslog ($dmesg|tail), you should now see:
"..... Direct-Access USBModem MMC Storage 2.31 PQ: 0 ANSI: 2 "
5. Start the driver for the modem
>$sudo modprobe usbserial vendor=0x1bbb product=0x0000
In >$dmesg|tail you should now see:
Note the last number where your usb puts the modem, in my case, it was USB4.
To check it, just enter:
>$screen /dev/ttyUSB4
and at the prompt, ask the modem to identify itself typing:
>ATI
The answer should be:
>Manufacturer: TCT Mobile International Limited
Model: HSPA Data Card
Revision: C1111000
IMEI: 352079030611766
+GCAP: +CGSM,+DS,+ES
If you want to automate this, you can add the rules with >$sudo nano /etc/udev/rules.d/50-alcatel.rules adding
SUBSYSTEM=="usb", SYSFS{idProduct}=="f000", SYSFS{idVendor}=="1bbb", RUN+="/usr/sbin/usb_modeswitch"
SUBSYSTEM=="usb", SYSFS{idProduct}=="0000", SYSFS{idVendor}=="1bbb", RUN+="/sbin/modprobe usbserial vendor=0x1bbb product=0x0000"
Check where usb_modeswitch is, mine was in "/usr/sbin", but if it's not there, use the appropriate directory.
Connecting the modem with wvdial:
1- Remove the PIN of your SIM
2- >sudo wvdial
But first,
>$sudo gedit /etc/wvdial.conf - here is my file, which works with VIVACOM Bulgaria, for TIM Italy, check the source.
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet.vivacom.bg"
Modem = /dev/ttyUSB4
Check Def Route = on
Phone = *99#
Username = VIVACOM
Password = VIVACOM
Modem Type = Analog Modem
Stupid Mode = 1
Baud = 460800
New PPPD = yes
ISDN = 0
AutoDNS = 1
You should change init3 and User and Password with those given by your providers.
Once you created the file, just run wvdial (or in my case, >$sudo wvdial...) and that's it. You'll receive some messages but after you see you DNS, everything is ready for browsing!
Enjoy!
Without getting in details, here's what I did:
Plug-in your device and type:
>$sudo lsusb
Look for a line looking like this:
>$Bus 001 Device 003: ID 1bbb:f000 T & A Mobile Phones
If you have "f000" part, then you need to install a program that will switch it to "0000".
1. Install usb_modeswitch. Sabayon Linux had it in Entropy, but you may need to download it.
2. Configure usb_modeswitch ( >$sudo nano /etc/usb_modeswitch.conf ) adding the lines:
########################################################
# Alcatel X220L
DefaultVendor= 0x1bbb
DefaultProduct= 0xf000
TargetVendor= 0x1bbb
TargetProduct= 0x0000
# only for reference
# MessageEndpoint=0x01
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
########################################################
Save and plug the device again.
3. >$sudo usb_modeswitch
4. Look at your syslog ($dmesg|tail), you should now see:
"..... Direct-Access USBModem MMC Storage 2.31 PQ: 0 ANSI: 2 "
5. Start the driver for the modem
>$sudo modprobe usbserial vendor=0x1bbb product=0x0000
In >$dmesg|tail you should now see:
Jul 11 10:24:16 eee-yard kernel: [ 100.388222] usb 1-2: configuration #1 chosen from 1 choice Jul 11 10:24:16 eee-yard kernel: [ 100.390492] usbserial_generic 1-2:1.0: generic converter detected Jul 11 10:24:16 eee-yard kernel: [ 100.390658] usb 1-2: generic converter now attached to ttyUSB0 Jul 11 10:24:16 eee-yard kernel: [ 100.390952] usbserial_generic 1-2:1.1: generic converter detected Jul 11 10:24:16 eee-yard kernel: [ 100.391068] usb 1-2: generic converter now attached to ttyUSB1 Jul 11 10:24:16 eee-yard kernel: [ 100.394230] scsi4 : SCSI emulation for USB Mass Storage devices Jul 11 10:24:16 eee-yard kernel: [ 100.395689] usbserial_generic 1-2:1.3: generic converter detected Jul 11 10:24:16 eee-yard kernel: [ 100.395847] usb 1-2: generic converter now attached to ttyUSB2
To check it, just enter:
>$screen /dev/ttyUSB4
and at the prompt, ask the modem to identify itself typing:
>ATI
The answer should be:
>Manufacturer: TCT Mobile International Limited
Model: HSPA Data Card
Revision: C1111000
IMEI: 352079030611766
+GCAP: +CGSM,+DS,+ES
If you want to automate this, you can add the rules with >$sudo nano /etc/udev/rules.d/50-alcatel.rules adding
SUBSYSTEM=="usb", SYSFS{idProduct}=="f000", SYSFS{idVendor}=="1bbb", RUN+="/usr/sbin/usb_modeswitch"
SUBSYSTEM=="usb", SYSFS{idProduct}=="0000", SYSFS{idVendor}=="1bbb", RUN+="/sbin/modprobe usbserial vendor=0x1bbb product=0x0000"
Check where usb_modeswitch is, mine was in "/usr/sbin", but if it's not there, use the appropriate directory.
Connecting the modem with wvdial:
1- Remove the PIN of your SIM
2- >sudo wvdial
But first,
>$sudo gedit /etc/wvdial.conf - here is my file, which works with VIVACOM Bulgaria, for TIM Italy, check the source.
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet.vivacom.bg"
Modem = /dev/ttyUSB4
Check Def Route = on
Phone = *99#
Username = VIVACOM
Password = VIVACOM
Modem Type = Analog Modem
Stupid Mode = 1
Baud = 460800
New PPPD = yes
ISDN = 0
AutoDNS = 1
You should change init3 and User and Password with those given by your providers.
Once you created the file, just run wvdial (or in my case, >$sudo wvdial...) and that's it. You'll receive some messages but after you see you DNS, everything is ready for browsing!
Enjoy!
Абонамент за:
Публикации (Atom)