Skip to main content

Swap File creation on GNU/Linux

cavadjava@Javad:~$ htop
cavadjava@Javad:~$ free -m
              total        used        free      shared  buff/cache   available
Mem:           7930        3468         144         820        4317        3275
Swap:          4052           0        4052
cavadjava@Javad:~$ cd /
cavadjava@Javad:/$ sudo fallocate -l 12G /swapfile
[sudo] password for cavadjava:
cavadjava@Javad:/$ sudo chmod 600 swapfile
cavadjava@Javad:/$ sudo mkswap /swapfile
Setting up swapspace version 1, size = 12 GiB (12884897792 bytes)
no label, UUID=e7407f29-8bb0-4fec-ba0e-e0d13c2c7ec5
cavadjava@Javad:/$ sudo swapon /swapfile
cavadjava@Javad:/$ sudo swapon -s
Filename Type Size Used Priority
/dev/sda5                               partition 4150268 228 -1
/swapfile                               file     12582908 0 -2
cavadjava@Javad:/$ free -m
              total        used        free      shared  buff/cache   available
Mem:           7930        3498         126         820        4305        3242
Swap:         16340           0       16340
cavadjava@Javad:/$ sudo vim /etc/fstab
//exit-->:esq-->:wq
cavadjava@Javad:/$ sudo nano /etc/fstab
after

add line:
/swapfile  none swap sw 0

Comments

Popular posts from this blog

VMware -> root access is required for the operations you have chosen FIX ubuntu 14.04

Example ~$ wget https://www.vmware.com/go/tryworkstation-linux-64 [sudo] password for javad: *****  --2016-08-11 11:19:10--  https://www.vmware.com/go/tryworkstation-linux-64 Resolving www.vmware.com (www.vmware.com)... 104.86.190.190, 2a02:26f0:c000:183::2ef, 2a02:26f0:c000:190::2ef ..... .... ... .. . .. ... .... .....  ~$ sudo chmod +x tryworkstation-linux-64 ~$ sudo -i ~#  ~# cd / root@javad-quad:/# cd /home/javad/ root@javad-quad:/home/javad# ./tryworkstation-linux-64 Extracting VMware Installer...done. ... Product: VMware® Workstation 12 Pro Version: 12.1.1 build-3770994 licence key: VY1DU-2VXDH-08DVQ-PXZQZ-P2KV8 VF58R

fix audio in kali linux

1. leafpad /etc/pulse/daemon.conf 2. find "default-sample-channels" and change the number -->1-->save-->exit 3. pulseaudio start 4. pulseaudio --start Practice  root@javad:~# sudo leafpad /etc/pulse/daemon.conf  root@javad:~# pulseaudio start E: [pulseaudio] main.c: Too many arguments. root@javad:~# pulseaudio  --start W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).  root@javad:~# reboot