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
Saturday, July 2, 2011
Tuesday, September 1, 2009
ifconfig
Renews the IP address.
Assign eth0 with the above values for IP, netmask and broadcast address.
dhclient eth0Assign 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 sizesdu -skh * |sort -n -r list folder sizesdu -sh folder folder size
sshfs remote mount
sudo chmod og-rwx localFolder/sudo sshfs user@remoteHost:remoteFolder/ localFolder/ -o allow_other
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"
Requires code. Syntax: Activechart.Export
You can use this in the immediate window,(ALT+F11 CTRL+G)
Activechart.export "C:\mychart.jpg"
Subscribe to:
Posts (Atom)