Humberto Sousa Text Weather on login add : echo "Current Weather in Nürnberg" ansiweather -l 2861650 to : /etc/update-motd.d/01-custom... Mar 7, 2022
Humberto Sousa Create a Samba Share in Linux edit : sudo vim /etc/samba/smb.conf add a section like this : [sharename] path = /path/to/folder available = yes valid users = root read only = no browsable = yes public = yes writable = yes restart t... Dec 28, 2021
Humberto Sousa Change network interface names To get an ethX and wlanX back, edit the grub file. sudo vim /etc/default/grub Look for : *GRUB_CMDLINE_LINUX and add the following net.ifnames=0 biosdevname=0.* and change from: *GRUB_CMDLINE_LINUX=""... Dec 28, 2021
Humberto Sousa Mount samba share in linux mount -t smbfs -o username='{your username}',password={yourpassword} //{serverip}/{shared directory name} /mnt/{folder where you want to mount the share}... Dec 28, 2021
Humberto Sousa Change (forgotten) root password in linux Boot from a live cd / USB drive, then in the terminal: mount / -n -o remount.rw passwd mount / -n -o remount.ro /sbin/reboot... Dec 28, 2021
Humberto Sousa Batch resize images in linux terminal to batch resize images ... sudo apt install imagemagick then run ... for file in *.jpg; do convert $file -resize 1280 $file; done this will destructively resize all the jpgs in the current directory t... Dec 28, 2021
Humberto Sousa Convert Nikon RAW images to JPG note : P{8} Runs these conversions with 8 different processes ls *.NEF | sed 's#.NEF##' | xargs -P8 -I^ convert ^.NEF ^.jpg (from http://superuser.com/questions/577643/how-do-i-batch-convert-thousands... Dec 28, 2021
Humberto Sousa Clone USB pen drives with dd Cloning a USB pendrive to another is easy ... in linux ... use blkid to find the two drives example output : origin = /dev/sdd destination = /dev /sde the command is : dd if=/dev/sdd of=/dev/sde bs=4M... Dec 28, 2021
Humberto Sousa Clear your DNS Cache in Linux Can't find that windows PC in your network list because the IP doesn't match the hostname? Clear your DNS Cache in Linux ... sudo /etc/init.d/dns-clean restart or sudo /etc/init.d/networking force-rel... Dec 28, 2021