Showing posts with label Sofware problems. Show all posts
Showing posts with label Sofware problems. Show all posts

Sunday, April 09, 2023

Copy lineage OS to phone to install from there

 I was having problems installing lineage OS using the sideload method, so I decided to use the copy and install method.

The steps where:

  1.  Set the phone in recovery mode with TRW
  2. Copy the lineageOs zip to tmp with the command  adb push "lineage-14.1-20170921-nightly-oneplus2-signed.zip" /tmp
  3. Copy the  google apps adb push "open_gapps-arm64-7.1-nano-20170922.zip" /tmp
  4. In  TRW 
    1. Select Install
    2. Navigate to /tmp and select the file lineage-14.1-20170921-nightly-oneplus2-signed.zip
    3. Select additional zip and select  open_gapps-arm64-7.1-nano-20170922.zip
    4. Press install
  5. Reboot

On reboot I got the phone stuck because no SIM was present, the wizard kept crashing, I needed to install a SIM to pass this point.

Then I got the message "Sign in with a google account that was previously synced on this device", I logged in with the original google account, to validate the phone had not been stolen, but after that I could select a new google account to use in the phone

 


Saturday, June 06, 2020

Update Lineage Os in a oneplus 2

The instructions posted here in the Lineage OS web site regarding the update of oneplus do not work for me, I can't get the command adb reboot sideload to work, it simply reboots my phone.
So these are the steps I took to update my phone to the latest version.
    1. Restart phone in recovery mode:
        power + volume down (will also take screenshot, just wait)
     or
        adb reboot recovery
    2. In TRW select Advanced > ADB sideload > slide to start sideloading
    3. Run command
    adb sideload .\lineage-17.1-20200601-nightly-oneplus2-signed.zip
wait...takes some time, you should see progress indicator
    4. In TRW select ADB sideload and run command
adb sideload .\open_gapps-arm64-10.0-nano-20200530.zip
    5.Reboot.. Wait a long time


Thursday, January 07, 2016

Enable unsigned plugins in firefox

The latest version of Firefox (43.0.1) disables all unsigned plugins, to be able to allow unsigned plugins to run edit the setting:
xpinstall.signatures.required
Set it it false.
The suggestion was found in the forum https://support.mozilla.org/en-US/questions/1078339

Sunday, September 13, 2015

Virtual box and ubuntu

I was trying to install Ubuntu 15.04 (ubuntu-15.04-desktop-amd64.iso) as a guest system on Virtual box 5.0.0 running on a macOS host system.
The problem I was facing was the install crashing and not able to finish. Looking I found a blog, the solution that worked for me was :
Disabling "Nested Paging" in Setting->System->Acceleration allows to start the system.

Saturday, February 02, 2013

thunderbird signin problem

certificate problem
Could not verify this certificate for an unknown reason

Solution, check the certification autority->Edit trust and possibility to:
  •  this certificate can identify websites
  • this certificate can identify mail users

Burning an DMG into a USB drive using macOS X snow leopard

To burn a dmg to a usb drive, you only have to open Disk utility Select the destination partition or the origin image, right click a choose restore, then you will be lead to a dialog window were you can specify the origin and destination of the restore. Then click restore and you are done. Simple right? But when thing simply do not work? So I had just clicked restore and I see the message:
So I need to scan the image? Easy, in Disk utility go to Image->Scan image for restore... . Select the image you want to scan and click scan. Insert the administrator password and you are all done, right? Wrong, I got this very useful message:
What do you mean, "invalid argument" ??? I'm not using command like this is a freaking GUI!!! You should figure what arguments are to be used! Oh well, lets see the log file for some info:
And the log file says the problem was "invalid argument"! Great! Very useful! Google time.... After a bit of search I came to the website and there was a comment:
So... Snow leopard cannot scan a read/write image? Ok, sounds we are back in the right track, lets convert this sucker. To convert an image go to the Disk utility and select Images->Convert... . You get a window asking for you to select the original image, and then you are let to the window with the destination options, make sure you select the image format to read-only:
And wait... After that is done, you still need to scan the image, in Disk utility go to Image->Scan image for restore... , This time it is working:
And.... Worked!
So now I'm ready to burn the image into a USB drive... The thing I actually want to do. So I right click on the destination partition, and select Restore:
Then I'm back to the dialog where I have to select restore image and destination.
I press restore and this time I'm successful.

