How to use sftp to retrieve files from a remote Linux server securely.

The sftp utility for Linux allows copying files from a remote Linux machine, or sending them to one, this makes working with a machine over SSH very easy. Firstly, connect to the machine like this. deusexmachina:~ jason$ sftp [email protected] [email protected]’s password: Connected to 192.168.1.4.deusexmachina:~ jason$ sftp [email protected] [email protected]’s password: Connected to 192.168.1.4. Then issue the … Read more

Very useful Ubuntu tips and tricks.

How to change your Ubuntu password as a normal user. jason@Yog-Sothoth:~$ passwd Changing password for jason. (current) UNIX password: Enter new UNIX password:jason@Yog-Sothoth:~$ passwd Changing password for jason. (current) UNIX password: Enter new UNIX password: Just enter you current password and then enter a new one twice. It is that simple. To install required updates, … Read more

Some very useful Arch Linux tips and tricks.

Get a comprehensive listing of all Arch Linux pacman mirrors. curl -s -L "https://www.archlinux.org/mirrorlist/?country=all&protocol=https&use_mirror_status=on" 2>&1 | sed ‘s/^.//’ > mirrorlistcurl -s -L "https://www.archlinux.org/mirrorlist/?country=all&protocol=https&use_mirror_status=on" 2>&1 | sed ‘s/^.//’ > mirrorlist A simple script to update your mirror listing on your Arch Linux system. #!/bin/bash echo "Fetching new sorted mirrorlist…" curl -s -L "https://www.archlinux.org/mirrorlist/?country=all&protocol=https&use_mirror_status=on" 2>&1 | sed … Read more

Very useful Macbook tips for a new user.

How to use home and end keysHow to take screenshotsGet information about installed appsMore keyboard key shortcuts How to use home and end keys To right-click on something, hold the control key and then click an item to get a right-click context menu. This is how you can customize Firefox on your Macintosh machine. The … Read more

Get comprehensive networking information from the command line.

If you are using Network Manager to connect to a network, then it is possible to get comprehensive networking information from the command line. This command will print a lot of information about your Network Manager configuration. jason@jason-desktop:~$ nmcli dev showjason@jason-desktop:~$ nmcli dev show Show a listing of available WIFI access points. jason@jason-desktop:~$ nmcli device … Read more

Some useful tips for listing directories with ls on Linux.

To list the contents of a directory with the listing sorted by size, use the parameters in this example. ls –format=long –sort=size -hls –format=long –sort=size -h This is what you will get. total 15G -rw-rw-r– 1 ubuntu ubuntu 15G Dec 2 2014 crackstation.txt -rw-rw-r– 1 ubuntu ubuntu 20M Mar 20 2015 system.save -rw-rw-r– 1 ubuntu … Read more

Some very useful Ubuntu tips.

To find out what repository a package came from, use the dpkg -s command. jason@jason-desktop:~$ dpkg -s zdoom Package: zdoom Status: install ok installed Priority: optional Section: web Installed-Size: 9330 Maintainer: DRD Team <[email protected]> Architecture: amd64 Version: 2.8.1 Depends: libc6, libstdc++6, zlib1g, bzip2, libgtk2.0-0 Recommends: timidity, libfluidsynth1 Description: Advanced Doom source port.jason@jason-desktop:~$ dpkg -s zdoom … Read more

How to manipulate Xorg windows with a terminal command.

The Windows in an Xorg session may easily be manipulated with this simple utility. Xdotool. This is a terminal utility to manage Xorg windows. Firstly, install this simple utility. jason@jason-desktop:~$ sudo apt install xdotooljason@jason-desktop:~$ sudo apt install xdotool Then we can resize a MATE Terminal window. xdotool search –onlyvisible –classname "gnome-terminal" windowsize %@ 500xdotool search … Read more

Some very useful Linux tips for the desktop and terminal user.

How to use home and end keysHow to take screenshotsGet information about installed appsMore keyboard key shortcutsVery useful Linux tips and tricks for the terminal userVery good find command trickInstall a very nice slim desktop on Linux Mint and UbuntuSet a locale on a Debian systemChange the Plymouth theme on ubuntuList only directories in a … Read more

New ransomware attack overstated by the media, here is how to stop it.

The new ransomware threat in the wild is quite amazing, but it relies on your machine having ports open to the web and the SMB service running in Windows. A lot of existing machines might have this service running and they might not be patched at all. Since this was known about for many months, … Read more

Internet security tips for staying safe online in a modern world.

How to use home and end keysHow to take screenshotsGet information about installed appsMore keyboard key shortcutsVery useful Linux tips and tricks for the terminal userVery good find command trickInstall a very nice slim desktop on Linux Mint and UbuntuSet a locale on a Debian systemChange the Plymouth theme on ubuntuList only directories in a … Read more

Very useful Linux tips and tricks for the Linux desktop user.

How to use home and end keysHow to take screenshotsGet information about installed appsMore keyboard key shortcutsVery useful Linux tips and tricks for the terminal userVery good find command trickInstall a very nice slim desktop on Linux Mint and UbuntuSet a locale on a Debian systemChange the Plymouth theme on ubuntuList only directories in a … Read more

Easily spawn an enemy jet to patrol an AO in Arma 3 with a script.

This simple script will spawn a jet to patrol an AO and attack any enemy vehicle or helicopter it sees. This is improved code that has a proper patrol radius and is better than the jet patrolling in too small a radius. // Spawn a CAS jet to patrol the AO.   #define PLANE_TYPE "rhs_l159_CDF","rhs_l39_cdf","rhs_mig29s_vmf","RHS_Su25SM_vvsc","RHS_T50_vvs_generic","RHS_T50_vvs_generic_ext","RHS_T50_vvs_blueonblue" … Read more

Random Linux commands.

Fetch information about a random Linux command. curl -sL commandlinefu.com/commands/random/plaintext | sed ‘3,4!d’curl -sL commandlinefu.com/commands/random/plaintext | sed ‘3,4!d’ Here is an example. ┌─[jason@neo]─[~] └──╼ $curl -sL commandlinefu.com/commands/random/plaintext | sed ‘3,4!d’ # An easter egg built into python to give you the Zen of Python echo "import this" | python┌─[jason@neo]─[~] └──╼ $curl -sL commandlinefu.com/commands/random/plaintext | sed … Read more

How to list the installed files of a certain package and other useful tips.

To list all the files installed by a certain Debian package, use this command. dpkg -L [PACKAGENAME]. For example. ubuntu ~ $ dpkg -L vim /. /usr /usr/bin /usr/bin/vim.basic /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/vim /usr/share/bug /usr/share/bug/vim /usr/share/bug/vim/presubj /usr/share/bug/vim/script /usr/share/doc /usr/share/doc/vimubuntu ~ $ dpkg -L vim /. /usr /usr/bin /usr/bin/vim.basic /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/vim /usr/share/bug /usr/share/bug/vim /usr/share/bug/vim/presubj … Read more

Some useful tips for the Linux MATE desktop.

How to use home and end keysHow to take screenshotsGet information about installed appsMore keyboard key shortcutsVery useful Linux tips and tricks for the terminal userVery good find command trickInstall a very nice slim desktop on Linux Mint and UbuntuSet a locale on a Debian systemChange the Plymouth theme on ubuntuList only directories in a … Read more