This is for the most irrirating thing with windows, when you don't shut it off properly it won't let you mount it's partitions (ntfs, fat... )
1. Create a directory in which to mount; basically any Linux treats disk partitions as folders, so that's what it'll do - mount a partition to a folder... do
mkdir /media/disk
"disk" can be just any folder name, but it has to be matched in the following expressions.
Then type out a command very similar to this one, but you'll need to replace /dev/sda1 with the proper partition name. Use gparted or something to view partition names. or send a command:
fdisk -l
So dev/sdb7 or dev sda5 or whatever. This command tells Ubuntu to use the ntfs-3g driver, and force mount even if there is a problem.
So, for for ntfs:
mount -t ntfs-3g /dev/sda1 /media/disk -o force
For fat32:
mount -t vfat -o umask=000 /dev/sda1 /media/disk
More on
http://www.howtogeek.com/howto/windows-vista/use-ubuntu-live-cd-to-backup-files-from-your-dead-windows-computer/
Ubuntu how-to, mostly for my own purposes. Will help people who are very new to Ubuntu and Linux in general.
ponedjeljak, 20. listopada 2008.
utorak, 14. listopada 2008.
Qt in VS 2005
This ain't Ubuntu but I preffer VS as development enviroment, so I'm gonna post here a few notes on how to install it for the next time I forget to do half of it and am wondering wth went wrong...
After downloading the free version yadda yadda yadda from http://trolltech.com/, unpacking the thing and so on:
configure -platform win32-msvc2005 -static -debug-and-release -fast -qt-sql-sqlite -no-qt3support -vcproj
for a static build. This allows you to build projects with static libraries, meaning it's gonna work on every platform without Qt pre-installed on the comp. In case you need a dynamic build:
configure -platform win32-msvc2005 -debug-and-release -fast -qt-sql-sqlite -no-qt3support -vcproj
The dynamic build is going to be required if you're gonna use external widgets and other Qt stuff. With free version of Qt, these won't work with a static build. (pah.)
After that finishes, just run
nmake
If something went wrong, nmake -clean or nmake -confclean.
For enabling Visual Assist, go to VS IDE, VAssistX->Visual Assist X Options->C/C++ Directories
and add paths to: C:\Qt\4.4.0\src and C:\Qt\4.4.0\include. Change platform to Custom.
Should work (on x86). Still struggling with x64... :(
More help on:
General Qt Installation:
http://doc.trolltech.com/4.4/installation.html
Visual Assist X integration:
http://www.qtcentre.org/forum/f-qt-programming-2/t-visual-assist-x-and-qt-6870.html
After downloading the free version yadda yadda yadda from http://trolltech.com/, unpacking the thing and so on:
- add path to Qt folder to enviroment variable PATH; usually C:\Qt\4.4.0 or something
- Open Visual Studio Command Prompt, get into C:\Qt\4.4.0
configure -platform win32-msvc2005 -static -debug-and-release -fast -qt-sql-sqlite -no-qt3support -vcproj
for a static build. This allows you to build projects with static libraries, meaning it's gonna work on every platform without Qt pre-installed on the comp. In case you need a dynamic build:
configure -platform win32-msvc2005 -debug-and-release -fast -qt-sql-sqlite -no-qt3support -vcproj
The dynamic build is going to be required if you're gonna use external widgets and other Qt stuff. With free version of Qt, these won't work with a static build. (pah.)
After that finishes, just run
nmake
If something went wrong, nmake -clean or nmake -confclean.
For enabling Visual Assist, go to VS IDE, VAssistX->Visual Assist X Options->C/C++ Directories
and add paths to: C:\Qt\4.4.0\src and C:\Qt\4.4.0\include. Change platform to Custom.
Should work (on x86). Still struggling with x64... :(
More help on:
General Qt Installation:
http://doc.trolltech.com/4.4/installation.html
Visual Assist X integration:
http://www.qtcentre.org/forum/f-qt-programming-2/t-visual-assist-x-and-qt-6870.html
Oznake:
installation,
programiranje,
programming,
Qt,
Visual Studio
ponedjeljak, 6. listopada 2008.
Reinstall Ubuntu Grub Bootloader After Windows Wipes it Out
1) Boot off the LiveCD
2) Open a Terminal and type in the following commands, noting that the first command will put you into the grub "prompt", and the next 3 commands will be executed there. Also note that hd0,0 implies the first hard drive and the first partition on that drive, which is where you probably installed grub to during installation. If not, then adjust accordingly.
sudo grub
> root (hd0,0)
> setup (hd0)
> exit
Pretplati se na:
Postovi (Atom)