One more thing...

Another thing, apparently the destination partition has to be a "Mac OS Extended (Journaled)", and the partition table has to be "GUID Partition Table". The partition type will be asked of you by the Disk utility when you create the partition, but for the partition type, you have to click the button "Option..." and then select the GUID partition type:

Wednesday, March 21, 2012

SvnX hurdles

I was having 1 problem common to svn and svnx. The problem was the message: "Killed by signal 15."

I found out that this was something that happens for svn > 1.6.6.

The solution according to old.nabble.com is to add the option -p to the ssh command in your svn configuration file ~/.subversion/config

The other problems was /usr/bin/xauth: error in locking authority file .Xauthority this got solved by adding the option -x

My line in ~/.subversion/config is now:
ssh = $SVN_SSH ssh -o ControlMaster=no -q -x

Tuesday, March 06, 2012

regexp and emacs

You can test your regular expression in emacs by activating the mode regexp-builder.

 Note: the regexp-builder by default will use the lisp syntax, to use the one that emacs use in replace-regexp command you need to change the syntax mode using the command reb-change-syntax, use the value string.

 Another nice way to test your regexp is in this website http://gskinner.com/RegExr/

Wednesday, June 01, 2011

Export RSS fedds from Mac Mail

MacOS comes with a command line tool pubsub to access the RSS feeds.
Some interesting commands are:
  • Get list of clients:
    pubsub list clients:
  • Get list of RSS feeds from client com.apple.mail:
    pubsub list client com.apple.mail
  • Get only the URLs:
    pubsub list client com.apple.mail | cut -f3
Update: use background for the commands

Friday, May 27, 2011

Hide Dock Icon for an application

To instruct an application to hide the icon from the dock, you need to edit the file Info.plist, located in application.app/Contents.
Add the code
<key>LSUIElement</key> <string>1</string>

Tuesday, January 11, 2011

Global shortucut for opening new Finder window

A shortcut I always used heavily in windows was the win-e to open a explorer windows.
In Mac OS this shortcut does not exist globally.
Searching on google you get many suggestions, but all of them are in the form:
Select Finder and choose "New window". DUHHH!!
I don't like this solution because is a 2 step thing that is something I want to avoid.
Finnaly I found in this this site http://contented.qolc.net/articles/osx-global-shortcut-key-new-finder-window a good solution using the services that will allow for a global, single shortcut to open a new finder window (plus: you can tune the script to open the window in a selected location)

The service I created can be found here.

Some of the 2 step solution are interesting, so I leave here some notable solutions:
  1. Use of option-command-space that will open a search window, that is, in itself a finder window.
  2. Use ctrl-f3, this will move the focus to the Dock, pressing return will sellect the finder, because this is always the first application in the Dock.

Saturday, January 08, 2011

Remapping keys in linux

My problem:

I got a very crappy PS2 to USB cable, and when I use the mouse scroll, from time to time a extra mouse key press was sent (key 9). This was not a problem in most of the places, except in firefox where it would trigger a back in history when I scrolled up (very annoying).
I've changed all the firefox preferences in about:config in mousewheel.* to only scroll (action=0), but I was always getting the back in scroll up. (about:config information here.)

Diagnosis:

To figure out what was the problem I used xev That will print to the terminal the events occurred in the small x window created by the program. Here is the problem I was having, the log is from me scrolling down, you can see at some point the keys sent are 9 and 8:
ButtonPress event, serial 40, synthetic NO, window 0x3800001,
    root 0xb6, subw 0x0, time 747353, (40,101), root:(1358,514),
    state 0x10, button 4, same_screen YES
ButtonRelease event, serial 40, synthetic NO, window 0x3800001,
    root 0xb6, subw 0x0, time 747353, (40,101), root:(1358,514),
    state 0x810, button 4, same_screen YES
MotionNotify event, serial 40, synthetic NO, window 0x3800001,
    root 0xb6, subw 0x0, time 747449, (40,102), root:(1358,515),
    state 0x10, is_hint 0, same_screen YES
ButtonRelease event, serial 40, synthetic NO, window 0x3800001,
    root 0xb6, subw 0x0, time 747449, (40,102), root:(1358,515),
    state 0x10, button 8, same_screen YES
