Summer Nights

A blog on embedded and real-time systems as well as on general computing issues


Forward X over ssh

This assumes you use: 1. Putty as ssh client 2. Xming as X server on Windows XP First you should save a session in Putty that connects to the given server. Now, from a command prompt, execute: Xming :0 -multiwindow -clipboard to start the Xming server. And, plink -X -load RsrvSession xterm to start the […]

Installing Ubuntu from a USB

Taken from ubuntuforums , thanks to vegetarianshrimp. Windows UNetbootin Insert your USB flash drive (1GB should be enough, although less may work too, I just haven’t tested it with less) Go to Click on Download (for Windows) Install the .exe Open Unetbootin. In the UNetbootin window, there will be a drop-down menu “==Select Distribution==” […]

Clipboard not working in Windows XP

What will you do, if all of a sudden, without any apparent reason, the clipboard stops working? There is not much except to reboot, eh? Stop. The reason could be a malfunctioning application that is not letting go of the clipboard. Try searching for this GetOpenClipboardWindow utility. It will inform you of the application holding […]

Shutdown/Reboot Windows Remotely from Linux

To shutdown: net rpc SHUTDOWN -f -I 192.168.XX.XX -U USERNAME%PASSWORD To reboot: net rpc SHUTDOWN -r -f -I 192.168.XX.XX -U USERNAME%PASSWORD Works perfectly!

Mounting a linux folder in windows as a network drive using Samba

This procedure is based on this excellent tutorial on Ubuntu forums by stormbringer. First you need to make sure that samba is installed. If not, use the following to install it. apt-get install samba This assumes you are logged in as root. Now we need to edit the samba configuration file: emacs /etc/samba/smb.conf In the […]

Adding a Windows Share in Linux using Samba

Update your /etc/fstab file in a way similar to: # /etc/fstab: static file system information. # # proc /proc proc defaults 0 0 # /dev/sda1 /dev/sda1 / ext3 defaults,errors=remount-ro,usrquota,grpquota 0 1 # /dev/sda5 /dev/sda5 none swap 0 0 #/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0 //$ /home/user1/share1 cifs auto,iocharset=utf8,uid=linuxuserid,gid=users,credentials=/somefolder/credentialfile,file_mode=0775,dir_mode=0775 0 0 //$ /home/user1/share2 cifs auto,iocharset=utf8,uid=linuxuserid,gid=users,credentials=/somefolder/credentialfile,file_mode=0775,dir_mode=0775 0 […]

Using newmat11 for Matrix Calculations

If you need a good C++ matrix library for scientific computations, then newmat11 could be your choice. Written by Robert B. Davies, it is a complete matrix library, providing all matrix arithmetic, transpose, inverse, SVD, etc. You have to compile the library into either a static lib or a dll library. I compiled it with […]

Send XP to hibernation from command prompt

Issue: rundll32.exe powrprof.dll,SetSuspendState Hibernate

Console Calculator for Windows

It is the best calculator I have seen for windows. There are expressions that are a bit complex for standard windows calculator and too simple for a tool like Matlab. Console calculator fills this niche very nicely. Get it here. Thank you Scott Cogan!

Using subst to map folders to drive letters

I have been using “Map Network Drive” feature of Windows XP to map folders on my local drives to drive letters. It is sometimes required in order to provide consistent folder paths for projects developed by a team. The downside of this approach is that the mapped drives are not available when you are not […]

Previous Posts Next posts