LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

image resize

Posted 04-05-2020 at 05:25 PM by karanis
Tags image

convert xxx.png -resize 600 example.png (wrt Width)
convert xxx.png -resize 600x1000! example.png (force scale distorsion)
LQ Newbie
Posted in Uncategorized
Views 392 Comments 0 karanis is offline
Old

tar specific extensions

Posted 04-05-2020 at 05:25 PM by karanis
Tags tar

find ./someDir -name "*.php" -o -name "*.html" | tar -cf my_archive -T -
LQ Newbie
Posted in Uncategorized
Views 356 Comments 0 karanis is offline
Old

MULTI image resize on disk

Posted 04-05-2020 at 05:24 PM by karanis
Tags image

#!/usr/bin/env bash
# Purpose: batch image resizer
# Source: https://guides.wp-bullet.com
# Author: Mike

# absolute path to image folder
FOLDER="/var/www/wp-bullet.com/wp-content/uploads"

# max height
WIDTH=540

# max width
HEIGHT=300

#resize png or jpg to either height or width, keeps proportions using imagemagick
#find ${FOLDER} -iname '*.jpg' -o -iname '*.png' -exec convert \{}...
LQ Newbie
Posted in Uncategorized
Views 380 Comments 0 karanis is offline
Old

MULTI ethernet bonding

Posted 04-05-2020 at 05:23 PM by karanis
Tags net

# /etc/rc.d/rc.inet1.conf HAS 2 if enabled at boot
# eth0: no DNS, no static IP , eth1: no DNS, no static IP

/sbin/ifconfig eth0 down
/sbin/ifconfig eth1 down
/sbin/modprobe bonding mode=0 miimon=100

/usr/sbin/ip addr add 192.168.2.IP/24 dev bond0

/usr/sbin/ip link set bond0 up
/usr/sbin/ip link set eth0 master bond0
/usr/sbin/ip link set eth1 master bond0

/sbin/route add default gw 192.168.2.1
...
LQ Newbie
Posted in Uncategorized
Views 249 Comments 0 karanis is offline
Old

Connection speed between 2 linux

Posted 04-05-2020 at 05:22 PM by karanis
Tags net

https://askubuntu.com/questions/7976...ween-two-boxes

Type 1 : (nc and dd)
Server# nc -vvlnp 12345 >/dev/null
Client# dd if=/dev/zero bs=1M count=1K | nc -vvn 10.10.0.2 12345

Type 2 : (iperf)
Server# iperf -s
Client# iperf -c
LQ Newbie
Posted in Uncategorized
Views 243 Comments 0 karanis is offline

  



All times are GMT -5. The time now is 09:08 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration