ubuntu-11.10

How to add RSA key to authorized_keys file?

冷暖自知 提交于 2019-12-03 01:34:12
问题 I've created an RSA public key and I want to add that to authorized_keys file, but there is no such file in my Ubuntu 11.10 machine. How can I add the key to authorized_keys ? 回答1: Make sure when executing Michael Krelin's solution you do the following cat <your_public_key_file> >> ~/.ssh/authorized_keys Note the double > without the double > the existing contents of authorized_keys will be over-written (nuked!) and that may not be desirable 回答2: mkdir -p ~/.ssh/ To overwrite authorized_keys

git gui and gitk not present after installing git

╄→гoц情女王★ 提交于 2019-12-02 16:36:37
I am using Ubuntu 11.10 and have just installed git using sudo apt-get install The basic git commands seem to work. (I have created a repository and added a directory structure to it.) But not git gui or gitk. This is what I get peter@peter-Inspiron-620:/var/www$ sudo git gui git: 'gui' is not a git command. See 'git --help'. Did you mean one of these? grep init pull push peter@peter-Inspiron-620:/var/www$ For gitk peter@peter-Inspiron-620:/var/www$ sudo gitk sudo: gitk: command not found peter@peter-Inspiron-620:/var/www$ Do those commands run on Ubuntu and do I need to install them

How can I restore /etc/nginx? [closed]

时光怂恿深爱的人放手 提交于 2019-12-02 15:39:19
By mistake I have removed /etc/nginx directory in my ubuntu 11.10 PC. How can I restore the ngnix directory in /etc/nginx ? I did these commands: sudo su rm -rf /etc/nginx I want to get again /etc/nginx directory. how? I tried this to re-install nginx: sudo apt-get update sudo apt-get upgrade sudo apt-get install nginx then it gives following Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package nginx How can i get full nginx software on ubuntu 11.10? aravind.udayashankara To recreate it, first uninstall using purge to remove even

How to add RSA key to authorized_keys file?

泄露秘密 提交于 2019-12-02 15:03:41
I've created an RSA public key and I want to add that to authorized_keys file, but there is no such file in my Ubuntu 11.10 machine. How can I add the key to authorized_keys ? donden1 Make sure when executing Michael Krelin's solution you do the following cat <your_public_key_file> >> ~/.ssh/authorized_keys Note the double > without the double > the existing contents of authorized_keys will be over-written (nuked!) and that may not be desirable Michael Krelin - hacker mkdir -p ~/.ssh/ To overwrite authorized_keys cat <your_key >~/.ssh/authorized_keys To append to the end of authorized_keys cat

Mono-LibreOffice System.TypeLoadException

我是研究僧i 提交于 2019-12-02 10:02:55
问题 In the past I wrote a C# library to work with OpenOffice and this worked fine both in Windows than under Ubuntu with Mono. Part of this library is published here as accepted answer. In these days I discovered that Ubuntu decided to move to LibreOffice, so I tried my library with LibreOffice latest stable release. While under Windows it's working perfectly, under Linux I receive this error: Unhandled Exception: System.TypeLoadException: A type load exception has occurred. [ERROR] FATAL

Mono-LibreOffice System.TypeLoadException

南楼画角 提交于 2019-12-02 05:30:47
In the past I wrote a C# library to work with OpenOffice and this worked fine both in Windows than under Ubuntu with Mono. Part of this library is published here as accepted answer. In these days I discovered that Ubuntu decided to move to LibreOffice, so I tried my library with LibreOffice latest stable release. While under Windows it's working perfectly, under Linux I receive this error: Unhandled Exception: System.TypeLoadException: A type load exception has occurred. [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: A type load exception has occurred. Usually Mono tells us which

error: package com.sun.tools.javac.util does not exist

坚强是说给别人听的谎言 提交于 2019-11-30 11:24:57
I'm trying to run my play 2.0.1 application on Ubuntu 11.10 and when I visit domain.com:9000 I get this error in terminal: info] Compiling 4 Scala sources and 6 Java sources to /var/www/clients/client3/web10/sc2lounge/target/scala-2.9.1/classes... [error] /var/www/clients/client3/web10/sc2lounge/app/models/Cron.java:29: error: package com.sun.tools.javac.util does not exist [error] import com.sun.tools.javac.util.List; [error] ^ [error] 1 error [error] {file:/var/www/clients/client3/web10/sc2lounge/}sc2lounge/compile:compile: javac returned nonzero exit code [error] application - ! Internal

How to command run for symfony2 in windows 7

喜欢而已 提交于 2019-11-30 09:42:06
问题 I am working on Ubuntu environment (LAMP) .But when i install symfony2 on windows 7 starter operating system i face problem when i try to make entity with command prompt in windows it not take php app/console Any help is appreciated! Thanks 回答1: You need to add the PHP executable to your PATH, or calling it with an absolute link: c:\path\to\php\php.exe app/console . 回答2: Just go to the symfony folder and start writing the symfony commands ... c:\path-to-symfony-project> for example " c:\xampp

error: package com.sun.tools.javac.util does not exist

五迷三道 提交于 2019-11-29 16:56:17
问题 I'm trying to run my play 2.0.1 application on Ubuntu 11.10 and when I visit domain.com:9000 I get this error in terminal: info] Compiling 4 Scala sources and 6 Java sources to /var/www/clients/client3/web10/sc2lounge/target/scala-2.9.1/classes... [error] /var/www/clients/client3/web10/sc2lounge/app/models/Cron.java:29: error: package com.sun.tools.javac.util does not exist [error] import com.sun.tools.javac.util.List; [error] ^ [error] 1 error [error] {file:/var/www/clients/client3/web10

After using `exec 1>file`, how can I stop this redirection of the STDOUT to file and restore the normal operation of STDOUT?

不打扰是莪最后的温柔 提交于 2019-11-29 00:16:46
I am a newbie in shell scripting and I am using Ubuntu-11.10. In the terminal after using exec 1>file command, whatever commands I give to terminal, its output doesn't get shown in terminal. I know that STDOUT is getting redirected to the file, the output of those commands gets redirected to file. My questions are here Once I use exec 1>file , how can I get rid of this? i.e. How can I stop the redirection of STDOUT to file and restore the normal operation of STDOUT (i.e. redirection to terminal rather than file)? I tried using exec 1>&- but it didn’t work as this closes the STDOUT file