Problem with programming ATMEGA328p

Hello, I have a problem with uploading my code to my ATMEGA328p. I'm trying to make a tiny computer based on that microcontroller but i cannot program it.

Error:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
Error downloading http://arduino.esp8266.com/stable/package_esp8266com_index.json
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

Code:

void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.println("HELLO WORLD");
}

i have a crystal between pin 9 and 10, two ceramic caps with 22 written on them between each crystal pin and GND, and a 10k resistor between RST (pin 1) and GND. I'm using an USB to TTL programmer, but i can't get it to work. I'm on Ubuntu. Any help would be highly appreciated.

I think, the best way how to start with 328P is to use Arduino UNO board. Anyway, 10k resistor have to be between RESET and VCC. Post a schematics, one picture is better than a thousand words.
Raw ATmega chip requires bootloader to be programmable via serial line.