Thursday, December 26, 2013

mout exfat in ubuntu

How to mount exfat in kali or ubuntu/debian like distribution, one solution occurred in many posts is like below,

apt-get install python-software-properties
add-apt-repository ppa:relan/exfat
apt-get update
apt-get install fuse-exfat
mount -t exfat /dev/sdc1 /media/exfat 

but it doesn't work for me.

The other solution listed below works for me ,

apt-get install libfuse-dev # for fuse.h
download fuse-exfat from http://code.google.com/p/exfat/
follow instructions in http://code.google.com/p/exfat/wiki/HOWTO
scons
scons install
mount.exfat-fuse /dev/sdXn /mnt/exfat

Wednesday, December 25, 2013

my new kali source.list

My Kali repository mirror is referred to http://mirror.hust.edu.cn, but somehow, it is slow for me to do apt-get update and dist-upgrade. So I wanna to manually change the mirror site. According to instructions in http://www.blackmoreops.com/2013/11/14/change-repositories-different-mirror/, I currently change my mirror to http://mirrors.neusoft.edu.cn/ instead.

So my source.list is listed below,

for kali 1
#

# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL Binary 20130905-08:50]/ kali contrib main non-free
#deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL Binary 20130905-08:50]/ kali contrib main non-free

#deb http://http.kali.org/kali kali main non-free contrib
#deb-src http://http.kali.org/kali kali main non-free contrib
#deb http://mirrors.neusoft.edu.cn/kali kali main non-free contrib
#deb-src http://mirrors.neusoft.edu.cn//kali kali main non-free contrib
#deb http://archive-4.kali.org/kali kali main non-free contrib
#deb-src http://archive-4.kali.org/kali kali main non-free contrib
deb http://kali.cs.nctu.edu.tw/kali kali main non-free contrib
deb-src http://kali.cs.nctu.edu.tw/kali kali main non-free contrib

## Security updates
#deb http://security.kali.org/kali-security kali/updates main contrib non-free
#deb http://mirrors.neusoft.edu.cn/kali-security kali/updates main contrib non-free
deb http://kali.cs.nctu.edu.tw/kali-security kali/updates main contrib non-free
#deb http://ftp.halifax.rwth-aachen.de/kali-security kali/updates main contrib non-free
#deb http://archive-4.kali.org/kali-securinty kali/updates main contrib non-free

for kali2
# Regular repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
 # Source repositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

 Reference
http://www.blackmoreops.com/2015/08/13/how-to-add-official-kali-linux-repositories/

Thursday, December 05, 2013

zeroconf

In ubuntu or debian like distribution,
apt-get install avahi-daemon avahi-discover libnss-mdns

Try avahi-discover to discover nearby zeroconf machine.

Then check /etc/hostname content, for example mine is kali-j2c

Others can ping kali-j2c.local to reach this device.

Troubleshooting 1:
If the error "avahi-daemon disabled because there is a unicast .local domain" occurred, try to update /etc/default/avahi-daemon to make sure

Solution:
AVAHI_DAEMON_DETECT_LOCAL=0

Troubleshooting 2:
$update-rc.d avahi-daemon defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: current start runlevel(s) (empty) of script `avahi-daemon' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `avahi-daemon' overrides LSB defaults (0 1 6).

Solution:
$update-rc.d avahi-daemon remove
$update-rc.d avahi-daemon defaults

Reference:
https://help.ubuntu.com/community/HowToZeroconf
http://www.jackenhack.com/raspberry-pi-avahi-daemon-disabled-because-there-is-a-unicast-local-domain-solved/
http://www.blackmoreops.com/2014/06/19/kali-linux-remote-ssh/