ERROR:Error mounting /dev/sdb2 at /run/media/user/Study: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb2" "/run/media/user/Study"' exited with non-zero exit status 13: ntfs_attr_pread_i: ntfs_pread failed: Input/output errorFailed to read NTFS $Bitmap: Input/output errorNTFS is either inconsistent, or there is a hardware fault, or it's aSoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windowsthen reboot into Windows twice. The usage of the /f parameter is veryimportant!...
Monday, August 6, 2012
Friday, July 27, 2012
samba share - ctags: Warning: cannot open source file "directory" : Value too large for defined data type
Posted on 4:33:00 PM by Meghanad Shingate
Reason: Samba share mounted from windows in linux (fedora) may be read-only check in windows by going to properties of folder.
Solution: if its marked as read-only, un-check box.
fstab: add following lines at end of your /etc/fstab file
//server/share_name /path/to/mount/point cifs rw,uid=1000,gid=1000,credentials=/home/user_home/smbcredential_file,dir_mode=0755,file_mode=0755 0 0
details: add your credentials to smbcredentials_file:
username=server_username
password=server_password ...
Wednesday, July 25, 2012
openGL : Fedora 17 : undefined reference to symbol 'cos@@GLIBC_2.0'
Posted on 4:44:00 PM by Meghanad Shingate
ERROR:gcc wave.o -o wave -I/usr/include -L/usr/lib -lglut -lGL -lGLU -lX11 -m32/usr/bin/ld: wave.o: undefined reference to symbol 'cos@@GLIBC_2.0'/usr/bin/ld: note: 'cos@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line/lib/libm.so.6: could not read symbols: Invalid operationcollect2: error: ld returned 1 exit statusSolution:Add '-lm' flag while compiling.gcc wave.o -o wave -I/usr/include -L/usr/lib -lglut -lGL -lm -lGLU -lX11 -...
Tuesday, July 24, 2012
Sharing using SAMBA on fedora 17
Posted on 1:57:00 PM by Meghanad Shingate
Install SAMBA in fedora 17:$ sudo yum install system-config-samba samba-client samba-common samba system-config-samba system-config-usersSet SElinux permissions:$ sudo yum install policycoreutils-guiin gnome go to Administration > SELinux Management and check (set) the following booleansAllow qemu to share any file/directory read/writeAllow samba to share users home diectory Allow samba to export ntfs/fusersfs volumesConfigure Firewall :check the samba box in System > Administration > FirewallConfigure SAMBA:Adding users: Go...
Monday, July 23, 2012
Installing openGL on Fedora 17
Posted on 3:41:00 PM by Meghanad Shingate
Steps to install openGL on fedora 17:
Installing:
$sudo yum install freeglut-devel build-essential
Compiling sample program:
Get sample programs from SAMPLE PROGRAMMS
Makefile:
LDFLAGS=-lglut -lGL -lGLU -lX11 -lm
INCLUDES=-I/usr/include
LIBS=-I/usr/lib
CC=gcc
SOURCES=wave.c teapot.c logo.c
TARGETS=$(SOURCES:.c= )
DEPS=
OBJS=$(SOURCES:.c=.o)
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(INCLUDES) $(LIBS) $(LDFLAGS)
wave: $(OBJS)
$(CC) $@.o -o $@ $(INCLUDES) $(LIBS) $(LDFLAGS)
teapot: $(OBJS) ...
Tuesday, April 24, 2012
Grep excluding .svn directories
Posted on 1:05:00 AM by Meghanad Shingate
Temporary/one-time solution:grep -Rin "what r u looking for" *|grep -v "\.svn/*" 2. Permanent solution (for Ubuntu/Linux) - add following line to ~/.bashrcexport GREP_OPTIONS="--exclude=*\.sv...
Monday, April 16, 2012
Linux Kernel Cross-compilation for ARM based systems
Posted on 1:31:00 AM by Meghanad Shingate
Here is the link for small presentation regarding cross-compilation of Linux kernel for arm based systems. Presentation also includes guide for how to edit existing Linux drivers to adapt to your application.link : Linux Kernel Compilation-...
Sunday, April 8, 2012
Download Youtube Videos on Linux (Behind Proxy)
Posted on 6:22:00 PM by Meghanad Shingate
Install youtube-dlUbuntu: sudo apt-get install youtube-dlFedora: sudo yum -y install youtube-dl Open terminal and export http_proxyexport http_proxy=http://username:passwd@proxy.com:port_num/ ( escape spacial characters in password by '\')Download videosyoutube-dl --all-formats url-of-vi...
Subscribe to:
Posts (Atom)