HostOnNet Blog

Category Archives: Linux

Raid 1 vs Single Disk Speed Test

I was trying to moving my /home directory to new btrfs raid 1 partition. Raid 1 is knowing as Mirroring, data is written to 2 disks. Data written to a Raid 1 array is like 10% slower than single hard


Partitioning with parted

parted is a command line program to partition hard disks. Viewing Partition To view partition on a hard disk, use Example I will use /dev/sdc as device name. root@hon-pc-01:~# parted /dev/sdc print Model: ATA ST31000528AS (scsi) Disk /dev/sdc: 1000GB Sector


Varnish Cache

Varnish Cache is a web application accelerator, that sit in between visors and web server. It caches frequently requested pages and serve them from memory. Varnish is Open Source software, you can download it from https://www.varnish-cache.org/ Varnish work as reverse


mount

Mounting NFS file system in CentOS 7 Creating Virtual Flesystem How to mount a new Hard Drive on your Linux Server Mounting WebDAV on Linux using Davfs


Creating Virtual Flesystem

First create a file with 2 GB size using command Lets format the file with Example root@backup:~# mkfs.ext4 my_drive.img mke2fs 1.42.13 (17-May-2015) Discarding device blocks: done Creating filesystem with 524288 4k blocks and 131072 inodes Filesystem UUID: 820ea230-6fad-4072-b8b6-028cc552d07f Superblock backups


sudo

sudo allow normal user to run commands as user root. By default users in groups “sudo” and “admin” can use sudo on Debian/Ubuntu. On CentOS/RHEL group name is “wheel”. You can edit sudo permissions for user/group with command visudo store


teamviewer

TeamViewer is used to connect to remote computers. Free alternative is Google Chrome Desktop. On Ubuntu teamviewer start a service called teamviewerd. If you don’t use teamviewer always, it is better disable this service. When you want to use TeamViewer,


tmux

tmux is a software like screen. It allow you to have multiple terminal session. You can install tmux on ubuntu with command When you use tmux commands from within tmux, you need to switch to command mode like you do


How to setup shadowsocks Proxy on Ubuntu

shadowsocks is a socks5 proxy server. Unlike Most other socks5 proxy software, shadowsocks require client side software installed for socks5 proxy to work. Installing shadowsocks This need to be done on server and client. Configuring shadowsocks as server ssserver is


Copying SSH key to Remote Server

ssh-copy-id command is used to copy your SSH public key to remote server for password less authentication. Once you have your SSH key generated with ssh-keygen command, you need to run You will be asked to enter password. One you