At first i tried to change date to good one via gnome via 'Time and Date Settings' but when i clicked on calendar i couldn't change date. So i tried via console... date +%T -s "02:36:00"
worked fine and time is set to it now... but date +%m%d -s "1019"
returned old date instead of the one i'm trying to set... what's wrong?
Phil's questions
Are there linux distros without selinux portion in kernel? Sorry if that's dumb question ;), but my distro (debian) has it and i see that it's in kernel on kernel.org so i was wondering if it's so popular that every distro has it or some delete this portion of kernel and use something else? If there are distros without this kernel part (and i mean totally deleted, not just disabled and waiting for being enabled on boot like in debian) could you give some examples?
I started python -m SimpleHTTPServer
on one computer on lan and used wget
to download php files from it to another. As far as i see, they seem to be downloaded correctly - i got php sources instead of html layout. Why? Is this because this server doesn't execute php? When i was downloading i was worried that i'll download just html layout results instead of php source...
Will installing guest additions post a security risk to a host OS?
I have two directories - one from earlier backup and second from newest backup. How do i compare what changes were made to files in directory from newest backup on Linux? Also how do i display changes in for example text and php files - i'm thinking about something like revision history on wikipedia where you see old version on one side of the screen and newest version on other and changes are highlighted. How do i achieve something like that?
edit: How do i also compare remote dir with local?
Are there any livecds/liveusbs with virtualbox or vmware (or similar) installed on them? I wonder if i could have livecd with virtualbox which i could use to boot my vdi images without configuring host...
Is it possible to run cp
again after it was aborted and make it start where it ended last time (not overwrite data that's already copied, only copy what's still left)?
I'm running wp on lamp install in virtual machine. I frequently pause it, save snapshots, etc. Date and time aren't correct because of this and i think i noticed weird behavior of plugins that use cron. How do i fix my time and plugins? Maybe i should get time from external location so it would be correct even though i regularly pause my machine?
It's Debian Lenny guest on other linux host. I'm using virtualbox.
Let's say i have already configured linux system which i would like to clone from machine it's on to other machines which aren't similar - don't have the same hardware, etc. How do i achieve this? I was thinking about doing hd copy and then copying it to target machines and using scripts to customize it later to work with other hardware... any thought on that? Are such solutions available or i would have to dig in it?
edit: I'm using Debian Etch based distro, 2.6 kernel line
Maybe this will sound like dumb question but the way i'm trying to do it doesn't work.
I'm on livecd, drive is unmounted, etc.
When i do backup this way
sudo dd if=/dev/sda2 of=/media/disk/sda2-backup-10august09.ext3 bs=64k
...normally it would work but i don't have enough space on external hd i'm copying to (it ALMOST fits into it). So I wanted to compress this way
sudo dd if=/dev/sda2 | gzip > /media/disk/sda2-backup-10august09.gz
...but i got permissions denied. I don't understand.
Is it possible to mount vdi like for example iso? Or open it with some archive program? If yes, how?
edit: My vdi is dynamically expanding storage and i have snapshots too.
I imported big dump into mysql and filled up my whole space (dumb me). Machine that's mysql server is virtualbox virtual machine. It's using automatically expanding virtual hard drive. I freed up few GBs on host system but guest vm still shows that it's hard drive is full. Mysql won't start because /var/lib/mysql is too full. How do I free up /var/lib/mysql so mysql will start?
I added user with adduser user and then entered password with passwd password. When I su - user I got "No directory, logging in with HOME=/"
What's going on, how do I fix it?
My regular user account is, let's say, user1. I created separate user2 for some x application that i would like to run while being logged into x as user1 but in a way that will prevent it from read/write access to user1 data. I thought that i could use xauth and sudo/su to user2 from user1 to run this application. How do i do this? I'm not sure how to configure xauth.
I successfully installed wordpress multiuser on my Lenny virtual machine. I set up mod_rewrite and domain in /etc/hosts for it. I can login to dashboard, main page loads too. Only problem I have are blog posts... When i click on default hello world post to check if everything is ok i get 404 error (i see wordpress 404 page, not apache 404). How could i fix it?
I installed debian in vm in virtualbox and it has 1280x1024 resolution, while physical screen is 1024x768... So I'm getting scrollable virtualbox window and I have to scroll it. It's pretty hard to work on it. I tried:
- Change resolution in gnome... There's no option to choose resolution (just window with blank buttons)
- Edit xorg.conf... xorg.conf is blank
- I googled and found out that it's normal for xorg.conf to be blank in this version and that I can use xrandr. I tried xrandr -s 1024x768... I got "size 1024x768 not found in available modes"
- sudo dpkg-reconfigure xserver-xorg doesn't do anything. It only lets me to select keyboard layout and that's all. No xorg.conf is created.
- I turned off X and tried X -configure but I got completely blank black screen so I restarted vm. After restarting it I looked into xorg.conf and it's still blank.
Any ideas?
Question to users that have their own webhosting (either physical servers or are resellers):
Are there any common security issues you have to deal with on your servers? Any suggestions about troublesome things that should be disabled? Any stupid security mistakes specific to webhosting that I should avoid? Any recent vulnerabilities that are affecting webhosts?
Sorry if it's a bit too broad question...
I'd like to have my own personal server, mainly for php websites (although I might later add some features when I'll need them... like Jabber, mail, etc). I might later decide to also offer some space for clients, but for now it will be for my own use and tests. Its main role will be LAMP.
The thing is that I never worked with 'real' server hardware... I know how to run server software, etc, but now I only have my desktop home pcs, laptops, etc... And I would like to buy some good quality hardware for this setup (so after I'll learn enough I might try to also offer some space for clients).
By hardware I mean:
- powerful server like for professional hosting setups (where i can change faulty components live without rebooting it, etc)
- emergency power source? how do i get something like this?
- i guess reliable server should have backup? good cooling? good UPS?
- anything else that is important in powerful setup that you could recommend?
Also please note that I'm not interested in VPS reseller, I would like to learn with physical hardware.
Comments, links to example hardware stores (I mean... where do I get this stuf?? Hah) and links to any external resources will be helpful.
Edit:
About hotswapping software support - I would probably use Debian as my OS.
Noise... what about it? I would probably like to have my server where I live.