To copy to a server (replacing 0.0.0.0 with the IP address)
scp -i ~/.ssh/your-private-key.pem /source/file/location [email protected]:/target/file/location
To copy from a server to your local machine within your current . directory
scp -i ~/.ssh/your-private-key.pem [email protected]:acf.sql .
Amarok loops threw all items in playlist when trying to play mp3’s using Ubuntu 9.04
When adding new items to Amarok in Ubuntu 9.04 the items do not want to play and Amarok only loops threw the whole playlist and no sound is heard. Follow the steps below in order to solve the problem STEP 1 Remove GStreamer ffmepeg video plugin, GStreamer extra plugins and Movie Player (GStreamer) via Add/Remove (Applications -> Add/Remove) STEP 2 Open a new Terminal session and type in the...
How to get information on your CPU using Linux
NOTE: This has been tested and tried on Ubuntu 9.04 and should work on other distributions. In the command line interface (CLI) type in the command below and hit enter. cat /proc/cpuinfo This will display all information about your CPU similar as to example below processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name :...
How to enable and disable the firewall on Ubuntu 16.04
The UFW firewall is the default firewall that ships standard with the Ubuntu Linux Distribution. UFW stands for Uncomplicated Firewall. To enable the UFW firewall, open a new Terminal window and execute the following command: sudo ufw enable To disable the UFW firewall, open a new Terminal windows and execute the following command:...
UFW Firewall: How to open a port
When you would like to grant SSH access on a Ubuntu machine, you would need to allow access to port 22. In order to allow access to port 22 you would need to add a rule to ufw to open up access to port 22. To allow access to port 22 you would need to do the following: Open a new Terminal Window Enter the following command: sudo ufw allow 22 The typical success message will look similar to the...
How to install Ubuntu Desktop on Ubuntu Server 16.04
In the terminal type the command:
sudo apt-get update
The above command downloads the package lists from the repositories and updates all packages to get information for the newest versions of packages and their dependencies.
Now install the Ubuntu Desktop package and it’s dependencies
sudo apt-get install ubuntu-desktop
How to install Sublime Text 3 in Ubuntu
Open the Terminal Then add Sublime Text 3 to your PPA repository sudo add-apt-repository ppa:webupd8team/sublime-text-3 After you have added the package, you need to update your package list to get the latest information on the newest versions of packages and their dependencies. sudo apt-get update Finally you can install Sublime Text 3 using the Package Manager sudo apt-get...
Where is the Trash folder located in Ubuntu 16.04 LTS
The trash folder can be found at:
/home/username/.local/share/Trash
Replace username with your username.
The trash folder can also be accessed using the Graphical User Interface by opening the File Manager.
Once opened, press the key combination CTRL+H to view all hidden files and folders.
Open the .local folder, then the share folder and then finally the Trash folder.
How to unblock an IP address from IPTables that has been blocked by Fail2Ban
Find the line number that needs to be removed from the IPTables sudo iptables -L fail2ban-SSH -v -n --line-numbers Output: Chain fail2ban-SSH (1 references) num pkts bytes target prot opt in out source destination 1 0 0 REJECT all -- * * 84.93.156.103 0.0.0.0/0 reject-with icmp-port-unreachable 2 0 0 REJECT ...
How to setup a Group Email Alias in CPanel
Setup a new Forwarder, by clicking on the Forwarder icon under the Mail section
Then click on the Add Forwarder button
Next enter the Group Name next to Address to Forward together with the domain name, then under the Destination section add all the email addressescomma separated that need to receive the email whenever a mail is send to the group.
Once done click on Add Forwarder
How to restart the service spamd in CPanel
Spamd is a service for Apache SpamAssassin and to restart the Spamd service on a CPanel server you need to execute the following command from the command line interface
Restart Spamd
/scripts/restartsrv_spamd
To check the status of Spamd execute the following command
/scripts/restartsrv_spamd --status
How to package/ backup a CPanel account from the command line
This can be done by running the /scripts/pkgacct script from the cli. Running this command will create a cpmove archive which can be used to restore on another cpanel server.
Usage:
/scripts/pkgacct [arguments] username destination
Example:
/scripts/pkgacct accountusername /tmp
The above command will create a full backup and store the archive in the tmp directory.
CPanel: Script timed out before returning headers: index.php
Script timed out before returning headers: index.php is sometimes caused by a badly written script, or the script took to long to execute. To solve this problem on a CPanel server you have to slightly increase the TimeOutdirective using Web Host Manager “WHM”. To do this visit WHM > Apache Configuration > Global Configuration Search for TimeOut and slightly increase it’s...
How to setup Barracuda Networks Reputation Block List in Web Host Manager
Login to WHM using your root username and password. Search and open Exim Configuration Manager Click on the RBLs tab under the Basic Editor tab Click on Manage Add Barracuda RBL under the Add a new RBL Section Rbl Name = Barracuda Rbl Info URL = Dns List = b.barracudacentral.org Click on Add Return to the Exim Configuration Manager, and under the Basic Editor->RBLs tab switch the Custom RBL:...
Receive a copy for Outgoing Emails from a specific address on a CPanel server with Exim
Within Web Host Manager, go to Exim Configuration Manager then Advanced Editor, click on Save without changing anything in this section This should create a file named /etc/exim.conf.local Edit the above mentioned file and add some configurations to the @CONFIG@and @TRANSPORTSTART@ sections @CONFIG@ system_filter_directory_transport = local_copy_outgoing @TRANSPORTSTART@ local_copy_outgoing:...
How to get a listing of emails in the email queue for Exim
Enter the following command in the command line to print a listing of the message in the queue
exim -bp
The output in exact order will show
Time Queued, Size, Message-Id, Sender and Recipient
Tasktar in Ubuntu disappeared (Gnome Panel)
What to do if your taskbar (GNOME Panel) disappeared in Ubuntu and you need to get it back, in our case we installed updates after unchecking some updates and after reboot the Gnome Panel was gone. So basically we assume that the panel does not exists anymore isn’t installed anymore. Solution: In the Graphical Mode press ALT+CTRL+F2 together to get to the command line. Enter your username...
Top Gnome panel disappeared in Ubuntu
How to add the Top Panel again when it has disappeared in Ubuntu
Solution:
Right click the bottom panel, then add a new panel and then select menubar.
How to download a file using the Command Line
If you need to download a file via the command line of Linux (eg. If you are logged in via SSH and need to download something). Please follow the steps below in order to download using the command line. STEP 1 We use the wget command in order to download a file. Most Linux distributions already have the wget command installed, if not we need to install it. To check if wget is installed enter the...