I hate viewing logs in terminal with nano - it's just extremely inconvenient. There is an easy way to browse through a remote server's files if you have SSH access to the server in a GUI way using KDE's file manager Dolphin:
ctrl + L - to type the location manually, then:
fish://user_name@xxx.xxx.xx.xxx/directory
fish - istead of ssh to connect to the server;
user_name - the user on the server, e.g. root;
xxx.xxx.xx.xxx - the server's IP address;
/directory - the directory you want to connect to; if you don't specify the directory, you'll just connect to the user's folder (root - if you connect as root) after which you'll be able to navigate further.
Wednesday, January 30, 2013
Tuesday, November 20, 2012
How to install ionCube loader on Ubuntu 12.04
Some CMS (content management systems) may require IonCube Loader which is a PHP extension to encode PHP files.
If your Ubuntu system / server is 64-bit:
cd /usr/local sudo wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz sudo tar xzf ioncube_loaders_lin_x86-64.tar.gz
Next step is to check if PHP loads the extension:
echo "zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.4.so" | sudo tee /etc/php5/conf.d/ioncube.ini
Then restart the webserver:
The extension is not in the Ubuntu repos, so you'll have to grab it from the developer's website. (http://www.ioncube.com/loaders.php).
If your Ubuntu system / server is 32-bit:
Here is how to install IonCube Loader on Ubuntu 12.04 (and other releases and editions of Ubuntu as well).
cd /usr/local
sudo wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz sudo tar xzf ioncube_loaders_lin_x86.tar.gz
sudo wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz sudo tar xzf ioncube_loaders_lin_x86.tar.gz
If your Ubuntu system / server is 64-bit:
cd /usr/local sudo wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz sudo tar xzf ioncube_loaders_lin_x86-64.tar.gz
echo "zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.4.so" | sudo tee /etc/php5/conf.d/ioncube.ini
Then restart the webserver:
sudo service apache2 restart
That's it.
Thursday, November 8, 2012
How to install skype on Ubuntu / Kubuntu / Xubuntu 12.04 / 12.10
Installing Skype on Ubuntu / Kubuntu 12.04 / 12.10 and other flavors of Ubuntu is easy, even though it's not in the official repos.
Head to the official Skype website - skype.com -> Get skype -> Skype for Linux -> Download -> select the package for Ubuntu that suits your architecture - there are packages for (K/X)Ubuntu 32-bit and (K/X)Ubuntu 64-bit.
In short, here is the link to get Skype for linux - http://www.skype.com/intl/en/get-skype/on-your-computer/linux/ (there are packages for some other distros, as well).
Download the package, double-click -> install. The package manager will pull down all the dependencies and will install Skype on your Ubuntu system.
Tuesday, November 6, 2012
How to change splash screen resolution after installing proprietary Nvidia drivers on Ubuntu
Since Maverick Meerkat or so, after you install the proprietary Nvidia driver on Ubuntu and its flavors and derivatives (Kubuntu, Xubuntu, Linux Mint, etc.), the splash screen resolution gets too small, and you stop seeing the nice splash screen that worked with open drivers, and see some broken text instead while the system is loading. This is not critical, of course, the system normally boots anyway, and after it's loaded, the resolution is the one that has to be. However, having an ugly splash screen is bad, and here is how to fix this.
1) Determine the resolution Grub can support. It's not necessarily the optimal one for you system (for example, my optimal resolution is 1440x900, but I found out Grub didn't support it).
1) Determine the resolution Grub can support. It's not necessarily the optimal one for you system (for example, my optimal resolution is 1440x900, but I found out Grub didn't support it).
To do so, reboot, on reboot press "c" key on your keyboard to enter grub console.
In the grub console type:
vbeinfo
The command will list all the resolutions supported by Grub.
Note the closest (to your native one) supported resolution from the list (for my 1440x900 screen, the closest one was 1280x1024x32 - yes, it suggests it's longer but it's what I used and was happy with the result; x32 stays for color depth).
2) Next step is to edit the following file
/etc/default/grub
(Run kdesu kate /etc/default/grub or gksu gedit /etc/default/grub to edit the file with the necessary superuser permissions; change kate/gedit with the text editor you prefer, and kdesu/gksu are for KDE and Gnome/Unity/Xfce, respectively).
In the file, locate the string #GRUB_GFXMODE=640x480. Yes, it's commented (#). Leave it so. Put the following line after #GRUB_GFXMODE:
GRUB_GFXPAYLOAD_LINUX=1280x1024x32 // << the resolution may differ! (see step 1)
Then run:
In the file, locate the string #GRUB_GFXMODE=640x480. Yes, it's commented (#). Leave it so. Put the following line after #GRUB_GFXMODE:
GRUB_GFXPAYLOAD_LINUX=1280x1024x32 // << the resolution may differ! (see step 1)
Then run:
echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
sudo update-grub2
sudo update-initramfs -u
Reboot. Check the splash screen - it should be nice now.
Thursday, November 1, 2012
View available updates from terminal without updating the system / Ubuntu
I find it a faster way to install updates on my Ubuntu machine from terminal rather then using a GUI package manager.
sudo apt-get update // collects information on updated packages from the repos
sudo apt-get upgrade // install upgrades for packages for which updates are available
The commands above are cool, of course, and quick to type, but one thing always annoyed me - I could only see what was updated after I actually initialized the process of upgrading the system. Well, not cool (GUI package manager would show what packages are upgradable).
apt-get -s upgrade
These 2 show the very same output (they both simulate an upgrade, don't really do it). So the 2nd one is shorter to type.
Another command for the same purpose:
aptitude search ~U
sudo apt-get update // collects information on updated packages from the repos
sudo apt-get upgrade // install upgrades for packages for which updates are available
The commands above are cool, of course, and quick to type, but one thing always annoyed me - I could only see what was updated after I actually initialized the process of upgrading the system. Well, not cool (GUI package manager would show what packages are upgradable).
How to view available updates from terminal without updating the system:
apt-get --just-print upgradeapt-get -s upgrade
These 2 show the very same output (they both simulate an upgrade, don't really do it). So the 2nd one is shorter to type.
Another command for the same purpose:
aptitude search ~U
Anyway, I find a command like below a bit more logical when read by a human being than simulating an upgrade:
sudo yum list updates // view available upgradable packages on rpm distros.
Monday, October 29, 2012
How to remove wine entries from context menu
After you install wine, it puts itself as an option in the context menu (right click menu) for certain file types. In the very most cases I personally don't want to open a text file or an html file using wine (I generally need wine to open a few .exe files like a forex terminal, and nothing more).
Here is how to quickly remove wine entries from the context menu on Linux:
Go to /home/yourUsername/.local/share/applications/
You'll see a number of wine-extension-***.desktop files - they are responsible for the fact that you see wine as an option for certain file types.
Delete / rename all / some of those wine .desktop files to stop seeing wine as a program to open files in the context menu.
Also, remove wine entries in the file:
/home/yourUsername/.local/share/applications/mimeapps.list
Here is how to quickly remove wine entries from the context menu on Linux:
Go to /home/yourUsername/.local/share/applications/
You'll see a number of wine-extension-***.desktop files - they are responsible for the fact that you see wine as an option for certain file types.
Delete / rename all / some of those wine .desktop files to stop seeing wine as a program to open files in the context menu.
Also, remove wine entries in the file:
/home/yourUsername/.local/share/applications/mimeapps.list
Wednesday, October 17, 2012
How to change GDM cursor theme Gnome 3 Sabayon
If you change the cursor theme on your system (Advanced Settings Gnome 3), you find out the new theme is used when you're logged in, but the login screen on Gnome 3 still uses the default pointer theme. Well, it's quite typical for Sabayon, polish is not the aim of the distro, its advantages lay in other things, so Sabayon's KDE flavor has the same behavior (see this post).
I tried to resolve the issue with the cursor theme the same way I did for KDE (see the post from above), but it didn't work. So I had to resort to cheating. I installed the theme I wanted (DMZ, yeah, old good DMZ) and then:
How to change GDM cursor theme Gnome 3 (in case changing in system settings doesn't affect the theme at login):
gksu -> nemo -> /usr/share/cursors/xorg-x11/ -> rename the default Adwaita theme to something else -> rename the theme you want to be used as default to Adwaita.
It's a cheat, it's not the way things should work in a distro, but it gives me the expected result. Sad but true.
I tried to resolve the issue with the cursor theme the same way I did for KDE (see the post from above), but it didn't work. So I had to resort to cheating. I installed the theme I wanted (DMZ, yeah, old good DMZ) and then:
How to change GDM cursor theme Gnome 3 (in case changing in system settings doesn't affect the theme at login):
gksu -> nemo -> /usr/share/cursors/xorg-x11/ -> rename the default Adwaita theme to something else -> rename the theme you want to be used as default to Adwaita.
It's a cheat, it's not the way things should work in a distro, but it gives me the expected result. Sad but true.
Subscribe to:
Posts (Atom)