I'm trying to set up my mythtv backend on a headless box. The many tutorials out there tell you to run mythtv-setup from a machine with a display by x forwarding through ssh.
Code:
ssh -X username@ipaddress /usr/bin/mythtv-setup
The x forwarding works fine except that the first part of the mythtv-setup requires you to stop the mythtv-backend process which you have to do as root. It brings up a box asking for your password (much like is would if you just typed sudo xxxxxxx in the terminal) but it won't accept the password. Looking in the auth log it seems that it can't authenticate
Now I know that my account (administrator) can have root privileges because I can sudo xxxx to my hearts content via ssh in the terminal, but it seems to not work when it's being requested from a forwarded X window....
Pre-exsisting issue from 9.04 server, and has never worked right for me. When I try to open an X11 forwarded app on a mac using the command "ssh -X myusername@serverIP" Other linux machines have similar issues from terminal. I can login just fine and preform any actions I want that do not require X11 forwarding, like say firefox or a manager. I just get the error "Error: no display specified" when trying to do anything with X11 forwarding. I have almost no Linux experience but from tinkering and my friends tinkering wonder if I have a x authority issue.
At one point I had ubuntu desktop package installed (forwarding still did not work then), did a unclean uninstall of it installed Xubuntu. Xubuntu did nothing but throw fits saying I did not have authority to preform all sorts of actions, many relating to root access. This box is meant to be a headless file, print and web server with the ability to login remotely as a convince for administration. I have given up on having a working GUI of any kind on this box. I really do not want to reinstall because of the amount of data on the main partition. What can I start trying to look into?
I have set up 10.04 server, got userdir working (/home/username/public_html) so I can access it with h ttp://myipaddress/~username. What do I need to do to get mydomain.com to point to http://myipaddress/~username?
I just bought a domain, let's say it's called example.com
I also have a gmail account, let's say it's: my.account@gmail.com
I want all email to master@example.com to forward to my.account@gmail.com, and likewise I want all e-mail from my.account@gmail.com to be from master@example.com, and have the reply-to also be master@example.com.
I guess the most pressing issue here is setting up some proxy to forward all my @example.com emails to my gmail. I've been looking through the forums and reading some tutorials, but none of them seem to do exactly what I'm looking for.
At first I want say that I'm regular Ubuntu user, not system administrator. I have installed mail server using Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 11.04). And it's work!
But I have a challenge. I need to get incoming mail (from another server), zipping mail-body (as html or text) and all attachments into zip-archive, compile new mail with this new attachment (zip-archive) and (most important!) sign all this email with signature which locale in pem-file and send it to BCC-address from incoming mail. I don't know how do it or which tutorial start to read.
I've recently had to rebuild our mail server - after the old one over heated - and I've realised I never backed up the config files for exim... so now tyring to work out how the hell to configure what I had....
The setup isn't the most straight forward, so I'll try and explain what happens...
- all emails @longdomain.com are received by an hosted server on the internet - they are then forwarded to @shortdomain.com, the IP for which is our internet connection which fowards port 25 traffic to the exim server - the exim server then spam and virus checks the emails and forwards them to an exchange server (sorry but it works well for us)....
I've installed exim4/spamassassin/clamav successfully, and it's setup to receive emails for the relevant domains and relay from the hosted server on the internet (and some local addresses).
how I then setup exim4 to foward all emails on the relevant domains to the exchange server?
I have an OpenVPN(10.04.2 LTS) server running in bridge (TAP) mode. Its sitting behind a router and then a cable modem. The VPN works perfectly but I have a security concern. In order to allow the VPN clients to connect to the internet, I had to enable IPv4 forwarding on the server. Is this is a security hole? Can a hacker access my servers connection from the internet (without authenticating with OpenVPN) and access my network. Can someone use Ipv4 forwarding to access my LAN network from the WAN
I used this command to enable ipv4 forwarding echo 1 > /proc/sys/net/ipv4/ip_forward
Without IPv4 forwarding my VPN clients can only access my LAN and router, but they cannot reach my modem or the internet.
What will be the easiest way to ssh connect a VM on VirtualBox, exporting its desktop to host, while it is already running ? I found; Howto Access via ssh a Virtualbox Guest machine.
I recently purchased a GoDaddy domain with the intent of hosting a website myself at home on a box First of all, I don't have a static IP, so I set up dyndns with my router. Do I want to just have GoDaddy forward traffic to my dyndns account? Or do I manually change the nameservers? To what? Also, this seems to work for http(s) traffic only. What happens if I want to use ssh/ftp/smtp? And do I need to configure anything on my end aside from installing/configuring the appropriate server binaries? Is there a way to update GoDaddy when my ip changes?
I have 2 servers operating on my home network. One server hosts Bind9 and a few web sites. The other is an Ubuntu repo mirror that I recently configured (10.1.10.26). Inside my network, requests to the olyubuntu.nwlinux domain function as it should. However, external requests do not get forwarded. Instead, they end up at my DNS box at 10.1.10.25. Again, internal requests are forwarded correctly.Any red flags pop-up as to why this is occurring? Firewalls are not an issue.
I'm new to linux, but enjoy using it very much, especially without a GUI, console is fun! I need to set up port forwarding. We have 3 servers, 1x running Ubuntu server 8.04 (used as transparent proxy), 1x server 2003, 1x windows xp.
The linux box has the following ips: eth0 (internal) 192.168.1.5 eth1 (external) 192.168.0.7
Windows server 2003: 192.168.1.6
Windows XP: 192.168.1.9
Router: 192.168.0.1
The router automatically forwards specific ports to 196.168.0.7 (Linux eth0). From there I want to forward port 8585 to 192.168.1.6 and 3000 to 192.168.1.9. Is there a way that I can do this using iptables?
The commands that I think I'm gonna use look like this: iptables -A FORWARD -s 192.168.0.0/24 -p tcp --dport 8585 -d 192.168.1.6 -j ACCEPT iptables -A FORWARD -s 192.168.0.0/24 -p tcp --dport 3000 -d 192.168.1.9 -j ACCEPT
Would this be a correct way of doing it? My biggest problem is that I can't test it without going live, and if I go live and something doesn't work, the entire building will be left without internet, people will hate me. Also, The proxy captures all data on port 80 and forwards it to 3128 so that the proxy can monitor the usage, and a few systems runs fine with it, others however can ping websites, and internet explorer says "website found, waiting for reply" but the webpages cannot be displayed.
I have a set of servers that I have to manage and I thought that pssh (parallel-ssh) would be a great tool for the job. Except that I can not see how to use that with 'sudo'. I can set password-less ssh between multiple servers for a given user. But I cannot see how to do administrative work if I cannot call SUDO as it requires a password to be entered firstly.
I wanted to installed transmission on my buntu server box 10.10 tonite so from my laptop top i ssh'd into it...which took an unordinary amount of time.. went to type in sudo apt-get install transmission half way through each word at the terminal prompt it would just hang...had to wait then it would recognize my typing and i could continue....pressed enter waited a long time; then noticed i coulnd't connect to the repos?
So i manually (as in sitting at the box not over ssh) tried to ping google nothing....sudo apt-get update....nothing....
- i restarted the machine twice -sudo ifdown eth0 /sudo ifup eth0
sudo nano /etc/networking/interfaces made sure it said
Quote:
I have my router saved to assign 192.168.0.100 to the machines eth0 MAC of 00:14:2a:e9:15:0b so i can always use my webUI w/o having to guess my ip ifconfig shows my broadcast running i dunno i'm sooo confused and lost scared...a lil' cold....kinda hungry..pretty tired....
how to get tab completion working with sudo in JeOS (Ubuntu Hardy) 8.04? Assuming I have the command '/usr/bin/svnadmin'. As a normal user I can type:
Code: svnad + TAB and it auto-completes as 'svnadmin'. If I type: Code: sudo svnad + TAB nothing happens. My 'echo $SHELL' is '/bin/bash'. I tried enabling the following in '/etc/bash.bashrc': Code: if [ -f /etc/bash_completion ]; then
[Code]...
auto-completes as I'd expect. I think I once read that there's some kind of configuration variable for sudo that causes it to use a 'more secure' path rather than the current path in the user's environment. I can't find any info on it though. I'm executing the commands from my home directory.
I have a server that started out at 8.04 LTS was upgraded to 8.10 and to 9.04. When I upgraded to 9.04 sudo and ssh stopped working.
Fortunately I have a root account and can login as root or su to root.
I suspect this is the result of changes I made to nsswitch.conf and pam.conf to get winbind working.
I was hoping for a fix by upgrading to 9.10, but that didn't work. I want to upgrade to 10.04 LTS, and stay there but I think need to resolve this first.
auth.log reports failed password for ssh attempts and authentication failed for sudo. I am at a loss to determine where the problem is and how to track it down.
I ran the following command:Code:sudo apt-get install sslIt is suppose to give me SSL support for Apache 2.2, but I couldn't find any package information about it atA search only returns ssl-cert package.So what is in the ssl package for Lucid 10.04 LTS? How do I know what package contains what in the future?
I'm with Linux 2.6.32-25-server #44-Ubuntu SMP Fri Sep 17 21:13:39 UTC 2010 x86_64 GNU/Linux , Ubuntu 10.04 Server And I wanna execute the next script in bash profile code...
My first post. I've been using Ubuntu Server edition (Hardy) happily for some time now.
I use sudo regularly during configuration of new services. It always works/authorises within seconds, however, it recently became very slow, to the point of being nearly unusable.
In /var/log/auth.log I noticed a regular working pattern like this code...
I have a DHCP server that I only mildly trust, but its nice because it is an eBox server (I use it for DNS, DHCP, and smtp relay for my internals). I want it to issue all addresses (simply because I like the way it displays its leases in the WebUI's dashboard), but I want a fail-safe too. I have another server that is strictly an Ubuntu Hardy server (I use it for openVPN and nothing else) so I would like it as my backup dhcp server. I figure I'll install all the dhcp stuff on it and just stop the service (to include a sudo crontab @reboot script to stop it when rebooted).
And simple use a sudo crontab script to ping the eBox every 5 minutes to make sure its live, and if not then start the dhcp server. My questions: If I put the entry in my sudo crontab will the script execute even if no session is currently running (its obviously a server so won't have anyone logged in except for administration)? Also since it is in the root crontab it will be able to start the init.d service without having to sudo it right (IE the script only needs to say "/etc/init.d/dhcp3-server start" not "sudo /etc/init.d/dhcp3-server start")?
sudo apt-get install ubuntu-desktop fails and has been failing for the last two days, I installed both the lto and the 10.10 newest, starts out OK and runs for about 5 minutes then finishes with many 'failed to fetch [URL] size mismatch issues. This is the first one after many installs over the last two years. Is there something going on with the US servers? On closer examination of running sudo apt-get update it seems to be fine till it hits the pool directory on the server, lucid main and lucid-updates are fine, breaks when it goes past those.
I have installed Ubuntu Server 10.10 in Virtual Box in order to evaluate it for a project.I have installed Gnome and can log in fine using my password. However, whenever I am prompted for my password when doing anything SUDO I am told my password is incorrect, starting Synaptic, for example
I am suddenly not prompted for my password when I run any command as sudo on a few of my Ubuntu servers.
if I run sudo -K, the session is cleared, and I am prompted again for my password, however it saves/caches it until I run sudo -k again even if I log out and back in. I want it to prompt me for my password, as it should (and did) by default, for security.
I've been trying to figure this out for longer than I care to admit. We upgraded our print server (sysadmin) to 64 bit lucid and that moved our cups server from 1.3.7 to 1.4.3. We have a remote server that is still 1.3.7 (printhost1) but version difference doesn't seem to be relevant to the problem.
If I'm on console on sysadmin and do an lpr to a printer on printhost1, everything is copacetic. However, If I'm on a host that specifies "ServerName sysadmin" in its "/etc/cups/client.conf" access_log on sysadmin shows:
and error_log shows: E [22/Mar/2011:11:11:40 -0500] Returning IPP client-error-not-authorized for Create-Job (ipp://localhost:631/printers/103_hp4250) from 172.16.10.52
We've been using this method of sharing printers between locations for years and years so it not working now is a surprise.
cupsd.conf on sysadmin looks like this and is as open as I can imagine:
Additional symptoms are that only printers locally defined on sysadmin show up when the client uses System>Administration>Printing in gnome. Same thing when you browse printers in windows on our samba domain controller that backends on CUPS.
I just know that it's something simple that's going to make me facepalm but I'm at a loss.
I cannot sudo nor log into a second ssh session on my Ubuntu 10.10 server edition headless setup. Entering an incorrect password works as expected but the correct password gives errors, and on the second attempt a segfault. I recently changed my password as the old one was about to expire, that was 3 days ago, I can't find evidence that I have sudo'ed or logged in a second session since, I have been logged into it via ssh throughout all of it and I am still currently logged in. What should I do to correct this problem? I'm worried that by turning it off I will lose all access. Is the only option using a live cd to change the password?