How to mount a Samba Share on Linux

mount -t cifs -o username=YOURUSERNAME,password=YOUPASSWORD //server_name_or_ip/folder_to_mount /mnt/folder_to_mount_to/ By using the above command and by replacing the relevant fields with your details, you should be able to mount your Samba Share on Linux Explanation: mount = mounts a filesystem -t = Used to indicate the filesystem type, in this case cifs cifs = Common Internet Filesystem YOURUSERNAME = Replace with your Samba Share Username YOURPASSWORD = Replace with your Samba Share Password server_name_or_ip = Replace with your Server name or IP address folder_to_mount = Network share name/ folder /mnt/folder_to_mount_to = The folder on the Linux machine you wish to mount the Drive to. Ensure that this folder exists

April 7, 2018 · 1 min · 107 words · icarnaghan

How to mount partition/drive at startup Ubuntu/Linux

Open a new Terminal Window Create a mount point where you need the partition/drive to be mounted. You may mount the drive anywhere and call it whatever you want to. Example: mkdir /media/development Make a backup of the fstab file!!! This is very important!!!!!! Example: sudo cp /etc/fstab /etc/fstab.backup20090728 Open the fstab file for editing Example: sudo gedit /etc/fstab Add the line below at the end of the fstab file /dev/sda8 /media/development vfat defaults 0 0 Replace ntfs with vfat if fat32 partition or ext3/ext4 /dev/sda8 = drive/partition /development = mounting point ntfs = filesystem Type in ‘sudo mount -a’ to refresh the fstab or reboot PC for changes to take effect. Locate the mounting point Example: cd /media/development Drive should be mounted successfully but only root user will have permission to write to the mounted drive. Modify the last added line in the fstab file to read as below so that the given user is able to write to the drive /dev/sda8 /media/development vfat uid=uname,gid=users,utf8=true 0 0

April 7, 2018 · 1 min · 168 words · icarnaghan

How to open the CD Rom using the Command Line Interface on Linux

Open a Terminal Session and type in the following command eject or eject /dev/cdrom If you need to close the CD Rom use the command below eject -t

April 7, 2018 · 1 min · 28 words · icarnaghan

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.

April 7, 2018 · 1 min · 55 words · icarnaghan

How to permanently delete a file or folder in Ubuntu without moving it to the Trash folder

Click on the file or folder and press the key combination shift+del together in order to remove the file or folder permanently. Please note you will need the appropriate access permissions in order to do this.

April 7, 2018 · 1 min · 36 words · icarnaghan

How to permanently show the Location Entry in the Title Bar with Nautilus in Ubuntu 10.10

Press ALT+F2 together on your Keyboard then type gconf-editor and click Run On the left hand side of the window expand apps->nautilus->preferences , check the checkbox next to always_use_location_entry and close the window. When you open Nautilus, the location entry will always be visible

April 7, 2018 · 1 min · 44 words · icarnaghan

How to prevent Ubuntu from creating a .Trash-1000 folder when deleting files from a USB flashdrive

Don’t use the delete button only (Otherwise the .Trash-1000 folder will be created) Press the key combination shift+delete together to delete then Ubuntu won’t create a .Trash-1000 folder. (Note: If you delete files and folders this way they are gone forever!) NOTE: This has been tested on Ubuntu 9.04.

April 7, 2018 · 1 min · 49 words · icarnaghan

How to push a local GIT repository to Bitbucket

Launch Bitbucket Click on Repositary -> Create Repository Enter your Repository name Set the access level to This is a private repository Set Repository type to GIT Click on Create Repository Using GIT on the command line, execute the next set of commands: cd /path/to/my/repository git remote add origin https://[email protected]/<username>/<repositoryname>.git git push -u origin --all # pushes up the repo and its refs for the first time git push origin --tags # pushes up tags

April 7, 2018 · 1 min · 75 words · icarnaghan

How to read a chm file in Ubuntu

(This has been tested on Ubuntu 9.04)(chm was developed by Microsoft Corporation) Answer: STEP 1 At the top left corner of the Ubuntu Desktop click on Application->Add/Remove STEP 2 In the search box type in ‘chm’ to search for chm reader applications. Select CHM Viewer in the list and mark the checkbox next to it. STEP 3 Click on the ‘Apply Changes’ button to install CHM Viewer (Make sure you have Internet Connectivity). ...

April 7, 2018 · 1 min · 88 words · icarnaghan

How to read the contents of a compressed file in Linux

The zcat command can be used to read the contents of a compressed text file without the need to uncompress it mannually first. zcat myCompressedFile.gz

April 7, 2018 · 1 min · 25 words · icarnaghan