If you have ever set up a Ubuntu machine and then wanted to connect to it via VNC without having a monitor hooked up you will likely find that the resolution defaults to 640X480 which is completely useless to work on.
To fix, simply add a couple of lines to the xorg.conf file.
cd /etc/X11
sudo cp xorg.conf xorg_backup.conf
sudo gedit xorg.conf
Add the following two lines to the “Monitor” section:
HorizSync 31-101
VertRefresh 60-160
Save and restart the system.
Technorati Tags: VNC, resolution, screen, headless, Ubuntu
I know I find myself in this predicament quite often. I download a bunch of new WordPress themes or any other collection of zip files and place them into a folder.
Then I want to unzip all of them into their respective folders in one swift motion.
The code to do so from the terminal?
First browse to the directory containing all the zip files and then issue this command:
unzip \*.zip
Simple huh?
Technorati Tags: linux, unzip, commands
Sometimes you may run into a pickle where the desktop becomes unresponsive.
To heal this predicament type at the Terminal:
killall gnome-panel
This will restart Gnome desktop.
Technorati Tags: terminal, gnome, gnome panel
This is a little more advanced than the last few topics but I want to appeal to all Ubuntu/Linux users over time and not just beginners…
So without further ado, here is a few ssh syntax tips (this also applies to most versions of Linux):
(replace items in < > with your stuff, without the < >)
SSH:
ssh -p <port number> <username>@<server name>
SSH to accept socks 5 proxy on port you specify:
ssh -p <port number> <username>@<server name> -D <port to watch>
SFTP:
sftp -oPort=<port number> <username>@<server name>
Forward the X server from your remote box:
ssh -X -p <port number> <username>@<remote computer>
Technorati Tags: SSH, SFTP, syntax, ports