srijeda, 24. prosinca 2008.

Popravljanje Eliasa

Dignut Ubuntu lajv da ne mounta particije, pa runat e2fsck...

sudo e2fsck -fvC 0 /dev/hdXY

-v - be verbose
-f - force check
-C 0 (ovo je nula) - progress bar

srijeda, 19. studenoga 2008.

How to log into a remote ubuntu machine after it's reboot

To log in, ssh into the host like this:

ssh -l username ip address or the host name

so:
ssh -l MyUserName 255.255.255.255

then, type in

vncserver

it will give you something like
root@compname:~# vncserver

New 'X' desktop is compname:1

If the password doesn't work, remove the passwd files in the vnc folder of the remote computer:

rm .vnc/passwd


Then repeat the vncserver command; it'll ask for a password to be created so just type one in.

VNC connection

To get into another comp through ubuntu vnc (assuming it's already set up on the other comp):

vncviewer 255.255.255.255:0

:0 is the vnc desktop you left open for yourself... 255.255.255.255 is obviously an ip adress, type in the correct one.

If you're still a moron:
https://help.ubuntu.com/community/VNC

ponedjeljak, 20. listopada 2008.

How to force mount a partition in Ubuntu /bash/

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/

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:

  • 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
Then, in VS, run:

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

ponedjeljak, 6. listopada 2008.

Fluent 6.3.26 on Intel machine:

Install :
Fluent_install-lnamd64-6.3.26.sh
Set up licensing

Then,
sudo gedit .bashrc

add:
export FLUENT_ARCH=lnamd64

install (Synaptic):
libstdc++ 5

Run fluent
For parallel, run Ethernet with sockets.

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