a program segfaults but there is no core dump?
%ulimit -c unlimited
http://mutexlock.blogspot.com/2009/07/segmentation-fault-but-no-core-dump.html
Monday, January 17, 2011
Sunday, January 16, 2011
Getting SMB to work on CentOS 5
I followed these instructions for command line setup.
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-samba-configuring.html
Make the following changes to /etc/samba/smb.conf
workgroup = ADS
server string = Matt's Penguin box, Samba Server Version %v
[mullermw]
comment = mullermw's stuff
path = /local/mullermw
valid users = mullermw root
public = yes
writeable = yes
printable = no
create mask = 0765
Be sure to set up a password for the user.
%smbpasswd -a mullermw
I'd like to know if there's a way to use the machine password.
When connecting, prepend the username with the domain: ADS/mullermw
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-samba-configuring.html
Make the following changes to /etc/samba/smb.conf
workgroup = ADS
server string = Matt's Penguin box, Samba Server Version %v
[mullermw]
comment = mullermw's stuff
path = /local/mullermw
valid users = mullermw root
public = yes
writeable = yes
printable = no
create mask = 0765
Be sure to set up a password for the user.
%smbpasswd -a mullermw
I'd like to know if there's a way to use the machine password.
When connecting, prepend the username with the domain: ADS/mullermw
Friday, January 7, 2011
Somehow I broke yum on CentOS 5.5. I was getting this:
http://stuff.nekhbet.ro/2010/05/27/yum-error-on-centos-5.html
I was able to fix it following this:There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:No module named cElementTree
Please install a package which provides this module, or
verify that the module is installed correctly.It’s possible that the above module doesn’t match the
current version of Python, which is:
~~~~~~If you cannot solve this problem yourself, please go to
the yum faq at:http://wiki.linux.duke.edu/YumFaq
http://stuff.nekhbet.ro/2010/05/27/yum-error-on-centos-5.html
Monday, September 13, 2010
Remote Ubuntu Desktop Solution
I want to see the full Ubuntu/Gnome desktop from my laptop over VNC using my 24inch monitor.
1. Installed vnc4server using Synaptic Package Manager.
2. Run these commands, first time it will ask for password and setup ~/.vnc
%vncserver -geometry 1920x1200 :1
%vncserver -kill :1
3. edit ~/.vnc/xstartup to the following
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
gnome-session &
4. There is still some problem getting Gnome to start with this configuration. This solution worked form me : http://www.linuxquestions.org/questions/linux-newbie-8/vnc-connection-not-working-708806/
%unset DBUS_SESSION_BUS_ADDRESS
%vncserver -geometry 1920:1200 :1
5. Connect to machine using RealVNC view from windows laptop.
The display quality could be better. Also I still need to figure out how to make this secure.
1. Installed vnc4server using Synaptic Package Manager.
2. Run these commands, first time it will ask for password and setup ~/.vnc
%vncserver -geometry 1920x1200 :1
%vncserver -kill :1
3. edit ~/.vnc/xstartup to the following
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
gnome-session &
4. There is still some problem getting Gnome to start with this configuration. This solution worked form me : http://www.linuxquestions.org/questions/linux-newbie-8/vnc-connection-not-working-708806/
%unset DBUS_SESSION_BUS_ADDRESS
%vncserver -geometry 1920:1200 :1
5. Connect to machine using RealVNC view from windows laptop.
The display quality could be better. Also I still need to figure out how to make this secure.
Wednesday, August 11, 2010
Eclipse CDT/Cygwin Path problems with Make
This one drove me crazy!
When I added /opt/hdf5/include to the Includes for my project, the IDE was flagging my #include statements as errors but make executed just fine. If I used C:\cygwin\opt\hdf5\include The IDE didn't flag errors but the make was broken as I would get these "*** multiple target patterns".
Apararently this is a bug in the make that comes with cygwin. In 3.81, make cannot resolve windows style paths. The problem went away when I replaced /usr/bin/make.exe with http://www.cmake.org/files/cygwin/make.exe.
Source: http://www.cygwin.com/ml/cygwin/2009-04/msg00007.html
When I added /opt/hdf5/include to the Includes for my project, the IDE was flagging my #include statements as errors but make executed just fine. If I used C:\cygwin\opt\hdf5\include The IDE didn't flag errors but the make was broken as I would get these "*** multiple target patterns".
Apararently this is a bug in the make that comes with cygwin. In 3.81, make cannot resolve windows style paths. The problem went away when I replaced /usr/bin/make.exe with http://www.cmake.org/files/cygwin/make.exe.
Source: http://www.cygwin.com/ml/cygwin/2009-04/msg00007.html
Tuesday, August 10, 2010
Setting up CDT/cygwin
Installed Helios and CDT on my XP/cygwin laptop.
Worked through the example at: http://www.ibm.com/developerworks/opensource/library/os-eclipse-stlcdt
There was a source code problem in the debugger section, instead of showing the code I got an error message:
Can't find a source file at "/cygdrive/c/................
I think the problem is that gdb tells Eclipse the problem is in /cygdrive/c/ etc.... Eclipse doesn't know /cygdrive/c is the same as c:. Problem solved by telling it in Windows>Preferences>C/C++>Debug>Common Source Lookup>Add>Path Mapping
Worked through the example at: http://www.ibm.com/developerworks/opensource/library/os-eclipse-stlcdt
There was a source code problem in the debugger section, instead of showing the code I got an error message:
Can't find a source file at "/cygdrive/c/................
I think the problem is that gdb tells Eclipse the problem is in /cygdrive/c/ etc.... Eclipse doesn't know /cygdrive/c is the same as c:. Problem solved by telling it in Windows>Preferences>C/C++>Debug>Common Source Lookup>Add>Path Mapping
Saturday, August 7, 2010
Imaging my mini 9
Pissed off after spending half a day restoring XP to my mini 9...decided to Set up a backup image.
Need a USB drive, no larger than 4gb. Must be FAT16 (FAT) formatted.
Installed Macrium Reflect
http://www.macrium.com/reflectfree.asp
Followed these instructions on how to prep a USB recovery disk.
http://www.macrium.com/blog/CommentView,guid,7dc864ff-7b53-420c-9b79-c318c3050bc6.aspx
Use Macrium Reflect to create an image. Save the image to another USB disk (FAT32).
Test out the recovery procedure:
Need a USB drive, no larger than 4gb. Must be FAT16 (FAT) formatted.
Installed Macrium Reflect
http://www.macrium.com/reflectfree.asp
Followed these instructions on how to prep a USB recovery disk.
http://www.macrium.com/blog/CommentView,guid,7dc864ff-7b53-420c-9b79-c318c3050bc6.aspx
Use Macrium Reflect to create an image. Save the image to another USB disk (FAT32).
Test out the recovery procedure:
Boot from the USB recovery disk.
Insert the disk containing the image.
Followed the recommended recovery settings.
Boot with restored HD.
XP does a Filesystem check before booting successfully.
It works!
Subscribe to:
Posts (Atom)