sudo ifconfig eth0:[0-254] 192.168.1.2 up.Instead of
eth0 you can use any of existing interfaces
sudo ifconfig eth0:[0-254] 192.168.1.2 up.eth0 you can use any of existing interfaces
firefox -profilemanager
firefox -no-remote -P <profile name>
To get work Django and Oracle client in Ubuntu:
Download cx_Oracle (choose for your system), Oracle InstantClient and Sql*Plus (in this page you can choose your OS and download the packages (in my case are oracle-instantclient11.2-basic-11.2.0.0.2-1.x86_64.rpm and oracle-instantclient11.2-sqlplus-11.2.0.0.2-1.x86_64.rpm).
Move the files into one directory for simplicity and run
alien -k *.rpm dpkg -i *.debto convert all the downloaded packages to ubuntu deb-format and install them.
Then make symlink to lib, otherwise module won't be found by Django
cd /usr/lib/python2.6 ln -s site-packages/cx_Oracle.so
To avoid
Traceback (most recent call last): File "add to ~/.bashrc (or /etc/bash.bashrc to system-wide apply)", line 1, in ImportError: libclntsh.so.10.1: cannot open shared object file: No such file or directory
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/oracle/11.2/client64/libIf you see the message
Traceback (most recent call last): File "run", line 1, in ImportError: libaio.so.1: cannot open shared object file: No such file or directory
sudo apt-get install -y libaio1
P.S. If you choose more modern (or older) version of Oracle IntstantClient you have to create symlinks for necessary version, e.g. you see the following error:
Traceback (most recent call last): File "but in /usr/lib/oracle/11.2/client64/lib directory exists libclntsh.so.11.1. Just make it symbolic link with", line 1, in ImportError: libclntsh.so.10.1: cannot open shared object file: No such file or directory
ln -s libclntsh.so.11.1 libclntsh.so.10.1
sudo apt-get install alien
alient -k <package-file>.rpm
dpkg -i <package-file>.deb
NetworkManager: nm-vpn-connection.c.828: NeedSecrets failed: dbus-glib-error-quark Rejected se nd message, 1 matched rules; type="method_call", sender=":1.5" (uid=0 pid=969 comm="NetworkManager) interface="org.freedeskt op.NetworkManager.VPN.Plugin" member="NeedSecrets" error name="(unset)" requested_reply=0 destination="org.freedesktop.Netwo rkManager.vpnc" (uid=0 pid=7971 comm="/usr/lib/network-manager-vpnc/nm-vpnc-service))Some googling gives me a bit of information - Keyring manager denied connection of the VPN service. And how to grand access I didn't know. Googling more brings me the answer:
--- nm-vpnc-service.conf.fixed 2009-04-18 17:56:45.000000000 -0500 +++ nm-vpnc-service.conf 2009-04-18 17:57:37.000000000 -0500 @@ -6,6 +6,10 @@ <allow own="org.freedesktop.NetworkManager.vpnc"/> <allow send_destination="org.freedesktop.NetworkManager.vpnc"/> </policy> + <policy user="at_console"> + <allow own="org.freedesktop.NetworkManager.vpnc"/> + <allow send_destination="org.freedesktop.NetworkManager.vpnc"/> + </policy> <policy context="default"> <deny own="org.freedesktop.NetworkManager.vpnc"/> <deny send_destination="org.freedesktop.NetworkManager.vpnc"/>
sudo apt-get install unrar
[extensions]
hgext.mq =
sudo dpkg-reconfigure -phigh -asince this command would take a lot of time to process (~1 hour) depending on your hardware in case you have a minor dependency problem you can fix it via
sudo apt-get install -fSource.
To create a database and a user, to grant some privileges:
CREATE DATABASE test_db DEFAULT CHARACTER SET UTF8; CREATE USER 'user'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON test_db.* TO 'user'@'%';
apt-get install postgresql postgresql-client postgresql-contrib # To reset password for postgres user echo "ALTER USER postgres WITH PASSWORD 'postgres';" | sudo -u postgres psql template1 # reset password for system user passwd postgresIn bottom of /etc/postgresql/8.4/main/pg_hba.conf file set as the following:
# DO NOT DISABLE! # If you change this first entry you will need to make sure that the # database # super user can access the database using some other method. # Noninteractive # access to all databases is required during automatic maintenance # (custom daily cronjobs, replication, and similar tasks). # # Database administrative login by UNIX sockets local all postgres ident
# TYPE DATABASE USER CIDR-ADDRESS METHOD # "local" is for Unix domain socket connections only local all all md5 # IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5