ButtonRelease event, serial 40, synthetic NO, window 0x3800001,
    root 0xb6, subw 0x0, time 747449, (40,102), root:(1358,515),
    state 0x10, button 9, same_screen YES
MotionNotify event, serial 40, synthetic NO, window 0x3800001,
    root 0xb6, subw 0x0, time 747553, (40,102), root:(1358,515),
    state 0x10, is_hint 0, same_screen YES
ButtonPress event, serial 40, synthetic NO, window 0x3800001,
    root 0xb6, subw 0x0, time 747553, (40,102), root:(1358,515),
    state 0x10, button 8, same_screen YES
ButtonPress event, serial 40, synthetic NO, window 0x3800001,
    root 0xb6, subw 0x0, time 747553, (40,102), root:(1358,515),
    state 0x10, button 9, same_screen YES
ButtonPress event, serial 40, synthetic NO, window 0x3800001,
    root 0xb6, subw 0x0, time 747553, (40,102), root:(1358,515),
    state 0x10, button 4, same_screen YES
As my mouse only has 2 buttons and a scroll wheel, I changed the mouse mapping to disable all the other buttons (buttons above 5 are set to button 0). The command is:
xmodmap -e "pointer = 1 2 3 4 5 0 0 0 0 0 0 0 0 0 "
You can check what mapping you are using by doing: xmodmap -pp In my case, after changing the mapping I get:
# xmodmap -pp
There are 14 pointer buttons defined.

Physical        Button
 Button          Code
    1              1
    2              2
    3              3
    4              4
    5              5
    6              0
    7              0
    8              0
    9              0
   10              0
   11              0
   12              0
   13              0
   14              0
To return to the default mapping you can do : # xmodmap -e "pointer = default" And check:
# xmodmap -pp
There are 14 pointer buttons defined.

Physical        Button
 Button          Code
    1              1
    2              2
    3              3
    4              4
    5              5
    6              6
    7              7
    8              8
    9              9
   10             10
   11             11
   12             12
   13             13
   14             14
To make this change permanent you just need to create a file ~/.Xmodmap with the content:
pointer = 1 2 3 4 5 0 0 0 0 0 0 0 0 0
You can check the correctness of your file by doing xmodmap ~/.Xmodmap and check if the mapping was changed correctly.

Sunday, September 26, 2010

Rotate pictures in Mac OS X

Apparently rotate picture was not deemed to be a default action... Fortunately there are 3 ways of Mac OS X to rotate your pictures:
First solution (Stupid)
  • Create a folder and associate the rotate action desire to it... When you drop images inside this folder they will be automatically converted and placed inside yet another folder!
Second solution(Too much work)
  • Open file in preview, rotate image and save.
Third (even more work but you only have to do it once)
  1. Create a service to rotate images:
  2. Open Automator
  3. Chose service
  4. Search for rotate image action and drag it to the action list.
  5. Automator will ask if you want to also add the action of create a copy. Sounds good, but I did not find the option to create copy in current folder, so I ditched the copy action
  6. Chose which side you want to rotate to: left, right or 180º.
  7. Save and you're done, now you will have rotate image in the services menu.
You can find the here Rotate Right and Rotate Left. Just extract the files into $HOME/Library/Services/ and the service will be available when you select an image.

Bonus: Resize images

Friday, November 23, 2007

gl over VNC

Problem:
When I need to start anything that uses gl I get this message " Xlib: extension "GLX" missing on display "

After some search and trying RealVNC 4.0-11.el4, thightVNC 1.3.9-1.el4.rf and TurboVNC 0.3.3 I manage to solve the problem with xf4vnc.

How I did it:
After installing the TurboVNC I compile the xf4vnc that placed the binary Xvnc in /usr/X11R6/bin/Xvnc while the Xvnc from Turbovnc was in /usr/local/bin/Xvnc.
The script vncserver expected the the Xvnc in /usr/local/bin/ , so I changed the name of the Xvnc from the Turbovnc:

mv /usr/local/bin/Xvnc /usr/local/bin/XvncTurbo

and then created a sim link to the Xvnc from xf4vnc:

ln -s /usr/X11R6/bin/Xvnc /usr/local/bin/Xvnc

And now it works...