How to Find the IP Address of a Website in Linux

How to find an IP address of a website or domain using terminal? Finding the public IP address of a website’s server is absolutely easy. In fact, there are several ways you can find the IP address of a website. I am going to show you some of them here. You might need to install nslookup. If you have the rights, you can use your Linux distribution’s installation command to install this tool. On Debian and Ubuntu, the command below will install nslookup: sudo apt install nslookup Once you have the tool, just use it… Read moreHow to Find the IP Address of a Website in Linux

How to use systemd to run a startup script on boot

This example shows how to start a script when multi-user is launched. Create a new file in /etc/systemd/system [e.g. myscript.service] and add the following content: [Unit] Description=My Script [Service] ExecStart=/usr/bin/my-script [Install] WantedBy=multi-user.target Put your script in /usr/bin/my-script and make sure it’s executable. sudo chmod 755 /usr/bin/my-script Then enable the service: sudo systemctl enable myscript.service

How to use rsync between hosts with non-standard ssh ports

In order to work between hosts with non-standard ssh ports, rsync syntax should be a little bit different. The command below is pushing all the files from MyLocalProject on the local machine to the RemoteProject directory on the remote machine. If you want to sync from the server to the localhost, just replace their places. Here is how we do it: rsync -vaz -e “ssh -p2222” /MyLocalProject/ username@server:/RemoteProject/ If you want to mirror the destination, use this: rsync -vaz –delete –exclude ‘.*’ –exclude ‘*.bat’ -e “ssh -p2222” /mnt/d/localDir/ user@remote.tld:/home/user/public_html/project/ –delete delete files that don’t exist on the sending side, here… Read moreHow to use rsync between hosts with non-standard ssh ports

How to properly redirect old urls to new domain

If you change your domain, you can either use DNS or HTTP/Apache configuration to point the old content to the new location. It is recommended to use the DNS configuration, because it is more efficient for such tasks. However, In this short article, you’ll find an example of how to achieve that with simple .htaccess file rewrite. By doing that, we instruct the HTTP server (Apache, nginx, etc) to redirect the requests. If you want to redirect the whole url structure to the new domain, you can add this to your .htaccess file, in the root directory with the old domain: RewriteEngine… Read moreHow to properly redirect old urls to new domain

Install Arch Linux & Plasma KDE via WiFi Connection

Here is how to install Arch Linux with Plasma KDE via Wifi connection … Keep in mind, that you can find yourself with successfully installed Arch Linux, but without internet connection, because of missing packages. In case like this, and many others, the only option is to boot again with the Flash Drive, mount the file system, chroot, and install the missing software. If you don’t know well your system, you may be forced to do this several times. So, as an advice, to save effort and time, make a simple list of all the… Read moreInstall Arch Linux & Plasma KDE via WiFi Connection

How to use (Android) adb over wifi connection

I presume you already know how to use Android Studio with USB Cable and you have at least one working Android device for the purpose. Just connect your device, open Terminal (the one inside Android Studio works fine) and type: adb tcpip 5555 Turn the Wi-Fi On and check what’s the acquired IP Address of the device. I use static IP for my Android device, so I do not need to check it at all. !!! Note that the Android device that you are using for the purpose should be in the same network as… Read moreHow to use (Android) adb over wifi connection