2014년 5월 11일 일요일

Samba & Transmission-daemon

Transmission Daemon

Assuming the path to the download folder is /home/userName/Torrent/Done &  /home/userName/Torrent/Temp, run the following:
  • add chen to the debian-transmission group
    sudo usermod -a -G debian-transmission userName
  • change the folder ownership
    sudo chgrp debian-transmission /home/userName/Torrent/Done
  • sudo chgrp debian-transmission /home/userName/Torrent/Temp
  • grant write access to the group
    sudo chmod 770 /home/userName/Torrent/Done
  • sudo chmod 770 /home/userName/Torrent/Temp
  • Stop the deamon with sudo service transmission-daemon stop
  • The last thing to do is change the file creation mask, so that the downloaded files would be writeable by chen.
    sudo nano /etc/transmission-daemon/settings.json
    
    ...and change "umask": 18 to "umask": 2. Hit ctrl+o to save and ctrl+x to exit.
    Start the daemon with sudo service transmission-daemon start

settings.json

Samba

Just type

sudo apt-get install samba

and open setting file

sudo vi /etc/samba/smb.conf

and inset these lines at the end of the setting file.

[homes]
   comment = Home Directories
   browseable = yes
   read only = no
   guest ok = no
   create mask = 0664

   directory mask = 0755

and save and exit.

Now you can access by explorer.


2014년 4월 25일 금요일

Use SSD as Rootfs

    0  sudo su - root
    1  mkdir /tmp/1 /tmp/target
    2  mount /dev/nandb /tmp/1
    3  fdisk -l
    4  mkfs.ext4 /dev/sda1
    5  fdisk /dev/sda1
        n > p > 1 > ENTER > ENTER > w
    6  mkfs.ext4 /dev/sda1
    7  mount /dev/sda1 /tmp/target
    8  (cd /tmp/1; tar --backup -c *) |tar -C /tmp/target -xv
    9  mkdir /tmp/boot
   10  mount /dev/nanda /tmp/boot
   11  cd /tmp/boot/
   12  ls
   13  nano uEnv.txt
   14  Change nand_root
         /dev/nandb -> /dev/sda1
   15  Sync
   16  reboot

If you want to change boot drive from SSD to nand. change uEnv.txt

         

Porting Lubuntu 13.08 to CT (SD card)