Do I need a firewall on my VPS which I ordered today?
If so, which one would you recommend?
I plan on running a classifieds website with Java, php, mysql.
My OS is ubuntu 9.10
Thanks
Btw: What is iptables?
Sometimes when I simply type a valid command like 'find ...', or anything really, I get back the following, which is completely unexpected and confusing (... is command name I type):
sh: $'\302\211...': command not found
There is some corruption going on I think. I don't use color in my prompt, I am using the Bash shell in POSIX mode as sh (chsh to /bin/sh and so on - $SHELL is sh).
What is going on and why does this keep happening? Anything I can debug? I think this is more of an xterm issue than sh, or at least a combination of the two.
Files, for context:
My /etc/profile, as distributed with Arch Linux x86-64:
# /etc/profile
#Set our umask
umask 022
# Set our default path
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"
export PATH
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && . "$profile"
done
unset profile
fi
# Source global bash config
if test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then
. /etc/bash.bashrc
fi
# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP
# Man is much better than us at figuring this out
unset MANPATH
My /etc/shrc, which I created as a way to have sh parse some file on startup, when non-login shell. This is achieved using ENV variable set in /etc/environment with the line ENV=/etc/shrc:
PS1='\u@\H \w \$ '
alias ls='ls -F --color'
alias grep='grep -i --color'
[ -f ~/.shrc ] && . ~/.shrc
My ~/.profile, I am launching X when logging in through first virtual tty:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec xinit -- -dpi 111
My ~/.xinitc, as you can see I am using the system as a Virtual Box guest:
xrdb -merge ~/.Xresources
VBoxClient-all
awesome &
exec xterm
And finally, my ~/.Xresources, no fancy stuff here I guess:
*faceName: Inconsolata
*faceSize: 10
xterm*VT100*translations: #override <Btn1Up>: select-end(PRIMARY, CLIPBOARD, CUT_BUFFER0)
xterm*colorBDMode: true
xterm*colorBD: #ff8000
xterm*cursorColor: S_red
Since ~/.profile references among other things /etc/bash.bashrc, here is its content:
#
# /etc/bash.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='[\u@\h \W]\$ '
PS2='> '
PS3='> '
PS4='+ '
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
;;
screen)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
;;
esac
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
I have no idea what that case statement does, by the way, it does look a bit suspicious though, but then again, who am I to know.
Hello,
I know that with web server, the html pages are transfered from server to client, with web services, a xml file is sent, but still ... I don't understand them; not even the difference between them.
Can someone explain as simple as possible this terms ?
Platform: java,python,php
Thank you
I dual boot windows and ubuntu 10.04. I accidentally did an rm -r * in my home directory and deleted a bunch of files and folders that I need to recover. How can I recover these files from my windows xp partition? If there's isn't a way to do this from windows, what's the best way to do it in ubuntu? I'd prefer a graphical interface if that's possible. I appreciate the help.
I have ubuntu in my PC.I have also installed Virtual Box in which I have installed windows XP.
and given only 30 GB of space my all data (Like photos,music and videos)are in home folder of ubuntu.I want to share that data (Folder)to XP so that I can play songs in XP too.
Please give any solution to make it possible .
I am rather new to linux, but I have installed a few different flavors. I noticed they all have similar folder names in the root directory
bin
boot
dev
etc
home
lib
lost+found
media
mnt
opt
proc
root
sbin
selinux
srv
sys
tmp
usr
var
I googled around, but couldn't find anywhere that explained the purpose of each of these. I understand a couple, but could anyone point me somewhere or give a quick breakdown of the common ones.
At work, I can remotely administer other computers by first adding my domain account as a local admistrator on another computer. After that, I can use remote registry, computer management, and file sharing (\\computer\c$).
How can I setup a remote user to be a local administrator on a simple home network without a domain (just a workgroup)?
I have Zabbix monitoring disk space for several volumes on several servers. It works fine on all of them except for one of the volumes on one of the servers which always reports as 0. However, when I run
./zabbix_get -s localhost -p 10050 -k 'vfs.fs.size[/home, free]'
locally on the machine in question, it gives me the correct, non-zero size which matches the output of df.
How can I go about troubleshooting and correcting this problem?
I bought a Lenovo 430K with Windows 7 Home Premium and upgraded it to Windows 8 Pro. I created a DVD from which I installed the Windows 8 Pro upgrade. I'm underwhelmed with Windows 8, however. I want to install Linux as the host OS and run Windows 8 Pro as a guest OS.
Will the Windows 8 Pro DVD that I created install Windows 8 Pro in a virtual machine, or would that virtual machine have to have Windows 7 installed first in order to install the upgrade?
I have a dell inspiron mini 10. It boots from an external CD-ROM drive and goes through the first part of the windows XP home install with no problem, but on reboot it loses the CD-Rom drive when it goes into sysprep.
Any ideas on how to get around this to complete the install?
As you might know sandboxing software doesn't work in 64bit Windows due to patchguard. What are the alternatives for a person looking to test untrusted / temporary software?
Edit: @Nick I'd prefer an alternative to VMs as I'm not happy with the extended startup time, the extra login sequences and the memory overhead that accompanies booting a VM solution to test something out ocassionally as a home user. Also it's another system that needs to be kept secure and up to date.
I found a few hundred of the following errors in my syslog following some configuration changes:
warning: maildir access problem for UID/GID=5000/5000:
create maildir file /home/vmail/domain/account1
/tmp/1273028517.P14666.domain.com: Permission denied
I made a temporary fix for now (the ole' standby, chmod 777), but I would like to know if this is a permanent error (lost mail) or if these are retried/requeued.
Thanks!
I've been using an SSH proxy to my home network to encrypt my internet surfing, which is fine. But the connection is much slower than the direct one, and when I'm downloading large files I'd rather go around the proxy. Currently, I send it to Downthemall, go to FoxyProxy and disable the proxy, cancel and resume the download, then when it's started go back to FoxyProxy and re-enable it. Is there any way I can just get DownThemAll stuff to skip the foxyproxy?
Hi there,
I set up php/fastcgi with nginx and now I want to upload very large files via a java-applet. After about 30 seconds, the applet reports a "Broken pipe". In the server logs, i find nothing. I changed any setting in the php.ini (max_execution_time, max_input_time, memory_limit, post_max_size) to very high values, but nothing helps.
Any idea?
does serving files like images via subdomain speed up loading speed. i read somewhere that static files like images, java script served via cookieless domain does mean something regarding website speed.
In my emacs org-mode org file I have a tag list
#+TAGS: OFFICE(o) COMPUTER(c) HOME(h) PROJECT READING(r) PHOTOGRAPHY(p)
At some point, I wish to add a new tag to the list, and apply it to an item (using C-c C-c). But the new tag does not show up in the list of selectable tags.
In order to fix this, I close and reopen emacs. But I'm sure that isn't necessary, How do I refresh this list without restarting emacs?
I try command
rsync -v --include-from=/path/to/list.lst /home/user /path/to/backup
list.lst contains for example
.gnupg/
.pki/
.gnome2/keyrings/
.mozilla/firefox/*.default/bookmarkbackups/
.mozilla/firefox/*.default/bookmarks.html
.mozilla/firefox/.default/.db
.mozilla/firefox/.default/.sqlite
and i get error on all strings with * "failed: No such file or directory"
When i use --files-from for this, i get error too.
Can anybody help me use wildcards for this?
I'm installing boot camp on 64 bit windows 7 home premium from a leopard disc. During installation I get a couple of errors saying that some driver publishers are not registered or something and I install them anyway. After reboot windows tries to repair something and reboots again. When I finally log in, there is no boot camp any more. Any ideas how to solve this? Thanks
btw, I'm using Macbook Pro 15 inch Santa Rosa (late 2007)
Suppose a set of custom-built gcc/glibc/binutils are in $prefix (e.g. /home/user/path)
I want:
gcc to look for libraries in $prefix/lib64 instead of /lib64
gcc to look for headers in $prefix/include instead of /include
to use $prefix/lib64/ld-linux-x86-64.so.2 as the (hard-coded) loader path instead of /lib64/ld-linux-x86-64.so.2
the dynamic loader to look for shared libraries in $prefix/lib64 instead of /lib64
How should I configure the builds? Do I need to modify gcc's specs file or do anything else?
I have a home wireless network and two laptops. My primary laptop is normal, and runs Windows 7. My secondary laptop has no wireless capability, and I have no access to the IP settings on my account. How can I access the internet on my secondary computer through my primary computer using a crossover cable or something similar? In other words, how can I make my primary computer produce a connection that my secondary computer will find indistinguishable from normal ethernet?
I can connect to other computers on my home network (ubuntu + OSX machines) using the IP address, but I can't connect using the netbios name.
On the mac the name appears in Finder but if I try to connect (goconnect to server smb://[email protected]) it doesn't work, while smb://[email protected] does. Same with ssh, ping and afp between the macs.
This is a intermittent problem. It has worked in the past.
I have an asp.net based website running on IIS 6 that needs to incorporate a java application running on the same server on a different port. The requests will be coming in via https and I need to invisibly (preserving the https session) proxy domain.com/ over to domain.com:8080/.
Does IIS have a built-in mechanism for doing this? If not, are there any reliable free/open source ISAPI extensions that allow it?
Thanks in advance
Hi
after struggling with a wireless adapter installation for a few days, I am wondering if there is some service that will do it remotely.
I am not talking about an enterprise type remote support center. I am thinking about a similar service for home PCs
anyone aware of such a service ?
Hi Guys
We are having a open social app. which is developed on jsp/java+MySQL combination.and Tomcat5 is webserver. every now and then ,I am getting this error
Can't create a new thread (errno 12); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug
please let me know If u guys have come across it.
-Prashant
so at home we had the idea of instead of buying 3 different pc's we would somehow create a "server" for the computers where a cable would come to our screens and keyboard and mouses, so the actual pc was somewhere else in the house with all the others.
Does such a thing exist?
And is it possible to have such a thing for high performance workflow?
(Compiling, High-End Games, just as if it was a separate pc )