I accidentally deleted content of /var/lib/apt with command below:
sudo rm -rf /var/lib/apt/*
what should I do now? can I restore it? is it necessary?
I accidentally deleted content of /var/lib/apt with command below:
sudo rm -rf /var/lib/apt/*
what should I do now? can I restore it? is it necessary?
I was trying to open a file and write to it with PHP at /var/www
folder
but it wasn't working so I did
sudo chmod 777 /var/www
now I want to set the permissions for /var/www
to the default.
what are the default permissions for /var/www
?
this is my network traffic with vnstat:
^ r | r | r r | r r | r r | r r | r r | r r | r r r r | t rt rt rt rt rt rt rt -+---------------------------------------------------------------------------> | 15 16 17 18 19 20 21 22 23 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 h rx (KiB) tx (KiB) h rx (KiB) tx (KiB) h rx (KiB) tx (KiB) 15 0 0 23 23994 40915 07 1305794 175924 16 8487 1375 00 129206 203168 08 95179 98313 17 0 0 01 147492 192614 09 96384 109808 18 0 0 02 199779 192173 10 95519 112443 19 0 0 03 206705 204136 11 77934 89830 20 0 0 04 264584 205402 12 66171 69969 21 47189 55511 05 292691 206276 13 80901 88811 22 31564 53650 06 1048066 187709 14 5890 2730
from 00 to 07 I was downloading using transmission bittorent from 08 to 13 I put download/upload speed limit on zero and nothing was downloading and at 14 I closed transmission bittorrent
there are two things I do not understand :
somebody please explain me why is this happening?
pausing torrents give same result as putting limit on speed, there is still traffic:
vnstat while bittorrent is open and all are paused
rx | tx --------------------------------------+------------------ bytes 170 KiB | 143 KiB --------------------------------------+------------------ max 68 kbit/s | 52 kbit/s average 48.57 kbit/s | 40.86 kbit/s min 36 kbit/s | 28 kbit/s --------------------------------------+------------------ packets 1562 | 1470 --------------------------------------+------------------ max 71 p/s | 68 p/s average 55 p/s | 52 p/s min 43 p/s | 39 p/s --------------------------------------+------------------ time 28 seconds
now I closed the bittorrent and results
rx | tx --------------------------------------+------------------ bytes 3 KiB | 4 KiB --------------------------------------+------------------ max 8 kbit/s | 4 kbit/s average 0.96 kbit/s | 1.28 kbit/s min 0 kbit/s | 0 kbit/s --------------------------------------+------------------ packets 32 | 40 --------------------------------------+------------------ max 7 p/s | 7 p/s average 1 p/s | 1 p/s min 0 p/s | 0 p/s --------------------------------------+------------------ time 25 seconds
I recently installed 12.04.
When I try to edit a file with gedit, I can't use the terminal until I close the editing file or I have to open a new terminal. But I think I didn't have this problem with 11.04, however I'm not sure.
Is there anyway to avoid this and to use same terminal while editing files.