2013
08.28

Under Windows the administrator has not super power such as root under linux.

To rename or modify a file, the good right is needed even if you are administrator. To modify the right, you must be owner or has already writing rights.

All follow commands are launch in cmd ran as administrator. If your explorer is down you can see the previous post. In another case you can find cmd.exe (c:\windows\system32\cmd.exe), right click on icon and click run as administrator.

Try to rename the calculator :

C:\Windows\system32>ren calc.exe calc2.exe
Access denied.

See the program calc in details.

C:\Windows\system32>dir /Q calc*
Le volume dans le lecteur C n'a pas de nom.
Le numéro de série du volume est 8C90-057B
Répertoire de C:\Windows\system32
20/11/2010 23:29 776 192 NT SERVICE\TrustedInstacalc.exe
1 fichier(s) 776 192 octets
0 Rép(s) 3 083 681 792 octets libres
C:\Windows\system32>icacls calc*
calc.exe BUILTIN\Administrateurs:(RX)
AUTORITE NT\Système:(RX)
BUILTIN\Utilisateurs:(RX)
NT SERVICE\TrustedInstaller:(F)
1 fichiers correctement traités ; échec du traitement de 0 fichiers

The administrators have the read and execution right and the owner is TrustedInstaller. Yes, Microsoft has more right than you !

We try to become the file owner :

C:\Windows\system32>takeown /F calc.exe

We can change the right :

C:\Windows\system32>icacls calc.exe /grant:r Administrateurs:(F)

We can rename the file.

C:\Windows\system32>ren calc.exe calc2.exe

We obtain the follow results :

C:\Windows\system32>dir /Q calc*
 Le volume dans le lecteur C n'a pas de nom.
Le numéro de série du volume est 8C90-057B
Répertoire de C:\Windows\system32
20/11/2010 23:29 776 192 toto-PC\toto calc2.exe
1 fichier(s) 776 192 octets
0 Rép(s) 3 083 681 792 octets libres
C:\Windows\system32>icacls calc*
calc2.exe BUILTIN\Administrateurs:(F)
AUTORITE NT\Système:(RX)
BUILTIN\Utilisateurs:(RX)
NT SERVICE\TrustedInstaller:(F)
1 fichiers correctement traités ; échec du traitement de 0 fichiers

We are owner and we have full control of file.

Now we revert our modifications :

C:\Windows\system32>ren calc2.exe calc.exe
C:\Windows\system32>icacls calc.exe /setowner "NT Service\TrustedInstaller"
C:\Windows\system32>icacls calc.exe /grant:r Administrateurs:(RX)

We see the same the beginning state.

C:\Windows\system32>dir /Q calc*
Le volume dans le lecteur C n'a pas de nom.
Le numéro de série du volume est 8C90-057B
Répertoire de C:\Windows\system32
20/11/2010 23:29 776 192 NT SERVICE\TrustedInstacalc.exe
1 fichier(s) 776 192 octets
0 Rép(s) 3 083 681 792 octets libres
C:\Windows\system32>icacls calc*
calc.exe BUILTIN\Administrateurs:(RX)
AUTORITE NT\Système:(RX)
BUILTIN\Utilisateurs:(RX)
NT SERVICE\TrustedInstaller:(F)
1 fichiers correctement traités ; échec du traitement de 0 fichiers

right2

2013
08.28

We will see how to obtain shell with administrator right when explorer is down.

For do that, you need powershell. If you are using classical cmd  you can write powershell if it installed.

The magic command line is : 

start-process powershell -verb runas

 or 

start-process cmd -verb runas 

  The UAC confirmation will appear and you get administration right.

That’s all.

shell

2013
07.04

Screenshot_2013-06-07-18-31-03

Your very old HTC desire HD is not dead !

To prove that, I present the  project jelly time from XDA forum. The goal is to run the android version 4.2 on your HTC desire HD without sens framework.

I have installed jelly time a few days ago, and all feature are working perfectly (head phones with all buttons, the camera HD recording, …) on r10.

Drawback :

  • Flash player is not updated for this version and the last stills bugy
  • Google chrom is slow, I recommend Firfox
  • We have not the beautifully weather animation on lock screen.
  • I have lost the usefully news widget.
  • The search button launches Google Now instead a stupid search bar in application menu

