-
Recent Posts
Archives
- April 2020
- November 2019
- May 2019
- February 2019
- January 2019
- September 2018
- April 2018
- February 2018
- January 2018
- July 2017
- May 2017
- March 2017
- February 2017
- August 2016
- July 2016
- April 2016
- July 2015
- May 2015
- January 2015
- May 2014
- February 2014
- September 2013
- August 2013
- April 2013
- March 2013
- February 2013
- August 2012
- July 2012
Categories
Meta
Tags
Category Archives: Linux/Unix
Extract audio from video by ffmpeg
just to see if there any audio: ffprobe -i in.mp4 find string as example here: Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 95 kb/s (default) then exctract it ffmpeg -i in.mp4 -vn -acodec copy out.aac … Continue reading
Posted in Administration, Linux/Unix, video surveillance, windows
Leave a comment
unauthentificated guest access restriction from client pc (default in w19, w10Enterprice)
gpedit.msc / computer configuration / Administrative Templates/ Network / Lanman Workstation -> enable insecure guest logons
Posted in Administration, Linux/Unix, windows
Leave a comment
Debian version
some ways to find out debian version: root@pom:/etc# cat /etc/issue Debian GNU/Linux buster/sid \n \l root@pom:/etc# cat /etc/debian_version buster/sid root@pom:/etc# cat /etc/os-release PRETTY_NAME=”Debian GNU/Linux buster/sid” NAME=”Debian GNU/Linux” ID=debian HOME_URL=”https://www.debian.org/” SUPPORT_URL=”https://www.debian.org/support” BUG_REPORT_URL=”https://bugs.debian.org/” root@pom:/etc# lsb_release -da No LSB modules are available. Distributor … Continue reading
Posted in Administration, Linux/Unix
Leave a comment
mdadm replace broken drive on Debian Jessie
If the drive should be replaced, then 1. start with determining which one is broken. See details of md device # mdadm –detail /dev/mdX # smartctl -a /dev/sdY smartmontools required to be installed 2. replace required drive physically 3. See … Continue reading
Posted in Administration, hardware, Linux/Unix
Leave a comment
rdp client from linux. Freerdp, xfreerdp
The best rdp client on linux I found to work is the freerdp usage from console: $ xfreerdp /u:lamer /w:1024 /h:768 /v:1.2.3.4:13389 +clipboard /a:drive,home,/home Simple options that required mostly: /v:<server>[:port] Server hostname /port:number Server port /w:<width> Width /h:<height> Height /size:<width>x<height> … Continue reading
Posted in Administration, Linux/Unix, windows
Leave a comment
rename mdadm raid name
changing drives to bigger once caused to create new md raid device for copying files from old md4 to new md127 device. After that should the md4 physically removed and md127 renamed to md4 for other settings compatibility. first unmount … Continue reading
Posted in Linux/Unix
Leave a comment
debian systemd usage sample
I stole info from https://wiki.debian.org/systemd Show system status: $ systemctl status List failed units: $ systemctl –failed # systemctl reset-failed List installed unit files: $ systemctl list-unit-files List all running services: $ systemctl Activates the service “example1” immediately: # systemctl … Continue reading
Posted in Linux/Unix
Leave a comment
rsync over samba on debian 8 jessie for switching to newer hardware
On server swap it is needed to move data from one server to another with preserving all attributes and access times. New server is installed from clean (just for fun and to prevent some old errors from updates or hacks … Continue reading
Posted in Administration, Linux/Unix
Leave a comment
MiniSAS, MiniSAS HD, IPASS, SFF8087, SFF8643 example
Always need this information, decided to create post for it. CBL-SAST-0507-01 HD SAS -> mSAS(SFF8087) SFF8643 to SFF8087 Mini SAS Cable cable suits to rs2bl0x0 (miniSAS or ipass or sff8087) and hdsas backplane on supermicros cse-826be1c-r902lpb, like this one: https://www.supermicro.com/products/chassis/2U/826/SC826BE1C-R920LPB … Continue reading
Posted in Administration, hardware, Linux/Unix, windows
Leave a comment
ddrescue map file bad sectors position counting
If hdd failed and image recovered by ddrescue, might be necessary to know the failed sectors positions. For example hdd failed and recover by ddrescue /dev/sdd /dev/null /root/1tb.log –force log its content: # Rescue Logfile. Created by GNU ddrescue version … Continue reading
Posted in Administration, hardware, Linux/Unix
Leave a comment