Category: Linux Mint

linux mint map network drive
February 4th, 2019 by ronny

Linux Mint map network drive is a must if you are into Linux and home servers. Connect to network drive from Linux can be a bit more challenging compared to Windows, but a lot more stable. The only thing you need to do is to add the network location to fstab for automatic connection instead of mounting it for each time.

The cool thing about mounting a network drive in Linux is that you can mount it to be anywhere you like. In this example we will add a folder called Storage and we will me mount it in our home folder.

This is how to map a drive on a Samba server. You need to be root or sudo to do the changes. Open the /etc/fstab file and in this Linux mount example we will add a network drive on Add the line below to the end of your fstab file.

Linux Mint map network drive.

// /home/john/Storage cifs username=john,password=mypassword,noperm,dir_mode=0777,file_mode=0777,iocharset=utf8,_netdev 0 0

The line above should all be on one line. You will of course need to edit it to match your system. That is how a Linux mount network drive works. To make it active you can just reboot your computer now. You should now see the network location in your home folder. It will also appear when using the df -h command.

Check out on how to remove symbolic links in Linux

Posted in Linux, Linux Mint Tagged with:

F10 in Midnight Commander
January 9th, 2019 by ronny

Because of the default settings in several Linux Distros you will not be able to use F10 to exit Midnight Commander. However the solutions is simple.

I use Linux Mint Debian Edition for most of my Linux Desktop usage. And I belive it is the same issue with F10 opens a menu instead of closing Midnight Commander in several other Distros as well. 

How to fix it

This is how you can start using F10 to close Midnight Commander. First open the Terminal. In the menu go to Edit and select Preferences. In the preferences window uncheck the options that says “Enable the menu accelerator key”.

Now to need to close the terminal and open it again for the change to take effect. Now you should be able to use F10 to close MC. Enjoy your F10 and MC.

Please also check out, if of any interest, how to copy file with progress bar in Linux by using Midnight Commander.

Midnight Commander home page.

Posted in Linux, Linux Mint Tagged with: , , ,

chrome for linux mint 18
February 4th, 2018 by ronny

Chrome for Linux Mint 18 installed from scratch. There are two ways you can install Chrome for Linux Mint 18. One way is to do it the traditional way of downloading an installer file and run it. The other way is to use Terminal to download and install it the usual Linux way. Let us see how we do it both ways.

Install Chrome for Linux Mint 18 from a web browser

