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 :
... [READ MORE]Program to Replace localhost links with website url
Here is the Python code :
#!/usr/bin/python
... [READ MORE]
import os
indir = ‘/var/www/mysite‘ #!Folder of your localhost site.
for root, dirs, filenames in os.walk(indir):
for f in filenames:
log = open(os.path.join(root, f), ‘r+’)
f=log.read()
n=f.replace("http://localhost", "http://mysite.com")
log.seek(0)
log.truncate()
log.write(n)
log.close()
print "Successfully Replaced."
Wine 1.6 is released with 10,000 changes
What’s New ?
- New User Interface
- Networking capabilities
- Support for Windows Transparency
- Graphics improved
- JoyStick Installing
- Mono package for .NET applications support
- Support of new softwares and games.
- Improved Input validation
- Mac Driver
- Direct3D
and more. Wine Team officially said that the new Wine version more than 10,000 changes.
How to access a remote computer using SSH in Ubuntu Linux
... [READ MORE]
Revert back to normal resolution after running a fullscreen app in Wine
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. Make the file Executable to run it in a terminal. See this post to see how you could make a file executable.
... [READ MORE]How to make a file executable in Ubuntu Linux
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. When you log in, the Login Manager starts the default DE set up on your system and when this DE program is closed or terminated, it will go back to the Login Screen or Login Manager.
... [READ MORE]Why you should switch to Linux from Windows 8
How to edit/clear Ubuntu Terminal commands history ?
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.
Updating site in App Fog on Linux / Uploading site files to App Fog Server
sudo apt-get install ruby
sudo apt-get install gem
sudo gem install af
... [READ MORE]