Advantages :

  • You could update the unmaintained application from android 2.3 such as opera, openvpn, etc.
  • The background data could be disabled, many application keep sleeping when you connect the phone to the internet
  • The data consumption is more complete
  • The notification menu has button tu make some action like call or repsond on sms or shutdown the alarm clock.
  • We can add many widget on lock screen.

To conclude this version on android is fully working on this device and add some interesting features without battery draining.
Update : Taktik 4.4.2 is mode efficient thant Jelly Time http://forum.xda-developers.com/showthread.php?t=2525906 Have fun!

2013
06.04

Ubuntu 13.04 is out. But sommes features gone out with this release. For example, when you press a letter, it launch an index search or tree representation of your folder was disappear in side bar.

Fortunately, there is exists an old version patched by SolusOS to find old habits again.

To do that you can install this version with following lines.

sudo add-apt-repository ppa:webupd8team/experiments

sudo apt-get update
sudo apt-get dist-upgrade
killall nautilus

source : http://www.webupd8.org/2013/04/get-nautilus-34-features-back-in-ubuntu.html

2013
04.24

My mac book pro has near 5 year. Despite this age , I curse my slow computer. Chrome takes 10 seconds to launch and I can take a coffee while keynote loading.

macbook2

I have see a advertise at korben blog which talk about SSD at 100€ for 240 GB. My choice will be a OCZ Vertex Plus at 120€. Even if it has somes issues.

SSD

 

The first problem is to transfert 300GB in 240GB. I have used carbon copy cloner. This software is easy and it worked at first reboot. After the replacement of hard drive, the Macbook pro is looking for the old hard drive and this take a time. The solution is alt+cmd+P+R to reset the PRAM.

I followed this recommandations  :

  • Disable the hibernation :
    sudo pmset -a hibernatemode 0
    sudo rm /var/vm/sleepimage
  • Enable  trim instruction help with trim enabler   (the OS can inform the free sector to the drive)
  • Enable  the flag noatime. Avoid update the file timestamp unnecessary (see the first link)
  • Disable sudden sensor action.
  •  sudo pmset -a sms 0

And now, it is the happiness. My computer is very fast !

Let’s hope that work for long time !

2010
06.29

Cette clef wifi reconnus par personne utilise en fait un chip Ralinktech 3070 (pas un 2870 comme on pourrait lire à certains endroits – Beaucoup de bidouillage et autres pour rien 🙁 ) Vous téléchargez le module correspondant chez : http://www.mediatek.com/_en/07_downloads/01_windows.php?sn=501

Modifier le fichier common/rtusb_dev_id.c en ajoutant la ligne a coté des autres

{USB_DEVICE(0x050D,0x935B)}, /* Belkin F6D4050 v2 */

à la ligne 102 par exemple. Vérifiez que dans le fichier os/linux/config.mk le wpa supplicant est bien à y.

# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

Renommer les deux fichiers RT2870STA.dat et RT2870STACard.dat en RT3070STA.dat et RT3070STACard.dat

Mon archive modifiée dpo_rt3070_linuxsta_v2.3.0.4_20100604mod.tgz.

puis make et sudo make install Comme les dev on bien mis leur moufle avant de coder il est possible qu’il essaye d’écrire sur le / Vous pouvez les copier ici

/lib/modules/`uname -r`/kernel/drivers/net/wireless

et ici

 /lib/modules/`uname -r`/kernel/drivers/staging/rt3070

Vous pouvez ajouter cela

sudo modprobe -r rt3070sta
sudo insmod /lib/modules/`uname -r`/kernel/drivers/net/wireless/rt3070sta.ko

Et même créer un fichier pour udev /etc/udev/rules.d/71-f6d4050v2.rules

# UDEV-Rule for f6d4050v2 ID 050d:935b
SUBSYSTEM=="usb", SYSFS{idVendor}=="050d", SYSFS{idProduct}=="935b", RUN+="/sbin/modprobe rt3070sta"
2010
05.29
Sometime on install your vim has strange behavior.
In insert mode the arrows key write ABBDDDEEE. To fix it you can inter the follow command:

:set nocompatible

For backspace with strange behavior you can use the follows command :

:set backspace=2
2010
05.10

Les “Point of interest” pour les stations de vélo de Marseille.

le_velo_marseille.zip