I had statically set my ip in Linux using:
sudo ifconfig eth0 192.168.blah.blah
Now I want it to go back to using DHCP to assign the IP. How do I do that?
I have a Ubuntu Server.
From the terminal, how should I install JDK?
In this guide it says to use this command:
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
But on Suns website, it says JDK includes the JRE, so why the JRE in the line above?
Anybody know how to actually install Java?
Every guide and every forum shows different ways of doing it.
BTW: It is a VPS (virtual private server)
Thanks
Hello,
Earlier i could install software by using the 'sudo aptitude install ' command. Today when i tried to install rkhunter i am getting errors. It is not just rkhunter, i am not able to install anything.
Here is the text output:
user@server:~$ sudo aptitude install rkhunter
................
................
20% [3 rkhunter 947/271kB 0%]
Get:4 http://archive.ubuntu.com karmic/universe unhide 20080519-4 [832kB]
40% [4 unhide 2955/832kB 0%]
100% [Working]
Fetched 1394kB in 1s (825kB/s)
Preconfiguring packages ...
Selecting previously deselected package lsof.
(Reading database ...
................
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 20076 files and directories currently installed.)
Unpacking lsof (from .../lsof_4.81.dfsg.1-1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/lsof_4.81.dfsg.1-1_amd64.deb (--unpack):
unable to create `/usr/bin/lsof.dpkg-new' (while processing `./usr/bin/lsof'): Permission denied
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Selecting previously deselected package libmd5-perl.
Unpacking libmd5-perl (from .../libmd5-perl_2.03-1_all.deb) ...
Selecting previously deselected package rkhunter.
Unpacking rkhunter (from .../rkhunter_1.3.4-5_all.deb) ...
dpkg: error processing /var/cache/apt/archives/rkhunter_1.3.4-5_all.deb (--unpack):
unable to create `/usr/bin/rkhunter.dpkg-new' (while processing `./usr/bin/rkhunter'): Permission denied
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Selecting previously deselected package unhide.
Unpacking unhide (from .../unhide_20080519-4_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/unhide_20080519-4_amd64.deb (--unpack):
unable to create `/usr/sbin/unhide-posix.dpkg-new' (while processing `./usr/sbin/unhide-posix'): Permission denied
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/lsof_4.81.dfsg.1-1_amd64.deb
/var/cache/apt/archives/rkhunter_1.3.4-5_all.deb
/var/cache/apt/archives/unhide_20080519-4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up libmd5-perl (2.03-1) ...
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree
Reading state information... 0%
...........
....................
I have removed some lines to reduce the text. All the error messages are in here though. My experience with linux is limited and i am not sure what the problem is or how it is to be resolved.
Thanks.
Hi,
What should I configure when I put Zend project on windows to Ubuntu Lamp?
(I asking that beacause my Zend progect not working on Ubuntu, its gives first pages, but after i enter to next page its gives me 404 error(page Not Found), I check if rewrite mod enable with : sudo a2enmod rewrite and get: Module rewrite already enabled ::: I dont have such probelm on Zend Ce and Wamp servers on Windows).
Thanks,
Yosef
I started learning vim today and installed it using
sudo apt-get install vim
Now, when I try to do something like :5dd it gives me the not an editor command error. I'm not sure why this is.
Am I doing anything wrong? I looked at tutorials and everywhere I look I see that 5dd is a valid command.
(r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}),
As you can see, I have a directory called "media" under my Django project.
I would like to delete this line in my urls.py and instead us Apache to serve my static files. What do I do to my Apache configs (which files do I change) in order to do this?
By the way, I installed Apache2 like normal:
sudo aptitude install apache2
I have a Mono application which opens a RFCOMM connection (/dev/rfcomm0) but when I run as a user, I get a System.IO.IOException Interrupted system call. I'm running this on openSUSE 11.2.
If I run the application under sudo, it works fine.
I have added the dialup group to my user account so I'm not getting a permission denied error.
I'm not sure if this is a Mono serial comms question or a permissions question for ServerFault.
Hi,
I want to install kernel package by this command
sudo apt-get install kernel-package
but it gives me the error :
Package kernel-package has no installation candidate
How can I solve this???
P.S: I am use ubuntu 2.6
Im trying to run a crack for a programme out of terminal. I was wondering what the directory should look like?
I have typed in sudo -s and gotten to the point where it says Bash-3.2# but it wont recognise the directory and wont allow me to implement the crack.
HELP!
I have installed Ruby on Rails in Ubuntu 10.04:
$ sudo gem install rails
$ echo $PATH prints:
/home/koningbaard/.gem/ruby/1.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
But when I run $ rails --version, BASH tells me that rails is not currenly installed, and that I can install it with apt-get, which I don't want (I want it installed through gem).
Can anyone help me where I can find it and how I can add it to my PATH? Thanks
I installed rvm as root to setup an Ubuntu LTS 8.04 as a web hosting server for my rails apps.
rvm is installed in:
/usr/local/rvm
Everything works fine, gems installation included and users are able to use ruby and gem commands.
sudo gem install rails
My problem is that the gems EXECUTABLE DIRECTORY is not included in my PATH and thus I cannot use rails command.
Is there a way to dynamycally include gems executable directory in my PATH?
Can it be done directly through rvm?
Hi,
i'm getting this error when i start LAMPP:
XAMPP: Couldn't start MySQL!
I tried with sudo /etc/init.d/mysql stop but nothing..
Any idea?
Regards
Javi
I'm trying to run freshly compiled program, written with Tcl&Tk. When running it I get an error:
felix@Astroserver:~/?????????/Simon$ sudo ./simon1
invalid command name "tcl_findLibrary"
I'm running Ubuntu 11.04, I have installed Tcl&Tk (cause I was able to succesfully build the program).
If I'm running wish:
*% tcl_findLibrary
wrong # args: should be "tcl_findLibrary basename version patch initScript enVarName varName"*
Could anyone help?
I have just installed KDevelop on my Ubuntu machine (KDevelop 3.9.95 on Ubuntu 9.10) with
sudo apt-get install kdevelop
I created a new project with the "Hello World" program in it, but there doesn't appear to be any way to compile anything. The manuals refer to the build menu but there isn't one, all all compile options on the other menus are greyed out.
Does anyone know what I have done wrong?
I'm trying to install PHPUnit in Ubuntu 10.04 but I get these error messages
sudo pear install -a pear.phpunit.de/PHPUnit
Duplicate package channel://pear.phpunit.de/File_Iterator-1.3.3 found
Duplicate package channel://pear.phpunit.de/File_Iterator-1.3.2 found
install failed
I tried reinstalling PEAR, upgrading it; updated the PEAR and PHPUnit channel; cleared the PEAR's cache but still no luck, I keep getting the same error.
Does anyone have the same problem and know how to solve it?
Thank you.
Hi,
I am trying to install libsoup for my ubuntu environment:
checking for LIBSOUP... configure: error: Package requirements (libsoup-2.4 >= 2.28.2) were not met:
No package 'libsoup-2.4' found
I tried
$ sudo apt-get install libsoup2.4-dev
and now it said:
checking for LIBSOUP... configure: error: Package requirements (libsoup-2.4 >= 2.28.2) were not met:
Requested 'libsoup-2.4 >= 2.28.2' but version of libsoup is 2.4.1
Thanks for any suggestion in how to fix this problem.
Hi,
I use Vim as primary IDE for programming, with some plugins i have a good environment but for a single point: debugging.
I have recompiled Vim to use vimgdb, and it works, but the problem is that i need to attach to a process started by a root user so i have to use sudo to do it....
How can i do this with vimgdb?
Thanks in advance.
sudo gem install ruby-mbox
then I run this
require "rubygems"
require "ruby-mbox"
mbox = Mbox.new("Inbox")
and I get this
$ ruby mbox_read.rb
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- ruby-mbox (LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from mbox_read.rb:2
gem server says this
ruby-mbox 0.0.2 [rdoc] [www]
A simple library to read mbox files.
Executables are mbox-daemon, mbox-do.
Thanks in advance
I am running ubuntu hardy
I installed zend framework using : sudo apt-get install zend-framework command
Why did it not install zf.sh ?
I want to be able to use the zend_tool using cli.
How do I go about getting the zf.sh command to work?
Hi, in VIM sometimes when saving, I accidentally hit capital W instead of its lowercase brother. I am prompted for my system password, so I assume it is running a sudo command of some sort, but do you know what?
Thank you!
Hi everyone:
I want to turn off ASLR on my own PC. But each time I type "sudo echo 0 /proc/sys/kernel/randomize_va_space", the system shows that "Permission denied". How can I make it work? By the way, my OS kernel is 2.6.30.
Hope anyone can give me a hand.
Regards.
I've run the following command in the Ubuntu terminal -
sudo apt-get install mono-develop
Now how can I run *.vb and *.cs programs using the terminal - What is the command that need to be given?
Does the syntax vary when we write code in Windows & Linux environment?
Hi All,
This is restart target code which is defined in build.xml
target name="restart"
propertycopy name="remote.host" from="deploy.${target.env}.host.${remote.id}"
propertycopy name="remote.port" from="deploy.${target.env}.port.${remote.id}"
sshexec trust="true"
host="${remote.host}"
port="${remote.port}"
username="${scm.user}"
keyfile="${scm.user.key}"
command="sudo /usr/local/bin/bounce_jboss"
target
server information is defined in build.properties.
The above code is working fine, but the restarting process is very late bcas its stopping-starting server one and later its stopping-starting another server,
Is there a way where i can restart both servers parallely with a time frame of 45 seconds.
Hi,
Can you please tell me where I can find a 'gitk' type of tool for hg on ubuntu?
I have tried '$ sudo apt-get install tortoisehg' but I get this:
$ hgtk
abort: This version of TortoiseHg requires Mercurial version 1.3.n to 1.4.n, but finds 1.5.2
I am a bit puzzled by this strange behavior on CentOs 5.4 when starting Tomcat 6.0 as a service
I've added a script at /etc/init.d/tomcat that can start/stop/restart Apache Tomcat 6.0 with user 'tomcat', and registered it as service. The problem with the service is that I am getting a 'Neither the JAVA_HOME nor the JRE_HOME environment variable is defined'. But when type 'sudo -u tomcat echo $JAVA_HOME' I get '/usr/java/jdk1.5.0_22' which is correct since I am using that JDK. What can I do about this?