Saturday, July 2, 2011

Linux Live CD Non Graphical Boot

Booting LiveCD Without X
LiveCD environments can usually be helpful for testing, but if you're troubleshooting a problem where X does not start up, that makes it difficult to retrieve the log files and other such things. But it can be done:

0. Obtain a Live CD for the release you're testing: http://cdimage.ubuntu.com/releases/

1. At the CD boot menu, add "text" to the boot options: https://help.ubuntu.com/community/BootParameters

2. The CD will now boot but not start X.

3. You can grab xrandr data without starting an X session like this:


xinit -e 'sh -c "xrandr --verbose > xrandr.txt" '
This will try to start X and log some information about the active screen resolution to the file xrandr.log before it stops X again.

4. Start up an X session like this:


startx
or


/usr/X11R6/bin/X :0

Tuesday, September 1, 2009

ifconfig

Renews the IP address.
dhclient eth0

Assign eth0 with the above values for IP, netmask and broadcast address.
ifconfig eth0 192.168.1.102 netmask 255.255.255.0 broadcast 192.168.1.255

Thursday, August 20, 2009

Rearrange table columns order

MODIFY [column] column_definition [FIRST ¦ AFTER col_name]
ALTER TABLE tableName MODIFY COLUMN originalColName int(4) AFTER destinationColName

Sunday, July 5, 2009

linux folder size

ls -skh folderlist folder sizes
du -skh * |sort -n -r list folder sizes
du -sh folder folder size

sshfs remote mount

sudo chmod og-rwx localFolder/
sudo sshfs user@remoteHost:remoteFolder/ localFolder/ -o allow_other

scp remote copy with port select

scp -P 22 sourceFile user@remoteHost:folder

Thursday, June 25, 2009

Excel export chart to jpg png

Hi,

Requires code. Syntax: Activechart.Export ,

You can use this in the immediate window,(ALT+F11 CTRL+G)

Activechart.export "C:\mychart.jpg"