The first thing we need to do is to find the Chrome install file. Open your browser and go to ( Or open Google and search for Chrome. The first page you will find is the Google Chrome page. Since you are doing this from a Linux computer, Google knows you are looking for a Linux version of Chrome.

Google will now ask you what kind of package you want to download. If you want 64 bit .deb or 64 bit .rpm. You need to select the .deb package. That is for Debian and Ubuntu. Linux Mint is based on Ubuntu (which is based on Debian). Fedora (or Red Hat) and OpenSUSE have a completely different package system, so don’t choose that one. Then click ACCEPT AND INSTALL.

chrome for linux mint 18 1


Linux Mint will now ask what your browser should do with the file you downloaded. It will normally suggest to open it with GDebi. That is the standard package installer in Linux Mint. Just go ahead and click OK.

chrome for linux mint 18 2

The package installer will then check if all dependencies are present. If you installed Linux Mint the normal way, that should be ok. Click Install Package and the installation will begin. Once the package is installed, click Close to close the installer window.

chrome for linux mint 18 4

Now Chrome for Linux Mint 18 is installed on your system and ready to use. That is one way of doing it. Let us see how to install it from the Terminal window.

Install Chrome for Linux Mint 18 from Terminal

No point in installing a web browser if you only have terminal access. Even tho there is a text-based web browser, Google Chrome is not one of them. However, if you are like me, you probably prefer working in Terminal over the Desktop. I feel more in control when using Terminal.

The first thing you need is to log in to root.

sudo su

Then we need to add the Google Chrome repository to our sources list. We do that like this.

echo “deb [arch=amd64] stable main” > /etc/apt/sources.list.d/chrome.list

chrome for linux mint 18 11

You could of course open the /etc/apt/sources.list.d/chrome.list file and paste in the line above your self too. But the echo command is more convenient.

To be able to validate the installation we need to add the public key for the repository we just added. You will do that by running this command.

wget -q -O – | apt-key add –

chrome for linux mint 18 12

After doing changes to the repositories and source list we need to update the package manager.

apt-get update

When the updating is done it is time to install Chrome for Linux Mint 18. The name of the package is google-chrome-stable. So we install that by:

apt-get install google-chrome-stable

chrome for linux mint 18 16


Now the Chrome browser is installed on your system, and ready to use.

Bonus tip

Chrome is a good web browser. I used it as my primary web browser when I was using Windows. You might want to try out a web browser called Chromium. It is like Google Chrome because this is where Chrome gets it source code from. Chromium is, just like Chrome is a project run by Google.

The package name of the Chromium browser is chromium-browser. And is part of the Mint repository, so no need to change the sources and add public keys. Just do the installation by running this command.

apt-get install chromium-browser

chrome for linux mint 18 17

Chromium is now ready on your system. That is how you install Chrome for Linux Mint 18, or even Chromium. Enjoy!

chrome for linux mint 18 18

Check this if you are wondering what the default Linux Mint root password is. Linux mint default password.

Posted in Linux, Linux Mint Tagged with: ,

linux mint default password
July 15th, 2015 by ronny

linux mint default password

linux mint default passwordSince you are looking for Linux Mint default password I assume you are using the Ubuntu version of Linux Mint. And you are trying to access the root user. Normally you can do everything from your own user using the sudo command. But there are downsides to sudo. And there is no Linux Mint default password. And if you need to login as root. Here is how you do it.

Open a terminal window, and type:
sudo passwd root

Then you should be able to set a password to your root account. But be careful when login in as root. And don’t use it as your normal user account. Only when needed. And not to browse the internet.

The same method can be used if you have forgotten your root password. But you can only do it from a user that is a member of the sudo group. That is a member that can use the sudo command.

So this is a workaround Linux Mint default password. Since there isn’t any.

If you need to download Linux Mint, please go to their official web page.

Happy passwording!

Posted in Linux, Linux Mint Tagged with: ,

June 7th, 2015 by ronny

Disable directory browsing

Disable directory browsingIf you have directory browsing enabled, which it is by default, your users can browse the directories on your web server. This is not particularly good regarding security. So we better disable directory browsing to be on the safe side.

On a Debian server we do that quite easily in the domain config at /etc/apache2/sites-available/
If you have setup more than one domain on your web server, you should go to your domains config file. Here is an example: ‹/etc/apache2/sites-available/
(if you use Apache prior to 2.4 you might not have the .conf extension)

Insert this line into the config file: Options -Indexes

If you only have one domain hosted on your server, you most likely uses the default domain config.
Edit this file: /etc/apache2/sites-available/default
Look for the line: Options Indexes FollowSymLinks MultiViews ExecCGI
And change to: Options -Indexes FollowSymLinks MultiViews ExecCGI

You can now restart or reload your apache server.
service apache2 restart

We have now done disable directory browsing.

Happy browsing!

Posted in Apache, Debian, Linux, Linux Mint, Ubuntu Tagged with:

February 19th, 2015 by ronny

remove-from-database-iconApt-get remove is not always enough to remove a package completely. If you try to remove in example the mysql-server package with just apt-get remove, the settings and lot of dependencies will still be left. We will need to purge and clean up. Here is a short desription on how to perform a complete removal of mysql-server with settings and everything.

First you need to run the remove –purge command.
[sourcecode language=”css”]
apt-get remove –purge mysql\*
Next step is probably not recommended by as it will increase their bandwith (unless you run your own apt-get cache server, which I recommend everyone to do). That is to clean the package cache.
apt-get clean

The last step is often forgotten, included by my self. That is to update the file database. Else references to all the deleted files will still be present.

Thats it, and your mysql server is now completely gone.

Happy deleting!

Posted in Debian, Linux, Linux Mint, Ubuntu

January 26th, 2015 by ronny

drive-usb-iconUSB drives is a good way of extracting large amounts of data from your servers quickly. And of course a lot of other things. There are a few things to notice. The file system of your hard drive. If it is supported by Linux you don´t need to format it. You can go ahead and just mount it.

The scenario. You need to backup a lot of data from your linux server. And the drive is formatted as fat32.

After the disk is connected to a usb port you need to find the drive letter (ex: sdb)
Sudo or su
fdisk -l
This will give you information about all your connected drives. Not just USB drives.

Before mounting the drive, we need to create a folder for the USB drive. Since it´s a backup drive, we call it backup.
mkdir /backup

Once you found the drive letter you can mount the drive.
mount -t auto /dev/sdb /backup

If you reboot the drive will be unmounted.
To make it stick after reboot, check out my post here. You can also just run the mount command if you only need now and then.

Happy hard driving!

Posted in Debian, Linux, Linux Mint, Ubuntu

January 24th, 2015 by ronny

Mimetypes-text-x-sql-iconAlways handy with a web based database tool. Here is how to install and access PhpPgAdmin on a Debian variant.

First to install the package.
apt-get install phppgadmin

Now your web panel is installed. Then you need to access it. If you are on a different computer than you install the PhpPgAdmin you will need to edit the config file to be able to access it. Here is what you need to do.

Comment out the line allow from :: 1/128
And uncomment the line allow from all

Now you need to set a password for the root user. PostgreeSQL call the root user for postgres.
So no need to either su or sudo the postgres user.
sudo -u postgres psql (or su postgres, then start psql)

Inside the postgree database type this to set a password
Enter the password twice as usual
To quit.

Now you have set a password for the root user and made it accessible from everywhere.
I have installed it on, so I would need to type into my web browser

Now use the postgres as user, and enter with your password. You might want to consider to restrict access to your database once everything is set up.

That´s it really.

Happy databasing!

Posted in Debian, Linux, Linux Mint, Ubuntu

January 10th, 2015 by ronny

Sql-runner-iconPostgreSQL, another popular sql database server. Here is how to install one in Debian (and Debian variants). However during the Debian installation if you select Database Server, PostgreSQL will be installed by default. If you didn’t select any database servers, here is how to install PostgreSQL after Debian installation is done.

apt-get install postgresql

Other packages you might need to install to use your PostgreSQL is:
postgresql-client – client libraries and binaries
postgresql-contrib – additional supplies modules
pgadmin3 – graphical PostgreSQL admin tool (not very useful on a headless server without desktop)

Your PostgreSQL server should now be ready to rock!

Happy databasing!

Posted in Debian, Linux, Linux Mint, Ubuntu

December 28th, 2014 by ronny

virtual-desktop-2-iconI prefer using a gui when controlling my virtual machines. Learning how to control them in the most basic way from the command line or terminal is easy. It is very self explanatory once you know about the virsh command. I have made some examples below on how to use these commands.

Here is the list of basic commands to start, stop and reboot your virtual machines.

List your running guests

virsh list
[sourcecode language=”text”]
Id Name State
2 apt-cacher.home running

List all guests:

virsh list –all
[sourcecode language=”text”]
Id Name State
2 apt-cacher.home running
– db1.home shut off
– db2.home shut off
– devlab.home shut off
– minecraft.home shut off
– vault.home shut off
– web.home shut off

To start a vm

we can only use their vm name to start them.
virsh start db1.home

To reboot a vm

We can use name or id to reboot the vm.
virsh reboot 2
virsh reboot apt-cacher.home

To stop or shutdown a vm

virsh shutdown 2
virsh shutdown apt-cacher.home

To shutdown or stop an unresponsive or crashed vm

virsh destroy 2
virsh destroy apt-cacher.home

To get information about your vm

virsh dominfo 2
virsh dominfo apt-cacher.home
[sourcecode language=”text”]
Id: 2
Name: apt-cacher.home
UUID: f194bb17-5f0e-21f5-f712-8a98edd4f1d8
OS Type: hvm
State: running
CPU(s): 1
CPU time: 332.8s
Max memory: 262144 KiB
Used memory: 262144 KiB
Persistent: yes
Autostart: enable
Managed save: no
Security model: apparmor
Security DOI: 0
Security label: libvirt-f194bb17-5f0e-21f5-f712-8a98edd4f1d8 (enforcing)
Happy controlling!

Posted in Debian, KVM, Linux, Linux Mint, Ubuntu, Virtualization