If you have created a window using Glade and want to display this window on your Python program containing the event handlers of the Window, then you should follow this tutorial. This small code will load the Glade file and displays the window. Note : The Glade Project file format should be GtkBuilder. Now, let’s get down to the code. Create a Python file named window.py in the folder containing the glade file and put in the following contents :... [READ MORE]
Posts marked with "Ubuntu" in categories
Setting up Google DNS in Ubuntu
Google‘s DNS service is spreading rapidly. It’s time for you to use it. I used it and noticed some great speed changes even though my internet is just a dial up connection. Here is how to set up Google‘s DNS on your Ubuntu Linux. Open Network Settings (network-admin) by going to System -> Preferences -> Network Connections. Go to your default net connection and click on Edit button. You will get a window like below : Change the Method option to Automatic (PPP) addresses only.... [READ MORE]
Installing Wine 1.6 on Ubuntu 10.04
Wine 1.6 is not latest version for Ubuntu 10.04, but you can install it by compiling the source code and it works perfectly. See demo here. To install Wine 1.6 follow the instructions. Optional : Wine Team recommend you to uninstall previous Wine versions when installing a compiled version. But its optional. If the Wine 1.6 fails you can uninstall 1.6 and use the old version. Steps : Download the Wine 1.6 Source Code from here. Extract the wine- 1.... [READ MORE]
How to access a remote computer using SSH in Ubuntu Linux
SSH is the easiest way to access a remote computer not in graphical interface but in character interface. To access a remote computer you should need the computer’s ip address & a username of the computer. Now connect using the credentials you now have. For Example: ssh [email protected] Type the password of the user and hit enter. You now entered the user’s system. You can logout, shut down the computer if you ssh root user.... [READ MORE]
Revert back to normal resolution after running a fullscreen app in Wine
While running a fullscreen app in Wine such as games, you might not get the screen resolution back after you close the app. It’s because Linux won’t automatically change it’s resolution like Windows. But you could if you run a simple file in terminal. Here is how you could do it. Create a file named normal.sh in your Desktop with the following contents: #!/bin/bash xrandr -s 0 Save it on a place where you can open it easily.... [READ MORE]
How to make a file executable in Ubuntu Linux
Executable files are files that can be used to run a program or to do a specific purpose specified in the file. Normally not all files defaultly would be executable in Linux because of security reasons. If all files are defaultly executable then the scripts can do whatever the hell they want to do in your computer. As we call them VIRUSES. This is one of the main reasons why you should use Linux.... [READ MORE]
How To Log Out Using Terminal in Ubuntu Linux
There is no specific command to logout in an Ubuntu system. Why ? Here’s how it works. The desktop you’re seeing is a separate software. They are called Desktop Environments (DE). The default DE of Ubuntu is Unity from Ubuntu’s 11.04 versions. Before it was GNOME. There are many DEs for Ubuntu. Some of them are : Openbox XFCE LXDE and many more.. There are also separate Login Managers to provide the login screen while Ubuntu is loaded.... [READ MORE]
How to remove keyring password dialog in All Ubuntu versions
You will be getting a keyring unlocker dialog to type your password to unlock the keyrings such as: Password you stored in Web Browsers (Google Chrome, Chromium) Passwords stored in Chat and Mail Applications (Empathy, Pidgin, Evolution) and other passwords This passwords should be unlocked each time you login but won’t automatically unlock when you login. To automatically unlock you can do as follows: Open Terminal (CTRL + ALT + T) and do the following command: seahorse You will get the Passwords & Encryption Keys window : Right click on the folder Password: default and choose Change Password : Type the old password you used to unlock the keyring and leave the other two fields empty and click on OK button.... [READ MORE]
How to edit/clear Ubuntu Terminal commands history ?
This simple trick will help you to clear or edit terminal commands you entered in Terminal of Ubuntu. Open the file /home/user/.bash_history (Replace red text with your username. To make it simple Go to your home folder and Press CTRL + H. It will show hidden files. search for the file .bash_history Edit the file. You can see all the commands you entered in Terminal. Remove what you don’t want and save.... [READ MORE]
Updating site in App Fog on Linux / Uploading site files to App Fog Server
You might have know what is App Fog in my previous post. In this tutorial I am going to tell you how to upload your site files to their servers. For that first install Ruby by using this command : sudo apt-get install ruby Then install Ruby Gem : sudo apt-get install gem AppFog uses a gem named AF. Install the AF gem by using the command : sudo gem install af Wait some time.... [READ MORE]