Selasa, 24 Februari 2015

Sharing files from windows to lubuntu using samba

nano .projects_smb_opts
mkdir /home/[lubuntu username]/projects
sudo nano /etc/rc.local
mount -t cifs // /home/[lubuntu username]/projects -o `cat /home/[lubuntu username]/.projects_smb_opts`

static ip on lubuntu

auto eth0

iface eth0 inet static

Selasa, 15 Juli 2014

git push huge files

add config:
  postBuffer = 209715200

Rabu, 02 Juli 2014

Creating swapfile

source: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-12-04
  1. listing enabled swaps
    sudo swapon -s
  2. check available space
  3. create swap file (the following will create 1GB swap, modify count if needed)
    sudo dd if=/dev/zero of=/swapfile bs=1024 count=1024k
  4. prepare the swap file by creating a linux swap area
    sudo mkswap /swapfile
  5. activate the swap file
    sudo swapon /swapfile
  6. ensure that the swap is permanent by adding it to the fstab file
    sudo nano /etc/fstab
    /swapfile       none    swap    sw      0       0 
  7. set swappiness in the file to 10 so swap act as an emergency buffer
    echo 10 | sudo tee /proc/sys/vm/swappiness
    echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf
  8. prevent the file from being world-readable
    sudo chown root:root /swapfile 
    sudo chmod 0600 /swapfile

Jumat, 23 Mei 2014

Fixing wireless connection problem in lubuntu

boot into recovery root command line, type mount -o remount,rw / to allow write access, install wicd apt-get install wicd and reboot